@things-factory/lite-menu 8.0.0-alpha.30 → 8.0.0-alpha.31

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": "@things-factory/lite-menu",
3
- "version": "8.0.0-alpha.30",
3
+ "version": "8.0.0-alpha.31",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -42,12 +42,12 @@
42
42
  "@operato/utils": "^8.0.0-alpha",
43
43
  "@things-factory/apptool-base": "^8.0.0-alpha.29",
44
44
  "@things-factory/auth-base": "^8.0.0-alpha.29",
45
- "@things-factory/board-service": "^8.0.0-alpha.30",
46
- "@things-factory/board-ui": "^8.0.0-alpha.29",
45
+ "@things-factory/board-service": "^8.0.0-alpha.31",
46
+ "@things-factory/board-ui": "^8.0.0-alpha.31",
47
47
  "@things-factory/more-base": "^8.0.0-alpha.29",
48
48
  "@things-factory/personalization": "^8.0.0-alpha.29",
49
49
  "@things-factory/setting-base": "^8.0.0-alpha.29",
50
50
  "@things-factory/utils": "^8.0.0-alpha.29"
51
51
  },
52
- "gitHead": "f01fac46630cf06e1697edc185dfb4cddcd61365"
52
+ "gitHead": "3d8df8131f3b0c1898c525d2928b7f9dc846840e"
53
53
  }
@@ -38,6 +38,9 @@ export class NewLiteMenu {
38
38
 
39
39
  @Field(type => ScalarObject, { nullable: true })
40
40
  labels?: any // { [lng: string]: string }
41
+
42
+ @Field({ nullable: true })
43
+ help?: string
41
44
  }
42
45
 
43
46
  @InputType()
@@ -74,6 +77,9 @@ export class LiteMenuPatch {
74
77
 
75
78
  @Field(type => ScalarObject, { nullable: true })
76
79
  labels?: any // { [lng: string]: string }
80
+
81
+ @Field({ nullable: true })
82
+ help?: string
77
83
  }
78
84
 
79
85
  @ObjectType()
@@ -10,9 +10,13 @@ import {
10
10
  UpdateDateColumn
11
11
  } from 'typeorm'
12
12
 
13
- import { PrivilegeObject, User, Role } from '@things-factory/auth-base'
13
+ import { User, Role } from '@things-factory/auth-base'
14
14
  import { Board } from '@things-factory/board-service'
15
15
  import { Domain, ScalarObject } from '@things-factory/shell'
16
+ import { config } from '@things-factory/env'
17
+
18
+ const ORMCONFIG = config.get('ormconfig', {})
19
+ const DATABASE_TYPE = ORMCONFIG.type
16
20
 
17
21
  @Entity()
18
22
  @Index('ix_lite_menus_0', (liteMenu: LiteMenu) => [liteMenu.domain, liteMenu.name, liteMenu.type, liteMenu.appName], {
@@ -99,11 +103,26 @@ export class LiteMenu {
99
103
  roleId?: string
100
104
 
101
105
  @Column('simple-json', { nullable: true })
102
- @Field(type => ScalarObject, { nullable: true })
106
+ @Field(type => ScalarObject, { nullable: true, description: 'Settings for multilingual titles' })
103
107
  labels?: any // { [lng: string]: string }
104
108
 
105
- @CreateDateColumn()
109
+ @Column({
110
+ nullable: true,
111
+ type:
112
+ DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
113
+ ? 'longtext'
114
+ : DATABASE_TYPE == 'oracle'
115
+ ? 'clob'
116
+ : DATABASE_TYPE == 'mssql'
117
+ ? 'nvarchar'
118
+ : 'varchar',
119
+ length: DATABASE_TYPE == 'mssql' ? 'MAX' : undefined
120
+ })
106
121
  @Field({ nullable: true })
122
+ help?: string
123
+
124
+ @CreateDateColumn()
125
+ @Field({ nullable: true, description: 'Settings for help contents' })
107
126
  createdAt?: Date
108
127
 
109
128
  @UpdateDateColumn()
@@ -3,6 +3,7 @@
3
3
  "button.reload": "reload",
4
4
  "button.save": "save",
5
5
  "field.app-name": "app name",
6
+ "field.help": "help",
6
7
  "field.i18n-label": "multi-lingual label",
7
8
  "field.icon": "icon",
8
9
  "field.parent-menu": "parent menu",
@@ -2,6 +2,7 @@
2
2
  "button.delete": "削除",
3
3
  "button.reload": "再照会",
4
4
  "button.save": "保存",
5
+ "field.help": "ヘルプ",
5
6
  "field.app-name": "アプリケーション",
6
7
  "field.i18n-label": "多言語ラベル",
7
8
  "field.icon": "イメージ",
@@ -3,6 +3,7 @@
3
3
  "button.reload": "재조회",
4
4
  "button.save": "저장",
5
5
  "field.app-name": "어플리케이션",
6
+ "field.help": "도움말",
6
7
  "field.i18n-label": "다국어 라벨",
7
8
  "field.icon": "이미지",
8
9
  "field.parent-menu": "부모메뉴",
@@ -3,6 +3,7 @@
3
3
  "button.reload": "muat semula",
4
4
  "button.save": "simpan",
5
5
  "field.app-name": "aplikasi",
6
+ "field.help": "bantuan",
6
7
  "field.i18n-label": "label pelbagai bahasa",
7
8
  "field.icon": "imej",
8
9
  "field.parent-menu": "menu induk",
@@ -3,6 +3,7 @@
3
3
  "button.reload": "重新加载",
4
4
  "button.save": "储存",
5
5
  "field.app-name": "应用名称",
6
+ "field.help": "帮助",
6
7
  "field.i18n-label": "多语言标签",
7
8
  "field.icon": "图标",
8
9
  "field.parent-menu": "上级菜单",