发布正式版7.x

This commit is contained in:
cool 2023-10-31 14:43:22 +08:00
parent a6f2a55273
commit f671df7c7c
31 changed files with 309 additions and 169 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/cloud",
"version": "7.0.0-beta1",
"version": "7.0.0",
"description": "",
"main": "dist/index.js",
"typings": "index.d.ts",
@ -27,7 +27,7 @@
"url": "https://cool-js.com"
},
"devDependencies": {
"@cool-midway/core": "7.0.0-beta2",
"@cool-midway/core": "^7.0.0",
"@midwayjs/cli": "^2.0.0",
"@midwayjs/core": "^3.9.0",
"@midwayjs/decorator": "^3.9.0",

27
cloud/src/README.md Normal file
View File

@ -0,0 +1,27 @@
### COOL-ADMIN
cool-admin一个很酷的后台权限管理系统开源免费模块化、插件化、极速开发CRUD方便快速构建迭代后台管理系统
大数据、微服务、AI编码快速开发
### 技术栈
- 后端node.js midway.js koa.js mysql typescript
- 前端vue.js element-plus jsx pinia vue-router
### 官网
[https://cool-js.com](https://cool-js.com)
### 演示地址
[https://show.cool-admin.com](https://show.cool-admin.com)
- 账户admin
- 密码123456
### 项目地址
[https://github.com/cool-team-official/cool-admin-midway](https://github.com/cool-team-official/cool-admin-midway)

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/cloud",
"version": "7.0.0-beta1",
"version": "7.0.0",
"description": "",
"main": "index.js",
"typings": "index.d.ts",
@ -23,7 +23,7 @@
"url": "https://cool-js.com"
},
"devDependencies": {
"@cool-midway/core": "7.0.0-beta2",
"@cool-midway/core": "^7.0.0",
"@midwayjs/cli": "^2.0.0",
"@midwayjs/core": "^3.0.0",
"@midwayjs/decorator": "^3.0.0",

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/core",
"version": "7.0.0-beta7",
"version": "7.0.0",
"description": "",
"main": "dist/index.js",
"typings": "index.d.ts",

27
core/src/README.md Normal file
View File

@ -0,0 +1,27 @@
### COOL-ADMIN
cool-admin一个很酷的后台权限管理系统开源免费模块化、插件化、极速开发CRUD方便快速构建迭代后台管理系统
大数据、微服务、AI编码快速开发
### 技术栈
- 后端node.js midway.js koa.js mysql typescript
- 前端vue.js element-plus jsx pinia vue-router
### 官网
[https://cool-js.com](https://cool-js.com)
### 演示地址
[https://show.cool-admin.com](https://show.cool-admin.com)
- 账户admin
- 密码123456
### 项目地址
[https://github.com/cool-team-official/cool-admin-midway](https://github.com/cool-team-official/cool-admin-midway)

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/core",
"version": "7.0.0-beta7",
"version": "7.0.0",
"description": "",
"main": "index.js",
"typings": "index.d.ts",

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/es",
"version": "7.0.0-beta2",
"version": "7.0.0",
"description": "cool-js.com elasticsearch",
"main": "dist/index.js",
"typings": "index.d.ts",
@ -24,7 +24,7 @@
],
"license": "MIT",
"devDependencies": {
"@cool-midway/core": "7.0.0-beta3",
"@cool-midway/core": "^7.0.0",
"@midwayjs/cli": "^2.0.9",
"@midwayjs/core": "^3.9.0",
"@midwayjs/decorator": "^3.9.0",

27
es/src/README.md Normal file
View File

@ -0,0 +1,27 @@
### COOL-ADMIN
cool-admin一个很酷的后台权限管理系统开源免费模块化、插件化、极速开发CRUD方便快速构建迭代后台管理系统
大数据、微服务、AI编码快速开发
### 技术栈
- 后端node.js midway.js koa.js mysql typescript
- 前端vue.js element-plus jsx pinia vue-router
### 官网
[https://cool-js.com](https://cool-js.com)
### 演示地址
[https://show.cool-admin.com](https://show.cool-admin.com)
- 账户admin
- 密码123456
### 项目地址
[https://github.com/cool-team-official/cool-admin-midway](https://github.com/cool-team-official/cool-admin-midway)

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/es",
"version": "7.0.0-beta2",
"version": "7.0.0",
"description": "cool-js.com elasticsearch",
"main": "index.js",
"typings": "index.d.ts",
@ -22,7 +22,7 @@
},
"license": "MIT",
"devDependencies": {
"@cool-midway/core": "7.0.0-beta3",
"@cool-midway/core": "^7.0.0",
"@midwayjs/cli": "^1.2.38",
"@midwayjs/core": "^3.0.0",
"@midwayjs/decorator": "^3.0.0",

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/file",
"version": "7.0.0-beta3",
"version": "7.0.0",
"description": "",
"main": "dist/index.js",
"typings": "index.d.ts",
@ -27,7 +27,7 @@
"url": "https://cool-js.com"
},
"devDependencies": {
"@cool-midway/core": "7.0.0-beta2",
"@cool-midway/core": "^7.0.0",
"@midwayjs/cli": "^2.0.9",
"@midwayjs/core": "^3.9.0",
"@midwayjs/decorator": "^3.9.0",

27
file/src/README.md Normal file
View File

@ -0,0 +1,27 @@
### COOL-ADMIN
cool-admin一个很酷的后台权限管理系统开源免费模块化、插件化、极速开发CRUD方便快速构建迭代后台管理系统
大数据、微服务、AI编码快速开发
### 技术栈
- 后端node.js midway.js koa.js mysql typescript
- 前端vue.js element-plus jsx pinia vue-router
### 官网
[https://cool-js.com](https://cool-js.com)
### 演示地址
[https://show.cool-admin.com](https://show.cool-admin.com)
- 账户admin
- 密码123456
### 项目地址
[https://github.com/cool-team-official/cool-admin-midway](https://github.com/cool-team-official/cool-admin-midway)

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/file",
"version": "7.0.0-beta3",
"version": "7.0.0",
"description": "",
"main": "index.js",
"typings": "index.d.ts",
@ -27,7 +27,7 @@
"url": "https://cool-js.com"
},
"devDependencies": {
"@cool-midway/core": "^6.0.0",
"@cool-midway/core": "^7.0.0",
"@midwayjs/cli": "^2.0.9",
"@midwayjs/core": "^3.9.0",
"@midwayjs/decorator": "^3.9.0",

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/iot",
"version": "7.0.0-beta1",
"version": "7.0.0",
"description": "cool-js.com iot模块",
"main": "dist/index.js",
"typings": "index.d.ts",
@ -30,7 +30,7 @@
"index.d.ts"
],
"devDependencies": {
"@cool-midway/core": "7.0.0-beta3",
"@cool-midway/core": "^7.0.0",
"@midwayjs/cli": "^2.0.9",
"@midwayjs/core": "^3.9.0",
"@midwayjs/decorator": "^3.9.0",

27
iot/src/README.md Normal file
View File

@ -0,0 +1,27 @@
### COOL-ADMIN
cool-admin一个很酷的后台权限管理系统开源免费模块化、插件化、极速开发CRUD方便快速构建迭代后台管理系统
大数据、微服务、AI编码快速开发
### 技术栈
- 后端node.js midway.js koa.js mysql typescript
- 前端vue.js element-plus jsx pinia vue-router
### 官网
[https://cool-js.com](https://cool-js.com)
### 演示地址
[https://show.cool-admin.com](https://show.cool-admin.com)
- 账户admin
- 密码123456
### 项目地址
[https://github.com/cool-team-official/cool-admin-midway](https://github.com/cool-team-official/cool-admin-midway)

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/iot",
"version": "7.0.0-beta1",
"version": "7.0.0",
"description": "cool-js.com iot模块",
"main": "index.js",
"typings": "index.d.ts",
@ -30,7 +30,7 @@
"index.d.ts"
],
"devDependencies": {
"@cool-midway/core": "7.0.0-beta3",
"@cool-midway/core": "^7.0.0",
"@midwayjs/cli": "^2.0.9",
"@midwayjs/core": "^3.9.0",
"@midwayjs/decorator": "^3.9.0",

View File

@ -1,81 +1,27 @@
# Node Cache Manager store for Filesystem
### COOL-ADMIN
[![Build Status](https://travis-ci.org/rolandstarke/node-cache-manager-fs-hash.svg?branch=master)](https://travis-ci.org/rolandstarke/node-cache-manager-fs-hash)
[![dependencies Status](https://david-dm.org/rolandstarke/node-cache-manager-fs-hash/status.svg)](https://david-dm.org/rolandstarke/node-cache-manager-fs-hash)
[![npm package](https://img.shields.io/npm/v/cache-manager-fs-hash.svg)](https://www.npmjs.com/package/cache-manager-fs-hash)
[![node](https://img.shields.io/node/v/cache-manager-fs-hash.svg)](https://nodejs.org)
cool-admin一个很酷的后台权限管理系统开源免费模块化、插件化、极速开发CRUD方便快速构建迭代后台管理系统
A Filesystem store for the [node-cache-manager](https://github.com/BryanDonovan/node-cache-manager) module
## Installation
```sh
npm install cache-manager-fs-hash --save
```
## Features
* Saves anything that is `JSON.stringify`-able to disk
* Buffers are saved as well (if they reach a certain size they will be stored to separate files)
* Works well with the cluster module
## Usage example
Here is an example that demonstrates how to implement the Filesystem cache store.
```javascript
const cacheManager = require('cache-manager');
const fsStore = require('cache-manager-fs-hash');
const diskCache = cacheManager.caching({
store: fsStore,
options: {
path: 'diskcache', //path for cached files
ttl: 60 * 60, //time to life in seconds
subdirs: true, //create subdirectories to reduce the
//files in a single dir (default: false)
zip: true, //zip files to save diskspace (default: false)
}
});
大数据、微服务、AI编码快速开发
(async () => {
### 技术栈
await diskCache.set('key', 'value');
console.log(await diskCache.get('key')); //"value"
console.log(await diskCache.ttl('key')); //3600 seconds
await diskCache.del('key');
console.log(await diskCache.get('key')); //undefined
- 后端node.js midway.js koa.js mysql typescript
- 前端vue.js element-plus jsx pinia vue-router
### 官网
[https://cool-js.com](https://cool-js.com)
console.log(await getUserCached(5)); //{id: 5, name: '...'}
console.log(await getUserCached(5)); //{id: 5, name: '...'}
### 演示地址
await diskCache.reset();
[https://show.cool-admin.com](https://show.cool-admin.com)
function getUserCached(userId) {
return diskCache.wrap(userId /* cache key */, function () {
return getUser(userId);
});
}
- 账户admin
- 密码123456
async function getUser(userId) {
return {id: userId, name: '...'};
}
### 项目地址
})();
```
## How it works
The filename is determined by the md5 hash of the `key`. (The `key` is also saved in the file to detect hash collisions. In this case it will just return a cache miss). Writing is performed with .lock files so that multiple instances of the library (e.g. using the cluster module) do not interfere with one another.
## Tests
```sh
npm test
```
## License
cache-manager-fs-hash is licensed under the MIT license.
[https://github.com/cool-team-official/cool-admin-midway](https://github.com/cool-team-official/cool-admin-midway)

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/cache-manager-fs-hash",
"version": "7.0.0-beta1",
"version": "7.0.0",
"main": "index.js",
"engines": {
"node": ">=8.0.0"

View File

@ -1,76 +1,27 @@
mqemitter-redis  ![ci](https://github.com/mcollina/mqemitter/workflows/ci/badge.svg)
===============
### COOL-ADMIN
Redis-powered [MQEmitter](http://github.com/mcollina/mqemitter).
cool-admin一个很酷的后台权限管理系统开源免费模块化、插件化、极速开发CRUD方便快速构建迭代后台管理系统
See [MQEmitter](http://github.com/mcollina/mqemitter) for the actual
API.
[![js-standard-style](https://raw.githubusercontent.com/feross/standard/master/badge.png)](https://github.com/feross/standard)
大数据、微服务、AI编码快速开发
Install
-------
### 技术栈
```bash
$ npm install mqemitter-redis --save
```
- 后端node.js midway.js koa.js mysql typescript
- 前端vue.js element-plus jsx pinia vue-router
Example
-------
### 官网
```js
var redis = require('mqemitter-redis')
var mq = redis({
port: 12345,
host: '12.34.56.78',
password: 'my secret',
db: 4
})
var msg = {
topic: 'hello world',
payload: 'or any other fields'
}
[https://cool-js.com](https://cool-js.com)
mq.on('hello world', function (message, cb) {
// call callback when you are done
// do not pass any errors, the emitter cannot handle it.
cb()
})
// topic is mandatory
mq.emit(msg, function () {
// emitter will never return an error
})
```
### 演示地址
Connection String Example
-------------------------
[https://show.cool-admin.com](https://show.cool-admin.com)
```js
var redis = require('mqemitter-redis')
var mq = redis({
connectionString: 'redis://:authpassword@127.0.0.1:6380/4'
})
```
- 账户admin
- 密码123456
## API
### 项目地址
<a name="constructor"></a>
### MQEmitterRedis([opts])
Creates a new instance of mqemitter-redis.
It takes all the same options of [ioredis](http://npm.im/ioredis),
which is used internally to connect to Redis.
This constructor creates two connections to Redis.
Acknowledgements
----------------
Code ported from [Ascoltatori](http://github.com/mcollina/ascoltatori).
License
-------
MIT
[https://github.com/cool-team-official/cool-admin-midway](https://github.com/cool-team-official/cool-admin-midway)

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/mqemitter-redis",
"version": "7.0.0-beta1",
"version": "7.0.0",
"description": "Redis-based MQEmitter",
"main": "mqemitter-redis.js",
"types": "types/index.d.ts",

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/pay",
"version": "7.0.0-beta1",
"version": "7.0.0",
"description": "cool-js.com 支付 微信 支付宝",
"main": "dist/index.js",
"typings": "index.d.ts",
@ -28,7 +28,7 @@
"url": "https://cool-js.com"
},
"devDependencies": {
"@cool-midway/core": "7.0.0-beta3",
"@cool-midway/core": "^7.0.0",
"@midwayjs/cli": "^2.0.9",
"@midwayjs/core": "^3.9.0",
"@midwayjs/decorator": "^3.9.0",

27
pay/src/README.md Normal file
View File

@ -0,0 +1,27 @@
### COOL-ADMIN
cool-admin一个很酷的后台权限管理系统开源免费模块化、插件化、极速开发CRUD方便快速构建迭代后台管理系统
大数据、微服务、AI编码快速开发
### 技术栈
- 后端node.js midway.js koa.js mysql typescript
- 前端vue.js element-plus jsx pinia vue-router
### 官网
[https://cool-js.com](https://cool-js.com)
### 演示地址
[https://show.cool-admin.com](https://show.cool-admin.com)
- 账户admin
- 密码123456
### 项目地址
[https://github.com/cool-team-official/cool-admin-midway](https://github.com/cool-team-official/cool-admin-midway)

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/pay",
"version": "7.0.0-beta1",
"version": "7.0.0",
"description": "cool-js.com 支付 微信 支付宝",
"main": "index.js",
"typings": "index.d.ts",
@ -28,7 +28,7 @@
"url": "https://cool-js.com"
},
"devDependencies": {
"@cool-midway/core": "7.0.0-beta3",
"@cool-midway/core": "^7.0.0",
"@midwayjs/cli": "^2.0.9",
"@midwayjs/core": "^3.9.0",
"@midwayjs/decorator": "^3.9.0",

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/rpc",
"version": "7.0.0-beta1",
"version": "7.0.0",
"description": "cool-js.com rpc 微服务",
"main": "dist/index.js",
"typings": "index.d.ts",
@ -23,7 +23,7 @@
},
"license": "MIT",
"devDependencies": {
"@cool-midway/core": "7.0.0-beta3",
"@cool-midway/core": "^7.0.0",
"@midwayjs/cli": "^2.0.9",
"@midwayjs/core": "^3.9.0",
"@midwayjs/decorator": "^3.9.0",

27
rpc/src/README.md Normal file
View File

@ -0,0 +1,27 @@
### COOL-ADMIN
cool-admin一个很酷的后台权限管理系统开源免费模块化、插件化、极速开发CRUD方便快速构建迭代后台管理系统
大数据、微服务、AI编码快速开发
### 技术栈
- 后端node.js midway.js koa.js mysql typescript
- 前端vue.js element-plus jsx pinia vue-router
### 官网
[https://cool-js.com](https://cool-js.com)
### 演示地址
[https://show.cool-admin.com](https://show.cool-admin.com)
- 账户admin
- 密码123456
### 项目地址
[https://github.com/cool-team-official/cool-admin-midway](https://github.com/cool-team-official/cool-admin-midway)

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/rpc",
"version": "7.0.0-beta1",
"version": "7.0.0",
"description": "cool-js.com rpc 微服务",
"main": "index.js",
"typings": "index.d.ts",
@ -23,7 +23,7 @@
},
"license": "MIT",
"devDependencies": {
"@cool-midway/core": "7.0.0-beta3",
"@cool-midway/core": "^7.0.0",
"@midwayjs/cli": "^2.0.9",
"@midwayjs/core": "^3.9.0",
"@midwayjs/decorator": "^3.9.0",

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/sms",
"version": "7.0.0-beta1",
"version": "7.0.0",
"description": "cool-js.com 短信",
"main": "dist/index.js",
"typings": "index.d.ts",
@ -28,7 +28,7 @@
"url": "https://cool-js.com"
},
"devDependencies": {
"@cool-midway/core": "7.0.0-beta3",
"@cool-midway/core": "^7.0.0",
"@midwayjs/cli": "^2.0.9",
"@midwayjs/core": "^3.9.0",
"@midwayjs/decorator": "^3.9.0",

27
sms/src/README.md Normal file
View File

@ -0,0 +1,27 @@
### COOL-ADMIN
cool-admin一个很酷的后台权限管理系统开源免费模块化、插件化、极速开发CRUD方便快速构建迭代后台管理系统
大数据、微服务、AI编码快速开发
### 技术栈
- 后端node.js midway.js koa.js mysql typescript
- 前端vue.js element-plus jsx pinia vue-router
### 官网
[https://cool-js.com](https://cool-js.com)
### 演示地址
[https://show.cool-admin.com](https://show.cool-admin.com)
- 账户admin
- 密码123456
### 项目地址
[https://github.com/cool-team-official/cool-admin-midway](https://github.com/cool-team-official/cool-admin-midway)

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/sms",
"version": "7.0.0-beta1",
"version": "7.0.0",
"description": "cool-js.com 短信",
"main": "index.js",
"typings": "index.d.ts",
@ -28,7 +28,7 @@
"url": "https://cool-js.com"
},
"devDependencies": {
"@cool-midway/core": "7.0.0-beta3",
"@cool-midway/core": "^7.0.0",
"@midwayjs/cli": "^2.0.9",
"@midwayjs/core": "^3.9.0",
"@midwayjs/decorator": "^3.9.0",

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/task",
"version": "7.0.0-beta1",
"version": "7.0.0",
"description": "cool-js.com 任务与队列",
"main": "dist/index.js",
"typings": "index.d.ts",
@ -28,7 +28,7 @@
"url": "https://cool-js.com"
},
"devDependencies": {
"@cool-midway/core": "7.0.0-beta3",
"@cool-midway/core": "^7.0.0",
"@midwayjs/cli": "^2.0.9",
"@midwayjs/core": "^3.9.0",
"@midwayjs/decorator": "^3.9.0",

27
task/src/README.md Normal file
View File

@ -0,0 +1,27 @@
### COOL-ADMIN
cool-admin一个很酷的后台权限管理系统开源免费模块化、插件化、极速开发CRUD方便快速构建迭代后台管理系统
大数据、微服务、AI编码快速开发
### 技术栈
- 后端node.js midway.js koa.js mysql typescript
- 前端vue.js element-plus jsx pinia vue-router
### 官网
[https://cool-js.com](https://cool-js.com)
### 演示地址
[https://show.cool-admin.com](https://show.cool-admin.com)
- 账户admin
- 密码123456
### 项目地址
[https://github.com/cool-team-official/cool-admin-midway](https://github.com/cool-team-official/cool-admin-midway)

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/task",
"version": "7.0.0-beta1",
"version": "7.0.0",
"description": "cool-js.com 任务与队列",
"main": "index.js",
"typings": "index.d.ts",
@ -28,7 +28,7 @@
"url": "https://cool-js.com"
},
"devDependencies": {
"@cool-midway/core": "7.0.0-beta3",
"@cool-midway/core": "^7.0.0",
"@midwayjs/cli": "^2.0.9",
"@midwayjs/core": "^3.9.0",
"@midwayjs/decorator": "^3.9.0",