mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 14:08:06 +08:00
feat: 增加应用商店显示的过滤数量 (#4183)
This commit is contained in:
parent
a3b5869c2b
commit
be36103475
19
frontend/package-lock.json
generated
19
frontend/package-lock.json
generated
@ -65,7 +65,7 @@
|
|||||||
"sass": "^1.49.7",
|
"sass": "^1.49.7",
|
||||||
"standard-version": "^9.5.0",
|
"standard-version": "^9.5.0",
|
||||||
"stylelint": "^15.10.1",
|
"stylelint": "^15.10.1",
|
||||||
"tailwindcss": "^3.3.2",
|
"tailwindcss": "^3.4.1",
|
||||||
"typescript": "^4.5.4",
|
"typescript": "^4.5.4",
|
||||||
"unplugin-auto-import": "^0.16.4",
|
"unplugin-auto-import": "^0.16.4",
|
||||||
"unplugin-vue-components": "^0.25.0",
|
"unplugin-vue-components": "^0.25.0",
|
||||||
@ -6456,9 +6456,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/jiti": {
|
"node_modules/jiti": {
|
||||||
"version": "1.18.2",
|
"version": "1.21.0",
|
||||||
"resolved": "https://registry.npmjs.org/jiti/-/jiti-1.18.2.tgz",
|
"resolved": "https://registry.npmmirror.com/jiti/-/jiti-1.21.0.tgz",
|
||||||
"integrity": "sha512-QAdOptna2NYiSSpv0O/BwoHBSmz4YhpzJHyi+fnMRTXFjp7B8i/YG5Z8IfusxB1ufjcD2Sre1F3R+nX3fvy7gg==",
|
"integrity": "sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"jiti": "bin/jiti.js"
|
"jiti": "bin/jiti.js"
|
||||||
@ -9769,9 +9769,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/tailwindcss": {
|
"node_modules/tailwindcss": {
|
||||||
"version": "3.3.2",
|
"version": "3.4.1",
|
||||||
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.2.tgz",
|
"resolved": "https://registry.npmmirror.com/tailwindcss/-/tailwindcss-3.4.1.tgz",
|
||||||
"integrity": "sha512-9jPkMiIBXvPc2KywkraqsUfbfj+dHDb+JPWtSJa9MLFdrPyazI7q6WX2sUrm7R9eVR7qqv3Pas7EvQFzxKnI6w==",
|
"integrity": "sha512-qAYmXRfk3ENzuPBakNK0SRrUDipP8NQnEY6772uDhflcQz5EhRdD7JNZxyrFHVQNCwULPBn6FNPp9brpO7ctcA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@alloc/quick-lru": "^5.2.0",
|
"@alloc/quick-lru": "^5.2.0",
|
||||||
@ -9779,10 +9779,10 @@
|
|||||||
"chokidar": "^3.5.3",
|
"chokidar": "^3.5.3",
|
||||||
"didyoumean": "^1.2.2",
|
"didyoumean": "^1.2.2",
|
||||||
"dlv": "^1.1.3",
|
"dlv": "^1.1.3",
|
||||||
"fast-glob": "^3.2.12",
|
"fast-glob": "^3.3.0",
|
||||||
"glob-parent": "^6.0.2",
|
"glob-parent": "^6.0.2",
|
||||||
"is-glob": "^4.0.3",
|
"is-glob": "^4.0.3",
|
||||||
"jiti": "^1.18.2",
|
"jiti": "^1.19.1",
|
||||||
"lilconfig": "^2.1.0",
|
"lilconfig": "^2.1.0",
|
||||||
"micromatch": "^4.0.5",
|
"micromatch": "^4.0.5",
|
||||||
"normalize-path": "^3.0.0",
|
"normalize-path": "^3.0.0",
|
||||||
@ -9794,7 +9794,6 @@
|
|||||||
"postcss-load-config": "^4.0.1",
|
"postcss-load-config": "^4.0.1",
|
||||||
"postcss-nested": "^6.0.1",
|
"postcss-nested": "^6.0.1",
|
||||||
"postcss-selector-parser": "^6.0.11",
|
"postcss-selector-parser": "^6.0.11",
|
||||||
"postcss-value-parser": "^4.2.0",
|
|
||||||
"resolve": "^1.22.2",
|
"resolve": "^1.22.2",
|
||||||
"sucrase": "^3.32.0"
|
"sucrase": "^3.32.0"
|
||||||
},
|
},
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
"sass": "^1.49.7",
|
"sass": "^1.49.7",
|
||||||
"standard-version": "^9.5.0",
|
"standard-version": "^9.5.0",
|
||||||
"stylelint": "^15.10.1",
|
"stylelint": "^15.10.1",
|
||||||
"tailwindcss": "^3.3.2",
|
"tailwindcss": "^3.4.1",
|
||||||
"typescript": "^4.5.4",
|
"typescript": "^4.5.4",
|
||||||
"unplugin-auto-import": "^0.16.4",
|
"unplugin-auto-import": "^0.16.4",
|
||||||
"unplugin-vue-components": "^0.25.0",
|
"unplugin-vue-components": "^0.25.0",
|
||||||
|
1150
frontend/src/assets/json/iso.json
Normal file
1150
frontend/src/assets/json/iso.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -188,5 +188,7 @@
|
|||||||
"Yugoslavia": "南斯拉夫",
|
"Yugoslavia": "南斯拉夫",
|
||||||
"Zaire": "扎伊尔",
|
"Zaire": "扎伊尔",
|
||||||
"Zambia": "赞比亚",
|
"Zambia": "赞比亚",
|
||||||
"Zimbabwe": "津巴布韦"
|
"Zimbabwe": "津巴布韦",
|
||||||
|
"Hong Kong": "中国香港",
|
||||||
|
"Macau": "中国澳门"
|
||||||
}
|
}
|
||||||
|
@ -181,3 +181,79 @@ export const DNSTypes = [
|
|||||||
value: 'Godaddy',
|
value: 'Godaddy',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
export const Fields = [
|
||||||
|
{
|
||||||
|
label: 'URL',
|
||||||
|
value: 'URL',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'IP',
|
||||||
|
value: 'IP',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Header',
|
||||||
|
value: 'Header',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Host',
|
||||||
|
value: 'Host',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
export const Patterns = [
|
||||||
|
{
|
||||||
|
label: i18n.global.t('xpack.waf.contain'),
|
||||||
|
value: 'contain',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: i18n.global.t('xpack.waf.equal'),
|
||||||
|
value: 'eq',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: i18n.global.t('xpack.waf.regex'),
|
||||||
|
value: 'regex',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: i18n.global.t('xpack.waf.notEqual'),
|
||||||
|
value: 'notEq',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
export const HttpCodes = [
|
||||||
|
{
|
||||||
|
label: i18n.global.t('xpack.waf.badReq'),
|
||||||
|
value: 400,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: i18n.global.t('xpack.waf.forbidden'),
|
||||||
|
value: 403,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: i18n.global.t('xpack.waf.noRes'),
|
||||||
|
value: 444,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: i18n.global.t('xpack.waf.serverErr'),
|
||||||
|
value: 500,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
export const Actions = [
|
||||||
|
{
|
||||||
|
label: i18n.global.t('xpack.waf.actionAllow'),
|
||||||
|
value: 'allow',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: i18n.global.t('xpack.waf.deny'),
|
||||||
|
value: 'deny',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: i18n.global.t('xpack.waf.captcha'),
|
||||||
|
value: 'captcha',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: i18n.global.t('xpack.waf.fiveSeconds'),
|
||||||
|
value: 'five_seconds',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
@ -419,6 +419,18 @@ html {
|
|||||||
width: 200px !important;
|
width: 200px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.p-w-100 {
|
||||||
|
width: 100px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.p-w-150 {
|
||||||
|
width: 150px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.p-w-400 {
|
||||||
|
width: 400px !important;
|
||||||
|
}
|
||||||
|
|
||||||
.p-ml-20 {
|
.p-ml-20 {
|
||||||
margin-left: 20px !important;
|
margin-left: 20px !important;
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
>
|
>
|
||||||
{{ $t('app.all') }}
|
{{ $t('app.all') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<div v-for="item in tags.slice(0, 6)" :key="item.key" class="inline">
|
<div v-for="item in tags.slice(0, 7)" :key="item.key" class="inline">
|
||||||
<el-button
|
<el-button
|
||||||
class="tag-button"
|
class="tag-button"
|
||||||
:class="activeTag === item.key ? '' : 'no-active'"
|
:class="activeTag === item.key ? '' : 'no-active'"
|
||||||
@ -38,7 +38,7 @@
|
|||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
<el-dropdown-menu>
|
<el-dropdown-menu>
|
||||||
<el-dropdown-item
|
<el-dropdown-item
|
||||||
v-for="item in tags.slice(6)"
|
v-for="item in tags.slice(7)"
|
||||||
@click="changeTag(item.key)"
|
@click="changeTag(item.key)"
|
||||||
:key="item.key"
|
:key="item.key"
|
||||||
>
|
>
|
||||||
@ -106,7 +106,7 @@
|
|||||||
<div class="app-content">
|
<div class="app-content">
|
||||||
<div class="app-header">
|
<div class="app-header">
|
||||||
<span class="app-title">{{ app.name }}</span>
|
<span class="app-title">{{ app.name }}</span>
|
||||||
<el-text type="success" style="margin-left: 10px" v-if="app.installed">
|
<el-text type="success" class="!ml-2" v-if="app.installed">
|
||||||
{{ $t('app.allReadyInstalled') }}
|
{{ $t('app.allReadyInstalled') }}
|
||||||
</el-text>
|
</el-text>
|
||||||
<el-button
|
<el-button
|
||||||
@ -274,7 +274,7 @@ const changeTag = (key: string) => {
|
|||||||
req.tags = [key];
|
req.tags = [key];
|
||||||
}
|
}
|
||||||
const index = tags.value.findIndex((tag) => tag.key === key);
|
const index = tags.value.findIndex((tag) => tag.key === key);
|
||||||
if (index > 5) {
|
if (index > 6) {
|
||||||
moreTag.value = key;
|
moreTag.value = key;
|
||||||
} else {
|
} else {
|
||||||
moreTag.value = '';
|
moreTag.value = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user