mirror of https://github.com/1Panel-dev/1Panel
feat: Optimize style and description (#7378)
parent
198e78e0b4
commit
f58ed5614e
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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',
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue