@hostlink/nuxt-light 1.55.0 → 1.56.0

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 (218) hide show
  1. package/README.md +120 -120
  2. package/dist/module.json +1 -1
  3. package/dist/runtime/components/L/CustomField/Add.vue +40 -42
  4. package/dist/runtime/components/L/CustomField/List.vue +5 -5
  5. package/dist/runtime/components/L/Database/create-table-dialog.vue +33 -34
  6. package/dist/runtime/components/L/Fieldset.vue +8 -11
  7. package/dist/runtime/components/L/ForgetPasswordDialog.vue +26 -27
  8. package/dist/runtime/components/L/Revision.vue +89 -93
  9. package/dist/runtime/components/L/Storage.vue +7 -7
  10. package/dist/runtime/components/L/System/Setting/authentication.d.vue.ts +1 -5
  11. package/dist/runtime/components/L/System/Setting/authentication.vue +16 -16
  12. package/dist/runtime/components/L/System/Setting/authentication.vue.d.ts +1 -5
  13. package/dist/runtime/components/L/System/Setting/developer.vue +10 -11
  14. package/dist/runtime/components/L/System/Setting/forget-password.vue +9 -9
  15. package/dist/runtime/components/L/System/Setting/general.vue +9 -9
  16. package/dist/runtime/components/L/System/Setting/mail.d.vue.ts +1 -5
  17. package/dist/runtime/components/L/System/Setting/mail.vue +28 -32
  18. package/dist/runtime/components/L/System/Setting/mail.vue.d.ts +1 -5
  19. package/dist/runtime/components/L/System/Setting/modules.d.vue.ts +1 -5
  20. package/dist/runtime/components/L/System/Setting/modules.vue +6 -6
  21. package/dist/runtime/components/L/System/Setting/modules.vue.d.ts +1 -5
  22. package/dist/runtime/components/L/System/Setting/security.d.vue.ts +1 -5
  23. package/dist/runtime/components/L/System/Setting/security.vue +38 -41
  24. package/dist/runtime/components/L/System/Setting/security.vue.d.ts +1 -5
  25. package/dist/runtime/components/L/User/eventlog.vue +5 -5
  26. package/dist/runtime/components/L/User/overview.vue +19 -19
  27. package/dist/runtime/components/L/User/userlog.vue +1 -1
  28. package/dist/runtime/components/L/ValidationInput.vue +14 -14
  29. package/dist/runtime/components/MyTest.vue +3 -3
  30. package/dist/runtime/components/l-action-btn.vue +4 -4
  31. package/dist/runtime/components/l-add-btn.vue +3 -3
  32. package/dist/runtime/components/l-alert.vue +8 -8
  33. package/dist/runtime/components/l-app-main.d.vue.ts +1 -5
  34. package/dist/runtime/components/l-app-main.vue +170 -171
  35. package/dist/runtime/components/l-app-main.vue.d.ts +1 -5
  36. package/dist/runtime/components/l-app.vue +27 -27
  37. package/dist/runtime/components/l-audit-card.vue +8 -8
  38. package/dist/runtime/components/l-back-btn.vue +6 -6
  39. package/dist/runtime/components/l-banner.d.vue.ts +1 -1
  40. package/dist/runtime/components/l-banner.vue +10 -10
  41. package/dist/runtime/components/l-banner.vue.d.ts +1 -1
  42. package/dist/runtime/components/l-bar.vue +3 -3
  43. package/dist/runtime/components/l-btn.vue +4 -4
  44. package/dist/runtime/components/l-card.d.vue.ts +1 -9
  45. package/dist/runtime/components/l-card.vue +31 -31
  46. package/dist/runtime/components/l-card.vue.d.ts +1 -9
  47. package/dist/runtime/components/l-checkbox.vue +3 -3
  48. package/dist/runtime/components/l-col.vue +5 -5
  49. package/dist/runtime/components/l-customizer.d.vue.ts +2 -2
  50. package/dist/runtime/components/l-customizer.vue +95 -96
  51. package/dist/runtime/components/l-customizer.vue.d.ts +2 -2
  52. package/dist/runtime/components/l-date-picker.d.vue.ts +1 -1
  53. package/dist/runtime/components/l-date-picker.vue +17 -17
  54. package/dist/runtime/components/l-date-picker.vue.d.ts +1 -1
  55. package/dist/runtime/components/l-delete-btn.vue +1 -1
  56. package/dist/runtime/components/l-dialog-database-field-add.vue +25 -26
  57. package/dist/runtime/components/l-drag-drop-container.vue +5 -5
  58. package/dist/runtime/components/l-drag-drop-group.vue +1 -1
  59. package/dist/runtime/components/l-drag-drop.vue +6 -6
  60. package/dist/runtime/components/l-edit-btn.vue +2 -2
  61. package/dist/runtime/components/l-editor.d.vue.ts +1 -5
  62. package/dist/runtime/components/l-editor.vue +41 -41
  63. package/dist/runtime/components/l-editor.vue.d.ts +1 -5
  64. package/dist/runtime/components/l-facebook-button.vue +2 -2
  65. package/dist/runtime/components/l-fav-menu.vue +14 -14
  66. package/dist/runtime/components/l-field.vue +3 -3
  67. package/dist/runtime/components/l-file-manager-labels.vue +11 -11
  68. package/dist/runtime/components/l-file-manager-move.vue +67 -67
  69. package/dist/runtime/components/l-file-manager-preview.vue +22 -22
  70. package/dist/runtime/components/l-file-manager.vue +245 -250
  71. package/dist/runtime/components/l-file-upload.d.vue.ts +1 -1
  72. package/dist/runtime/components/l-file-upload.vue +25 -25
  73. package/dist/runtime/components/l-file-upload.vue.d.ts +1 -1
  74. package/dist/runtime/components/l-file.d.vue.ts +1 -5
  75. package/dist/runtime/components/l-file.vue +8 -8
  76. package/dist/runtime/components/l-file.vue.d.ts +1 -5
  77. package/dist/runtime/components/l-form-dialog.vue +27 -27
  78. package/dist/runtime/components/l-form.d.vue.ts +1 -33
  79. package/dist/runtime/components/l-form.vue +11 -11
  80. package/dist/runtime/components/l-form.vue.d.ts +1 -33
  81. package/dist/runtime/components/l-group-select.vue +22 -22
  82. package/dist/runtime/components/l-icon-picker.vue +35 -38
  83. package/dist/runtime/components/l-input-select.vue +4 -4
  84. package/dist/runtime/components/l-input-xlsx.vue +30 -31
  85. package/dist/runtime/components/l-input.d.vue.ts +1 -1
  86. package/dist/runtime/components/l-input.vue +23 -23
  87. package/dist/runtime/components/l-input.vue.d.ts +1 -1
  88. package/dist/runtime/components/l-item.vue +18 -18
  89. package/dist/runtime/components/l-link.vue +3 -3
  90. package/dist/runtime/components/l-list.vue +12 -12
  91. package/dist/runtime/components/l-login.d.vue.ts +1 -5
  92. package/dist/runtime/components/l-login.vue +57 -57
  93. package/dist/runtime/components/l-login.vue.d.ts +1 -5
  94. package/dist/runtime/components/l-menu.vue +33 -34
  95. package/dist/runtime/components/l-microsoft-button.d.vue.ts +1 -11
  96. package/dist/runtime/components/l-microsoft-button.vue +68 -68
  97. package/dist/runtime/components/l-microsoft-button.vue.d.ts +1 -11
  98. package/dist/runtime/components/l-page.vue +21 -21
  99. package/dist/runtime/components/l-repeater.d.vue.ts +3 -3
  100. package/dist/runtime/components/l-repeater.vue +35 -35
  101. package/dist/runtime/components/l-repeater.vue.d.ts +3 -3
  102. package/dist/runtime/components/l-row.vue +5 -5
  103. package/dist/runtime/components/l-save-btn.vue +2 -2
  104. package/dist/runtime/components/l-select.vue +1 -1
  105. package/dist/runtime/components/l-small-box.vue +9 -9
  106. package/dist/runtime/components/l-statistic.vue +9 -9
  107. package/dist/runtime/components/l-tab.vue +10 -10
  108. package/dist/runtime/components/l-table.d.vue.ts +1 -1
  109. package/dist/runtime/components/l-table.vue +176 -190
  110. package/dist/runtime/components/l-table.vue.d.ts +1 -1
  111. package/dist/runtime/components/l-tabs.vue +9 -9
  112. package/dist/runtime/components/l-test2.vue +3 -3
  113. package/dist/runtime/components/l-time-picker.d.vue.ts +1 -1
  114. package/dist/runtime/components/l-time-picker.vue +18 -18
  115. package/dist/runtime/components/l-time-picker.vue.d.ts +1 -1
  116. package/dist/runtime/components/l-view-btn.vue +2 -2
  117. package/dist/runtime/components/user-list.vue +3 -3
  118. package/dist/runtime/composables/mytest.js +2 -2
  119. package/dist/runtime/composables/tc2sc.js +85 -85
  120. package/dist/runtime/formkit/Checkbox.d.vue.ts +0 -1
  121. package/dist/runtime/formkit/Checkbox.vue +6 -6
  122. package/dist/runtime/formkit/Checkbox.vue.d.ts +0 -1
  123. package/dist/runtime/formkit/DatePicker.d.vue.ts +0 -1
  124. package/dist/runtime/formkit/DatePicker.vue +11 -11
  125. package/dist/runtime/formkit/DatePicker.vue.d.ts +0 -1
  126. package/dist/runtime/formkit/Editor.vue +7 -7
  127. package/dist/runtime/formkit/File.d.vue.ts +0 -1
  128. package/dist/runtime/formkit/File.vue +6 -6
  129. package/dist/runtime/formkit/File.vue.d.ts +0 -1
  130. package/dist/runtime/formkit/FilePicker.d.vue.ts +0 -1
  131. package/dist/runtime/formkit/FilePicker.vue +6 -6
  132. package/dist/runtime/formkit/FilePicker.vue.d.ts +0 -1
  133. package/dist/runtime/formkit/FileUpload.d.vue.ts +0 -1
  134. package/dist/runtime/formkit/FileUpload.vue +6 -6
  135. package/dist/runtime/formkit/FileUpload.vue.d.ts +0 -1
  136. package/dist/runtime/formkit/Form.d.vue.ts +1 -3
  137. package/dist/runtime/formkit/Form.vue +11 -11
  138. package/dist/runtime/formkit/Form.vue.d.ts +1 -3
  139. package/dist/runtime/formkit/GroupSelect.d.vue.ts +0 -1
  140. package/dist/runtime/formkit/GroupSelect.vue +7 -7
  141. package/dist/runtime/formkit/GroupSelect.vue.d.ts +0 -1
  142. package/dist/runtime/formkit/Input.d.vue.ts +1 -1
  143. package/dist/runtime/formkit/Input.vue +11 -11
  144. package/dist/runtime/formkit/Input.vue.d.ts +1 -1
  145. package/dist/runtime/formkit/InputSelect.d.vue.ts +1 -1
  146. package/dist/runtime/formkit/InputSelect.vue +7 -7
  147. package/dist/runtime/formkit/InputSelect.vue.d.ts +1 -1
  148. package/dist/runtime/formkit/InputXlsx.vue +4 -4
  149. package/dist/runtime/formkit/OptionGroup.vue +5 -5
  150. package/dist/runtime/formkit/Radio.vue +4 -4
  151. package/dist/runtime/formkit/Repeater.d.vue.ts +1 -1
  152. package/dist/runtime/formkit/Repeater.vue +37 -37
  153. package/dist/runtime/formkit/Repeater.vue.d.ts +1 -1
  154. package/dist/runtime/formkit/Select.d.vue.ts +0 -1
  155. package/dist/runtime/formkit/Select.vue +6 -6
  156. package/dist/runtime/formkit/Select.vue.d.ts +0 -1
  157. package/dist/runtime/formkit/Textarea.d.vue.ts +1 -1
  158. package/dist/runtime/formkit/Textarea.vue +11 -11
  159. package/dist/runtime/formkit/Textarea.vue.d.ts +1 -1
  160. package/dist/runtime/formkit/TimePicker.d.vue.ts +0 -1
  161. package/dist/runtime/formkit/TimePicker.vue +10 -10
  162. package/dist/runtime/formkit/TimePicker.vue.d.ts +0 -1
  163. package/dist/runtime/formkit/Toggle.vue +3 -3
  164. package/dist/runtime/index.d.ts +39 -39
  165. package/dist/runtime/locales/en.json +9 -9
  166. package/dist/runtime/locales/zh-hk.json +213 -213
  167. package/dist/runtime/pages/CustomField/[custom_field_id]/edit.vue +33 -38
  168. package/dist/runtime/pages/CustomField/index.vue +12 -14
  169. package/dist/runtime/pages/EventLog/_eventlog_id/view.vue +36 -36
  170. package/dist/runtime/pages/EventLog/index.vue +7 -7
  171. package/dist/runtime/pages/FileManager/index.vue +4 -4
  172. package/dist/runtime/pages/MailLog/index.vue +18 -18
  173. package/dist/runtime/pages/Permission/add.vue +13 -13
  174. package/dist/runtime/pages/Permission/all.vue +63 -63
  175. package/dist/runtime/pages/Permission/export.vue +9 -10
  176. package/dist/runtime/pages/Permission/index.vue +4 -4
  177. package/dist/runtime/pages/Role/_name/update-child.vue +4 -4
  178. package/dist/runtime/pages/Role/add.vue +7 -7
  179. package/dist/runtime/pages/Role/add2.vue +30 -30
  180. package/dist/runtime/pages/Role/index.vue +27 -27
  181. package/dist/runtime/pages/System/database/backup.vue +72 -72
  182. package/dist/runtime/pages/System/database/check.vue +72 -72
  183. package/dist/runtime/pages/System/database/event.vue +51 -51
  184. package/dist/runtime/pages/System/database/process.vue +21 -21
  185. package/dist/runtime/pages/System/database/restore.vue +110 -110
  186. package/dist/runtime/pages/System/database/table.vue +67 -69
  187. package/dist/runtime/pages/System/fs.vue +99 -99
  188. package/dist/runtime/pages/System/index.vue +16 -18
  189. package/dist/runtime/pages/System/mailtest.vue +12 -12
  190. package/dist/runtime/pages/System/menu/index.vue +142 -144
  191. package/dist/runtime/pages/System/package.vue +11 -11
  192. package/dist/runtime/pages/System/phpinfo.vue +3 -3
  193. package/dist/runtime/pages/System/setting.vue +28 -30
  194. package/dist/runtime/pages/System/test.vue +12 -12
  195. package/dist/runtime/pages/System/view_as.vue +21 -22
  196. package/dist/runtime/pages/SystemValue/_systemvalue_id/edit.vue +6 -6
  197. package/dist/runtime/pages/SystemValue/add.vue +7 -7
  198. package/dist/runtime/pages/SystemValue/index.vue +4 -4
  199. package/dist/runtime/pages/Translate/index.vue +38 -38
  200. package/dist/runtime/pages/User/_user_id/change-password.vue +17 -18
  201. package/dist/runtime/pages/User/_user_id/edit.vue +28 -28
  202. package/dist/runtime/pages/User/_user_id/update-role.vue +7 -8
  203. package/dist/runtime/pages/User/_user_id/view.vue +27 -30
  204. package/dist/runtime/pages/User/add.vue +35 -35
  205. package/dist/runtime/pages/User/index.vue +11 -11
  206. package/dist/runtime/pages/User/profile.vue +45 -46
  207. package/dist/runtime/pages/User/setting/bio-auth.vue +22 -22
  208. package/dist/runtime/pages/User/setting/favorite.vue +61 -62
  209. package/dist/runtime/pages/User/setting/index.vue +6 -6
  210. package/dist/runtime/pages/User/setting/information.vue +6 -6
  211. package/dist/runtime/pages/User/setting/menu.vue +165 -165
  212. package/dist/runtime/pages/User/setting/open_id.vue +161 -161
  213. package/dist/runtime/pages/User/setting/password.vue +19 -19
  214. package/dist/runtime/pages/User/setting/style.vue +104 -106
  215. package/dist/runtime/pages/User/setting/two-factor-auth.vue +176 -176
  216. package/dist/runtime/pages/User/setting.vue +32 -32
  217. package/dist/runtime/pages/UserLog/index.vue +4 -4
  218. package/package.json +63 -63
package/README.md CHANGED
@@ -1,121 +1,121 @@
1
- <!--
2
- Get your module up and running quickly.
3
-
4
- Find and replace all on all files (CMD+SHIFT+F):
5
- - Name: nuxt-light
6
- - Package name: nuxt-light
7
- - Description: My new Nuxt module
8
- -->
9
-
10
- # nuxt-light
11
-
12
- [![npm version][npm-version-src]][npm-version-href]
13
- [![npm downloads][npm-downloads-src]][npm-downloads-href]
14
- [![License][license-src]][license-href]
15
- [![Nuxt][nuxt-src]][nuxt-href]
16
-
17
- This is a Hostlink nuxt-light framework for Nuxt.
18
-
19
- - [✨ &nbsp;Release Notes](/CHANGELOG.md)
20
- <!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/nuxt-light?file=playground%2Fapp.vue) -->
21
- <!-- - [📖 &nbsp;Documentation](https://example.com) -->
22
-
23
- ## Features
24
-
25
- <!-- Highlight some of the features your module provide here -->
26
- - HostLink nuxt-light framework
27
-
28
- ## Quick Setup
29
-
30
- 1. Add `nuxt-light` dependency to your project
31
-
32
- ```bash
33
- # Using npm
34
- npm install --save-dev @hostlink/nuxt-light
35
- ```
36
-
37
- 2. Add `@hostlink/nuxt-light` to the `modules` section of `nuxt.config.ts`
38
-
39
- ```js
40
- import pkg from './package.json'
41
- export default defineNuxtConfig({
42
- runtimeConfig: {
43
- public: {
44
- //apiBase: 'your-api-base-url'
45
- appVersion: pkg.version
46
- }
47
- },
48
- ssr:false,
49
- modules: [
50
- '@hostlink/nuxt-light'
51
- ]
52
- })
53
- ```
54
-
55
- That's it! You can now use nuxt-light in your Nuxt app ✨
56
-
57
- ## Development
58
-
59
- ```bash
60
- # Install dependencies
61
- npm install
62
-
63
- # Generate type stubs
64
- npm run dev:prepare
65
-
66
- # Develop with the playground
67
- npm run dev
68
-
69
- # Build the playground
70
- npm run dev:build
71
-
72
- # Run ESLint
73
- npm run lint
74
-
75
- # Run Vitest
76
- npm run test
77
- npm run test:watch
78
-
79
- # Release new version
80
- npm run release
81
- ```
82
-
83
- <!-- Badges -->
84
- [npm-version-src]: https://img.shields.io/npm/v/@hostlink/nuxt-light/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
85
- [npm-version-href]: https://npmjs.com/package/@hostlink/nuxt-light
86
-
87
- [npm-downloads-src]: https://img.shields.io/npm/dm/@hostlink/nuxt-light.svg?style=flat&colorA=18181B&colorB=28CF8D
88
- [npm-downloads-href]: https://npmjs.com/package/@hostlink/nuxt-light
89
-
90
- [license-src]: https://img.shields.io/npm/l/@hostlink/nuxt-light.svg?style=flat&colorA=18181B&colorB=28CF8D
91
- [license-href]: https://npmjs.com/package/@hostlink/nuxt-light
92
-
93
- [nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js
94
- [nuxt-href]: https://nuxt.com
95
-
96
-
97
-
98
- ### app.vue
99
- ```html
100
- <template>
101
- <l-app/>
102
- </template>
103
- ```
104
-
105
-
106
-
107
- ## Google Sigin
108
- nuxt.config.ts
109
- ```js
110
- app: {
111
- head: {
112
- script: [
113
- {
114
- src: 'https://accounts.google.com/gsi/client',
115
- async: true,
116
- defer: true,
117
- }
118
- ]
119
- }
120
- }
1
+ <!--
2
+ Get your module up and running quickly.
3
+
4
+ Find and replace all on all files (CMD+SHIFT+F):
5
+ - Name: nuxt-light
6
+ - Package name: nuxt-light
7
+ - Description: My new Nuxt module
8
+ -->
9
+
10
+ # nuxt-light
11
+
12
+ [![npm version][npm-version-src]][npm-version-href]
13
+ [![npm downloads][npm-downloads-src]][npm-downloads-href]
14
+ [![License][license-src]][license-href]
15
+ [![Nuxt][nuxt-src]][nuxt-href]
16
+
17
+ This is a Hostlink nuxt-light framework for Nuxt.
18
+
19
+ - [✨ &nbsp;Release Notes](/CHANGELOG.md)
20
+ <!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/nuxt-light?file=playground%2Fapp.vue) -->
21
+ <!-- - [📖 &nbsp;Documentation](https://example.com) -->
22
+
23
+ ## Features
24
+
25
+ <!-- Highlight some of the features your module provide here -->
26
+ - HostLink nuxt-light framework
27
+
28
+ ## Quick Setup
29
+
30
+ 1. Add `nuxt-light` dependency to your project
31
+
32
+ ```bash
33
+ # Using npm
34
+ npm install --save-dev @hostlink/nuxt-light
35
+ ```
36
+
37
+ 2. Add `@hostlink/nuxt-light` to the `modules` section of `nuxt.config.ts`
38
+
39
+ ```js
40
+ import pkg from './package.json'
41
+ export default defineNuxtConfig({
42
+ runtimeConfig: {
43
+ public: {
44
+ //apiBase: 'your-api-base-url'
45
+ appVersion: pkg.version
46
+ }
47
+ },
48
+ ssr:false,
49
+ modules: [
50
+ '@hostlink/nuxt-light'
51
+ ]
52
+ })
53
+ ```
54
+
55
+ That's it! You can now use nuxt-light in your Nuxt app ✨
56
+
57
+ ## Development
58
+
59
+ ```bash
60
+ # Install dependencies
61
+ npm install
62
+
63
+ # Generate type stubs
64
+ npm run dev:prepare
65
+
66
+ # Develop with the playground
67
+ npm run dev
68
+
69
+ # Build the playground
70
+ npm run dev:build
71
+
72
+ # Run ESLint
73
+ npm run lint
74
+
75
+ # Run Vitest
76
+ npm run test
77
+ npm run test:watch
78
+
79
+ # Release new version
80
+ npm run release
81
+ ```
82
+
83
+ <!-- Badges -->
84
+ [npm-version-src]: https://img.shields.io/npm/v/@hostlink/nuxt-light/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
85
+ [npm-version-href]: https://npmjs.com/package/@hostlink/nuxt-light
86
+
87
+ [npm-downloads-src]: https://img.shields.io/npm/dm/@hostlink/nuxt-light.svg?style=flat&colorA=18181B&colorB=28CF8D
88
+ [npm-downloads-href]: https://npmjs.com/package/@hostlink/nuxt-light
89
+
90
+ [license-src]: https://img.shields.io/npm/l/@hostlink/nuxt-light.svg?style=flat&colorA=18181B&colorB=28CF8D
91
+ [license-href]: https://npmjs.com/package/@hostlink/nuxt-light
92
+
93
+ [nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js
94
+ [nuxt-href]: https://nuxt.com
95
+
96
+
97
+
98
+ ### app.vue
99
+ ```html
100
+ <template>
101
+ <l-app/>
102
+ </template>
103
+ ```
104
+
105
+
106
+
107
+ ## Google Sigin
108
+ nuxt.config.ts
109
+ ```js
110
+ app: {
111
+ head: {
112
+ script: [
113
+ {
114
+ src: 'https://accounts.google.com/gsi/client',
115
+ async: true,
116
+ defer: true,
117
+ }
118
+ ]
119
+ }
120
+ }
121
121
  ```
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.55.0",
4
+ "version": "1.56.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -38,46 +38,44 @@ const onOKClick = async (value) => {
38
38
  </script>
39
39
 
40
40
  <template>
41
- <q-dialog ref="dialogRef" full-width>
42
- <q-card class="q-dialog-plugin">
43
- <q-toolbar>
44
- <q-toolbar-title>Add Custom Field</q-toolbar-title>
45
- <q-space />
46
- <q-btn dense flat icon="sym_o_close" v-close-popup />
47
- </q-toolbar>
48
-
49
- <form-kit type="l-form"
50
- :value="{ type: 'text', order: 1, options: [], default_value: '', placeholder: '', validation: '' }"
51
- #default="{ value, node }" @submit="onOKClick">
52
- <form-kit type="l-input" name="name" label="Name" validation="required" />
53
-
54
- <form-kit type="l-select" name="model" label="Model" :options="models" validation="required" />
55
-
56
- <form-kit type="l-select" name="type" label="Type" :options="types" validation="required" />
57
-
58
- <form-kit type="hidden" name="validation" />
59
- <l-validation-input v-model="value.validation" @update:model-value="node.at('validation').input($event)"
60
- :type="value.type" />
61
-
62
-
63
- <form-kit type="l-input" name="label" label="Label" validation="required" />
64
-
65
- <form-kit type="hidden" name="options" />
66
- <template v-if="value.type === 'select'">
67
- <form-kit type="l-select" label="Options" name="options" use-input use-chips multiple
68
- hide-dropdown-icon input-debounce="0" new-value-mode="add-unique" stack-label outlined
69
- placeholder="Press enter to add new option" />
70
- </template>
71
-
72
- <form-kit type="l-input" name="default_value" label="Default Value" />
73
-
74
- <form-kit type="l-input" name="placeholder" label="Placeholder" />
75
-
76
- <form-kit type="l-input" input-type="number" name="order" label="Order" number />
77
-
78
-
79
- </form-kit>
80
-
81
- </q-card>
82
- </q-dialog>
41
+ <q-dialog ref="dialogRef" full-width>
42
+ <q-card class="q-dialog-plugin">
43
+ <q-toolbar>
44
+ <q-toolbar-title>Add Custom Field</q-toolbar-title>
45
+ <q-space />
46
+ <q-btn dense flat icon="sym_o_close" v-close-popup />
47
+ </q-toolbar>
48
+
49
+ <form-kit type="l-form"
50
+ :value="{ type: 'text', order: 1, options: [], default_value: '', placeholder: '', validation: '' }"
51
+ #default="{ value, node }" @submit="onOKClick">
52
+ <form-kit type="l-input" name="name" label="Name" validation="required" />
53
+
54
+ <form-kit type="l-select" name="model" label="Model" :options="models" validation="required" />
55
+
56
+ <form-kit type="l-select" name="type" label="Type" :options="types" validation="required" />
57
+
58
+ <form-kit type="hidden" name="validation" />
59
+ <l-validation-input v-model="value.validation" @update:model-value="node.at('validation').input($event)"
60
+ :type="value.type" />
61
+
62
+ <form-kit type="l-input" name="label" label="Label" validation="required" />
63
+
64
+ <form-kit type="hidden" name="options" />
65
+ <template v-if="value.type === 'select'">
66
+ <form-kit type="l-select" label="Options" name="options" use-input use-chips multiple
67
+ hide-dropdown-icon input-debounce="0" new-value-mode="add-unique" stack-label outlined
68
+ placeholder="Press enter to add new option" />
69
+ </template>
70
+
71
+ <form-kit type="l-input" name="default_value" label="Default Value" />
72
+
73
+ <form-kit type="l-input" name="placeholder" label="Placeholder" />
74
+
75
+ <form-kit type="l-input" input-type="number" name="order" label="Order" number />
76
+
77
+ </form-kit>
78
+
79
+ </q-card>
80
+ </q-dialog>
83
81
  </template>
@@ -23,9 +23,9 @@ const { customFieldSchema } = app;
23
23
  </script>
24
24
 
25
25
  <template>
26
- <q-list v-bind="$props">
27
- <l-item v-for="field in customFieldSchema" :label="field.label">
28
- {{ data[field.name] }}
29
- </l-item>
30
- </q-list>
26
+ <q-list v-bind="$props">
27
+ <l-item v-for="field in customFieldSchema" :label="field.label">
28
+ {{ data[field.name] }}
29
+ </l-item>
30
+ </q-list>
31
31
  </template>
@@ -19,38 +19,37 @@ const types = ["varchar", "int", "date", "time", "datetime", "timestamp", "text"
19
19
  </script>
20
20
 
21
21
  <template>
22
- <q-dialog ref="dialogRef" full-width>
23
- <q-card class="q-dialog-plugin">
24
- <q-toolbar>
25
- <q-toolbar-title>Create Table</q-toolbar-title>
26
- <q-space />
27
- <q-btn dense flat icon="sym_o_close" v-close-popup />
28
- </q-toolbar>
29
- <form-kit type="l-form" :bordered="false" @submit="onOKClick" :value="{
30
- name: '',
31
- fields: [],
32
- }" :action="false" #default="{ value }">
33
-
34
- <form-kit type="l-input" name="name" label="Name" validation="required" />
35
-
36
- <form-kit type="l-repeater" name="fields">
37
- <div class="row q-gutter-sm">
38
- <form-kit type="l-input" name="name" label="Name" validation="required" class="col" />
39
-
40
- <form-kit type="l-select" name="type" label="Type" :options="types" validation="required"
41
- class="col" />
42
- <form-kit type="l-input" name="length" label="Length" class="col" number />
43
- <form-kit type="l-input" name="default" label="Default" class="col" />
44
- </div>
45
-
46
- <div class="row">
47
- <form-kit type="l-checkbox" name="nullable" label="Nullable" />
48
- </div>
49
- </form-kit>
50
-
51
- </form-kit>
52
-
53
-
54
- </q-card>
55
- </q-dialog>
22
+ <q-dialog ref="dialogRef" full-width>
23
+ <q-card class="q-dialog-plugin">
24
+ <q-toolbar>
25
+ <q-toolbar-title>Create Table</q-toolbar-title>
26
+ <q-space />
27
+ <q-btn dense flat icon="sym_o_close" v-close-popup />
28
+ </q-toolbar>
29
+ <form-kit type="l-form" :bordered="false" @submit="onOKClick" :value="{
30
+ name: '',
31
+ fields: [],
32
+ }" :action="false" #default="{ value }">
33
+
34
+ <form-kit type="l-input" name="name" label="Name" validation="required" />
35
+
36
+ <form-kit type="l-repeater" name="fields">
37
+ <div class="row q-gutter-sm">
38
+ <form-kit type="l-input" name="name" label="Name" validation="required" class="col" />
39
+
40
+ <form-kit type="l-select" name="type" label="Type" :options="types" validation="required"
41
+ class="col" />
42
+ <form-kit type="l-input" name="length" label="Length" class="col" number />
43
+ <form-kit type="l-input" name="default" label="Default" class="col" />
44
+ </div>
45
+
46
+ <div class="row">
47
+ <form-kit type="l-checkbox" name="nullable" label="Nullable" />
48
+ </div>
49
+ </form-kit>
50
+
51
+ </form-kit>
52
+
53
+ </q-card>
54
+ </q-dialog>
56
55
  </template>
@@ -18,15 +18,12 @@ body.body--dark fieldset{border-color:hsla(0,0%,100%,.6)}fieldset{border:1px sol
18
18
  </style>
19
19
 
20
20
  <template>
21
- <fieldset>
22
- <legend v-if="props.label">{{ i18n.t(props.label) }}</legend>
23
-
24
- <div :class="`q-gutter-${props.gutter}`">
25
- <slot></slot>
26
- </div>
27
-
28
-
29
-
30
-
31
- </fieldset>
21
+ <fieldset>
22
+ <legend v-if="props.label">{{ i18n.t(props.label) }}</legend>
23
+
24
+ <div :class="`q-gutter-${props.gutter}`">
25
+ <slot></slot>
26
+ </div>
27
+
28
+ </fieldset>
32
29
  </template>
@@ -36,31 +36,30 @@ const onOKClick = async () => {
36
36
  </script>
37
37
 
38
38
  <template>
39
- <q-dialog ref="dialogRef">
40
- <q-card class="q-dialog-plugin">
41
-
42
- <q-card-section class="q-dialog__title">
43
- {{ t('Forget password') }}
44
- </q-card-section>
45
-
46
- <q-card-section class="q-dialog__message">
47
- {{ t('Please enter your username and email address, we will send you a code to reset your password') }}
48
- </q-card-section>
49
-
50
- <q-card-section>
51
- <q-input v-model="username" :label="$t('Username')" stack-label
52
- :rules="[val => !!val || $t('Username is required')]" hide-bottom-space />
53
- <q-input v-model="email" :label="$t('Email')" stack-label type="email" hide-bottom-space :rules="[
54
- val => !!val || $t('Email is required'),
55
- val => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(val) || $t('Invalid email format')
56
- ]" />
57
- </q-card-section>
58
-
59
-
60
- <q-card-actions align="right">
61
- <q-btn :label="$t('Cancel')" @click="onDialogCancel" flat color="primary" />
62
- <q-btn :label="$t('OK')" @click="onOKClick" flat color="primary" />
63
- </q-card-actions>
64
- </q-card>
65
- </q-dialog>
39
+ <q-dialog ref="dialogRef">
40
+ <q-card class="q-dialog-plugin">
41
+
42
+ <q-card-section class="q-dialog__title">
43
+ {{ t('Forget password') }}
44
+ </q-card-section>
45
+
46
+ <q-card-section class="q-dialog__message">
47
+ {{ t('Please enter your username and email address, we will send you a code to reset your password') }}
48
+ </q-card-section>
49
+
50
+ <q-card-section>
51
+ <q-input v-model="username" :label="$t('Username')" stack-label
52
+ :rules="[val => !!val || $t('Username is required')]" hide-bottom-space />
53
+ <q-input v-model="email" :label="$t('Email')" stack-label type="email" hide-bottom-space :rules="[
54
+ val => !!val || $t('Email is required'),
55
+ val => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(val) || $t('Invalid email format')
56
+ ]" />
57
+ </q-card-section>
58
+
59
+ <q-card-actions align="right">
60
+ <q-btn :label="$t('Cancel')" @click="onDialogCancel" flat color="primary" />
61
+ <q-btn :label="$t('OK')" @click="onOKClick" flat color="primary" />
62
+ </q-card-actions>
63
+ </q-card>
64
+ </q-dialog>
66
65
  </template>