@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.
- package/ReleaseNote.md +3 -0
- package/dist/index.js +0 -0
- package/package.json +1 -1
- package/templates/basic/nest/processor.ts.eta +5 -6
- package/templates/basic/nuxt/simpleapp.generate.client.ts.eta +3 -3
- package/templates/nest/src/simpleapp/generate/processors/autoinc.processor.ts.eta +3 -4
- package/templates/nest/src/simpleapp/generate/processors/branch.processor.ts.eta +3 -4
- package/templates/nest/src/simpleapp/generate/processors/docno.processor.ts.eta +3 -4
- package/templates/nest/src/simpleapp/generate/processors/org.processor.ts.eta +3 -4
- package/templates/nest/src/simpleapp/generate/processors/perm.processor.ts.eta +3 -4
- package/templates/nest/src/simpleapp/generate/processors/sysmsg.processor.ts.eta +3 -4
- package/templates/nest/src/simpleapp/generate/processors/tenant.processor.ts.eta +3 -4
- package/templates/nest/src/simpleapp/generate/processors/webhook.processor.ts.eta +3 -4
- package/templates/nuxt/nuxt.config.ts._eta +161 -141
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/buildinschemas/autoincreament.d.ts +0 -3
- package/dist/buildinschemas/branch.d.ts +0 -3
- package/dist/buildinschemas/changehistories.d.ts +0 -3
- package/dist/buildinschemas/docnoformat.d.ts +0 -3
- package/dist/buildinschemas/documentevent.d.ts +0 -3
- package/dist/buildinschemas/index.d.ts +0 -11
- package/dist/buildinschemas/keyvaluepair.d.ts +0 -3
- package/dist/buildinschemas/message.d.ts +0 -3
- package/dist/buildinschemas/message.d.ts.map +0 -1
- package/dist/buildinschemas/message.js +0 -34
- package/dist/buildinschemas/message.js.map +0 -1
- package/dist/buildinschemas/organization.d.ts +0 -3
- package/dist/buildinschemas/permission.d.ts +0 -3
- package/dist/buildinschemas/systemmessage.d.ts +0 -3
- package/dist/buildinschemas/tenant.d.ts +0 -3
- package/dist/buildinschemas/user.d.ts +0 -3
- package/dist/buildinschemas/webhook.d.ts +0 -3
- package/dist/buildinschemas/webhookhistory.d.ts +0 -3
- package/dist/buildinschemas/webhookhistory.d.ts.map +0 -1
- package/dist/buildinschemas/webhookhistory.js +0 -44
- package/dist/buildinschemas/webhookhistory.js.map +0 -1
- package/dist/constant.d.ts +0 -4
- package/dist/createproject.js +0 -138
- package/dist/createproject.js.map +0 -1
- package/dist/framework.d.ts +0 -10
- package/dist/generate-allow-changebackend.js +0 -305
- package/dist/generate-allow-changebackend.js.map +0 -1
- package/dist/generate.d.ts +0 -2
- package/dist/index.d.ts +0 -3
- package/dist/index2.js +0 -118
- package/dist/index2.js.map +0 -1
- package/dist/installdependency.js +0 -20
- package/dist/installdependency.js.map +0 -1
- package/dist/installnest.js +0 -2
- package/dist/installnest.js.map +0 -1
- package/dist/installnuxt.js +0 -2
- package/dist/installnuxt.js.map +0 -1
- package/dist/libs.d.ts +0 -2
- package/dist/processors/bpmnbuilder.d.ts +0 -2
- package/dist/processors/groupsbuilder.js +0 -2
- package/dist/processors/groupsbuilder.js.map +0 -1
- package/dist/processors/jrxmlbuilder.d.ts +0 -3
- package/dist/processors/jsonschemabuilder.d.ts +0 -4
- package/dist/resource/camunda-moodle.d.ts +0 -27
- package/dist/schematype/baseschema.js +0 -25
- package/dist/schematype/baseschema.js.map +0 -1
- package/dist/schematype/default.js +0 -2
- package/dist/schematype/default.js.map +0 -1
- package/dist/schematype/index.js +0 -12
- package/dist/schematype/index.js.map +0 -1
- package/dist/schematype/primarymasterdata.js +0 -38
- package/dist/schematype/primarymasterdata.js.map +0 -1
- package/dist/schematype/simple.js +0 -24
- package/dist/schematype/simple.js.map +0 -1
- package/dist/schematype/simplemasterdata.js +0 -31
- package/dist/schematype/simplemasterdata.js.map +0 -1
- package/dist/schematype/transaction.js +0 -74
- package/dist/schematype/transaction.js.map +0 -1
- package/dist/storage.d.ts +0 -4
- package/dist/type.d.ts +0 -256
- package/dist/validation.d.ts +0 -1
package/ReleaseNote.md
CHANGED
package/dist/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -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-
|
|
5
|
-
* Author:
|
|
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
|
|
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 =
|
|
72
|
+
//const tmp = jsonpath.query(vdata,fieldpath).filter((item:string)=>item!='')
|
|
74
73
|
|
|
75
|
-
|
|
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-
|
|
5
|
-
* Author:
|
|
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
|
|
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-
|
|
5
|
-
* Author:
|
|
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
|
|
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-
|
|
5
|
-
* Author:
|
|
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
|
|
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-
|
|
5
|
-
* Author:
|
|
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
|
|
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-
|
|
5
|
-
* Author:
|
|
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
|
|
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-
|
|
5
|
-
* Author:
|
|
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
|
|
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-
|
|
5
|
-
* Author:
|
|
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
|
|
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-
|
|
5
|
-
* Author:
|
|
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
|
|
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-
|
|
5
|
-
* Author:
|
|
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
|
|
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
|
|
5
|
-
* Author:
|
|
4
|
+
* last change 2024-07-10
|
|
5
|
+
* Author: Yong Xiang
|
|
6
6
|
*/
|
|
7
7
|
import path from 'path'
|
|
8
8
|
export default defineNuxtConfig({
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
colorMode: {
|
|
10
|
+
classSuffix: ''
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
[
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
'
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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
|
-
|
|
115
|
-
|
|
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
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
140
|
+
},
|
|
141
|
+
// pinia: {
|
|
142
|
+
|
|
143
|
+
// },
|
|
144
|
+
auth: {
|
|
145
|
+
globalAppMiddleware: false
|
|
146
|
+
},
|
|
147
|
+
// security: {
|
|
126
148
|
// corsHandler:{
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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
|
+
})
|