From 6814cc17e33d4ed8d6d91b0fe8fff7d7077a1eb6 Mon Sep 17 00:00:00 2001 From: XYShaoKang <38753204+XYShaoKang@users.noreply.github.com> Date: Sat, 14 Oct 2023 21:58:12 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(problems):=20=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 目前默认选项是关闭的,要使用需要手动开启,那么启用的人肯定是知道这个选项的,所以提示就没必要了。 --- .../problems/OptimizedContestProblemsPage.tsx | 33 +------------------ 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/src/content/pages/problems/OptimizedContestProblemsPage.tsx b/src/content/pages/problems/OptimizedContestProblemsPage.tsx index 2e9259a..1844344 100644 --- a/src/content/pages/problems/OptimizedContestProblemsPage.tsx +++ b/src/content/pages/problems/OptimizedContestProblemsPage.tsx @@ -1,5 +1,5 @@ import { createGlobalStyle } from 'styled-components/macro' -import { useAppDispatch, useAppSelector, useEffectMount } from '@/hooks' +import { useAppDispatch, useAppSelector } from '@/hooks' import { useCallback, useEffect, useState } from 'react' import { selectOptions, @@ -7,8 +7,6 @@ import { } from '@/pages/global/optionsSlice' import { Portal } from '@/components/Portal' import { withPage } from '@/hoc' -import { findElement } from '@/utils' -import { HelpIcon } from '@/components/icons' const GlobalStyle = createGlobalStyle` body { @@ -111,34 +109,6 @@ const Variables = createGlobalStyle<{ } ` -const FeatureTips = () => { - const [root, setRoot] = useState(null) - - useEffectMount(async state => { - const languageSelectWrapper = await findElement('.language-select-wrapper') - if (!state.isMount) return - const root = document.createElement('div') - root.style.margin = '15px 0' - const control = languageSelectWrapper.parentElement?.parentElement - if (control) { - control.parentElement?.insertBefore(root, control) - } - setRoot(root) - state.unmount.push(() => root.remove()) - }, []) - - if (!root) return null - - return ( - -
- 提示:此布局由 Refined LeetCode - 扩展提供,如需关闭,可以在扩展的配置选项中关闭。 -
-
- ) -} - const OptimizedContestProblemsPage = (): JSX.Element => { const options = useAppSelector(selectOptions) const dispatch = useAppDispatch() @@ -226,7 +196,6 @@ const OptimizedContestProblemsPage = (): JSX.Element => { return ( <> {modifyPageLayout && } - {modifyPageLayout && } Date: Sat, 14 Oct 2023 13:59:44 +0000 Subject: [PATCH 2/2] chore(release): 0.13.3 [skip ci] --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f6f458..e67cbd2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [0.13.3](https://github.com/XYShaoKang/refined-leetcode/compare/v0.13.2...v0.13.3) (2023-10-14) + + +### Bug Fixes + +* **problems:** 去掉提示 ([6814cc1](https://github.com/XYShaoKang/refined-leetcode/commit/6814cc17e33d4ed8d6d91b0fe8fff7d7077a1eb6)) + ## [0.13.2](https://github.com/XYShaoKang/refined-leetcode/compare/v0.13.1...v0.13.2) (2023-10-14) diff --git a/package.json b/package.json index 740b393..7993eb6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "refined-leetcode", - "version": "0.13.2", + "version": "0.13.3", "main": "index.js", "author": "XYShaoKang", "license": "MIT", pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy