@simitgroup/simpleapp-generator 1.3.0-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 (213) hide show
  1. package/dist/framework.d.ts.map +1 -1
  2. package/dist/framework.js +4 -1
  3. package/dist/framework.js.map +1 -1
  4. package/dist/generate.js +12 -3
  5. package/dist/generate.js.map +1 -1
  6. package/package.json +1 -1
  7. package/src/framework.ts +6 -2
  8. package/src/generate.ts +11 -3
  9. package/templates/basic/nest/apischema.ts.eta +2 -3
  10. package/templates/basic/nest/controller.ts.eta +3 -4
  11. package/templates/basic/nest/default.ts.eta +6 -0
  12. package/templates/basic/nest/jsonschema.ts.eta +3 -4
  13. package/templates/basic/nest/model.ts.eta +3 -5
  14. package/templates/basic/nest/processor.ts.eta +3 -4
  15. package/templates/basic/nest/service.ts.eta +8 -1
  16. package/templates/basic/nest/type.ts.eta +3 -4
  17. package/templates/basic/nuxt/default.ts.eta +6 -0
  18. package/templates/basic/nuxt/pages.form.vue.eta +2 -1
  19. package/templates/basic/nuxt/simpleapp.generate.client.ts.eta +3 -4
  20. package/templates/nest/.env._eta +2 -5
  21. package/templates/nest/.gitignore.eta +5 -0
  22. package/templates/nest/src/simpleapp/.gitignore.eta +5 -0
  23. package/templates/nest/src/simpleapp/apischemas/index.ts._eta +6 -1
  24. package/templates/nest/src/simpleapp/generate/apischemas/index.ts.eta +7 -0
  25. package/templates/nest/src/simpleapp/generate/apischemas/simpleapp.apischema.ts.eta +1 -1
  26. package/templates/nest/src/simpleapp/generate/workflow/formschema/index.ts.eta +6 -0
  27. package/templates/nest/src/simpleapp/generate/workflow/workflow.apischema.ts.eta +6 -0
  28. package/templates/nest/src/simpleapp/generate/workflow/workflow.config.ts.eta +6 -0
  29. package/templates/nest/src/simpleapp/generate/workflow/workflow.controller.ts.eta +6 -0
  30. package/templates/nest/src/simpleapp/generate/workflow/workflow.delegate.ts.eta +6 -0
  31. package/templates/nest/src/simpleapp/generate/workflow/workflow.service.ts.eta +2 -4
  32. package/templates/nest/src/simpleapp/generate/workflow/workflow.type.ts.eta +4 -5
  33. package/templates/nest/src/simpleapp/generate/workflow/workflow.userservice.ts.eta +6 -0
  34. package/templates/nest/src/simpleapp/profile/profile.apischema.ts.eta +1 -1
  35. package/templates/nest/src/simpleapp/profile/profile.controller.ts.eta +1 -1
  36. package/templates/nest/src/simpleapp/profile/profile.service.ts.eta +1 -1
  37. package/templates/nest/src/simpleapp/profile/profile.types.ts.eta +1 -1
  38. package/templates/nest/src/simpleapp/services/autoinc.service.ts.eta +1 -1
  39. package/templates/nest/src/simpleapp/services/branch.service.ts.eta +1 -1
  40. package/templates/nest/src/simpleapp/services/docno.service.ts.eta +1 -1
  41. package/templates/nest/src/simpleapp/services/org.service.ts.eta +1 -1
  42. package/templates/nest/src/simpleapp/services/perm.service.ts.eta +1 -1
  43. package/templates/nest/src/simpleapp/services/tenant.service.ts.eta +1 -1
  44. package/templates/nest/src/simpleapp/services/user.service.ts.etax +1 -1
  45. package/templates/nest/src/simpleapp/types/index.ts._eta +6 -1
  46. package/templates/nest/src/simpleapp/workflows/listeners/simpleapp.listener.ts._eta +4 -5
  47. package/templates/nest/test/app.e2e-spec.ts.eta +6 -0
  48. package/templates/nest/test/setting.ts.eta +6 -0
  49. package/templates/nuxt/.env._eta +2 -0
  50. package/templates/nuxt/.gitignore.eta +5 -0
  51. package/templates/nuxt/{app.vue.eta → app.vue._eta} +14 -14
  52. package/templates/nuxt/assets/css/calendar.css._eta +6 -1
  53. package/templates/nuxt/assets/css/listview.css._eta +17 -0
  54. package/templates/nuxt/assets/css/style.css._eta +6 -4
  55. package/templates/nuxt/assets/css/tailwind.css._eta +6 -0
  56. package/templates/nuxt/assets/primevue/passthrough.ts._eta +13 -8
  57. package/templates/nuxt/components/button/ButtonDanger.vue._eta +16 -4
  58. package/templates/nuxt/components/button/ButtonDefault.vue._eta +17 -4
  59. package/templates/nuxt/components/button/ButtonMultiple.vue._eta +8 -2
  60. package/templates/nuxt/components/button/ButtonPrimary.vue._eta +17 -5
  61. package/templates/nuxt/components/button/ButtonText.vue._eta +21 -0
  62. package/templates/nuxt/components/button/ButtonWarning.vue._eta +17 -5
  63. package/templates/nuxt/components/calendar/CalendarByResource.vue.eta +7 -3
  64. package/templates/nuxt/components/calendar/CalendarSmall.vue.eta +6 -0
  65. package/templates/nuxt/components/debug/DebugDocumentData.vue.eta +3 -3
  66. package/templates/nuxt/components/event/EventDecision.vue._eta +3 -3
  67. package/templates/nuxt/components/event/EventDocumentViewer.vue._eta +3 -3
  68. package/templates/nuxt/components/event/EventNotification.vue._eta +3 -3
  69. package/templates/nuxt/components/form/FormBranch.vue.eta +4 -3
  70. package/templates/nuxt/components/header/HeaderBar.vue._eta +7 -1
  71. package/templates/nuxt/components/header/HeaderBreadcrumb.vue.eta +6 -0
  72. package/templates/nuxt/components/header/HeaderSelectBranch.vue.eta +6 -0
  73. package/templates/nuxt/components/header/button/HeaderButtonHome.vue.eta +6 -1
  74. package/templates/nuxt/components/header/button/HeaderButtonLogout.vue.eta +9 -1
  75. package/templates/nuxt/components/header/button/HeaderButtonMenuPicker.vue._eta +7 -0
  76. package/templates/nuxt/components/header/button/HeaderButtonProfile.vue.eta +6 -0
  77. package/templates/nuxt/components/header/button/task/HeaderButtonTaskItem.vue.eta +7 -0
  78. package/templates/nuxt/components/header/button/task/HeaderButtonTaskList.vue.eta +6 -0
  79. package/templates/nuxt/components/list/ListDocument.vue.eta +6 -0
  80. package/templates/nuxt/components/list/ListDocumentTable.vue.eta +6 -0
  81. package/templates/nuxt/components/list/ListView.vue.eta +60 -47
  82. package/templates/nuxt/components/mobile/MobileToolbar.vue.eta +9 -3
  83. package/templates/nuxt/components/overlay/OverlayPanelWithToolBar.vue.eta +44 -0
  84. package/templates/nuxt/components/overlay/OverlaySideBarCrud.vue.eta +10 -1
  85. package/templates/nuxt/components/overlay/OverlayViewer.vue.eta +7 -1
  86. package/templates/nuxt/components/page/PageDocList.vue.eta +23 -14
  87. package/templates/nuxt/components/renderer/index.ts._eta +3 -3
  88. package/templates/nuxt/components/session/SessionBlock.vue.eta +6 -0
  89. package/templates/nuxt/components/simpleApp/SimpleAppAutocomplete.vue.eta +7 -1
  90. package/templates/nuxt/components/simpleApp/SimpleAppDocumentNo.vue.eta +6 -0
  91. package/templates/nuxt/components/simpleApp/SimpleAppFieldContainer.vue.eta +6 -0
  92. package/templates/nuxt/components/simpleApp/SimpleAppForm.vue.eta +7 -2
  93. package/templates/nuxt/components/simpleApp/SimpleAppFormToolBar.vue.eta +21 -17
  94. package/templates/nuxt/components/simpleApp/SimpleAppInput.vue.eta +6 -0
  95. package/templates/nuxt/components/simpleApp/SimpleAppInputTable.vue.eta +6 -1
  96. package/templates/nuxt/components/simpleApp/SimpleAppJsonSchemaForm.vue.eta +6 -0
  97. package/templates/nuxt/components/table/TableDocuments.vue.eta +6 -0
  98. package/templates/nuxt/components/text/TextDanger.vue._eta +8 -0
  99. package/templates/nuxt/components/text/TextSubtitle.vue._eta +8 -0
  100. package/templates/nuxt/components/text/TextTitle.vue._eta +8 -0
  101. package/templates/nuxt/components/user/UserButtonCreateTenant.vue.eta +6 -0
  102. package/templates/nuxt/components/user/UserButtonPermissionInfo.vue.eta +6 -0
  103. package/templates/nuxt/components/user/UserInvitation.vue.eta +22 -16
  104. package/templates/nuxt/components/user/UserProfileListItem.vue.eta +6 -1
  105. package/templates/nuxt/components/user/UserTenantPicker.vue.eta +6 -1
  106. package/templates/nuxt/components/workflow/forms/dynamicfield.vue._eta +7 -0
  107. package/templates/nuxt/components/workflow/forms/index.ts._eta +7 -0
  108. package/templates/nuxt/components/workflow/forms/simpleapprove.vue._eta +6 -0
  109. package/templates/nuxt/composables/date.generate.ts.eta +6 -3
  110. package/templates/nuxt/composables/docformat.generate.ts.eta +6 -0
  111. package/templates/nuxt/composables/getDocument.generate.ts.eta +6 -0
  112. package/templates/nuxt/composables/getTenant.generate.ts.eta +6 -0
  113. package/templates/nuxt/composables/getUserStore.generate.ts.eta +6 -0
  114. package/templates/nuxt/composables/goTo.generate.ts.eta +6 -0
  115. package/templates/nuxt/composables/logout.generate.ts.eta +6 -0
  116. package/templates/nuxt/composables/notifications.generate.ts.eta +6 -0
  117. package/templates/nuxt/composables/refreshDocumentList.generate.ts.eta +6 -0
  118. package/templates/nuxt/composables/roles.generate.ts.eta +6 -0
  119. package/templates/nuxt/composables/screensize.generate.ts.eta +6 -0
  120. package/templates/nuxt/composables/stringHelper.generate.ts.eta +6 -0
  121. package/templates/nuxt/composables/themes.generate.ts.eta +6 -0
  122. package/templates/nuxt/composables/workflow.generate.ts.eta +6 -0
  123. package/templates/nuxt/error.vue._eta +6 -1
  124. package/templates/nuxt/i18n.config.ts.eta +6 -0
  125. package/templates/nuxt/lang/cn.ts._eta +6 -0
  126. package/templates/nuxt/lang/en.ts.eta +1 -0
  127. package/templates/nuxt/layouts/default.vue._eta +6 -0
  128. package/templates/nuxt/layouts/loginlayout.vue._eta +9 -1
  129. package/templates/nuxt/layouts/mobile.vue._eta +6 -0
  130. package/templates/nuxt/middleware/30.acl.global.ts.eta +1 -1
  131. package/templates/nuxt/nuxt.config.ts._eta +4 -4
  132. package/templates/nuxt/pages/[xorg]/docnoformat/[doctype]/[id].vue.eta +4 -5
  133. package/templates/nuxt/pages/[xorg]/docnoformat/[doctype]/new.vue.eta +7 -0
  134. package/templates/nuxt/pages/[xorg]/docnoformat/[doctype].vue.eta +6 -1
  135. package/templates/nuxt/pages/[xorg]/docnoformat/index.vue.eta +6 -1
  136. package/templates/nuxt/pages/[xorg]/docnoformat.vue.eta +4 -6
  137. package/templates/nuxt/pages/[xorg]/index.vue._eta +4 -5
  138. package/templates/nuxt/pages/[xorg]/organization/viewer.vue.eta +8 -0
  139. package/templates/nuxt/pages/[xorg]/organization.vue.eta +6 -1
  140. package/templates/nuxt/pages/[xorg]/profile.vue.eta +6 -0
  141. package/templates/nuxt/pages/[xorg]/reports/index.vue._eta +18 -0
  142. package/templates/nuxt/pages/[xorg]/user/[id].vue.eta +4 -5
  143. package/templates/nuxt/pages/[xorg]/user/form.vue.eta +6 -1
  144. package/templates/nuxt/pages/[xorg]/user/index.vue.eta +4 -5
  145. package/templates/nuxt/pages/[xorg]/user/new.vue.eta +4 -5
  146. package/templates/nuxt/pages/[xorg]/user/viewer.vue.eta +4 -5
  147. package/templates/nuxt/pages/[xorg]/user.vue.eta +4 -4
  148. package/templates/nuxt/pages/index.vue._eta +4 -4
  149. package/templates/nuxt/pages/login.vue._eta +4 -4
  150. package/templates/nuxt/pages/profile.vue.eta +8 -1
  151. package/templates/nuxt/pages/relogin.vue.eta +6 -0
  152. package/templates/nuxt/plugins/20.simpleapp-userstore.ts.eta +1 -1
  153. package/templates/nuxt/plugins/50.simpleapp-client.ts.eta +1 -1
  154. package/templates/nuxt/server/api/[xorg]/[...].ts.eta +1 -1
  155. package/templates/nuxt/server/api/auth/[...].ts.eta +1 -1
  156. package/templates/nuxt/server/api/auth/logout.ts.eta +1 -1
  157. package/templates/nuxt/server/api/profile/[...].ts.eta +1 -2
  158. package/templates/nuxt/server/api/profile/index.ts.eta +1 -1
  159. package/templates/nuxt/simpleapp/generate/clients/SimpleAppClient.ts.eta +2 -4
  160. package/templates/nuxt/simpleapp/generate/commons/documents.ts.eta +1 -1
  161. package/templates/nuxt/simpleapp/generate/commons/groups.ts.eta +1 -1
  162. package/templates/nuxt/simpleapp/generate/commons/roles.ts.eta +1 -1
  163. package/templates/nuxt/simpleapp/generate/defaults/index.ts.eta +7 -0
  164. package/templates/nuxt/simpleapp/generate/types/index.ts.eta +7 -0
  165. package/templates/nuxt/simpleapp/workflows/forms/index.ts._eta +6 -0
  166. package/templates/nuxt/simpleapp/workflows/forms/simpleapprove.jsonschema.ts._eta +6 -0
  167. package/templates/nuxt/tailwind.config.ts._eta +6 -0
  168. package/templates/nuxt/types/calendar.ts.eta +2 -3
  169. package/templates/nuxt/types/documentlist.ts.eta +3 -3
  170. package/templates/nuxt/types/events.ts.eta +2 -2
  171. package/templates/nuxt/types/index.ts._eta +4 -5
  172. package/templates/nuxt/types/listview.ts.eta +2 -2
  173. package/templates/nuxt/types/notifications.ts.eta +2 -2
  174. package/templates/nuxt/types/others.ts.eta +2 -2
  175. package/templates/nuxt/types/schema.ts.eta +2 -2
  176. package/templates/nuxt/types/simpleappinput.ts.eta +2 -2
  177. package/templates/nuxt/types/user.ts.eta +2 -2
  178. package/templates/nuxt/types/workflow.ts.eta +2 -2
  179. package/templates/project/lang/default._json +1 -1
  180. package/templates/project/sharelibs/hello.ts._eta +6 -0
  181. package/templates/project/sharelibs/index.ts.eta +5 -0
  182. package/tsconfig.tsbuildinfo +1 -1
  183. package/templates/nuxt/components/simpleApp/pending/SimpleAppAutocomplete.vue +0 -135
  184. package/templates/nuxt/components/simpleApp/pending/SimpleAppAutocompletemulti.vue +0 -73
  185. package/templates/nuxt/components/simpleApp/pending/SimpleAppCalendar.vue +0 -55
  186. package/templates/nuxt/components/simpleApp/pending/SimpleAppCheckbox.vue +0 -29
  187. package/templates/nuxt/components/simpleApp/pending/SimpleAppChip.vue +0 -28
  188. package/templates/nuxt/components/simpleApp/pending/SimpleAppColor.vue +0 -41
  189. package/templates/nuxt/components/simpleApp/pending/SimpleAppDocumentNo.vue +0 -90
  190. package/templates/nuxt/components/simpleApp/pending/SimpleAppDynamicInput.vue +0 -29
  191. package/templates/nuxt/components/simpleApp/pending/SimpleAppEditor.vue +0 -31
  192. package/templates/nuxt/components/simpleApp/pending/SimpleAppInputTable.vue +0 -83
  193. package/templates/nuxt/components/simpleApp/pending/SimpleAppList.vue +0 -38
  194. package/templates/nuxt/components/simpleApp/pending/SimpleAppListmulti.vue +0 -41
  195. package/templates/nuxt/components/simpleApp/pending/SimpleAppNumber.vue +0 -43
  196. package/templates/nuxt/components/simpleApp/pending/SimpleAppPassword.vue +0 -41
  197. package/templates/nuxt/components/simpleApp/pending/SimpleAppRadio.vue +0 -42
  198. package/templates/nuxt/components/simpleApp/pending/SimpleAppRating.vue +0 -41
  199. package/templates/nuxt/components/simpleApp/pending/SimpleAppSelect.vue +0 -48
  200. package/templates/nuxt/components/simpleApp/pending/SimpleAppSelectmulti.vue +0 -39
  201. package/templates/nuxt/components/simpleApp/pending/SimpleAppSlider.vue +0 -42
  202. package/templates/nuxt/components/simpleApp/pending/SimpleAppSwitch.vue +0 -30
  203. package/templates/nuxt/components/simpleApp/pending/SimpleAppText.vue +0 -59
  204. package/templates/nuxt/components/simpleApp/pending/SimpleAppTextarea.vue +0 -41
  205. package/templates/nuxt/components/simpleApp/pending/SimpleAppValue.vue +0 -86
  206. package/templates/nuxt/components/simpleApp/pending/helper.ts-backup +0 -90
  207. package/templates/nuxt/components/simpleApp/pending/type.ts-backup +0 -32
  208. package/templates/nuxt/components/suspended/CrudNestedDoc.vue.eta +0 -172
  209. package/templates/nuxt/components/suspended/CrudSimple.vue.eta +0 -181
  210. package/templates/nuxt/components/suspended/Menus.vue.eta +0 -58
  211. package/templates/nuxt/components/suspended/Spinner.vue.eta +0 -9
  212. package/templates/nuxt/lang/df.ts.etaxxxx +0 -16
  213. package/templates/project/sharelibs/hello.ts.eta +0 -1
@@ -31,8 +31,13 @@
31
31
  </div>
32
32
 
33
33
  </template>
34
-
35
34
  <script setup lang="ts">
35
+ /**
36
+ * This file was automatically generated by simpleapp generator. Every
37
+ * MODIFICATION OVERRIDE BY GENERATEOR
38
+ * last change 2023-10-28
39
+ * Author: Ks Tan
40
+ */
36
41
  import {computed} from 'vue'
37
42
  import moment from 'moment'
38
43
  const props = defineProps<{
@@ -57,8 +57,13 @@
57
57
  </card>
58
58
  </div>
59
59
  </template>
60
-
61
60
  <script setup lang="ts">
61
+ /**
62
+ * This file was automatically generated by simpleapp generator. Every
63
+ * MODIFICATION OVERRIDE BY GENERATEOR
64
+ * last change 2023-10-28
65
+ * Author: Ks Tan
66
+ */
62
67
  import _ from 'lodash'
63
68
  const profileapi = getAllApi().PROFILEApi;
64
69
  const alltenants = ref()
@@ -27,6 +27,13 @@
27
27
  </div>
28
28
  </template>
29
29
  <script lang="ts" setup>
30
+ /**
31
+ * This file was automatically generated by simpleapp generator during initialization. It is changable.
32
+ * --remove-this-line-to-prevent-override--
33
+ * last change 2024-02-22
34
+ * author: Ks Tan
35
+ */
36
+
30
37
  import {UserTaskType,SimpleAppInputType} from '~/types'
31
38
  import type { JSONSchema7 } from 'json-schema'
32
39
  const props = defineProps<{
@@ -1,3 +1,10 @@
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
+ */
7
+
1
8
  import dynamicfield from './dynamicfield.vue'
2
9
  import simpleapprove from './simpleapprove.vue'
3
10
 
@@ -23,6 +23,12 @@
23
23
  </SimpleAppJsonSchemaForm>
24
24
  </template>
25
25
  <script lang="ts" setup>
26
+ /**
27
+ * This file was automatically generated by simpleapp generator during initialization. It is changable.
28
+ * --remove-this-line-to-prevent-override--
29
+ * last change 2024-02-22
30
+ * author: Ks Tan
31
+ */
26
32
  import {UserTaskType,SimpleAppInputType} from '~/types'
27
33
  import type { JSONSchema7 } from 'json-schema'
28
34
  const props = defineProps<{
@@ -1,6 +1,9 @@
1
-
2
-
3
-
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
+ */
4
7
  export const setDateLocale = (localename:string) => useDayjs().locale(localename)
5
8
  export const dateExists = (date:Date,listDate:Date[]) => {
6
9
  const existsrecord = listDate.find(item=>{
@@ -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
  export const getDocFormats = async (doctype:string)=>{
2
8
  const docno = useNuxtApp().$DocnoformatDoc();
3
9
  const docnoformats = await docno.runListDocFormats(doctype)
@@ -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 {getAllDocuments} from '~/simpleapp/generate/commons/documents'
2
8
  export const getDocument = (docname:string) =>{
3
9
  return getAllDocuments().find((item)=>item.docName==docname) //?.docClass
@@ -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
  export const getTenant=()=>{
2
8
  let xorg = typeof useRoute().params.xorg =='string'? useRoute().params.xorg : ''
3
9
  return xorg
@@ -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
  export const getUserStore = ()=>{
2
8
  const {$userstore} = useNuxtApp()
3
9
  return $userstore
@@ -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
  export const getDocumentUrl = (document:string,id?:string,querystr?:string)=>{
2
8
  let path = `/${getCurrentXorg()}/${document}`
3
9
  if(id){
@@ -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
  export const logout = async (redirecturl:string='') => {
2
8
  const redirectdata = encodeURIComponent(redirecturl)
3
9
  const { signOut } = useAuth();
@@ -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,8 +1,8 @@
1
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
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
6
  */
7
7
  import path from 'path'
8
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>