feat: Optimize style and description (#7378)

pull/7381/head
2024-12-16 22:16:10 +08:00 committed by GitHub
parent 198e78e0b4
commit f58ed5614e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 13 additions and 8 deletions

View File

@ -24555,7 +24555,7 @@ const docTemplate = `{
}, },
"securityDefinitions": { "securityDefinitions": {
"ApiKeyAuth": { "ApiKeyAuth": {
"description": "Custom Token Format, Format: md5('1panel' + 1Panel-Token + 1Panel-Timestamp).\n` + "`" + `` + "`" + `` + "`" + `\neg:\ncurl -X GET \"http://localhost:4004/api/v1/resource\" \\\n-H \"1Panel-Token: \u003c1panel_token\u003e\" \\\n-H \"1Panel-Timestamp: \u003ccurrent_unix_timestamp\u003e\"\n` + "`" + `` + "`" + `` + "`" + `\n- ` + "`" + `1Panel-Token` + "`" + ` is the key for the panel API interface.", "description": "Custom Token Format, Format: md5('1panel' + API-Key + UnixTimestamp).\n` + "`" + `` + "`" + `` + "`" + `\neg:\ncurl -X GET \"http://localhost:4004/api/v1/resource\" \\\n-H \"1Panel-Token: \u003c1panel_token\u003e\" \\\n-H \"1Panel-Timestamp: \u003ccurrent_unix_timestamp\u003e\"\n` + "`" + `` + "`" + `` + "`" + `\n- ` + "`" + `1Panel-Token` + "`" + ` is the key for the panel API Key.",
"type": "apiKey", "type": "apiKey",
"name": "1Panel-Token", "name": "1Panel-Token",
"in": "Header" "in": "Header"

View File

@ -24552,7 +24552,7 @@
}, },
"securityDefinitions": { "securityDefinitions": {
"ApiKeyAuth": { "ApiKeyAuth": {
"description": "Custom Token Format, Format: md5('1panel' + 1Panel-Token + 1Panel-Timestamp).\n```\neg:\ncurl -X GET \"http://localhost:4004/api/v1/resource\" \\\n-H \"1Panel-Token: \u003c1panel_token\u003e\" \\\n-H \"1Panel-Timestamp: \u003ccurrent_unix_timestamp\u003e\"\n```\n- `1Panel-Token` is the key for the panel API interface.", "description": "Custom Token Format, Format: md5('1panel' + API-Key + UnixTimestamp).\n```\neg:\ncurl -X GET \"http://localhost:4004/api/v1/resource\" \\\n-H \"1Panel-Token: \u003c1panel_token\u003e\" \\\n-H \"1Panel-Timestamp: \u003ccurrent_unix_timestamp\u003e\"\n```\n- `1Panel-Token` is the key for the panel API Key.",
"type": "apiKey", "type": "apiKey",
"name": "1Panel-Token", "name": "1Panel-Token",
"in": "Header" "in": "Header"

View File

@ -15377,14 +15377,14 @@ schemes:
securityDefinitions: securityDefinitions:
ApiKeyAuth: ApiKeyAuth:
description: |- description: |-
Custom Token Format, Format: md5('1panel' + 1Panel-Token + 1Panel-Timestamp). Custom Token Format, Format: md5('1panel' + API-Key + UnixTimestamp).
``` ```
eg: eg:
curl -X GET "http://localhost:4004/api/v1/resource" \ curl -X GET "http://localhost:4004/api/v1/resource" \
-H "1Panel-Token: <1panel_token>" \ -H "1Panel-Token: <1panel_token>" \
-H "1Panel-Timestamp: <current_unix_timestamp>" -H "1Panel-Timestamp: <current_unix_timestamp>"
``` ```
- `1Panel-Token` is the key for the panel API interface. - `1Panel-Token` is the key for the panel API Key.
in: Header in: Header
name: 1Panel-Token name: 1Panel-Token
type: apiKey type: apiKey

View File

@ -19,14 +19,14 @@ import (
// @schemes http https // @schemes http https
// @securityDefinitions.apikey ApiKeyAuth // @securityDefinitions.apikey ApiKeyAuth
// @description Custom Token Format, Format: md5('1panel' + 1Panel-Token + 1Panel-Timestamp). // @description Custom Token Format, Format: md5('1panel' + API-Key + UnixTimestamp).
// @description ``` // @description ```
// @description eg: // @description eg:
// @description curl -X GET "http://localhost:4004/api/v1/resource" \ // @description curl -X GET "http://localhost:4004/api/v1/resource" \
// @description -H "1Panel-Token: <1panel_token>" \ // @description -H "1Panel-Token: <1panel_token>" \
// @description -H "1Panel-Timestamp: <current_unix_timestamp>" // @description -H "1Panel-Timestamp: <current_unix_timestamp>"
// @description ``` // @description ```
// @description - `1Panel-Token` is the key for the panel API interface. // @description - `1Panel-Token` is the key for the panel API Key.
// @type apiKey // @type apiKey
// @in Header // @in Header
// @name 1Panel-Token // @name 1Panel-Token

View File

@ -1425,7 +1425,7 @@ const message = {
apiInterfaceAlert2: `Don't use third-party applications to call the API to prevent potential security threats.`, apiInterfaceAlert2: `Don't use third-party applications to call the API to prevent potential security threats.`,
apiInterfaceAlert3: 'API Docs', apiInterfaceAlert3: 'API Docs',
apiInterfaceAlert4: 'Usage Docs', apiInterfaceAlert4: 'Usage Docs',
apiKey: 'Interface key', apiKey: 'API key',
apiKeyHelper: 'API key is used for third-party applications to access the API.', apiKeyHelper: 'API key is used for third-party applications to access the API.',
ipWhiteList: 'IP allowlist', ipWhiteList: 'IP allowlist',
ipWhiteListEgs: 'One per line. For example,\n172.161.10.111\n172.161.10.0/24', ipWhiteListEgs: 'One per line. For example,\n172.161.10.111\n172.161.10.0/24',

View File

@ -157,9 +157,14 @@ html.dark {
border-bottom-color: var(--panel-color-primary); border-bottom-color: var(--panel-color-primary);
--el-text-color-regular: var(--panel-color-primary); --el-text-color-regular: var(--panel-color-primary);
} }
.main-container {
.el-loading-mask {
background-color: #24263375;
}
}
.el-loading-mask { .el-loading-mask {
background-color: #24263375; background-color: #5b5e6a75;
} }
.el-input { .el-input {