Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
saqqdy committed Apr 7, 2022
2 parents 9dd8fbd + ab05703 commit 748f9b0
Show file tree
Hide file tree
Showing 123 changed files with 701 additions and 744 deletions.
24 changes: 8 additions & 16 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
const { simpleTs: config } = require('eslint-config-sets')
const { extend } = require('js-cool')

module.exports = extend(true, config, {
// plugins: [...(config.plugins || []), 'prettier'],
module.exports = {
extends: ['@eslint-sets/vue3-ts'],
rules: {
camelcase: 1,
'no-labels': 1,
indent: [2, 4, { SwitchCase: 1 }]
},
globals: {
__DEV_MODEL__: true,
__DEV__: true,
__QA__: true,
__YZ__: true,
__DEMO__: true,
__PROD__: true
},
rules: {
'no-unused-vars': 0,
'@typescript-eslint/no-unused-vars': [
1,
{
argsIgnorePattern: '^h$',
varsIgnorePattern: '^h$'
}
]
}
})
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
"cSpell.words": [
"addr",
"apollo",
"applypatch",
"argv",
"axios",
"bak",
"btns",
"bugfix",
"calc",
"camelcase",
"cdup",
"cfg",
"chdir",
Expand Down Expand Up @@ -77,6 +79,7 @@
"req",
"resize",
"saqqdy",
"sendemail",
"sep",
"stderr",
"stdout",
Expand Down
9 changes: 4 additions & 5 deletions bin/conf/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,13 +312,12 @@ import type { GitmarsMultiOptionType } from '../../typings'
}

/* istanbul ignore next */
if (typeof exports === 'object' && typeof module === 'object')
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = cmdConfig
// else if (typeof define === 'function' && define.amd) define(['cmdConfig'], () => cmdConfig)
else if (typeof exports === 'object') exports['cmdConfig'] = cmdConfig
} else if (typeof exports === 'object') exports.cmdConfig = cmdConfig
else {
if (!root.gitmarsCmdConfig) root.gitmarsCmdConfig = {}
root.gitmarsCmdConfig['admin'] = cmdConfig
root.gitmarsCmdConfig.admin = cmdConfig
}
//@ts-ignore
// @ts-ignore
})(typeof window !== 'undefined' ? window : global)
9 changes: 4 additions & 5 deletions bin/conf/alias.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,12 @@ import type { GitmarsOptionType } from '../../typings'
}

/* istanbul ignore next */
if (typeof exports === 'object' && typeof module === 'object')
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = cmdConfig
// else if (typeof define === 'function' && define.amd) define(['cmdConfig'], () => cmdConfig)
else if (typeof exports === 'object') exports['cmdConfig'] = cmdConfig
} else if (typeof exports === 'object') exports.cmdConfig = cmdConfig
else {
if (!root.gitmarsCmdConfig) root.gitmarsCmdConfig = {}
root.gitmarsCmdConfig['alias'] = cmdConfig
root.gitmarsCmdConfig.alias = cmdConfig
}
//@ts-ignore
// @ts-ignore
})(typeof window !== 'undefined' ? window : global)
9 changes: 4 additions & 5 deletions bin/conf/approve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,12 @@ import type { GitmarsOptionType } from '../../typings'
}

/* istanbul ignore next */
if (typeof exports === 'object' && typeof module === 'object')
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = cmdConfig
// else if (typeof define === 'function' && define.amd) define(['cmdConfig'], () => cmdConfig)
else if (typeof exports === 'object') exports['cmdConfig'] = cmdConfig
} else if (typeof exports === 'object') exports.cmdConfig = cmdConfig
else {
if (!root.gitmarsCmdConfig) root.gitmarsCmdConfig = {}
root.gitmarsCmdConfig['approve'] = cmdConfig
root.gitmarsCmdConfig.approve = cmdConfig
}
//@ts-ignore
// @ts-ignore
})(typeof window !== 'undefined' ? window : global)
9 changes: 4 additions & 5 deletions bin/conf/branch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,12 @@ import type { GitmarsOptionType } from '../../typings'
}

/* istanbul ignore next */
if (typeof exports === 'object' && typeof module === 'object')
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = cmdConfig
// else if (typeof define === 'function' && define.amd) define(['cmdConfig'], () => cmdConfig)
else if (typeof exports === 'object') exports['cmdConfig'] = cmdConfig
} else if (typeof exports === 'object') exports.cmdConfig = cmdConfig
else {
if (!root.gitmarsCmdConfig) root.gitmarsCmdConfig = {}
root.gitmarsCmdConfig['branch'] = cmdConfig
root.gitmarsCmdConfig.branch = cmdConfig
}
//@ts-ignore
// @ts-ignore
})(typeof window !== 'undefined' ? window : global)
9 changes: 4 additions & 5 deletions bin/conf/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,12 @@ import type { GitmarsOptionType } from '../../typings'
}

/* istanbul ignore next */
if (typeof exports === 'object' && typeof module === 'object')
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = cmdConfig
// else if (typeof define === 'function' && define.amd) define(['cmdConfig'], () => cmdConfig)
else if (typeof exports === 'object') exports['cmdConfig'] = cmdConfig
} else if (typeof exports === 'object') exports.cmdConfig = cmdConfig
else {
if (!root.gitmarsCmdConfig) root.gitmarsCmdConfig = {}
root.gitmarsCmdConfig['build'] = cmdConfig
root.gitmarsCmdConfig.build = cmdConfig
}
//@ts-ignore
// @ts-ignore
})(typeof window !== 'undefined' ? window : global)
9 changes: 4 additions & 5 deletions bin/conf/clean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,12 @@ import type { GitmarsOptionType } from '../../typings'
}

/* istanbul ignore next */
if (typeof exports === 'object' && typeof module === 'object')
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = cmdConfig
// else if (typeof define === 'function' && define.amd) define(['cmdConfig'], () => cmdConfig)
else if (typeof exports === 'object') exports['cmdConfig'] = cmdConfig
} else if (typeof exports === 'object') exports.cmdConfig = cmdConfig
else {
if (!root.gitmarsCmdConfig) root.gitmarsCmdConfig = {}
root.gitmarsCmdConfig['clean'] = cmdConfig
root.gitmarsCmdConfig.clean = cmdConfig
}
//@ts-ignore
// @ts-ignore
})(typeof window !== 'undefined' ? window : global)
9 changes: 4 additions & 5 deletions bin/conf/cleanbranch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,12 @@ import type { GitmarsOptionType } from '../../typings'
}

/* istanbul ignore next */
if (typeof exports === 'object' && typeof module === 'object')
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = cmdConfig
// else if (typeof define === 'function' && define.amd) define(['cmdConfig'], () => cmdConfig)
else if (typeof exports === 'object') exports['cmdConfig'] = cmdConfig
} else if (typeof exports === 'object') exports.cmdConfig = cmdConfig
else {
if (!root.gitmarsCmdConfig) root.gitmarsCmdConfig = {}
root.gitmarsCmdConfig['cleanbranch'] = cmdConfig
root.gitmarsCmdConfig.cleanbranch = cmdConfig
}
//@ts-ignore
// @ts-ignore
})(typeof window !== 'undefined' ? window : global)
9 changes: 4 additions & 5 deletions bin/conf/combine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,12 @@ import type { GitmarsOptionType } from '../../typings'
}

/* istanbul ignore next */
if (typeof exports === 'object' && typeof module === 'object')
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = cmdConfig
// else if (typeof define === 'function' && define.amd) define(['cmdConfig'], () => cmdConfig)
else if (typeof exports === 'object') exports['cmdConfig'] = cmdConfig
} else if (typeof exports === 'object') exports.cmdConfig = cmdConfig
else {
if (!root.gitmarsCmdConfig) root.gitmarsCmdConfig = {}
root.gitmarsCmdConfig['combine'] = cmdConfig
root.gitmarsCmdConfig.combine = cmdConfig
}
//@ts-ignore
// @ts-ignore
})(typeof window !== 'undefined' ? window : global)
9 changes: 4 additions & 5 deletions bin/conf/continue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ import type { GitmarsOptionType } from '../../typings'
}

/* istanbul ignore next */
if (typeof exports === 'object' && typeof module === 'object')
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = cmdConfig
// else if (typeof define === 'function' && define.amd) define(['cmdConfig'], () => cmdConfig)
else if (typeof exports === 'object') exports['cmdConfig'] = cmdConfig
} else if (typeof exports === 'object') exports.cmdConfig = cmdConfig
else {
if (!root.gitmarsCmdConfig) root.gitmarsCmdConfig = {}
root.gitmarsCmdConfig['continue'] = cmdConfig
root.gitmarsCmdConfig.continue = cmdConfig
}
//@ts-ignore
// @ts-ignore
})(typeof window !== 'undefined' ? window : global)
9 changes: 4 additions & 5 deletions bin/conf/copy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,12 @@ import type { GitmarsOptionType } from '../../typings'
}

/* istanbul ignore next */
if (typeof exports === 'object' && typeof module === 'object')
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = cmdConfig
// else if (typeof define === 'function' && define.amd) define(['cmdConfig'], () => cmdConfig)
else if (typeof exports === 'object') exports['cmdConfig'] = cmdConfig
} else if (typeof exports === 'object') exports.cmdConfig = cmdConfig
else {
if (!root.gitmarsCmdConfig) root.gitmarsCmdConfig = {}
root.gitmarsCmdConfig['copy'] = cmdConfig
root.gitmarsCmdConfig.copy = cmdConfig
}
//@ts-ignore
// @ts-ignore
})(typeof window !== 'undefined' ? window : global)
9 changes: 4 additions & 5 deletions bin/conf/end.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,12 @@ import type { GitmarsOptionType } from '../../typings'
}

/* istanbul ignore next */
if (typeof exports === 'object' && typeof module === 'object')
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = cmdConfig
// else if (typeof define === 'function' && define.amd) define(['cmdConfig'], () => cmdConfig)
else if (typeof exports === 'object') exports['cmdConfig'] = cmdConfig
} else if (typeof exports === 'object') exports.cmdConfig = cmdConfig
else {
if (!root.gitmarsCmdConfig) root.gitmarsCmdConfig = {}
root.gitmarsCmdConfig['end'] = cmdConfig
root.gitmarsCmdConfig.end = cmdConfig
}
//@ts-ignore
// @ts-ignore
})(typeof window !== 'undefined' ? window : global)
9 changes: 4 additions & 5 deletions bin/conf/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,12 @@ import type { GitmarsOptionType } from '../../typings'
}

/* istanbul ignore next */
if (typeof exports === 'object' && typeof module === 'object')
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = cmdConfig
// else if (typeof define === 'function' && define.amd) define(['cmdConfig'], () => cmdConfig)
else if (typeof exports === 'object') exports['cmdConfig'] = cmdConfig
} else if (typeof exports === 'object') exports.cmdConfig = cmdConfig
else {
if (!root.gitmarsCmdConfig) root.gitmarsCmdConfig = {}
root.gitmarsCmdConfig['get'] = cmdConfig
root.gitmarsCmdConfig.get = cmdConfig
}
//@ts-ignore
// @ts-ignore
})(typeof window !== 'undefined' ? window : global)
9 changes: 4 additions & 5 deletions bin/conf/go.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,12 @@ import type { GitmarsOptionType } from '../../typings'
}

/* istanbul ignore next */
if (typeof exports === 'object' && typeof module === 'object')
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = cmdConfig
// else if (typeof define === 'function' && define.amd) define(['cmdConfig'], () => cmdConfig)
else if (typeof exports === 'object') exports['cmdConfig'] = cmdConfig
} else if (typeof exports === 'object') exports.cmdConfig = cmdConfig
else {
if (!root.gitmarsCmdConfig) root.gitmarsCmdConfig = {}
root.gitmarsCmdConfig['go'] = cmdConfig
root.gitmarsCmdConfig.go = cmdConfig
}
//@ts-ignore
// @ts-ignore
})(typeof window !== 'undefined' ? window : global)
9 changes: 4 additions & 5 deletions bin/conf/hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,12 @@ import type { GitmarsOptionType } from '../../typings'
}

/* istanbul ignore next */
if (typeof exports === 'object' && typeof module === 'object')
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = cmdConfig
// else if (typeof define === 'function' && define.amd) define(['cmdConfig'], () => cmdConfig)
else if (typeof exports === 'object') exports['cmdConfig'] = cmdConfig
} else if (typeof exports === 'object') exports.cmdConfig = cmdConfig
else {
if (!root.gitmarsCmdConfig) root.gitmarsCmdConfig = {}
root.gitmarsCmdConfig['hook'] = cmdConfig
root.gitmarsCmdConfig.hook = cmdConfig
}
//@ts-ignore
// @ts-ignore
})(typeof window !== 'undefined' ? window : global)
9 changes: 4 additions & 5 deletions bin/conf/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,12 @@ import type { GitmarsOptionType } from '../../typings'
}

/* istanbul ignore next */
if (typeof exports === 'object' && typeof module === 'object')
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = cmdConfig
// else if (typeof define === 'function' && define.amd) define(['cmdConfig'], () => cmdConfig)
else if (typeof exports === 'object') exports['cmdConfig'] = cmdConfig
} else if (typeof exports === 'object') exports.cmdConfig = cmdConfig
else {
if (!root.gitmarsCmdConfig) root.gitmarsCmdConfig = {}
root.gitmarsCmdConfig['link'] = cmdConfig
root.gitmarsCmdConfig.link = cmdConfig
}
//@ts-ignore
// @ts-ignore
})(typeof window !== 'undefined' ? window : global)
9 changes: 4 additions & 5 deletions bin/conf/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,12 @@ import type { GitmarsOptionType } from '../../typings'
}

/* istanbul ignore next */
if (typeof exports === 'object' && typeof module === 'object')
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = cmdConfig
// else if (typeof define === 'function' && define.amd) define(['cmdConfig'], () => cmdConfig)
else if (typeof exports === 'object') exports['cmdConfig'] = cmdConfig
} else if (typeof exports === 'object') exports.cmdConfig = cmdConfig
else {
if (!root.gitmarsCmdConfig) root.gitmarsCmdConfig = {}
root.gitmarsCmdConfig['log'] = cmdConfig
root.gitmarsCmdConfig.log = cmdConfig
}
//@ts-ignore
// @ts-ignore
})(typeof window !== 'undefined' ? window : global)
9 changes: 4 additions & 5 deletions bin/conf/postmsg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,12 @@ import type { GitmarsOptionType } from '../../typings'
}

/* istanbul ignore next */
if (typeof exports === 'object' && typeof module === 'object')
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = cmdConfig
// else if (typeof define === 'function' && define.amd) define(['cmdConfig'], () => cmdConfig)
else if (typeof exports === 'object') exports['cmdConfig'] = cmdConfig
} else if (typeof exports === 'object') exports.cmdConfig = cmdConfig
else {
if (!root.gitmarsCmdConfig) root.gitmarsCmdConfig = {}
root.gitmarsCmdConfig['postmsg'] = cmdConfig
root.gitmarsCmdConfig.postmsg = cmdConfig
}
//@ts-ignore
// @ts-ignore
})(typeof window !== 'undefined' ? window : global)
9 changes: 4 additions & 5 deletions bin/conf/redo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,12 @@ import type { GitmarsOptionType } from '../../typings'
}

/* istanbul ignore next */
if (typeof exports === 'object' && typeof module === 'object')
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = cmdConfig
// else if (typeof define === 'function' && define.amd) define(['cmdConfig'], () => cmdConfig)
else if (typeof exports === 'object') exports['cmdConfig'] = cmdConfig
} else if (typeof exports === 'object') exports.cmdConfig = cmdConfig
else {
if (!root.gitmarsCmdConfig) root.gitmarsCmdConfig = {}
root.gitmarsCmdConfig['redo'] = cmdConfig
root.gitmarsCmdConfig.redo = cmdConfig
}
//@ts-ignore
// @ts-ignore
})(typeof window !== 'undefined' ? window : global)
9 changes: 4 additions & 5 deletions bin/conf/revert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,12 @@ import type { GitmarsOptionType } from '../../typings'
}

/* istanbul ignore next */
if (typeof exports === 'object' && typeof module === 'object')
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = cmdConfig
// else if (typeof define === 'function' && define.amd) define(['cmdConfig'], () => cmdConfig)
else if (typeof exports === 'object') exports['cmdConfig'] = cmdConfig
} else if (typeof exports === 'object') exports.cmdConfig = cmdConfig
else {
if (!root.gitmarsCmdConfig) root.gitmarsCmdConfig = {}
root.gitmarsCmdConfig['revert'] = cmdConfig
root.gitmarsCmdConfig.revert = cmdConfig
}
//@ts-ignore
// @ts-ignore
})(typeof window !== 'undefined' ? window : global)
Loading

0 comments on commit 748f9b0

Please sign in to comment.