Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
8d64c59
feat: Add category search function, update related translations and c…
xjh22222228 Mar 13, 2025
5dd298b
feat: Update logo component to ensure icon is always displayed, modif…
xjh22222228 Mar 14, 2025
25da8ff
feat: Change the import statement to type import
xjh22222228 Mar 15, 2025
7ad5df7
feat: Enhance CreateWebComponent with URL validation and improve noti…
xjh22222228 Mar 16, 2025
1a8955b
feat: Add getWebById function to retrieve web data by ID; enhance Col…
xjh22222228 Mar 17, 2025
0f1d6e3
feat: Add .npmrc for shamefully-hoist configuration; update CI workfl…
xjh22222228 Mar 18, 2025
95922fd
feat: Delete. navauth file, optimize Vercel configuration, refactor r…
xjh22222228 Mar 21, 2025
f6bd01d
feat: Add poster cards and screenshot the website
xjh22222228 Mar 22, 2025
ae49dad
release: v13.0.0
xjh22222228 Mar 22, 2025
228ebb1
fix: Modify the re check link and optimize the crawler information
xjh22222228 Mar 23, 2025
dd21378
refactor: Improve the expansion logic of the sidebar
xjh22222228 Mar 24, 2025
a5eb1ee
fix: Fix the top display of website creation
xjh22222228 Mar 24, 2025
badcf04
feat: Add a configuration page to adapt to your own deployment
xjh22222228 Mar 25, 2025
b657c51
feat: Add website shortcut key function and related configuration
xjh22222228 Mar 26, 2025
4e4f79f
refactor: Clean up unused code and improve background image handling
xjh22222228 Mar 27, 2025
1305f40
feat: Reduce data size and increase reference identification
xjh22222228 Mar 28, 2025
70cc62a
release: v14.0.0
xjh22222228 Mar 28, 2025
b3a8dc5
feat: Add streaming crawling information
xjh22222228 Mar 30, 2025
8e6d814
feat: Improve search engine popover trigger and fix tags to be empty
xjh22222228 Apr 1, 2025
371eeba
feat: Share website using ID
xjh22222228 Apr 3, 2025
43d9b2c
feat: Add tag sorting index
xjh22222228 Apr 5, 2025
879728a
feat: Add classification tab for quick positioning
xjh22222228 Apr 6, 2025
c5d19ea
fix: Remove the website ID created
xjh22222228 Apr 8, 2025
ef9d227
fix: Fix possible flickering issue with the scrollbar
xjh22222228 Apr 9, 2025
f4e8cb3
release: v15.0.0
xjh22222228 Apr 9, 2025
a39eef8
style: Optimize the side UI
xjh22222228 Apr 9, 2025
3f1aee4
refactor: Adaptation of backend system to mobile devices
xjh22222228 Apr 10, 2025
e60332f
feat: Support GitLab platform
xjh22222228 Apr 11, 2025
0f7234f
feat: Optimization of widget list display
xjh22222228 Apr 12, 2025
9688180
feat: add news widget
xjh22222228 Apr 13, 2025
7c39677
feat: add news toutiao
xjh22222228 Apr 14, 2025
f49b817
feat: Add icon card style
xjh22222228 Apr 15, 2025
a632d2c
release: v16.0.0
xjh22222228 Apr 15, 2025
2e02b8a
docs: update
xjh22222228 Apr 15, 2025
edd2913
feat: Add background color selection function to news component
xjh22222228 Apr 16, 2025
b1d9436
feat: Add HackerNews, Zhihu type to news component
xjh22222228 Apr 16, 2025
b913bdf
refactor: refactoring responsive layout and adjusting dark mode & Add…
xjh22222228 Apr 17, 2025
218f4d1
feat: Search for adding logo image
xjh22222228 Apr 18, 2025
d2451a1
feat: Adjust search size and increase image storage separation
xjh22222228 Apr 19, 2025
f8c7906
feat: Import data supports all data imports
xjh22222228 Apr 20, 2025
ee17203
feat: Add conditional rendering to ensure that side image components …
xjh22222228 Apr 22, 2025
da2c647
feat: Update search engine icons and improve layout responsiveness
xjh22222228 Apr 22, 2025
36e7574
feat: adjust style layout
xjh22222228 Apr 23, 2025
34599f8
feat: refactor commit handling and improve local storage cleanup logic
xjh22222228 Apr 29, 2025
334e55c
fix: add missing commas in various components and services for consis…
xjh22222228 Apr 29, 2025
a8a788c
Refactor FixbarComponent: Remove unnecessary handleOpen call in toggl…
xjh22222228 May 1, 2025
0572c46
feat: update tag visibility and UI enhancements
xjh22222228 May 8, 2025
01ca0ba
feat: add news data handling and cron job for periodic updates
xjh22222228 May 12, 2025
4f427d6
feat: enhance file write feedback and add refresh option in updateFil…
xjh22222228 May 13, 2025
0655760
Refactor navigation handling and settings access across components
xjh22222228 May 14, 2025
963e038
release: v17.0.0
xjh22222228 May 14, 2025
6e280a4
feat: Add secure HTML conversion function and optimize navigation dat…
xjh22222228 May 14, 2025
1186455
feat: add PWA support with manifest and icons
xjh22222228 May 15, 2025
4614652
feat: Upload files to the website root directory
xjh22222228 May 16, 2025
92c5140
feat(upload-file): remove image type restriction for file uploads
xjh22222228 May 18, 2025
8f8499d
feat: Remove unnecessary clipboard dependencies and optimize replicat…
xjh22222228 May 19, 2025
b7bad3d
feat: Update condition for form item visibility and fix navs function…
xjh22222228 May 25, 2025
2c7d24c
feat: Modify the successful prompt information to a unified synchroni…
xjh22222228 May 25, 2025
44a3af6
docs: update
xjh22222228 Jun 5, 2025
3bd22d5
feat: Add a carousel component and search category to click navigation
xjh22222228 Jun 22, 2025
420755e
feat: Add oxlint configuration
xjh22222228 Jun 24, 2025
1c4f540
feat: implement responsive sidebar component with collapsible functio…
xjh22222228 Jul 23, 2025
3242262
feat: remove background color from logo component styles
xjh22222228 Jul 30, 2025
d6f720d
Refactor navigation handling and add holiday feature
xjh22222228 Aug 5, 2025
88edfdd
fix: Refactor ID management in utils.ts and improve SwiperComponent i…
xjh22222228 Aug 21, 2025
dbb24c9
refactor: Consolidate delete functions and update component imports
xjh22222228 Aug 21, 2025
5af9002
fix: update site-box styles for responsive design
xjh22222228 Sep 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 0 additions & 93 deletions .eslintrc.js

This file was deleted.

4 changes: 0 additions & 4 deletions .gitattributes

This file was deleted.

16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@ name: Build web
on:
push:
branches:
- dev
- master
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
uses: actions/checkout@v4
- name: Set Node.js
uses: actions/setup-node@v3
with:
node-version: 22.x
- name: Install
uses: borales/actions-yarn@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
cmd: install
version: 10
- name: Install
run: |
pnpm install
# dist/404.html: gh-pages history mode
- name: Build
run: |
Expand All @@ -29,6 +29,6 @@ jobs:
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: dist/browser
10 changes: 8 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ yarn-error.log
*.sublime-workspace

# Visual Studio Code
.vscode/*
.vscode
.history/*

# Miscellaneous
Expand All @@ -43,6 +43,12 @@ nav.config.json
_upload
test.md
data/collect.json
data/serverdb.json
data/news.json
data/backup.json
/.dockerignore
/Dockerfile
.next
.next

log/
logs/
1 change: 0 additions & 1 deletion .navauth

This file was deleted.

1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
shamefully-hoist=true
11 changes: 11 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"rules": {
"no-this-alias": 0,
"no-unused-vars": [
"error",
{
"ignoreRestSiblings": true
}
]
}
}
4 changes: 0 additions & 4 deletions .vscode/extensions.json

This file was deleted.

15 changes: 0 additions & 15 deletions .vscode/launch.json

This file was deleted.

42 changes: 0 additions & 42 deletions .vscode/tasks.json

This file was deleted.

38 changes: 20 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,19 @@
/>
</picture>

## 特性
## 设计理念

无数据库、无服务器、零成本一键部署、开箱即用,但又可以像数据库那样操纵数据和保存。

好用、简单、强大。

三不需:`无需数据库`、`无需服务器`、`无需成本`
[谁在使用?](https://official.nav3.cn/?id=3)

`发现导航` 的理念就是做一款无需依赖后端服务既简单又方便,没有繁杂的配置和数据库等配置概念, 做到开箱即用。
## 特性

- 🍰 内置 `800+` 优质网站
- 🍰 支持 [码云 Gitee](https://gitee.com/xiejiahe/nav)
- 🍰 支持 [GitLab](https://gitlab.com/xjh22222228/nav)
- 🍰 支持从浏览器书签导入
- 🍰 支持将数据导出到浏览器书签
- 🍰 支持 AI 翻译
Expand All @@ -60,6 +65,7 @@
- 🍰 支持多种搜索查询
- 🍰 支持自定义引擎搜索
- 🍰 支持卡片广告展示
- 🍰 支持 PWA 应用
- 🍰 多款高颜值主题切换
- 🍰 强大的响应式系统
- 🍰 多种 Loading 加载动画
Expand Down Expand Up @@ -87,15 +93,15 @@

1、右上角点击 `Fork` 当前项目。

2、[https://github.com/settings/tokens/new](https://github.com/settings/tokens/new) 申请 `token`, 勾选相应的权限, 如果不懂就全部选中,复制并保存 Token;[Gitee 申请点这里](https://gitee.com/profile/personal_access_tokens/new)
2、[https://github.com/settings/tokens/new](https://github.com/settings/tokens/new) 申请 `token`, 勾选读写权限, 复制并保存 Token

3、https://github.com/你的用户名/nav/settings/secrets/actions/new 添加申请的 token, name 填写 `TOKEN` 大写。
3、打开 https://github.com/你的用户名/nav/actions 检查是否已开启 action 自动部署

4、打开 https://github.com/你的用户名/nav/actions 开启 action 自动部署
4、修改项目根目录配置文件 [nav.config.yaml](nav.config.yaml) 只需要修改仓库地址 `gitRepoUrl` 字段

5、修改项目根目录配置文件 [nav.config.yaml](nav.config.yaml) 只需要修改仓库地址 `gitRepoUrl` 字段
5、打开 https://你的用户名.github.io/nav 就能看到一个非常强大的导航网站了。

6、打开 https://你的用户名.github.io/nav 就能看到一个非常强大的导航网站了
如果打开 404,请打开 https://github.com/你的用户名/nav/settings/pages 检查分支是否是 **gh-pages**

#### Netlify 推荐(免费)

Expand All @@ -107,34 +113,30 @@

[https://github.com/apps/vercel](https://github.com/apps/vercel)

#### Cloudflare pages 推荐(免费)

[https://www.cloudflare.com/zh-cn](https://www.cloudflare.com/zh-cn)

## 配置说明

只需要修改根目录 `nav.config.yaml` 以下相关字段
|Fork |自有部署 | 字段 | 说明 |
| --------------------------------------------- | -------- |--- |--- |
|√ | | gitRepoUrl | 填写您的仓库地址 |
|√ | | branch | 部署分支 |
|√ | | imageRepoUrl | 图片仓库, 默认主仓库 `https://github.com/xjh22222228/image?branch=main` |
|√ | √| hashMode | 路由是否 Hash 模式, 如果是部署在 `github pages` 务必设为 true |
|√ | √| email | 用户提交收录通知 |
| | √| password | 自有部署登录密码,`Fork` 用户无需填写 |
| | √| address | 自有部署, 一旦填写认为你是自有部署 |
|√| √| email | 用户提交收录通知 |
| | √| mailConfig | 自有部署,用户收录通知邮箱配置 |
|√ | | imageRepoUrl | 图片仓库, 默认主仓库 `https://github.com/xjh22222228/image?branch=main` |

## 后台

将路由地址修改为 `system` 即可进入,如: https://www.nav3.cn 修改为 https://www.nav3.cn/system

## 升级

#### 自动

仅限于 `Fork` 用户

[点这里安装 Pull](https://github.com/apps/pull) , 只要有升级会自动给你的仓库提交 `Pull Requests` 点击合并即可。

#### 手动

将你的仓库克隆下来执行以下命令

```bash
Expand Down
Loading