Repository navigation
Expand file tree
/
Copy pathapp.yao
More file actions
99 lines (99 loc) · 2.99 KB
/
Copy pathapp.yao
File metadata and controls
99 lines (99 loc) · 2.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"name": "Demo Application", // The name of the application
"short": "Demo", // The short name of the application
"description": "Another yao application", // The application description
"version": "0.10.4", // The application version
"adminRoot": "admin", // The admin panel root path, default is "admin"
/**
* Hook: setup
* The setup script to be executed when the installation is completed.
* It's useful for setting up the initial data for the application.
*/
"setup": "scripts.tests.AppSetup",
/**
* Hook: afterLoad
* new feature of the yao v0.10.4
* The script to be executed after the application is loaded.
* It's useful for dynamic loading DSLs before the http server starts.
*/
"afterLoad": "scripts.tests.AppAfterLoad",
/**
* Hook: afterMigrate
* new feature of the yao v0.10.4
* The script to be executed after the application is migrated.
* It's useful for setting up the initial data when `yao migrate` is executed
*/
"afterMigrate": "scripts.tests.AppAfterMigrate",
"menu": {
"process": "flows.app.menu"
},
/**
* This is a new feature of the yao v0.10.4
* The Http Server Root Directory Configuration ( Optional )
*/
"public": {
/**
* The public backend script source root mapping to the real source root
* The key is the public root and the value is the real source root
* For development mode only, It's useful for SUI backend script development
*/
"sourceRoots": {
"/public": "/data/templates/default"
},
// For routing SUI web pages
"rewrite": [
{
"^\\/assets\\/(.*)$": "/assets/$1"
}, // SUI assets
{
"^\\/(.*)$": "/$1.sui"
} // File system route
]
},
"developer": {
"id": "wwsheng009",
"name": "vincent wang",
"email": "vincentwwsheng@gmail.com",
"info": "Make the world a better place.",
"homepage": "https://github.com/wwsheng009"
},
"optional": {
/**
*Enable remote cache for the application. When enabled,
* it reduces requests like Select Component options queries by caching data in the browser
*/
"remoteCache": true,
/**
* This is a new feature of the yao v0.10.4
* layout:
* 1-column: one column for menu and sub-menu
* 2-columns: menu and sub-menu in two column
*
* hide: hide the menu and sub-menu
* showName: show the name of the menu
*/
"menu": {
"layout": "2-columns",
"showName": true
},
/**
* 管理后台使用:
* - PATH: {"api":"/neo"}
* - URL: {"api":"http://localhost:5099/api/__yao/neo"}
*
* Studio使用:
* - Studio PATH: {"api":"/neo", "studio":true }
* - Studio URL: {"api":"http://localhost:5077/neo", "studio":true }
*/
"neo": {
"api": "/neo"
}
},
"moapi": {
"channel": "global",
"secret": "$ENV.MOAPI_SECRET", // SUPPORT ENVIRONMENT VARIABLE
"mirrors": [
"api.openai.com"
]
}
}