set novin tenant
Production CI / validate-and-build (push) Failing after 1m1s

This commit is contained in:
2026-06-16 00:03:02 +03:30
parent 1a0c40ecde
commit 151eff2f7c
20 changed files with 177 additions and 5 deletions
+51
View File
@@ -51,6 +51,54 @@
"optimization": false,
"sourceMap": true
},
"novin": {
"assets": [
{
"glob": "**/*",
"input": "public-novin"
}
],
"budgets": [
{
"maximumError": "3MB",
"maximumWarning": "2MB",
"type": "initial"
},
{
"maximumError": "8kB",
"maximumWarning": "4kB",
"type": "anyComponentStyle"
}
],
"fileReplacements": [
{
"replace": "src/config.ts",
"with": "src/tenants/novin/config.ts"
},
{
"replace": "src/assets/images/brandingAssets.ts",
"with": "src/tenants/novin/brandingAssets.ts"
},
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.novin.ts"
},
{
"replace": "src/app.routes.ts",
"with": "src/tenants/novin/app.routes.ts"
},
{
"replace": "src/app/branding/branding.config.ts",
"with": "src/tenants/novin/branding.config.ts"
}
],
"outputHashing": "all",
"outputPath": "dist/novin",
"styles": [
"src/assets/styles.scss",
"src/assets/psp.scss"
]
},
"production": {
"budgets": [
{
@@ -278,6 +326,9 @@
"development": {
"buildTarget": "pos.client:build:development"
},
"novin": {
"buildTarget": "pos.client:build:novin"
},
"production": {
"buildTarget": "pos.client:build:production"
},
+15 -4
View File
@@ -13,17 +13,28 @@ services:
- "8091:8090"
restart: unless-stopped
app_sepehr:
app_novin:
build:
context: .
dockerfile: Dockerfile
args:
TENANT: sepehr
DIST_DIR: sepehr
TENANT: novin
DIST_DIR: novin
ports:
- "8092:8090"
- "8093: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:
+2
View File
@@ -56,11 +56,13 @@
"private": true,
"scripts": {
"build": "ng build",
"build:novin": "ng build --configuration novin",
"build:sepehr": "ng build --configuration sepehr",
"build:tis": "ng build --configuration tis",
"ng": "ng",
"prestart": "node aspnetcore-https",
"start": "run-script-os",
"start:novin": " ng serve --configuration novin",
"start:sepehr": " ng serve --configuration sepehr",
"start:tis": " ng serve --configuration tis",
"test": "ng test",
Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 94 KiB

+36
View File
@@ -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"
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

+13
View File
@@ -0,0 +1,13 @@
// TIS tenant environment configuration
export const environment = {
production: true,
apiBaseUrl: 'https://psp-api.shift-am.ir',
// apiBaseUrl: 'http://192.168.128.73:5002',
// apiBaseUrl: 'http://192.168.0.162:5002',
// apiBaseUrl: 'http://localhost:5002',
host: 'localhost',
port: 5011,
enableLogging: false,
enableDebug: false,
enableNativeBridge: true,
};
+2 -1
View File
@@ -3,7 +3,8 @@ export const environment = {
production: false,
// apiBaseUrl: 'http://194.59.214.243:5002',
// apiBaseUrl: 'http://192.168.128.73:5002',
apiBaseUrl: 'http://localhost:5002',
// apiBaseUrl: 'http://localhost:5002',
apiBaseUrl: 'https://psp-api.shift-am.ir',
// host: 'http://194.59.214.243',
host: 'localhost',
port: 5000,
+20
View File
@@ -0,0 +1,20 @@
import { posAuthNamedRoutes } from '@/domains/pos/modules/auth/constants';
import { POS_ROUTES } from '@/domains/pos/routes';
import { PUBLIC_SALE_INVOICES_ROUTES } from '@/modules/saleInvoices/constants';
import { Notfound } from '@/pages/notfound/notfound.component';
import { Routes } from '@angular/router';
export const appRoutes: Routes = [
{
path: '',
loadComponent: () =>
import('@/domains/pos/layouts/layout.component').then((m) => m.PosLayoutComponent),
children: [POS_ROUTES],
},
{
...posAuthNamedRoutes.login,
path: 'auth',
},
...PUBLIC_SALE_INVOICES_ROUTES,
{ path: '**', component: Notfound },
];
Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

+27
View File
@@ -0,0 +1,27 @@
import { BrandingConfig } from '../default/branding.config';
export const brandingConfig: BrandingConfig = {
appTitle: 'پرداحت نوین - مدیریت صورت‌حساب‌های مالیاتی',
manifestPath: '/favicon/site.webmanifest',
themeColor: '#ffffff',
enableInstallPrompt: true,
title: 'پرداحت نوین',
fullTitle: 'پرداحت نوین - مدیریت صورت‌حساب‌های مالیاتی',
support: {
phones: [
{
title: 'واحد پشتیبانی 1',
phones: ['021-91012345'],
},
{
title: 'واحد پشتیبانی 2',
phones: ['021-91012346'],
},
{
title: 'پاسخگویی اضطراری',
phones: ['0912-123-4567'],
},
],
workingHours: 'شنبه تا چهارشنبه: 8 صبح تا 5 عصر، پنجشنبه: 8 صبح تا 2 عصر',
},
};
+7
View File
@@ -0,0 +1,7 @@
import login from 'src/tenants/novin/assets/images/login.jpg';
import logo from 'src/tenants/novin/assets/images/logo.png';
export default {
logo,
login,
};
+3
View File
@@ -0,0 +1,3 @@
export default {
isPosApplication: true,
};