Skip to content

Commit

Permalink
Merge pull request #10 from zhoujingjie/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
zhou jing jie authored Dec 4, 2017
2 parents 47dac35 + ac9173d commit 1147941
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion xiaoyaoji-plugins/src/main/plugin-resources/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"description": "markdown文档",
"author": "zhoujingjie",
"createTime": "2017/06/21",
"version": "2.1.4",
"version": "2.1.5",
"event":"doc.ev",
"icon":{
"icon32x32":"/assets/markdown.png"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<link rel="stylesheet" type="text/css" href="${cdn}/assets/simplemd/simplemde.min.css?v=${pluginInfo.version}"/>
<style>
.editor-preview-side ul{
padding-left:30px;
}
.editor-preview-side ul li{
list-style:disc;
}
</style>
<textarea class="hide" id="md-edit">${doc.content}</textarea>
<script>
(function(){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<textarea class="hide" id="md-view">${doc.content}</textarea>
<style>
#md-view-html ul{
padding-left:30px;
}
#md-view-html ul li{
list-style:disc;
}
</style>
<div id="md-view-html"></div>
<script>
(function(){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public Object upload(@RequestParam("file") List<MultipartFile> files,@RequestPar
@Ignore
@GetMapping("/{relatedId}")
public Object get(@PathVariable String relatedId, @RequestParam String projectId,User user){
ServiceTool.checkUserHasAccessPermission(projectId,user);
//ServiceTool.checkUserHasAccessPermission(projectId,user);
List<Attach> attaches= ServiceFactory.instance().getAttachsByRelatedId(relatedId);
return new _HashMap<>()
.add("fileAccess", ConfigUtils.getFileAccessURL())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public ModelAndView docView(@PathVariable String docId,
if (user != null) {
//访问权限
editPermission = ServiceFactory.instance().checkUserHasProjectEditPermission(user.getId(), doc.getProjectId());
AssertUtils.isTrue(editPermission || (!editPermission && !editing),"无操作权限");
//AssertUtils.isTrue(editPermission || (!editPermission && !editing),"无操作权限");
}

List<PluginInfo> pluginInfos = PluginManager.getInstance().getPlugins(Event.DOC_EV);
Expand Down
Binary file not shown.

0 comments on commit 1147941

Please sign in to comment.