@microsoft/windows-admin-center-sdk 2.538.0 → 2.541.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/angular/assets/strings/de-DE/strings.json +1 -1
- package/angular/assets/strings/es-ES/strings.json +1 -1
- package/angular/assets/strings/it-IT/strings.json +1 -1
- package/angular/assets/strings/ko-KR/strings.json +1 -1
- package/angular/assets/strings/nl-NL/strings.json +1 -1
- package/angular/assets/strings/pt-PT/strings.json +1 -1
- package/angular/assets/strings/tr-TR/strings.json +1 -1
- package/angular/assets/strings/zh-CN/strings.json +1 -1
- package/angular/assets/strings/zh-TW/strings.json +1 -1
- package/angular/bundles/microsoft-windows-admin-center-sdk-angular.umd.js +172 -112
- package/angular/bundles/microsoft-windows-admin-center-sdk-angular.umd.js.map +1 -1
- package/angular/bundles/microsoft-windows-admin-center-sdk-angular.umd.min.js +1 -1
- package/angular/bundles/microsoft-windows-admin-center-sdk-angular.umd.min.js.map +1 -1
- package/angular/esm2015/src/controls/header/header.component.js +3 -1
- package/angular/esm2015/src/controls/header/index.js +2 -2
- package/angular/esm2015/src/controls/page-alert-bar/models/page-alert.js +2 -1
- package/angular/esm2015/src/controls/page-alert-bar/page-alert-bar.component.js +11 -3
- package/angular/esm2015/src/controls/property-grid/property-grid.component.js +2 -2
- package/angular/esm2015/src/controls/wizard/wizard-builder.js +13 -1
- package/angular/esm2015/src/controls/wizard/wizard.component.js +126 -109
- package/angular/esm2015/src/controls/wizard/wizard.module.js +12 -7
- package/angular/fesm2015/microsoft-windows-admin-center-sdk-angular.js +156 -113
- package/angular/fesm2015/microsoft-windows-admin-center-sdk-angular.js.map +1 -1
- package/angular/src/controls/header/header.component.d.ts +7 -0
- package/angular/src/controls/header/index.d.ts +1 -1
- package/angular/src/controls/page-alert-bar/models/page-alert.d.ts +2 -1
- package/angular/src/controls/page-alert-bar/page-alert-bar.component.d.ts +1 -0
- package/angular/src/controls/wizard/wizard-builder.d.ts +13 -0
- package/angular/src/controls/wizard/wizard.component.d.ts +5 -0
- package/angular/src/controls/wizard/wizard.module.d.ts +10 -9
- package/core/data/active-directory/active-directory.js +2 -2
- package/core/data/active-directory/active-directory.js.map +1 -1
- package/core/data/powershell.d.ts +2 -2
- package/core/data/powershell.js +2 -2
- package/core/data/powershell.js.map +1 -1
- package/core/notification/notification-manager.d.ts +0 -18
- package/core/notification/notification-manager.js +10 -55
- package/core/notification/notification-manager.js.map +1 -1
- package/core/notification/notification.d.ts +1 -10
- package/core/notification/notification.js +33 -30
- package/core/notification/notification.js.map +1 -1
- package/core/notification/powershell-notification.d.ts +15 -15
- package/core/notification/powershell-notification.js +8 -19
- package/core/notification/powershell-notification.js.map +1 -1
- package/core/notification/socket-signalr.d.ts +14 -8
- package/core/notification/socket-signalr.js +19 -18
- package/core/notification/socket-signalr.js.map +1 -1
- package/core/notification/work-item-manager.d.ts +0 -4
- package/core/notification/work-item-manager.js +20 -76
- package/core/notification/work-item-manager.js.map +1 -1
- package/package.json +5 -2
- package/styles/css/main-v2.css +1 -1
- package/tools/wac-cli/src/create/main.js +0 -1
- package/tools/wac-cli/src/create/main.js.map +1 -1
- package/tools/wac-cli/templates/internal/package.json +4 -0
- package/tools/wac-cli/templates/library/angular.json +3 -0
- package/tools/wac-cli/templates/wac-template/angular.json +3 -0
- package/tools/wac-cli/templates/wac-template/package.json +4 -0
- package/tools/wac-cli/templates/wac-template/src/app/default/default.component.spec.ts +2 -3
- package/core/notification/notification-message.d.ts +0 -41
- package/core/notification/notification-message.js +0 -3
- package/core/notification/notification-message.js.map +0 -1
|
@@ -89,7 +89,6 @@ var ExtensionCreator = /** @class */ (function () {
|
|
|
89
89
|
var filesWithShellReferences = [
|
|
90
90
|
extensionDirectory + 'angular.json',
|
|
91
91
|
gulpFileDirectory + 'config-data.ts',
|
|
92
|
-
gulpFileCommonDirectory + 'e2e.ts',
|
|
93
92
|
gulpFileCommonDirectory + 'pack.ts',
|
|
94
93
|
gulpFileCommonDirectory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D,CAjQA,AAiQC,IAAA;AAjQY,4CAAgB","file":"main.js","sourcesContent":["import fse from 'fs-extra';\r\nimport { Guid } from 'guid-typescript';\r\nimport pathExists from 'path-exists';\r\nimport { Common } from '../common';\r\n\r\nexport class ExtensionCreator {\r\n /**\r\n * Arguments:\r\n *\t--company - name of the company or person making the extension.\r\n *\t--tool - name of the tool / extension that is being built.\r\n * --solution - name of the solution / extension that is being built.\r\n *\t--version - tag of the version to use.\r\n * --internal - instead of referring to SDK, references point to internal shell library\r\n * @param {any} argv Object containing command arguments\r\n */\r\n constructor(private argv: any) { }\r\n\r\n public create(): void {\r\n const normalizedCompany = this.normalizeString(this.argv.company ? this.argv.company : '');\r\n const normalizedTool = this.normalizeString(this.argv.tool ? this.argv.tool : '');\r\n\r\n const version = this.argv.version ? this.argv.version.toLowerCase() : '';\r\n const extensionType = this.argv.solution ? 'solution' : 'tool';\r\n const normalizedSolution = this.argv.solution ? this.normalizeString(this.argv.solution) : '';\r\n const internal = this.argv.internal;\r\n\r\n if (this.argv.length === 0 || !this.isValidVersion(version) || !normalizedCompany || !normalizedTool) {\r\n console.error('Usage: wac create --company <company-name> --name <tool-name> --version <version-tag> [--verbose]');\r\n console.log('or');\r\n console.log('wac create --company <company-name> --solution <solution-name> --tool <tool-name> --type <tool-type> --version <version-tag> [--verbose]');\r\n console.log('Valid version tags: \\'latest\\', \\'insider\\', \\'next\\', \\'experimental\\'');\r\n console.log('More information can be found here:');\r\n process.exit(1);\r\n }\r\n\r\n if (normalizedSolution === '') {\r\n this.createHelper(extensionType, normalizedCompany, normalizedTool, '', version, internal);\r\n } else {\r\n this.createHelper(extensionType, normalizedCompany, normalizedSolution, normalizedTool, version, internal);\r\n }\r\n }\r\n\r\n private createHelper(\r\n type: string,\r\n company: string,\r\n primaryDisplayName: string,\r\n secondaryDisplayName: string,\r\n version: string,\r\n internal: boolean\r\n ): void {\r\n const ignoresPath = Common.cliRootPath + 'templates\\\\ignores';\r\n const internalPath = Common.cliRootPath + 'templates\\\\internal';\r\n const solutionPath = Common.cliRootPath + 'templates\\\\solution';\r\n const templatePath = Common.cliRootPath + 'templates\\\\wac-template';\r\n const gulpPath = Common.moduleTemplatePath;\r\n\r\n if (pathExists.sync(primaryDisplayName)) {\r\n console.error('This tool definition already exists. No changes have been made.');\r\n } else {\r\n const productPath = './' + primaryDisplayName;\r\n fse.mkdirSync(primaryDisplayName);\r\n console.log('Created ' + productPath);\r\n\r\n fse.copySync(templatePath, productPath);\r\n fse.copySync(gulpPath, productPath);\r\n fse.copyFileSync(templatePath + '\\\\gulpfile.ts\\\\config-data.ts', productPath + '\\\\gulpfile.ts\\\\config-data.ts');\r\n fse.copyFileSync(ignoresPath + '\\\\git.txt', productPath + '\\\\.gitignore');\r\n fse.copyFileSync(ignoresPath + '\\\\npm.txt', productPath + '\\\\.npmignore');\r\n fse.copyFileSync(ignoresPath + '\\\\browserslistrc.txt', productPath + '\\\\.browserslistrc');\r\n\r\n // For solution extensions, overwrite manifest and strings file\r\n if (type === 'solution') {\r\n fse.copyFileSync(solutionPath + '\\\\manifest.json', productPath + '\\\\src\\\\manifest.json');\r\n fse.copyFileSync(solutionPath + '\\\\strings.resjson', productPath + '\\\\src\\\\resources\\\\strings\\\\strings.resjson');\r\n }\r\n\r\n // For internal developers, overwrite package.json and add .npmrc\r\n if (internal) {\r\n fse.copyFileSync(internalPath + '\\\\package.json', productPath + '\\\\package.json');\r\n fse.copyFileSync(internalPath + '\\\\npmrc.txt', productPath + '\\\\.npmrc');\r\n }\r\n\r\n this.updateShellReferences(primaryDisplayName, internal);\r\n this.updateFiles(company, primaryDisplayName, secondaryDisplayName, version, internal);\r\n this.printOutro(primaryDisplayName);\r\n }\r\n }\r\n\r\n private updateShellReferences(primaryDisplayName: string, internal: boolean): void {\r\n const internalShellReference = '@msft-sme';\r\n const externalShellReference = '@microsoft/windows-admin-center-sdk';\r\n const find = internal ? externalShellReference : internalShellReference;\r\n const replace = internal ? internalShellReference : externalShellReference;\r\n\r\n // For performance reasons, all applicable files are listed here, rather than scanning all files\r\n const extensionDirectory = './' + primaryDisplayName + '/';\r\n const extensionSrcDirectory = extensionDirectory + 'src/';\r\n const extensionAppDirectory = extensionSrcDirectory + 'app/';\r\n const gulpFileDirectory = extensionDirectory + 'gulpfile.ts/';\r\n const gulpFileCommonDirectory = gulpFileDirectory + 'common/';\r\n\r\n const filesWithShellReferences = [\r\n extensionDirectory + 'angular.json',\r\n gulpFileDirectory + 'config-data.ts',\r\n gulpFileCommonDirectory + 'e2e.ts',\r\n gulpFileCommonDirectory + 'pack.ts',\r\n gulpFileCommonDirectory + 'powershell.ts',\r\n gulpFileCommonDirectory + 'resjson.ts',\r\n gulpFileCommonDirectory + 'test.ts',\r\n gulpFileCommonDirectory + 'validate.ts',\r\n extensionSrcDirectory + 'main.ts',\r\n extensionSrcDirectory + 'manifest.json',\r\n extensionSrcDirectory + 'polyfills.ts',\r\n extensionSrcDirectory + 'test.ts',\r\n extensionAppDirectory + 'app-routing.module.ts',\r\n extensionAppDirectory + 'app.component.ts',\r\n extensionAppDirectory + 'app.module.ts'\r\n ];\r\n\r\n const cleanFiles = {};\r\n\r\n filesWithShellReferences.forEach((file) => {\r\n cleanFiles[file] = {\r\n [find]: replace\r\n };\r\n });\r\n\r\n for (const key in cleanFiles) {\r\n if (Object.prototype.hasOwnProperty.call(cleanFiles, key)) {\r\n this.cleanFile(key, cleanFiles[key]);\r\n }\r\n }\r\n }\r\n\r\n private updateFiles(\r\n company: string,\r\n primaryDisplayName: string,\r\n secondaryDisplayName: string,\r\n version: string,\r\n internal: boolean\r\n ): void {\r\n /*\r\n / files that need updating:\r\n /\troot package.json\r\n /\tsrc/manifest.json\r\n /\tsrc/resources/strings/strings.resjson\r\n /\tsrc/main.ts\r\n /\tin Experimental: gulpfile.js\r\n */\r\n const cleanDirectory = {};\r\n const rootPackagePath = './' + primaryDisplayName + '/package.json';\r\n const manifestFilePath = './' + primaryDisplayName + '/src/manifest.json';\r\n const mainFilePath = './' + primaryDisplayName + '/src/main.ts';\r\n const stringsFilePath = './' + primaryDisplayName + '/src/resources/strings/strings.resjson';\r\n const gulpFilePath = './' + primaryDisplayName + '/gulpfile.ts/config-data.ts';\r\n\r\n const packageName = '@' + company.toLowerCase() + '/' + primaryDisplayName.toLowerCase();\r\n const manifestName = company.toLowerCase() + '.' + primaryDisplayName.toLowerCase();\r\n const stringsProduct = primaryDisplayName.split('-').join(''); // Strings file cannot handle dashes.\r\n const stringsCompany = company.split('-').join('');\r\n const companyPackageIdentifier = company.split('-').join('') + primaryDisplayName.split('-').join('');\r\n\r\n /*\r\n / Default version is 'latest' in wac-template/package.json\r\n */\r\n if (version === 'next' || version === 'insider' || version === 'experimental') {\r\n const existingVersion = '\"@microsoft/windows-admin-center-sdk\": \"latest\",';\r\n cleanDirectory[rootPackagePath] = {\r\n '@{!company-name}/{!product-name}': packageName,\r\n '\"@microsoft/windows-admin-center-sdk\": \"latest\",': existingVersion.replace('latest', version)\r\n };\r\n } else {\r\n cleanDirectory[rootPackagePath] = { '@{!company-name}/{!product-name}': packageName };\r\n }\r\n\r\n if (!internal) {\r\n this.cleanInternalPackages(rootPackagePath);\r\n }\r\n\r\n cleanDirectory[gulpFilePath] = {\r\n '{!company-name}.{!module-name}': manifestName,\r\n '{!CompanyName}{!ProductName}': stringsCompany + stringsProduct,\r\n '{!guid}': Guid.create(),\r\n '{!company-package-id}': companyPackageIdentifier\r\n };\r\n\r\n cleanDirectory[manifestFilePath] = {\r\n '{!company-name}.{!module-name}': manifestName,\r\n '{!company-name}.{!product-name}': manifestName,\r\n '{!primary-display-name}': primaryDisplayName,\r\n '{!primary-url-name}': primaryDisplayName.toLowerCase(),\r\n '{!secondary-display-name}': secondaryDisplayName,\r\n '{!secondary-url-name}': secondaryDisplayName.toLowerCase()\r\n };\r\n\r\n cleanDirectory[stringsFilePath] = {\r\n '{!product-display-name}': stringsProduct,\r\n '{!product-title}': stringsProduct,\r\n '{!primary-display-name}': primaryDisplayName,\r\n '{!secondary-display-name}': secondaryDisplayName,\r\n '{!ProductName}': stringsProduct,\r\n '{!CompanyName}': stringsCompany\r\n };\r\n\r\n cleanDirectory[mainFilePath] = { '{!company-name}.{!product-name}': manifestName };\r\n\r\n for (const key in cleanDirectory) {\r\n if (Object.prototype.hasOwnProperty.call(cleanDirectory, key)) {\r\n this.cleanFile(key, cleanDirectory[key]);\r\n }\r\n }\r\n }\r\n\r\n private cleanFile(key: string, values: any): void {\r\n console.log('Updating: ' + key);\r\n for (const valuesKey in values) {\r\n if (Object.prototype.hasOwnProperty.call(values, valuesKey)) {\r\n let fileData = fse.readFileSync(key, 'utf8');\r\n let displayNameIndex = fileData.indexOf(valuesKey);\r\n while (displayNameIndex > 0) {\r\n fileData = fileData.replace(valuesKey, values[valuesKey]);\r\n displayNameIndex = fileData.indexOf(valuesKey);\r\n }\r\n\r\n fse.outputFileSync(key, fileData);\r\n }\r\n }\r\n }\r\n\r\n private cleanInternalPackages(packagesFilePath: string): void {\r\n const packages = Common.readFileJSON(packagesFilePath);\r\n const dependencies = [packages.peerDependencies, packages.devDependencies];\r\n\r\n const shellPackageFile = Common.cliRootPath + 'src\\\\config\\\\shell-package-list.json';\r\n const shellPackages = Common.readFileJSON(shellPackageFile).packages;\r\n\r\n dependencies.forEach((target) => {\r\n for (const pack of shellPackages) {\r\n delete target[pack];\r\n }\r\n });\r\n\r\n fse.writeJSONSync(packagesFilePath, packages, { spaces: 2 });\r\n }\r\n\r\n private printOutro(product: string): void {\r\n console.log('');\r\n console.log('Thank you for using the Windows Admin Center CLI.');\r\n console.log('');\r\n console.log('Next steps:');\r\n console.log('cd into your new directory (cd ' + product + ') and then run \\'npm install\\' -> \\'gulp build\\' to build your new extension');\r\n console.log('After that, \\'gulp serve --port 4200\\' to serve your new extension on port 4200');\r\n console.log('Additional information can be found here: https://aka.ms/wacsdkdocs');\r\n }\r\n\r\n private normalizeString(input: string): string {\r\n return input.split(' ').join('-');\r\n }\r\n\r\n private isValidVersion(version: string): boolean {\r\n return version === 'latest' || version === 'next' || version === 'insider' || version === 'release' || version === '' || version === 'experimental';\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"sources":["../../../packages/tools/wac-cli/src/create/main.ts"],"names":[],"mappings":";;;;AAAA,8DAA2B;AAC3B,mDAAuC;AACvC,oEAAqC;AACrC,oCAAmC;AAEnC;IACI;;;;;;;;MAQE;IACF,0BAAoB,IAAS;QAAT,SAAI,GAAJ,IAAI,CAAK;IAAI,CAAC;IAE3B,iCAAM,GAAb;QACI,IAAM,iBAAiB,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAC3F,IAAM,cAAc,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAElF,IAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACzE,IAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC;QAC/D,IAAM,kBAAkB,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC9F,IAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;QAEpC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,OAAO,C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,4CAAgB","file":"main.js","sourcesContent":["import fse from 'fs-extra';\r\nimport { Guid } from 'guid-typescript';\r\nimport pathExists from 'path-exists';\r\nimport { Common } from '../common';\r\n\r\nexport class ExtensionCreator {\r\n /**\r\n * Arguments:\r\n *\t--company - name of the company or person making the extension.\r\n *\t--tool - name of the tool / extension that is being built.\r\n * --solution - name of the solution / extension that is being built.\r\n *\t--version - tag of the version to use.\r\n * --internal - instead of referring to SDK, references point to internal shell library\r\n * @param {any} argv Object containing command arguments\r\n */\r\n constructor(private argv: any) { }\r\n\r\n public create(): void {\r\n const normalizedCompany = this.normalizeString(this.argv.company ? this.argv.company : '');\r\n const normalizedTool = this.normalizeString(this.argv.tool ? this.argv.tool : '');\r\n\r\n const version = this.argv.version ? this.argv.version.toLowerCase() : '';\r\n const extensionType = this.argv.solution ? 'solution' : 'tool';\r\n const normalizedSolution = this.argv.solution ? this.normalizeString(this.argv.solution) : '';\r\n const internal = this.argv.internal;\r\n\r\n if (this.argv.length === 0 || !this.isValidVersion(version) || !normalizedCompany || !normalizedTool) {\r\n console.error('Usage: wac create --company <company-name> --name <tool-name> --version <version-tag> [--verbose]');\r\n console.log('or');\r\n console.log('wac create --company <company-name> --solution <solution-name> --tool <tool-name> --type <tool-type> --version <version-tag> [--verbose]');\r\n console.log('Valid version tags: \\'latest\\', \\'insider\\', \\'next\\', \\'experimental\\'');\r\n console.log('More information can be found here:');\r\n process.exit(1);\r\n }\r\n\r\n if (normalizedSolution === '') {\r\n this.createHelper(extensionType, normalizedCompany, normalizedTool, '', version, internal);\r\n } else {\r\n this.createHelper(extensionType, normalizedCompany, normalizedSolution, normalizedTool, version, internal);\r\n }\r\n }\r\n\r\n private createHelper(\r\n type: string,\r\n company: string,\r\n primaryDisplayName: string,\r\n secondaryDisplayName: string,\r\n version: string,\r\n internal: boolean\r\n ): void {\r\n const ignoresPath = Common.cliRootPath + 'templates\\\\ignores';\r\n const internalPath = Common.cliRootPath + 'templates\\\\internal';\r\n const solutionPath = Common.cliRootPath + 'templates\\\\solution';\r\n const templatePath = Common.cliRootPath + 'templates\\\\wac-template';\r\n const gulpPath = Common.moduleTemplatePath;\r\n\r\n if (pathExists.sync(primaryDisplayName)) {\r\n console.error('This tool definition already exists. No changes have been made.');\r\n } else {\r\n const productPath = './' + primaryDisplayName;\r\n fse.mkdirSync(primaryDisplayName);\r\n console.log('Created ' + productPath);\r\n\r\n fse.copySync(templatePath, productPath);\r\n fse.copySync(gulpPath, productPath);\r\n fse.copyFileSync(templatePath + '\\\\gulpfile.ts\\\\config-data.ts', productPath + '\\\\gulpfile.ts\\\\config-data.ts');\r\n fse.copyFileSync(ignoresPath + '\\\\git.txt', productPath + '\\\\.gitignore');\r\n fse.copyFileSync(ignoresPath + '\\\\npm.txt', productPath + '\\\\.npmignore');\r\n fse.copyFileSync(ignoresPath + '\\\\browserslistrc.txt', productPath + '\\\\.browserslistrc');\r\n\r\n // For solution extensions, overwrite manifest and strings file\r\n if (type === 'solution') {\r\n fse.copyFileSync(solutionPath + '\\\\manifest.json', productPath + '\\\\src\\\\manifest.json');\r\n fse.copyFileSync(solutionPath + '\\\\strings.resjson', productPath + '\\\\src\\\\resources\\\\strings\\\\strings.resjson');\r\n }\r\n\r\n // For internal developers, overwrite package.json and add .npmrc\r\n if (internal) {\r\n fse.copyFileSync(internalPath + '\\\\package.json', productPath + '\\\\package.json');\r\n fse.copyFileSync(internalPath + '\\\\npmrc.txt', productPath + '\\\\.npmrc');\r\n }\r\n\r\n this.updateShellReferences(primaryDisplayName, internal);\r\n this.updateFiles(company, primaryDisplayName, secondaryDisplayName, version, internal);\r\n this.printOutro(primaryDisplayName);\r\n }\r\n }\r\n\r\n private updateShellReferences(primaryDisplayName: string, internal: boolean): void {\r\n const internalShellReference = '@msft-sme';\r\n const externalShellReference = '@microsoft/windows-admin-center-sdk';\r\n const find = internal ? externalShellReference : internalShellReference;\r\n const replace = internal ? internalShellReference : externalShellReference;\r\n\r\n // For performance reasons, all applicable files are listed here, rather than scanning all files\r\n const extensionDirectory = './' + primaryDisplayName + '/';\r\n const extensionSrcDirectory = extensionDirectory + 'src/';\r\n const extensionAppDirectory = extensionSrcDirectory + 'app/';\r\n const gulpFileDirectory = extensionDirectory + 'gulpfile.ts/';\r\n const gulpFileCommonDirectory = gulpFileDirectory + 'common/';\r\n\r\n const filesWithShellReferences = [\r\n extensionDirectory + 'angular.json',\r\n gulpFileDirectory + 'config-data.ts',\r\n gulpFileCommonDirectory + 'pack.ts',\r\n gulpFileCommonDirectory + 'powershell.ts',\r\n gulpFileCommonDirectory + 'resjson.ts',\r\n gulpFileCommonDirectory + 'test.ts',\r\n gulpFileCommonDirectory + 'validate.ts',\r\n extensionSrcDirectory + 'main.ts',\r\n extensionSrcDirectory + 'manifest.json',\r\n extensionSrcDirectory + 'polyfills.ts',\r\n extensionSrcDirectory + 'test.ts',\r\n extensionAppDirectory + 'app-routing.module.ts',\r\n extensionAppDirectory + 'app.component.ts',\r\n extensionAppDirectory + 'app.module.ts'\r\n ];\r\n\r\n const cleanFiles = {};\r\n\r\n filesWithShellReferences.forEach((file) => {\r\n cleanFiles[file] = {\r\n [find]: replace\r\n };\r\n });\r\n\r\n for (const key in cleanFiles) {\r\n if (Object.prototype.hasOwnProperty.call(cleanFiles, key)) {\r\n this.cleanFile(key, cleanFiles[key]);\r\n }\r\n }\r\n }\r\n\r\n private updateFiles(\r\n company: string,\r\n primaryDisplayName: string,\r\n secondaryDisplayName: string,\r\n version: string,\r\n internal: boolean\r\n ): void {\r\n /*\r\n / files that need updating:\r\n /\troot package.json\r\n /\tsrc/manifest.json\r\n /\tsrc/resources/strings/strings.resjson\r\n /\tsrc/main.ts\r\n /\tin Experimental: gulpfile.js\r\n */\r\n const cleanDirectory = {};\r\n const rootPackagePath = './' + primaryDisplayName + '/package.json';\r\n const manifestFilePath = './' + primaryDisplayName + '/src/manifest.json';\r\n const mainFilePath = './' + primaryDisplayName + '/src/main.ts';\r\n const stringsFilePath = './' + primaryDisplayName + '/src/resources/strings/strings.resjson';\r\n const gulpFilePath = './' + primaryDisplayName + '/gulpfile.ts/config-data.ts';\r\n\r\n const packageName = '@' + company.toLowerCase() + '/' + primaryDisplayName.toLowerCase();\r\n const manifestName = company.toLowerCase() + '.' + primaryDisplayName.toLowerCase();\r\n const stringsProduct = primaryDisplayName.split('-').join(''); // Strings file cannot handle dashes.\r\n const stringsCompany = company.split('-').join('');\r\n const companyPackageIdentifier = company.split('-').join('') + primaryDisplayName.split('-').join('');\r\n\r\n /*\r\n / Default version is 'latest' in wac-template/package.json\r\n */\r\n if (version === 'next' || version === 'insider' || version === 'experimental') {\r\n const existingVersion = '\"@microsoft/windows-admin-center-sdk\": \"latest\",';\r\n cleanDirectory[rootPackagePath] = {\r\n '@{!company-name}/{!product-name}': packageName,\r\n '\"@microsoft/windows-admin-center-sdk\": \"latest\",': existingVersion.replace('latest', version)\r\n };\r\n } else {\r\n cleanDirectory[rootPackagePath] = { '@{!company-name}/{!product-name}': packageName };\r\n }\r\n\r\n if (!internal) {\r\n this.cleanInternalPackages(rootPackagePath);\r\n }\r\n\r\n cleanDirectory[gulpFilePath] = {\r\n '{!company-name}.{!module-name}': manifestName,\r\n '{!CompanyName}{!ProductName}': stringsCompany + stringsProduct,\r\n '{!guid}': Guid.create(),\r\n '{!company-package-id}': companyPackageIdentifier\r\n };\r\n\r\n cleanDirectory[manifestFilePath] = {\r\n '{!company-name}.{!module-name}': manifestName,\r\n '{!company-name}.{!product-name}': manifestName,\r\n '{!primary-display-name}': primaryDisplayName,\r\n '{!primary-url-name}': primaryDisplayName.toLowerCase(),\r\n '{!secondary-display-name}': secondaryDisplayName,\r\n '{!secondary-url-name}': secondaryDisplayName.toLowerCase()\r\n };\r\n\r\n cleanDirectory[stringsFilePath] = {\r\n '{!product-display-name}': stringsProduct,\r\n '{!product-title}': stringsProduct,\r\n '{!primary-display-name}': primaryDisplayName,\r\n '{!secondary-display-name}': secondaryDisplayName,\r\n '{!ProductName}': stringsProduct,\r\n '{!CompanyName}': stringsCompany\r\n };\r\n\r\n cleanDirectory[mainFilePath] = { '{!company-name}.{!product-name}': manifestName };\r\n\r\n for (const key in cleanDirectory) {\r\n if (Object.prototype.hasOwnProperty.call(cleanDirectory, key)) {\r\n this.cleanFile(key, cleanDirectory[key]);\r\n }\r\n }\r\n }\r\n\r\n private cleanFile(key: string, values: any): void {\r\n console.log('Updating: ' + key);\r\n for (const valuesKey in values) {\r\n if (Object.prototype.hasOwnProperty.call(values, valuesKey)) {\r\n let fileData = fse.readFileSync(key, 'utf8');\r\n let displayNameIndex = fileData.indexOf(valuesKey);\r\n while (displayNameIndex > 0) {\r\n fileData = fileData.replace(valuesKey, values[valuesKey]);\r\n displayNameIndex = fileData.indexOf(valuesKey);\r\n }\r\n\r\n fse.outputFileSync(key, fileData);\r\n }\r\n }\r\n }\r\n\r\n private cleanInternalPackages(packagesFilePath: string): void {\r\n const packages = Common.readFileJSON(packagesFilePath);\r\n const dependencies = [packages.peerDependencies, packages.devDependencies];\r\n\r\n const shellPackageFile = Common.cliRootPath + 'src\\\\config\\\\shell-package-list.json';\r\n const shellPackages = Common.readFileJSON(shellPackageFile).packages;\r\n\r\n dependencies.forEach((target) => {\r\n for (const pack of shellPackages) {\r\n delete target[pack];\r\n }\r\n });\r\n\r\n fse.writeJSONSync(packagesFilePath, packages, { spaces: 2 });\r\n }\r\n\r\n private printOutro(product: string): void {\r\n console.log('');\r\n console.log('Thank you for using the Windows Admin Center CLI.');\r\n console.log('');\r\n console.log('Next steps:');\r\n console.log('cd into your new directory (cd ' + product + ') and then run \\'npm install\\' -> \\'gulp build\\' to build your new extension');\r\n console.log('After that, \\'gulp serve --port 4200\\' to serve your new extension on port 4200');\r\n console.log('Additional information can be found here: https://aka.ms/wacsdkdocs');\r\n }\r\n\r\n private normalizeString(input: string): string {\r\n return input.split(' ').join('-');\r\n }\r\n\r\n private isValidVersion(version: string): boolean {\r\n return version === 'latest' || version === 'next' || version === 'insider' || version === 'release' || version === '' || version === 'experimental';\r\n }\r\n}\r\n"]}
|
|
@@ -52,8 +52,10 @@
|
|
|
52
52
|
"@types/chart.js": "2.9.32",
|
|
53
53
|
"@types/gulp": "^4.0.8",
|
|
54
54
|
"@types/jasmine": "~3.6.0",
|
|
55
|
+
"@types/jquery": "3.3.29",
|
|
55
56
|
"@types/karma": "~5.0.0",
|
|
56
57
|
"@types/node": "^12.11.1",
|
|
58
|
+
"@types/signalr": "2.2.36",
|
|
57
59
|
"ajv": "6.4.0",
|
|
58
60
|
"chart.js": "2.9.4",
|
|
59
61
|
"codelyzer": "^6.0.0",
|
|
@@ -69,6 +71,7 @@
|
|
|
69
71
|
"jasmine-core": "~3.6.0",
|
|
70
72
|
"jasmine-reporters": "2.4.0",
|
|
71
73
|
"jasmine-spec-reporter": "~5.0.0",
|
|
74
|
+
"jquery": "3.6.0",
|
|
72
75
|
"karma": "~6.1.0",
|
|
73
76
|
"karma-chrome-launcher": "~3.1.0",
|
|
74
77
|
"karma-coverage": "~2.0.3",
|
|
@@ -84,6 +87,7 @@
|
|
|
84
87
|
"rxjs-tslint": "0.1.8",
|
|
85
88
|
"rxjs-tslint-rules": "4.10.0",
|
|
86
89
|
"selenium-webdriver": "3.6.0",
|
|
90
|
+
"signalr": "2.4.1",
|
|
87
91
|
"ts-helpers": "^1.1.1",
|
|
88
92
|
"ts-node": "~8.3.0",
|
|
89
93
|
"tsickle": "0.37.0",
|
|
@@ -46,8 +46,10 @@
|
|
|
46
46
|
"@types/chart.js": "2.9.32",
|
|
47
47
|
"@types/gulp": "^4.0.8",
|
|
48
48
|
"@types/jasmine": "~3.6.0",
|
|
49
|
+
"@types/jquery": "3.3.29",
|
|
49
50
|
"@types/karma": "~5.0.0",
|
|
50
51
|
"@types/node": "^12.11.1",
|
|
52
|
+
"@types/signalr": "2.2.36",
|
|
51
53
|
"ajv": "6.4.0",
|
|
52
54
|
"chart.js": "2.9.4",
|
|
53
55
|
"codelyzer": "^6.0.0",
|
|
@@ -63,6 +65,7 @@
|
|
|
63
65
|
"jasmine-core": "~3.6.0",
|
|
64
66
|
"jasmine-reporters": "2.4.0",
|
|
65
67
|
"jasmine-spec-reporter": "~5.0.0",
|
|
68
|
+
"jquery": "3.6.0",
|
|
66
69
|
"karma": "~6.1.0",
|
|
67
70
|
"karma-chrome-launcher": "~3.1.0",
|
|
68
71
|
"karma-coverage": "~2.0.3",
|
|
@@ -78,6 +81,7 @@
|
|
|
78
81
|
"rxjs-tslint": "0.1.8",
|
|
79
82
|
"rxjs-tslint-rules": "4.10.0",
|
|
80
83
|
"selenium-webdriver": "3.6.0",
|
|
84
|
+
"signalr": "2.4.1",
|
|
81
85
|
"ts-helpers": "^1.1.1",
|
|
82
86
|
"ts-node": "~8.3.0",
|
|
83
87
|
"tsickle": "0.37.0",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
3
2
|
import { DefaultComponent } from './default.component';
|
|
4
3
|
|
|
5
4
|
describe('DefaultComponent', () => {
|
|
6
5
|
let component: DefaultComponent;
|
|
7
6
|
let fixture: ComponentFixture<DefaultComponent>;
|
|
8
7
|
|
|
9
|
-
beforeEach(
|
|
8
|
+
beforeEach(waitForAsync(() => {
|
|
10
9
|
TestBed.configureTestingModule({
|
|
11
10
|
declarations: [ DefaultComponent ]
|
|
12
11
|
})
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Notification message come directly from IFeatureMessageClient on the gateway.
|
|
3
|
-
*/
|
|
4
|
-
export interface NotificationMessage {
|
|
5
|
-
/**
|
|
6
|
-
* Gets or sets the identity of notification message.
|
|
7
|
-
*/
|
|
8
|
-
id: string;
|
|
9
|
-
/**
|
|
10
|
-
* Gets or sets the started time. Set only when initially created a notification otherwise set to null.
|
|
11
|
-
*/
|
|
12
|
-
beginTime?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Gets or sets the instance time. Set always with current source time.
|
|
15
|
-
*/
|
|
16
|
-
instanceTime: string;
|
|
17
|
-
/**
|
|
18
|
-
* Gets or sets the completed time. Set when the notification message is completed or error'ed out.
|
|
19
|
-
*/
|
|
20
|
-
endTime?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Gets or sets the notification error level.
|
|
23
|
-
*/
|
|
24
|
-
errorLevel: number | string;
|
|
25
|
-
/**
|
|
26
|
-
* The title.
|
|
27
|
-
*/
|
|
28
|
-
title: string;
|
|
29
|
-
/**
|
|
30
|
-
* The message.
|
|
31
|
-
*/
|
|
32
|
-
message: string;
|
|
33
|
-
/**
|
|
34
|
-
* The notification source type.
|
|
35
|
-
*/
|
|
36
|
-
sourceType: number;
|
|
37
|
-
/** <summary>
|
|
38
|
-
* The notification source name.
|
|
39
|
-
*/
|
|
40
|
-
sourceName: string;
|
|
41
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../packages/core/notification/notification-message.ts"],"names":[],"mappings":"","file":"notification-message.js","sourcesContent":["/**\r\n * Notification message come directly from IFeatureMessageClient on the gateway.\r\n */\r\nexport interface NotificationMessage {\r\n /**\r\n * Gets or sets the identity of notification message.\r\n */\r\n id: string;\r\n\r\n /**\r\n * Gets or sets the started time. Set only when initially created a notification otherwise set to null.\r\n */\r\n beginTime?: string;\r\n\r\n /**\r\n * Gets or sets the instance time. Set always with current source time.\r\n */\r\n instanceTime: string;\r\n\r\n /**\r\n * Gets or sets the completed time. Set when the notification message is completed or error'ed out.\r\n */\r\n endTime?: string;\r\n\r\n /**\r\n * Gets or sets the notification error level.\r\n */\r\n errorLevel: number | string;\r\n\r\n /**\r\n * The title.\r\n */\r\n title: string;\r\n\r\n /**\r\n * The message.\r\n */\r\n message: string;\r\n\r\n /**\r\n * The notification source type.\r\n */\r\n sourceType: number;\r\n\r\n /** <summary>\r\n * The notification source name.\r\n */\r\n sourceName: string;\r\n}\r\n\r\n\r\n"]}
|