X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fangular.json;h=0cd827218a1b9c24abe08fcae87f3b34514fa472;hb=31a911190b27d93f6324da3d826f96c7fbc5deb6;hp=0a82b62fad1227455511dae67aa3bd98c9700c99;hpb=0bd558a0f9c7c6f1d5460e3792eaae663bf4f5e5;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/angular.json b/client/angular.json index 0a82b62fa..0cd827218 100644 --- a/client/angular.json +++ b/client/angular.json @@ -14,8 +14,8 @@ }, "locales": { "ar": { - "translation": "src/locale/angular.ar-001.xlf", - "baseHref": "/client/ar-001/" + "translation": "src/locale/angular.ar.xlf", + "baseHref": "/client/ar/" }, "hu": { "translation": "src/locale/angular.hu-HU.xlf", @@ -69,6 +69,10 @@ "translation": "src/locale/angular.ru-RU.xlf", "baseHref": "/client/ru-RU/" }, + "sq": { + "translation": "src/locale/angular.sq.xlf", + "baseHref": "/client/sq/" + }, "zh-Hans": { "translation": "src/locale/angular.zh-Hans-CN.xlf", "baseHref": "/client/zh-Hans-CN/" @@ -93,6 +97,10 @@ "translation": "src/locale/angular.ca-ES.xlf", "baseHref": "/client/ca-ES/" }, + "gl": { + "translation": "src/locale/angular.gl-ES.xlf", + "baseHref": "/client/gl-ES/" + }, "cs": { "translation": "src/locale/angular.cs-CZ.xlf", "baseHref": "/client/cs-CZ/" @@ -124,6 +132,7 @@ "builder": "@angular-devkit/build-angular:browser", "options": { "aot": true, + "localize": true, "outputPath": "dist", "index": "src/index.html", "main": "src/main.ts", @@ -141,6 +150,39 @@ "styles": [ "src/sass/application.scss" ], + "allowedCommonJsDependencies": [ + "@angularclass/hmr", + "debug", + "mousetrap", + "chart.js", + "linkifyjs/html", + "linkifyjs", + "markdown-it", + "markdown-it-emoji/light", + "sanitize-html", + "socket.io-client", + "socket.io-parser", + "@app/+about/about-peertube/about-peertube-contributors.component", + "path", + "video.js", + "p2p-media-loader-hlsjs", + "videojs-hotkeys/videojs.hotkeys", + "p2p-media-loader-core", + "qrcode", + "webtorrent", + "cache-chunk-store", + "global/document", + "videojs-vtt.js", + "videojs-vtt.js", + "@babel/runtime/helpers/possibleConstructorReturn", + "@babel/runtime/helpers/inherits", + "@babel/runtime/helpers/construct", + "@videojs/xhr", + "htmlparser2", + "url", + "parse-srcset", + "postcss" + ], "scripts": [] }, "configurations": { @@ -148,7 +190,6 @@ "optimization": true, "outputHashing": "all", "sourceMap": false, - "extractCss": true, "namedChunks": false, "aot": true, "extractLicenses": true, @@ -165,7 +206,7 @@ { "type": "anyComponentStyle", "maximumWarning": "6kb", - "maximumError": "50kb" + "maximumError": "100kb" } ], "fileReplacements": [ @@ -176,6 +217,7 @@ ] }, "hmr": { + "localize": false, "budgets": [ { "type": "anyComponentStyle", @@ -190,6 +232,7 @@ ] }, "e2e": { + "localize": false, "budgets": [ { "type": "anyComponentStyle", @@ -202,84 +245,6 @@ "with": "src/environments/environment.e2e.ts" } ] - }, - "ar-001": { - "localize": [ "ar" ] - }, - "hu-HU": { - "localize": [ "hu" ] - }, - "th-TH": { - "localize": [ "th" ] - }, - "fi-FI": { - "localize": [ "fi" ] - }, - "nl-NL": { - "localize": [ "nl" ] - }, - "gd": { - "localize": [ "gd" ] - }, - "el-GR": { - "localize": [ "el" ] - }, - "es-ES": { - "localize": [ "es" ] - }, - "oc": { - "localize": [ "oc" ] - }, - "pt-BR": { - "localize": [ "pt" ] - }, - "pt-PT": { - "localize": [ "pt-PT" ] - }, - "sv-SE": { - "localize": [ "sv" ] - }, - "pl-PL": { - "localize": [ "pl" ] - }, - "ru-RU": { - "localize": [ "ru" ] - }, - "zh-Hans-CN": { - "localize": [ "zh-Hans" ] - }, - "zh-Hant-TW": { - "localize": [ "zh-Hant" ] - }, - "fr-FR": { - "localize": [ "fr" ] - }, - "ja-JP": { - "localize": [ "ja" ] - }, - "eu-ES": { - "localize": [ "eu" ] - }, - "ca-ES": { - "localize": [ "ca" ] - }, - "cs-CZ": { - "localize": [ "cs" ] - }, - "eo": { - "localize": [ "eo" ] - }, - "de-DE": { - "localize": [ "de" ] - }, - "it-IT": { - "localize": [ "it" ] - }, - "vi-VN": { - "localize": [ "vi" ] - }, - "kab": { - "localize": [ "kab" ] } } }, @@ -348,8 +313,9 @@ "i18nBaseFile": "angular", "defaultLanguage": "en-US", "languages": [ - "ar-001", + "ar", "ca-ES", + "gl-ES", "cs-CZ", "da-DK", "de-DE", @@ -429,7 +395,7 @@ "schematics": { "@schematics/angular:component": { "prefix": "app", - "styleext": "scss" + "style": "scss" }, "@schematics/angular:directive": { "prefix": "app"