sevago-sso-fe 1.0.80 → 1.0.82
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.
package/dist/index.esm.js
CHANGED
|
@@ -77,7 +77,8 @@ const SSO = {
|
|
|
77
77
|
local: "http://localhost:6000",
|
|
78
78
|
develop: "https://dev.account.sevago.local",
|
|
79
79
|
staging: "https://sta.account.sevago.local",
|
|
80
|
-
production: "https://account.sevago.com.vn"
|
|
80
|
+
production: "https://account.sevago.com.vn",
|
|
81
|
+
production_vps: "https://account.sevago.com.vn"
|
|
81
82
|
};
|
|
82
83
|
const APP_OBJ = {
|
|
83
84
|
// GREEN
|
|
@@ -86,7 +87,8 @@ const APP_OBJ = {
|
|
|
86
87
|
local: "http://localhost:6003/e-hiring",
|
|
87
88
|
develop: "https://dev.admin.office.sevago.local/e-hiring",
|
|
88
89
|
staging: "https://sta.admin.office.sevago.local/e-hiring",
|
|
89
|
-
production: "https://admin.office.sevago.com.vn/e-hiring"
|
|
90
|
+
production: "https://admin.office.sevago.com.vn/e-hiring",
|
|
91
|
+
production_vps: "https://admin.office.sevago.com.vn/e-hiring"
|
|
90
92
|
},
|
|
91
93
|
icon: sevagoEHiringIcon,
|
|
92
94
|
content: "Sevago - Tuyển dụng",
|
|
@@ -101,7 +103,8 @@ const APP_OBJ = {
|
|
|
101
103
|
local: "http://localhost:6003/hr",
|
|
102
104
|
develop: "https://dev.admin.office.sevago.local/hr",
|
|
103
105
|
staging: "https://sta.admin.office.sevago.local/hr",
|
|
104
|
-
production: "https://admin.office.sevago.com.vn/hr"
|
|
106
|
+
production: "https://admin.office.sevago.com.vn/hr",
|
|
107
|
+
production_vps: "https://admin.office.sevago.com.vn/hr"
|
|
105
108
|
},
|
|
106
109
|
icon: sevagoHrmIcon,
|
|
107
110
|
content: "Sevago - Nhân sự",
|
|
@@ -116,7 +119,8 @@ const APP_OBJ = {
|
|
|
116
119
|
local: "http://localhost:6003/payroll",
|
|
117
120
|
develop: "https://dev.admin.office.sevago.local/payroll",
|
|
118
121
|
staging: "https://sta.admin.office.sevago.local/payroll",
|
|
119
|
-
production: "https://admin.office.sevago.com.vn/payroll"
|
|
122
|
+
production: "https://admin.office.sevago.com.vn/payroll",
|
|
123
|
+
production_vps: "https://admin.office.sevago.com.vn/payroll"
|
|
120
124
|
},
|
|
121
125
|
icon: sevagoPayrollIcon,
|
|
122
126
|
content: "Sevago - Lương",
|
|
@@ -131,7 +135,8 @@ const APP_OBJ = {
|
|
|
131
135
|
local: "http://localhost:6003/org",
|
|
132
136
|
develop: "https://dev.admin.office.sevago.local/org",
|
|
133
137
|
staging: "https://sta.admin.office.sevago.local/org",
|
|
134
|
-
production: "https://admin.office.sevago.com.vn/org"
|
|
138
|
+
production: "https://admin.office.sevago.com.vn/org",
|
|
139
|
+
production_vps: "https://admin.office.sevago.com.vn/org"
|
|
135
140
|
},
|
|
136
141
|
icon: sevagoChartIcon,
|
|
137
142
|
content: "Sevago - Tổ chức",
|
|
@@ -146,7 +151,8 @@ const APP_OBJ = {
|
|
|
146
151
|
local: "http://localhost:6003/checkin",
|
|
147
152
|
develop: "https://dev.admin.office.sevago.local/checkin",
|
|
148
153
|
staging: "https://sta.admin.office.sevago.local/checkin",
|
|
149
|
-
production: "https://admin.office.sevago.com.vn/checkin"
|
|
154
|
+
production: "https://admin.office.sevago.com.vn/checkin",
|
|
155
|
+
production_vps: "https://admin.office.sevago.com.vn/checkin"
|
|
150
156
|
},
|
|
151
157
|
icon: sevagoCheckinIcon,
|
|
152
158
|
content: "Sevago - Chấm công",
|
|
@@ -162,7 +168,8 @@ const APP_OBJ = {
|
|
|
162
168
|
local: "http://localhost:6003/chat",
|
|
163
169
|
develop: "https://dev.admin.office.sevago.local/chat",
|
|
164
170
|
staging: "https://sta.admin.office.sevago.local/chat",
|
|
165
|
-
production: "https://admin.office.sevago.com.vn/chat"
|
|
171
|
+
production: "https://admin.office.sevago.com.vn/chat",
|
|
172
|
+
production_vps: "https://admin.office.sevago.com.vn/chat"
|
|
166
173
|
},
|
|
167
174
|
// Chat
|
|
168
175
|
icon: sevagoMessageIcon,
|
|
@@ -178,7 +185,8 @@ const APP_OBJ = {
|
|
|
178
185
|
local: "http://localhost:6003/training",
|
|
179
186
|
develop: "https://dev.admin.office.sevago.local/training",
|
|
180
187
|
staging: "https://sta.admin.office.sevago.local/training",
|
|
181
|
-
production: "https://admin.office.sevago.com.vn/training"
|
|
188
|
+
production: "https://admin.office.sevago.com.vn/training",
|
|
189
|
+
production_vps: "https://admin.office.sevago.com.vn/training"
|
|
182
190
|
},
|
|
183
191
|
// Đào tạo
|
|
184
192
|
icon: sevagoTrainingIcon,
|
|
@@ -194,7 +202,8 @@ const APP_OBJ = {
|
|
|
194
202
|
local: "http://localhost:6003/form",
|
|
195
203
|
develop: "https://dev.admin.office.sevago.local/form",
|
|
196
204
|
staging: "https://sta.admin.office.sevago.local/form",
|
|
197
|
-
production: "https://admin.office.sevago.com.vn/form"
|
|
205
|
+
production: "https://admin.office.sevago.com.vn/form",
|
|
206
|
+
production_vps: "https://admin.office.sevago.com.vn/form"
|
|
198
207
|
},
|
|
199
208
|
// Mẫu
|
|
200
209
|
icon: sevagoFormIcon,
|
|
@@ -210,7 +219,8 @@ const APP_OBJ = {
|
|
|
210
219
|
local: "http://localhost:6003/inside",
|
|
211
220
|
develop: "https://dev.admin.office.sevago.local/inside",
|
|
212
221
|
staging: "https://sta.admin.office.sevago.local/inside",
|
|
213
|
-
production: "https://admin.office.sevago.com.vn/inside"
|
|
222
|
+
production: "https://admin.office.sevago.com.vn/inside",
|
|
223
|
+
production_vps: "https://admin.office.sevago.com.vn/inside"
|
|
214
224
|
},
|
|
215
225
|
// Truyền Thông và CSNV
|
|
216
226
|
icon: sevagoInsideIcon,
|
|
@@ -226,7 +236,8 @@ const APP_OBJ = {
|
|
|
226
236
|
local: "http://localhost:6003/booking",
|
|
227
237
|
develop: "https://dev.admin.office.sevago.local/booking",
|
|
228
238
|
staging: "https://sta.admin.office.sevago.local/booking",
|
|
229
|
-
production: "https://admin.office.sevago.com.vn/booking"
|
|
239
|
+
production: "https://admin.office.sevago.com.vn/booking",
|
|
240
|
+
production_vps: "https://admin.office.sevago.com.vn/booking"
|
|
230
241
|
},
|
|
231
242
|
icon: sevagoInsideIcon,
|
|
232
243
|
content: "Sevago - Booking",
|
|
@@ -242,7 +253,8 @@ const APP_OBJ = {
|
|
|
242
253
|
local: "http://localhost:6003/project",
|
|
243
254
|
develop: "https://dev.admin.office.sevago.local/project",
|
|
244
255
|
staging: "https://sta.admin.office.sevago.local/project",
|
|
245
|
-
production: "https://admin.office.sevago.com.vn/project"
|
|
256
|
+
production: "https://admin.office.sevago.com.vn/project",
|
|
257
|
+
production_vps: "https://admin.office.sevago.com.vn/project"
|
|
246
258
|
},
|
|
247
259
|
icon: sevagoProjectIcon,
|
|
248
260
|
content: "Sevago - Dự án",
|
|
@@ -257,7 +269,8 @@ const APP_OBJ = {
|
|
|
257
269
|
local: "http://localhost:6003/request",
|
|
258
270
|
develop: "https://dev.admin.office.sevago.local/request",
|
|
259
271
|
staging: "https://sta.admin.office.sevago.local/request",
|
|
260
|
-
production: "https://admin.office.sevago.com.vn/request"
|
|
272
|
+
production: "https://admin.office.sevago.com.vn/request",
|
|
273
|
+
production_vps: "https://admin.office.sevago.com.vn/request"
|
|
261
274
|
},
|
|
262
275
|
icon: sevagoRequestIcon,
|
|
263
276
|
content: "Sevago - Đề xuất",
|
|
@@ -272,7 +285,8 @@ const APP_OBJ = {
|
|
|
272
285
|
local: "http://localhost:6003/process",
|
|
273
286
|
develop: "https://dev.admin.office.sevago.local/process",
|
|
274
287
|
staging: "https://sta.admin.office.sevago.local/process",
|
|
275
|
-
production: "https://admin.office.sevago.com.vn/process"
|
|
288
|
+
production: "https://admin.office.sevago.com.vn/process",
|
|
289
|
+
production_vps: "https://admin.office.sevago.com.vn/process"
|
|
276
290
|
},
|
|
277
291
|
//
|
|
278
292
|
icon: sevagoIcon,
|
|
@@ -291,7 +305,8 @@ const APP_OBJ = {
|
|
|
291
305
|
local: "http://localhost:6003/workflow",
|
|
292
306
|
develop: "https://dev.admin.office.sevago.local/workflow",
|
|
293
307
|
staging: "https://sta.admin.office.sevago.local/workflow",
|
|
294
|
-
production: "https://admin.office.sevago.com.vn/workflow"
|
|
308
|
+
production: "https://admin.office.sevago.com.vn/workflow",
|
|
309
|
+
production_vps: "https://admin.office.sevago.com.vn/workflow"
|
|
295
310
|
},
|
|
296
311
|
// Quy trình
|
|
297
312
|
icon: sevagoIcon,
|
|
@@ -308,7 +323,8 @@ const APP_OBJ = {
|
|
|
308
323
|
local: "http://localhost:6005",
|
|
309
324
|
develop: "https://dev.formula-price.sevago.local",
|
|
310
325
|
staging: "https://sta.formula-price.sevago.local",
|
|
311
|
-
production: "https://formula-price.sevago.local"
|
|
326
|
+
production: "https://formula-price.sevago.local",
|
|
327
|
+
production_vps: "https://formula-price.sevago.local"
|
|
312
328
|
},
|
|
313
329
|
icon: sevagoIcon,
|
|
314
330
|
content: "Sevago - Tính giá",
|
|
@@ -323,7 +339,8 @@ const APP_OBJ = {
|
|
|
323
339
|
local: "http://localhost:6001",
|
|
324
340
|
develop: "https://dev.admin.e-catalogue.sevago.local",
|
|
325
341
|
staging: "https://sta.admin.e-catalogue.sevago.local",
|
|
326
|
-
production: "https://admin.e-catalogue.sevago.com.vn"
|
|
342
|
+
production: "https://admin.e-catalogue.sevago.com.vn",
|
|
343
|
+
production_vps: "https://admin.e-catalogue.sevago.com.vn"
|
|
327
344
|
},
|
|
328
345
|
// E-Catalogue
|
|
329
346
|
icon: sevagoIcon,
|
|
@@ -340,7 +357,8 @@ const APP_OBJ = {
|
|
|
340
357
|
local: "http://localhost:6006",
|
|
341
358
|
develop: "https://dev.admin.landing-page.sevago.local",
|
|
342
359
|
staging: "https://sta.admin.landing-page.sevago.local",
|
|
343
|
-
production: "https://admin.landing-page.sevago.com.vn"
|
|
360
|
+
production: "https://admin.landing-page.sevago.com.vn",
|
|
361
|
+
production_vps: "https://admin.landing-page.sevago.com.vn"
|
|
344
362
|
},
|
|
345
363
|
// Landing page
|
|
346
364
|
icon: sevagoIcon,
|
|
@@ -1433,6 +1451,7 @@ var OrderType = /* @__PURE__ */ ((OrderType2) => {
|
|
|
1433
1451
|
return OrderType2;
|
|
1434
1452
|
})(OrderType || {});
|
|
1435
1453
|
var Environment = /* @__PURE__ */ ((Environment2) => {
|
|
1454
|
+
Environment2["PRODUCTION_VPS"] = "production_vps";
|
|
1436
1455
|
Environment2["DEVELOP"] = "develop";
|
|
1437
1456
|
Environment2["STAGING"] = "staging";
|
|
1438
1457
|
Environment2["PRODUCTION"] = "production";
|
|
@@ -9621,8 +9640,9 @@ const AppsSidebar = ({
|
|
|
9621
9640
|
}) => {
|
|
9622
9641
|
if (!isOpen) return null;
|
|
9623
9642
|
const theme = useTheme();
|
|
9624
|
-
const appsGroupObj = Object.
|
|
9625
|
-
if (blacklist.includes(
|
|
9643
|
+
const appsGroupObj = Object.keys(APP_OBJ).reduce((r, key) => {
|
|
9644
|
+
if (blacklist.includes(key)) return r;
|
|
9645
|
+
const e = APP_OBJ[key];
|
|
9626
9646
|
if (r[e.group]) r[e.group].push(e);
|
|
9627
9647
|
else r[e.group] = [e];
|
|
9628
9648
|
return r;
|
|
@@ -9799,11 +9819,12 @@ const SystemMonitorScreen = ({ blacklist, env, onClickApp }) => {
|
|
|
9799
9819
|
/* @__PURE__ */ jsx(MotionBox, { preset: "tabContent", children: /* @__PURE__ */ jsx(
|
|
9800
9820
|
AppGrid,
|
|
9801
9821
|
{
|
|
9802
|
-
apps: Object.
|
|
9803
|
-
const
|
|
9822
|
+
apps: Object.keys(APP_OBJ).filter((key) => {
|
|
9823
|
+
const e = APP_OBJ[key];
|
|
9824
|
+
const isBlacklisted = !!blacklist?.includes(key);
|
|
9804
9825
|
const isInSelectedGroup = tab === AppGroup.ALL ? true : e.group === tab;
|
|
9805
9826
|
return !isBlacklisted && isInSelectedGroup;
|
|
9806
|
-
}),
|
|
9827
|
+
}).map((key) => APP_OBJ[key]),
|
|
9807
9828
|
iconSize: 80,
|
|
9808
9829
|
iconRadius: 7,
|
|
9809
9830
|
gap: PADDING_GAP_TAB,
|