Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Jun 4, 2022
1 parent 5f3cca7 commit 2a36dca
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 35 deletions.
6 changes: 5 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ module.exports = {
parserOptions: {
"ecmaVersion": 2020
},
globals: {
XEUtils: true
},
rules: {
'no-console': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off'
}
}
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/xe-utils/favicon.ico><meta name=description content="xe-utils 函数库、工具类,vxe-table 表格解决方案."><title>xe-utils 函数库、工具类</title><script>var _hmt=_hmt||[];(function(){if(location.host.indexOf("localhost")===-1){var b=document.createElement("script");b.src="https://hm.baidu.com/hm.js?bb92c84d2dff18210f9be4cf2aa28fee";b.onload=function(){_hmt.push(["_requirePlugin","UrlChangeTracker",{shouldTrackUrlChange:function(c,d){return c&&d}}])};var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(b,a)}})();</script><link href=/xe-utils/static/css/app.50991301.css rel=preload as=style><link href=/xe-utils/static/css/chunk-vendors.42851454.css rel=preload as=style><link href=/xe-utils/static/js/app.1e5d287a.js rel=preload as=script><link href=/xe-utils/static/js/chunk-vendors.8cc45737.js rel=preload as=script><link href=/xe-utils/static/css/chunk-vendors.42851454.css rel=stylesheet><link href=/xe-utils/static/css/app.50991301.css rel=stylesheet></head><body><noscript><strong>We're sorry but xe-utils doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=https://cdn.jsdelivr.net/npm/xe-utils></script><script src=https://cdn.jsdelivr.net/npm/xe-ajax></script><script src=https://cdn.jsdelivr.net/npm/xe-clipboard></script><script src=/xe-utils/static/js/chunk-vendors.8cc45737.js></script><script src=/xe-utils/static/js/app.1e5d287a.js></script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/xe-utils/favicon.ico"><meta name="description" content="xe-utils 函数库、工具类,vxe-table 表格解决方案."><title>xe-utils 函数库、工具类</title><script>var _hmt=_hmt||[];(function(){if(location.host.indexOf("localhost")===-1){var b=document.createElement("script");b.src="https://hm.baidu.com/hm.js?bb92c84d2dff18210f9be4cf2aa28fee";b.onload=function(){_hmt.push(["_requirePlugin","UrlChangeTracker",{shouldTrackUrlChange:function(c,d){return c&&d}}])};var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(b,a)}})();</script><link href="/xe-utils/static/css/app.d4f92e3d.css" rel="preload" as="style"><link href="/xe-utils/static/css/chunk-vendors.42851454.css" rel="preload" as="style"><link href="/xe-utils/static/js/app.d84e54c2.js" rel="preload" as="script"><link href="/xe-utils/static/js/chunk-vendors.81bac7f4.js" rel="preload" as="script"><link href="/xe-utils/static/css/chunk-vendors.42851454.css" rel="stylesheet"><link href="/xe-utils/static/css/app.d4f92e3d.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but xe-utils doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="https://cdn.jsdelivr.net/npm/xe-utils"></script><script src="https://cdn.jsdelivr.net/npm/xe-ajax"></script><script src="https://cdn.jsdelivr.net/npm/xe-clipboard"></script><script src="/xe-utils/static/js/chunk-vendors.81bac7f4.js"></script><script src="/xe-utils/static/js/app.d84e54c2.js"></script></body></html>
1 change: 0 additions & 1 deletion docs/static/css/app.50991301.css

This file was deleted.

1 change: 1 addition & 0 deletions docs/static/css/app.d4f92e3d.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion docs/static/js/app.1e5d287a.js

This file was deleted.

1 change: 1 addition & 0 deletions docs/static/js/app.d84e54c2.js

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions docs/static/js/chunk-vendors.81bac7f4.js

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions docs/static/js/chunk-vendors.8cc45737.js

This file was deleted.

30 changes: 14 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
"test": "npm run lib && jest"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^2.33.0",
"@typescript-eslint/parser": "^2.33.0",
"@vue/cli-plugin-babel": "~4.4.0",
"@vue/cli-plugin-eslint": "~4.4.0",
"@vue/cli-plugin-router": "~4.4.0",
"@vue/cli-plugin-typescript": "~4.4.0",
"@vue/cli-plugin-vuex": "~4.4.0",
"@vue/cli-service": "~4.4.0",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-plugin-router": "~4.5.0",
"@vue/cli-plugin-typescript": "~4.5.0",
"@vue/cli-plugin-vuex": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"@vue/eslint-config-standard": "^5.1.2",
"@vue/eslint-config-typescript": "^5.0.2",
"@vue/eslint-config-typescript": "^7.0.0",
"core-js": "^3.6.5",
"gulp": "^4.0.2",
"gulp-autoprefixer": "^6.1.0",
Expand All @@ -44,16 +44,14 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"eslint-plugin-vue": "^6.2.2",
"node-sass": "^4.12.0",
"sass-loader": "^8.0.2",
"eslint-plugin-vue": "^7.0.0",
"sass": "^1.52.1",
"sass-loader": "^10.0.5",
"typescript": "~3.9.3",
"vue": "^2.6.11",
"vue-class-component": "^7.2.3",
"vue-property-decorator": "^8.4.2",
"vue": "^2.6.14",
"vue-router": "^3.2.0",
"vuex": "^3.4.0",
"vue-template-compiler": "^2.6.11"
"vue-template-compiler": "^2.6.14"
},
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions src/views/API.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3365,8 +3365,8 @@ export default {
if (this.filterName) {
const filterName = this.filterName.toLowerCase()
const filterRE = new RegExp(filterName, 'gi')
const list = window.XEUtils.searchTree(this.list, item => (item.name || '').toLowerCase().indexOf(filterName) > -1 || (item.title || '').toLowerCase().indexOf(filterName) > -1, { children: 'children' })
window.XEUtils.eachTree(list, item => {
const list = XEUtils.searchTree(this.list, item => (item.name || '').toLowerCase().indexOf(filterName) > -1 || (item.title || '').toLowerCase().indexOf(filterName) > -1, { children: 'children' })
XEUtils.eachTree(list, item => {
item.name = (item.name || '').replace(filterRE, match => `<span class="keyword-lighten">${match}</span>`)
item.title = (item.title || '').replace(filterRE, match => `<span class="keyword-lighten">${match}</span>`)
}, { children: 'children' })
Expand All @@ -3389,7 +3389,7 @@ export default {
},
created () {
let id = 1
window.XEUtils.eachTree(this.apiList, item => {
XEUtils.eachTree(this.apiList, item => {
item.id = id++
})
this.selected = this.apiList[0].children[0]
Expand Down

0 comments on commit 2a36dca

Please sign in to comment.