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,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
interface ApiParam {
name: string;
input: {

View File

@@ -249,14 +249,14 @@ export const PluginPanel: React.FC<PluginPanelProps> = ({
const timePrefixText = showPublishTime
? I18n.t('mkl_plugin_publish')
: showCreateTime
? I18n.t('mkl_plugin_created')
: I18n.t('mkl_plugin_updated');
? I18n.t('mkl_plugin_created')
: I18n.t('mkl_plugin_updated');
const timeToShow =
(showPublishTime
? Number(listed_at)
: showCreateTime
? Number(create_time)
: Number(update_time)) || 0;
? Number(create_time)
: Number(update_time)) || 0;
const renderAuthStatus = () => {
if (isUndefined(auth_mode) || auth_mode === PluginAuthMode.NoAuth) {

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable @coze-arch/max-line-per-function */
import { useState } from 'react';
@@ -32,10 +32,7 @@ import {
UIButton,
UITag,
} from '@coze-arch/bot-semi';
import {
ProductStatus,
type public_api,
} from '@coze-arch/bot-api/product_api';
import { ProductStatus, type public_api } from '@coze-arch/bot-api/product_api';
import { type PluginApi } from '@coze-arch/bot-api/plugin_develop';
import { useViewExample } from '@coze-agent-ide/bot-plugin-tools/useViewExample';
import { Popconfirm } from '@coze-arch/coze-design';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import cls from 'classnames';
import { I18n } from '@coze-arch/i18n';
import {

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export enum MineActiveEnum {
All = '1',
Mine = '2',

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export {
MineActiveEnum,
DEFAULT_PAGE,

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import qs from 'qs';
import { useSpaceStore } from '@coze-foundation/space-store';
import {

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/** for open coze */
export enum PluginAuthMode {
/** No authorization required */

View File

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

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { OpenModeType } from '@coze-arch/bot-hooks';
import {
type PluginType,
@@ -22,10 +22,7 @@ import {
type SortType,
} from '@coze-arch/bot-api/product_api';
import { type PluginInfoForPlayground } from '@coze-arch/bot-api/plugin_develop';
import {
type OrderBy,
type PluginApi,
} from '@coze-arch/bot-api/developer_api';
import { type OrderBy, type PluginApi } from '@coze-arch/bot-api/developer_api';
import { type MineActiveEnum } from '../constants/plugin-modal-constants';

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 { type PluginApi } from '@coze-arch/bot-api/developer_api';
export const getApiUniqueId = ({

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { I18n } from '@coze-arch/i18n';
import { type PluginApi } from '@coze-arch/bot-api/developer_api';
import IconAllActive from '@coze-common/assets/svg/icon_all_active.svg';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { defineConfig } from '@coze-arch/vitest-config';
export default defineConfig({