]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/angular.json
import quincy beta 17.1.0
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / angular.json
index da61a75de20cc098bedd14c7b93f1d4d125b7bfe..b49c00b8cb791de6448de9ab9e5112e1198bd927 100644 (file)
@@ -4,6 +4,23 @@
   "newProjectRoot": "projects",
   "projects": {
     "ceph-dashboard": {
+      "i18n": {
+        "sourceLocale": { "code": "en-US", "baseHref": "" },
+        "locales": {
+          "cs": { "translation": "src/locale/messages.cs.xlf", "baseHref": "" },
+          "de": { "translation": "src/locale/messages.de-DE.xlf", "baseHref": "" },
+          "es": { "translation": "src/locale/messages.es-ES.xlf", "baseHref": "" },
+          "fr": { "translation": "src/locale/messages.fr-FR.xlf", "baseHref": "" },
+          "id": { "translation": "src/locale/messages.id-ID.xlf", "baseHref": "" },
+          "it": { "translation": "src/locale/messages.it-IT.xlf", "baseHref": "" },
+          "ja": { "translation": "src/locale/messages.ja-JP.xlf", "baseHref": "" },
+          "ko": { "translation": "src/locale/messages.ko-KR.xlf", "baseHref": "" },
+          "pl": { "translation": "src/locale/messages.pl-PL.xlf", "baseHref": "" },
+          "pt": { "translation": "src/locale/messages.pt-BR.xlf", "baseHref": "" },
+          "zh-Hans": { "translation": "src/locale/messages.zh-CN.xlf", "baseHref": "" },
+          "zh-Hant": { "translation": "src/locale/messages.zh-TW.xlf", "baseHref": "" }
+        }
+      },
       "root": "",
       "sourceRoot": "src",
       "projectType": "application",
         "build": {
           "builder": "@angular-devkit/build-angular:browser",
           "options": {
-            "aot": true,
-            "i18nFormat": "xlf",
+            "allowedCommonJsDependencies": [
+              "brace-expansion",
+              "chart.js",
+              "core-js",
+              "file-saver",
+              "lodash"
+            ],
             "i18nMissingTranslation": "ignore",
             "outputPath": "dist",
             "index": "src/index.html",
             "main": "src/main.ts",
-            "tsConfig": "src/tsconfig.app.json",
+            "tsConfig": "tsconfig.app.json",
             "polyfills": "src/polyfills.ts",
             "assets": [
               "src/assets",
               }
             ],
             "styles": [
+              "node_modules/swagger-ui/dist/swagger-ui.css",
               "node_modules/ngx-toastr/toastr.css",
-              "node_modules/ngx-bootstrap/datepicker/bs-datepicker.css",
-              "src/styles.scss",
-              "src/styles/vendor.overrides.scss"
-            ],
-            "scripts": [
-              "node_modules/chart.js/dist/Chart.bundle.js"
+              "src/styles.scss"
             ],
+            "scripts": ["node_modules/chart.js/dist/Chart.bundle.js"],
             "stylePreprocessorOptions": {
               "includePaths": [
-                "src/styles",
                 "src"
               ]
-            }
+            },
+            "vendorChunk": true,
+            "extractLicenses": false,
+            "buildOptimizer": false,
+            "sourceMap": true,
+            "optimization": false,
+            "namedChunks": true
           },
           "configurations": {
             "production": {
+              "budgets": [
+                {
+                  "type": "anyComponentStyle",
+                  "maximumWarning": "6kb"
+                }
+              ],
               "optimization": true,
               "outputHashing": "all",
               "sourceMap": false,
-              "extractCss": true,
               "namedChunks": false,
               "extractLicenses": true,
               "vendorChunk": false,
               ]
             },
             "cs": {
-              "outputPath": "dist/cs/",
-              "i18nFile": "src/locale/messages.cs.xlf",
-              "i18nLocale": "cs"
+              "localize": ["cs"]
             },
-            "de-DE": {
-              "outputPath": "dist/de-DE/",
-              "i18nFile": "src/locale/messages.de-DE.xlf",
-              "i18nLocale": "de-DE"
+            "de": {
+              "localize": ["de"]
             },
             "en-US": {
-              "outputPath": "dist/en-US/",
-              "i18nFile": "src/locale/messages.en-US.xlf",
-              "i18nLocale": "en-US"
-            },
-            "es-ES": {
-              "outputPath": "dist/es-ES/",
-              "i18nFile": "src/locale/messages.es-ES.xlf",
-              "i18nLocale": "es-ES"
-            },
-            "fr-FR": {
-              "outputPath": "dist/fr-FR/",
-              "i18nFile": "src/locale/messages.fr-FR.xlf",
-              "i18nLocale": "fr-FR"
-            },
-            "id-ID": {
-              "outputPath": "dist/id-ID/",
-              "i18nFile": "src/locale/messages.id-ID.xlf",
-              "i18nLocale": "id-ID"
-            },
-            "it-IT": {
-              "outputPath": "dist/it-IT/",
-              "i18nFile": "src/locale/messages.it-IT.xlf",
-              "i18nLocale": "it-IT"
-            },
-            "ja-JP": {
-              "outputPath": "dist/ja-JP/",
-              "i18nFile": "src/locale/messages.ja-JP.xlf",
-              "i18nLocale": "ja-JP"
-            },
-            "ko-KR": {
-              "outputPath": "dist/ko-KR/",
-              "i18nFile": "src/locale/messages.ko-KR.xlf",
-              "i18nLocale": "ko-KR"
-            },
-            "pl-PL": {
-              "outputPath": "dist/pl-PL/",
-              "i18nFile": "src/locale/messages.pl-PL.xlf",
-              "i18nLocale": "pl-PL"
-            },
-            "pt-BR": {
-              "outputPath": "dist/pt-BR/",
-              "i18nFile": "src/locale/messages.pt-BR.xlf",
-              "i18nLocale": "pt-BR"
-            },
-            "zh-CN": {
-              "outputPath": "dist/zh-CN/",
-              "i18nFile": "src/locale/messages.zh-CN.xlf",
-              "i18nLocale": "zh-CN"
-            },
-            "zh-TW": {
-              "outputPath": "dist/zh-TW/",
-              "i18nFile": "src/locale/messages.zh-TW.xlf",
-              "i18nLocale": "zh-TW"
+              "localize": ["en-US"]
+            },
+            "es": {
+              "localize": ["es"]
+            },
+            "fr": {
+              "localize": ["fr"]
+            },
+            "id": {
+              "localize": ["id"]
+            },
+            "it": {
+              "localize": ["it"]
+            },
+            "ja": {
+              "localize": ["ja"]
+            },
+            "ko": {
+              "localize": ["ko"]
+            },
+            "pl": {
+              "localize": ["pl"]
+            },
+            "pt": {
+              "localize": ["pt"]
+            },
+            "zh-Hans": {
+              "localize": ["zh-Hans"]
+            },
+            "zh-Hant": {
+              "localize": ["zh-Hant"]
             }
-          }
+          },
+          "defaultConfiguration": ""
         },
         "serve": {
           "builder": "@angular-devkit/build-angular:dev-server",
             "cs": {
               "browserTarget": "ceph-dashboard:build:cs"
             },
-            "de-DE": {
-              "browserTarget": "ceph-dashboard:build:de-DE"
+            "de": {
+              "browserTarget": "ceph-dashboard:build:de"
             },
             "en-US": {
               "browserTarget": "ceph-dashboard:build:en-US"
             },
-            "es-ES": {
-              "browserTarget": "ceph-dashboard:build:es-ES"
+            "es": {
+              "browserTarget": "ceph-dashboard:build:es"
             },
-            "fr-FR": {
-              "browserTarget": "ceph-dashboard:build:fr-FR"
+            "fr": {
+              "browserTarget": "ceph-dashboard:build:fr"
             },
-            "id-ID": {
-              "browserTarget": "ceph-dashboard:build:id-ID"
+            "id": {
+              "browserTarget": "ceph-dashboard:build:id"
             },
-            "it-IT": {
-              "browserTarget": "ceph-dashboard:build:it-IT"
+            "it": {
+              "browserTarget": "ceph-dashboard:build:it"
             },
-            "ja-JP": {
-              "browserTarget": "ceph-dashboard:build:ja-JP"
+            "ja": {
+              "browserTarget": "ceph-dashboard:build:ja"
             },
-            "ko-KR": {
-              "browserTarget": "ceph-dashboard:build:ko-KR"
+            "ko": {
+              "browserTarget": "ceph-dashboard:build:ko"
             },
-            "pl-PL": {
-              "browserTarget": "ceph-dashboard:build:pl-PL"
+            "pl": {
+              "browserTarget": "ceph-dashboard:build:pl"
             },
-            "pt-BR": {
-              "browserTarget": "ceph-dashboard:build:pt-BR"
+            "pt": {
+              "browserTarget": "ceph-dashboard:build:pt"
             },
-            "zh-CN": {
-              "browserTarget": "ceph-dashboard:build:zh-CN"
+            "zh-Hans": {
+              "browserTarget": "ceph-dashboard:build:zh-Hans"
             },
-            "zh-TW": {
-              "browserTarget": "ceph-dashboard:build:zh-TW"
+            "zh-Hant": {
+              "browserTarget": "ceph-dashboard:build:zh-Hant"
             }
           }
         },
           "builder": "@angular-devkit/build-angular:tslint",
           "options": {
             "tsConfig": [
-              "src/tsconfig.app.json",
-              "tsconfig.spec.json"
+              "tsconfig.app.json",
+              "tsconfig.spec.json",
+              "cypress/tsconfig.json"
             ],
             "exclude": [
               "**/node_modules/**"
   "schematics": {
     "@schematics/angular:component": {
       "prefix": "cd",
-      "styleext": "scss"
+      "style": "scss"
     },
     "@schematics/angular:directive": {
       "prefix": "cd"
     }
   },
-  "cli": {}
+  "cli": {
+    "analytics": false
+  }
 }