@simitgroup/simpleapp-generator 1.1.4 → 1.1.6
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/package.json +1 -1
- package/templates/basic/nuxt/simpleapp.generate.client.ts.eta +2 -2
- package/templates/nuxt/assets/css/style.css._eta +3 -0
- package/templates/nuxt/assets/primevue/passthrough.ts._eta +6 -2
- package/templates/nuxt/components/header/button/HeaderButtonMenuPicker.vue.eta +1 -1
- package/templates/nuxt/components/user/UserButtonCreateTenant.vue.eta +3 -3
- package/templates/nuxt/lang/df.ts.eta +5 -0
- package/templates/nuxt/layouts/documentlist.vue.eta.disabled +1 -1
- package/templates/nuxt/simpleapp/generate/clients/SimpleAppClient.ts.eta +4 -2
- package/templates/nuxt/types/documentlist.ts.eta +1 -1
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Author: Ks Tan
|
|
7
7
|
*/
|
|
8
8
|
import _ from 'lodash'
|
|
9
|
-
import {SchemaType} from '
|
|
9
|
+
import {SchemaType} from '~/types'
|
|
10
10
|
import * as sharelibs from '../sharelibs'
|
|
11
11
|
import * as jsonpath from 'jsonpath'
|
|
12
12
|
import { SimpleAppClient } from "./SimpleAppClient";
|
|
@@ -67,7 +67,7 @@ export class <%= it.typename%>Client extends SimpleAppClient<<%= it.typename%>,<
|
|
|
67
67
|
this.listen=$listen
|
|
68
68
|
|
|
69
69
|
this.setNew();
|
|
70
|
-
watch(
|
|
70
|
+
watch(this.getData(),(newvalue)=>{
|
|
71
71
|
//console.log("Something change",this.completeformula)
|
|
72
72
|
if(this.completeformula==true){
|
|
73
73
|
// console.log("Trigger caclculate")
|
|
@@ -24,7 +24,8 @@ const CustomTailwind = usePassThrough(
|
|
|
24
24
|
selectbutton:{
|
|
25
25
|
root:{class:'flex flex-row gap-1'},
|
|
26
26
|
button: ({ context }) => ({
|
|
27
|
-
|
|
27
|
+
|
|
28
|
+
class: ['text-center border text-gray-300 dark:border-gray-700 dark:text-gray-300 rounded-lg p-2 cursor-pointer hover:bg-primary-400 dark:hover:bg-primary-800 hover:text-white', context.active ? 'bg-primary-600 dark:bg-primary-700 text-white' : '']
|
|
28
29
|
}),
|
|
29
30
|
label:{class: 'text-sm'},
|
|
30
31
|
},
|
|
@@ -39,13 +40,16 @@ const CustomTailwind = usePassThrough(
|
|
|
39
40
|
}
|
|
40
41
|
},
|
|
41
42
|
sidebar:{
|
|
42
|
-
root:{class:'w-1/2
|
|
43
|
+
root:{class:'w-1/2 bg-white dark:bg-gray-800 border p-2 h-full'}
|
|
43
44
|
},
|
|
44
45
|
panel: {
|
|
45
46
|
root:{class:['border']},
|
|
46
47
|
title: {class: ['leading-none font-light text-2xl']},
|
|
47
48
|
header:{class:['bg bg-gray-200 h-10 content-middle']},
|
|
48
49
|
content:{class:['']}
|
|
50
|
+
},
|
|
51
|
+
breadcrumb:{
|
|
52
|
+
root:{class:''}
|
|
49
53
|
}
|
|
50
54
|
},
|
|
51
55
|
);
|
|
@@ -21,7 +21,7 @@ const selectMenu = (menu:MenuData) =>{
|
|
|
21
21
|
</svg>
|
|
22
22
|
</button>
|
|
23
23
|
|
|
24
|
-
<Dialog v-model:visible="visible" modal header="
|
|
24
|
+
<Dialog v-model:visible="visible" modal :header="t('pickDocument')" :pt="{dialog:{ class:' bg-primary-800 ' }}">
|
|
25
25
|
<div class="">
|
|
26
26
|
<Button v-for="menu in getMenus()" @click="selectMenu(menu)" >
|
|
27
27
|
<div v-if="menu.isolationType == 'none'" class="text-warning-600 hover:text-warning-500">
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
<div class="p-inputgroup flex flex-row">
|
|
13
13
|
<InputText
|
|
14
14
|
class="flex-1"
|
|
15
|
-
|
|
16
|
-
placeholder="your company name"
|
|
15
|
+
placeholder="yourCompanyMame"
|
|
17
16
|
v-model:model-value="data.tenantName"
|
|
18
17
|
/>
|
|
19
18
|
<div class="p-inputgroup-addon p p-0">
|
|
@@ -34,6 +33,7 @@
|
|
|
34
33
|
<div class="flex flex-col">
|
|
35
34
|
<InputText
|
|
36
35
|
type="text"
|
|
36
|
+
|
|
37
37
|
autofocus="true"
|
|
38
38
|
v-model:model-value="data.tenantName"
|
|
39
39
|
placeholder="Organization Name"
|
|
@@ -72,7 +72,7 @@ const createTenant = async () => {
|
|
|
72
72
|
onhold.value = true;
|
|
73
73
|
const { $axios, $listen } = useNuxtApp();
|
|
74
74
|
|
|
75
|
-
const openapi =
|
|
75
|
+
const openapi = getAllApi();
|
|
76
76
|
const apipath = `${useRuntimeConfig().public.API_URL}`;
|
|
77
77
|
let profileapi = new openapi.PROFILEApi(undefined, apipath, $axios);
|
|
78
78
|
|
|
@@ -12,6 +12,11 @@ export default {
|
|
|
12
12
|
keyword: 'Keyword',
|
|
13
13
|
empty: 'Empty',
|
|
14
14
|
noDataFound:'No Data Found',
|
|
15
|
+
userInfo:'User Information',
|
|
16
|
+
currentBranchAccessRights: 'Current Branch Access Rights',
|
|
17
|
+
yourCompanyName: 'Your Company Name',
|
|
18
|
+
onlyAppearInDebugMode: 'Only Appear In Debug Mode',
|
|
19
|
+
pickDocument:'Pick Document',
|
|
15
20
|
|
|
16
21
|
//auto generate from schema
|
|
17
22
|
<% for(let i=0; i< it.allfields.length; i++){ %>
|
|
@@ -129,7 +129,7 @@ import {SearchBody,CellSetting} from '~/types'
|
|
|
129
129
|
if(item.field !='*'){
|
|
130
130
|
cols.push(item.field)
|
|
131
131
|
}
|
|
132
|
-
if(item
|
|
132
|
+
if(item?.moreFields && item.moreFields.length>0){
|
|
133
133
|
cols = cols.concat(item.moreFields)
|
|
134
134
|
}
|
|
135
135
|
}
|
|
@@ -24,7 +24,7 @@ type crudType = {
|
|
|
24
24
|
runSearch: Function
|
|
25
25
|
};
|
|
26
26
|
export class SimpleAppClient<
|
|
27
|
-
TData extends { _id?: string,created
|
|
27
|
+
TData extends { _id?: string,created?:string },
|
|
28
28
|
TApi extends crudType,
|
|
29
29
|
> {
|
|
30
30
|
protected defaultTimeOut=5000
|
|
@@ -134,7 +134,9 @@ export class SimpleAppClient<
|
|
|
134
134
|
summary:'Record update success',
|
|
135
135
|
status:NotificationStatus.success,
|
|
136
136
|
data:errors
|
|
137
|
-
})
|
|
137
|
+
})
|
|
138
|
+
this.data.value = res.data
|
|
139
|
+
console.log("save ok ", this.data.value)
|
|
138
140
|
return res.data;
|
|
139
141
|
}).catch((errors:any)=>{
|
|
140
142
|
$event('Notification',{
|