Skip to content

Commit d02cf43

Browse files
author
sheepzh
committed
Add guide page and privacy page (#85) (#88)
1 parent 15daeb6 commit d02cf43

File tree

37 files changed

+834
-147
lines changed

37 files changed

+834
-147
lines changed

src/app/components/common/button-filter-item.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* https://opensource.org/licenses/MIT
66
*/
77

8-
import { ElementButtonType } from "@app/element-ui/button"
9-
import ElementIcon from "@app/element-ui/icon"
8+
import { ElementButtonType } from "@src/element-ui/button"
9+
import ElementIcon from "@src/element-ui/icon"
1010
import { ElButton } from "element-plus"
1111
import { defineComponent, PropType, h, Ref, computed } from "vue"
1212

src/app/components/common/date-range-filter-item.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import { ElDatePicker } from "element-plus"
99
import { defineComponent, h, PropType, ref, Ref } from "vue"
10-
import { ElementDatePickerShortcut } from "@app/element-ui/date"
10+
import { ElementDatePickerShortcut } from "@src/element-ui/date"
1111
import { t } from "@app/locale"
1212

1313
const _default = defineComponent({

src/app/components/common/popup-confirm-button.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* https://opensource.org/licenses/MIT
66
*/
77

8-
import { ElementButtonType } from "@app/element-ui/button"
9-
import ElementIcon from "@app/element-ui/icon"
8+
import { ElementButtonType } from "@src/element-ui/button"
9+
import ElementIcon from "@src/element-ui/icon"
1010
import { t } from "@app/locale"
1111
import { ElButton, ElPopconfirm } from "element-plus"
1212
import { defineComponent, PropType, h, computed } from "vue"

src/app/components/data-manage/clear/filter/operation-button.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
*/
77

88
import { ElButton, ElMessage, ElMessageBox, ElTooltip } from "element-plus"
9-
import ElementIcon from "@src/app/element-ui/icon"
9+
import ElementIcon from "@src/element-ui/icon"
1010
import { Ref, h } from "vue"
1111
import TimerDatabase, { TimerCondition } from "@db/timer-database"
1212
import { ItemMessage } from "@util/i18n/components/item"
1313
import { t } from "@src/app/locale"
1414
import { DataManageMessage } from "@src/app/locale/components/data-manage"
1515
import { MILL_PER_DAY } from "@util/time"
16-
import { ElementButtonType } from "@app/element-ui/button"
16+
import { ElementButtonType } from "@src/element-ui/button"
1717

1818
const timerDatabase = new TimerDatabase(chrome.storage.local)
1919

src/app/components/habit/component/filter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { daysAgo } from "@util/time"
1111
import { t } from "@app/locale"
1212
import { HabitMessage } from "@app/locale/components/habit"
1313
import SwitchFilterItem from "@app/components/common/switch-filter-item"
14-
import { ElementDatePickerShortcut } from "@app/element-ui/date"
14+
import { ElementDatePickerShortcut } from "@src/element-ui/date"
1515
import DateRangeFilterItem from "@app/components/common/date-range-filter-item"
1616

1717
export type HabitFilterOption = {

src/app/components/report/filter/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
import type { FileFormat } from "./download-file"
88
import type { Ref, PropType } from "vue"
9-
import type { ElementDatePickerShortcut } from "@app/element-ui/date"
9+
import type { ElementDatePickerShortcut } from "@src/element-ui/date"
1010
import type { ReportMessage } from "@app/locale/components/report"
1111

1212
import DownloadFile from "./download-file"

src/app/components/trend/components/filter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { t } from "@app/locale"
1414
import { TrendMessage } from "@app/locale/components/trend"
1515
import DateRangeFilterItem from "@app/components/common/date-range-filter-item"
1616
import SelectFilterItem from "@app/components/common/select-filter-item"
17-
import { ElementDatePickerShortcut } from "@app/element-ui/date"
17+
import { ElementDatePickerShortcut } from "@src/element-ui/date"
1818
import { labelOfHostInfo } from "./common"
1919

2020
async function handleRemoteSearch(queryStr: string, trendDomainOptions: Ref<timer.app.trend.HostInfo[]>, searching: Ref<boolean>) {

src/app/layout/menu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* https://opensource.org/licenses/MIT
66
*/
77
import type { UnwrapRef } from "vue"
8-
import type ElementIcon from "../element-ui/icon"
8+
import type ElementIcon from "../../element-ui/icon"
99
import type { RouteLocationNormalizedLoaded, Router } from "vue-router"
1010
import type { I18nKey } from "@app/locale"
1111
import type { MenuMessage } from "@app/locale/components/menu"

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
import { OPTION_ROUTE } from "../app/router/constants"
9-
import { getAppPageUrl, SOURCE_CODE_PAGE, TU_CAO_PAGE } from "@util/constant/url"
9+
import { getAppPageUrl, getGuidePageUrl, SOURCE_CODE_PAGE, TU_CAO_PAGE } from "@util/constant/url"
1010
import { t2Chrome } from "@util/i18n/chrome/t"
1111
import { IS_SAFARI } from "@util/constant/environment"
1212

@@ -57,11 +57,19 @@ const feedbackPageProps: chrome.contextMenus.CreateProperties = {
5757
...baseProps
5858
}
5959

60+
const guidePageProps: chrome.contextMenus.CreateProperties = {
61+
id: chrome.runtime.id + '_timer_menu_item_guide_link',
62+
title: titleOf('📖', t2Chrome(msg => msg.contextMenus.guidePage)),
63+
onclick: () => chrome.tabs.create({ url: getGuidePageUrl(true) }),
64+
...baseProps
65+
}
66+
6067
function init() {
6168
create(allFunctionProps)
6269
create(optionPageProps)
6370
create(repoPageProps)
6471
create(feedbackPageProps)
72+
create(guidePageProps)
6573
}
6674

6775
function create(props: chrome.contextMenus.CreateProperties) {

0 commit comments

Comments
 (0)