@acorex/platform-generator 18.0.10 → 18.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (18) hide show
  1. package/package.json +1 -1
  2. package/src/generators/app-module/files/project.json.template +0 -116
  3. package/src/generators/app-module/files/src/app/app.module.ts.template +5 -2
  4. package/src/generators/app-module/files/src/app/basic-interceptor.interceptor.ts.template +62 -0
  5. package/src/generators/app-module/files/src/app/modules/auth/auth-root.module.ts.template +1 -1
  6. package/src/generators/app-module/files/src/app/modules/layout/entity.loader.ts.template +5 -4
  7. package/src/generators/app-module/files/src/app/modules/layout/layout-root.module.ts.template +26 -29
  8. package/src/generators/app-module/files/src/app/modules/layout/menu.loader.ts.template +1 -1
  9. package/src/generators/app-module/files/src/app/modules/root/mock.data.ts.template +14 -0
  10. package/src/generators/app-module/files/src/app/modules/root/sample/sample.entity.ts.template +456 -159
  11. package/src/generators/app-module/files/src/assets/i18n/en/common.json +41 -0
  12. package/src/generators/app-module/files/src/assets/i18n/fa/auth.json +50 -0
  13. package/src/generators/app-module/files/src/assets/i18n/fa/common.json +220 -0
  14. package/src/generators/app-module/files/src/app/header-interceptor.interceptor.ts.template +0 -33
  15. package/src/generators/app-module/files/src/environments/environment.local.ts.template +0 -19
  16. package/src/generators/app-module/files/src/environments/environment.prod.ts.template +0 -19
  17. package/src/generators/app-module/files/src/environments/environment.test.local.ts.template +0 -19
  18. package/src/generators/app-module/files/src/environments/environment.test.ts.template +0 -19
@@ -0,0 +1,50 @@
1
+ {
2
+ "email": "ایمیل",
3
+ "password": "رمز عبور",
4
+ "confirm-password": "تأیید رمز عبور",
5
+ "username": "نام کاربری",
6
+ "username-email": "نام کاربری / ایمیل",
7
+ "firstname": "نام",
8
+ "lastname": "نام خانوادگی",
9
+ "mobile": "موبایل",
10
+ "processing": "در حال پردازش...",
11
+ "redirecting": "در حال هدایت...",
12
+ "backLogin": "بازگشت به ورود",
13
+ "signin": {
14
+ "title": "ورود",
15
+ "submit": "ورود",
16
+ "or": "یا",
17
+ "remember": "مرا به خاطر بسپار",
18
+ "hint": "ادامه به برنامه‌های خود",
19
+ "noAccount": "حساب کاربری ندارید؟",
20
+ "register": "اینجا ثبت نام کنید"
21
+ },
22
+ "signup": {
23
+ "title": "ثبت نام",
24
+ "submit": "ثبت نام",
25
+ "hint": "برنامه‌های شما فقط یک قدم جلوتر هستند",
26
+ "keepLoggedIn": "مرا به خاطر بسپار",
27
+ "hasAccount": "حساب کاربری دارید؟"
28
+ },
29
+ "tenant-chooser": {
30
+ "description": "لطفاً شرکت خود را انتخاب کرده و ادامه دهید",
31
+ "footer": "نظرتان تغییر کرده است؟"
32
+ },
33
+ "application-chooser": {
34
+ "description": "لطفاً برنامه خود را انتخاب کرده و ادامه دهید",
35
+ "footer": "نظرتان تغییر کرده است؟",
36
+ "backCompany": "شرکت دیگری را انتخاب کنید"
37
+ },
38
+ "twofactor": {
39
+ "title": "تأیید دو مرحله‌ای",
40
+ "hint": "ما یک کد به شماره موبایل شما ارسال کردیم",
41
+ "textBoxHint": "کد امنیتی 6 رقمی خود را وارد کنید"
42
+ },
43
+ "forgot": {
44
+ "password": "فراموشی رمز عبور",
45
+ "submit": "بازیابی رمز عبور",
46
+ "remember": "رمز عبور را به یاد دارید؟",
47
+ "hint": "نام خود را وارد کنید {{ name }}"
48
+ }
49
+ }
50
+
@@ -0,0 +1,220 @@
1
+ {
2
+ "search": "جستجو",
3
+ "yes": "بله",
4
+ "no": "خیر",
5
+ "confirm": "تایید",
6
+ "welcome": "خوش آمدید",
7
+ "okay": "باشه",
8
+ "accept": "پذیرفتن",
9
+ "decline": "رد کردن",
10
+ "cancel": "لغو",
11
+ "canceled": "لغو شد",
12
+ "failed": "ناموفق",
13
+ "remove": "حذف",
14
+ "edit": "ویرایش",
15
+ "delete": "حذف",
16
+ "create": "ایجاد",
17
+ "configs": "پیکربندی‌ها",
18
+ "no-result-found": "نتیجه‌ای یافت نشد",
19
+ "no-result-for": "نتیجه‌ای برای &nbsp<b>\"{{ exp }}\"</b> یافت نشد",
20
+ "searching": "در حال جستجو ...",
21
+ "save": "ذخیره",
22
+ "save-as": "ذخیره به عنوان...",
23
+ "save-changes": "ذخیره تغییرات",
24
+ "title": "عنوان",
25
+ "description": "توضیحات",
26
+ "name": "نام",
27
+ "uniquename": "نام منحصر به فرد",
28
+ "size": "اندازه",
29
+ "add-item": "افزودن آیتم",
30
+ "color": "رنگ",
31
+ "display": "نمایش",
32
+ "min-value": "حداقل مقدار",
33
+ "value": "مقدار",
34
+ "max-value": "حداکثر مقدار",
35
+ "refresh-rate": "نرخ تازه‌سازی",
36
+ "condition": "شرط",
37
+ "loading": "در حال بارگذاری",
38
+ "firstname": "نام",
39
+ "required": "الزامی",
40
+ "submit": "ارسال",
41
+ "viewAll": "مشاهده همه",
42
+ "viewLess": "مشاهده کمتر",
43
+ "processing": "در حال پردازش...",
44
+ "redirecting": "در حال انتقال...",
45
+ "apply": "اعمال",
46
+ "reset": "بازنشانی",
47
+ "create-new": "ایجاد جدید",
48
+ "continue": "ادامه",
49
+ "discard": "لغو",
50
+ "overview": "بررسی کلی",
51
+ "history": "تاریخچه",
52
+ "comments": "نظرات",
53
+ "authentication": {
54
+ "with-google": "ورود با گوگل",
55
+ "with-apple": "ورود با اپل"
56
+ },
57
+ "dateTime": {
58
+ "weekdays": {
59
+ "short": {
60
+ "0": "یک‌شنبه",
61
+ "1": "دوشنبه",
62
+ "2": "سه‌شنبه",
63
+ "3": "چهارشنبه",
64
+ "4": "پنج‌شنبه",
65
+ "5": "جمعه",
66
+ "6": "شنبه"
67
+ },
68
+ "long": {
69
+ "0": "یک‌شنبه",
70
+ "1": "دوشنبه",
71
+ "2": "سه‌شنبه",
72
+ "3": "چهارشنبه",
73
+ "4": "پنج‌شنبه",
74
+ "5": "جمعه",
75
+ "6": "شنبه"
76
+ }
77
+ },
78
+ "months": {
79
+ "georgian": {
80
+ "short": {
81
+ "0": "ژان",
82
+ "1": "فور",
83
+ "2": "مار",
84
+ "3": "آپر",
85
+ "4": "مه",
86
+ "5": "ژوئن",
87
+ "6": "ژوئیه",
88
+ "7": "آگو",
89
+ "8": "سپت",
90
+ "9": "اکت",
91
+ "10": "نوام",
92
+ "11": "دسام"
93
+ },
94
+ "long": {
95
+ "0": "ژانویه",
96
+ "1": "فوریه",
97
+ "2": "مارس",
98
+ "3": "آوریل",
99
+ "4": "مه",
100
+ "5": "ژوئن",
101
+ "6": "ژوئیه",
102
+ "7": "آگوست",
103
+ "8": "سپتامبر",
104
+ "9": "اکتبر",
105
+ "10": "نوامبر",
106
+ "11": "دسامبر"
107
+ }
108
+ },
109
+ "jalali": {
110
+ "short": {
111
+ "0": "فرورد",
112
+ "1": "اردی",
113
+ "2": "خرد",
114
+ "3": "تیر",
115
+ "4": "مرد",
116
+ "5": "شهر",
117
+ "6": "مهر",
118
+ "7": "آبان",
119
+ "8": "آذر",
120
+ "9": "دی",
121
+ "10": "بهم",
122
+ "11": "اسف"
123
+ },
124
+ "long": {
125
+ "0": "فروردین",
126
+ "1": "اردیبهشت",
127
+ "2": "خرداد",
128
+ "3": "تیر",
129
+ "4": "مرداد",
130
+ "5": "شهریور",
131
+ "6": "مهر",
132
+ "7": "آبان",
133
+ "8": "آذر",
134
+ "9": "دی",
135
+ "10": "بهمن",
136
+ "11": "اسفند"
137
+ }
138
+ }
139
+ },
140
+ "dayTime": {
141
+ "am": "صبح",
142
+ "pm": "بعد از ظهر",
143
+ "m": "م",
144
+ "a": "ق.ظ",
145
+ "p": "ب.ظ"
146
+ },
147
+ "set": "تنظیم",
148
+ "today": "امروز",
149
+ "now": "الان",
150
+ "hour": "ساعت",
151
+ "minute": "دقیقه",
152
+ "second": "ثانیه",
153
+ "date": "تاریخ",
154
+ "time": "زمان",
155
+ "duration": {
156
+ "format_second": "{0} ثانیه(ها)",
157
+ "format_minute": "{0} دقیقه(ها)"
158
+ }
159
+ },
160
+ "validation": {
161
+ "messages": {
162
+ "title": "لطفا خطا(های) زیر را اصلاح کنید:",
163
+ "required": "این فیلد الزامی است",
164
+ "email": "لطفا یک آدرس ایمیل معتبر وارد کنید!",
165
+ "phone": "لطفا یک شماره تلفن معتبر وارد کنید!",
166
+ "url": "لطفا یک آدرس وب معتبر وارد کنید!",
167
+ "invalid-rull-name": "نام قانون نامعتبر: &nbsp<b>\"{{ name }}\"</b>"
168
+ }
169
+ },
170
+ "selectbox": {
171
+ "popover": {
172
+ "title": "انتخاب آیتم..."
173
+ }
174
+ },
175
+ "datepicker": {
176
+ "popover": {
177
+ "title": "انتخاب تاریخ..."
178
+ }
179
+ },
180
+ "datapager": {
181
+ "info": {
182
+ "text": "[page] از [totalPages] صفحه ([totalItems] آیتم)"
183
+ }
184
+ },
185
+ "uploader": {
186
+ "zone": {
187
+ "text": "فایل‌ها را بیاندازید تا بارگذاری شوند"
188
+ }
189
+ },
190
+ "action-sheet": {
191
+ "title": "برگه عمل..."
192
+ },
193
+ "entity": {
194
+ "home": "خانه",
195
+ "public-view": "نمایش‌های عمومی",
196
+ "action": "عمل",
197
+ "actions": "عملیات‌ها",
198
+ "columns": "ستون‌ها",
199
+ "sort": "مرتب‌سازی",
200
+ "no-sort": "مرتب‌سازی انتخاب نشده",
201
+ "ask-sort": "لطفا فیلد(های) مرتب‌سازی را انتخاب کنید",
202
+ "add-field": "افزودن فیلد",
203
+ "modify": "ویرایش"
204
+ },
205
+ "widget": {
206
+ "phone": {
207
+ "mobile": "موبایل",
208
+ "home": "خانه",
209
+ "work": "کار",
210
+ "other": "دیگر"
211
+ },
212
+ "lookup": {
213
+ "search": "جستجو در "
214
+ }
215
+ },
216
+ "profile": {
217
+ "edit": "ویرایش پروفایل",
218
+ "logout": "خروج"
219
+ }
220
+ }
@@ -1,33 +0,0 @@
1
- import { AXPSessionService } from '@acorex/platform/auth';
2
- import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
3
- import { Injectable, inject } from '@angular/core';
4
- import { Observable, of, switchMap } from 'rxjs';
5
-
6
- @Injectable()
7
- export class headerInterceptorInterceptor implements HttpInterceptor {
8
- private sessionService = inject(AXPSessionService);
9
-
10
- intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
11
- return this.sessionService
12
- .getToken()
13
- .pipe(
14
- switchMap((token) => {
15
- let modifiedReq = req.clone();
16
- if (!(req.body instanceof FormData) && !req.headers.has('Content-Type')) {
17
- modifiedReq = modifiedReq.clone({ setHeaders: { 'Content-Type': 'application/json' } });
18
- }
19
-
20
- if (token) {
21
- modifiedReq = modifiedReq.clone({ setHeaders: { Authorization: `Bearer ${token}` } });
22
- }
23
-
24
- return next.handle(modifiedReq);
25
- })
26
- )
27
- .pipe(
28
- switchMap((response: HttpEvent<any>) => {
29
- return of(response);
30
- })
31
- );
32
- }
33
- }
@@ -1,19 +0,0 @@
1
- export const environment = {
2
- production: false,
3
- baseUrl: 'https://localhost:44320/api',
4
- //?
5
- oidcConfig: {
6
- authority: 'https://localhost:44320',
7
- userinfo_endpoint: 'https://localhost:44320/api/userinfo',
8
- scope: 'openid profile email offline_access api1',
9
- client_id: 'acorex',
10
- response_type: 'code',
11
- automaticSilentRenew: true, // Enable automatic silent renew
12
- monitorSession: true, // Monitor the session to detect user changes
13
- filterProtocolClaims: true, // Filter out OIDC protocol claims,
14
- loadUserInfo: true,
15
- showDebugInformation: true,
16
- redirect_uri: 'http://localhost:4200/auth/signincallback',
17
- silentRequestTimeoutInSeconds: 20000,
18
- },
19
- };
@@ -1,19 +0,0 @@
1
- export const environment = {
2
- production: true,
3
- baseUrl: 'https://asc.acorexui.com:44320/api',
4
- //?
5
- oidcConfig: {
6
- authority: 'https://asc.acorexui.com:44320',
7
- userinfo_endpoint: 'https://asc.acorexui.com:44320/api/userinfo',
8
- scope: 'openid profile email offline_access api1',
9
- client_id: 'acorex',
10
- response_type: 'code',
11
- automaticSilentRenew: true, // Enable automatic silent renew
12
- monitorSession: true, // Monitor the session to detect user changes
13
- filterProtocolClaims: true, // Filter out OIDC protocol claims,
14
- loadUserInfo: true,
15
- showDebugInformation: false,
16
- redirect_uri: 'https://asc.acorexui.com/auth/signincallback',
17
- silentRequestTimeoutInSeconds: 20000,
18
- },
19
- };
@@ -1,19 +0,0 @@
1
- export const environment = {
2
- production: false,
3
- baseUrl: 'https://asctest.acorexui.com:44320/api',
4
- //?
5
- oidcConfig: {
6
- authority: 'https://asctest.acorexui.com:44320',
7
- userinfo_endpoint: 'https://asctest.acorexui.com:44320/api/userinfo',
8
- scope: 'openid profile email offline_access api1',
9
- client_id: 'acorex',
10
- response_type: 'code',
11
- automaticSilentRenew: true, // Enable automatic silent renew
12
- monitorSession: true, // Monitor the session to detect user changes
13
- filterProtocolClaims: true, // Filter out OIDC protocol claims,
14
- loadUserInfo: true,
15
- showDebugInformation: true,
16
- redirect_uri: 'http://localhost:4200/auth/signincallback',
17
- silentRequestTimeoutInSeconds: 20000,
18
- },
19
- };
@@ -1,19 +0,0 @@
1
- export const environment = {
2
- production: false,
3
- baseUrl: 'https://asctest.acorexui.com:44320/api',
4
- //?
5
- oidcConfig: {
6
- authority: 'https://asctest.acorexui.com:44320',
7
- userinfo_endpoint: 'https://asctest.acorexui.com:44320/api/userinfo',
8
- scope: 'openid profile email offline_access api1',
9
- client_id: 'acorex',
10
- response_type: 'code',
11
- automaticSilentRenew: true, // Enable automatic silent renew
12
- monitorSession: true, // Monitor the session to detect user changes
13
- filterProtocolClaims: true, // Filter out OIDC protocol claims,
14
- loadUserInfo: true,
15
- showDebugInformation: true,
16
- redirect_uri: 'https://asctest.acorexui.com/auth/signincallback',
17
- silentRequestTimeoutInSeconds: 20000,
18
- },
19
- };