Skip to content

Commit

Permalink
refactor:重构框架
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghang committed Sep 22, 2024
1 parent 4813541 commit 33576a6
Show file tree
Hide file tree
Showing 188 changed files with 12,516 additions and 29 deletions.
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
pnpm-lock.yaml
package-lock.yaml
node_modules
dist
dist-ssr
*.local
pnpm-lock.yaml
lib

# Editor directories and files
.vscode/*
!.vscode/extensions.json
Expand All @@ -22,4 +25,4 @@ pnpm-lock.yaml
*.sln
*.sw?
cache
lib

27 changes: 0 additions & 27 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,6 @@ lerna-debug.log*
pnpm-lock.yaml
package-lock.yaml
node_modules
<<<<<<< HEAD
.DS_Store
dist
dist-ssr
egg
bag-utils
www
iepack
src
docs
.idea
docdist
public
.editorconfig
.eslintrc.cjs
.npmignore
.release-it.json
tsconfig.json
tsconfig.node.json
vite.config.ts
stats.html
mock
config
.gitattributes
gulpfile.js
=======
dist
dist-ssr
*.local
Expand All @@ -61,4 +35,3 @@ jsconfig.json
vite.config.js


>>>>>>> develop
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# 当前最新版本

目前正在构建中,更小的体积,更高更自由的扩展


# 小技巧
@vue.monu





86 changes: 86 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
import {defineConfig} from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "Vue-Bag-Admin",
description: "旨在让开发者能够以最小的成本完成开发降低重复工作",
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{text: '🐻‍首页️', link: '/'},
{text: '演示', link: '/markdown-examples'}
],

sidebar: [
{
text: '入门指南',
items: [
{text: '介绍', link: '/guide/intro'},
{text: '入门指南', link: '/guide/started'},
{text: '发布部署', link: '/guide/deploy'}
]
},
{
text: '开始使用',
items: [
{text: '安装', link: '/guide/install'},
{text: '快速开始', link: '/guide/start'},
{
text: '插件列表',
items: [
{text: '路由插件', link: '/plugins/router'},
{text: '布局插件', link: '/plugins/layout'},
{text: '多语言插件', link: '/plugins/language'},
{text: '图标插件', link: '/plugins/icon'},
{text: 'API插件', link: '/plugins/api'},
{text: '进度条插件', link: '/plugins/progress'},
]
},
{text: '路由布局', link: '/guide/router'},
{text: '全局扩展', link: '/guide/global'},
{text: '表单组件', link: '/guide/comp'},
{text: 'Css原子化', link: '/guide/css'},
{text: 'Pinia状态管理', link: '/guide/pinia'},
]
},
{
text: '高级用法',
items: [
{text: '插件开发', link: '/plugins/exploit'},
{text: '自动导入', link: '/usage/import'},
{text: 'Vite插件', link: '/usage/vite'},
]
},
{
text: 'Strapi',
items: [
{text: 'API服务', link: '/strapi/install'},
]
},
],

socialLinks: [
{icon: 'instagram', link: 'https://github.com/vuejs/vitepress'}
],
// 设置搜索框的样式
search: {
provider: "local",
options: {
translations: {
button: {
buttonText: "搜索文档",
buttonAriaLabel: "搜索文档",
},
modal: {
noResultsText: "无法找到相关结果",
resetButtonTitle: "清除查询条件",
footer: {
selectText: "选择",
navigateText: "切换",
},
},
},
},
},
},
})
6 changes: 6 additions & 0 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import Theme from 'vitepress/theme'
import './style/var.css'

export default {
...Theme
}
20 changes: 20 additions & 0 deletions docs/.vitepress/theme/style/var.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
:root {
--vp-c-brand: #00e6ff;
--vp-c-brand-light: #00e6ffd4;
--vp-c-brand-lighter: #a0d911;
--vp-c-brand-lightest: #bcc0ff;
--vp-c-brand-dark: #00e5ffd4;
--vp-c-brand-darker: #00e5ffd4;
--vp-c-brand-dimm: rgba(100, 108, 255, 0.08);
/* 标题 */
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: linear-gradient( 135deg, #00e6ff 10%, #a0d911 100%);

/* 图标背景 */
--vp-home-hero-image-background-image: linear-gradient( 135deg, #00e6ff 10%, #a0d911 100%);
--vp-home-hero-image-filter: blur(180px);
}

.custom-block.tip {
border-color: var(--vp-c-brand);
}
49 changes: 49 additions & 0 deletions docs/api-examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
outline: deep
---

# Runtime API Examples

This page demonstrates usage of some of the runtime APIs provided by VitePress.

The main `useData()` API can be used to access site, theme, and page data for the current page. It works in both `.md` and `.vue` files:

```md
<script setup>
import { useData } from 'vitepress'

const { theme, page, frontmatter } = useData()
</script>

## Results

### Theme Data
<pre>{{ theme }}</pre>

### Page Data
<pre>{{ page }}</pre>

### Page Frontmatter
<pre>{{ frontmatter }}</pre>
```

<script setup>
import { useData } from 'vitepress'

const { site, theme, page, frontmatter } = useData()
</script>

## Results

### Theme Data
<pre>{{ theme }}</pre>

### Page Data
<pre>{{ page }}</pre>

### Page Frontmatter
<pre>{{ frontmatter }}</pre>

## More

Check out the documentation for the [full list of runtime APIs](https://vitepress.dev/reference/runtime-api#usedata).
Loading

0 comments on commit 33576a6

Please sign in to comment.