Skip to content

Commit

Permalink
feat(toast): add toast daily-merge compare-version
Browse files Browse the repository at this point in the history
  • Loading branch information
novlan1 committed Feb 19, 2024
1 parent d3b8883 commit 4779939
Show file tree
Hide file tree
Showing 23 changed files with 715 additions and 18,174 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ temp
*.bak

package-lock.json
pnpm-lock.yaml

.env.local

Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"vetur.format.defaultFormatter.scss": "none",
// 开启eslint自动修复js/ts功能
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"cSpell.words": [
"wecom"
Expand Down
67 changes: 67 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,72 @@
# 更新日志

### [1.3.54](https://github.com/novlan1/t-comm/compare/v1.3.53...v1.3.54) (2024-02-19)


### Features 🎉

* **tam:** update sort key ([c363a67](https://github.com/novlan1/t-comm/commit/c363a677959109c740da7aef9e4afa54e2bb92cb))

### [1.3.53](https://github.com/novlan1/t-comm/compare/v1.3.52...v1.3.53) (2024-02-02)


### Features 🎉

* **toast:** add toast ([9e77577](https://github.com/novlan1/t-comm/commit/9e77577d6b56323fa0d1b23f5c1b438c1e1d40ad))

### [1.3.52](https://github.com/novlan1/t-comm/compare/v1.3.51...v1.3.52) (2024-01-30)


### Chore 🚀

* **v-console:** 类型优化 ([643647f](https://github.com/novlan1/t-comm/commit/643647f28442726e582d6f9a0427372270a983cf))


### Documentation 📖

* **debug:** add docs ([7796476](https://github.com/novlan1/t-comm/commit/7796476fdec87a06ec64b271a0f0435d1f6e6117))


### Features 🎉

* **version:** add version ([97cff3c](https://github.com/novlan1/t-comm/commit/97cff3c221be61e58c343b7c698874a049fb78ab))

### [1.3.51](https://github.com/novlan1/t-comm/compare/v1.3.50...v1.3.51) (2024-01-23)


### Features 🎉

* **e-bus:** emit global ebus ([7348c1f](https://github.com/novlan1/t-comm/commit/7348c1ff2ba385e4cc104b6a0d86df9d1f284ba0))

### [1.3.50](https://github.com/novlan1/t-comm/compare/v1.3.49...v1.3.50) (2024-01-23)


### Chore 🚀

* change vscode source.fixAll.eslint to explicit from true ([a31da09](https://github.com/novlan1/t-comm/commit/a31da09bcc2c0da5c175d4dc5f2ba487aaad633f))


### Features 🎉

* **vconsole:** add gen vconsole ([d4885d1](https://github.com/novlan1/t-comm/commit/d4885d14fcae2f0e49d14829db6ac804fb3b14b3))

### [1.3.49](https://github.com/novlan1/t-comm/compare/v1.3.48...v1.3.49) (2024-01-12)


### Documentation 📖

* update readme img ([6f85e5b](https://github.com/novlan1/t-comm/commit/6f85e5bd26995d6552b6ed48ee98307892ab394c))


### Features 🎉

* **daily-merge:** add daily merge ([5900217](https://github.com/novlan1/t-comm/commit/5900217bc582a14db7ff8f8c8b03ca332cb89290))


### Bug Fixes 🐞

* **daily-merge:** fix to confirm logic ([445dff0](https://github.com/novlan1/t-comm/commit/445dff046b051be55947d038acfa7c675e0c4b95))

### [1.3.48](https://github.com/novlan1/t-comm/compare/v1.3.47...v1.3.48) (2024-01-04)


Expand Down
43 changes: 43 additions & 0 deletions docs/zh/daily-merge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[[toc]]

## 引入

```ts
import { dailyMerge } from 't-comm';

// or

import { dailyMerge} from 't-comm/lib/daily-merge/index';
```


## `dailyMerge(param)`


**描述**:<p>每日合并</p>

**参数**


| 参数名 | 类型 | 描述 |
| --- | --- | --- |
| param | <code>object</code> | <p>参数</p> |



**示例**

```ts
dailyMerge({
webhookUrl: 'xx',
appName: 'xx',
projectId: 'xx',
devRoot: 'xx',

baseUrl: 'xx',
repoName: 'xx',
privateToken: 'xx',

isDryRun: false,
})
```
35 changes: 35 additions & 0 deletions docs/zh/v-console.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
```ts
import {
V_CONSOLE_STATE,
genVConsole,
showVConsole,
closeVConsole,
toggleVConsole,
Expand All @@ -16,6 +17,7 @@ import {

import {
V_CONSOLE_STATE,
genVConsole,
showVConsole,
closeVConsole,
toggleVConsole,
Expand All @@ -34,6 +36,39 @@ import {



<a name="genVConsole"></a>

## `genVConsole(params)`


**描述**:<p>生成 v-console
有几种情况:</p>
<ol>
<li>不显示</li>
<li>立即显示</li>
<li>异步判断后,确定是否显示</li>
</ol>

**参数**


| 参数名 | 描述 |
| --- | --- |
| params | <p>参数</p> |



**示例**

```ts
genVConsole({
immediateShow: isShowVConsole === 'true'
|| isTestEnv()
|| noDelay === V_CONSOLE_NO_DELAY.VALUE,
hide: isShowVConsole === 'false' || !!UserInfo.tipUid(),
asyncConfirmFunc: checkIsDevList,
});
```
<a name="showVConsole"></a>

## `showVConsole()`
Expand Down
34 changes: 34 additions & 0 deletions docs/zh/version.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[[toc]]

## 引入

```ts
import { compareVersion } from 't-comm';

// or

import { compareVersion} from 't-comm/lib/version/index';
```


## `compareVersion(v1, v2)`


**描述**:<p>版本比较</p>

**参数**


| 参数名 | 类型 | 描述 |
| --- | --- | --- |
| v1 | <code>string</code> | <p>第一个版本</p> |
| v2 | <code>string</code> | <p>第二个版本</p> |

**返回**: <p>比较结果,1 前者大,-1 后者大,0 二者相同</p>

**示例**

```ts
compareVersion('1.1.1', '1.2.1')
// -1
```
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "t-comm",
"version": "1.3.48",
"version": "1.3.54",
"description": "丰富易用的工具库",
"main": "lib/index.js",
"module": "lib/index.esm.js",
Expand Down Expand Up @@ -78,6 +78,7 @@
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"@rollup/plugin-typescript": "^8.3.0",
"eslint-config-light": "^1.5.1",
"@types/conventional-changelog": "^3.1.1",
"@types/fs-extra": "^9.0.13",
"@types/gulp": "^4.0.9",
Expand All @@ -94,7 +95,6 @@
"docdash": "^1.2.0",
"dotenv": "^16.0.3",
"eslint": "^8.25.0",
"eslint-config-light": "^1.0.4",
"eslint-plugin-jest": "^27.1.1",
"fs-extra": "^10.0.1",
"glob": "^10.3.4",
Expand Down
Loading

0 comments on commit 4779939

Please sign in to comment.