tego 1.3.12 → 1.3.14
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/LICENSE +1 -1
- package/README.ZH-CN.md +70 -0
- package/README.md +70 -0
- package/lib/constants.d.ts +1 -1
- package/lib/constants.js +1 -1
- package/lib/utils.js +2 -2
- package/package.json +31 -18
- package/src/constants.ts +1 -1
- package/src/utils.ts +2 -2
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright [2023-
|
|
189
|
+
Copyright [2023-2025] [Tego team]
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/README.ZH-CN.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
<h1 align="center" style="border-bottom: none">
|
|
2
|
+
<div>
|
|
3
|
+
<a style="color:#36f" href="https://www.tachybase.com">
|
|
4
|
+
<img src="https://tachybase-1321007335.cos.ap-shanghai.myqcloud.com/3733d6bd0a3376a93ba6180b32194369.png" width="80" />
|
|
5
|
+
<br>
|
|
6
|
+
灵矶
|
|
7
|
+
</a>
|
|
8
|
+
</div>
|
|
9
|
+
</h1>
|
|
10
|
+
|
|
11
|
+
<br>
|
|
12
|
+
|
|
13
|
+
<p align="center">
|
|
14
|
+
灵矶是一个插件化的应用框架,应用开发者可以基于灵矶做出丰富应用逻辑,而核心开发者可以聚焦于关键模块的稳定性和对不同环境的适配。
|
|
15
|
+
</p>
|
|
16
|
+
<p align="center">
|
|
17
|
+
<img alt="GitHub License" src="https://img.shields.io/github/license/tegojs/tego">
|
|
18
|
+
<img alt="GitHub Issues or Pull Requests" src="https://img.shields.io/github/issues/tegojs/tego">
|
|
19
|
+
<img alt="Static Badge" src="https://img.shields.io/badge/build-passing-brightgreen">
|
|
20
|
+
<a href="./README.md"><img alt="Static Badge" src="https://img.shields.io/badge/English Version-red"></a>
|
|
21
|
+
<a href="./README.ZH-CN.md"><img alt="Static Badge" src="https://img.shields.io/badge/中文版本-blue"></a>
|
|
22
|
+
<a href="https://gitee.com/tachybase/tachybase"><img alt="Static Badge" src="https://img.shields.io/badge/gitee-green"></a>
|
|
23
|
+
<a href="https://github.com/tegojs/tego"><img alt="Static Badge" src="https://img.shields.io/badge/Github-lightblack"></a>
|
|
24
|
+
</p>
|
|
25
|
+
|
|
26
|
+
# 系统试用
|
|
27
|
+
|
|
28
|
+
[SaaS 版本](https://apps.tachybase.com/)
|
|
29
|
+
|
|
30
|
+
可以自行注册账号密码,在内部建立子应用体验,目前系统处于公测阶段,有任何问题可以及时反馈,我们会在收到的第一时间解决。
|
|
31
|
+
|
|
32
|
+
# 快速开始
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# 创建一个新的灵矶应用
|
|
36
|
+
npx tego init my-app
|
|
37
|
+
# 切换到刚创建的目录中
|
|
38
|
+
cd my-app
|
|
39
|
+
# 启动应用
|
|
40
|
+
npx tego start --quickstart
|
|
41
|
+
# 访问应用
|
|
42
|
+
http://localhost:3000
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
默认用户名:`tachybase`,默认密码: `!Admin123.`
|
|
46
|
+
默认数据库为 `sqlite`, 你可以在 .env 文件中修改。
|
|
47
|
+
访问 [tachybase.org](https://tachybase.org/) 发现更多方式来使用灵矶。
|
|
48
|
+
|
|
49
|
+
# 从之前的版本更新
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
# 同步最新的包
|
|
53
|
+
npx tego sync
|
|
54
|
+
# 启动应用
|
|
55
|
+
npx tego start --quickstart
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
# 开源许可证
|
|
59
|
+
|
|
60
|
+
本项目遵循 [Apache 2.0](LICENSE) 开源许可证。
|
|
61
|
+
|
|
62
|
+
# 第三方代码声明
|
|
63
|
+
|
|
64
|
+
项目中包含大量来自第三方库的代码,例如 RequireJS、JsonLogic、NocoBase、Formily 和 Ant Design。这些代码遵循其原有的版权和协议要求。未来会逐步进行重构和替换,在项目早期使用时请注意相关授权要求。
|
|
65
|
+
|
|
66
|
+
# 贡献
|
|
67
|
+
|
|
68
|
+
- 欢迎提供部署和使用的背景,以及当前系统服务无法满足的情况。
|
|
69
|
+
- 欢迎分享使用案例,尤其是当前交互方式无法满足需求的场景,我们会根据实际影响范围进行处理。
|
|
70
|
+
- 欢迎直接贡献代码,我们暂时没有专门的交流群,您可以通过工单提交想法,我们会一起讨论。
|
package/README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
<h1 align="center" style="border-bottom: none">
|
|
2
|
+
<div>
|
|
3
|
+
<a style="color:#36f" href="https://www.tachybase.com">
|
|
4
|
+
<img src="https://tachybase-1321007335.cos.ap-shanghai.myqcloud.com/3733d6bd0a3376a93ba6180b32194369.png" width="80" />
|
|
5
|
+
<br>
|
|
6
|
+
Tego
|
|
7
|
+
</a>
|
|
8
|
+
</div>
|
|
9
|
+
</h1>
|
|
10
|
+
|
|
11
|
+
<br>
|
|
12
|
+
|
|
13
|
+
<p align="center">
|
|
14
|
+
Tego is a pluggable application framework., where developers can build complex application logic, while core developers focus on ensuring the stability of key modules and adapting to different environments.
|
|
15
|
+
</p>
|
|
16
|
+
<p align="center">
|
|
17
|
+
<img alt="GitHub License" src="https://img.shields.io/github/license/tegojs/tego">
|
|
18
|
+
<img alt="GitHub Issues or Pull Requests" src="https://img.shields.io/github/issues/tegojs/tego">
|
|
19
|
+
<img alt="Static Badge" src="https://img.shields.io/badge/build-passing-brightgreen">
|
|
20
|
+
<a href="./README.md"><img alt="Static Badge" src="https://img.shields.io/badge/English Version-red"></a>
|
|
21
|
+
<a href="./README.ZH-CN.md"><img alt="Static Badge" src="https://img.shields.io/badge/中文版本-blue"></a>
|
|
22
|
+
<a href="https://gitee.com/tachybase/tachybase"><img alt="Static Badge" src="https://img.shields.io/badge/gitee-green"></a>
|
|
23
|
+
<a href="https://github.com/tegojs/tego"><img alt="Static Badge" src="https://img.shields.io/badge/Github-lightblack"></a>
|
|
24
|
+
</p>
|
|
25
|
+
|
|
26
|
+
# Try
|
|
27
|
+
|
|
28
|
+
[SaaS Version](https://apps.tachybase.com/)
|
|
29
|
+
|
|
30
|
+
You can register an account and password by yourself and create sub-applications within the system to try it out. The system is currently in public beta. If you encounter any issues, feel free to provide feedback, and we will address them as soon as possible.
|
|
31
|
+
|
|
32
|
+
# Quick Start
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# Create a new Tego application
|
|
36
|
+
npx tego init my-app
|
|
37
|
+
# Change directory to the new application
|
|
38
|
+
cd my-app
|
|
39
|
+
# Start the application
|
|
40
|
+
npx tego start --quickstart
|
|
41
|
+
# Visit the application
|
|
42
|
+
http://localhost:3000
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Default username:`tachybase`,password: `!Admin123.`
|
|
46
|
+
The default database is `sqlite`, you can change it in .env file.
|
|
47
|
+
Visit [tachybase.org](https://tachybase.org/en/) to discover more ways to use Tego.
|
|
48
|
+
|
|
49
|
+
# Upgrade From Previous Version
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
# Sync latest packages
|
|
53
|
+
npx tego sync
|
|
54
|
+
# Start the application
|
|
55
|
+
npx tego start --quickstart
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
# License
|
|
59
|
+
|
|
60
|
+
This project is licensed under the [Apache 2.0](LICENSE) License。
|
|
61
|
+
|
|
62
|
+
# Third-party Code Notice
|
|
63
|
+
|
|
64
|
+
The project includes a significant amount of code from third-party libraries such as RequireJS、JsonLogic、NocoBase、Formily and Ant Design. This code adheres to their original licenses and agreements. It will be gradually rewritten in the future. Please be mindful of this when using it in the early stages of the project.
|
|
65
|
+
|
|
66
|
+
# Contributing
|
|
67
|
+
|
|
68
|
+
- Provide background information on deployment and usage, and describe the situations where the current system services fall short.
|
|
69
|
+
- Share usage cases where the current interaction methods do not meet your needs. We will address these based on their impact level.
|
|
70
|
+
- You are welcome to directly contribute code. We currently do not have a dedicated community group, but you can submit ideas through tickets, and we can discuss them together.
|
package/lib/constants.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ export declare const DEFAULT_DEV_PLUGINS_PATH: string;
|
|
|
2
2
|
export declare const DEFAULT_REMOTE_PLUGINS_PATH: string;
|
|
3
3
|
export declare const DEFAULT_BUILTIN_PLUGINS_PATH: string;
|
|
4
4
|
export declare const DEFAULT_BUILTIN_PLUGINS_RELATIVE_PATH: string;
|
|
5
|
-
export declare const DEFAULT_WEB_PACKAGE_NAME = "@
|
|
5
|
+
export declare const DEFAULT_WEB_PACKAGE_NAME = "@tego/web";
|
package/lib/constants.js
CHANGED
|
@@ -39,7 +39,7 @@ const DEFAULT_DEV_PLUGINS_PATH = import_node_path.default.resolve("plugins", "de
|
|
|
39
39
|
const DEFAULT_REMOTE_PLUGINS_PATH = import_node_path.default.resolve("plugins", "remote");
|
|
40
40
|
const DEFAULT_BUILTIN_PLUGINS_PATH = import_node_path.default.resolve("plugins", "builtin");
|
|
41
41
|
const DEFAULT_BUILTIN_PLUGINS_RELATIVE_PATH = import_node_path.default.join("plugins", "builtin");
|
|
42
|
-
const DEFAULT_WEB_PACKAGE_NAME = "@
|
|
42
|
+
const DEFAULT_WEB_PACKAGE_NAME = "@tego/web";
|
|
43
43
|
// Annotate the CommonJS export names for ESM import in node:
|
|
44
44
|
0 && (module.exports = {
|
|
45
45
|
DEFAULT_BUILTIN_PLUGINS_PATH,
|
package/lib/utils.js
CHANGED
|
@@ -123,10 +123,10 @@ function parseEnvironment() {
|
|
|
123
123
|
}
|
|
124
124
|
__name(parseEnvironment, "parseEnvironment");
|
|
125
125
|
function guessServePath() {
|
|
126
|
-
const distPath = (0, import_node_path.resolve)("apps/
|
|
126
|
+
const distPath = (0, import_node_path.resolve)("apps/web/dist/index.html");
|
|
127
127
|
const clientPath = (0, import_node_path.resolve)("client/index.html");
|
|
128
128
|
if (import_node_fs.default.existsSync(distPath)) {
|
|
129
|
-
return (0, import_node_path.resolve)("apps/
|
|
129
|
+
return (0, import_node_path.resolve)("apps/web/dist");
|
|
130
130
|
} else if (import_node_fs.default.existsSync(clientPath)) {
|
|
131
131
|
return (0, import_node_path.resolve)("client");
|
|
132
132
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tego",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.14",
|
|
4
4
|
"description": "",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"tego",
|
|
7
|
+
"tachybase"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://tachybase.org",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/tegojs/tego/issues"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/tegojs/tego",
|
|
16
|
+
"directory": "apps/tego"
|
|
17
|
+
},
|
|
5
18
|
"license": "Apache-2.0",
|
|
6
19
|
"main": "./lib/index.js",
|
|
7
20
|
"types": "./lib/index.d.ts",
|
|
@@ -39,27 +52,27 @@
|
|
|
39
52
|
"umzug": "3.8.2",
|
|
40
53
|
"winston": "3.17.0",
|
|
41
54
|
"winston-daily-rotate-file": "^5.0.0",
|
|
42
|
-
"@tachybase/acl": "1.3.
|
|
43
|
-
"@tachybase/
|
|
44
|
-
"@tachybase/
|
|
45
|
-
"@tachybase/
|
|
46
|
-
"@tachybase/
|
|
47
|
-
"@tachybase/
|
|
48
|
-
"@tachybase/
|
|
49
|
-
"@tachybase/globals": "1.3.
|
|
50
|
-
"@tachybase/
|
|
51
|
-
"@tachybase/
|
|
52
|
-
"@tachybase/
|
|
53
|
-
"@tachybase/
|
|
54
|
-
"@tachybase/
|
|
55
|
-
"@tachybase/utils": "1.3.
|
|
55
|
+
"@tachybase/acl": "1.3.14",
|
|
56
|
+
"@tachybase/actions": "1.3.14",
|
|
57
|
+
"@tachybase/cache": "1.3.14",
|
|
58
|
+
"@tachybase/data-source": "1.3.14",
|
|
59
|
+
"@tachybase/database": "1.3.14",
|
|
60
|
+
"@tachybase/auth": "1.3.14",
|
|
61
|
+
"@tachybase/loader": "1.3.14",
|
|
62
|
+
"@tachybase/globals": "1.3.14",
|
|
63
|
+
"@tachybase/logger": "1.3.14",
|
|
64
|
+
"@tachybase/resourcer": "1.3.14",
|
|
65
|
+
"@tachybase/evaluators": "1.3.14",
|
|
66
|
+
"@tachybase/server": "1.3.14",
|
|
67
|
+
"@tachybase/schema": "1.3.14",
|
|
68
|
+
"@tachybase/utils": "1.3.14"
|
|
56
69
|
},
|
|
57
70
|
"devDependencies": {
|
|
58
71
|
"@types/lodash": "4.17.18",
|
|
59
72
|
"@yao-pkg/pkg": "6.5.1",
|
|
60
|
-
"@tachybase/
|
|
61
|
-
"@tachybase/
|
|
62
|
-
"@tachybase/logger": "1.3.
|
|
73
|
+
"@tachybase/cache": "1.3.14",
|
|
74
|
+
"@tachybase/client": "1.3.14",
|
|
75
|
+
"@tachybase/logger": "1.3.14"
|
|
63
76
|
},
|
|
64
77
|
"pkg": {
|
|
65
78
|
"targets": [
|
package/src/constants.ts
CHANGED
|
@@ -4,4 +4,4 @@ export const DEFAULT_DEV_PLUGINS_PATH = path.resolve('plugins', 'dev');
|
|
|
4
4
|
export const DEFAULT_REMOTE_PLUGINS_PATH = path.resolve('plugins', 'remote');
|
|
5
5
|
export const DEFAULT_BUILTIN_PLUGINS_PATH = path.resolve('plugins', 'builtin');
|
|
6
6
|
export const DEFAULT_BUILTIN_PLUGINS_RELATIVE_PATH = path.join('plugins', 'builtin');
|
|
7
|
-
export const DEFAULT_WEB_PACKAGE_NAME = '@
|
|
7
|
+
export const DEFAULT_WEB_PACKAGE_NAME = '@tego/web';
|
package/src/utils.ts
CHANGED
|
@@ -100,11 +100,11 @@ export function parseEnvironment() {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
export function guessServePath() {
|
|
103
|
-
const distPath = resolve('apps/
|
|
103
|
+
const distPath = resolve('apps/web/dist/index.html');
|
|
104
104
|
const clientPath = resolve('client/index.html');
|
|
105
105
|
|
|
106
106
|
if (fs.existsSync(distPath)) {
|
|
107
|
-
return resolve('apps/
|
|
107
|
+
return resolve('apps/web/dist');
|
|
108
108
|
} else if (fs.existsSync(clientPath)) {
|
|
109
109
|
return resolve('client');
|
|
110
110
|
}
|