mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-08 23:23:42 +08:00
chore: remove unused import
This commit is contained in:
@@ -2,7 +2,6 @@ import React, {useEffect, useState} from 'react';
|
|||||||
import {
|
import {
|
||||||
API,
|
API,
|
||||||
isMobile,
|
isMobile,
|
||||||
setPromptShown,
|
|
||||||
shouldShowPrompt,
|
shouldShowPrompt,
|
||||||
showError,
|
showError,
|
||||||
showInfo,
|
showInfo,
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
|
|
||||||
import { Container, Segment } from 'semantic-ui-react';
|
|
||||||
import { getFooterHTML, getSystemName } from '../helpers';
|
import { getFooterHTML, getSystemName } from '../helpers';
|
||||||
import {Layout} from "@douyinfe/semi-ui";
|
import {Layout} from "@douyinfe/semi-ui";
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import React, {useContext, useEffect, useRef, useState} from 'react';
|
|||||||
import {Link, useNavigate} from 'react-router-dom';
|
import {Link, useNavigate} from 'react-router-dom';
|
||||||
import {UserContext} from '../context/User';
|
import {UserContext} from '../context/User';
|
||||||
|
|
||||||
import {Button, Container, Icon, Menu, Segment} from 'semantic-ui-react';
|
|
||||||
import {API, getLogo, getSystemName, isAdmin, isMobile, showSuccess} from '../helpers';
|
import {API, getLogo, getSystemName, isAdmin, isMobile, showSuccess} from '../helpers';
|
||||||
import '../index.css';
|
import '../index.css';
|
||||||
|
|
||||||
|
|||||||
@@ -20,10 +20,7 @@ import {
|
|||||||
} from '@douyinfe/semi-icons';
|
} from '@douyinfe/semi-icons';
|
||||||
import Paragraph from "@douyinfe/semi-ui/lib/es/typography/paragraph";
|
import Paragraph from "@douyinfe/semi-ui/lib/es/typography/paragraph";
|
||||||
|
|
||||||
const {Sider, Content, Header} = Layout;
|
const {Header} = Layout;
|
||||||
const {Column} = Table;
|
|
||||||
|
|
||||||
|
|
||||||
function renderTimestamp(timestamp) {
|
function renderTimestamp(timestamp) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import React, {useEffect, useState} from 'react';
|
import React, {useEffect, useState} from 'react';
|
||||||
import {Label} from 'semantic-ui-react';
|
|
||||||
import {API, copy, isAdmin, showError, showSuccess, timestamp2string} from '../helpers';
|
import {API, copy, isAdmin, showError, showSuccess, timestamp2string} from '../helpers';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import React, {useEffect, useState} from 'react';
|
import React, {useEffect, useState} from 'react';
|
||||||
import {Link} from 'react-router-dom';
|
|
||||||
import {API, copy, isAdmin, showError, showSuccess, showWarning, timestamp2string} from '../helpers';
|
import {API, copy, isAdmin, showError, showSuccess, showWarning, timestamp2string} from '../helpers';
|
||||||
|
|
||||||
import {ITEMS_PER_PAGE} from '../constants';
|
import {ITEMS_PER_PAGE} from '../constants';
|
||||||
@@ -21,9 +20,6 @@ import {
|
|||||||
IconTreeTriangleDown,
|
IconTreeTriangleDown,
|
||||||
} from '@douyinfe/semi-icons';
|
} from '@douyinfe/semi-icons';
|
||||||
import EditToken from "../pages/Token/EditToken";
|
import EditToken from "../pages/Token/EditToken";
|
||||||
|
|
||||||
const {Column} = Table;
|
|
||||||
|
|
||||||
const COPY_OPTIONS = [
|
const COPY_OPTIONS = [
|
||||||
{key: 'next', text: 'ChatGPT Next Web', value: 'next'},
|
{key: 'next', text: 'ChatGPT Next Web', value: 'next'},
|
||||||
{key: 'ama', text: 'AMA 问天', value: 'ama'},
|
{key: 'ama', text: 'AMA 问天', value: 'ama'},
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { initVChartSemiTheme } from '@visactor/vchart-semi-theme';
|
import { initVChartSemiTheme } from '@visactor/vchart-semi-theme';
|
||||||
import VChart from "@visactor/vchart";
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom/client';
|
import ReactDOM from 'react-dom/client';
|
||||||
import {BrowserRouter} from 'react-router-dom';
|
import {BrowserRouter} from 'react-router-dom';
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ChannelsTable from '../../components/ChannelsTable';
|
import ChannelsTable from '../../components/ChannelsTable';
|
||||||
import {Layout} from "@douyinfe/semi-ui";
|
import {Layout} from "@douyinfe/semi-ui";
|
||||||
import RedemptionsTable from "../../components/RedemptionsTable";
|
|
||||||
|
|
||||||
const File = () => (
|
const File = () => (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import React, {useEffect, useRef, useState} from 'react';
|
import React, {useEffect, useRef, useState} from 'react';
|
||||||
import {Button, Col, Form, Layout, Row, Spin} from "@douyinfe/semi-ui";
|
import {Button, Col, Form, Layout, Row, Spin} from "@douyinfe/semi-ui";
|
||||||
import VChart from '@visactor/vchart';
|
import VChart from '@visactor/vchart';
|
||||||
import {useEffectOnce} from "usehooks-ts";
|
|
||||||
import {API, isAdmin, showError, timestamp2string, timestamp2string1} from "../../helpers";
|
import {API, isAdmin, showError, timestamp2string, timestamp2string1} from "../../helpers";
|
||||||
import {
|
import {
|
||||||
getQuotaWithUnit, modelColorMap,
|
getQuotaWithUnit, modelColorMap,
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Segment, Header } from 'semantic-ui-react';
|
|
||||||
import RedemptionsTable from '../../components/RedemptionsTable';
|
import RedemptionsTable from '../../components/RedemptionsTable';
|
||||||
import TokensTable from "../../components/TokensTable";
|
|
||||||
import {Layout} from "@douyinfe/semi-ui";
|
import {Layout} from "@douyinfe/semi-ui";
|
||||||
|
|
||||||
const Redemption = () => (
|
const Redemption = () => (
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Segment, Header } from 'semantic-ui-react';
|
|
||||||
import UsersTable from '../../components/UsersTable';
|
import UsersTable from '../../components/UsersTable';
|
||||||
import {Layout} from "@douyinfe/semi-ui";
|
import {Layout} from "@douyinfe/semi-ui";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user