Skip to content

Commit cfc92bc

Browse files
author
sheepzh
committed
Remove guide pages (sheepzh#253)
1 parent 05b23ac commit cfc92bc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+19
-2825
lines changed

public/guide.html

Lines changed: 0 additions & 19 deletions
This file was deleted.

script/crowdin/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import fs from 'fs'
33
import { CrowdinClient } from './client'
44
import { exitWith } from '../util/process'
55

6-
export const ALL_DIRS: Dir[] = ['app', 'common', 'popup', 'guide']
6+
export const ALL_DIRS: Dir[] = ['app', 'common', 'popup']
77

88
export const SOURCE_LOCALE: timer.SourceLocale = 'en'
99

script/crowdin/crowdin.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
type Dir =
55
| 'app'
66
| 'common'
7-
| 'guide'
87
| 'popup'
98

109
/**

src/app/layout/menu.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ import { defineComponent, h, onMounted, ref, watch } from "vue"
1515
import { ElIcon, ElMenu, ElMenuItem, ElMenuItemGroup } from "element-plus"
1616
import { useRouter } from "vue-router"
1717
import { t } from "@app/locale"
18-
import { HOME_PAGE, FEEDBACK_QUESTIONNAIRE, getGuidePageUrl } from "@util/constant/url"
18+
import { WEBSTORE_PAGE, FEEDBACK_QUESTIONNAIRE, getGuidePageUrl } from "@util/constant/url"
1919
import { Aim, Calendar, ChatSquare, Folder, HelpFilled, HotWater, Memo, Rank, SetUp, Stopwatch, Sugar, Tickets, Timer } from "@element-plus/icons-vue"
2020
import { locale } from "@i18n"
2121
import TrendIcon from "./icon/trend-icon"
2222
import { createTabAfterCurrent } from "@api/chrome/tab"
2323
import { ANALYSIS_ROUTE, MERGE_ROUTE } from "@app/router/constants"
24-
import { START_ROUTE } from "@guide/router/constants"
2524

2625
type _MenuItem = {
2726
title: keyof MenuMessage
@@ -42,17 +41,17 @@ type _MenuGroup = {
4241
function generateMenus(): _MenuGroup[] {
4342
const otherMenuItems: _MenuItem[] = [{
4443
title: 'userManual',
45-
href: getGuidePageUrl(false, START_ROUTE),
44+
href: getGuidePageUrl(),
4645
icon: Memo,
4746
index: '_guide',
4847
}, {
4948
title: 'helpUs',
5049
route: '/other/help',
5150
icon: HelpFilled,
5251
}]
53-
HOME_PAGE && otherMenuItems.push({
52+
WEBSTORE_PAGE && otherMenuItems.push({
5453
title: 'rate',
55-
href: HOME_PAGE,
54+
href: WEBSTORE_PAGE,
5655
icon: Sugar,
5756
index: '_rate'
5857
})

src/background/browser-action-menu-manager.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { createTab } from "@api/chrome/tab"
1616
import { createContextMenu } from "@api/chrome/context-menu"
1717
import { getRuntimeId } from "@api/chrome/runtime"
1818
import { locale } from "@i18n"
19-
import { START_ROUTE } from "@guide/router/constants"
2019

2120
const APP_PAGE_URL = getAppPageUrl(true)
2221

@@ -68,7 +67,7 @@ const feedbackPageProps: ChromeContextMenuCreateProps = {
6867
const guidePageProps: ChromeContextMenuCreateProps = {
6968
id: getRuntimeId() + '_timer_menu_item_guide_link',
7069
title: titleOf('📖', t2Chrome(msg => msg.base.guidePage)),
71-
onclick: () => createTab(getGuidePageUrl(true, START_ROUTE)),
70+
onclick: () => createTab(getGuidePageUrl()),
7271
...baseProps
7372
}
7473

src/background/install-handler/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { isBrowserUrl } from "@util/pattern"
77
import UninstallListener from './uninstall-listener'
88

99
async function onFirstInstall() {
10-
createTab(getGuidePageUrl(true))
10+
createTab(getGuidePageUrl())
1111
metaService.updateInstallTime(new Date())
1212
}
1313

src/guide/component/app.ts

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/guide/component/backup.ts

Lines changed: 0 additions & 53 deletions
This file was deleted.

src/guide/component/common/article.sass

Lines changed: 0 additions & 72 deletions
This file was deleted.

src/guide/component/common/article.ts

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)