forked from vbenjs/vue-vben-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
113 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# 每次 git pull 之后, 安装依赖 | ||
|
||
pnpm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ import { preferences } from '@vben-core/preferences'; | |
import { $t } from '#/locales'; | ||
import { resetRoutes } from '#/router'; | ||
import { useAppStore } from '#/store'; | ||
import { useAccessStore, useAppStore } from '#/store'; | ||
const notifications = ref<NotificationItem[]>([ | ||
{ | ||
|
@@ -81,6 +81,7 @@ const menus = computed(() => [ | |
]); | ||
const appStore = useAppStore(); | ||
const { userInfo } = useAccessStore(); | ||
const router = useRouter(); | ||
async function handleLogout() { | ||
|
@@ -102,11 +103,11 @@ function handleMakeAll() { | |
<BasicLayout @clear-preferences-and-logout="handleLogout"> | ||
<template #user-dropdown> | ||
<UserDropdown | ||
:avatar="preferences.app.defaultAvatar" | ||
:avatar="userInfo?.avatar ?? preferences.app.defaultAvatar" | ||
:menus="menus" | ||
:text="userInfo?.realName" | ||
description="[email protected]" | ||
tag-text="Pro" | ||
text="Vben Admin" | ||
@logout="handleLogout" | ||
/> | ||
</template> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,12 +27,12 @@ export default defineConfig({ | |
icons: [ | ||
{ | ||
sizes: '192x192', | ||
src: 'https://cdn.jsdelivr.net/npm/@vbenjs/[email protected].1/source/pwa-icon-192.png', | ||
src: 'https://cdn.jsdelivr.net/npm/@vbenjs/[email protected].3/source/pwa-icon-192.png', | ||
type: 'image/png', | ||
}, | ||
{ | ||
sizes: '512x512', | ||
src: 'https://cdn.jsdelivr.net/npm/@vbenjs/[email protected].1/source/pwa-icon-512.png', | ||
src: 'https://cdn.jsdelivr.net/npm/@vbenjs/[email protected].3/source/pwa-icon-512.png', | ||
type: 'image/png', | ||
}, | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ const defaultPreferences: Preferences = { | |
compact: false, | ||
contentCompact: 'wide', | ||
defaultAvatar: | ||
'https://cdn.jsdelivr.net/npm/@vbenjs/[email protected].0/source/avatar-v1.webp', | ||
'https://cdn.jsdelivr.net/npm/@vbenjs/[email protected].3/source/avatar-v1.webp', | ||
dynamicTitle: true, | ||
enablePreferences: true, | ||
isMobile: false, | ||
|
@@ -46,7 +46,7 @@ const defaultPreferences: Preferences = { | |
logo: { | ||
enable: true, | ||
source: | ||
'https://cdn.jsdelivr.net/npm/@vbenjs/[email protected].0/source/logo-v1.webp', | ||
'https://cdn.jsdelivr.net/npm/@vbenjs/[email protected].3/source/logo-v1.webp', | ||
}, | ||
navigation: { | ||
accordion: true, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { defineBuildConfig } from 'unbuild'; | ||
|
||
export default defineBuildConfig({ | ||
clean: true, | ||
declaration: true, | ||
entries: ['src/index'], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,5 @@ const VBEN_GITHUB_URL = 'https://github.com/vbenjs/vue-vben-admin'; | |
* @zh_CN Vben Logo | ||
*/ | ||
const VBEN_LOGO = | ||
'https://cdn.jsdelivr.net/npm/@vbenjs/[email protected].1/source/logo-v1.webp'; | ||
'https://cdn.jsdelivr.net/npm/@vbenjs/[email protected].3/source/logo-v1.webp'; | ||
export { VBEN_GITHUB_URL, VBEN_LOGO }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,35 @@ | ||
import { defineConfigWithTheme } from 'vitepress'; | ||
|
||
export default defineConfigWithTheme({ | ||
description: 'Vben Admin Pro Doc', | ||
description: 'Vben Admin Pro & 企业级管理系统框架', | ||
lang: 'zh-CN', | ||
|
||
locales: { | ||
en: { | ||
label: 'English', | ||
lang: 'en', | ||
link: '/en/index', | ||
}, | ||
root: { | ||
label: '简体中文', | ||
lang: 'zh-CN', | ||
}, | ||
}, | ||
srcDir: 'src', | ||
themeConfig: { | ||
editLink: { | ||
pattern: 'https://github.com/vbenjs/vue-vben-admin/edit/main/docs/:path', | ||
text: 'Edit this page on GitHub', | ||
}, | ||
footer: { | ||
copyright: 'Copyright © 2024-present Vben Admin Pro', | ||
}, | ||
i18nRouting: true, | ||
logo: 'https://cdn.jsdelivr.net/npm/@vbenjs/[email protected]/source/logo-v1.webp', | ||
nav: [ | ||
{ link: '/', text: 'Home' }, | ||
{ link: '/markdown-examples', text: 'Examples' }, | ||
], | ||
|
||
sidebar: [ | ||
{ | ||
text: 'Examples', | ||
|
@@ -19,12 +39,11 @@ export default defineConfigWithTheme({ | |
], | ||
}, | ||
], | ||
|
||
siteTitle: 'Vben Admin Pro', | ||
socialLinks: [ | ||
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }, | ||
{ icon: 'github', link: 'https://github.com/vbenjs/vue-vben-admin' }, | ||
], | ||
}, | ||
title: 'Vben Admin Pro', | ||
vite: { | ||
build: { | ||
chunkSizeWarningLimit: Infinity, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
# https://vitepress.dev/reference/default-theme-home-page | ||
layout: home | ||
sidebar: false | ||
|
||
hero: | ||
name: 'Vben Admin Pro' | ||
text: '企业级管理系统框架 - EN' | ||
tagline: 开箱即用,简单高效 | ||
image: | ||
src: https://cdn.jsdelivr.net/npm/@vbenjs/[email protected]/source/logo-v1.webp | ||
alt: Vben Admin Pro | ||
actions: | ||
- theme: brand | ||
text: 开始 | ||
link: /guide/ | ||
- theme: alt | ||
text: 在 GitHub 查看 | ||
link: https://github.com/vbenjs/vue-vben-admin | ||
|
||
features: | ||
- title: Feature A | ||
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit | ||
- title: Feature B | ||
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit | ||
- title: Feature C | ||
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
--- | ||
# https://vitepress.dev/reference/default-theme-home-page | ||
layout: home | ||
sidebar: false | ||
|
||
hero: | ||
name: 'My Awesome Project' | ||
text: 'A VitePress Site' | ||
tagline: My great project tagline | ||
name: 'Vben Admin Pro' | ||
text: '企业级管理系统框架' | ||
tagline: 开箱即用,简单高效 | ||
image: | ||
src: https://cdn.jsdelivr.net/npm/@vbenjs/[email protected]/source/logo-v1.webp | ||
alt: Vben Admin Pro | ||
actions: | ||
- theme: brand | ||
text: Markdown Examples | ||
link: /markdown-examples | ||
text: 开始 | ||
link: /guide/ | ||
- theme: alt | ||
text: API Examples | ||
link: /api-examples | ||
text: 在 GitHub 查看 | ||
link: https://github.com/vbenjs/vue-vben-admin | ||
|
||
features: | ||
- title: Feature A | ||
|