Skip to content

Commit

Permalink
feat(online-demo): ✨ add icon with the link of blazwicher extension link
Browse files Browse the repository at this point in the history
  • Loading branch information
cjinhuo committed Sep 2, 2024
1 parent 49bb18e commit 0967e45
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/online-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="description" content="text fuzzy search engine、text fuzzy search、pinyin match、汉字拼音模糊搜索、中英文模糊搜索、文本搜索引擎">
<meta name="keywords" content="text fuzzy search engine、text fuzzy search、pinyin match、汉字拼音模糊搜索、中英文模糊搜索、文本搜索引擎">
<title>Text Search Engine</title>
<script src="https://lf1-cdn-tos.bytegoofy.com/obj/iconpark/icons_33805_16.ae7d447f3dcde4b3d7fbb142887933d2.js"></script>
<script src="https://lf1-cdn-tos.bytegoofy.com/obj/iconpark/icons_33805_18.5474ccb76ee11bb549826605c2cbcf62.es5.js"></script>
</head>
<body>
<div id="root"></div>
Expand Down
3 changes: 2 additions & 1 deletion app/online-demo/src/components/header/right.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { GITHUB_URL } from '../../config'
import { CHROME_EXTENSION_URL, GITHUB_URL } from '../../config'
import { IconParkNames } from '../../shared/constants'
import LinkWithIcon from '../link-with-icon'
import Theme from './theme'
export default function HeaderRight() {
return (
<div className='h-full flex' style={{ gap: '1.2rem' }}>
<LinkWithIcon name={IconParkNames.extensions} value={CHROME_EXTENSION_URL} type='link' />
<LinkWithIcon name={IconParkNames.github} value={GITHUB_URL} type='link' />
<Theme />
</div>
Expand Down
2 changes: 2 additions & 0 deletions app/online-demo/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ export const TEXT_ACTIVE_CONFIG = {
}

export const GITHUB_URL = 'https://github.com/cjinhuo/text-search-engine'
export const CHROME_EXTENSION_URL =
'https://chromewebstore.google.com/detail/blazwitcher-search-and-sw/fjgablnemienkegdnbihhemebmmonihg'
1 change: 1 addition & 0 deletions app/online-demo/src/shared/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export enum IconParkNames {
tips = 'tips',
doc = 'doc',
clear = 'clear',
extensions = 'extensions',
}

export const LOCAL_STORAGE_THEME_KEY = 'theme'
Expand Down

0 comments on commit 0967e45

Please sign in to comment.