-
Notifications
You must be signed in to change notification settings - Fork 1k
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
1 parent
0ea8fe0
commit 73644e8
Showing
208 changed files
with
3,646 additions
and
17,318 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
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,12 @@ | ||
/** | ||
* API 统一管理 | ||
* */ | ||
|
||
// 用户相关 | ||
export * from './modules/user' | ||
// 页面相关 | ||
export * from './modules/page' | ||
// 图片库相关 | ||
export * from './modules/image' | ||
// 解析psd | ||
export * from './modules/psd' |
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,9 @@ | ||
/* | ||
* image 图片库 | ||
**/ | ||
import $axios from "@/service/httpServer"; | ||
|
||
// 获取我的图片列表 | ||
export const getMyImages = p => $axios.get('/quark/imageLib/myImages', p); | ||
// 上传图片 | ||
export const uploadImage = p => $axios.post('/quark/imageLib/upload', p) |
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,43 @@ | ||
/* | ||
页面相关api | ||
**/ | ||
import $axios from "@/service/httpServer"; | ||
// 获取我的页面列表 | ||
export const getMyPages = p => $axios.get('/quark/page/getMyPages', p); | ||
// 获取我的页面详情 | ||
export const getPageDetail = p => $axios.get('/quark/page/detail', p); | ||
// 新增页面 | ||
export const createPage = p => $axios.post('/quark/page/create', p); | ||
// 更新页面 | ||
export const updatePage = p => $axios.post('/quark/page/update', p); | ||
// 删除页面 | ||
export const deletePage = p => $axios.post('/quark/page/delete', p); | ||
// 复制页面 | ||
export const copyPage = p => $axios.post('/quark/page/copy', p); | ||
// 设置为模板 | ||
export const setTemplatePage = p => $axios.post('/quark/page/setTemplate', p); | ||
// 发布页面 | ||
export const publishPage = p => $axios.post('/quark/page/setPublish', p); | ||
|
||
/** | ||
* ======================================================================== | ||
* */ | ||
// 获取我的模板 | ||
export const getMyTemplates = p => $axios.get('/quark/page/getMyTemplates', p); | ||
|
||
|
||
/** | ||
* ======================================================================== | ||
* */ | ||
// 获取模板市场模板 | ||
export const getPublishTemplates = p => $axios.get('/quark/page/getPublishTemplates', p); | ||
|
||
/** | ||
* ======================================================================== | ||
* */ | ||
// 获取协作人列表 | ||
export const getCooperationUserListByPageId = p => $axios.get('/quark/page/getCooperationList', p) | ||
// 按userIds添加协作人 | ||
export const addCooperation = p => $axios.post('/quark/page/addCooperation', p) | ||
// 删除协作人 | ||
export const delCooperation = p => $axios.post('/quark/page/delCooperation', p) |
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 @@ | ||
/* | ||
* psd | ||
**/ | ||
import $axios from "@/service/httpServer"; | ||
|
||
// 上传psd解析 | ||
export const psdPpload = p => $axios.post('/quark/psd/upload', p) |
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,20 @@ | ||
/* | ||
用户相关api | ||
**/ | ||
import $axios from "@/service/httpServer"; | ||
// 登录 | ||
export const login = p => $axios.post('/quark/auth/login', p); | ||
// 注册 | ||
export const register = p => $axios.post('/quark/auth/register', p); | ||
// 获取用户信息 | ||
export const getUserInfo = () => $axios.get('/quark/user/info'); | ||
// 修改用户昵称 | ||
export const updateNickName = p => $axios.post('/quark/user/update/name', p); | ||
// 修改密码 | ||
export const updateUserPass = p => $axios.post('/quark/user/update/pass', p); | ||
// 修改头像 | ||
export const updateUserAvatar = p => $axios.post('/quark/user/update/avatar', p); | ||
// 关键字搜索用户列表 | ||
export const getUserListByKeywords = p => $axios.get('/quark/user/getUserList', p); | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import Vue from 'vue'; | ||
import Index from './index.vue'; | ||
let ComponentConstructor = Vue.extend(Index); | ||
let instance; | ||
|
||
/** | ||
* 管理协作人 | ||
* @param documentId 文档id | ||
* @constructor | ||
*/ | ||
let Component = function(pageId, callback) { | ||
instance = new ComponentConstructor({ | ||
data: { | ||
pageId: pageId | ||
} | ||
}); | ||
instance.$mount(); | ||
instance.callback = callback; | ||
document.body.appendChild(instance.$el); | ||
instance.visible = true; | ||
return instance; | ||
} | ||
|
||
export default Component; |
Oops, something went wrong.