-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
更新 cors form 的正则校验; 修复组件 API 文档菜单展示 (#58)
* 更新 cors form 的正则校验; 修复组件 API 文档菜单展示 * 修复 feature 单元测试 * 添加 license
- Loading branch information
1 parent
795d4d2
commit 6e6adba
Showing
12 changed files
with
378 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/dashboard/apigateway/apigateway/apps/plugin/migrations/0006_auto_20230620_1512.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# | ||
# TencentBlueKing is pleased to support the open source community by making | ||
# 蓝鲸智云 - API 网关(BlueKing - APIGateway) available. | ||
# Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. | ||
# Licensed under the MIT License (the "License"); you may not use this file except | ||
# in compliance with the License. You may obtain a copy of the License at | ||
# | ||
# http://opensource.org/licenses/MIT | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under | ||
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
# either express or implied. See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# We undertake not to change the open source license (MIT license) applicable | ||
# to the current version of the project delivered to anyone in the future. | ||
# | ||
# Generated by Django 3.2.18 on 2023-06-20 07:12 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('plugin', '0005_auto_20230227_2006'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='pluginbinding', | ||
name='scope_type', | ||
field=models.CharField(choices=[('stage', '环境'), ('resource', '资源')], db_index=True, max_length=32), | ||
), | ||
migrations.AlterField( | ||
model_name='pluginconfig', | ||
name='description', | ||
field=models.TextField(blank=True, default=None, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='pluginconfig', | ||
name='description_en', | ||
field=models.TextField(blank=True, default=None, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+13 Bytes
(100%)
src/dashboard/apigateway/apigateway/locale/en/LC_MESSAGES/django.mo
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-06-16 15:48+0800\n" | ||
"POT-Creation-Date: 2023-06-21 15:03+0800\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -1026,21 +1026,25 @@ msgstr "Plugin" | |
msgid "插件绑定" | ||
msgstr "Plugin Binding" | ||
|
||
#: apigateway/apps/plugin/plugin/checker.py:46 | ||
#: apigateway/apps/plugin/plugin/checker.py:53 | ||
#, python-brace-format | ||
msgid "当 'allow_credential' 为 True 时, {key} 不能为 '*'。" | ||
msgstr "{key} cannot be '*' when 'allow_credential' is True." | ||
|
||
#: apigateway/apps/plugin/plugin/checker.py:53 | ||
#: apigateway/apps/plugin/plugin/checker.py:57 | ||
msgid "allow_origins, allow_origins_by_regex 不能同时为空。" | ||
msgstr "" | ||
"allow_origins, allow_origins_by_regex cannot be empty at the same time." | ||
|
||
#: apigateway/apps/plugin/plugin/checker.py:79 | ||
#, python-brace-format | ||
msgid "allow_origins_by_regex 中数据 '{re_rule}' 不是合法的正则表达式。" | ||
msgstr "" | ||
"The '{re_rule}' in allow_origins_by_regex is not a legal regex expression." | ||
|
||
#: apigateway/apps/plugin/plugin/checker.py:57 | ||
msgid "allow_origins, allow_origins_by_regex 不能同时为空。" | ||
msgstr "" | ||
"allow_origins, allow_origins_by_regex cannot be empty at the same time." | ||
#: apigateway/apps/plugin/plugin/checker.py:84 | ||
msgid "{} 存在重复的元素:{}。" | ||
msgstr "Duplicate element in {}: {}." | ||
|
||
#: apigateway/apps/plugin/plugin/convertor.py:71 | ||
#, python-brace-format | ||
|
@@ -1102,10 +1106,6 @@ msgstr "The shared micro-gateway instance does not exist." | |
msgid "发布中" | ||
msgstr "Releasing" | ||
|
||
#: apigateway/apps/release/releasers.py:306 | ||
msgid "配置下发成功" | ||
msgstr "configuration release success" | ||
|
||
#: apigateway/apps/release/views.py:51 | ||
msgid "当前选择环境未发布版本,请先发布版本到该环境。" | ||
msgstr "The stage has not released, please release first." | ||
|
@@ -1920,6 +1920,9 @@ msgstr "App [{value}] does not match the required pattern." | |
msgid "蓝鲸应用【{app_codes}】不匹配要求的模式。" | ||
msgstr "App [{app_codes}] does not match the required pattern." | ||
|
||
#~ msgid "配置下发成功" | ||
#~ msgstr "configuration release success" | ||
|
||
#~ msgid "资源名称【name={name}】重复。" | ||
#~ msgstr "Resource name [{name}] already exists." | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.