pull/4512/head
mobeicanyue 8 months ago committed by GitHub
parent c055a07e57
commit f4ee534101
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -370,7 +370,7 @@ func (b *BaseApi) ChangeDefaultServer(c *gin.Context) {
} }
// @Tags Website // @Tags Website
// @Summary Load websit php conf // @Summary Load website php conf
// @Description 获取网站 php 配置 // @Description 获取网站 php 配置
// @Accept json // @Accept json
// @Param id path integer true "request" // @Param id path integer true "request"

@ -131,7 +131,7 @@ type MysqlStatus struct {
} }
type MysqlVariables struct { type MysqlVariables struct {
BinlogCachSize string `json:"binlog_cache_size"` BinlogCacheSize string `json:"binlog_cache_size"`
InnodbBufferPoolSize string `json:"innodb_buffer_pool_size"` InnodbBufferPoolSize string `json:"innodb_buffer_pool_size"`
InnodbLogBufferSize string `json:"innodb_log_buffer_size"` InnodbLogBufferSize string `json:"innodb_log_buffer_size"`
JoinBufferSize string `json:"join_buffer_size"` JoinBufferSize string `json:"join_buffer_size"`

@ -1954,7 +1954,7 @@ func (w WebsiteService) UpdateAntiLeech(req request.NginxAntiLeechUpdate) (err e
Parameters: []string{"off"}, Parameters: []string{"off"},
}) })
validDir := &components.Directive{ validDir := &components.Directive{
Name: "valid_referers", Name: "valid_referrers",
Parameters: []string{}, Parameters: []string{},
} }
if req.NoneRef { if req.NoneRef {
@ -2023,7 +2023,7 @@ func (w WebsiteService) GetAntiLeech(id uint) (*response.NginxAntiLeechRes, erro
} }
lDirectives := location.GetBlock().GetDirectives() lDirectives := location.GetBlock().GetDirectives()
for _, lDir := range lDirectives { for _, lDir := range lDirectives {
if lDir.GetName() == "valid_referers" { if lDir.GetName() == "valid_referrers" {
res.Enable = true res.Enable = true
params := lDir.GetParameters() params := lDir.GetParameters()
for _, param := range params { for _, param := range params {

@ -13032,7 +13032,7 @@ const docTemplate = `{
"tags": [ "tags": [
"Website" "Website"
], ],
"summary": "Load websit php conf", "summary": "Load website php conf",
"parameters": [ "parameters": [
{ {
"type": "integer", "type": "integer",

@ -13025,7 +13025,7 @@
"tags": [ "tags": [
"Website" "Website"
], ],
"summary": "Load websit php conf", "summary": "Load website php conf",
"parameters": [ "parameters": [
{ {
"type": "integer", "type": "integer",

@ -13282,7 +13282,7 @@ paths:
$ref: '#/definitions/response.PHPConfig' $ref: '#/definitions/response.PHPConfig'
security: security:
- ApiKeyAuth: [] - ApiKeyAuth: []
summary: Load websit php conf summary: Load website php conf
tags: tags:
- Website - Website
/websites/php/update: /websites/php/update:

@ -1144,7 +1144,7 @@ const message = {
ignoreCertificateHelper: ignoreCertificateHelper:
'Ignoring untrusted certificates during downloads may lead to data leakage or tampering. Please use this option with caution, only when trusting the download source.', 'Ignoring untrusted certificates during downloads may lead to data leakage or tampering. Please use this option with caution, only when trusting the download source.',
uploadOverLimit: 'The number of files exceeds 1000! Please compress and upload', uploadOverLimit: 'The number of files exceeds 1000! Please compress and upload',
clashDitNotSuppport: 'File names are prohibited from containing .1panel_clash', clashDitNotSupport: 'File names are prohibited from containing .1panel_clash',
clashDeleteAlert: 'The Recycle Bin folder cannot be deleted', clashDeleteAlert: 'The Recycle Bin folder cannot be deleted',
clashOpenAlert: 'Please click the [Recycle Bin] button to open the recycle bin directory', clashOpenAlert: 'Please click the [Recycle Bin] button to open the recycle bin directory',
}, },

@ -1088,7 +1088,7 @@ const message = {
ignoreCertificateHelper: ignoreCertificateHelper:
'使', '使',
uploadOverLimit: ' 1000 ', uploadOverLimit: ' 1000 ',
clashDitNotSuppport: ' .1panel_clash', clashDitNotSupport: ' .1panel_clash',
clashDleteAlert: '', clashDleteAlert: '',
clashOpenAlert: '', clashOpenAlert: '',
}, },

@ -1089,7 +1089,7 @@ const message = {
ignoreCertificateHelper: ignoreCertificateHelper:
'使', '使',
uploadOverLimit: ' 1000', uploadOverLimit: ' 1000',
clashDitNotSuppport: ' .1panel_clash', clashDitNotSupport: ' .1panel_clash',
clashDleteAlert: '', clashDleteAlert: '',
clashOpenAlert: '', clashOpenAlert: '',
}, },

@ -121,7 +121,7 @@ const submit = async (formEl: FormInstance | undefined) => {
return; return;
} }
if (getPath.value.indexOf('.1panel_clash') > -1) { if (getPath.value.indexOf('.1panel_clash') > -1) {
MsgWarning(i18n.global.t('file.clashDitNotSuppport')); MsgWarning(i18n.global.t('file.clashDitNotSupport'));
return; return;
} }

Loading…
Cancel
Save