@banch0u/core-project-test-repository 2.2.3 → 2.2.8
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/README.md +104 -104
- package/dist/assets/css/antd.css +842 -842
- package/dist/assets/css/variables.css +16 -16
- package/dist/assets/fonts/fonts.css +52 -52
- package/dist/components/Button/index.module.scss +154 -154
- package/dist/components/ColSort/index.module.scss +62 -62
- package/dist/components/Delete/Delete.module.scss +22 -22
- package/dist/components/DeleteModal/DeleteModal.module.scss +11 -11
- package/dist/components/Filter/index.module.scss +99 -99
- package/dist/components/FormModal/index.js +16 -16
- package/dist/components/FormModal/index.module.scss +14 -14
- package/dist/components/ImagePreviewModal/index.js +23 -23
- package/dist/components/ImagePreviewModal/index.module.scss +27 -27
- package/dist/components/Input/index.module.scss +111 -111
- package/dist/components/Loading/index.module.scss +18 -18
- package/dist/components/NotificationDropdown/index.js +8 -8
- package/dist/components/NotificationDropdown/index.module.scss +83 -83
- package/dist/components/NotificationSettingsContent/index.module.scss +70 -70
- package/dist/components/Pagination/Pagination.module.scss +8 -8
- package/dist/components/ProfileOptions/index.js +21 -21
- package/dist/components/ProfileOptions/index.module.scss +265 -265
- package/dist/components/Select/index.module.scss +72 -72
- package/dist/components/Success/Success.module.scss +26 -26
- package/dist/components/Table/index.module.scss +76 -76
- package/dist/helpers/enums.js +10 -0
- package/dist/index.css +32 -32
- package/dist/layout/Header/AppSelect/index.module.scss +72 -72
- package/dist/layout/Header/index.module.scss +12 -12
- package/dist/layout/QuestionnairesLayout/index.module.scss +3 -3
- package/dist/layout/QuestionnairesSidebar/index.js +26 -2
- package/dist/layout/QuestionnairesSidebar/index.module.scss +77 -77
- package/dist/layout/Sidebar/index.js +15 -15
- package/dist/layout/Sidebar/index.module.scss +67 -67
- package/dist/pages/Login/index.js +15 -15
- package/dist/pages/Login/index.module.scss +123 -123
- package/dist/pages/NotFound/index.module.scss +50 -50
- package/dist/pages/Platform/index.js +15 -15
- package/dist/pages/Platform/index.module.scss +125 -125
- package/dist/pages/Questionnnaires/Questionnaires.module.scss +211 -211
- package/dist/pages/Questionnnaires/QuestionnairesAcademicdegreesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesApplicationFormContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesAreasContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesBarrelContent/constant.js +64 -0
- package/dist/pages/Questionnnaires/QuestionnairesBarrelContent/index.js +292 -0
- package/dist/pages/Questionnnaires/QuestionnairesBrandsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesCategoriesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesChassisTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesChemicalsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesColorsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesCompaniesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesContractTopicsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesContractTypesSubtypesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesContractcurrenciesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesContracttypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesContragenttypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesCountriesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesCrushReasonsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesDefaultAgreementPlansContent/index.js +23 -23
- package/dist/pages/Questionnnaires/QuestionnairesDeliveryMethodContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesDetailPartsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesDisabilitystatusesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesDocumentRecieveMethodsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesDocumentTypeContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesDocumentWhomContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesDrivingcategoriesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesEducationinstitutionsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesEducationlevelsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesEducationpaymentsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesEmployeeConfigurations/index.js +13 -13
- package/dist/pages/Questionnnaires/QuestionnairesEngineTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesExecutionRulesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesExtraServicesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesFieldContent/constant.js +64 -0
- package/dist/pages/Questionnnaires/QuestionnairesFieldContent/index.js +275 -0
- package/dist/pages/Questionnnaires/QuestionnairesFuelTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesGearboxTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesGeneralstructurestatusesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesGeneralstructuretypesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesHallsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesHonorarytitlesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesInsurancetypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesInternalStructureContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesIssuedAuthoritiesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesMarginNoteTextsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesMeasurementTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesMilitarycategoriesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesMilitarygroupsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesMilitaryranksContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesMilitarystaffsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesModelsContent/index.js +13 -13
- package/dist/pages/Questionnnaires/QuestionnairesOilFieldsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesOrdersContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesOrganizationsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesOwnersContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesOwnershipTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesPenaltyTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesPositionsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesRegionsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesRepairTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesRepairmentWorkTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesReprimandtypesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesRouteLocationsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesSpecialdaysContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesSpecializationsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesStructuresContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesSubtopicContent/index.js +15 -15
- package/dist/pages/Questionnnaires/QuestionnairesTopicContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesTransmitterTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesVehicleCategoriesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesVehicleGroupsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesVehicleTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesWarparticipantsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesWellContent/constant.js +64 -0
- package/dist/pages/Questionnnaires/QuestionnairesWellContent/index.js +280 -0
- package/dist/pages/Questionnnaires/QuestionnairesWorkModesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesWorkschedulesContent/index.js +12 -12
- package/dist/routes/QuestionnaireRoutes.js +19 -1
- package/dist/store/slices/auth/index.js +60 -60
- package/dist/store/slices/auth/service.js +20 -20
- package/dist/store/slices/companyInfo/index.js +10 -10
- package/dist/store/slices/companyInfo/service.js +4 -4
- package/dist/store/slices/employees/index.js +30 -30
- package/dist/store/slices/employees/service.js +12 -12
- package/dist/store/slices/global/index.js +170 -152
- package/dist/store/slices/notification/index.js +73 -73
- package/dist/store/slices/notification/service.js +24 -24
- package/dist/store/slices/questionnaire/index.js +9154 -8527
- package/dist/store/slices/questionnaire/service.js +3467 -3083
- package/dist/tools/questionnaireGenerator.js +12 -12
- package/dist/translations/index.json +364 -364
- package/dist/utils/axios.js +27 -141
- package/dist/utils/message.js +2 -2
- package/dist/utils/path.js +12 -0
- package/package.json +1 -1
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
.menu {
|
|
2
|
-
padding: 14px !important;
|
|
3
|
-
box-shadow: 0px 4px 4px 0px #0000001a;
|
|
4
|
-
background: #fff !important;
|
|
5
|
-
|
|
6
|
-
.form {
|
|
7
|
-
display: grid;
|
|
8
|
-
gap: 14px; // Space between items
|
|
9
|
-
|
|
10
|
-
&.grid5 {
|
|
11
|
-
grid-template-columns: repeat(5, minmax(170px, 1fr)); // 5 columns
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&.grid4 {
|
|
15
|
-
grid-template-columns: repeat(4, minmax(170px, 1fr)); // 4 columns
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&.grid3 {
|
|
19
|
-
grid-template-columns: repeat(3, minmax(170px, 1fr)); // 3 columns
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&.grid2 {
|
|
23
|
-
grid-template-columns: repeat(2, minmax(170px, 1fr)); // 2 columns
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&.grid1 {
|
|
27
|
-
grid-template-columns: repeat(1, minmax(170px, 1fr)); // 1 column
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.singleGrid {
|
|
31
|
-
grid-column: span 1; // Single grid item takes one column
|
|
32
|
-
width: 170px; // Ensure single items are 170px wide
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.doubleGrid {
|
|
36
|
-
grid-column: span 2; // Double grid item takes two columns
|
|
37
|
-
width: 334px; // Ensure double items are 334px wide
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
label {
|
|
41
|
-
font-family: Inter;
|
|
42
|
-
font-size: 14px;
|
|
43
|
-
font-weight: 400;
|
|
44
|
-
line-height: 16.94px;
|
|
45
|
-
text-align: left;
|
|
46
|
-
color: #646464;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.input,
|
|
50
|
-
.select,
|
|
51
|
-
.modal_date {
|
|
52
|
-
width: 100%; // Inherit width based on grid column
|
|
53
|
-
height: 34px;
|
|
54
|
-
border-radius: 6px;
|
|
55
|
-
padding: 8px 16px;
|
|
56
|
-
font-size: 16px;
|
|
57
|
-
font-weight: 500;
|
|
58
|
-
line-height: 24px;
|
|
59
|
-
text-align: left;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.select > div {
|
|
63
|
-
padding: 5px 16px !important;
|
|
64
|
-
border-radius: 6px !important;
|
|
65
|
-
height: 34px;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.select {
|
|
69
|
-
span {
|
|
70
|
-
font-size: 16px !important;
|
|
71
|
-
font-weight: 500 !important;
|
|
72
|
-
line-height: 24px !important;
|
|
73
|
-
text-align: left !important;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.modal_date {
|
|
78
|
-
input {
|
|
79
|
-
font-size: 16px !important;
|
|
80
|
-
font-weight: 500 !important;
|
|
81
|
-
line-height: 24px !important;
|
|
82
|
-
text-align: left !important;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.buttons {
|
|
88
|
-
display: flex;
|
|
89
|
-
justify-content: flex-end;
|
|
90
|
-
gap: 14px;
|
|
91
|
-
margin-top: 20px;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.filter_icon {
|
|
96
|
-
cursor: pointer;
|
|
97
|
-
width: 22px;
|
|
98
|
-
height: 22px;
|
|
99
|
-
}
|
|
1
|
+
.menu {
|
|
2
|
+
padding: 14px !important;
|
|
3
|
+
box-shadow: 0px 4px 4px 0px #0000001a;
|
|
4
|
+
background: #fff !important;
|
|
5
|
+
|
|
6
|
+
.form {
|
|
7
|
+
display: grid;
|
|
8
|
+
gap: 14px; // Space between items
|
|
9
|
+
|
|
10
|
+
&.grid5 {
|
|
11
|
+
grid-template-columns: repeat(5, minmax(170px, 1fr)); // 5 columns
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&.grid4 {
|
|
15
|
+
grid-template-columns: repeat(4, minmax(170px, 1fr)); // 4 columns
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&.grid3 {
|
|
19
|
+
grid-template-columns: repeat(3, minmax(170px, 1fr)); // 3 columns
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.grid2 {
|
|
23
|
+
grid-template-columns: repeat(2, minmax(170px, 1fr)); // 2 columns
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.grid1 {
|
|
27
|
+
grid-template-columns: repeat(1, minmax(170px, 1fr)); // 1 column
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.singleGrid {
|
|
31
|
+
grid-column: span 1; // Single grid item takes one column
|
|
32
|
+
width: 170px; // Ensure single items are 170px wide
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.doubleGrid {
|
|
36
|
+
grid-column: span 2; // Double grid item takes two columns
|
|
37
|
+
width: 334px; // Ensure double items are 334px wide
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
label {
|
|
41
|
+
font-family: Inter;
|
|
42
|
+
font-size: 14px;
|
|
43
|
+
font-weight: 400;
|
|
44
|
+
line-height: 16.94px;
|
|
45
|
+
text-align: left;
|
|
46
|
+
color: #646464;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.input,
|
|
50
|
+
.select,
|
|
51
|
+
.modal_date {
|
|
52
|
+
width: 100%; // Inherit width based on grid column
|
|
53
|
+
height: 34px;
|
|
54
|
+
border-radius: 6px;
|
|
55
|
+
padding: 8px 16px;
|
|
56
|
+
font-size: 16px;
|
|
57
|
+
font-weight: 500;
|
|
58
|
+
line-height: 24px;
|
|
59
|
+
text-align: left;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.select > div {
|
|
63
|
+
padding: 5px 16px !important;
|
|
64
|
+
border-radius: 6px !important;
|
|
65
|
+
height: 34px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.select {
|
|
69
|
+
span {
|
|
70
|
+
font-size: 16px !important;
|
|
71
|
+
font-weight: 500 !important;
|
|
72
|
+
line-height: 24px !important;
|
|
73
|
+
text-align: left !important;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.modal_date {
|
|
78
|
+
input {
|
|
79
|
+
font-size: 16px !important;
|
|
80
|
+
font-weight: 500 !important;
|
|
81
|
+
line-height: 24px !important;
|
|
82
|
+
text-align: left !important;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.buttons {
|
|
88
|
+
display: flex;
|
|
89
|
+
justify-content: flex-end;
|
|
90
|
+
gap: 14px;
|
|
91
|
+
margin-top: 20px;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.filter_icon {
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
width: 22px;
|
|
98
|
+
height: 22px;
|
|
99
|
+
}
|
|
@@ -73,38 +73,38 @@ var FormModal = function FormModal(_ref, ref) {
|
|
|
73
73
|
setIsVisible(false);
|
|
74
74
|
};
|
|
75
75
|
var onFormSubmit = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
76
|
-
var data;
|
|
77
|
-
return _regeneratorRuntime.wrap(function
|
|
76
|
+
var data, _t;
|
|
77
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
78
78
|
while (1) switch (_context.prev = _context.next) {
|
|
79
79
|
case 0:
|
|
80
80
|
_context.prev = 0;
|
|
81
81
|
data = form.getFieldsValue();
|
|
82
82
|
if (!(_isEditing && onEdit !== undefined)) {
|
|
83
|
-
_context.next =
|
|
83
|
+
_context.next = 2;
|
|
84
84
|
break;
|
|
85
85
|
}
|
|
86
|
-
_context.next =
|
|
86
|
+
_context.next = 1;
|
|
87
87
|
return onEdit(form.getFieldValue("id"), data);
|
|
88
|
-
case
|
|
89
|
-
_context.next =
|
|
88
|
+
case 1:
|
|
89
|
+
_context.next = 3;
|
|
90
90
|
break;
|
|
91
|
-
case
|
|
92
|
-
_context.next =
|
|
91
|
+
case 2:
|
|
92
|
+
_context.next = 3;
|
|
93
93
|
return onSubmit(data);
|
|
94
|
-
case
|
|
94
|
+
case 3:
|
|
95
95
|
form.resetFields();
|
|
96
96
|
setIsVisible(false);
|
|
97
|
-
_context.next =
|
|
97
|
+
_context.next = 5;
|
|
98
98
|
break;
|
|
99
|
-
case
|
|
100
|
-
_context.prev =
|
|
101
|
-
|
|
102
|
-
console.log(
|
|
103
|
-
case
|
|
99
|
+
case 4:
|
|
100
|
+
_context.prev = 4;
|
|
101
|
+
_t = _context["catch"](0);
|
|
102
|
+
console.log(_t);
|
|
103
|
+
case 5:
|
|
104
104
|
case "end":
|
|
105
105
|
return _context.stop();
|
|
106
106
|
}
|
|
107
|
-
}, _callee, null, [[0,
|
|
107
|
+
}, _callee, null, [[0, 4]]);
|
|
108
108
|
})), [form, _isEditing, onEdit, onSubmit]);
|
|
109
109
|
var onDelete = useCallback(function (id) {
|
|
110
110
|
onDelete(id);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
.absolute {
|
|
2
|
-
position: absolute;
|
|
3
|
-
right: 5px;
|
|
4
|
-
top: 105px;
|
|
5
|
-
}
|
|
6
|
-
.buttons {
|
|
7
|
-
display: flex;
|
|
8
|
-
gap: 10px;
|
|
9
|
-
justify-content: flex-end;
|
|
10
|
-
margin-top: 44px;
|
|
11
|
-
button {
|
|
12
|
-
padding: 10px 20px;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
1
|
+
.absolute {
|
|
2
|
+
position: absolute;
|
|
3
|
+
right: 5px;
|
|
4
|
+
top: 105px;
|
|
5
|
+
}
|
|
6
|
+
.buttons {
|
|
7
|
+
display: flex;
|
|
8
|
+
gap: 10px;
|
|
9
|
+
justify-content: flex-end;
|
|
10
|
+
margin-top: 44px;
|
|
11
|
+
button {
|
|
12
|
+
padding: 10px 20px;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -22,60 +22,60 @@ var ImagePreviewModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
22
22
|
setLoading = _useState6[1];
|
|
23
23
|
var fetchImages = /*#__PURE__*/function () {
|
|
24
24
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(urls) {
|
|
25
|
-
var base64List;
|
|
26
|
-
return _regeneratorRuntime.wrap(function
|
|
25
|
+
var base64List, _t2;
|
|
26
|
+
return _regeneratorRuntime.wrap(function (_context2) {
|
|
27
27
|
while (1) switch (_context2.prev = _context2.next) {
|
|
28
28
|
case 0:
|
|
29
29
|
_context2.prev = 0;
|
|
30
30
|
setLoading(true);
|
|
31
|
-
_context2.next =
|
|
31
|
+
_context2.next = 1;
|
|
32
32
|
return Promise.all(urls.map(/*#__PURE__*/function () {
|
|
33
33
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(url) {
|
|
34
|
-
var res;
|
|
35
|
-
return _regeneratorRuntime.wrap(function
|
|
34
|
+
var res, _t;
|
|
35
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
36
36
|
while (1) switch (_context.prev = _context.next) {
|
|
37
37
|
case 0:
|
|
38
38
|
_context.prev = 0;
|
|
39
|
-
_context.next =
|
|
39
|
+
_context.next = 1;
|
|
40
40
|
return api.get(url, {
|
|
41
41
|
responseType: "text"
|
|
42
42
|
});
|
|
43
|
-
case
|
|
43
|
+
case 1:
|
|
44
44
|
res = _context.sent;
|
|
45
45
|
return _context.abrupt("return", res.data);
|
|
46
|
-
case
|
|
47
|
-
_context.prev =
|
|
48
|
-
|
|
46
|
+
case 2:
|
|
47
|
+
_context.prev = 2;
|
|
48
|
+
_t = _context["catch"](0);
|
|
49
49
|
console.error("Failed to load image:", url);
|
|
50
50
|
return _context.abrupt("return", null);
|
|
51
|
-
case
|
|
51
|
+
case 3:
|
|
52
52
|
case "end":
|
|
53
53
|
return _context.stop();
|
|
54
54
|
}
|
|
55
|
-
}, _callee, null, [[0,
|
|
55
|
+
}, _callee, null, [[0, 2]]);
|
|
56
56
|
}));
|
|
57
57
|
return function (_x2) {
|
|
58
58
|
return _ref3.apply(this, arguments);
|
|
59
59
|
};
|
|
60
60
|
}()));
|
|
61
|
-
case
|
|
61
|
+
case 1:
|
|
62
62
|
base64List = _context2.sent;
|
|
63
63
|
setImages(base64List.filter(Boolean));
|
|
64
|
-
_context2.next =
|
|
64
|
+
_context2.next = 3;
|
|
65
65
|
break;
|
|
66
|
-
case
|
|
67
|
-
_context2.prev =
|
|
68
|
-
|
|
69
|
-
console.error("Image load failed",
|
|
70
|
-
case
|
|
71
|
-
_context2.prev =
|
|
66
|
+
case 2:
|
|
67
|
+
_context2.prev = 2;
|
|
68
|
+
_t2 = _context2["catch"](0);
|
|
69
|
+
console.error("Image load failed", _t2);
|
|
70
|
+
case 3:
|
|
71
|
+
_context2.prev = 3;
|
|
72
72
|
setLoading(false);
|
|
73
|
-
return _context2.finish(
|
|
74
|
-
case
|
|
73
|
+
return _context2.finish(3);
|
|
74
|
+
case 4:
|
|
75
75
|
case "end":
|
|
76
76
|
return _context2.stop();
|
|
77
77
|
}
|
|
78
|
-
}, _callee2, null, [[0,
|
|
78
|
+
}, _callee2, null, [[0, 2, 3, 4]]);
|
|
79
79
|
}));
|
|
80
80
|
return function fetchImages(_x) {
|
|
81
81
|
return _ref2.apply(this, arguments);
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
// .imageContainer {
|
|
2
|
-
// display: flex;
|
|
3
|
-
// flex-direction: column;
|
|
4
|
-
// justify-content: center;
|
|
5
|
-
// align-items: center;
|
|
6
|
-
// gap: 16px;
|
|
7
|
-
// justify-content: center;
|
|
8
|
-
// flex-wrap: wrap;
|
|
9
|
-
// img {
|
|
10
|
-
// height: 300px;
|
|
11
|
-
// width: auto;
|
|
12
|
-
// border: 1px solid grey;
|
|
13
|
-
// border-radius: 8px;
|
|
14
|
-
// }
|
|
15
|
-
// }
|
|
16
|
-
|
|
17
|
-
// .image {
|
|
18
|
-
// max-width: 250px;
|
|
19
|
-
// max-height: 250px;
|
|
20
|
-
// border-radius: 8px;
|
|
21
|
-
// object-fit: contain;
|
|
22
|
-
// }
|
|
23
|
-
|
|
24
|
-
// .modal {
|
|
25
|
-
// padding: 20px !important;
|
|
26
|
-
// background: #fff !important;
|
|
27
|
-
// }
|
|
1
|
+
// .imageContainer {
|
|
2
|
+
// display: flex;
|
|
3
|
+
// flex-direction: column;
|
|
4
|
+
// justify-content: center;
|
|
5
|
+
// align-items: center;
|
|
6
|
+
// gap: 16px;
|
|
7
|
+
// justify-content: center;
|
|
8
|
+
// flex-wrap: wrap;
|
|
9
|
+
// img {
|
|
10
|
+
// height: 300px;
|
|
11
|
+
// width: auto;
|
|
12
|
+
// border: 1px solid grey;
|
|
13
|
+
// border-radius: 8px;
|
|
14
|
+
// }
|
|
15
|
+
// }
|
|
16
|
+
|
|
17
|
+
// .image {
|
|
18
|
+
// max-width: 250px;
|
|
19
|
+
// max-height: 250px;
|
|
20
|
+
// border-radius: 8px;
|
|
21
|
+
// object-fit: contain;
|
|
22
|
+
// }
|
|
23
|
+
|
|
24
|
+
// .modal {
|
|
25
|
+
// padding: 20px !important;
|
|
26
|
+
// background: #fff !important;
|
|
27
|
+
// }
|
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
.input {
|
|
2
|
-
padding: 9px 16px !important;
|
|
3
|
-
border-radius: 6px !important;
|
|
4
|
-
font-size: 16px !important;
|
|
5
|
-
font-weight: 500 !important;
|
|
6
|
-
line-height: 24px !important;
|
|
7
|
-
text-align: left !important;
|
|
8
|
-
height: 48px;
|
|
9
|
-
width: 100%;
|
|
10
|
-
input {
|
|
11
|
-
padding: 0 !important;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
.input_xs {
|
|
15
|
-
border-radius: 6px !important;
|
|
16
|
-
font-size: 14px !important;
|
|
17
|
-
font-weight: 500 !important;
|
|
18
|
-
line-height: 24px !important;
|
|
19
|
-
text-align: left !important;
|
|
20
|
-
height: 26px;
|
|
21
|
-
width: 100%;
|
|
22
|
-
input {
|
|
23
|
-
padding: 0 !important;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
.input_sm {
|
|
27
|
-
padding: 9px 16px !important;
|
|
28
|
-
border-radius: 6px !important;
|
|
29
|
-
font-size: 16px !important;
|
|
30
|
-
font-weight: 500 !important;
|
|
31
|
-
line-height: 24px !important;
|
|
32
|
-
text-align: left !important;
|
|
33
|
-
height: 34px;
|
|
34
|
-
width: 100%;
|
|
35
|
-
input {
|
|
36
|
-
padding: 0 !important;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
.input_md {
|
|
40
|
-
padding: 9px 16px !important;
|
|
41
|
-
border-radius: 6px !important;
|
|
42
|
-
font-size: 16px !important;
|
|
43
|
-
font-weight: 500 !important;
|
|
44
|
-
line-height: 24px !important;
|
|
45
|
-
text-align: left !important;
|
|
46
|
-
height: 42px;
|
|
47
|
-
width: 100%;
|
|
48
|
-
input {
|
|
49
|
-
padding: 0 !important;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.textarea {
|
|
54
|
-
padding: 9px 16px !important;
|
|
55
|
-
border-radius: 6px !important;
|
|
56
|
-
font-size: 16px !important;
|
|
57
|
-
font-weight: 500 !important;
|
|
58
|
-
line-height: 24px !important;
|
|
59
|
-
text-align: left !important;
|
|
60
|
-
}
|
|
61
|
-
.date {
|
|
62
|
-
padding: 8px 16px !important;
|
|
63
|
-
// border: 1px solid #bdbdbd !important;
|
|
64
|
-
border-radius: 6px !important;
|
|
65
|
-
width: 100%;
|
|
66
|
-
height: 48px;
|
|
67
|
-
input {
|
|
68
|
-
font-size: 16px !important;
|
|
69
|
-
font-weight: 500 !important;
|
|
70
|
-
line-height: 24px !important;
|
|
71
|
-
text-align: left !important;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
.date_xs {
|
|
75
|
-
padding: 8px 16px !important;
|
|
76
|
-
// border: 1px solid #bdbdbd !important;
|
|
77
|
-
border-radius: 6px !important;
|
|
78
|
-
width: 100%;
|
|
79
|
-
height: 26px;
|
|
80
|
-
input {
|
|
81
|
-
font-size: 16px !important;
|
|
82
|
-
font-weight: 500 !important;
|
|
83
|
-
line-height: 24px !important;
|
|
84
|
-
text-align: left !important;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
.date_sm {
|
|
88
|
-
padding: 8px 16px !important;
|
|
89
|
-
// border: 1px solid #bdbdbd !important;
|
|
90
|
-
border-radius: 6px !important;
|
|
91
|
-
width: 100%;
|
|
92
|
-
height: 34px;
|
|
93
|
-
input {
|
|
94
|
-
font-size: 16px !important;
|
|
95
|
-
font-weight: 500 !important;
|
|
96
|
-
line-height: 24px !important;
|
|
97
|
-
text-align: left !important;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
.date_md {
|
|
101
|
-
padding: 8px 16px !important;
|
|
102
|
-
border-radius: 6px !important;
|
|
103
|
-
width: 100%;
|
|
104
|
-
height: 42px;
|
|
105
|
-
input {
|
|
106
|
-
font-size: 16px !important;
|
|
107
|
-
font-weight: 500 !important;
|
|
108
|
-
line-height: 24px !important;
|
|
109
|
-
text-align: left !important;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
1
|
+
.input {
|
|
2
|
+
padding: 9px 16px !important;
|
|
3
|
+
border-radius: 6px !important;
|
|
4
|
+
font-size: 16px !important;
|
|
5
|
+
font-weight: 500 !important;
|
|
6
|
+
line-height: 24px !important;
|
|
7
|
+
text-align: left !important;
|
|
8
|
+
height: 48px;
|
|
9
|
+
width: 100%;
|
|
10
|
+
input {
|
|
11
|
+
padding: 0 !important;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
.input_xs {
|
|
15
|
+
border-radius: 6px !important;
|
|
16
|
+
font-size: 14px !important;
|
|
17
|
+
font-weight: 500 !important;
|
|
18
|
+
line-height: 24px !important;
|
|
19
|
+
text-align: left !important;
|
|
20
|
+
height: 26px;
|
|
21
|
+
width: 100%;
|
|
22
|
+
input {
|
|
23
|
+
padding: 0 !important;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
.input_sm {
|
|
27
|
+
padding: 9px 16px !important;
|
|
28
|
+
border-radius: 6px !important;
|
|
29
|
+
font-size: 16px !important;
|
|
30
|
+
font-weight: 500 !important;
|
|
31
|
+
line-height: 24px !important;
|
|
32
|
+
text-align: left !important;
|
|
33
|
+
height: 34px;
|
|
34
|
+
width: 100%;
|
|
35
|
+
input {
|
|
36
|
+
padding: 0 !important;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
.input_md {
|
|
40
|
+
padding: 9px 16px !important;
|
|
41
|
+
border-radius: 6px !important;
|
|
42
|
+
font-size: 16px !important;
|
|
43
|
+
font-weight: 500 !important;
|
|
44
|
+
line-height: 24px !important;
|
|
45
|
+
text-align: left !important;
|
|
46
|
+
height: 42px;
|
|
47
|
+
width: 100%;
|
|
48
|
+
input {
|
|
49
|
+
padding: 0 !important;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.textarea {
|
|
54
|
+
padding: 9px 16px !important;
|
|
55
|
+
border-radius: 6px !important;
|
|
56
|
+
font-size: 16px !important;
|
|
57
|
+
font-weight: 500 !important;
|
|
58
|
+
line-height: 24px !important;
|
|
59
|
+
text-align: left !important;
|
|
60
|
+
}
|
|
61
|
+
.date {
|
|
62
|
+
padding: 8px 16px !important;
|
|
63
|
+
// border: 1px solid #bdbdbd !important;
|
|
64
|
+
border-radius: 6px !important;
|
|
65
|
+
width: 100%;
|
|
66
|
+
height: 48px;
|
|
67
|
+
input {
|
|
68
|
+
font-size: 16px !important;
|
|
69
|
+
font-weight: 500 !important;
|
|
70
|
+
line-height: 24px !important;
|
|
71
|
+
text-align: left !important;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
.date_xs {
|
|
75
|
+
padding: 8px 16px !important;
|
|
76
|
+
// border: 1px solid #bdbdbd !important;
|
|
77
|
+
border-radius: 6px !important;
|
|
78
|
+
width: 100%;
|
|
79
|
+
height: 26px;
|
|
80
|
+
input {
|
|
81
|
+
font-size: 16px !important;
|
|
82
|
+
font-weight: 500 !important;
|
|
83
|
+
line-height: 24px !important;
|
|
84
|
+
text-align: left !important;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
.date_sm {
|
|
88
|
+
padding: 8px 16px !important;
|
|
89
|
+
// border: 1px solid #bdbdbd !important;
|
|
90
|
+
border-radius: 6px !important;
|
|
91
|
+
width: 100%;
|
|
92
|
+
height: 34px;
|
|
93
|
+
input {
|
|
94
|
+
font-size: 16px !important;
|
|
95
|
+
font-weight: 500 !important;
|
|
96
|
+
line-height: 24px !important;
|
|
97
|
+
text-align: left !important;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
.date_md {
|
|
101
|
+
padding: 8px 16px !important;
|
|
102
|
+
border-radius: 6px !important;
|
|
103
|
+
width: 100%;
|
|
104
|
+
height: 42px;
|
|
105
|
+
input {
|
|
106
|
+
font-size: 16px !important;
|
|
107
|
+
font-weight: 500 !important;
|
|
108
|
+
line-height: 24px !important;
|
|
109
|
+
text-align: left !important;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
.spinner {
|
|
2
|
-
position: absolute;
|
|
3
|
-
top: 50%;
|
|
4
|
-
left: 50%;
|
|
5
|
-
transform: translate(-50%, -50%);
|
|
6
|
-
color: red !important;
|
|
7
|
-
z-index: 9999;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.overlay {
|
|
11
|
-
height: 100vh;
|
|
12
|
-
width: 100%;
|
|
13
|
-
position: absolute;
|
|
14
|
-
top: 0;
|
|
15
|
-
left: 0;
|
|
16
|
-
background: #ffffff50;
|
|
17
|
-
z-index: 9999;
|
|
18
|
-
}
|
|
1
|
+
.spinner {
|
|
2
|
+
position: absolute;
|
|
3
|
+
top: 50%;
|
|
4
|
+
left: 50%;
|
|
5
|
+
transform: translate(-50%, -50%);
|
|
6
|
+
color: red !important;
|
|
7
|
+
z-index: 9999;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.overlay {
|
|
11
|
+
height: 100vh;
|
|
12
|
+
width: 100%;
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 0;
|
|
15
|
+
left: 0;
|
|
16
|
+
background: #ffffff50;
|
|
17
|
+
z-index: 9999;
|
|
18
|
+
}
|