diff --git a/angular.json b/angular.json index ec228eb..640b3c0 100644 --- a/angular.json +++ b/angular.json @@ -81,6 +81,54 @@ "outputHashing": "all", "outputPath": "dist/production" }, + "sepehr": { + "assets": [ + { + "glob": "**/*", + "input": "public-sepehr" + } + ], + "budgets": [ + { + "maximumError": "3MB", + "maximumWarning": "2MB", + "type": "initial" + }, + { + "maximumError": "8kB", + "maximumWarning": "4kB", + "type": "anyComponentStyle" + } + ], + "fileReplacements": [ + { + "replace": "src/config.ts", + "with": "src/tenants/sepehr/config.ts" + }, + { + "replace": "src/assets/images/brandingAssets.ts", + "with": "src/tenants/sepehr/brandingAssets.ts" + }, + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.sepehr.ts" + }, + { + "replace": "src/app.routes.ts", + "with": "src/tenants/sepehr/app.routes.ts" + }, + { + "replace": "src/app/branding/branding.config.ts", + "with": "src/tenants/sepehr/branding.config.ts" + } + ], + "outputHashing": "all", + "outputPath": "dist/sepehr", + "styles": [ + "src/assets/styles.scss", + "src/assets/psp.scss" + ] + }, "staging": { "extractLicenses": true, "fileReplacements": [ @@ -100,10 +148,6 @@ "input": "public-tis" } ], - "styles": [ - "src/assets/styles.scss", - "src/assets/psp.scss" - ], "budgets": [ { "maximumError": "3MB", @@ -139,7 +183,11 @@ } ], "outputHashing": "all", - "outputPath": "dist/tis" + "outputPath": "dist/tis", + "styles": [ + "src/assets/styles.scss", + "src/assets/psp.scss" + ] }, "tis-development": { "assets": [ @@ -148,10 +196,6 @@ "input": "public-tis" } ], - "styles": [ - "src/assets/styles.scss", - "src/assets/psp.scss" - ], "budgets": [ { "maximumError": "2.5MB", @@ -190,7 +234,11 @@ "optimization": false, "outputHashing": "all", "outputPath": "dist/tis", - "sourceMap": true + "sourceMap": true, + "styles": [ + "src/assets/styles.scss", + "src/assets/psp.scss" + ] } }, "defaultConfiguration": "production", @@ -233,6 +281,9 @@ "production": { "buildTarget": "pos.client:build:production" }, + "sepehr": { + "buildTarget": "pos.client:build:sepehr" + }, "staging": { "buildTarget": "pos.client:build:staging" }, diff --git a/docker-compose.yml b/docker-compose.yml index 32f56a0..b286152 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,6 +13,18 @@ services: - "8091:8090" restart: unless-stopped + app_sepehr: + build: + context: . + dockerfile: Dockerfile + args: + TENANT: sepehr + DIST_DIR: sepehr + + ports: + - "8092:8090" + restart: unless-stopped + app_default: build: context: . diff --git a/package.json b/package.json index 78a83ea..8bc8ae4 100644 --- a/package.json +++ b/package.json @@ -56,10 +56,12 @@ "private": true, "scripts": { "build": "ng build", + "build:sepehr": "ng build --configuration sepehr", "build:tis": "ng build --configuration tis", "ng": "ng", "prestart": "node aspnetcore-https", "start": "run-script-os", + "start:sepehr": " ng serve --configuration sepehr", "start:tis": " ng serve --configuration tis", "test": "ng test", "watch": "ng build --watch --configuration development" diff --git a/public-sepehr/branding/logo.png b/public-sepehr/branding/logo.png new file mode 100644 index 0000000..d0ae1ff Binary files /dev/null and b/public-sepehr/branding/logo.png differ diff --git a/public-sepehr/favicon.ico b/public-sepehr/favicon.ico new file mode 100644 index 0000000..a96b7bf Binary files /dev/null and b/public-sepehr/favicon.ico differ diff --git a/public-sepehr/favicon/apple-touch-icon.png b/public-sepehr/favicon/apple-touch-icon.png new file mode 100644 index 0000000..d2e3f3a Binary files /dev/null and b/public-sepehr/favicon/apple-touch-icon.png differ diff --git a/public-sepehr/favicon/favicon-96x96.png b/public-sepehr/favicon/favicon-96x96.png new file mode 100644 index 0000000..15d5513 Binary files /dev/null and b/public-sepehr/favicon/favicon-96x96.png differ diff --git a/public-sepehr/favicon/favicon.ico b/public-sepehr/favicon/favicon.ico new file mode 100644 index 0000000..a96b7bf Binary files /dev/null and b/public-sepehr/favicon/favicon.ico differ diff --git a/public-sepehr/favicon/favicon.svg b/public-sepehr/favicon/favicon.svg new file mode 100644 index 0000000..f6bb1ee --- /dev/null +++ b/public-sepehr/favicon/favicon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public-sepehr/favicon/site copy.webmanifest b/public-sepehr/favicon/site copy.webmanifest new file mode 100644 index 0000000..0ba3c36 --- /dev/null +++ b/public-sepehr/favicon/site copy.webmanifest @@ -0,0 +1,21 @@ +{ + "name": "پرداخت الکترونیک سپهر", + "short_name": "پرداخت الکترونیک سپهر", + "icons": [ + { + "src": "/web-app-manifest-192x192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "/web-app-manifest-512x512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} \ No newline at end of file diff --git a/public-sepehr/favicon/site.webmanifest b/public-sepehr/favicon/site.webmanifest new file mode 100644 index 0000000..d02ac32 --- /dev/null +++ b/public-sepehr/favicon/site.webmanifest @@ -0,0 +1,36 @@ +{ + "background_color": "#ffffff", + "display": "standalone", + "icons": [ + { + "purpose": "any", + "sizes": "192x192", + "src": "/favicon/web-app-manifest-192x192.png", + "type": "image/png" + }, + { + "purpose": "maskable", + "sizes": "192x192", + "src": "/favicon/web-app-manifest-192x192.png", + "type": "image/png" + }, + { + "purpose": "any", + "sizes": "512x512", + "src": "/favicon/web-app-manifest-512x512.png", + "type": "image/png" + }, + { + "purpose": "maskable", + "sizes": "512x512", + "src": "/favicon/web-app-manifest-512x512.png", + "type": "image/png" + } + ], + "id": "/", + "name": "پرداخت الکترونیک سپهر", + "scope": "/", + "short_name": "سپهر", + "start_url": "/", + "theme_color": "#ffffff" +} diff --git a/public-sepehr/favicon/web-app-manifest-192x192.png b/public-sepehr/favicon/web-app-manifest-192x192.png new file mode 100644 index 0000000..d0ae1ff Binary files /dev/null and b/public-sepehr/favicon/web-app-manifest-192x192.png differ diff --git a/public-sepehr/favicon/web-app-manifest-512x512.png b/public-sepehr/favicon/web-app-manifest-512x512.png new file mode 100644 index 0000000..e2507ce Binary files /dev/null and b/public-sepehr/favicon/web-app-manifest-512x512.png differ diff --git a/public/favicon/site.webmanifest b/public/favicon/site.webmanifest index ac201f4..d8b38f6 100644 --- a/public/favicon/site.webmanifest +++ b/public/favicon/site.webmanifest @@ -28,9 +28,9 @@ } ], "id": "/", - "name": "نرم افزار صورتحسابهای مالیاتی پاژن", + "name": "نرم افزار صورتحسابهای مالیاتی سپاس", "scope": "/", - "short_name": "پاژن", + "short_name": "سپاس", "start_url": "/", "theme_color": "#ffffff" } diff --git a/src/app/layout/default/app.sidebar.component.html b/src/app/layout/default/app.sidebar.component.html index a2e0656..059e0ea 100644 --- a/src/app/layout/default/app.sidebar.component.html +++ b/src/app/layout/default/app.sidebar.component.html @@ -9,7 +9,7 @@