From dc651dafb7751a73d6f3d2472312140569eba392 Mon Sep 17 00:00:00 2001 From: ikkz Date: Mon, 30 Dec 2024 18:17:50 +0800 Subject: [PATCH] chore: delete unused files --- src/assets/baidu-fanyi.png | Bin 2681 -> 0 bytes src/assets/baidu.png | Bin 1138 -> 0 bytes src/assets/google-translate.svg | 1 - src/assets/google.svg | 1 - src/components/error-list.tsx | 28 ---------------------------- src/hooks/use-global-style.ts | 16 ---------------- 6 files changed, 46 deletions(-) delete mode 100644 src/assets/baidu-fanyi.png delete mode 100644 src/assets/baidu.png delete mode 100644 src/assets/google-translate.svg delete mode 100644 src/assets/google.svg delete mode 100644 src/components/error-list.tsx delete mode 100644 src/hooks/use-global-style.ts diff --git a/src/assets/baidu-fanyi.png b/src/assets/baidu-fanyi.png deleted file mode 100644 index 43d8a616cb0357211f19d794caf1bf734489395e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2681 zcma)8X*3iJ7an7qvG04ySRxTovKveGAz5O|zLPgg2xZBdwd{NLt+8cmRD{Z!HM}hb zMZ8QBiY)i@{dv#%{(bkH=icYubDrnd^W!F%;&d75_~;M_1f#y5w%PG?{x49J$6Z&& z#T9`-N}3v(>m0A}zoj0!LsHWE_jYt}_%HweiE-fan7WyD;_g>->thw?OQ6gG@ll}8 z1@;a&I{`F>fEfYaH-Ih!mS$k60rX>FZUFj9kbMsnX~0MTo<3l01;Ih!?tu$4z~2v) z>7Wt%i=?Ev^b58R0Ae1l?g2+9fNwn9P0m>aL=y1Ug3{jr4iQx=K-UfspUKn>;1#3S z3y64N>;!ZZpa=jd`H+~sdk7zY0|Y$)*ZZr1p-j(!yAm|Rk3!1!6oY;N`3G2pEUReE z$tm+Uz~pz3JGR2#TlfXVi+~#emOjuR!bu`XHv_c28r*`Rb!b}#$!<6*s9xBFoE0cp z0`qCG>HxtO;K&2mKY*mxqo6tnZf`;Q8Nlyd_&5*4lTg(L z8Kpfxp=$*a=K%K^thzzJ6OI;_q4;Ub8WjB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m1>kMymU|4bbmpx^~7sE@6c^$@vtlo!IvZ{x2L18irdwJ@a-fq-zC^6b= zv&lE9HZS2S@W?;VW=M)wy&;?(F-JGT$6tjtvJ!H-C9)t^My6dmLv5YqwTWU(AHWOa zyDJNZ67lz#qAmDY1zgR@TVC5PfqK(gc%SqFtV{EUZ!z7LjRST*qfvKb97QIoBP_JG zA1!xf*bPo~*BbMeFL}LMm_C>N)^;Q zd1I$eGE6Xh+hTe`AgnC^74a{-6yA`-f2vDT?e=frE{pp2PWKjciCwP0-geUI+CN)C zS1gU*_&f@-?Bi3SCFC}}{}{>~d9YU(YuiP1Ug`AcY;QP;mrme6!OLg+M&Y>|C#k+r kaxd_U!WLt4PWvMB)7$PdKP!nF$4>!5Uk9gMuW29kA23s72><{9 diff --git a/src/assets/baidu.png b/src/assets/baidu.png deleted file mode 100644 index 3073ae74aaf89e42f9b4c35d8f8056aba3d4926d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1138 zcmV-&1daQNP)Tc0P*>+WL*y?w;&XZI@9_QE+xkaO=KA~p_xS$2zxHWw>qJZCI6>s8t@DA0?t6jl zR9omuQRXx~euV8@V(I++|BR9EaCYloX6aX6=;!GC)z|rbgY7>@ z$xl(HK0L5HB-gw&wSK`?BZIO6o$N}VY z@%S~}@q{1~|0Mdp_sWT8F5XsxKwIKlp`QwI#Q~BH5S_vkgsL{v03HDK;O;=guhIZI zfZ90zNc&_!3s5!2Z_@xC0o8T?ZVx?}z^VVj_)pwy4jXRFMb4fHnDI8d%ji493P1)!GvWQ1UYVQ*sWU3PcAwGpf$< ztSjJ3YsUcVXr!d)o~^bp?aW72{j5llq!3pu02ewE&TEC+!vIVO^>_hrkKL9CV6sPR zo*gfVOim%-6Hue172re>pi*ZzQ29{%sBIdaVNSMA1LlBQ2g6T(!$*La0_ukb=zzNO zduw6K+@I7KP(2#Z1=JV*8Z)Z}ppG=4EHdb_Mgay3W}@063ZPDXi3H37T75&Hj`kay ziS+<}dX44<6L&-LogyJ1AiTS)5Vz!;3B+ZRUOT{E?0q0l_G9nHSZW-=V8rx70ISiQ z%u<%+LzG}+MqLIhy$j`@ymC>gqf~&g24?^;HxmFDDLw$iQWC(Z0S#c)ZC(V(O7K&f zcJctWuInUCEnTm=i8{Oh`0JhO)~b$w6)Mh$I}n`MmC4<@I15kRdOUm z04*M12A*bgB3VZ05U}R~8sKX;i~^u*!~wV5Ogx3R-*&&gBkGdWc$?mND&Y!vfQAU^ zq{)1MFil4gAB2dgf@3^@WZ5QNaO9)*tBWs!^6^Xy&RqWg1H=KYmpA=!tpET307*qoM6N<$ Eg4Llv-2eap diff --git a/src/assets/google-translate.svg b/src/assets/google-translate.svg deleted file mode 100644 index ecf59ae..0000000 --- a/src/assets/google-translate.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/assets/google.svg b/src/assets/google.svg deleted file mode 100644 index 10c132a..0000000 --- a/src/assets/google.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/components/error-list.tsx b/src/components/error-list.tsx deleted file mode 100644 index 67f01bf..0000000 --- a/src/components/error-list.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import useCreation from 'ahooks/es/useCreation'; -import { FC } from 'react'; - -interface Predicate { - condition?: boolean; - message?: string; -} - -export const ErrorList: FC<{ predicates: Predicate[] /** const */ }> = ({ - predicates, -}) => { - const errors = useCreation( - () => - predicates - .filter(({ condition }) => condition) - - .map(({ message }, index) =>
  • {message}
  • ), - [], - ); - if (!errors.length) { - return null; - } - return ( -
      - {errors} -
    - ); -}; diff --git a/src/hooks/use-global-style.ts b/src/hooks/use-global-style.ts deleted file mode 100644 index e691e0c..0000000 --- a/src/hooks/use-global-style.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { APP_CONTAINER_ID } from '@/utils/const'; -import useCreation from 'ahooks/es/useCreation'; -import { useEffect } from 'react'; - -export const useGlobalStyle = (style: string) => { - const node = useCreation(() => { - const el = document.createElement('style'); - document - .getElementById(APP_CONTAINER_ID) - ?.insertAdjacentElement('beforebegin', el); - return el; - }, []); - useEffect(() => { - node.innerHTML = style; - }, [style]); -};