chore: format all frontend files (#430)

This commit is contained in:
tecvan
2025-07-31 23:15:48 +08:00
committed by GitHub
parent 8b078ff013
commit 6995cec404
8787 changed files with 11975 additions and 10924 deletions

View File

@@ -13,5 +13,5 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/// <reference types='@coze-arch/bot-typings' />

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React from 'react';
import { type Intl } from '../intl';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Component, type ReactNode } from 'react';
import { CDLocaleProvider } from '@coze-arch/coze-design/locales';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable max-params */
/* eslint-disable @typescript-eslint/no-explicit-any */

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable max-params */
/* eslint-disable @typescript-eslint/no-this-alias */
/* eslint-disable @typescript-eslint/no-explicit-any */

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable max-params */
/* eslint-disable no-empty */
/* eslint-disable @coze-arch/no-empty-catch */

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export { type IIntlInitOptions, IntlModuleType, IntlModule } from './types';
import Intl, { IntlInstance } from './i18n-impl';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable @stylistic/ts/comma-dangle */
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable prettier/prettier */
@@ -46,17 +46,26 @@ export enum IntlModuleType {
languageDetector = 'languageDetector',
postProcessor = 'postProcessor',
i18nFormat = 'i18nFormat',
'3rdParty' = '3rdParty'
'3rdParty' = '3rdParty',
}
export interface IntlModule<T extends keyof typeof IntlModuleType = keyof typeof IntlModuleType> {
type: T
name?: string
init?: (i18n: any) => void | Promise<any>
export interface IntlModule<
T extends keyof typeof IntlModuleType = keyof typeof IntlModuleType,
> {
type: T;
name?: string;
init?: (i18n: any) => void | Promise<any>;
}
export type TFunctionKeys = string | TemplateStringsArray;
export type TFunctionResult = string | object | Array<string | object> | undefined | null;
export type TFunctionResult =
| string
| object
| Array<string | object>
| undefined
| null;
export interface StringMap { [key: string]: any }
export interface StringMap {
[key: string]: any;
}

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import LanguageDetector from 'i18next-browser-languagedetector';
import locale from '../resource';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { defaultConfig } from '@coze-studio/studio-i18n-resource-adapter';
export default defaultConfig;