@simitgroup/simpleapp-generator 1.6.6-d-alpha → 1.6.6-e-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 (76) hide show
  1. package/ReleaseNote.md +3 -0
  2. package/dist/index.js +0 -0
  3. package/package.json +1 -1
  4. package/templates/basic/nest/processor.ts.eta +5 -6
  5. package/templates/basic/nuxt/simpleapp.generate.client.ts.eta +3 -3
  6. package/templates/nest/src/simpleapp/generate/processors/autoinc.processor.ts.eta +3 -4
  7. package/templates/nest/src/simpleapp/generate/processors/branch.processor.ts.eta +3 -4
  8. package/templates/nest/src/simpleapp/generate/processors/docno.processor.ts.eta +3 -4
  9. package/templates/nest/src/simpleapp/generate/processors/org.processor.ts.eta +3 -4
  10. package/templates/nest/src/simpleapp/generate/processors/perm.processor.ts.eta +3 -4
  11. package/templates/nest/src/simpleapp/generate/processors/sysmsg.processor.ts.eta +3 -4
  12. package/templates/nest/src/simpleapp/generate/processors/tenant.processor.ts.eta +3 -4
  13. package/templates/nest/src/simpleapp/generate/processors/webhook.processor.ts.eta +3 -4
  14. package/templates/nuxt/nuxt.config.ts._eta +161 -141
  15. package/tsconfig.tsbuildinfo +1 -1
  16. package/dist/buildinschemas/autoincreament.d.ts +0 -3
  17. package/dist/buildinschemas/branch.d.ts +0 -3
  18. package/dist/buildinschemas/changehistories.d.ts +0 -3
  19. package/dist/buildinschemas/docnoformat.d.ts +0 -3
  20. package/dist/buildinschemas/documentevent.d.ts +0 -3
  21. package/dist/buildinschemas/index.d.ts +0 -11
  22. package/dist/buildinschemas/keyvaluepair.d.ts +0 -3
  23. package/dist/buildinschemas/message.d.ts +0 -3
  24. package/dist/buildinschemas/message.d.ts.map +0 -1
  25. package/dist/buildinschemas/message.js +0 -34
  26. package/dist/buildinschemas/message.js.map +0 -1
  27. package/dist/buildinschemas/organization.d.ts +0 -3
  28. package/dist/buildinschemas/permission.d.ts +0 -3
  29. package/dist/buildinschemas/systemmessage.d.ts +0 -3
  30. package/dist/buildinschemas/tenant.d.ts +0 -3
  31. package/dist/buildinschemas/user.d.ts +0 -3
  32. package/dist/buildinschemas/webhook.d.ts +0 -3
  33. package/dist/buildinschemas/webhookhistory.d.ts +0 -3
  34. package/dist/buildinschemas/webhookhistory.d.ts.map +0 -1
  35. package/dist/buildinschemas/webhookhistory.js +0 -44
  36. package/dist/buildinschemas/webhookhistory.js.map +0 -1
  37. package/dist/constant.d.ts +0 -4
  38. package/dist/createproject.js +0 -138
  39. package/dist/createproject.js.map +0 -1
  40. package/dist/framework.d.ts +0 -10
  41. package/dist/generate-allow-changebackend.js +0 -305
  42. package/dist/generate-allow-changebackend.js.map +0 -1
  43. package/dist/generate.d.ts +0 -2
  44. package/dist/index.d.ts +0 -3
  45. package/dist/index2.js +0 -118
  46. package/dist/index2.js.map +0 -1
  47. package/dist/installdependency.js +0 -20
  48. package/dist/installdependency.js.map +0 -1
  49. package/dist/installnest.js +0 -2
  50. package/dist/installnest.js.map +0 -1
  51. package/dist/installnuxt.js +0 -2
  52. package/dist/installnuxt.js.map +0 -1
  53. package/dist/libs.d.ts +0 -2
  54. package/dist/processors/bpmnbuilder.d.ts +0 -2
  55. package/dist/processors/groupsbuilder.js +0 -2
  56. package/dist/processors/groupsbuilder.js.map +0 -1
  57. package/dist/processors/jrxmlbuilder.d.ts +0 -3
  58. package/dist/processors/jsonschemabuilder.d.ts +0 -4
  59. package/dist/resource/camunda-moodle.d.ts +0 -27
  60. package/dist/schematype/baseschema.js +0 -25
  61. package/dist/schematype/baseschema.js.map +0 -1
  62. package/dist/schematype/default.js +0 -2
  63. package/dist/schematype/default.js.map +0 -1
  64. package/dist/schematype/index.js +0 -12
  65. package/dist/schematype/index.js.map +0 -1
  66. package/dist/schematype/primarymasterdata.js +0 -38
  67. package/dist/schematype/primarymasterdata.js.map +0 -1
  68. package/dist/schematype/simple.js +0 -24
  69. package/dist/schematype/simple.js.map +0 -1
  70. package/dist/schematype/simplemasterdata.js +0 -31
  71. package/dist/schematype/simplemasterdata.js.map +0 -1
  72. package/dist/schematype/transaction.js +0 -74
  73. package/dist/schematype/transaction.js.map +0 -1
  74. package/dist/storage.d.ts +0 -4
  75. package/dist/type.d.ts +0 -256
  76. package/dist/validation.d.ts +0 -1
package/ReleaseNote.md CHANGED
@@ -1,3 +1,6 @@
1
+ [1.6.6e-alpha]
2
+ 1. Fix jsonpath import method
3
+
1
4
  [1.6.6d-alpha]
2
5
  1. fix new project cannot run
3
6
 
package/dist/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simitgroup/simpleapp-generator",
3
- "version": "1.6.6d-alpha",
3
+ "version": "1.6.6e-alpha",
4
4
  "description": "frontend nuxtjs and backend nests code generator using jsonschema",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2024-02-23
5
- * Author: Ks Tan
4
+ * last change 2024-07-10
5
+ * Author: Yong Xiang
6
6
  */
7
7
  import { UserContext } from '../commons/user.context'
8
8
  import * as sharelibs from '../sharelibs'
9
9
  import { Injectable } from '@nestjs/common';
10
10
  import { InjectModel } from '@nestjs/mongoose';
11
- import * as jsonpath from 'jsonpath'
11
+ import jsonpath from 'jsonpath'
12
12
  import { Model } from 'mongoose';
13
13
  import {<%= it.typename%>JsonSchema } from '../jsonschemas/<%= it.doctype %>.jsonschema'
14
14
  import { SimpleAppService } from './simpleapp.processor';
@@ -65,14 +65,13 @@ export class <%= it.typename %>Processor extends SimpleAppService<<%= it.typenam
65
65
  reCalculateValue(data:<%= it.typename %>){
66
66
  //console.log('trigger new recalculate')
67
67
  const $data = data;
68
- const jsopbj= new jsonpath['JSONPath']()
69
68
  <% if(it.jsonschema['x-simpleapp-config']['formulas']){ %>
70
69
  <%Object.keys(it.jsonschema['x-simpleapp-config']['formulas']).forEach(function(index) { %>
71
70
  <% let fml = it.jsonschema['x-simpleapp-config']['formulas'][index] %>
72
71
  // <%~ JSON.stringify(fml) %>
73
- //const tmp = jsopbj.query(vdata,fieldpath).filter((item:string)=>item!='')
72
+ //const tmp = jsonpath.query(vdata,fieldpath).filter((item:string)=>item!='')
74
73
 
75
- jsopbj.apply($data, '<%~ fml.jsonPath %>', function($item:any) { return <%~fml.formula %> });
74
+ jsonpath.apply($data, '<%~ fml.jsonPath %>', function($item:any) { return <%~fml.formula %> });
76
75
 
77
76
  <%}) %>
78
77
  <%} %>
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2024-02-23
5
- * Author: Ks Tan
4
+ * last change 2024-07-10
5
+ * Author: Yong Xiang
6
6
  */
7
7
  import _ from 'lodash'
8
8
  import {SchemaType,NotificationStatus} from '~/types'
9
9
  import * as sharelibs from '../sharelibs'
10
- import * as jsonpath from 'jsonpath'
10
+ import jsonpath from 'jsonpath'
11
11
  import { SimpleAppClient } from "./SimpleAppClient";
12
12
  import {
13
13
  <%Object.keys(it.models).forEach(function(modelname) { %> Default<%=modelname%>, <%})%>
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2024-02-23
5
- * Author: Ks Tan
4
+ * last change 2024-07-10
5
+ * Author: Yong Xiang
6
6
  */
7
7
  import { UserContext } from '../commons/user.context';
8
8
  import * as sharelibs from '../sharelibs';
9
9
  import { Injectable,Inject } from '@nestjs/common';
10
10
  import { InjectModel } from '@nestjs/mongoose';
11
- import * as jsonpath from 'jsonpath';
11
+ import jsonpath from 'jsonpath';
12
12
  import { Model } from 'mongoose';
13
13
  import { AutoincreamentJsonSchema } from '../jsonschemas/autoinc.jsonschema';
14
14
  import { SimpleAppService } from './simpleapp.processor';
@@ -31,7 +31,6 @@ export class AutoincreamentProcessor extends SimpleAppService<Autoincreament> {
31
31
 
32
32
  reCalculateValue(data: Autoincreament) {
33
33
  //console.log('trigger new recalculate')
34
- const jsopbj = new jsonpath['JSONPath']();
35
34
  }
36
35
 
37
36
  async runGenerateNextNo(
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2024-02-23
5
- * Author: Ks Tan
4
+ * last change 2024-07-10
5
+ * Author: Yong Xiang
6
6
  */
7
7
  import { UserContext } from '../commons/user.context';
8
8
  import * as sharelibs from '../sharelibs';
@@ -12,7 +12,7 @@ import {
12
12
  InternalServerErrorException,
13
13
  } from '@nestjs/common';
14
14
  import { InjectModel } from '@nestjs/mongoose';
15
- import * as jsonpath from 'jsonpath';
15
+ import jsonpath from 'jsonpath';
16
16
  import { Model } from 'mongoose';
17
17
  import { BranchJsonSchema } from '../jsonschemas/branch.jsonschema';
18
18
  import { SimpleAppService } from './simpleapp.processor';
@@ -54,7 +54,6 @@ export class BranchProcessor extends SimpleAppService<Branch> {
54
54
 
55
55
  reCalculateValue(data: Branch) {
56
56
  //console.log('trigger new recalculate')
57
- const jsopbj = new jsonpath['JSONPath']();
58
57
  }
59
58
 
60
59
  /***************************** additional execute *****************************************/
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2024-02-23
5
- * Author: Ks Tan
4
+ * last change 2024-07-10
5
+ * Author: Yong Xiang
6
6
  */
7
7
  import { UserContext } from '../commons/user.context';
8
8
  import * as sharelibs from '../sharelibs';
9
9
  import { Injectable,Inject } from '@nestjs/common';
10
10
  import { InjectModel } from '@nestjs/mongoose';
11
- import * as jsonpath from 'jsonpath';
11
+ import jsonpath from 'jsonpath';
12
12
  import { Model } from 'mongoose';
13
13
  import { DocnoformatJsonSchema } from '../jsonschemas/docno.jsonschema';
14
14
  import { SimpleAppService } from './simpleapp.processor';
@@ -38,7 +38,6 @@ export class DocnoformatProcessor extends SimpleAppService<Docnoformat> {
38
38
 
39
39
  reCalculateValue(data: Docnoformat) {
40
40
  //console.log('trigger new recalculate')
41
- const jsopbj = new jsonpath['JSONPath']();
42
41
  }
43
42
 
44
43
  /***************************** additional execute *****************************************/
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2024-02-23
5
- * Author: Ks Tan
4
+ * last change 2024-07-10
5
+ * Author: Yong Xiang
6
6
  */
7
7
  import { UserContext } from '../commons/user.context';
8
8
  import * as sharelibs from '../sharelibs';
9
9
  import { Injectable, Inject, BadRequestException } from '@nestjs/common';
10
10
  import { InjectModel } from '@nestjs/mongoose';
11
- import * as jsonpath from 'jsonpath';
11
+ import jsonpath from 'jsonpath';
12
12
  import { Model } from 'mongoose';
13
13
  import { OrganizationJsonSchema } from '../jsonschemas/org.jsonschema';
14
14
  import { SimpleAppService } from './simpleapp.processor';
@@ -56,7 +56,6 @@ export class OrganizationProcessor extends SimpleAppService<Organization> {
56
56
  }
57
57
  reCalculateValue(data: Organization) {
58
58
  //console.log('trigger new recalculate')
59
- const jsopbj = new jsonpath['JSONPath']();
60
59
  }
61
60
 
62
61
  /***************************** additional execute *****************************************/
@@ -1,15 +1,15 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2024-02-23
5
- * Author: Ks Tan
4
+ * last change 2024-07-10
5
+ * Author: Yong Xiang
6
6
  */
7
7
  import { UserContext } from '../commons/user.context';
8
8
  import * as sharelibs from '../sharelibs';
9
9
 
10
10
  import { Injectable, Inject } from '@nestjs/common';
11
11
  import { InjectModel } from '@nestjs/mongoose';
12
- import * as jsonpath from 'jsonpath';
12
+ import jsonpath from 'jsonpath';
13
13
  import { Model, PipelineStage } from 'mongoose';
14
14
  import { PermissionJsonSchema } from '../jsonschemas/perm.jsonschema';
15
15
  import { SimpleAppService } from './simpleapp.processor';
@@ -32,7 +32,6 @@ export class PermissionProcessor extends SimpleAppService<Permission> {
32
32
 
33
33
  reCalculateValue(data: Permission) {
34
34
  //console.log('trigger new recalculate')
35
- const jsopbj = new jsonpath['JSONPath']();
36
35
  }
37
36
 
38
37
  async runListUser(appuser: UserContext) {
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2024-02-23
5
- * Author: Ks Tan
4
+ * last change 2024-07-10
5
+ * Author: Yong Xiang
6
6
  */
7
7
  import { UserContext } from '../commons/user.context';
8
8
  import * as sharelibs from '../sharelibs';
9
9
  import { Injectable,Inject } from '@nestjs/common';
10
10
  import { InjectModel } from '@nestjs/mongoose';
11
- import * as jsonpath from 'jsonpath';
11
+ import jsonpath from 'jsonpath';
12
12
  import { Model } from 'mongoose';
13
13
  import { SystemmessageJsonSchema } from '../jsonschemas/sysmsg.jsonschema';
14
14
  import { SimpleAppService } from './simpleapp.processor';
@@ -31,7 +31,6 @@ export class SystemmessageProcessor extends SimpleAppService<Systemmessage> {
31
31
 
32
32
  reCalculateValue(data: Systemmessage) {
33
33
  //console.log('trigger new recalculate')
34
- const jsopbj = new jsonpath['JSONPath']();
35
34
  }
36
35
 
37
36
  /***************************** additional execute *****************************************/
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2024-02-23
5
- * Author: Ks Tan
4
+ * last change 2024-07-10
5
+ * Author: Yong Xiang
6
6
  */
7
7
  import { UserContext } from '../commons/user.context';
8
8
  import * as sharelibs from '../sharelibs';
9
9
  import { Injectable,Inject } from '@nestjs/common';
10
10
  import { InjectModel } from '@nestjs/mongoose';
11
- import * as jsonpath from 'jsonpath';
11
+ import jsonpath from 'jsonpath';
12
12
  import { Model } from 'mongoose';
13
13
  import { TenantJsonSchema } from '../jsonschemas/tenant.jsonschema';
14
14
  import { SimpleAppService } from './simpleapp.processor';
@@ -37,7 +37,6 @@ export class TenantProcessor extends SimpleAppService<Tenant> {
37
37
 
38
38
  reCalculateValue(data: Tenant) {
39
39
  //console.log('trigger new recalculate')
40
- const jsopbj = new jsonpath['JSONPath']();
41
40
  }
42
41
 
43
42
  /***************************** additional execute *****************************************/
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator. Every
3
3
  * MODIFICATION OVERRIDE BY GENERATEOR
4
- * last change 2024-02-23
5
- * Author: Ks Tan
4
+ * last change 2024-07-10
5
+ * Author: Yong Xiang
6
6
  */
7
7
  import { UserContext } from '../commons/user.context';
8
8
  import * as sharelibs from '../sharelibs';
9
9
  import { Injectable, InternalServerErrorException, } from '@nestjs/common';
10
10
  import { InjectModel } from '@nestjs/mongoose';
11
- import * as jsonpath from 'jsonpath';
11
+ import jsonpath from 'jsonpath';
12
12
  import { Model } from 'mongoose';
13
13
  import { WebhookJsonSchema } from '../jsonschemas/webhook.jsonschema';
14
14
  import { SimpleAppService } from './simpleapp.processor';
@@ -62,7 +62,6 @@ export class WebhookProcessor extends SimpleAppService<Webhook> {
62
62
  reCalculateValue(data: Webhook) {
63
63
  //console.log('trigger new recalculate')
64
64
  const $data = data;
65
- const jsopbj = new jsonpath['JSONPath']();
66
65
  }
67
66
 
68
67
  async beforeCreate(appuser: UserContext, data: types.Webhook) {
@@ -1,138 +1,160 @@
1
1
  /**
2
2
  * This file was automatically generated by simpleapp generator.
3
3
  * --remove-this-line-to-prevent-override--
4
- * last change 2023-10-28
5
- * Author: Ks Tan
4
+ * last change 2024-07-10
5
+ * Author: Yong Xiang
6
6
  */
7
7
  import path from 'path'
8
8
  export default defineNuxtConfig({
9
- colorMode: {
10
- classSuffix: ''
9
+ colorMode: {
10
+ classSuffix: ''
11
11
 
12
- },
13
-
14
- runtimeConfig:{
15
- public:{
16
- APP_URL: process.env.APP_URL,
17
- API_URL: process.env.API_URL,
18
- DEBUGDATA: process.env.DEBUGDATA,
19
- PROJECT_NAME: process.env.PROJECT_NAME,
20
- }
21
- },
22
- vite: {
23
- vue: {
24
- script: {
25
- defineModel: true,
26
- propsDestructure: true
12
+ },
13
+
14
+ runtimeConfig: {
15
+ public: {
16
+ APP_URL: process.env.APP_URL,
17
+ API_URL: process.env.API_URL,
18
+ DEBUGDATA: process.env.DEBUGDATA,
19
+ PROJECT_NAME: process.env.PROJECT_NAME,
20
+ }
21
+ },
22
+ vite: {
23
+ vue: {
24
+ script: {
25
+ defineModel: true,
26
+ propsDestructure: true
27
+ }
28
+ },
29
+ server: {
30
+ // Uncomment for remote development hmr
31
+ // hmr: {
32
+ // protocol: 'wss',
33
+ // clientPort: 443,
34
+ // path: 'hmr/',
35
+ // }
27
36
  }
28
- }
29
- },
30
- app: {
31
- // pageTransition: {
32
- // name: 'slide-fade',
33
- // mode: 'out-in',
34
- // css: false,
35
-
36
- // },
37
- // layoutTransition: { name: 'layout', mode: 'default' }
38
- },
39
- tailwindcss: {
40
- // Options
41
- },
42
- devServer: {
43
- host: "0.0.0.0",
44
- },
45
- modules: [
46
- // "@hebilicious/authjs-nuxt",
47
- '@nuxtjs/color-mode',
48
- '@nuxtjs/device',
49
- '@nuxtjs/i18n',
50
- 'dayjs-nuxt',
51
- '@sidebase/nuxt-auth',
52
- 'nuxt-primevue',
53
- '@nuxtjs/apollo',
54
- // '@nuxtjs/pwa', //cannot turn on, will cause nuxt cant start
55
- // "nuxt-security", //temporary avoid nuxt-security cause cors
56
- '@vueuse/nuxt',
57
- '@nuxtjs/tailwindcss',
58
- ['@pinia/nuxt',{
59
- autoImports: [
60
- // automatically imports `defineStore`
61
- 'defineStore', // import { defineStore } from 'pinia'
62
- ['defineStore', 'definePiniaStore'], // import { defineStore as definePiniaStore } from 'pinia'
63
- ],
64
- }],
65
- ],
66
- dayjs:{
67
- plugins: [ 'utc', 'duration']
68
- },
69
- device: {
70
- refreshOnResize: true
71
- },
72
- i18n: {
73
- lazy: true,
74
- langDir: "lang/",
75
- strategy: "no_prefix",
76
- locales: [
77
- {
78
- code: "en",
79
- iso: "en",
80
- name: "English",
81
- file: "en.ts",
82
- },
83
- {
84
- code: "cn",
85
- iso: "cn",
86
- name: "Chinese",
87
- file: "cn.ts",
88
-
89
- },
37
+
38
+ },
39
+
40
+ hooks: {
41
+ // Uncomment for remote development hmr
42
+ // 'vite:extendConfig': (config) =>
43
+ // {
44
+ // if (typeof config.server?.hmr === 'object') {
45
+ // config.server.hmr.protocol = 'wss';
46
+ // config.server.hmr.clientPort = 443;
47
+ // config.server.hmr.path = "hmr/";
48
+ // }
49
+ // }
50
+ },
51
+
52
+ app: {
53
+ // pageTransition: {
54
+ // name: 'slide-fade',
55
+ // mode: 'out-in',
56
+ // css: false,
57
+
58
+ // },
59
+ // layoutTransition: { name: 'layout', mode: 'default' }
60
+ },
61
+ tailwindcss: {
62
+ // Options
63
+ },
64
+ devServer: {
65
+ host: "0.0.0.0",
66
+ },
67
+ modules: [
68
+ // "@hebilicious/authjs-nuxt",
69
+ '@nuxtjs/color-mode',
70
+ '@nuxtjs/device',
71
+ '@nuxtjs/i18n',
72
+ 'dayjs-nuxt',
73
+ '@sidebase/nuxt-auth',
74
+ 'nuxt-primevue',
75
+ '@nuxtjs/apollo',
76
+ // '@nuxtjs/pwa', //cannot turn on, will cause nuxt cant start
77
+ // "nuxt-security", //temporary avoid nuxt-security cause cors
78
+ '@vueuse/nuxt',
79
+ '@nuxtjs/tailwindcss',
80
+ ['@pinia/nuxt', {
81
+ autoImports: [
82
+ // automatically imports `defineStore`
83
+ 'defineStore', // import { defineStore } from 'pinia'
84
+ ['defineStore', 'definePiniaStore'], // import { defineStore as definePiniaStore } from 'pinia'
85
+ ],
86
+ }],
90
87
  ],
91
- defaultLocale: "en",
92
- },
93
- apollo: {
94
- clients: {
95
- default: {
96
- httpEndpoint: process.env.API_URL
97
- }
88
+ dayjs: {
89
+ plugins: ['utc', 'duration']
90
+ },
91
+ device: {
92
+ refreshOnResize: true
93
+ },
94
+ i18n: {
95
+ lazy: true,
96
+ langDir: "lang/",
97
+ strategy: "no_prefix",
98
+ locales: [
99
+ {
100
+ code: "en",
101
+ iso: "en",
102
+ name: "English",
103
+ file: "en.ts",
104
+ },
105
+ {
106
+ code: "cn",
107
+ iso: "cn",
108
+ name: "Chinese",
109
+ file: "cn.ts",
110
+
111
+ },
112
+ ],
113
+ defaultLocale: "en",
98
114
  },
99
- },
100
- primevue: {
101
-
102
- options: {
103
- ripple: true,
104
- inputStyle: 'filled',
105
-
106
- },
107
- components: {
108
- include: '*',
109
- // exclude: ['chart']
110
- },
111
- directives: {
112
- include: ['Ripple', 'Tooltip','Badge','FocusTrap']
115
+ apollo: {
116
+ clients: {
117
+ default: {
118
+ httpEndpoint: process.env.API_URL
119
+ }
120
+ },
113
121
  },
114
- cssLayerOrder: 'tailwind-base, primevue, tailwind-utilities',
115
- importPT: { as: 'SimpleAppPT', from: path.resolve(__dirname,'./assets/primevue/passthrough.ts') },
116
-
122
+ primevue: {
123
+
124
+ options: {
125
+ ripple: true,
126
+ inputStyle: 'filled',
127
+
128
+ },
129
+ components: {
130
+ include: '*',
131
+ // exclude: ['chart']
132
+ },
133
+ directives: {
134
+ include: ['Ripple', 'Tooltip', 'Badge', 'FocusTrap']
135
+ },
136
+ cssLayerOrder: 'tailwind-base, primevue, tailwind-utilities',
137
+ importPT: { as: 'SimpleAppPT', from: path.resolve(__dirname, './assets/primevue/passthrough.ts') },
117
138
 
118
- },
119
- // pinia: {
120
139
 
121
- // },
122
- auth: {
123
- globalAppMiddleware: false
124
- },
125
- // security: {
140
+ },
141
+ // pinia: {
142
+
143
+ // },
144
+ auth: {
145
+ globalAppMiddleware: false
146
+ },
147
+ // security: {
126
148
  // corsHandler:{
127
- // origin: '*' //| 'null' | (string | RegExp)[] | ((origin: string) => boolean);
128
- // methods?: '*' | HTTPMethod[];
129
- // allowHeaders?: '*' | string[];
130
- // exposeHeaders?: '*' | string[];
131
- // credentials?: boolean;
132
- // maxAge?: string | false;
133
- // preflight?: {
134
- // statusCode?: number;
135
- // };
149
+ // origin: '*' //| 'null' | (string | RegExp)[] | ((origin: string) => boolean);
150
+ // methods?: '*' | HTTPMethod[];
151
+ // allowHeaders?: '*' | string[];
152
+ // exposeHeaders?: '*' | string[];
153
+ // credentials?: boolean;
154
+ // maxAge?: string | false;
155
+ // preflight?: {
156
+ // statusCode?: number;
157
+ // };
136
158
  // },
137
159
  // headers: {
138
160
  // contentSecurityPolicy: {
@@ -140,24 +162,22 @@ devServer: {
140
162
  // },
141
163
  // },
142
164
  //csrf: true, // been force to off csrf cash it crash with nuxt-auth
143
- // },
144
- ssr: false,
145
- // content: [
146
- // "./index.html",
147
- // "./src/**/*.{vue,js,ts,jsx,tsx}",
148
- // "./node_modules/primevue/**/*.{vue,js,ts,jsx,tsx}"
149
- // ],
150
- css: [
151
- 'primeicons/primeicons.css',
152
- path.resolve(__dirname,'./assets/css/style.css'),
153
- path.resolve(__dirname,'./assets/css/listview.css'),
154
- path.resolve(__dirname,'./assets/css/calendar.css'),
155
- ],
156
- },
157
-
158
- // devtools: { enabled: true },
159
- // build: {
160
- // // transpile: ["primevue"]
161
- // },
165
+ // },
166
+ ssr: false,
167
+ // content: [
168
+ // "./index.html",
169
+ // "./src/**/*.{vue,js,ts,jsx,tsx}",
170
+ // "./node_modules/primevue/**/*.{vue,js,ts,jsx,tsx}"
171
+ // ],
172
+ css: [
173
+ 'primeicons/primeicons.css',
174
+ path.resolve(__dirname, './assets/css/style.css'),
175
+ path.resolve(__dirname, './assets/css/listview.css'),
176
+ path.resolve(__dirname, './assets/css/calendar.css'),
177
+ ],
162
178
 
163
- )
179
+ // devtools: { enabled: true },
180
+ // build: {
181
+ // // transpile: ["primevue"]
182
+ // },
183
+ })