Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
b08dd07
docs: vitepress v2
NelsonYong Apr 1, 2025
b875c7e
docs: vitepress v2
NelsonYong Apr 1, 2025
beec9ae
docs: v2
NelsonYong Apr 2, 2025
102af6c
docs: vitepress v2
NelsonYong Apr 2, 2025
3bb3e17
docs: refactor useCounter
NelsonYong Apr 2, 2025
2a7920a
docs: refactor useAsyncOrder
NelsonYong Apr 2, 2025
113773e
docs: refactor useDarkMode
NelsonYong Apr 2, 2025
4acfe34
docs: refactor useDebounce
NelsonYong Apr 2, 2025
b06c471
docs: refactor useDebounce
NelsonYong Apr 2, 2025
8ec3c51
docs: refactor useDebounce
NelsonYong Apr 2, 2025
dcd96ec
docs: refactor useDebounceFn
NelsonYong Apr 2, 2025
9eb0090
docs: refactor useDebounceFn
NelsonYong Apr 2, 2025
df191cf
docs: remove path /
NelsonYong Apr 2, 2025
362287f
docs: refactor useDrop & useDrag
NelsonYong Apr 2, 2025
3f0fab4
docs: refactor useDrop & useDrag
NelsonYong Apr 2, 2025
f2d2dd8
docs: refactor useElementBounding
NelsonYong Apr 2, 2025
b906275
docs: refactor useEventEmitter
NelsonYong Apr 2, 2025
063177e
docs: refactor useEventEmitter
NelsonYong Apr 2, 2025
cb68ff6
docs: refactor useExternal
NelsonYong Apr 2, 2025
fd2f781
docs: refactor useFavicon
NelsonYong Apr 2, 2025
67c4116
docs: refactor useFetchs
NelsonYong Apr 2, 2025
471a0a0
docs: refactor useFocusWithin
NelsonYong Apr 2, 2025
0e07d1a
docs: refactor useFormatResult
NelsonYong Apr 2, 2025
36009d7
docs: refactor useFullscreen
NelsonYong Apr 2, 2025
7d2a155
docs: refactor useHover
NelsonYong Apr 2, 2025
d0a6119
docs: refactor useImmer
NelsonYong Apr 2, 2025
802987d
docs: refactor useInfiniteScroll
NelsonYong Apr 2, 2025
e34dfaa
docs: refactor useInterval
NelsonYong Apr 2, 2025
be55707
docs: refactor useInViewport
NelsonYong Apr 2, 2025
9080187
docs: refactor useKeyPress
NelsonYong Apr 2, 2025
796a108
docs: refactor useLocalStorageState
NelsonYong Apr 2, 2025
bed79af
docs: refactor useLockFn
NelsonYong Apr 2, 2025
d37ebc1
docs: refactor useLongPress
NelsonYong Apr 2, 2025
12c1056
docs: refactor useMap
NelsonYong Apr 2, 2025
2a248d0
docs: refactor useMedia
NelsonYong Apr 2, 2025
cdf2cf3
docs: refactor useMouse
NelsonYong Apr 2, 2025
58be8f3
docs: refactor useMutationObserver
NelsonYong Apr 2, 2025
25d051a
docs: refactor useNetwork
NelsonYong Apr 2, 2025
2cddbde
docs: refactor usePrevious
NelsonYong Apr 2, 2025
1885406
docs: add demo
NelsonYong Apr 2, 2025
a462300
docs: refactor useResizeObserver
NelsonYong Apr 2, 2025
24f7f74
docs: refactor useScroll
NelsonYong Apr 2, 2025
dde1e7b
docs: refactor useSessionStorageState
NelsonYong Apr 2, 2025
79ec5a4
docs: refactor useSet
NelsonYong Apr 2, 2025
80e9238
docs: refactor useSetState
NelsonYong Apr 2, 2025
740367f
docs: refactor useSize
NelsonYong Apr 2, 2025
c1d4514
docs: refactor useThrottle
NelsonYong Apr 2, 2025
eb5f0c9
docs: refactor useThrottleFn
NelsonYong Apr 2, 2025
3621e12
docs: refactor useTimeout
NelsonYong Apr 2, 2025
1c25c60
docs: refactor useTitle
NelsonYong Apr 2, 2025
4b81100
docs: refactor useToggle
NelsonYong Apr 2, 2025
f0c15fd
docs: refactor useTrackedEffect
NelsonYong Apr 2, 2025
4d753b5
docs: refactor useUpdate
NelsonYong Apr 2, 2025
073b1c7
docs: refactor useUpdate
NelsonYong Apr 2, 2025
26c2a6b
docs: refactor useVirtualList
NelsonYong Apr 2, 2025
e82fcf5
docs: refactor useWebSocket
NelsonYong Apr 2, 2025
d81a125
docs: refactor useWinResize
NelsonYong Apr 2, 2025
dd55862
docs: refactor useWorker
NelsonYong Apr 2, 2025
255f301
docs: refactor useRequest
NelsonYong Apr 2, 2025
ab253b9
docs: add algolia
NelsonYong Apr 2, 2025
3e31f0a
docs: github page
NelsonYong Apr 2, 2025
c2914b6
chore: pnpm
NelsonYong Apr 2, 2025
41b1cf1
chore: pnpm
NelsonYong Apr 2, 2025
a3336e0
chore: pnpm
NelsonYong Apr 2, 2025
875e1e6
chore: pnpm
NelsonYong Apr 2, 2025
a5b835d
chore: pnpm
NelsonYong Apr 2, 2025
48f37b3
chore: pnpm
NelsonYong Apr 2, 2025
7e35ae8
chore: docs base
NelsonYong Apr 2, 2025
6bf6d6e
chore: docs base
NelsonYong Apr 2, 2025
d5232ca
chore: docs base
NelsonYong Apr 2, 2025
ae184f8
docs: logo
NelsonYong Apr 3, 2025
7a24751
docs: search
NelsonYong Apr 3, 2025
9fd4ef2
docs: search
NelsonYong Apr 3, 2025
59a9c30
docs: search
NelsonYong Apr 3, 2025
41c84d0
docs: search
NelsonYong Apr 3, 2025
721ac79
docs: search
NelsonYong Apr 3, 2025
c8395e1
docs: search
NelsonYong Apr 3, 2025
a1e3a9b
docs: search
NelsonYong Apr 3, 2025
e428770
docs: search
NelsonYong Apr 3, 2025
4329efe
docs: search
NelsonYong Apr 3, 2025
f63a1b2
test: fixed
NelsonYong Apr 3, 2025
66f079e
test: fixed
NelsonYong Apr 3, 2025
5f60fa7
test: fixed
NelsonYong Apr 3, 2025
4949df9
docs: pwa
NelsonYong Apr 3, 2025
2875d9e
docs: pwa
NelsonYong Apr 3, 2025
914dd87
docs: pwa
NelsonYong Apr 3, 2025
8cde19a
docs: pwa
NelsonYong Apr 3, 2025
982765b
docs: pwa
NelsonYong Apr 3, 2025
5f19cf1
docs: pwa
NelsonYong Apr 3, 2025
efdbe6e
docs: pwa
NelsonYong Apr 3, 2025
49e6833
docs: pwa
NelsonYong Apr 3, 2025
9ab86f3
docs: zh home
NelsonYong Apr 3, 2025
0520ece
docs: remove old
NelsonYong Apr 3, 2025
c8c6203
docs: remove old
NelsonYong Apr 3, 2025
7fc4923
docs: pwa
NelsonYong Apr 3, 2025
0f85358
docs: pwa icon
NelsonYong Apr 3, 2025
07142e9
docs: pwa icon
NelsonYong Apr 3, 2025
5ad8cc4
docs: pwa icon
NelsonYong Apr 3, 2025
311a316
docs: pwa icon
NelsonYong Apr 3, 2025
dd4a483
docs: pwa icon
NelsonYong Apr 3, 2025
f169ae6
docs: pwa icon
NelsonYong Apr 3, 2025
247831d
docs: pwa icon
NelsonYong Apr 3, 2025
9121a95
chore: ci
NelsonYong Apr 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 24 additions & 0 deletions .github/workflows/algolia.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
algolia:
needs: deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get the content of algolia.json as config
id: algolia_config
run: echo "::set-output name=config::$(cat algolia.json | jq -r tostring)"
- name: Push indices to Algolia
uses: signcl/docsearch-scraper-action@master
env:
APPLICATION_ID: ${{ secrets.APPLICATION_ID }}
API_KEY: ${{ secrets.API_KEY }}
CONFIG: ${{ steps.algolia_config.outputs.config }}
9 changes: 0 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,5 @@ jobs:
- name: Build Lib
run: |
pnpm build
- name: Build Docs plugin
run: |
cd packages/vitepress/vitepress-demo-block
pnpm run build
- name: Build Docs
run: |
cd packages/hooks
pnpm run initial
pnpm run docs:build
env:
CI: true
82 changes: 82 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# 构建 VitePress 站点并将其部署到 GitHub Pages 的示例工作流程
#
name: Deploy VitePress site to Pages

on:
# 在针对 `main` 分支的推送上运行。如果你
# 使用 `master` 分支作为默认分支,请将其更改为 `master`
push:
branches: [master]

# 允许你从 Actions 选项卡手动运行此工作流程
workflow_dispatch:

# 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# 只允许同时进行一次部署,跳过正在运行和最新队列之间的运行队列
# 但是,不要取消正在进行的运行,因为我们希望允许这些生产部署完成
concurrency:
group: pages
cancel-in-progress: false

jobs:
# 构建工作
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # 如果未启用 lastUpdated,则不需要
# - uses: pnpm/action-setup@v3 # 如果使用 pnpm,请取消此区域注释
# with:
# version: 9
# - uses: oven-sh/setup-bun@v1 # 如果使用 Bun,请取消注释

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> "$GITHUB_OUTPUT"

- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: pnpm # 或 pnpm / yarn
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
run: pnpm install # 或 pnpm install / yarn install / bun install
- name: Build with VitePress
run: pnpm docs:build # 或 pnpm docs:build / yarn docs:build / bun run docs:build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist

# 部署工作
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ dist
.DS_Store
.cache
.temp
cache
coverage
.docs


# lock
Expand Down
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
# npx --no-install commitlint --edit "$1"
2 changes: 1 addition & 1 deletion .markdownlint.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"no-inline-html": {
"allowed_elements": ["ul", "li", "div", "img", "a", "br", "script", "Badge", "Home"]
"allowed_elements": ["ul", "li", "div", "img", "a", "br", "script", "Badge", "Home","demo"]
},
"MD013": false,
"MD041": false
Expand Down
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
shamefully-hoist=true
auto-install-peers=true
strict-peer-dependencies=false
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
27 changes: 27 additions & 0 deletions algolia.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"index_name": "vue-hooks-plus-search",
"start_urls": ["https://inhiblabcore.github.io/vue-hooks-plus"],
"rateLimit": 8,
"maxDepth": 10,
"selectors": {
"lvl0": {
"selector": "",
"defaultValue": "Documentation"
},
"lvl1": ".content h1",
"lvl2": ".content h2",
"lvl3": ".content h3",
"lvl4": ".content h4",
"lvl5": ".content h5",
"content": ".content p, .content li",
"lang": {
"selector": "/html/@lang",
"type": "xpath",
"global": true,
"default_value": "zh-CN"
}
},
"custom_settings": {
"attributesForFaceting": ["lang"]
}
}
Loading
Loading