Muhammad Iqbal Afandi před 3 roky
rodič
revize
9a9996c4b6

+ 21
- 5
public/js/resources_js_pages_Auth_Login_vue.js Zobrazit soubor

@@ -134,6 +134,22 @@ __webpack_require__.r(__webpack_exports__);
134 134
       type: String,
135 135
       required: true
136 136
     },
137
+    promptLabel: {
138
+      type: String,
139
+      "default": 'Masukan kata sandi'
140
+    },
141
+    weakLabel: {
142
+      type: String,
143
+      "default": 'Ah Lemah'
144
+    },
145
+    mediumLabel: {
146
+      type: String,
147
+      "default": 'Lumayan'
148
+    },
149
+    strongLabel: {
150
+      type: String,
151
+      "default": 'Wow Kuat'
152
+    },
137 153
     error: {
138 154
       type: String,
139 155
       "default": null
@@ -408,10 +424,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
408 424
   , _hoisted_2), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_Password, {
409 425
     "class": "w-full",
410 426
     "input-class": "w-full",
411
-    promptLabel: "Masukan kata sandi",
412
-    weakLabel: "Ah Lemah",
413
-    mediumLabel: "Lumayan",
414
-    strongLabel: "Wow Kuat",
427
+    promptLabel: $props.promptLabel,
428
+    weakLabel: $props.weakLabel,
429
+    mediumLabel: $props.mediumLabel,
430
+    strongLabel: $props.strongLabel,
415 431
     disabled: $props.disabled,
416 432
     id: $setup.forLabel,
417 433
     placeholder: $props.placeholder,
@@ -424,7 +440,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
424 440
     })
425 441
   }, null, 8
426 442
   /* PROPS */
427
-  , ["disabled", "id", "placeholder", "aria-describedby", "value", "model-value"]), $props.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("small", {
443
+  , ["promptLabel", "weakLabel", "mediumLabel", "strongLabel", "disabled", "id", "placeholder", "aria-describedby", "value", "model-value"]), $props.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("small", {
428 444
     key: 0,
429 445
     id: $setup.ariaDescribedbyLabel,
430 446
     "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)({

+ 1
- 1
public/js/resources_js_pages_Users_Index_vue.js Zobrazit soubor

@@ -1029,7 +1029,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1029 1029
         header: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(function () {
1030 1030
           return [_hoisted_1, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_2, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_3, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_4, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_InputText, {
1031 1031
             "class": "w-full md:w-27rem",
1032
-            placeholder: "cari, contoh: tina, tina@xx.com",
1032
+            placeholder: "cari, contoh: tina",
1033 1033
             modelValue: $setup.search,
1034 1034
             "onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
1035 1035
               return $setup.search = $event;

+ 21
- 5
public/js/resources_js_pages_Users_Show_vue.js Zobrazit soubor

@@ -134,6 +134,22 @@ __webpack_require__.r(__webpack_exports__);
134 134
       type: String,
135 135
       required: true
136 136
     },
137
+    promptLabel: {
138
+      type: String,
139
+      "default": 'Masukan kata sandi'
140
+    },
141
+    weakLabel: {
142
+      type: String,
143
+      "default": 'Ah Lemah'
144
+    },
145
+    mediumLabel: {
146
+      type: String,
147
+      "default": 'Lumayan'
148
+    },
149
+    strongLabel: {
150
+      type: String,
151
+      "default": 'Wow Kuat'
152
+    },
137 153
     error: {
138 154
       type: String,
139 155
       "default": null
@@ -626,10 +642,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
626 642
   , _hoisted_2), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_Password, {
627 643
     "class": "w-full",
628 644
     "input-class": "w-full",
629
-    promptLabel: "Masukan kata sandi",
630
-    weakLabel: "Ah Lemah",
631
-    mediumLabel: "Lumayan",
632
-    strongLabel: "Wow Kuat",
645
+    promptLabel: $props.promptLabel,
646
+    weakLabel: $props.weakLabel,
647
+    mediumLabel: $props.mediumLabel,
648
+    strongLabel: $props.strongLabel,
633 649
     disabled: $props.disabled,
634 650
     id: $setup.forLabel,
635 651
     placeholder: $props.placeholder,
@@ -642,7 +658,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
642 658
     })
643 659
   }, null, 8
644 660
   /* PROPS */
645
-  , ["disabled", "id", "placeholder", "aria-describedby", "value", "model-value"]), $props.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("small", {
661
+  , ["promptLabel", "weakLabel", "mediumLabel", "strongLabel", "disabled", "id", "placeholder", "aria-describedby", "value", "model-value"]), $props.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("small", {
646 662
     key: 0,
647 663
     id: $setup.ariaDescribedbyLabel,
648 664
     "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)({

+ 2
- 2
public/js/vue.js Zobrazit soubor

@@ -21600,7 +21600,7 @@ __webpack_require__.r(__webpack_exports__);
21600 21600
 
21601 21601
 var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
21602 21602
 // Module
21603
-___CSS_LOADER_EXPORT___.push([module.id, "/*\n  Default style\n*/\n* {\n  box-sizing: border-box;\n}\n\nhtml {\n  height: 100%;\n  font-size: 14px;\n}\n\nbody {\n  font-family: var(--font-family);\n  color: var(--text-color);\n  background-color: var(--surface-ground);\n  margin: 0;\n  padding: 0;\n  min-height: 100%;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.layout-topbar-menu-tooltip.p-tooltip {\n  position: absolute;\n  z-index: 997;\n  display: none;\n  padding: 0.25em 0.5rem;\n  max-width: 12.5rem;\n}\n\n/*\n  Typography\n*/\na {\n  text-decoration: none;\n  color: var(--primary-color);\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n  margin: 0.5rem 0 0.5rem 0;\n  font-family: inherit;\n  font-weight: 500;\n  line-height: 1.2;\n  color: inherit;\n\n  &:first-child {\n    margin-top: 0;\n  }\n}\n\nh1 {\n  font-size: 2.5rem;\n}\n\nh2 {\n  font-size: 2rem;\n}\n\nh3 {\n  font-size: 1.75rem;\n}\n\nh4 {\n  font-size: 1.5rem;\n}\n\nh5 {\n  font-size: 1.25rem;\n}\n\nh6 {\n  font-size: 1rem;\n}\n\nmark {\n  background: #fff8e1;\n  padding: 0.25rem 0.4rem;\n  border-radius: 12px;\n  font-family: monospace;\n}\n\nblockquote {\n  margin: 1rem 0;\n  padding: 0 2rem;\n  border-left: 4px solid #90a4ae;\n}\n\nhr {\n  border-top: solid var(--surface-border);\n  border-width: 1px 0 0 0;\n  margin: 1rem 0;\n}\n\np {\n  margin: 0 0 1rem 0;\n  line-height: 1.5;\n\n  &:last-child {\n    margin-bottom: 0;\n  }\n}\n\n/*\n  Component\n*/\n.p-message {\n  margin-top: 0px;\n}\n\n.p-dialog-mask {\n  z-index: 997;\n}\n", ""]);
21603
+___CSS_LOADER_EXPORT___.push([module.id, "/*\n  Default style\n*/\n* {\n  box-sizing: border-box;\n}\n\nhtml {\n  height: 100%;\n  font-size: 14px;\n}\n\nbody {\n  font-family: var(--font-family);\n  color: var(--text-color);\n  background-color: var(--surface-ground);\n  margin: 0;\n  padding: 0;\n  min-height: 100%;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.layout-topbar-menu-tooltip.p-tooltip {\n  position: absolute;\n  z-index: 997;\n  display: none;\n  padding: 0.25em 0.5rem;\n  max-width: 12.5rem;\n}\n\n/*\n  Typography\n*/\na {\n  text-decoration: none;\n  color: var(--primary-color);\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n  margin: 0.5rem 0 0.5rem 0;\n  font-family: inherit;\n  font-weight: 500;\n  line-height: 1.2;\n  color: inherit;\n\n  &:first-child {\n    margin-top: 0;\n  }\n}\n\nh1 {\n  font-size: 2.5rem;\n}\n\nh2 {\n  font-size: 2rem;\n}\n\nh3 {\n  font-size: 1.75rem;\n}\n\nh4 {\n  font-size: 1.5rem;\n}\n\nh5 {\n  font-size: 1.25rem;\n}\n\nh6 {\n  font-size: 1rem;\n}\n\nmark {\n  background: #fff8e1;\n  padding: 0.25rem 0.4rem;\n  border-radius: 12px;\n  font-family: monospace;\n}\n\nblockquote {\n  margin: 1rem 0;\n  padding: 0 2rem;\n  border-left: 4px solid #90a4ae;\n}\n\nhr {\n  border-top: solid var(--surface-border);\n  border-width: 1px 0 0 0;\n  margin: 1rem 0;\n}\n\np {\n  margin: 0 0 1rem 0;\n  line-height: 1.5;\n\n  &:last-child {\n    margin-bottom: 0;\n  }\n}\n\n/*\n  Component\n*/\n.p-message {\n  margin-top: 0px;\n}\n", ""]);
21604 21604
 // Exports
21605 21605
 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
21606 21606
 
@@ -58561,7 +58561,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
58561 58561
 /******/ 		// This function allow to reference async chunks
58562 58562
 /******/ 		__webpack_require__.u = (chunkId) => {
58563 58563
 /******/ 			// return url for filenames based on template
58564
-/******/ 			return "js/" + chunkId + ".js?id=" + {"node_modules_chart_js_auto_auto_esm_js":"9296b829a7757dee","resources_js_pages_Auth_Login_vue":"8e53429f130c83f5","resources_js_pages_Customers_Create_vue":"1ec93aefdbb7bac8","resources_js_pages_Customers_Edit_vue":"31ae025a81e11ec5","resources_js_pages_Customers_Index_vue":"38b34ca5e7058678","resources_js_pages_Customers_tableHeader_js":"7a40a3d5ad60171c","resources_js_pages_Dashboards_Index_vue":"7f4150c836fe81d8","resources_js_pages_Purchases_Index_vue":"41fddd7f79c7a85d","resources_js_pages_Sales_Index_vue":"1da65c4ce926abbc","resources_js_pages_StockProducts_Index_vue":"74a65be5ec079b3f","resources_js_pages_Suppliers_Create_vue":"10b828cfed1d6462","resources_js_pages_Suppliers_Edit_vue":"97ca7516c6fa5b2e","resources_js_pages_Suppliers_Index_vue":"ac418f3dc1b81891","resources_js_pages_Suppliers_tableHeader_js":"500bc29ff0dbddce","resources_js_pages_Users_Create_vue":"290f8cea7ecbd8da","resources_js_pages_Users_Edit_vue":"4f8b3ff98efb4ef3","resources_js_pages_Users_Index_vue":"575b2403097c7e16","resources_js_pages_Users_Show_vue":"5561027a65c32ca4","resources_js_pages_Users_tableHeader_js":"48f19bd820caf015"}[chunkId] + "";
58564
+/******/ 			return "js/" + chunkId + ".js?id=" + {"node_modules_chart_js_auto_auto_esm_js":"9296b829a7757dee","resources_js_pages_Auth_Login_vue":"5bd7e7097d71fc44","resources_js_pages_Customers_Create_vue":"1ec93aefdbb7bac8","resources_js_pages_Customers_Edit_vue":"31ae025a81e11ec5","resources_js_pages_Customers_Index_vue":"38b34ca5e7058678","resources_js_pages_Customers_tableHeader_js":"7a40a3d5ad60171c","resources_js_pages_Dashboards_Index_vue":"7f4150c836fe81d8","resources_js_pages_Purchases_Index_vue":"41fddd7f79c7a85d","resources_js_pages_Sales_Index_vue":"1da65c4ce926abbc","resources_js_pages_StockProducts_Index_vue":"74a65be5ec079b3f","resources_js_pages_Suppliers_Create_vue":"10b828cfed1d6462","resources_js_pages_Suppliers_Edit_vue":"97ca7516c6fa5b2e","resources_js_pages_Suppliers_Index_vue":"ac418f3dc1b81891","resources_js_pages_Suppliers_tableHeader_js":"500bc29ff0dbddce","resources_js_pages_Users_Create_vue":"290f8cea7ecbd8da","resources_js_pages_Users_Edit_vue":"4f8b3ff98efb4ef3","resources_js_pages_Users_Index_vue":"32bd363dbf0a53ab","resources_js_pages_Users_Show_vue":"cd7e4aa8d8e14572","resources_js_pages_Users_tableHeader_js":"48f19bd820caf015"}[chunkId] + "";
58565 58565
 /******/ 		};
58566 58566
 /******/ 	})();
58567 58567
 /******/ 	

+ 0
- 4
resources/js/assets/styles/sass/global.scss Zobrazit soubor

@@ -112,7 +112,3 @@ p {
112 112
 .p-message {
113 113
   margin-top: 0px;
114 114
 }
115
-
116
-.p-dialog-mask {
117
-  z-index: 997;
118
-}

+ 20
- 4
resources/js/components/AppPassword.vue Zobrazit soubor

@@ -14,6 +14,22 @@ const props = defineProps({
14 14
     type: String,
15 15
     required: true,
16 16
   },
17
+  promptLabel: {
18
+    type: String,
19
+    default: 'Masukan kata sandi',
20
+  },
21
+  weakLabel: {
22
+    type: String,
23
+    default: 'Ah Lemah',
24
+  },
25
+  mediumLabel: {
26
+    type: String,
27
+    default: 'Lumayan',
28
+  },
29
+  strongLabel: {
30
+    type: String,
31
+    default: 'Wow Kuat',
32
+  },
17 33
   error: {
18 34
     type: String,
19 35
     default: null,
@@ -39,10 +55,10 @@ const ariaDescribedbyLabel = computed(
39 55
     <Password
40 56
       class="w-full"
41 57
       input-class="w-full"
42
-      promptLabel="Masukan kata sandi"
43
-      weakLabel="Ah Lemah"
44
-      mediumLabel="Lumayan"
45
-      strongLabel="Wow Kuat"
58
+      :promptLabel="promptLabel"
59
+      :weakLabel="weakLabel"
60
+      :mediumLabel="mediumLabel"
61
+      :strongLabel="strongLabel"
46 62
       :disabled="disabled"
47 63
       :id="forLabel"
48 64
       :placeholder="placeholder"

+ 1
- 1
resources/js/pages/Users/Index.vue Zobrazit soubor

@@ -62,7 +62,7 @@ const onResetPassword = (data) => {
62 62
             <div class="flex align-items-center">
63 63
               <InputText
64 64
                 class="w-full md:w-27rem"
65
-                placeholder="cari, contoh: tina, tina@xx.com"
65
+                placeholder="cari, contoh: tina"
66 66
                 v-model="search"
67 67
               />
68 68
             </div>