Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
智布道
OneBlog
提交
ba2d0640
O
OneBlog
项目概览
智布道
/
OneBlog
9 个月 前同步成功
通知
11
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
OneBlog
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ba2d0640
编写于
1月 29, 2019
作者:
Y
yadong.zhang0415@gmail.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
🔖
重构admin项目中编辑器的生成代码
上级
7272f734
变更
8
展开全部
隐藏空白更改
内联
并排
Showing
8 changed file
with
245 addition
and
433 deletion
+245
-433
blog-admin/src/main/resources/static/assets/js/zhyd.core.js
blog-admin/src/main/resources/static/assets/js/zhyd.core.js
+229
-352
blog-admin/src/main/resources/static/assets/js/zhyd.upload-preview.js
...rc/main/resources/static/assets/js/zhyd.upload-preview.js
+0
-21
blog-admin/src/main/resources/static/assets/js/zyd.table.js
blog-admin/src/main/resources/static/assets/js/zyd.table.js
+1
-22
blog-admin/src/main/resources/static/assets/js/zyd.tool.js
blog-admin/src/main/resources/static/assets/js/zyd.tool.js
+0
-21
blog-admin/src/main/resources/templates/article/publish-md.ftl
...admin/src/main/resources/templates/article/publish-md.ftl
+2
-4
blog-admin/src/main/resources/templates/article/publish.ftl
blog-admin/src/main/resources/templates/article/publish.ftl
+10
-13
blog-admin/src/main/resources/templates/layout/footer.ftl
blog-admin/src/main/resources/templates/layout/footer.ftl
+1
-0
update.md
update.md
+2
-0
未找到文件。
blog-admin/src/main/resources/static/assets/js/zhyd.core.js
浏览文件 @
ba2d0640
此差异已折叠。
点击以展开。
blog-admin/src/main/resources/static/assets/js/zhyd.upload-preview.js
浏览文件 @
ba2d0640
/**
* MIT License
*
* Copyright (c) 2018 yadong.zhang
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* 图片预览
*
...
...
blog-admin/src/main/resources/static/assets/js/zyd.table.js
浏览文件 @
ba2d0640
/**
* MIT License
*
* Copyright (c) 2018 yadong.zhang
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* bootstrap-table工具类
*
...
...
@@ -105,7 +84,7 @@
columns
:
options
.
columns
});
$tablelist
.
on
(
'
load-success.bs.table
'
,
function
(
data
)
{
zhyd
.
initSwitchery
();
gentelella
.
initSwitchery
();
});
},
queryParams
:
function
(
params
)
{
...
...
blog-admin/src/main/resources/static/assets/js/zyd.tool.js
浏览文件 @
ba2d0640
/**
* MIT License
*
* Copyright (c) 2018 yadong.zhang
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* 项目工具类
*
...
...
blog-admin/src/main/resources/templates/article/publish-md.ftl
浏览文件 @
ba2d0640
...
...
@@ -85,7 +85,7 @@
<div class="custom-container">
<div class="item form-group">
<label class="control-label col-md-2 col-sm-2 col-xs-2" for="title">文章类型 <span class="required">*</span></label>
<div class="col-md-
2 col-sm-2 col-xs-2
">
<div class="col-md-
1 col-sm-1 col-xs-1
">
<select class="form-control" name="original" required="required" id="original" style="width: 120px;">
<option value="1">原创</option>
<option value="0">转载</option>
...
...
@@ -226,13 +226,11 @@
uniqueId: "mdEditor_1",
uploadUrl: "/api/upload2QiniuForMd"
};
zhyd.
initMdEditor
(op);
zhyd.
simpleMDE.init
(op);
articleId = '${id}';
</script>
<script src="/assets/js/zhyd.publish-article.js"></script>
<script>
console.log('init_SmartWizard');
$('#wizard').smartWizard({
labelNext:'<i class="fa fa-angle-right"></i> 下一步',
labelPrevious:'<i class="fa fa-angle-left"></i> 上一步',
...
...
blog-admin/src/main/resources/templates/article/publish.ftl
浏览文件 @
ba2d0640
...
...
@@ -52,7 +52,6 @@
<label class="control-label col-md-1 col-sm-1 col-xs-12" for="password">内容 <span class="required">*</span></label>
<div class="col-md-11 col-sm-11 col-xs-12">
<div id="editor" style="width: 100%;height: 150px;"></div>
<textarea class="form-control col-md-7 col-xs-12" id="content" name="content" style="display: none" required="required"></textarea>
</div>
</div>
<div class="item form-group">
...
...
@@ -160,19 +159,17 @@
<script>
articleId = '${id}';
$(function () {
/*if(!articleId) {
$.alert.confirm("当前已支持markdown编辑器,去试试?", function () {
window.location.href="/article/publishMd";
}, function () {
});
}*/
zhyd.initWangEditor({
id: "editor",
contentId: "content",
zhyd.wangEditor.init({
container: "#editor",
textareaName: "content",
uploadUrl: "/api/upload2Qiniu",
uploadFileName: "file"
});
uploadFileName: "file",
uploadType: "article",
customCss: {
"height": "100%",
"max-height": "115px"
}
})
});
</script>
<script src="/assets/js/zhyd.publish-article.js"></script>
...
...
blog-admin/src/main/resources/templates/layout/footer.ftl
浏览文件 @
ba2d0640
...
...
@@ -45,5 +45,6 @@
<script src="/assets/js/jquery-form.js"></script>
<script src="/assets/js/zyd.tool.js"></script>
<script src="/assets/js/zhyd.upload-preview.js"></script>
<script src="/assets/js/gentelella.core.js"></script>
<script src="/assets/js/zhyd.core.js"></script>
<script src="/assets/js/zyd.table.js"></script>
\ No newline at end of file
update.md
浏览文件 @
ba2d0640
...
...
@@ -14,6 +14,8 @@
-
修改:
-
web项目中,“更新记录”页面重构
-
admin项目中,“推送消息”页面重构,以后准备做个简单的聊天通讯工具
-
admin项目中,重构wangEditor&simpleMDE编辑器的生成代码
-
admin项目中,拆分gentelella模板的js代码和自定义的js代码
----
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录