]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/angular.json
import ceph quincy 17.2.6
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / angular.json
index b64f58a32a6acfa48679ddf0d13d2f12aa8d4a5d..4bfab2baf215bad2b54307bafc51da895d113d19 100644 (file)
@@ -4,6 +4,62 @@
   "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": {
+            "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",
-              "src/favicon.ico"
+              "src/favicon.ico",
+              {
+                "glob": "**/swagger-ui.css",
+                "input": "node_modules/swagger-ui-dist",
+                "output": "."
+              },
+              {
+                "glob": "**/swagger-ui-bundle.js",
+                "input": "node_modules/swagger-ui-dist",
+                "output": "."
+              }
             ],
             "styles": [
+              "node_modules/swagger-ui/dist/swagger-ui.css",
               "node_modules/ngx-toastr/toastr.css",
-              "node_modules/bootstrap/dist/css/bootstrap.css",
-              "node_modules/fork-awesome/css/fork-awesome.css",
-              "node_modules/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css",
-              "node_modules/ngx-bootstrap/datepicker/bs-datepicker.css",
-              "src/styles.scss",
-              "src/vendor.overrides.scss",
-              "node_modules/ng2-tree/styles.css"
+              "src/styles.scss"
             ],
             "scripts": [
               "node_modules/chart.js/dist/Chart.bundle.js"
-            ]
+            ],
+            "stylePreprocessorOptions": {
+              "includePaths": [
+                "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,
-              "aot": true,
               "extractLicenses": true,
               "vendorChunk": false,
               "buildOptimizer": true,
                   "with": "src/environments/environment.prod.ts"
                 }
               ]
+            },
+            "cs": {
+              "localize": [
+                "cs"
+              ]
+            },
+            "de": {
+              "localize": [
+                "de"
+              ]
+            },
+            "en-US": {
+              "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",
           "configurations": {
             "production": {
               "browserTarget": "ceph-dashboard:build:production"
+            },
+            "cs": {
+              "browserTarget": "ceph-dashboard:build:cs"
+            },
+            "de": {
+              "browserTarget": "ceph-dashboard:build:de"
+            },
+            "en-US": {
+              "browserTarget": "ceph-dashboard:build:en-US"
+            },
+            "es": {
+              "browserTarget": "ceph-dashboard:build:es"
+            },
+            "fr": {
+              "browserTarget": "ceph-dashboard:build:fr"
+            },
+            "id": {
+              "browserTarget": "ceph-dashboard:build:id"
+            },
+            "it": {
+              "browserTarget": "ceph-dashboard:build:it"
+            },
+            "ja": {
+              "browserTarget": "ceph-dashboard:build:ja"
+            },
+            "ko": {
+              "browserTarget": "ceph-dashboard:build:ko"
+            },
+            "pl": {
+              "browserTarget": "ceph-dashboard:build:pl"
+            },
+            "pt": {
+              "browserTarget": "ceph-dashboard:build:pt"
+            },
+            "zh-Hans": {
+              "browserTarget": "ceph-dashboard:build:zh-Hans"
+            },
+            "zh-Hant": {
+              "browserTarget": "ceph-dashboard:build:zh-Hant"
             }
           }
         },
           }
         },
         "lint": {
-          "builder": "@angular-devkit/build-angular:tslint",
+          "builder": "@angular-eslint/builder:lint",
           "options": {
-            "tsConfig": [
-              "src/tsconfig.app.json",
-              "src/tsconfig.spec.json"
-            ],
-            "exclude": [
-              "**/node_modules/**"
+            "lintFilePatterns": [
+              "src/**/*.ts",
+              "src/**/*.html"
             ]
           }
         }
-      }
-    },
-    "ceph-dashboard-e2e": {
-      "root": "",
-      "sourceRoot": "",
-      "projectType": "application",
-      "architect": {
-        "e2e": {
-          "builder": "@angular-devkit/build-angular:protractor",
-          "options": {
-            "protractorConfig": "./protractor.conf.js",
-            "devServerTarget": "ceph-dashboard:serve"
-          }
-        },
-        "lint": {
-          "builder": "@angular-devkit/build-angular:tslint",
-          "options": {
-            "tsConfig": [
-              "e2e/tsconfig.e2e.json"
-            ],
-            "exclude": [
-              "**/node_modules/**"
-            ]
-          }
-        }
-      }
+      },
+      "cli": {}
     }
   },
   "defaultProject": "ceph-dashboard",
   "schematics": {
     "@schematics/angular:component": {
       "prefix": "cd",
-      "styleext": "scss"
+      "style": "scss"
     },
     "@schematics/angular:directive": {
       "prefix": "cd"
     }
+  },
+  "cli": {
+    "analytics": false,
+    "defaultCollection": "@angular-eslint/schematics"
   }
 }