Skip to content

Commit

Permalink
feat: 前端导航添加新栏目
Browse files Browse the repository at this point in the history
  • Loading branch information
rzx007 committed Mar 9, 2024
1 parent 423617f commit ef0dfab
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 96 deletions.
1 change: 1 addition & 0 deletions docs/navs/components/MNavLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const svg = computed(() => {
height: 100%;
background-color: var(--vp-c-bg-soft);
transition: all 0.25s;
text-decoration: none;
&:hover {
box-shadow: var(--vp-shadow-2);
border-color: var(--vp-c-brand);
Expand Down
12 changes: 12 additions & 0 deletions docs/navs/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,18 @@ export const NAV_DATA: NavData[] = [
title: 'ElysiaJS',
desc: 'ElysiaJS is a fast, and friendly Bun web framework.',
link: 'https://elysiajs.com/'
},
{
icon: 'https://nitro.unjs.io/icon.svg',
title: 'Nitro',
desc: '下一代服务器工具包。创建一个包含您所需的一切的Web服务器,并将其部署到您喜欢的任何位置。',
link: 'https://nitro.unjs.com/'
},
{
icon: 'https://bestofjs.org/logos/strapi.svg',
title: 'Strapi',
desc: '领先的开源Headless CMS。 100% JavaScript / TypeScript,完全可定制。',
link: 'https://strapi.io/'
}
]
},
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@
"license": "MIT",
"homepage": "https://github.com/rzx007/nav.git#readme",
"devDependencies": {
"@femm/prettier": "^1.0.2",
"@mdit-vue/shared": "^0.12.0",
"@femm/prettier": "^1.1.0",
"@mdit-vue/shared": "^0.12.1",
"@types/escape-html": "^1.0.4",
"@types/markdown-it": "^13.0.6",
"@types/markdown-it": "^13.0.7",
"@types/markdown-it-container": "^2.0.9",
"@types/node": "^18.16.3",
"@types/node": "^18.19.22",
"@types/prismjs": "^1.26.3",
"cross-env": "^7.0.3",
"husky": "^8.0.3",
"lint-staged": "^13.2.2",
"lint-staged": "^13.3.0",
"prettier": "^2.8.8",
"sass": "^1.58.3",
"sass": "^1.71.1",
"vitepress": "1.0.0-rc.39",
"vue": "^3.2.47"
"vue": "^3.4.21"
},
"prettier": "@femm/prettier",
"lint-staged": {
Expand Down
Loading

0 comments on commit ef0dfab

Please sign in to comment.