@things-factory/shell 7.0.1-alpha.93 → 7.0.1-beta.0
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/_index.html +2 -1
- package/client/entries/public/home.js +1 -1
- package/client/serviceworker/sw-src.js +2 -2
- package/client/themes/app-theme.css +17 -38
- package/client/themes/dark.css +151 -0
- package/client/themes/grist-theme.css +173 -0
- package/client/themes/layout-theme.css +17 -10
- package/client/themes/light.css +151 -0
- package/client/themes/material-theme.css +17 -44
- package/client/themes/oops-theme.css +2 -2
- package/client/themes/spacing.css +23 -0
- package/client/themes/state-color.css +6 -0
- package/config/config.development.js +2 -1
- package/config/license.json +5 -5
- package/dist-server/server-dev.js +1 -1
- package/dist-server/server-dev.js.map +1 -1
- package/dist-server/server.js +1 -0
- package/dist-server/server.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/helps/config/fileUpload.ja.md +24 -0
- package/helps/config/fileUpload.ko.md +22 -0
- package/helps/config/fileUpload.md +24 -0
- package/helps/config/fileUpload.ms.md +24 -0
- package/helps/config/fileUpload.zh.md +21 -0
- package/package.json +7 -7
- package/server/server-dev.ts +8 -2
- package/server/server.ts +8 -1
- package/views/public/home.html +2 -1
@@ -0,0 +1,24 @@
|
|
1
|
+
|
2
|
+
### Japanese
|
3
|
+
```markdown
|
4
|
+
# ファイルアップロード
|
5
|
+
|
6
|
+
ファイルアップロードに関する設定
|
7
|
+
|
8
|
+
* maxFileSize: ファイルアップロードが可能なファイルの最大サイズ
|
9
|
+
* maxFiles: 同時にアップロードできるファイルの最大数
|
10
|
+
* mimeTypes: 添付ファイルとしてアップロードできるファイルの種類(mimetype)
|
11
|
+
- ['image/png', 'image/jpeg', 'application/pdf']
|
12
|
+
- ['image/*', 'application/pdf']
|
13
|
+
- ['*/*'] または [] /* すべての種類のファイル */
|
14
|
+
|
15
|
+
## デフォルト
|
16
|
+
|
17
|
+
```json
|
18
|
+
module.exports = {
|
19
|
+
fileUpload: {
|
20
|
+
maxFileSize: '100mb',
|
21
|
+
maxFiles: 10,
|
22
|
+
mimeTypes: []
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# fileUpload
|
2
|
+
|
3
|
+
파일업로드와 관련한 설정
|
4
|
+
|
5
|
+
* maxFileSize: 파일업로드가 가능한 파일의 최대 크기
|
6
|
+
* maxFiles: 동시에 업로드할 수 있는 파일의 최대 개수
|
7
|
+
* mimeTypes: 첨부파일로 업로드 할 수 있는 파일의 종류(mimetype)
|
8
|
+
- ['image/png', 'image/jpeg', 'application/pdf']
|
9
|
+
- ['image/*', 'application/pdf']
|
10
|
+
- ['*/*'] 또는 [] /* 모든 종류 파일 */
|
11
|
+
|
12
|
+
## default
|
13
|
+
|
14
|
+
```
|
15
|
+
module.exports = {
|
16
|
+
fileUpload: {
|
17
|
+
maxFileSize: '100mb',
|
18
|
+
maxFiles: 10,
|
19
|
+
mimeTypes: []
|
20
|
+
}
|
21
|
+
}
|
22
|
+
```
|
@@ -0,0 +1,24 @@
|
|
1
|
+
|
2
|
+
### English
|
3
|
+
```markdown
|
4
|
+
# fileUpload
|
5
|
+
|
6
|
+
settings related to file upload
|
7
|
+
|
8
|
+
* maxFileSize: maximum size of the file that can be uploaded
|
9
|
+
* maxFiles: maximum number of files that can be uploaded at the same time
|
10
|
+
* mimeTypes: types of files that can be uploaded as attachments (mimetype)
|
11
|
+
- ['image/png', 'image/jpeg', 'application/pdf']
|
12
|
+
- ['image/*', 'application/pdf']
|
13
|
+
- ['*/*'] or [] /* all types of files */
|
14
|
+
|
15
|
+
## default
|
16
|
+
|
17
|
+
```json
|
18
|
+
module.exports = {
|
19
|
+
fileUpload: {
|
20
|
+
maxFileSize: '100mb',
|
21
|
+
maxFiles: 10,
|
22
|
+
mimeTypes: []
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
|
2
|
+
### Malay
|
3
|
+
```markdown
|
4
|
+
# muatNaikFail
|
5
|
+
|
6
|
+
tetapan berkaitan muat naik fail
|
7
|
+
|
8
|
+
* maxFileSize: saiz fail maksimum yang boleh dimuat naik
|
9
|
+
* maxFiles: bilangan maksimum fail yang boleh dimuat naik serentak
|
10
|
+
* mimeTypes: jenis fail yang boleh dimuat naik sebagai fail lampiran (mimetype)
|
11
|
+
- ['image/png', 'image/jpeg', 'application/pdf']
|
12
|
+
- ['image/*', 'application/pdf']
|
13
|
+
- ['*/*'] atau [] /* semua jenis fail */
|
14
|
+
|
15
|
+
## lalai
|
16
|
+
|
17
|
+
```json
|
18
|
+
module.exports = {
|
19
|
+
fileUpload: {
|
20
|
+
maxFileSize: '100mb',
|
21
|
+
maxFiles: 10,
|
22
|
+
mimeTypes: []
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# 文件上传
|
2
|
+
|
3
|
+
文件上传相关设置
|
4
|
+
|
5
|
+
* maxFileSize: 文件上传的最大文件大小
|
6
|
+
* maxFiles: 一次可以上传的最大文件数量
|
7
|
+
* mimeTypes: 可以作为附件上传的文件类型(mimetype)
|
8
|
+
- ['image/png', 'image/jpeg', 'application/pdf']
|
9
|
+
- ['image/*', 'application/pdf']
|
10
|
+
- ['*/*'] 或 [] /* 所有类型的文件 */
|
11
|
+
|
12
|
+
## 默认
|
13
|
+
|
14
|
+
```json
|
15
|
+
module.exports = {
|
16
|
+
fileUpload: {
|
17
|
+
maxFileSize: '100mb',
|
18
|
+
maxFiles: 10,
|
19
|
+
mimeTypes: []
|
20
|
+
}
|
21
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/shell",
|
3
|
-
"version": "7.0.1-
|
3
|
+
"version": "7.0.1-beta.0",
|
4
4
|
"description": "Core module for framework",
|
5
5
|
"bin": {
|
6
6
|
"things-factory": "bin/things-factory",
|
@@ -59,11 +59,11 @@
|
|
59
59
|
"@operato/shell": "^2.0.0-alpha.0",
|
60
60
|
"@operato/typeorm-history": "^2.0.0-alpha.0",
|
61
61
|
"@operato/utils": "^2.0.0-alpha.0",
|
62
|
-
"@things-factory/ejs-remote": "^7.0.1-
|
63
|
-
"@things-factory/env": "^7.0.1-
|
62
|
+
"@things-factory/ejs-remote": "^7.0.1-beta.0",
|
63
|
+
"@things-factory/env": "^7.0.1-beta.0",
|
64
64
|
"@things-factory/operato-license-checker": "^4.0.4",
|
65
|
-
"@things-factory/styles": "^7.0.1-
|
66
|
-
"@things-factory/utils": "^7.0.1-
|
65
|
+
"@things-factory/styles": "^7.0.1-beta.0",
|
66
|
+
"@things-factory/utils": "^7.0.1-beta.0",
|
67
67
|
"@webcomponents/scoped-custom-element-registry": "^0.0.9",
|
68
68
|
"@webcomponents/webcomponentsjs": "^2.6.0",
|
69
69
|
"args": "^5.0.0",
|
@@ -119,7 +119,7 @@
|
|
119
119
|
"reselect": "^4.0.0",
|
120
120
|
"sass": "^1.50.1",
|
121
121
|
"scrollbooster": "^3.0.2",
|
122
|
-
"type-graphql": "^2.0.0-
|
122
|
+
"type-graphql": "^2.0.0-rc.1",
|
123
123
|
"typeorm": "^0.3.19",
|
124
124
|
"uuid": "^3.4.0",
|
125
125
|
"web-animations-js": "^2.3.2",
|
@@ -134,5 +134,5 @@
|
|
134
134
|
"pg": "^8.7.3",
|
135
135
|
"sqlite3": "^5.0.8"
|
136
136
|
},
|
137
|
-
"gitHead": "
|
137
|
+
"gitHead": "8cf78ecf64a78972b184dd06788825fc8c56352d"
|
138
138
|
}
|
package/server/server-dev.ts
CHANGED
@@ -33,7 +33,13 @@ import { initLicense, checkValidity } from '@things-factory/operato-license-chec
|
|
33
33
|
|
34
34
|
import { GraphqlLocalClient } from './graphql-local-client'
|
35
35
|
import { databaseInitializer } from './initializers/database'
|
36
|
-
import {
|
36
|
+
import {
|
37
|
+
domainPrivateRouter,
|
38
|
+
domainPublicRouter,
|
39
|
+
globalPrivateRouter,
|
40
|
+
globalPublicRouter,
|
41
|
+
graphqlRouter
|
42
|
+
} from './routers'
|
37
43
|
import { schema } from './schema'
|
38
44
|
import { Domain } from './service'
|
39
45
|
import { EntityManager } from 'typeorm'
|
@@ -58,7 +64,6 @@ args.option('webpack', 'webpack configuration file', config.get('webpack'))
|
|
58
64
|
|
59
65
|
const flags = args.parse(process.argv)
|
60
66
|
|
61
|
-
const path = require('path')
|
62
67
|
const webpack = require('webpack')
|
63
68
|
const webpackConfig = require(flags.webpack || '@things-factory/builder/webpack.config.dev.js')
|
64
69
|
|
@@ -98,6 +103,7 @@ const bootstrap = async () => {
|
|
98
103
|
await databaseInitializer()
|
99
104
|
|
100
105
|
const app = new Koa<ICustomAppState, ICustomAppContext>() as any
|
106
|
+
app.proxy = true
|
101
107
|
|
102
108
|
app.use(
|
103
109
|
cors({
|
package/server/server.ts
CHANGED
@@ -33,7 +33,13 @@ import { initLicense, checkValidity } from '@things-factory/operato-license-chec
|
|
33
33
|
|
34
34
|
import { GraphqlLocalClient } from './graphql-local-client'
|
35
35
|
import { databaseInitializer } from './initializers/database'
|
36
|
-
import {
|
36
|
+
import {
|
37
|
+
domainPrivateRouter,
|
38
|
+
domainPublicRouter,
|
39
|
+
globalPrivateRouter,
|
40
|
+
globalPublicRouter,
|
41
|
+
graphqlRouter
|
42
|
+
} from './routers'
|
37
43
|
import { schema } from './schema'
|
38
44
|
import { domainMiddleware } from './middlewares'
|
39
45
|
|
@@ -74,6 +80,7 @@ const bootstrap = async () => {
|
|
74
80
|
await databaseInitializer()
|
75
81
|
|
76
82
|
const app = new Koa() as any
|
83
|
+
app.proxy = true
|
77
84
|
|
78
85
|
app.use(
|
79
86
|
cors({
|
package/views/public/home.html
CHANGED