Skip to content

Commit

Permalink
更改仓库地址
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmao88 committed Mar 1, 2022
1 parent 702f4af commit be78712
Show file tree
Hide file tree
Showing 26 changed files with 98 additions and 98 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
with:
tag_name: ${{ github.ref }}
body: |
Please refer to [CHANGELOG.md](https://github.com/anncwb/vue-vben-admin-doc/blob/main/CHANGELOG.md) for details.
Please refer to [CHANGELOG.md](https://github.com/vbenjs/vue-vben-admin-doc/blob/main/CHANGELOG.md) for details.
12 changes: 6 additions & 6 deletions .vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ module.exports = {
description: '一个开箱即用的前端框架',
head: createHead(),
themeConfig: {
repo: 'anncwb/vue-vben-admin',
docsRepo: 'anncwb/vue-vben-admin-doc',
repo: 'vbenjs/vue-vben-admin',
docsRepo: 'vbenjs/vue-vben-admin-doc',
logo: '/logo.png',
docsBranch: 'main',
editLinks: true,
Expand Down Expand Up @@ -106,23 +106,23 @@ function createNav() {
},
{
text: '完整版源码',
link: 'https://github.com/anncwb/vue-vben-admin',
link: 'https://github.com/vbenjs/vue-vben-admin',
},
{
text: '精简版预览',
link: 'https://vvbin.cn/thin/next',
},
{
text: '精简版源码',
link: 'https://github.com/anncwb/vben-admin-thin-next',
link: 'https://github.com/vbenjs/vben-admin-thin-next',
},
{
text: '文档源码',
link: 'https://github.com/anncwb/vue-vben-admin-doc',
link: 'https://github.com/vbenjs/vue-vben-admin-doc',
},
{
text: '更新日志',
link: 'https://github.com/anncwb/vue-vben-admin/blob/main/CHANGELOG.md',
link: 'https://github.com/vbenjs/vue-vben-admin/blob/main/CHANGELOG.md',
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme-default/components/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div v-if="repo" class="item">
<a
class="nav-btn"
href="https://github.com/anncwb/vue-vben-admin"
href="https://github.com/vbenjs/vue-vben-admin"
target="_blank"
aria-label="View GitHub Repo"
>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

```bash
# 克隆本仓库
$ git clone [email protected]:anncwb/vue-vben-admin-doc.git
$ git clone [email protected]:vbenjs/vue-vben-admin-doc.git

# 或者使用 yarn
$ yarn install
Expand Down
4 changes: 2 additions & 2 deletions components/form.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,11 @@ updateSchema([

### ColEx

[src/components/Form/src/types/index.ts](https://github.com/anncwb/vue-vben-admin/tree/main/src/components/Form/src/types/index.ts)
[src/components/Form/src/types/index.ts](https://github.com/vbenjs/vue-vben-admin/tree/main/src/components/Form/src/types/index.ts)

### ActionButtonOption

[BasicButtonProps](https://github.com/anncwb/vue-vben-admin/tree/main/src/components/Button/types.ts)
[BasicButtonProps](https://github.com/vbenjs/vue-vben-admin/tree/main/src/components/Button/types.ts)

```ts
export interface ButtonProps extends BasicButtonProps {
Expand Down
4 changes: 2 additions & 2 deletions components/icon.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

用于项目内组件的展示,基本支持所有图标库(支持按需加载,只打包所用到的图标)

icon 组件位于 [src/components/Icon](https://github.com/anncwb/vue-vben-admin/tree/main/src/components/Icon)
icon 组件位于 [src/components/Icon](https://github.com/vbenjs/vue-vben-admin/tree/main/src/components/Icon)

::: tip

Expand Down Expand Up @@ -105,6 +105,6 @@ icon 的值可以在 [Iconify](https://iconify.design) 或 [Netlify](https://ico
::: tip mode 说明

- `mode``iconify`时,会使用预生成的[图标集数据](../dep/icon.html#图标集预生成)作为备选图标池
- `mode``svg`时,会使用 `/src/assets/icons` 下的所有svg图标(可包含一级子目录)作为备选图标池,详见[vite-plugin-svg-icons](https://github.com/anncwb/vite-plugin-svg-icons/blob/main/README.zh_CN.md#vite-plugin-svg-icons)
- `mode``svg`时,会使用 `/src/assets/icons` 下的所有svg图标(可包含一级子目录)作为备选图标池,详见[vite-plugin-svg-icons](https://github.com/vbenjs/vite-plugin-svg-icons/blob/main/README.zh_CN.md#vite-plugin-svg-icons)

:::
2 changes: 1 addition & 1 deletion components/modal.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

对 antv 的 modal 组件进行封装,扩展拖拽,全屏,自适应高度等功能

代码路径 [src/components/Modal](https://github.com/anncwb/vue-vben-admin/tree/main/src/components/Modal)
代码路径 [src/components/Modal](https://github.com/vbenjs/vue-vben-admin/tree/main/src/components/Modal)

## Usage

Expand Down
2 changes: 1 addition & 1 deletion components/table.md
Original file line number Diff line number Diff line change
Expand Up @@ -699,4 +699,4 @@ export interface PopConfirm {

## 全局配置

[componentsSettings](https://github.com/anncwb/vue-vben-admin/tree/main/src/settings/componentSetting.ts) 可以配置全局参数。用于统一整个项目的风格。可以通过 props 传值覆盖
[componentsSettings](https://github.com/vbenjs/vue-vben-admin/tree/main/src/settings/componentSetting.ts) 可以配置全局参数。用于统一整个项目的风格。可以通过 props 传值覆盖
4 changes: 2 additions & 2 deletions components/tinymce.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Tinymce

富文本组件位于 [src/components/TinyMce](https://github.com/anncwb/vue-vben-admin/tree/main/src/components/Tinymce)
富文本组件位于 [src/components/TinyMce](https://github.com/vbenjs/vue-vben-admin/tree/main/src/components/Tinymce)

::: tip 富文本组件使用的是 CDN 方式引入

可在 [/@/components/TinyMce/src/Editor.vue](https://github.com/anncwb/vue-vben-admin/tree/main/src/components/Tinymce/src/Editor.vue) 更改下面 CDN 地址
可在 [/@/components/TinyMce/src/Editor.vue](https://github.com/vbenjs/vue-vben-admin/tree/main/src/components/Tinymce/src/Editor.vue) 更改下面 CDN 地址

```ts
const CDN_URL = 'https://cdn.bootcdn.net/ajax/libs/tinymce/5.5.1';
Expand Down
6 changes: 3 additions & 3 deletions dep/dark.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

## 原理

通过 [vite-plugin-theme](https://github.com/anncwb/vite-plugin-theme) 插件,将所有的颜色变量抽取到独立的 css 文件,并且全部在 html 上面加上 css 选择器。通过改变 html 标签的 `data-theme` 属性来进行黑暗主题切换
通过 [vite-plugin-theme](https://github.com/vbenjs/vite-plugin-theme) 插件,将所有的颜色变量抽取到独立的 css 文件,并且全部在 html 上面加上 css 选择器。通过改变 html 标签的 `data-theme` 属性来进行黑暗主题切换

## 配置

黑暗主题颜色配置通过 [vite-plugin-theme](https://github.com/anncwb/vite-plugin-theme) 实现,具体代码在 `build/vite/plugin/theme`
黑暗主题颜色配置通过 [vite-plugin-theme](https://github.com/vbenjs/vite-plugin-theme) 实现,具体代码在 `build/vite/plugin/theme`

```ts
antdDarkThemePlugin({
Expand All @@ -29,7 +29,7 @@ antdDarkThemePlugin({

## 切换

只需要使用 [vite-plugin-theme](https://github.com/anncwb/vite-plugin-theme) 提供的函数来进行切换即可
只需要使用 [vite-plugin-theme](https://github.com/vbenjs/vite-plugin-theme) 提供的函数来进行切换即可

```ts
import { darkCssIsReady, loadDarkThemeCss } from 'vite-plugin-theme/es/client';
Expand Down
22 changes: 11 additions & 11 deletions dep/i18n.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

## 配置默认语言

[src/settings/localeSetting.ts](https://github.com/anncwb/vue-vben-admin/tree/main/src/settings/localeSetting.ts) 内可以配置默认语言
[src/settings/localeSetting.ts](https://github.com/vbenjs/vue-vben-admin/tree/main/src/settings/localeSetting.ts) 内可以配置默认语言

```ts
export const LOCALE: { [key: string]: LocaleType } = {
Expand Down Expand Up @@ -44,11 +44,11 @@ export const localeList: DropMenu[] = [

## 配置

[src/locales/setupI18n.ts](https://github.com/anncwb/vue-vben-admin/tree/main/src/locales/setupI18n.ts) 内引入的 i18n 这个无需修改
[src/locales/setupI18n.ts](https://github.com/vbenjs/vue-vben-admin/tree/main/src/locales/setupI18n.ts) 内引入的 i18n 这个无需修改

### 语言文件

[src/locales/lang/](https://github.com/anncwb/vue-vben-admin/tree/main/src/locales/lang) 可以配置具体的语言
[src/locales/lang/](https://github.com/vbenjs/vue-vben-admin/tree/main/src/locales/lang) 可以配置具体的语言

```bash
# locales/lang/
Expand All @@ -68,7 +68,7 @@ en: 同上

1. 初始化

[src/locales/setupI18n](https://github.com/anncwb/vue-vben-admin/tree/main/src/locales/setupI18n.ts) 内的根语言文件可以看到
[src/locales/setupI18n](https://github.com/vbenjs/vue-vben-admin/tree/main/src/locales/setupI18n.ts) 内的根语言文件可以看到

```ts
const defaultLocal = await import(`./lang/${locale}.ts`);
Expand Down Expand Up @@ -122,7 +122,7 @@ const title = t('components.modal.title');

## 切换语言

切换语言需要使用 [src/locales/useLocale.ts](https://github.com/anncwb/vue-vben-admin/tree/main/src/locales/useLocale.ts)
切换语言需要使用 [src/locales/useLocale.ts](https://github.com/vbenjs/vue-vben-admin/tree/main/src/locales/useLocale.ts)

```ts
import { useLocale } from '/@/locales/useLocale';
Expand All @@ -136,17 +136,17 @@ changeLocale('en');

### 语言文件

[src/locales/lang/](https://github.com/anncwb/vue-vben-admin/tree/main/src/locales/lang) 增加对应语言的文件即可
[src/locales/lang/](https://github.com/vbenjs/vue-vben-admin/tree/main/src/locales/lang) 增加对应语言的文件即可

### 新增语言

目前项目自带的语言只有 `zh_CN``en` 两种

如果需要新增,按以下操作即可

1.[src/locales/lang/](https://github.com/anncwb/vue-vben-admin/tree/main/src/locales/lang) 下新增相应的语言目录及语言文件并引入 引入 ant-design-vue 和 moment 对应的语言包
2.[types/config.d.ts](https://github.com/anncwb/vue-vben-admin/tree/main/types/config) 内加上预览类型定义
3.[src/settings/localeSetting.ts](https://github.com/anncwb/vue-vben-admin/tree/main/src/settings/localeSetting.ts) 修改语言配置
1.[src/locales/lang/](https://github.com/vbenjs/vue-vben-admin/tree/main/src/locales/lang) 下新增相应的语言目录及语言文件并引入 引入 ant-design-vue 和 moment 对应的语言包
2.[types/config.d.ts](https://github.com/vbenjs/vue-vben-admin/tree/main/types/config) 内加上预览类型定义
3.[src/settings/localeSetting.ts](https://github.com/vbenjs/vue-vben-admin/tree/main/src/settings/localeSetting.ts) 修改语言配置

## 远程读取语言数据

Expand All @@ -161,7 +161,7 @@ app.mount('#app', true);

### setupI18n 函数

代码: [src/locales/setupI18n/](https://github.com/anncwb/vue-vben-admin/tree/main/src/locales/setupI18n.ts)
代码: [src/locales/setupI18n/](https://github.com/vbenjs/vue-vben-admin/tree/main/src/locales/setupI18n.ts)

如下所示,这里会先设置一个默认语言,默认语言可以设置在本地,也可以在这里等待接口返回默认语言

Expand Down Expand Up @@ -198,7 +198,7 @@ async function createI18nOptions(): Promise<I18nOptions> {

### changeLocale 函数

代码: [src/locales/useLocale/](https://github.com/anncwb/vue-vben-admin/tree/main/src/locales/useLocale)
代码: [src/locales/useLocale/](https://github.com/vbenjs/vue-vben-admin/tree/main/src/locales/useLocale)

当手动切换语言的时候会触发 `useLocale` 函数,useLocale 也是异步函数,只需等待接口返回响应的数据后,再进行设置即可

Expand Down
2 changes: 1 addition & 1 deletion dep/icon.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default {

3. 编写 Icon 组件

完整代码 [src/components/Icon/src/Icon.vue](https://github.com/anncwb/vue-vben-admin/blob/main/src/components/Icon/src/Icon.vue)
完整代码 [src/components/Icon/src/Icon.vue](https://github.com/vbenjs/vue-vben-admin/blob/main/src/components/Icon/src/Icon.vue)

```vue
<template>
Expand Down
14 changes: 7 additions & 7 deletions guide/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default permission;

3. 在路由钩子内动态判断

详细代码见 [src/router/guard/permissionGuard.ts](https://github.com/anncwb/vue-vben-admin/tree/main/src/router/guard/permissionGuard.ts)
详细代码见 [src/router/guard/permissionGuard.ts](https://github.com/vbenjs/vue-vben-admin/tree/main/src/router/guard/permissionGuard.ts)

```ts
// 这里只列举了主要代码
Expand All @@ -97,7 +97,7 @@ permissionStore.setDynamicAddedRoute(true);
next(nextData);
```

**permissionStore.buildRoutesAction** 用于**过滤动态路由**,详细代码见 [src/store/modules/permission.ts](https://github.com/anncwb/vue-vben-admin/tree/main/src/store/modules/permission.ts)
**permissionStore.buildRoutesAction** 用于**过滤动态路由**,详细代码见 [src/store/modules/permission.ts](https://github.com/vbenjs/vue-vben-admin/tree/main/src/store/modules/permission.ts)

```ts
// 主要代码
Expand All @@ -117,7 +117,7 @@ if (permissionMode === PermissionModeEnum.ROLE) {

### 动态更换角色

系统提供 [usePermission](https://github.com/anncwb/vue-vben-admin/tree/main/src/hooks/web/usePermission.ts) 方便角色相关操作
系统提供 [usePermission](https://github.com/vbenjs/vue-vben-admin/tree/main/src/hooks/web/usePermission.ts) 方便角色相关操作

```ts
import { usePermission } from '/@/hooks/web/usePermission';
Expand All @@ -138,7 +138,7 @@ export default defineComponent({

**函数方式**

[usePermission](https://github.com/anncwb/vue-vben-admin/tree/main/src/hooks/web/usePermission.ts) 还提供了按钮级别的权限控制。
[usePermission](https://github.com/vbenjs/vue-vben-admin/tree/main/src/hooks/web/usePermission.ts) 还提供了按钮级别的权限控制。

```vue
<template>
Expand Down Expand Up @@ -194,7 +194,7 @@ const setting: ProjectConfig = {

2. 路由拦截,与角色权限模式一致

**permissionStore.buildRoutesAction** 用于**过滤动态路由**,详细代码见 [/@/store/modules/permission.ts](https://github.com/anncwb/vue-vben-admin/tree/main/src/store/modules/permission.ts)
**permissionStore.buildRoutesAction** 用于**过滤动态路由**,详细代码见 [/@/store/modules/permission.ts](https://github.com/vbenjs/vue-vben-admin/tree/main/src/store/modules/permission.ts)

```ts
// 主要代码
Expand Down Expand Up @@ -293,7 +293,7 @@ if (permissionMode === PermissionModeEnum.BACK) {

### 动态更换菜单

系统提供 [usePermission](https://github.com/anncwb/vue-vben-admin/tree/main/src/hooks/web/usePermission.ts) 方便角色相关操作
系统提供 [usePermission](https://github.com/vbenjs/vue-vben-admin/tree/main/src/hooks/web/usePermission.ts) 方便角色相关操作

```ts
import { usePermission } from '/@/hooks/web/usePermission';
Expand All @@ -314,7 +314,7 @@ export default defineComponent({

**函数方式**

[usePermission](https://github.com/anncwb/vue-vben-admin/tree/main/src/hooks/web/usePermission.ts) 还提供了按钮级别的权限控制。
[usePermission](https://github.com/vbenjs/vue-vben-admin/tree/main/src/hooks/web/usePermission.ts) 还提供了按钮级别的权限控制。

```vue
<template>
Expand Down
2 changes: 1 addition & 1 deletion guide/component.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default defineComponent({

只注册需要的组件

代码地址:[src/components/registerGlobComp.ts](https://github.com/anncwb/vue-vben-admin/tree/main/src/components/registerGlobComp.ts)
代码地址:[src/components/registerGlobComp.ts](https://github.com/vbenjs/vue-vben-admin/tree/main/src/components/registerGlobComp.ts)

```ts
import {
Expand Down
4 changes: 2 additions & 2 deletions guide/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

由于是展示项目,所以打包后相对较大,如果项目中没有用到的插件,可以删除对应的文件或者路由,不引用即可,没有引用就不会打包。

当然,你也可以使用精简版 [vue-vben-admin-thin](https://github.com/anncwb/vben-admin-thin-next) 进行开发。
当然,你也可以使用精简版 [vue-vben-admin-thin](https://github.com/vbenjs/vben-admin-thin-next) 进行开发。

:::

Expand Down Expand Up @@ -191,7 +191,7 @@ VITE_PUBLIC_PATH=/xxx/
- **hash** 默认会在 url 后面拼接`#`
- **history** 则不会,不过 `history` 需要服务器配合

可在 [src/router/index.ts](https://github.com/anncwb/vue-vben-admin/tree/main/src/router/index.ts) 内进行 mode 修改
可在 [src/router/index.ts](https://github.com/vbenjs/vue-vben-admin/tree/main/src/router/index.ts) 内进行 mode 修改

```ts
import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router';
Expand Down
2 changes: 1 addition & 1 deletion guide/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

默认使用 less 作为预处理语言,建议在使用前或者遇到疑问时学习一下 [Less](http://lesscss.org/) 的相关特性(如果想获取基础的 CSS 知识或查阅属性,请参考 [MDN 文档](https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference))。

项目中使用的通用样式,都存放于 [src/design/](https://github.com/anncwb/vue-vben-admin/tree/main/src/design) 下面。
项目中使用的通用样式,都存放于 [src/design/](https://github.com/vbenjs/vue-vben-admin/tree/main/src/design) 下面。

```bash
.
Expand Down
2 changes: 1 addition & 1 deletion guide/electron.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

```bash
# clone electron-main分支代码
git clone -b electron-main https://github.com/anncwb/vue-vben-admin vben-admin-electron
git clone -b electron-main https://github.com/vbenjs/vue-vben-admin vben-admin-electron
```

### 安装依赖
Expand Down
2 changes: 1 addition & 1 deletion guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

```bash
# clone 代码
git clone https://github.com/anncwb/vue-vben-admin
git clone https://github.com/vbenjs/vue-vben-admin

```

Expand Down
Loading

0 comments on commit be78712

Please sign in to comment.