优化设置页面
This commit is contained in:
parent
78bf296db5
commit
acf87603f4
@ -883,7 +883,6 @@
|
||||
"Jingrow Server URL": "Jingrow 服务器地址",
|
||||
"Jingrow API Key": "Jingrow API 密钥",
|
||||
"Jingrow API Secret": "Jingrow API 密钥",
|
||||
"Jingrow Session Cookie": "Jingrow 会话 Cookie",
|
||||
"Jingrow Cloud Configuration": "Jingrow Cloud 配置",
|
||||
"Cloud URL": "Cloud 地址",
|
||||
"Cloud API URL": "Cloud API 地址",
|
||||
|
||||
@ -7,7 +7,6 @@ export interface EnvironmentConfig {
|
||||
jingrow_server_url: string
|
||||
jingrow_api_key: string
|
||||
jingrow_api_secret: string
|
||||
jingrow_session_cookie: string
|
||||
jingrow_cloud_url: string
|
||||
jingrow_cloud_api_url: string
|
||||
jingrow_cloud_api_key: string
|
||||
|
||||
@ -100,9 +100,6 @@
|
||||
<n-form-item :label="t('Jingrow API Secret')">
|
||||
<n-input v-model:value="envConfig.jingrow_api_secret" type="password" show-password-on="click" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('Jingrow Session Cookie')">
|
||||
<n-input v-model:value="envConfig.jingrow_session_cookie" />
|
||||
</n-form-item>
|
||||
</n-collapse-item>
|
||||
|
||||
<n-collapse-item name="cloud" :title="t('Jingrow Cloud Configuration')">
|
||||
|
||||
@ -86,7 +86,6 @@ async def update_environment_config(request: Request, config_data: Dict[str, Any
|
||||
'jingrow_server_url',
|
||||
'jingrow_api_key',
|
||||
'jingrow_api_secret',
|
||||
'jingrow_session_cookie',
|
||||
],
|
||||
'Jingrow Cloud API配置': [
|
||||
'jingrow_cloud_url',
|
||||
|
||||
@ -10,7 +10,6 @@ class Settings(BaseSettings):
|
||||
jingrow_server_url: str = ''
|
||||
jingrow_api_key: str = ''
|
||||
jingrow_api_secret: str = ''
|
||||
jingrow_session_cookie: str = ''
|
||||
|
||||
# Jingrow Cloud API配置
|
||||
jingrow_cloud_url: str = 'https://cloud.jingrow.com'
|
||||
|
||||
@ -20,7 +20,7 @@ class ApiAdapter:
|
||||
self.api_url = Config.jingrow_server_url
|
||||
self.api_key = Config.jingrow_api_key
|
||||
self.api_secret = Config.jingrow_api_secret
|
||||
self.session_cookie = Config.jingrow_session_cookie
|
||||
self.session_cookie = None # Session cookie 由系统自动管理,不再从配置中读取
|
||||
|
||||
def _get_headers(self):
|
||||
"""获取请求头"""
|
||||
|
||||
@ -203,7 +203,6 @@ def record_installation(app_name: str, package_info: Dict[str, Any], upload_path
|
||||
'app_name': app_name,
|
||||
'version': package_info.get('version', '1.0.0'),
|
||||
'description': package_info.get('description', ''),
|
||||
'user_site': Config.jingrow_site or 'local',
|
||||
'installation_date': datetime.now().isoformat(),
|
||||
'upload_path': upload_path,
|
||||
'has_backend': package_info.get('has_backend', False),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user