Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev mdfs #779

Open
wants to merge 60 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
df22f74
feat: 添加后端接口
Apr 16, 2024
36888cb
feat: 添加后端接口
Apr 18, 2024
f51438e
fix:加载文档内容
Czoyx Apr 19, 2024
ae0b226
feat: 添加新建框
Apr 19, 2024
be8acea
feat: 添加新建,删除逻辑
Apr 19, 2024
88d8cf6
feat: 测试
Apr 19, 2024
595615d
fix
Apr 20, 2024
ff49f87
feat:TreeItem
Czoyx Apr 20, 2024
868966f
fix:TreeItem
Czoyx Apr 20, 2024
71bd378
fix:SideBar加上TreeItem
Czoyx Apr 20, 2024
9ce1ad6
fix:node数据加上权限,dropdown-menu根据权限显示
Czoyx Apr 20, 2024
cdd4da5
feat: 添加分享窗口
Apr 20, 2024
04e2da4
feat: 添加分享窗口
Apr 20, 2024
0dc8fd9
Merge remote-tracking branch '自建git/dev_lsc' into dev_lsc
Apr 20, 2024
8c283f4
Merge remote-tracking branch 'origin/dev_lsc' into dev_lsc
Czoyx Apr 20, 2024
1304889
feat: 添加分享窗口
Apr 20, 2024
22a3681
Merge remote-tracking branch '自建git/dev_lsc' into dev_lsc
Apr 20, 2024
4902fb7
fix:更改展示方式
Czoyx Apr 20, 2024
f8c4999
fix:新建文件时权限初始化
Czoyx Apr 20, 2024
be7d4b2
feat: 添加移动窗口
Apr 20, 2024
4c62918
Merge remote-tracking branch '自建git/dev_lsc' into dev_lsc
Apr 20, 2024
86a6b3c
fix:sidebar加载md文件
Czoyx Apr 20, 2024
947b735
Merge remote-tracking branch 'origin/dev_lsc' into dev_lsc
Czoyx Apr 20, 2024
c7cf3ab
feat: 添加移动窗口
Apr 20, 2024
b94c424
Merge remote-tracking branch '自建git/dev_lsc' into dev_lsc
Apr 20, 2024
5f36d23
fix:添加图标
Czoyx Apr 20, 2024
d1564f0
Merge remote-tracking branch 'origin/dev_lsc' into dev_lsc
Czoyx Apr 20, 2024
b100809
fix:界面优化
Czoyx Apr 21, 2024
cc61933
fix:侧边栏css优化
Czoyx Apr 22, 2024
7d0e645
fix:移动请求
Czoyx Apr 22, 2024
2f9e0ca
feat: 添加url获取文件夹id
Apr 22, 2024
b4d8416
feat: 删除无用文件
Apr 22, 2024
2db3e0c
feat: 调整样式
Apr 22, 2024
4a75913
feat: 添加侧边栏收缩
Apr 22, 2024
7c08f6c
feat: 登录跳转markdown
Apr 22, 2024
be5bd14
feat: 优化样式
Apr 22, 2024
c115c4d
fix:移动时更改目录树
Czoyx Apr 22, 2024
6d189c0
fix:处理根目录
Czoyx Apr 23, 2024
e2e60dd
fix:删除无用组件
Czoyx Apr 23, 2024
7861829
feat:登出 404页面修改
Czoyx Apr 23, 2024
d610e1b
fix:路由整理
Czoyx Apr 23, 2024
44b6dd2
fix:更新icon
Czoyx Apr 23, 2024
6b45951
fix:根目录是文档,下拉菜单改为点击触发
Czoyx Apr 24, 2024
34eb59e
fix:分享、移动对话框样式更改;侧边栏打开分享、移动对话框;初始化放到index;分享接口
Czoyx Apr 24, 2024
b87e29d
fix:分享窗口数据
Czoyx Apr 25, 2024
ef8bc36
fix:分享窗口
Czoyx Apr 25, 2024
affe425
fix:sidebar样式
Czoyx Apr 25, 2024
586348d
fix:添加头像
Czoyx Apr 25, 2024
741b96e
fix:协作者
Czoyx Apr 25, 2024
1e4cafa
feat: share
hhhhq1q1 Apr 25, 2024
c073616
fix:更改文件相关接口路径
Czoyx Apr 26, 2024
043d44e
fix:share
Czoyx Apr 26, 2024
55eb824
fix:share URL
Czoyx Apr 26, 2024
d8a416c
feat:MDContent作为单独组件,添加只读模式
Czoyx Apr 26, 2024
68443b6
fix
Czoyx Apr 26, 2024
82aa956
fix:只读样式更改
Czoyx Apr 26, 2024
61b224c
fix
Apr 27, 2024
a77adf3
fix
Apr 27, 2024
dc3ab65
fix
Apr 27, 2024
54bbec8
fix
Czoyx Apr 27, 2024
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
4 changes: 4 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ ENV = 'development'

# base api
VUE_APP_BASE_API = '/dev-api'


# 后端服务地址
VITE_APP_SERVICE_API = 'http://192.168.123.104:8000/api/v1'
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"normalize.css": "7.0.0",
"nprogress": "0.2.0",
"path-to-regexp": "2.4.0",
"tui-editor": "^1.3.3",
"vditor": "^3.10.3",
"vue": "2.6.10",
"vue-router": "3.0.6",
"vuex": "3.1.0"
Expand All @@ -40,6 +42,7 @@
"eslint": "6.7.2",
"eslint-plugin-vue": "6.2.2",
"html-webpack-plugin": "3.2.0",
"less-loader": "^7.3.0",
"mockjs": "1.0.1-beta3",
"runjs": "4.3.2",
"sass": "1.26.8",
Expand Down
76 changes: 76 additions & 0 deletions src/api/file.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
import request from '@/utils/request'

export function getFileList(data) {
return request({
url: '/file/list/undefined',
method: 'get'
})
}

export function getFileListById(id) {
return request({
url: `/file/${id}/list`,
method: 'get'
})
}

export function getFileContent(id) {
return request({
url: `/file/${id}/content`,
method: 'get'
})
}

export function updateFileContent(data) {
return request({
url: `/file/${data.file_id}/content`,
method: 'post',
data: data
})
}

export function createFile(data) {
return request({
url: `/file/${data.parent_id}/create`,
method: 'post',
data: data
})
}

export function createFolder(data) {
return request({
url: `/file/${data.parent_id}/folder`,
method: 'post',
data: data
})
}

export function deleteFile(id) {
return request({
url: `/file/${id}/delete`,
method: 'delete'
})
}

export function getFileInfo(id) {
return request({
url: `/file/${id}/info`,
method: 'get'
})
}

export function rename(data) {
return request({
url: `/file/${data.file_id}/rename`,
method: 'post',
data: data
})
}

export function operateFile(data) {
return request({
url: `/file/${data.parent_id}/operate`,
method: 'post',
data: data
})
}
16 changes: 16 additions & 0 deletions src/api/permission.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import request from '@/utils/request'

export function listPermission(id) {
return request({
url: `/permission/list/${id}`,
method: 'get'
})
}

export function updatePermission(data) {
return request({
url: `/permission/update`,
method: 'post',
data: data
})
}
18 changes: 12 additions & 6 deletions src/api/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,29 @@ import request from '@/utils/request'

export function login(data) {
return request({
url: '/vue-admin-template/user/login',
url: '/user/login',
method: 'post',
data
})
}

export function getInfo(token) {
export function getInfo() {
return request({
url: '/vue-admin-template/user/info',
method: 'get',
params: { token }
url: '/user/info',
method: 'get'
})
}

export function logout() {
return request({
url: '/vue-admin-template/user/logout',
url: '/user/logout',
method: 'post'
})
}

export function listUser() {
return request({
url: '/user/list',
method: 'get'
})
}
Loading