@simitgroup/simpleapp-generator 1.3.1-alpha → 1.3.2-alpha

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 (209) hide show
  1. package/dist/generate.js +5 -1
  2. package/dist/generate.js.map +1 -1
  3. package/package.json +1 -1
  4. package/src/generate.ts +5 -1
  5. package/templates/basic/nest/apischema.ts.eta +2 -3
  6. package/templates/basic/nest/controller.ts.eta +3 -4
  7. package/templates/basic/nest/default.ts.eta +6 -0
  8. package/templates/basic/nest/jsonschema.ts.eta +3 -4
  9. package/templates/basic/nest/model.ts.eta +3 -5
  10. package/templates/basic/nest/processor.ts.eta +3 -4
  11. package/templates/basic/nest/service.ts.eta +8 -1
  12. package/templates/basic/nest/type.ts.eta +3 -4
  13. package/templates/basic/nuxt/default.ts.eta +6 -0
  14. package/templates/basic/nuxt/pages.form.vue.eta +2 -1
  15. package/templates/basic/nuxt/simpleapp.generate.client.ts.eta +3 -4
  16. package/templates/nest/.env._eta +2 -1
  17. package/templates/nest/.gitignore.eta +5 -0
  18. package/templates/nest/src/simpleapp/.gitignore.eta +5 -0
  19. package/templates/nest/src/simpleapp/apischemas/index.ts._eta +6 -1
  20. package/templates/nest/src/simpleapp/generate/apischemas/index.ts.eta +7 -0
  21. package/templates/nest/src/simpleapp/generate/apischemas/simpleapp.apischema.ts.eta +1 -1
  22. package/templates/nest/src/simpleapp/generate/workflow/formschema/index.ts.eta +6 -0
  23. package/templates/nest/src/simpleapp/generate/workflow/workflow.apischema.ts.eta +6 -0
  24. package/templates/nest/src/simpleapp/generate/workflow/workflow.config.ts.eta +6 -0
  25. package/templates/nest/src/simpleapp/generate/workflow/workflow.controller.ts.eta +6 -0
  26. package/templates/nest/src/simpleapp/generate/workflow/workflow.delegate.ts.eta +6 -0
  27. package/templates/nest/src/simpleapp/generate/workflow/workflow.service.ts.eta +2 -4
  28. package/templates/nest/src/simpleapp/generate/workflow/workflow.type.ts.eta +4 -5
  29. package/templates/nest/src/simpleapp/generate/workflow/workflow.userservice.ts.eta +6 -0
  30. package/templates/nest/src/simpleapp/profile/profile.apischema.ts.eta +1 -1
  31. package/templates/nest/src/simpleapp/profile/profile.controller.ts.eta +1 -1
  32. package/templates/nest/src/simpleapp/profile/profile.service.ts.eta +1 -1
  33. package/templates/nest/src/simpleapp/profile/profile.types.ts.eta +1 -1
  34. package/templates/nest/src/simpleapp/services/autoinc.service.ts.eta +1 -1
  35. package/templates/nest/src/simpleapp/services/branch.service.ts.eta +1 -1
  36. package/templates/nest/src/simpleapp/services/docno.service.ts.eta +1 -1
  37. package/templates/nest/src/simpleapp/services/org.service.ts.eta +1 -1
  38. package/templates/nest/src/simpleapp/services/perm.service.ts.eta +1 -1
  39. package/templates/nest/src/simpleapp/services/tenant.service.ts.eta +1 -1
  40. package/templates/nest/src/simpleapp/services/user.service.ts.etax +1 -1
  41. package/templates/nest/src/simpleapp/types/index.ts._eta +6 -1
  42. package/templates/nest/src/simpleapp/workflows/listeners/simpleapp.listener.ts._eta +4 -5
  43. package/templates/nest/test/app.e2e-spec.ts.eta +6 -0
  44. package/templates/nest/test/setting.ts.eta +6 -0
  45. package/templates/nuxt/.env._eta +2 -1
  46. package/templates/nuxt/.gitignore.eta +5 -0
  47. package/templates/nuxt/{app.vue.eta → app.vue._eta} +14 -14
  48. package/templates/nuxt/assets/css/calendar.css._eta +6 -1
  49. package/templates/nuxt/assets/css/listview.css._eta +17 -0
  50. package/templates/nuxt/assets/css/style.css._eta +6 -4
  51. package/templates/nuxt/assets/css/tailwind.css._eta +6 -0
  52. package/templates/nuxt/assets/primevue/passthrough.ts._eta +13 -8
  53. package/templates/nuxt/components/button/ButtonDanger.vue._eta +16 -4
  54. package/templates/nuxt/components/button/ButtonDefault.vue._eta +17 -4
  55. package/templates/nuxt/components/button/ButtonMultiple.vue._eta +8 -2
  56. package/templates/nuxt/components/button/ButtonPrimary.vue._eta +17 -5
  57. package/templates/nuxt/components/button/ButtonText.vue._eta +21 -0
  58. package/templates/nuxt/components/button/ButtonWarning.vue._eta +17 -5
  59. package/templates/nuxt/components/calendar/CalendarByResource.vue.eta +7 -3
  60. package/templates/nuxt/components/calendar/CalendarSmall.vue.eta +6 -0
  61. package/templates/nuxt/components/debug/DebugDocumentData.vue.eta +3 -3
  62. package/templates/nuxt/components/event/EventDecision.vue._eta +3 -3
  63. package/templates/nuxt/components/event/EventDocumentViewer.vue._eta +3 -3
  64. package/templates/nuxt/components/event/EventNotification.vue._eta +3 -3
  65. package/templates/nuxt/components/form/FormBranch.vue.eta +4 -3
  66. package/templates/nuxt/components/header/HeaderBar.vue._eta +7 -1
  67. package/templates/nuxt/components/header/HeaderBreadcrumb.vue.eta +6 -0
  68. package/templates/nuxt/components/header/HeaderSelectBranch.vue.eta +6 -0
  69. package/templates/nuxt/components/header/button/HeaderButtonHome.vue.eta +6 -1
  70. package/templates/nuxt/components/header/button/HeaderButtonLogout.vue.eta +9 -1
  71. package/templates/nuxt/components/header/button/HeaderButtonMenuPicker.vue._eta +7 -0
  72. package/templates/nuxt/components/header/button/HeaderButtonProfile.vue.eta +6 -0
  73. package/templates/nuxt/components/header/button/task/HeaderButtonTaskItem.vue.eta +7 -0
  74. package/templates/nuxt/components/header/button/task/HeaderButtonTaskList.vue.eta +6 -0
  75. package/templates/nuxt/components/list/ListDocument.vue.eta +6 -0
  76. package/templates/nuxt/components/list/ListDocumentTable.vue.eta +6 -0
  77. package/templates/nuxt/components/list/ListView.vue.eta +60 -47
  78. package/templates/nuxt/components/mobile/MobileToolbar.vue.eta +9 -3
  79. package/templates/nuxt/components/overlay/OverlayPanelWithToolBar.vue.eta +44 -0
  80. package/templates/nuxt/components/overlay/OverlaySideBarCrud.vue.eta +10 -1
  81. package/templates/nuxt/components/overlay/OverlayViewer.vue.eta +7 -1
  82. package/templates/nuxt/components/page/PageDocList.vue.eta +23 -14
  83. package/templates/nuxt/components/renderer/index.ts._eta +3 -3
  84. package/templates/nuxt/components/session/SessionBlock.vue.eta +6 -0
  85. package/templates/nuxt/components/simpleApp/SimpleAppAutocomplete.vue.eta +7 -1
  86. package/templates/nuxt/components/simpleApp/SimpleAppDocumentNo.vue.eta +6 -0
  87. package/templates/nuxt/components/simpleApp/SimpleAppFieldContainer.vue.eta +6 -0
  88. package/templates/nuxt/components/simpleApp/SimpleAppForm.vue.eta +7 -2
  89. package/templates/nuxt/components/simpleApp/SimpleAppFormToolBar.vue.eta +21 -17
  90. package/templates/nuxt/components/simpleApp/SimpleAppInput.vue.eta +6 -0
  91. package/templates/nuxt/components/simpleApp/SimpleAppInputTable.vue.eta +6 -1
  92. package/templates/nuxt/components/simpleApp/SimpleAppJsonSchemaForm.vue.eta +6 -0
  93. package/templates/nuxt/components/table/TableDocuments.vue.eta +6 -0
  94. package/templates/nuxt/components/text/TextDanger.vue._eta +8 -0
  95. package/templates/nuxt/components/text/TextSubtitle.vue._eta +8 -0
  96. package/templates/nuxt/components/text/TextTitle.vue._eta +8 -0
  97. package/templates/nuxt/components/user/UserButtonCreateTenant.vue.eta +6 -0
  98. package/templates/nuxt/components/user/UserButtonPermissionInfo.vue.eta +6 -0
  99. package/templates/nuxt/components/user/UserInvitation.vue.eta +22 -16
  100. package/templates/nuxt/components/user/UserProfileListItem.vue.eta +6 -1
  101. package/templates/nuxt/components/user/UserTenantPicker.vue.eta +6 -1
  102. package/templates/nuxt/components/workflow/forms/dynamicfield.vue._eta +7 -0
  103. package/templates/nuxt/components/workflow/forms/index.ts._eta +7 -0
  104. package/templates/nuxt/components/workflow/forms/simpleapprove.vue._eta +6 -0
  105. package/templates/nuxt/composables/date.generate.ts.eta +6 -3
  106. package/templates/nuxt/composables/docformat.generate.ts.eta +6 -0
  107. package/templates/nuxt/composables/getDocument.generate.ts.eta +6 -0
  108. package/templates/nuxt/composables/getTenant.generate.ts.eta +6 -0
  109. package/templates/nuxt/composables/getUserStore.generate.ts.eta +6 -0
  110. package/templates/nuxt/composables/goTo.generate.ts.eta +6 -0
  111. package/templates/nuxt/composables/logout.generate.ts.eta +6 -0
  112. package/templates/nuxt/composables/notifications.generate.ts.eta +6 -0
  113. package/templates/nuxt/composables/refreshDocumentList.generate.ts.eta +6 -0
  114. package/templates/nuxt/composables/roles.generate.ts.eta +6 -0
  115. package/templates/nuxt/composables/screensize.generate.ts.eta +6 -0
  116. package/templates/nuxt/composables/stringHelper.generate.ts.eta +6 -0
  117. package/templates/nuxt/composables/themes.generate.ts.eta +6 -0
  118. package/templates/nuxt/composables/workflow.generate.ts.eta +6 -0
  119. package/templates/nuxt/error.vue._eta +6 -1
  120. package/templates/nuxt/i18n.config.ts.eta +6 -0
  121. package/templates/nuxt/lang/cn.ts._eta +6 -0
  122. package/templates/nuxt/lang/en.ts.eta +1 -0
  123. package/templates/nuxt/layouts/default.vue._eta +6 -0
  124. package/templates/nuxt/layouts/loginlayout.vue._eta +9 -1
  125. package/templates/nuxt/layouts/mobile.vue._eta +6 -0
  126. package/templates/nuxt/middleware/30.acl.global.ts.eta +1 -1
  127. package/templates/nuxt/nuxt.config.ts._eta +4 -5
  128. package/templates/nuxt/pages/[xorg]/docnoformat/[doctype]/[id].vue.eta +4 -5
  129. package/templates/nuxt/pages/[xorg]/docnoformat/[doctype]/new.vue.eta +7 -0
  130. package/templates/nuxt/pages/[xorg]/docnoformat/[doctype].vue.eta +6 -1
  131. package/templates/nuxt/pages/[xorg]/docnoformat/index.vue.eta +6 -1
  132. package/templates/nuxt/pages/[xorg]/docnoformat.vue.eta +4 -6
  133. package/templates/nuxt/pages/[xorg]/index.vue._eta +4 -5
  134. package/templates/nuxt/pages/[xorg]/organization/viewer.vue.eta +8 -0
  135. package/templates/nuxt/pages/[xorg]/organization.vue.eta +6 -1
  136. package/templates/nuxt/pages/[xorg]/profile.vue.eta +6 -0
  137. package/templates/nuxt/pages/[xorg]/reports/index.vue._eta +18 -0
  138. package/templates/nuxt/pages/[xorg]/user/[id].vue.eta +4 -5
  139. package/templates/nuxt/pages/[xorg]/user/form.vue.eta +6 -1
  140. package/templates/nuxt/pages/[xorg]/user/index.vue.eta +4 -5
  141. package/templates/nuxt/pages/[xorg]/user/new.vue.eta +4 -5
  142. package/templates/nuxt/pages/[xorg]/user/viewer.vue.eta +4 -5
  143. package/templates/nuxt/pages/[xorg]/user.vue.eta +4 -4
  144. package/templates/nuxt/pages/index.vue._eta +4 -4
  145. package/templates/nuxt/pages/login.vue._eta +4 -4
  146. package/templates/nuxt/pages/profile.vue.eta +8 -1
  147. package/templates/nuxt/pages/relogin.vue.eta +6 -0
  148. package/templates/nuxt/plugins/20.simpleapp-userstore.ts.eta +1 -1
  149. package/templates/nuxt/plugins/50.simpleapp-client.ts.eta +1 -1
  150. package/templates/nuxt/server/api/[xorg]/[...].ts.eta +1 -1
  151. package/templates/nuxt/server/api/auth/[...].ts.eta +1 -1
  152. package/templates/nuxt/server/api/auth/logout.ts.eta +1 -1
  153. package/templates/nuxt/server/api/profile/[...].ts.eta +1 -2
  154. package/templates/nuxt/server/api/profile/index.ts.eta +1 -1
  155. package/templates/nuxt/simpleapp/generate/clients/SimpleAppClient.ts.eta +2 -4
  156. package/templates/nuxt/simpleapp/generate/commons/documents.ts.eta +1 -1
  157. package/templates/nuxt/simpleapp/generate/commons/groups.ts.eta +1 -1
  158. package/templates/nuxt/simpleapp/generate/commons/roles.ts.eta +1 -1
  159. package/templates/nuxt/simpleapp/generate/defaults/index.ts.eta +7 -0
  160. package/templates/nuxt/simpleapp/generate/types/index.ts.eta +7 -0
  161. package/templates/nuxt/simpleapp/workflows/forms/index.ts._eta +6 -0
  162. package/templates/nuxt/simpleapp/workflows/forms/simpleapprove.jsonschema.ts._eta +6 -0
  163. package/templates/nuxt/tailwind.config.ts._eta +6 -0
  164. package/templates/nuxt/types/calendar.ts.eta +2 -3
  165. package/templates/nuxt/types/documentlist.ts.eta +3 -3
  166. package/templates/nuxt/types/events.ts.eta +2 -2
  167. package/templates/nuxt/types/index.ts._eta +4 -5
  168. package/templates/nuxt/types/listview.ts.eta +2 -2
  169. package/templates/nuxt/types/notifications.ts.eta +2 -2
  170. package/templates/nuxt/types/others.ts.eta +2 -2
  171. package/templates/nuxt/types/schema.ts.eta +2 -2
  172. package/templates/nuxt/types/simpleappinput.ts.eta +2 -2
  173. package/templates/nuxt/types/user.ts.eta +2 -2
  174. package/templates/nuxt/types/workflow.ts.eta +2 -2
  175. package/templates/project/lang/default._json +1 -1
  176. package/templates/project/sharelibs/hello.ts._eta +6 -0
  177. package/templates/project/sharelibs/index.ts.eta +5 -0
  178. package/tsconfig.tsbuildinfo +1 -1
  179. package/templates/nuxt/components/simpleApp/pending/SimpleAppAutocomplete.vue +0 -135
  180. package/templates/nuxt/components/simpleApp/pending/SimpleAppAutocompletemulti.vue +0 -73
  181. package/templates/nuxt/components/simpleApp/pending/SimpleAppCalendar.vue +0 -55
  182. package/templates/nuxt/components/simpleApp/pending/SimpleAppCheckbox.vue +0 -29
  183. package/templates/nuxt/components/simpleApp/pending/SimpleAppChip.vue +0 -28
  184. package/templates/nuxt/components/simpleApp/pending/SimpleAppColor.vue +0 -41
  185. package/templates/nuxt/components/simpleApp/pending/SimpleAppDocumentNo.vue +0 -90
  186. package/templates/nuxt/components/simpleApp/pending/SimpleAppDynamicInput.vue +0 -29
  187. package/templates/nuxt/components/simpleApp/pending/SimpleAppEditor.vue +0 -31
  188. package/templates/nuxt/components/simpleApp/pending/SimpleAppInputTable.vue +0 -83
  189. package/templates/nuxt/components/simpleApp/pending/SimpleAppList.vue +0 -38
  190. package/templates/nuxt/components/simpleApp/pending/SimpleAppListmulti.vue +0 -41
  191. package/templates/nuxt/components/simpleApp/pending/SimpleAppNumber.vue +0 -43
  192. package/templates/nuxt/components/simpleApp/pending/SimpleAppPassword.vue +0 -41
  193. package/templates/nuxt/components/simpleApp/pending/SimpleAppRadio.vue +0 -42
  194. package/templates/nuxt/components/simpleApp/pending/SimpleAppRating.vue +0 -41
  195. package/templates/nuxt/components/simpleApp/pending/SimpleAppSelect.vue +0 -48
  196. package/templates/nuxt/components/simpleApp/pending/SimpleAppSelectmulti.vue +0 -39
  197. package/templates/nuxt/components/simpleApp/pending/SimpleAppSlider.vue +0 -42
  198. package/templates/nuxt/components/simpleApp/pending/SimpleAppSwitch.vue +0 -30
  199. package/templates/nuxt/components/simpleApp/pending/SimpleAppText.vue +0 -59
  200. package/templates/nuxt/components/simpleApp/pending/SimpleAppTextarea.vue +0 -41
  201. package/templates/nuxt/components/simpleApp/pending/SimpleAppValue.vue +0 -86
  202. package/templates/nuxt/components/simpleApp/pending/helper.ts-backup +0 -90
  203. package/templates/nuxt/components/simpleApp/pending/type.ts-backup +0 -32
  204. package/templates/nuxt/components/suspended/CrudNestedDoc.vue.eta +0 -172
  205. package/templates/nuxt/components/suspended/CrudSimple.vue.eta +0 -181
  206. package/templates/nuxt/components/suspended/Menus.vue.eta +0 -58
  207. package/templates/nuxt/components/suspended/Spinner.vue.eta +0 -9
  208. package/templates/nuxt/lang/df.ts.etaxxxx +0 -16
  209. package/templates/project/sharelibs/hello.ts.eta +0 -1
@@ -1,3 +1,9 @@
1
+ /**
2
+ * This file was automatically generated by simpleapp generator. Every
3
+ * MODIFICATION OVERRIDE BY GENERATEOR
4
+ * last change 2023-10-28
5
+ * Author: Ks Tan
6
+ */
1
7
  import {NotificationStatus} from '~/types'
2
8
  export const getStatusColor = (status:NotificationStatus) => {
3
9
  //console.log("get status color",status)
@@ -1 +1,7 @@
1
+ /**
2
+ * This file was automatically generated by simpleapp generator. Every
3
+ * MODIFICATION OVERRIDE BY GENERATEOR
4
+ * last change 2023-10-28
5
+ * Author: Ks Tan
6
+ */
1
7
  export const refreshDocumentList = (docName:string)=>useNuxtApp().$event('RefreshDocumentList',{documentName:docName})
@@ -1,3 +1,9 @@
1
+ /**
2
+ * This file was automatically generated by simpleapp generator. Every
3
+ * MODIFICATION OVERRIDE BY GENERATEOR
4
+ * last change 2023-10-28
5
+ * Author: Ks Tan
6
+ */
1
7
  import _ from 'lodash'
2
8
 
3
9
  type roletype = {resource:string, action:string}
@@ -1 +1,7 @@
1
+ /**
2
+ * This file was automatically generated by simpleapp generator. Every
3
+ * MODIFICATION OVERRIDE BY GENERATEOR
4
+ * last change 2023-10-28
5
+ * Author: Ks Tan
6
+ */
1
7
  export const isMobile = () => window.innerWidth <= 640
@@ -1,3 +1,9 @@
1
+ /**
2
+ * This file was automatically generated by simpleapp generator. Every
3
+ * MODIFICATION OVERRIDE BY GENERATEOR
4
+ * last change 2023-10-28
5
+ * Author: Ks Tan
6
+ */
1
7
  import _ from 'lodash'
2
8
  import {Md5} from 'ts-md5'
3
9
  import moment from "moment";
@@ -1 +1,7 @@
1
+ /**
2
+ * This file was automatically generated by simpleapp generator. Every
3
+ * MODIFICATION OVERRIDE BY GENERATEOR
4
+ * last change 2023-10-28
5
+ * Author: Ks Tan
6
+ */
1
7
  export const getAvatarColor = computed(()=>useColorMode().preference == 'dark' ? '#ffffff' : '#000000')
@@ -1,3 +1,9 @@
1
+ /**
2
+ * This file was automatically generated by simpleapp generator. Every
3
+ * MODIFICATION OVERRIDE BY GENERATEOR
4
+ * last change 2023-10-28
5
+ * Author: Ks Tan
6
+ */
1
7
  import {UserTaskType} from '../types'
2
8
  export const getTaskList = async ()=>{
3
9
  const tasks = await getWorkflowApi().getMyUserTask()
@@ -22,7 +22,12 @@
22
22
  </div>
23
23
  </template>
24
24
  <script setup lang="ts">
25
-
25
+ /**
26
+ * This file was automatically generated by simpleapp generator during initialization. It is changable.
27
+ * --remove-this-line-to-prevent-override--
28
+ * last change 2024-02-22
29
+ * author: Ks Tan
30
+ */
26
31
  const props = defineProps({
27
32
  error: Object
28
33
  })
@@ -1,3 +1,9 @@
1
+ /**
2
+ * This file was automatically generated by simpleapp generator. Every
3
+ * MODIFICATION OVERRIDE BY GENERATEOR
4
+ * last change 2024-02-23
5
+ * Author: Ks Tan
6
+ */
1
7
  export default defineI18nConfig(() => ({
2
8
  legacy: false,
3
9
  locale: 'en',
@@ -1,3 +1,9 @@
1
+ /**
2
+ * This file was automatically generated by simpleapp generator during initialization. It is changable.
3
+ * --remove-this-line-to-prevent-override--
4
+ * last change 2024-02-22
5
+ * author: Ks Tan
6
+ */
1
7
  export default {
2
8
  welcome:'欢迎',
3
9
  welcomeSimpleApp: '你好,欢迎来到 SimpleApp',
@@ -1,3 +1,4 @@
1
+
1
2
  export default {
2
3
  //auto generate from lang/default.ts
3
4
  <%let langkeys = Object.keys(it.lang) %>
@@ -30,6 +30,12 @@
30
30
 
31
31
  </template>
32
32
  <script setup lang="ts">
33
+ /**
34
+ * This file was automatically generated by simpleapp generator during initialization. It is changable.
35
+ * --remove-this-line-to-prevent-override--
36
+ * last change 2024-02-22
37
+ * author: Ks Tan
38
+ */
33
39
  const showMenu =ref(false)
34
40
  const showProfile =ref(false)
35
41
 
@@ -1,3 +1,11 @@
1
1
  <template>
2
2
  <slot v-if="useRoute().path=='/login'"></slot>
3
- </template>
3
+ </template>
4
+ <script lang="ts" setup>
5
+ /**
6
+ * This file was automatically generated by simpleapp generator during initialization. It is changable.
7
+ * --remove-this-line-to-prevent-override--
8
+ * last change 2024-02-22
9
+ * author: Ks Tan
10
+ */
11
+ </script>
@@ -31,6 +31,12 @@
31
31
  </div>
32
32
  </template>
33
33
  <script setup lang="ts">
34
+ /**
35
+ * This file was automatically generated by simpleapp generator during initialization. It is changable.
36
+ * --remove-this-line-to-prevent-override--
37
+ * last change 2024-02-22
38
+ * author: Ks Tan
39
+ */
34
40
  const showMenu =ref(false)
35
41
  const showProfile =ref(false)
36
42
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2024-01-23
4
+ * last change 2023-10-28
5
5
  * Author: Ks Tan
6
6
  */
7
7
  import { getUserProfile } from './../composables/getUserStore.generate';
@@ -1,9 +1,8 @@
1
1
  /**
2
- * This file was automatically generated by simpleapp generator. Every
3
- * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2024-02-21
5
- * --remove-this-line-to-prevent-override--
6
- * Author: Ks Tan
2
+ * This file was automatically generated by simpleapp generator during initialization. It is changable.
3
+ * --remove-this-line-to-prevent-override--
4
+ * last change 2024-02-22
5
+ * author: Ks Tan
7
6
  */
8
7
  import path from 'path'
9
8
  export default defineNuxtConfig({
@@ -1,10 +1,9 @@
1
1
  <script setup lang="ts">
2
2
  /**
3
- * This file was automatically generated by simpleapp everytime regenerate code.
4
- * delete file "delete-me-for-avoid-override" if you want to modify this file and
5
- * prevent regenerate code override it.
6
- * last change 2023-09-09
7
- * author: Ks Tan
3
+ * This file was automatically generated by simpleapp generator. Every
4
+ * MODIFICATION OVERRIDE BY GENERATEOR
5
+ * last change 2023-10-28
6
+ * Author: Ks Tan
8
7
  */
9
8
  import Crud from "./new.vue";
10
9
 
@@ -1,4 +1,11 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * This file was automatically generated by simpleapp generator. Every
4
+ * MODIFICATION OVERRIDE BY GENERATEOR
5
+ * last change 2023-10-28
6
+ * Author: Ks Tan
7
+ */
8
+
2
9
  import {SimpleAppInputType} from '~/types'
3
10
  import ConfirmPopup from "primevue/confirmpopup";
4
11
  import { useConfirm } from "primevue/useconfirm";
@@ -1,5 +1,10 @@
1
1
  <script setup lang="ts">
2
-
2
+ /**
3
+ * This file was automatically generated by simpleapp generator. Every
4
+ * MODIFICATION OVERRIDE BY GENERATEOR
5
+ * last change 2023-10-28
6
+ * Author: Ks Tan
7
+ */
3
8
  const {$event,$listen, $DocnoformatDoc} = useNuxtApp()
4
9
  const doc = $DocnoformatDoc()
5
10
  const data = doc.getReactiveData()
@@ -2,5 +2,10 @@
2
2
  <div></div>
3
3
  </template>
4
4
  <script setup lang="ts">
5
-
5
+ /**
6
+ * This file was automatically generated by simpleapp generator. Every
7
+ * MODIFICATION OVERRIDE BY GENERATEOR
8
+ * last change 2023-10-28
9
+ * Author: Ks Tan
10
+ */
6
11
  </script>
@@ -16,13 +16,11 @@
16
16
  </template>
17
17
  <script setup lang="ts">
18
18
  /**
19
- * This file was automatically generated by simpleapp everytime regenerate code.
20
- * delete file "delete-me-for-avoid-override" if you want to modify this file and
21
- * prevent regenerate code override it.
22
- * last change 2023-09-09
23
- * author: Ks Tan
19
+ * This file was automatically generated by simpleapp generator. Every
20
+ * MODIFICATION OVERRIDE BY GENERATEOR
21
+ * last change 2023-10-28
22
+ * Author: Ks Tan
24
23
  */
25
-
26
24
  definePageMeta({
27
25
  menuPath: "setting/docnoformat",
28
26
  })
@@ -10,11 +10,10 @@
10
10
  </template>
11
11
  <script lang="ts" setup>
12
12
  /**
13
- * This file was automatically generated by simpleapp generator.
14
- * YOU ALLOWED TO CHANGE THIS FILE, IT WONT OVERRIDE BY GENERATOR
15
- * last change 2023-10-28
16
- * Author: Ks Tan
13
+ * This file was automatically generated by simpleapp generator during initialization. It is changable.
14
+ * --remove-this-line-to-prevent-override--
15
+ * last change 2024-02-22
16
+ * author: Ks Tan
17
17
  */
18
-
19
18
  useNuxtApp().$event('SetTitle',t('home'))
20
19
  </script>
@@ -1,3 +1,11 @@
1
1
  <template>
2
2
  <div>no org viewer</div>
3
3
  </template>
4
+ <script lang="ts" setup>
5
+ /**
6
+ * This file was automatically generated by simpleapp generator. Every
7
+ * MODIFICATION OVERRIDE BY GENERATEOR
8
+ * last change 2023-10-28
9
+ * Author: Ks Tan
10
+ */
11
+ </script>
@@ -46,7 +46,12 @@
46
46
  </template>
47
47
 
48
48
  <script setup lang="ts">
49
-
49
+ /**
50
+ * This file was automatically generated by simpleapp generator. Every
51
+ * MODIFICATION OVERRIDE BY GENERATEOR
52
+ * last change 2023-10-28
53
+ * Author: Ks Tan
54
+ */
50
55
  import { FormCrudEvent, SimpleAppInputType } from "~/types";
51
56
  import ConfirmPopup from "primevue/confirmpopup";
52
57
  import { useConfirm } from "primevue/useconfirm";
@@ -2,6 +2,12 @@
2
2
  <profile></profile>
3
3
  </template>
4
4
  <script setup lang="ts">
5
+ /**
6
+ * This file was automatically generated by simpleapp generator. Every
7
+ * MODIFICATION OVERRIDE BY GENERATEOR
8
+ * last change 2023-10-28
9
+ * Author: Ks Tan
10
+ */
5
11
  import profile from "../profile.vue";
6
12
  definePageMeta({
7
13
  menuPath:'setting/profile'
@@ -0,0 +1,18 @@
1
+ <template>
2
+ <div class="flex flex-row h-full">
3
+ <div>
4
+ <SidebarSideBarContainer> reportlist </SidebarSideBarContainer>
5
+ </div>
6
+ <div>
7
+ <div>reports body</div>
8
+ </div>
9
+ </div>
10
+ </template>
11
+ <script setup lang="ts">
12
+ /**
13
+ * This file was automatically generated by simpleapp generator. It is changable
14
+ * --remove-this-line-to-prevent-override--
15
+ * last change 2024-02-23
16
+ * Author: Ks Tan
17
+ */
18
+ </script>
@@ -4,11 +4,10 @@
4
4
 
5
5
  <script setup lang="ts">
6
6
  /**
7
- * This file was automatically generated by simpleapp everytime regenerate code.
8
- * delete file "delete-me-for-avoid-override" if you want to modify this file and
9
- * prevent regenerate code override it.
10
- * last change 2023-09-09
11
- * author: Ks Tan
7
+ * This file was automatically generated by simpleapp generator. Every
8
+ * MODIFICATION OVERRIDE BY GENERATEOR
9
+ * last change 2023-10-28
10
+ * Author: Ks Tan
12
11
  */
13
12
  import Crud from "./form.vue";
14
13
  import { User } from "~/simpleapp/generate/types";
@@ -105,7 +105,12 @@
105
105
  </div>
106
106
  </template>
107
107
  <script setup lang="ts">
108
- // import Card from "primevue/card";
108
+ /**
109
+ * This file was automatically generated by simpleapp generator. Every
110
+ * MODIFICATION OVERRIDE BY GENERATEOR
111
+ * last change 2023-10-28
112
+ * Author: Ks Tan
113
+ */
109
114
  import { SimpleAppInputType } from "~/types";
110
115
  import { Permission, User } from "../../../simpleapp/generate/openapi/api";
111
116
  import _ from "lodash";
@@ -4,11 +4,10 @@
4
4
 
5
5
  <script setup lang="ts">
6
6
  /**
7
- * This file was automatically generated by simpleapp everytime regenerate code.
8
- * delete file "delete-me-for-avoid-override" if you want to modify this file and
9
- * prevent regenerate code override it.
10
- * last change 2023-09-09
11
- * author: Ks Tan
7
+ * This file was automatically generated by simpleapp generator. Every
8
+ * MODIFICATION OVERRIDE BY GENERATEOR
9
+ * last change 2023-10-28
10
+ * Author: Ks Tan
12
11
  */
13
12
  import Crud from "./form.vue";
14
13
  import { User } from "~/simpleapp/generate/types";
@@ -4,11 +4,10 @@
4
4
 
5
5
  <script setup lang="ts">
6
6
  /**
7
- * This file was automatically generated by simpleapp everytime regenerate code.
8
- * delete file "delete-me-for-avoid-override" if you want to modify this file and
9
- * prevent regenerate code override it.
10
- * last change 2023-09-09
11
- * author: Ks Tan
7
+ * This file was automatically generated by simpleapp generator. Every
8
+ * MODIFICATION OVERRIDE BY GENERATEOR
9
+ * last change 2023-10-28
10
+ * Author: Ks Tan
12
11
  */
13
12
 
14
13
  import Crud from "./form.vue";const { $UserDoc } = useNuxtApp();
@@ -3,11 +3,10 @@
3
3
  </template>
4
4
  <script setup lang="ts">
5
5
  /**
6
- * This file was automatically generated by simpleapp everytime regenerate code.
7
- * delete file "delete-me-for-avoid-override" if you want to modify this file and
8
- * prevent regenerate code override it.
9
- * last change 2023-09-09
10
- * author: Ks Tan
6
+ * This file was automatically generated by simpleapp generator. Every
7
+ * MODIFICATION OVERRIDE BY GENERATEOR
8
+ * last change 2023-10-28
9
+ * Author: Ks Tan
11
10
  */
12
11
  import Crud from "./form.vue";import { User } from "~/simpleapp/generate/types";
13
12
  const props = defineProps<{ _id: string; paras?: User }>();
@@ -73,10 +73,10 @@
73
73
 
74
74
  <script setup lang="ts">
75
75
  /**
76
- * invite user into current tenant (put user into user catalogue)
77
- * 1. user accept then have uid
78
- * 2. no uid user will put at invite place
79
- *
76
+ * This file was automatically generated by simpleapp generator. Every
77
+ * MODIFICATION OVERRIDE BY GENERATEOR
78
+ * last change 2023-10-28
79
+ * Author: Ks Tan
80
80
  */
81
81
  // import userchild from './userchild.vue'
82
82
  import Menu from "primevue/menu";
@@ -1,9 +1,9 @@
1
1
  <script lang="ts" setup>
2
2
  /**
3
- * This file was automatically generated by simpleapp generator
4
- * CHANGE IT!!
5
- * last change 2023-11-12
6
- * Author: Ks Tan
3
+ * This file was automatically generated by simpleapp generator during initialization. It is changable.
4
+ * --remove-this-line-to-prevent-override--
5
+ * last change 2024-02-22
6
+ * author: Ks Tan
7
7
  */
8
8
  </script>
9
9
  <template>
@@ -6,10 +6,10 @@
6
6
  </template>
7
7
  <script setup lang="ts">
8
8
  /**
9
- * This file was automatically generated by simpleapp generator. Every
10
- * MODIFICATION OVERRIDE BY GENERATEOR
11
- * last change 2024-02-13
12
- * Author: Ks Tan
9
+ * This file was automatically generated by simpleapp generator during initialization. It is changable.
10
+ * --remove-this-line-to-prevent-override--
11
+ * last change 2024-02-22
12
+ * author: Ks Tan
13
13
  */
14
14
 
15
15
  definePageMeta({
@@ -119,4 +119,11 @@
119
119
  </div>
120
120
  </div>
121
121
  </template>
122
- <script setup lang="ts"></script>
122
+ <script setup lang="ts">
123
+ /**
124
+ * This file was automatically generated by simpleapp generator. Every
125
+ * MODIFICATION OVERRIDE BY GENERATEOR
126
+ * last change 2023-10-28
127
+ * Author: Ks Tan
128
+ */
129
+ </script>
@@ -2,5 +2,11 @@
2
2
  <div>relogin success</div>
3
3
  </template>
4
4
  <script lang="ts" setup>
5
+ /**
6
+ * This file was automatically generated by simpleapp generator. Every
7
+ * MODIFICATION OVERRIDE BY GENERATEOR
8
+ * last change 2023-10-28
9
+ * Author: Ks Tan
10
+ */
5
11
  window.close()
6
12
  </script>
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2024-01-23
4
+ * last change 2024-02-23
5
5
  * Author: Ks Tan
6
6
  */
7
7
  import { defineNuxtPlugin } from "#app";
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2023-10-28
4
+ * last change 2024-02-23
5
5
  * Author: Ks Tan
6
6
  */
7
7
  import { defineNuxtPlugin } from "#app";
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2023-10-28
4
+ * last change 2024-02-23
5
5
  * Author: Ks Tan
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2024-01-24
4
+ * last change 2024-02-23
5
5
  * Author: Ks Tan
6
6
  */
7
7
  import { NuxtAuthHandler } from "#auth";
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2024-01-24
4
+ * last change 2024-02-23
5
5
  * Author: Ks Tan
6
6
  */
7
7
  export default defineEventHandler(async (event) => {
@@ -1,10 +1,9 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2023-10-28
4
+ * last change 2024-02-23
5
5
  * Author: Ks Tan
6
6
  */
7
-
8
7
 
9
8
  import axios from 'axios';
10
9
  import { getServerSession } from '#auth'
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2023-10-28
4
+ * last change 2024-02-23
5
5
  * Author: Ks Tan
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2023-10-28
4
+ * last change 2024-02-23
5
5
  * Author: Ks Tan
6
6
  */
7
7
  import Ajv from 'ajv';
@@ -99,8 +99,7 @@ export class SimpleAppClient<
99
99
  // })
100
100
  this.data.value = { ...res.data };
101
101
  return res.data;
102
- }).catch((errors:any)=>{
103
- // console.log(this.getDocName(),"-----failed")
102
+ }).catch((errors:any)=>{
104
103
  $event('Notification',{
105
104
  documentName:this.getDocName(),
106
105
  summary:'Record create failed',
@@ -268,7 +267,6 @@ export class SimpleAppClient<
268
267
  // console.error(tmp);
269
268
  this.errorlist.value = tmp;
270
269
  // console.error(this.errorlist);
271
-
272
270
  // return validate.errors;
273
271
  return ajv.errors??validate.errors;
274
272
  } else {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2023-10-28
4
+ * last change 2024-02-23
5
5
  * Author: Ks Tan
6
6
  */
7
7
  import { DocumentMetaData } from "~/types"
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2023-10-28
4
+ * last change 2024-02-23
5
5
  * Author: Ks Tan
6
6
  */
7
7
  type grouptype = {[key:string]:roletype[]}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2023-10-28
4
+ * last change 2024-02-23
5
5
  * Author: Ks Tan
6
6
  */
7
7
  type roletype = {resource:string, action:string}
@@ -1,3 +1,10 @@
1
+ /**
2
+ * This file was automatically generated by simpleapp generator. Every
3
+ * MODIFICATION OVERRIDE BY GENERATEOR
4
+ * last change 2024-02-23
5
+ * Author: Ks Tan
6
+ */
7
+
1
8
  <%for(let i=0; i<it.modules.length;i++){ %>
2
9
  <% const d = it.modules[i] %>
3
10
  export {Default<%= d['docname']%>} from './<%= d['docname']%>.default'