@rongcloud/engine 0.0.1-alpha.1
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 +20 -0
- package/README.md +29 -0
- package/index.cjs +16 -0
- package/index.cjs.js +16 -0
- package/index.d.ts +16255 -0
- package/index.esm.js +15 -0
- package/index.mjs +15 -0
- package/package.json +32 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright (c) 2016 RongCloud.
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# @rongcloud/engine
|
|
2
|
+
|
|
3
|
+
Engine 包定义 Electron Renderer 进程及标准 Web 浏览器运行时业务代码
|
|
4
|
+
|
|
5
|
+
<!--
|
|
6
|
+
|
|
7
|
+
## 目录说明
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
.
|
|
11
|
+
|-- context - API 层的调用入口,承接不同 API 版本对 Engine 的调用
|
|
12
|
+
|-- engine-basic - Engine 抽象,及 ElectronRenderer 与标准 Web 共享模块包
|
|
13
|
+
|-- engine-web - 标准 Web 平台功能定义
|
|
14
|
+
|-- modules - 业务模块目录,后续将按业务对 engine 进行分拆,降低 engine 复杂度
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## TODO:业务模块化
|
|
18
|
+
|
|
19
|
+
后续逐渐将 Engine 按既有业务做模块化重构,拆解 Engine、APIContext,降低 Engine 代码体量,同时为后续拆包提供模块化集成做准备。
|
|
20
|
+
|
|
21
|
+
暂定按业务类型划分为三个业务模块:
|
|
22
|
+
|
|
23
|
+
* Chat(会话)- 考虑到后续群融合等演进方向,不单独拆分单群聊、超级群业务模块
|
|
24
|
+
* Chatroom(聊天室)
|
|
25
|
+
* DataHosting(数据托管)
|
|
26
|
+
|
|
27
|
+
拆分后,Engine 将只包含连接、日志等基础能力。
|
|
28
|
+
|
|
29
|
+
-->
|