Skip to content

Commit 6802609

Browse files
committed
feat: 更多调试功能
1 parent 609f3d0 commit 6802609

18 files changed

Lines changed: 3650 additions & 169 deletions

lib/l10n/app_en.arb

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,57 @@
203203
"adminTitle": "Administrator",
204204
"adminDescription": "Manage TouchFish server",
205205
"adminAccessDenied": "You do not have administrator access.",
206+
"adminRootOnly": "Only the root account can manage server settings.",
207+
"adminDefaultAssets": "Default Images",
208+
"adminDefaultAssetsDescription": "Upload the logo and default avatars used by the server.",
209+
"adminDefaultAssetsLoadFailed": "Failed to load default images",
210+
"adminDefaultAssetChangeAction": "Upload PNG",
211+
"adminDefaultAssetPngHint": "Only PNG files are accepted by the server.",
212+
"adminDefaultAssetPreviewUnavailable": "Preview unavailable",
213+
"adminDefaultAssetLogo": "Server Logo",
214+
"adminDefaultAssetLogoDescription": "Shown in the app header and server branding surfaces.",
215+
"adminDefaultAssetForum": "Default Forum Image",
216+
"adminDefaultAssetForumDescription": "Used when a forum has no custom image.",
217+
"adminDefaultAssetUser": "Default User Avatar",
218+
"adminDefaultAssetUserDescription": "Used when a user has not uploaded an avatar.",
219+
"adminDefaultAssetGroup": "Default Group Avatar",
220+
"adminDefaultAssetGroupDescription": "Used when a group has no custom avatar.",
221+
"adminDefaultAssetUploadSuccess": "Updated {assetName}.",
222+
"@adminDefaultAssetUploadSuccess": {
223+
"placeholders": {
224+
"assetName": {
225+
"type": "String"
226+
}
227+
}
228+
},
229+
"adminDefaultAssetUploadFailed": "Failed to update {assetName}.",
230+
"@adminDefaultAssetUploadFailed": {
231+
"placeholders": {
232+
"assetName": {
233+
"type": "String"
234+
}
235+
}
236+
},
237+
"adminServerSettings": "Server Settings",
238+
"adminServerSettingsDescription": "Update the server name, registration captcha, and key limits.",
239+
"adminServerSettingsLoadFailed": "Failed to load server settings",
240+
"adminServerSettingsSaveSuccess": "Server settings updated",
241+
"adminServerSettingsSaveFailed": "Failed to update server settings",
242+
"adminServerSettingsInvalidInput": "Please check the server settings form and try again.",
243+
"adminServerSettingsCaptchaDescription": "Require a captcha image during registration.",
244+
"adminServerReadOnlyDescription": "These values are returned by the server and cannot be edited here.",
245+
"adminServerFieldServerName": "Server Name",
246+
"adminServerFieldCaptcha": "Registration Captcha",
247+
"adminServerFieldFileLastTime": "File Retention Time (hours)",
248+
"adminServerFileLastTimeDescription": "Must be 0 or greater.",
249+
"adminServerFieldGroupsLimit": "Group Limit",
250+
"adminServerFieldSingleGroupMaxPeople": "Single Group Max Members",
251+
"adminServerFieldMaxFileSize": "Max File Size",
252+
"adminServerFieldApiPort": "API Port",
253+
"adminServerFieldTcpPort": "TCP Port",
254+
"adminServerFieldEmailActivation": "Email Activation",
255+
"adminServerFieldVerifyEmail": "Verification Email",
256+
"adminServerUnlimitedHint": "Use -1 for unlimited.",
206257
"adminPendingForums": "Pending Forums",
207258
"adminPendingForumsDescription": "Review and approve newly created forums.",
208259
"adminPendingForumsEmpty": "No forums are waiting for review.",
@@ -554,6 +605,45 @@
554605
}
555606
}
556607
},
608+
"debugMarkdownTester": "Markdown Test",
609+
"debugMarkdownTesterDescription": "Type Markdown and preview the rendered result",
610+
"debugMarkdownTesterEditorTitle": "Markdown Input",
611+
"debugMarkdownTesterHint": "Enter Markdown here",
612+
"debugMarkdownTesterPreviewTitle": "Rendered Preview",
613+
"debugMarkdownTesterPreviewDescription": "The preview updates as you edit the Markdown source.",
614+
"debugMarkdownTesterEmptyPreview": "Rendered content will appear here.",
615+
"debugApiTester": "API Test",
616+
"debugApiTesterDescription": "Send API requests to the server and inspect the responses",
617+
"debugApiTesterEndpoint": "Endpoint",
618+
"debugApiTesterEndpointHint": "Example: /auth/login",
619+
"debugApiTesterMethod": "Request Method",
620+
"debugApiTesterMethodGet": "GET",
621+
"debugApiTesterMethodPost": "POST",
622+
"debugApiTesterUseCredentials": "Include current login credentials",
623+
"debugApiTesterUseCredentialsDescription": "Append the current uid and password to the submitted parameters.",
624+
"debugApiTesterNoCredentials": "Current login credentials are unavailable.",
625+
"debugApiTesterEncryptRequest": "Encrypt request body",
626+
"debugApiTesterEncryptRequestDescription": "When enabled, POST requests use the TouchFish encrypted payload format.",
627+
"debugApiTesterEncryptRequestUnavailableForGet": "GET requests are sent without encryption.",
628+
"debugApiTesterQueryParameters": "Query Parameters",
629+
"debugApiTesterQueryParametersHint": "Enter a JSON object used as GET query parameters",
630+
"debugApiTesterRequestBody": "Request Body",
631+
"debugApiTesterRequestBodyHint": "Enter a JSON object used as the POST request body",
632+
"debugApiTesterSendRequest": "Send Request",
633+
"debugApiTesterResultTitle": "Result",
634+
"debugApiTesterResultDescription": "Inspect the submitted parameters and the server response.",
635+
"debugApiTesterAwaitingResult": "Send a request to view the submitted parameters and response.",
636+
"debugApiTesterStatus": "Status",
637+
"debugApiTesterStatusUnavailable": "Unavailable",
638+
"debugApiTesterRequestUrl": "Request URL",
639+
"debugApiTesterRequestPayload": "Request Payload",
640+
"debugApiTesterEncodedBody": "Encoded Request Body",
641+
"debugApiTesterDecryptedResponse": "Decrypted Response",
642+
"debugApiTesterRawResponse": "Raw Response",
643+
"debugApiTesterError": "Error",
644+
"debugApiTesterInvalidEndpoint": "Please enter an endpoint.",
645+
"debugApiTesterInvalidBody": "Request body must be a JSON object.",
646+
"debugApiTesterCredentialsUnavailable": "No current login credentials were found.",
557647

558648
"forumTitle": "Forum",
559649
"forumNotFound": "Forum not found",

0 commit comments

Comments
 (0)