@simitgroup/simpleapp-generator 1.1.5 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simitgroup/simpleapp-generator",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "frontend nuxtjs and backend nests code generator using jsonschema",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -6,7 +6,7 @@
6
6
  * Author: Ks Tan
7
7
  */
8
8
  import _ from 'lodash'
9
- import {SchemaType} from './types'
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((this.getData()),(newvalue)=>{
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")
@@ -14,6 +14,9 @@
14
14
  @apply p-3 m-0 border
15
15
  }
16
16
 
17
+ body {
18
+ @apply bg-gray-50 dark:bg-gray-800
19
+ }
17
20
 
18
21
  input {
19
22
  @apply bg-opacity-0 bg-black
@@ -24,7 +24,8 @@ const CustomTailwind = usePassThrough(
24
24
  selectbutton:{
25
25
  root:{class:'flex flex-row gap-1'},
26
26
  button: ({ context }) => ({
27
- class: ['text-center border-gray-400 dark:border-gray-700 text-gray-50 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' : '']
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 bg-white border p-2 h-full'}
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="Pick Document" :pt="{dialog:{ class:' bg-primary-800 ' }}">
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,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++){ %>
@@ -24,7 +24,7 @@ type crudType = {
24
24
  runSearch: Function
25
25
  };
26
26
  export class SimpleAppClient<
27
- TData extends { _id?: string,created:string },
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',{