From 319c3e7de89135aa43341320d0695f101bc52c72 Mon Sep 17 00:00:00 2001 From: kaniwow Date: Thu, 3 Nov 2022 11:53:49 +0800 Subject: feat: correct quotation marks --- src/components/APIConfig.tsx | 22 +++---- src/components/BackendList.tsx | 2 +- src/components/CollapsibleSectionHeader.tsx | 6 +- src/components/Config.tsx | 14 ++--- src/components/Connections.tsx | 8 +-- src/components/Home.tsx | 2 +- src/components/Loading.module.scss | 2 +- src/components/Loading2.tsx | 2 +- src/components/Logs.tsx | 2 +- src/components/Root.scss | 2 +- src/components/Rules.tsx | 4 +- src/components/Search.tsx | 2 +- src/components/Selection.tsx | 4 +- src/components/SideBar.module.scss | 2 +- src/components/SideBar.tsx | 2 +- src/components/StyleGuide.tsx | 10 +-- src/components/SvgGithub.tsx | 16 ++--- src/components/SvgYacd.tsx | 26 ++++---- src/components/SwitchThemed.tsx | 8 +-- src/components/ToggleSwitch.tsx | 2 +- src/components/TrafficChart.tsx | 4 +- src/components/about/About.tsx | 12 ++-- src/components/proxies/ClosePrevConns.tsx | 2 +- src/components/proxies/Proxies.tsx | 2 +- src/components/proxies/ProxyGroup.tsx | 4 +- src/components/proxies/ProxyProvider.tsx | 16 ++--- src/components/proxies/ProxyProviderList.tsx | 2 +- src/components/proxies/Settings.tsx | 4 +- src/components/shared/Fab.tsx | 14 ++--- src/components/shared/TextFitler.tsx | 2 +- src/components/shared/ThemeSwitcher.tsx | 94 ++++++++++++++-------------- src/components/svg/Equalizer.tsx | 20 +++--- 32 files changed, 157 insertions(+), 157 deletions(-) (limited to 'src/components') diff --git a/src/components/APIConfig.tsx b/src/components/APIConfig.tsx index 1d7a88a..f1f9b5c 100644 --- a/src/components/APIConfig.tsx +++ b/src/components/APIConfig.tsx @@ -101,33 +101,33 @@ function APIConfig({ dispatch }) {
- +
{errMsg ? errMsg : null}
-
diff --git a/src/components/BackendList.tsx b/src/components/BackendList.tsx index 8e0d906..91ccea9 100644 --- a/src/components/BackendList.tsx +++ b/src/components/BackendList.tsx @@ -103,7 +103,7 @@ function Item({ onSelect({ baseURL, secret })} onKeyUp={handleTap} > diff --git a/src/components/CollapsibleSectionHeader.tsx b/src/components/CollapsibleSectionHeader.tsx index 2d5ecd1..65d876e 100644 --- a/src/components/CollapsibleSectionHeader.tsx +++ b/src/components/CollapsibleSectionHeader.tsx @@ -31,7 +31,7 @@ export default function Header({ name, type, toggle, isOpen, qty }: Props) { style={{ cursor: 'pointer' }} tabIndex={0} onKeyDown={handleKeyDown} - role="button" + role='button' >
@@ -40,10 +40,10 @@ export default function Header({ name, type, toggle, isOpen, qty }: Props) { {typeof qty === 'number' ? {qty} : null}
@@ -363,8 +363,8 @@ function ConfigImpl({
{t('latency_test_url')}
@@ -394,7 +394,7 @@ function ConfigImpl({
Action
diff --git a/src/components/Connections.tsx b/src/components/Connections.tsx index 3769b32..e185f51 100644 --- a/src/components/Connections.tsx +++ b/src/components/Connections.tsx @@ -119,7 +119,7 @@ function renderTableOrPlaceholder(conns: FormattedConn[]) { ) : (
- +
); } @@ -209,9 +209,9 @@ function Conn({ apiConfig }) {
setFilterKeyword(e.target.value)} diff --git a/src/components/Home.tsx b/src/components/Home.tsx index d7ddbab..727783f 100644 --- a/src/components/Home.tsx +++ b/src/components/Home.tsx @@ -17,7 +17,7 @@ export default function Home() {
- }> + }>
diff --git a/src/components/Loading.module.scss b/src/components/Loading.module.scss index a59b7dd..c3f1d16 100644 --- a/src/components/Loading.module.scss +++ b/src/components/Loading.module.scss @@ -13,7 +13,7 @@ vertical-align: middle; animation: rotate 1s steps(12, end) infinite; background: transparent - url("data:image/svg+xml;charset=utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E9E9E9' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23989697' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%239B999A' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23A3A1A2' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23ABA9AA' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23B2B2B2' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23BAB8B9' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23C2C0C1' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23CBCBCB' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23D2D2D2' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23DADADA' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E2E2E2' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E") + url('data:image/svg+xml;charset=utf8, %3Csvg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 100 100"%3E%3Cpath fill="none" d="M0 0h100v100H0z"/%3E%3Crect width="7" height="20" x="46.5" y="40" fill="%23E9E9E9" rx="5" ry="5" transform="translate(0 -30)"/%3E%3Crect width="7" height="20" x="46.5" y="40" fill="%23989697" rx="5" ry="5" transform="rotate(30 105.98 65)"/%3E%3Crect width="7" height="20" x="46.5" y="40" fill="%239B999A" rx="5" ry="5" transform="rotate(60 75.98 65)"/%3E%3Crect width="7" height="20" x="46.5" y="40" fill="%23A3A1A2" rx="5" ry="5" transform="rotate(90 65 65)"/%3E%3Crect width="7" height="20" x="46.5" y="40" fill="%23ABA9AA" rx="5" ry="5" transform="rotate(120 58.66 65)"/%3E%3Crect width="7" height="20" x="46.5" y="40" fill="%23B2B2B2" rx="5" ry="5" transform="rotate(150 54.02 65)"/%3E%3Crect width="7" height="20" x="46.5" y="40" fill="%23BAB8B9" rx="5" ry="5" transform="rotate(180 50 65)"/%3E%3Crect width="7" height="20" x="46.5" y="40" fill="%23C2C0C1" rx="5" ry="5" transform="rotate(-150 45.98 65)"/%3E%3Crect width="7" height="20" x="46.5" y="40" fill="%23CBCBCB" rx="5" ry="5" transform="rotate(-120 41.34 65)"/%3E%3Crect width="7" height="20" x="46.5" y="40" fill="%23D2D2D2" rx="5" ry="5" transform="rotate(-90 35 65)"/%3E%3Crect width="7" height="20" x="46.5" y="40" fill="%23DADADA" rx="5" ry="5" transform="rotate(-60 24.02 65)"/%3E%3Crect width="7" height="20" x="46.5" y="40" fill="%23E2E2E2" rx="5" ry="5" transform="rotate(-30 -5.98 65)"/%3E%3C/svg%3E') no-repeat; background-size: 100%; } diff --git a/src/components/Loading2.tsx b/src/components/Loading2.tsx index b847eb4..b7447a6 100644 --- a/src/components/Loading2.tsx +++ b/src/components/Loading2.tsx @@ -6,7 +6,7 @@ import SvgYacd from './SvgYacd'; function Loading() { return (
- +
); } diff --git a/src/components/Logs.tsx b/src/components/Logs.tsx index 1dd00a8..41aa712 100644 --- a/src/components/Logs.tsx +++ b/src/components/Logs.tsx @@ -78,7 +78,7 @@ function Logs({ dispatch, logLevel, apiConfig, logs, logStreamingPaused }) { { logs.map( (log, index) => ( -
+
), diff --git a/src/components/Root.scss b/src/components/Root.scss index 0a7fc4f..eb1769d 100644 --- a/src/components/Root.scss +++ b/src/components/Root.scss @@ -54,7 +54,7 @@ :root { --font-mono: 'Roboto Mono', Menlo, monospace; // prettier-ignore - --font-normal: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, "PingFang SC", "Microsoft YaHei", "\5fae\8f6f\96c5\9ed1", Arial, sans-serif; + --font-normal: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, 'PingFang SC', 'Microsoft YaHei', '\5fae\8f6f\96c5\9ed1', Arial, sans-serif; --color-focus-blue: #1a73e8; --btn-bg: #387cec; } diff --git a/src/components/Rules.tsx b/src/components/Rules.tsx index e105edf..66decb2 100644 --- a/src/components/Rules.tsx +++ b/src/components/Rules.tsx @@ -92,12 +92,12 @@ function Rules({ apiConfig }: RulesProps) {
- +
+ diff --git a/src/components/StyleGuide.tsx b/src/components/StyleGuide.tsx index ee38697..aba3110 100644 --- a/src/components/StyleGuide.tsx +++ b/src/components/StyleGuide.tsx @@ -50,14 +50,14 @@ class StyleGuide extends PureComponent { {/* @ts-expect-error ts-migrate(2741) FIXME: Property 'style' is missing in type '{ children: E... Remove this comment to see the full error message */} - + {/* @ts-expect-error ts-migrate(2741) FIXME: Property 'style' is missing in type '{ children: E... Remove this comment to see the full error message */} - diff --git a/src/components/proxies/ProxyGroup.tsx b/src/components/proxies/ProxyGroup.tsx index 633a4b9..37823db 100644 --- a/src/components/proxies/ProxyGroup.tsx +++ b/src/components/proxies/ProxyGroup.tsx @@ -96,8 +96,8 @@ function ProxyGroupImpl({ isOpen={isOpen} /> ); @@ -34,7 +34,7 @@ interface MBProps } export const MB: React.FC = ({ children, ...p }) => ( - ); @@ -124,17 +124,17 @@ const Fab: React.FC = ({ onMouseEnter={enter} onMouseLeave={leave} className={`rtf ${isOpen ? 'open' : 'closed'}`} - data-testid="fab" + data-testid='fab' style={style} {...p} > -
  • +
  • {icon} diff --git a/src/components/shared/TextFitler.tsx b/src/components/shared/TextFitler.tsx index e4a4a88..f790340 100644 --- a/src/components/shared/TextFitler.tsx +++ b/src/components/shared/TextFitler.tsx @@ -12,7 +12,7 @@ export function TextFilter(props: { return ( {themeIcon}
  • @@ -49,18 +49,18 @@ function MoonA() { const motion = module.motion; return ( - + - - - - - - - - + + + + + + + + ); @@ -106,29 +106,29 @@ function Auto() { return ( - - + + - + ); } diff --git a/src/components/svg/Equalizer.tsx b/src/components/svg/Equalizer.tsx index 274720f..6c20273 100644 --- a/src/components/svg/Equalizer.tsx +++ b/src/components/svg/Equalizer.tsx @@ -11,20 +11,20 @@ export default function Equalizer({ }: Props) { return ( - - - - + + + + ); } -- cgit v1.3.1