chanjs 1.0.37 → 1.0.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/README.md +46 -46
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,22 +1,22 @@
1
1
 
2
- # Chan.js
2
+ # Chanjs
3
3
 
4
- Chan.js is a lightweight MVC framework developed in pure JavaScript based on Express. It embodies functional programming concepts, offering superior performance, clear code, and easy-to-follow processes that ensure high maintainability.
4
+ Chanjs 是一个基于 Express 构建的轻量级 MVC 框架,完全使用 JavaScript 开发。它体现了函数式编程的概念,提供了卓越的性能、清晰的代码和易于遵循的过程,确保了高可维护性。
5
5
 
6
6
  ## features
7
7
 
8
- - Built on top of Express
9
- - Supports ES6 syntax
10
- - Modular Design
11
- - Supports multiple module routes
12
- - Supports multiple module views
13
- - Supports multiple module controllers
14
- - Supports multiple module services
15
- - Plugin-based architecture
16
- - Lightweight (core code within 300 lines)
17
- - Long-term maintenance
8
+ - 基于 Express 构建
9
+ - 支持 ES6 语法
10
+ - 模块化设计
11
+ - 多模块化路由
12
+ - 模块化 views
13
+ - 模块化 controllers
14
+ - 模块化 services
15
+ - 插件式架构
16
+ - 轻量级(核心代码在300行以内)
17
+ - 缓存支持
18
18
 
19
- ## Conventions Over Configuration
19
+ ## 约定优于配置
20
20
 
21
21
  ```code
22
22
  |- app
@@ -49,51 +49,51 @@ Chan.js is a lightweight MVC framework developed in pure JavaScript based on Exp
49
49
  |- index.js
50
50
  ```
51
51
 
52
- ### Initialization Process
52
+ ### 初始化过程
53
53
 
54
- - Initialization
55
- - Load configuration
56
- - Load modules
57
- - Load services
58
- - Load controllers
59
- - Load routers
60
- - Load extensions
61
- - Load plugins
62
- - Load services
63
- - Load controllers
64
- - Load routers
65
- - beforeStart() Hook to merge configurations from the database into the configuration
66
- - run() Start the server
54
+ - 初始化
55
+ - 加载配置
56
+ - 加载模块
57
+ - 加载服务
58
+ - 加载控制器
59
+ - 加载路由
60
+ - 加载扩展
61
+ - 加载插件
62
+ - 加载服务
63
+ - 加载控制器
64
+ - 加载路由
65
+ - `beforeStart()` 钩子用于将数据库中的配置合并到配置中
66
+ - `run()` 启动服务器
67
67
 
68
- ### Official Website
68
+ ### ### 官方网站
69
69
 
70
- A CMS system developed with Chan.js
71
- Website:<https://www.chancms.top>
70
+ 使用 Chanjs 开发的 CMS 系统
71
+ 网站:[https://www.chancms.top](https://www.chancms.top)
72
72
 
73
- ### Highlights
73
+ ### 功能亮点
74
74
 
75
- - Configuration files
76
- - Multi-module MVC structure
77
- - Plugin MVC support
78
- - CORS cross-origin configuration support
79
- - MySQL database support
80
- - Route control
81
- - Art-template template engine
82
- - Static resources management
83
- - Cookie handling
84
- - Logging capabilities
75
+ - 配置文件
76
+ - 多模块 MVC 结构
77
+ - 插件 MVC 支持
78
+ - CORS 跨域配置支持
79
+ - MySQL 数据库支持
80
+ - 路由控制
81
+ - Art-template 模板引擎
82
+ - 静态资源管理
83
+ - Cookie 处理
84
+ - 日志功能
85
85
 
86
- ### run
86
+ ### 运行
87
87
 
88
88
  ```javascript
89
89
  const Chanjs = require("chanjs");
90
90
  const chan = new Chanjs();
91
- // Load middleware
91
+ // 加载中间件
92
92
  chan.beforeStart(fn);
93
- // Scan modules
93
+ // 扫描模块
94
94
  chan.start();
95
- // Start the server
95
+ // 启动服务器
96
96
  chan.run();
97
97
  ```
98
98
 
99
- This framework is designed for developers who seek a balance between simplicity and functionality, providing a robust foundation for building web applications with ease.
99
+ 该框架专为寻求简单与功能之间平衡的开发者设计,为构建 Web 应用程序提供了一个强大的基础。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chanjs",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "chanjs基于express 纯js研发的轻量级mvc框架。",
5
5
  "main": "core/chan.js",
6
6
  "module": "core/chan.js",