chore: format all frontend files (#430)
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
interface ApiParam {
|
||||
name: string;
|
||||
input: {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
export {
|
||||
MineActiveEnum,
|
||||
DEFAULT_PAGE,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { type CSSProperties } from 'react';
|
||||
|
||||
import {
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -13,5 +13,5 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
/// <reference types='@coze-arch/bot-typings' />
|
||||
|
||||
@@ -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 = ({
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user