模版插件

1. 可以通过模版快速创建笔记
2. 用户可以自定义模版文件
3. 临时提供 4 个模版文件

插件代码位置:
public/plugins/template/plugin.js
public/plugins/template/plugin.json
模版文件位置:
public/templates/…
This commit is contained in:
B1gCoolCat
2016-05-12 23:36:54 +09:00
parent 5117921f43
commit 766ff55a64
12 changed files with 706 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
var Config = {
"plugins": [
"theme",
"template",
"import_leanote",
"import_evernote",
"export_pdf",

View File

@@ -0,0 +1,238 @@
/**
* 模版插件
*/
define(function() {
var template = {
langs: {
'en-us': {
'newNoteByTemplate': 'new Note by template',
'template': 'Template',
'close': 'Close',
'newNote': 'New Note',
'warning': 'Warning',
'select-template': 'Select Template Please.',
'new-note-fail': 'New note fail. ',
},
'zh-cn': {
'newNoteByTemplate': '通过模版创建笔记',
'template': '模版',
'close': '关闭',
'newNote': '新建笔记',
'warning': '警告',
'select-template': '请先选择模版。',
'new-note-fail': '新建笔记失败。',
},
'zh-hk': {
'newNoteByTemplate': '通過模板創建筆記',
'template': '模板',
'close': '關閉',
'newNote': '新建筆記',
'warning': '警告',
'select-template': '請先選擇模板。',
'new-note-fail': '新建筆記失敗。',
},
'ja-jp': {
'newNoteByTemplate': '雛形に基づいてノート新規',
'template': '雛形',
'close': '閉じる',
'newNote': 'ノート新規',
'warning': '警告',
'select-template': '先ずに雛形を選択してください。',
'new-note-fail': 'ノートを新規することが失敗でした。',
}
},
_tpl: `
<style>
ul li {
list-style-type: none;
margin:0 -30px;
border-bottom: 1px dashed #eee;
}
#template_list {
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 150px;
overflow: hidden;
border: 3px solid #2DB590;
overflow: scroll;
}
#template_detail {
position: absolute;
bottom: 1px;
top: 1px;
right: 1px;
left: 155px;
border: 3px solid #B3BDC5;
overflow: scroll;
}
ul li a:hover {
color: #B3B2C5;
backgroud-color: #E7E7E7;
} /* 当有鼠标悬停在链接上 */
#templateDialog .modal-body {
height: 400px;
}
.custom_template {
position: absolute;
top: 10px;
bottom: 10px;
right: 10px;
left: 10px;
}
</style>
<div class="modal fade bs-modal-sm" id="templateDialog" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
</div>
<div class="modal-body">
<div id="template_list"></div>
<div id="template_detail">
</div>
</div>
<div class="modal-footer ">
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
`,
getMsg: function(txt, data) {
return Api.getMsg(txt, 'plugin.template', data)
},
// 获取模版列表
getTemplates: function() {
var ul = '<ul id="template_ul">'
// 遍历模版目录,得到模版
var templateBasePath = __dirname + "/public/templates";
var dirs = Api.nodeFs.readdirSync(templateBasePath);
for (index in dirs) {
var dir = dirs[index];
// 读取配置信息
var json = Api.commonService.getFileJson(templateBasePath + '/' + dir + '/template.json');
if (!json) {
continue;
}
if (json.released === false) {
continue;
}
var templatePrefixLang = 'template.' + dir;
Api.addLangMsgs(json.langs, templatePrefixLang);
var name = Api.getMsg('name', templatePrefixLang);
if(!name) {
continue;
}
ul += '<li><a data-click="showTemplateDetail" data-name="'+dir+'" class="op"><span>'+name+'</span></a></li>';
}
return ul + '</ul>';
},
// 通过弹出框展示模版列表
dialogTemplates: function() {
var me = this;
me.body = $('body');
me.body.append(me._tpl);
me.dialog = $("#templateDialog");
var modalHeader =
'<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>\
<h4 class="modal-title" class="modalTitle"><span class="lang">'+me.getMsg("template")+'</span></h4>\
';
var modalFooter =
'<button id="newNoteByTemplate" type="button" class="btn btn-primary">'+me.getMsg("newNote")+'</button>\
<button type="button" class="btn btn-default upgrade-cancel-btn lang" data-dismiss="modal" class="lang">'+me.getMsg("close")+'</button>\
';
$('#templateDialog .modal-header').html(modalHeader);
$('#templateDialog .modal-footer').html(modalFooter);
$('#template_list').html(me.getTemplates());
},
curTemplateName: '',
init: function() {
var me = this;
me.dialogTemplates();
me.dialog.modal('show');
// 事件
var op2Func = {
// 显示模版
showTemplateDetail: function(template_name) {
$('#template_detail').html(me.getTemplate(template_name));
me.curTemplateName = template_name;
},
};
$('#template_list').on('click', '.op', function () {
var $this = $(this);
var option = $this.data('click');
var template_name = $this.data('name');
var func = op2Func[option];
if (func) {
func(template_name, $this);
}
});
$('#newNoteByTemplate').on('click', function () {
if(!me.curTemplateName) {
Api.gui.dialog.showErrorBox(me.getMsg("warning"), me.getMsg("select-template"));
return;
}
me.newNoteByTemplate();
me.dialog.modal('hide');
$('#template_detail').html();
});
},
// 获取模版
getTemplate: function(template_name) {
var templateBasePath = __dirname + "/public/templates";
var dir = templateBasePath + '/' + template_name + '/template.leanote';
var templateFormat = fs.readFileSync(dir,'UTF-8');
return templateFormat;
},
// 应用模版创建笔记
newNoteByTemplate: function() {
var me = this;
// 新建笔记
var notebookId = $("#curNotebookForNewNote").attr('notebookId');
Api.note.newNote(notebookId);
// 获取当前笔记
var curNote = Api.note.getCurNote();
if(!curNote) {
Api.gui.dialog.showErrorBox(me.getMsg("warning"), me.getMsg("new-note-fail"));
return;
}
$('#editorContent').html(me.getTemplate(me.curTemplateName));
},
// app 打开前
onOpen: function() {
var me = this;
var gui = Api.gui;
var menu = new gui.MenuItem({
label: me.getMsg('newNoteByTemplate'),
click: function () {
me.init();
}
});
// 设置
Api.addMoreMenu(menu);
},
// app 打开后
onOpenAfter: function() {
},
// 关闭时需要运行的
onClose: function() {
}
};
return template;
});

View File

@@ -0,0 +1,24 @@
{
"name": "Template",
"desc": "You can create a new note by template.",
"author": "Thaddeus Jiang",
"authorUrl": "http://thaddeusjiang.github.io",
"langs": {
"en-us": {
"pluginName": "Template",
"pluginDesc": ""
},
"zh-cn": {
"pluginName": "模版",
"pluginDesc": ""
},
"zh-hk": {
"pluginName": "模板",
"pluginDesc": ""
},
"ja-jp": {
"pluginName": "雛形",
"pluginDesc": ""
}
}
}

View File

@@ -0,0 +1,20 @@
{
"name": "Annual-Summary",
"desc": "",
"author": "Thaddeus Jiang",
"authorUrl": "http://thaddeusjiang.github.io",
"langs": {
"en-us": {
"name": "Annual-Summary"
},
"zh-cn": {
"name": "年度总结"
},
"zh-hk": {
"name": "年度總結"
},
"ja-jp": {
"name": "年中大事件"
}
}
}

View File

@@ -0,0 +1,39 @@
<style>
.article-entry h2 {
margin: 0.5em auto;
font-weight: bold;
color: #9c9;
padding-bottom: 5px;
border-bottom: 1px solid #ddd;
text-align: center;
}
h2 {
font-size: 1.3em;
}
h1, h2, h3 {
display: block;
}
h2, h3, h4, h5, h6 {
font-family: Times, Georgia, serif, "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
}
.article-entry p {
margin: 0.85em auto;
line-height: 1.7em;
font-size: 1em;
}
</style>
<div class="custom_template">
<h1>2015年我的改变</h1>
<div class="article-entry" itemprop="articleBody">
<p></p><h2 id="intro">前言</h2><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2015年我从大连理工大学软件学院毕业了。<p></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;7月毕业10月工作至今已经工作满3个月了。这3个月中我感觉自己改变了很多所以想在2015年即将过去之际总结一下2015年自己有哪些改变。</p>
<a id="more"></a>
<h2 id="u4EBA_u751F_u683C_u8A00_uFF1A_u201C_u5B66_u4F1A_u5206_u4EAB_uFF0C_u5206_u4EAB_u8D8A_u591A_uFF0C_u6536_u83B7_u8D8A_u591A_u201D"><a href="#u4EBA_u751F_u683C_u8A00_uFF1A_u201C_u5B66_u4F1A_u5206_u4EAB_uFF0C_u5206_u4EAB_u8D8A_u591A_uFF0C_u6536_u83B7_u8D8A_u591A_u201D" class="headerlink" title="人生格言:“学会分享,分享越多,收获越多”"></a>人生格言:“学会分享,分享越多,收获越多”</h2><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;我是一个非常骄傲的人所以一直以来我的人生格言都是“I believe that I am genius”。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;但是在离开校园进入社会的3个月里我体验到了许许多多在学校里从未有过的困难和挑战虽然我仍然对自己保持高度的自信也可以说“我依然很骄傲”但是在不断地克服困难战胜挑战的过程中我深刻地明白“在人与人紧密联系在一起的现代社会想要成就一番大事必须学会与人合作一个人的力量终究有限。”那么如何得到其他人的帮助呢只有自己努力去帮助他人才能的到他人更多的帮助。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;我希望自己将来可以成就一番事业,所以我将自己的人生格言修改为“<strong><em>学会分享,分享越多,收获越多。</em></strong>”</p>
<h2 id="u5F00_u59CB_u8DD1_u6B65"><a href="#u5F00_u59CB_u8DD1_u6B65" class="headerlink" title="开始跑步"></a>开始跑步</h2><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;如果从2015年往前回忆的话最近的一次酣畅淋漓地跑步还是在2011年夏季的高三。大学期间90%以上的时间我是在寝室度过的4年时间里就算是去图书馆和自习室的次数估计用双手就可以数得清楚。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2015年大学毕业我选择出国到日本东京工作。而我的人生中的第一家公司竟然有一个特别奇怪的惯例那就是刚刚从大学毕业进入公司的新人必须参加当年的马拉松。这本来是一个随便跑跑凑凑数的马拉松但是当听说来自中国的新人在第一次参加马拉松的记录中还没有人能完成全马而日本新人却有人可以完成的时候。向来不服输的我立刻被点燃了斗志我希望通过自己的的努力让公司同事改变对中国新人的看法。</p>
<blockquote>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2015年5月我和DAC的同事孔哥、龙哥、礁姐一起参加了人生中的第一次马拉松。<strong>失败</strong><br><em>这次失败让我更加了解马拉松同时也知道如果没有练习想完成42公里的比赛是根本不可能的。</em><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2015年6月我开始随便跑跑让自己喜欢上跑步。每次大概2km5km不等。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2015年10月我开始备战12月份的「NAHA マラソン」。跑步距离也从5km逐步增加到10km再增加到21km。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2015年12月在大雨中我用时6小时09分完成了人生中的第一次全马「NAHA マラソン」。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;虽然马拉松已经过去,但是我并不想让自己停下来,我喜欢上了跑步,我希望可以一直跑。</p>
</blockquote>
<h2 id="u5F00_u59CB_iOS__u5F00_u53D1"><a href="#u5F00_u59CB_iOS__u5F00_u53D1" class="headerlink" title="开始 iOS 开发"></a>开始 iOS 开发</h2><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;大学期间,在朱老师的牵线下我认识另外两个特别 nice 的学长(小朱学长、占伟学长),并且开始了我的 Windows Phone 开发。期间写过一些简单的博客发布过4个App。但是在 iOS 和 Android 的强大垄断下Windows Phone 的市场始终不算好。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;并且因为对服务器端开发充满兴趣,大三时我开始学习 Java Web 开发。这里真的非常感谢我的两位恩师(姜老师、蒋老师),两位老师不仅仅教会了我很多开发方面的技术,也对我的生活上的很多习惯产生了影响。还有比较重要的是,通过老师我结识了几个特别靠谱的朋友。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2015年我重新开始移动开发只不过这次我又选择了一个新的技术 iOS 开发。没办法,我就是喜欢学习新的知识,接触新的事物。</p>
<h2 id="u4E00_u4E2A_u4EBA_u751F_u6D3B"><a href="#u4E00_u4E2A_u4EBA_u751F_u6D3B" class="headerlink" title="一个人生活"></a>一个人生活</h2><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2015年我23岁第一次一个人自己生活。自己买菜、自己做饭、自己打扫房间、自己拿着熨斗熨衣服所有的事情都是自己来做。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;我很高兴自己选择来东京工作,我喜欢东京。工作方面,现在的公司虽然是一个只有一百多人的公司,但是管理和制度上都给我非常正规的感觉,我学会了很多职场中的能力;生活方面,心情好的时候,我可以去新宿、涩谷体验大都市的繁华,心情差的时候我喜欢去荒川跑步,去公园看高中生打棒球。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;东京既让我体验了大都市的繁华,也让我感受了小乡村的宁静。</p>
</div>
</div>

View File

@@ -0,0 +1,20 @@
{
"name": "Daily-Plan",
"desc": "",
"author": "Thaddeus Jiang",
"authorUrl": "http://thaddeusjiang.github.io",
"langs": {
"en-us": {
"name": "Daily-Plan"
},
"zh-cn": {
"name": "日计划"
},
"zh-hk": {
"name": "日計劃"
},
"ja-jp": {
"name": "毎日予定"
}
}
}

View File

@@ -0,0 +1,204 @@
<style>
</style>
<div class="custom_template">
<h1>日计划</h1>
<table cellspacing="0" cellpadding="0" style="border-collapse: collapse;table-layout:fixed;width:100%;">
<tbody>
<tr>
<td valign="top" style="background-color: rgb(48, 198, 115); border-style: solid; border-width: 1px 0px 1px 1px; border-color: rgb(48, 199, 115) rgb(0, 0, 0) rgb(0, 0, 0) rgb(48, 199, 115); padding: 4px;width:16%;">
<div style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; font-family: Helvetica; min-height: 14px;">
<div>
<b><span style="color: rgb(255, 255, 255);">时间</span></b>
</div>
</div> </td>
<td valign="top" style="background-color: rgb(48, 198, 115); border-style: solid; border-width: 1px 1px 1px 0px; border-color: rgb(48, 199, 115) rgb(48, 199, 115) rgb(0, 0, 0) rgb(0, 0, 0); padding: 4px;width:84%;">
<div style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; font-family: Helvetica; min-height: 14px;">
<div>
<b><span style="color: rgb(255, 255, 255);">计划</span></b>
</div>
</div> </td>
</tr>
<tr>
<td valign="top" style=" background-color: #ebf8ef; border-style: solid; border-width: 1.0px 0.0px 0.0px 1.0px; border-color: #000000 #000000 #000000 #30c773; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<font face="Apple SD Gothic Neo" size="2" color="#000000" style="font: 10.0px 'Apple SD Gothic Neo'; font-kerning: none; font-variant-ligatures: common-ligatures; color: #000000; -webkit-text-stroke: 0px #000000">06:00-07:00</font>
</div> </td>
<td valign="top" style=" border-style: solid; border-width: 1.0px 1.0px 1.0px 0.0px; border-color: #000000 #30c773 #ebf8ef #000000; padding: 4.0px 4.0px 4.0px 4.0px;">
<div>
<br>
</div> </td>
</tr>
<tr>
<td valign="top" style=" background-color: #ebf8ef; border-style: solid; border-width: 0.0px 0.0px 0.0px 1.0px; border-color: #000000 #000000 #000000 #30c773; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<font face="Apple SD Gothic Neo" size="2" color="#000000" style="font: 10.0px 'Apple SD Gothic Neo'; font-kerning: none; font-variant-ligatures: common-ligatures; color: #000000; -webkit-text-stroke: 0px #000000">07:00-08:00</font>
</div> </td>
<td valign="top" style=" border-style: solid; border-width: 1.0px 1.0px 1.0px 0.0px; border-color: #ebf8ef #30c773 #ebf8ef #000000; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<br>
</div> </td>
</tr>
<tr>
<td valign="top" style=" background-color: #ebf8ef; border-style: solid; border-width: 0.0px 0.0px 0.0px 1.0px; border-color: #000000 #000000 #000000 #30c773; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<font face="Apple SD Gothic Neo" size="2" color="#000000" style="font: 10.0px 'Apple SD Gothic Neo'; font-kerning: none; font-variant-ligatures: common-ligatures; color: #000000; -webkit-text-stroke: 0px #000000">08:00-09:00</font>
</div> </td>
<td valign="top" style=" border-style: solid; border-width: 1.0px 1.0px 1.0px 0.0px; border-color: #ebf8ef #30c773 #ebf8ef #000000; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<br>
</div> </td>
</tr>
<tr>
<td valign="top" style=" background-color: #ebf8ef; border-style: solid; border-width: 0.0px 0.0px 0.0px 1.0px; border-color: #000000 #000000 #000000 #30c773; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<font face="Apple SD Gothic Neo" size="2" color="#000000" style="font: 10.0px 'Apple SD Gothic Neo'; font-kerning: none; font-variant-ligatures: common-ligatures; color: #000000; -webkit-text-stroke: 0px #000000">09:00-10:00</font>
</div> </td>
<td valign="top" style=" border-style: solid; border-width: 1.0px 1.0px 1.0px 0.0px; border-color: #ebf8ef #30c773 #ebf8ef #000000; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<br>
</div> </td>
</tr>
<tr>
<td valign="top" style=" background-color: #ebf8ef; border-style: solid; border-width: 0.0px 0.0px 0.0px 1.0px; border-color: #000000 #000000 #000000 #30c773; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<font face="Apple SD Gothic Neo" size="2" color="#000000" style="font: 10.0px 'Apple SD Gothic Neo'; font-kerning: none; font-variant-ligatures: common-ligatures; color: #000000; -webkit-text-stroke: 0px #000000">10:00-11:00</font>
</div> </td>
<td valign="top" style=" border-style: solid; border-width: 1.0px 1.0px 1.0px 0.0px; border-color: #ebf8ef #30c773 #ebf8ef #000000; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<br>
</div> </td>
</tr>
<tr>
<td valign="top" style=" background-color: #ebf8ef; border-style: solid; border-width: 0.0px 0.0px 0.0px 1.0px; border-color: #000000 #000000 #000000 #30c773; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<font face="Apple SD Gothic Neo" size="2" color="#000000" style="font: 10.0px 'Apple SD Gothic Neo'; font-kerning: none; font-variant-ligatures: common-ligatures; color: #000000; -webkit-text-stroke: 0px #000000">11:00-12:00</font>
</div> </td>
<td valign="top" style=" border-style: solid; border-width: 1.0px 1.0px 1.0px 0.0px; border-color: #ebf8ef #30c773 #ebf8ef #000000; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<br>
</div> </td>
</tr>
<tr>
<td valign="top" style=" background-color: #ebf8ef; border-style: solid; border-width: 0.0px 0.0px 0.0px 1.0px; border-color: #000000 #000000 #000000 #30c773; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<font face="Apple SD Gothic Neo" size="2" color="#000000" style="font: 10.0px 'Apple SD Gothic Neo'; font-kerning: none; font-variant-ligatures: common-ligatures; color: #000000; -webkit-text-stroke: 0px #000000">12:00-13:00</font>
</div> </td>
<td valign="top" style=" border-style: solid; border-width: 1.0px 1.0px 1.0px 0.0px; border-color: #ebf8ef #30c773 #ebf8ef #000000; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<br>
</div> </td>
</tr>
<tr>
<td valign="top" style=" background-color: #ebf8ef; border-style: solid; border-width: 0.0px 0.0px 0.0px 1.0px; border-color: #000000 #000000 #000000 #30c773; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<font face="Apple SD Gothic Neo" size="2" color="#000000" style="font: 10.0px 'Apple SD Gothic Neo'; font-kerning: none; font-variant-ligatures: common-ligatures; color: #000000; -webkit-text-stroke: 0px #000000">13:00-14:00</font>
</div> </td>
<td valign="top" style=" border-style: solid; border-width: 1.0px 1.0px 1.0px 0.0px; border-color: #ebf8ef #30c773 #ebf8ef #000000; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<br>
</div> </td>
</tr>
<tr>
<td valign="top" style=" background-color: #ebf8ef; border-style: solid; border-width: 0.0px 0.0px 0.0px 1.0px; border-color: #000000 #000000 #000000 #30c773; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<font face="Apple SD Gothic Neo" size="2" color="#000000" style="font: 10.0px 'Apple SD Gothic Neo'; font-kerning: none; font-variant-ligatures: common-ligatures; color: #000000; -webkit-text-stroke: 0px #000000">14:00-15:00</font>
</div> </td>
<td valign="top" style=" border-style: solid; border-width: 1.0px 1.0px 1.0px 0.0px; border-color: #ebf8ef #30c773 #ebf8ef #000000; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<br>
</div> </td>
</tr>
<tr>
<td valign="top" style=" background-color: #ebf8ef; border-style: solid; border-width: 0.0px 0.0px 0.0px 1.0px; border-color: #000000 #000000 #000000 #30c773; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<font face="Apple SD Gothic Neo" size="2" color="#000000" style="font: 10.0px 'Apple SD Gothic Neo'; font-kerning: none; font-variant-ligatures: common-ligatures; color: #000000; -webkit-text-stroke: 0px #000000">15:00-16:00</font>
</div> </td>
<td valign="top" style=" border-style: solid; border-width: 1.0px 1.0px 1.0px 0.0px; border-color: #ebf8ef #30c773 #ebf8ef #000000; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<br>
</div> </td>
</tr>
<tr>
<td valign="top" style=" background-color: #ebf8ef; border-style: solid; border-width: 0.0px 0.0px 0.0px 1.0px; border-color: #000000 #000000 #000000 #30c773; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<font face="Apple SD Gothic Neo" size="2" color="#000000" style="font: 10.0px 'Apple SD Gothic Neo'; font-kerning: none; font-variant-ligatures: common-ligatures; color: #000000; -webkit-text-stroke: 0px #000000">16:00-17:00</font>
</div> </td>
<td valign="top" style=" border-style: solid; border-width: 1.0px 1.0px 1.0px 0.0px; border-color: #ebf8ef #30c773 #ebf8ef #000000; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<br>
</div> </td>
</tr>
<tr>
<td valign="top" style=" background-color: #ebf8ef; border-style: solid; border-width: 0.0px 0.0px 0.0px 1.0px; border-color: #000000 #000000 #000000 #30c773; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<font face="Apple SD Gothic Neo" size="2" color="#000000" style="font: 10.0px 'Apple SD Gothic Neo'; font-kerning: none; font-variant-ligatures: common-ligatures; color: #000000; -webkit-text-stroke: 0px #000000">17:00-18:00</font>
</div> </td>
<td valign="top" style=" border-style: solid; border-width: 1.0px 1.0px 1.0px 0.0px; border-color: #ebf8ef #30c773 #ebf8ef #000000; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<br>
</div> </td>
</tr>
<tr>
<td valign="top" style=" background-color: #ebf8ef; border-style: solid; border-width: 0.0px 0.0px 0.0px 1.0px; border-color: #000000 #000000 #000000 #30c773; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<font face="Apple SD Gothic Neo" size="2" color="#000000" style="font: 10.0px 'Apple SD Gothic Neo'; font-kerning: none; font-variant-ligatures: common-ligatures; color: #000000; -webkit-text-stroke: 0px #000000">18:00-19:00</font>
</div> </td>
<td valign="top" style=" border-style: solid; border-width: 1.0px 1.0px 1.0px 0.0px; border-color: #ebf8ef #30c773 #ebf8ef #000000; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<br>
</div> </td>
</tr>
<tr>
<td valign="top" style=" background-color: #ebf8ef; border-style: solid; border-width: 0.0px 0.0px 0.0px 1.0px; border-color: #000000 #000000 #000000 #30c773; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<font face="Apple SD Gothic Neo" size="2" color="#000000" style="font: 10.0px 'Apple SD Gothic Neo'; font-kerning: none; font-variant-ligatures: common-ligatures; color: #000000; -webkit-text-stroke: 0px #000000">19:00-20:00</font>
</div> </td>
<td valign="top" style=" border-style: solid; border-width: 1.0px 1.0px 1.0px 0.0px; border-color: #ebf8ef #30c773 #ebf8ef #000000; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<br>
</div> </td>
</tr>
<tr>
<td valign="top" style=" background-color: #ebf8ef; border-style: solid; border-width: 0.0px 0.0px 0.0px 1.0px; border-color: #000000 #000000 #000000 #30c773; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<font face="Apple SD Gothic Neo" size="2" color="#000000" style="font: 10.0px 'Apple SD Gothic Neo'; font-kerning: none; font-variant-ligatures: common-ligatures; color: #000000; -webkit-text-stroke: 0px #000000">20:00-21:00</font>
</div> </td>
<td valign="top" style=" border-style: solid; border-width: 1.0px 1.0px 1.0px 0.0px; border-color: #ebf8ef #30c773 #ebf8ef #000000; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<br>
</div> </td>
</tr>
<tr>
<td valign="top" style=" background-color: #ebf8ef; border-style: solid; border-width: 0.0px 0.0px 0.0px 1.0px; border-color: #000000 #000000 #000000 #30c773; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<font face="Apple SD Gothic Neo" size="2" color="#000000" style="font: 10.0px 'Apple SD Gothic Neo'; font-kerning: none; font-variant-ligatures: common-ligatures; color: #000000; -webkit-text-stroke: 0px #000000">21:00-22:00</font>
</div> </td>
<td valign="top" style=" border-style: solid; border-width: 1.0px 1.0px 1.0px 0.0px; border-color: #ebf8ef #30c773 #ebf8ef #000000; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<br>
</div> </td>
</tr>
<tr>
<td valign="top" style=" background-color: #ebf8ef; border-style: solid; border-width: 0.0px 0.0px 0.0px 1.0px; border-color: #000000 #000000 #000000 #30c773; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<font face="Apple SD Gothic Neo" size="2" color="#000000" style="font: 10.0px 'Apple SD Gothic Neo'; font-kerning: none; font-variant-ligatures: common-ligatures; color: #000000; -webkit-text-stroke: 0px #000000">22:00-23:00</font>
</div> </td>
<td valign="top" style=" border-style: solid; border-width: 1.0px 1.0px 1.0px 0.0px; border-color: #ebf8ef #30c773 #ebf8ef #000000; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<br>
</div> </td>
</tr>
<tr>
<td valign="top" style=" background-color: #ebf8ef; border-style: solid; border-width: 0.0px 0.0px 1.0px 1.0px; border-color: #000000 #000000 #30c773 #30c773; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<font face="Apple SD Gothic Neo" size="2" color="#000000" style="font: 10.0px 'Apple SD Gothic Neo'; font-kerning: none; font-variant-ligatures: common-ligatures; color: #000000; -webkit-text-stroke: 0px #000000">23:00-24:00</font>
</div> </td>
<td valign="top" style=" border-style: solid; border-width: 1.0px 1.0px 1.0px 0.0px; border-color: #ebf8ef #30c773 #30c773 #000000; padding: 4.0px 4.0px 4.0px 4.0px;">
<div style="text-align: center">
<br>
</div> </td>
</tr>
</tbody>
</table>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -0,0 +1,20 @@
{
"name": "Essay",
"desc": "",
"author": "Thaddeus",
"authorUrl": "http://thaddeusjiang.github.io",
"langs": {
"en-us": {
"name": "Essay"
},
"zh-cn": {
"name": "随笔"
},
"zh-hk": {
"name": "隨筆"
},
"ja-jp": {
"name": "エッセイ"
}
}
}

View File

@@ -0,0 +1,26 @@
<style>
.m-post .ctc .ttl {
margin: 0 0 16px;
font-size: 16px;
}
.m-post .ctc p, .m-post .ctc ul, .m-post .ctc ol, .m-post .ctc blockquote, .m-post .ctc .text, .m-post .ctc .digest {
margin: 0 0 20px;
}
</style>
<div class="custom_template">
<div class="ct">
<div class="ctc box">
<h2 class="ttl"><a href="http://thaddeusjiang.lofter.com/post/1cd3e299_4b87b6a">Scorpion</a></h2>
<div class="txtcont">
<p>I hope someday I can say "we are scorpion".</p>
<p>Scorpion is a good team,it consists of a group of genius and can solve any problems.</p>
<p>This team is pure genius.</p>
<p><img src="public/templates/essay/images/Scorpion.jpg"><br></p>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,20 @@
{
"name": "Weekly-Plan",
"desc": "",
"author": "Thaddeus Jiang",
"authorUrl": "http://thaddeusjiang.github.io",
"langs": {
"en-us": {
"name": "Weekly-Plan"
},
"zh-cn": {
"name": "周计划"
},
"zh-hk": {
"name": "週計劃"
},
"ja-jp": {
"name": "週計画"
}
}
}

View File

@@ -0,0 +1,94 @@
<style>
</style>
<div class="custom_template">
<h1>周计划</h1>
<table style="margin-left: 0px; border: 2px solid rgb(219, 219, 219); border-collapse: collapse; table-layout: fixed;width:80%;">
<tbody>
<tr>
<td style="border: 2px solid rgb(219, 219, 219); padding: 10px;width:15%;" colspan="1" rowspan="1">
<div style="text-align: center"><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);">日期</span></span><br clear="none">
</div> </td>
<td style="border: 2px solid rgb(219, 219, 219); padding: 10px;width:47%;" colspan="1" rowspan="1">
<div style="text-align: center"><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);">待办事项</span></span></div> </td>
<td style="border: 2px solid rgb(219, 219, 219); padding: 10px;width:36%;" colspan="1" rowspan="1">
<div style="text-align: center"><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);">备忘</span></span></div> </td>
</tr>
<tr>
<td style="border: 1px solid rgb(219, 219, 219); padding: 10px;width:15%;border-style:solid;border-color:rgb(219, 219, 219);border-width:2px;" colspan="1" rowspan="1">
<div style="text-align: center"><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);">周一</span></span></div> </td>
<td style="border: 1px solid rgb(219, 219, 219); padding: 10px;width:51%;border-style:solid;border-color:rgb(219, 219, 219);border-width:2px;" colspan="1" rowspan="1">
<div>
<div><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);"><input type="checkbox"></span></span></div>
</div>
<div><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);"><input type="checkbox"></span></span></div> </td>
<td style="padding:10px;width:33.062880324543606%;border-style:solid;border-color:rgb(219, 219, 219);border-width:2px;" colspan="1" rowspan="1">
<div><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);"><br clear="none"></span></span></div> </td>
</tr>
<tr>
<td style="padding:10px;width:33.33%;border-style:solid;border-color:rgb(219, 219, 219);border-width:2px;" colspan="1" rowspan="1">
<div style="text-align: center"><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);">周二</span></span></div> </td>
<td style="padding:10px;width:33.33%;border-style:solid;border-color:rgb(219, 219, 219);border-width:2px;" colspan="1" rowspan="1">
<div>
<div><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);"><input type="checkbox"></span></span></div>
</div>
<div><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);"><input type="checkbox"></span></span></div> </td>
<td style="padding:10px;width:33.33%;border-style:solid;border-color:rgb(219, 219, 219);border-width:2px;" colspan="1" rowspan="1">
<div><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);"><br clear="none"></span></span></div> </td>
</tr>
<tr>
<td style="padding:10px;width:33.33%;border-style:solid;border-color:rgb(219, 219, 219);border-width:2px;" colspan="1" rowspan="1">
<div style="text-align: center"><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);">周三</span></span></div> </td>
<td style="padding:10px;width:33.33%;border-style:solid;border-color:rgb(219, 219, 219);border-width:2px;" colspan="1" rowspan="1">
<div>
<div><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);"><input type="checkbox"></span></span></div>
</div>
<div><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);"><input type="checkbox"></span></span></div> </td>
<td style="padding:10px;width:33.33%;border-style:solid;border-color:rgb(219, 219, 219);border-width:2px;" colspan="1" rowspan="1">
<div><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);"><br clear="none"></span></span></div> </td>
</tr>
<tr>
<td style="padding:10px;width:33.33%;border-style:solid;border-color:rgb(219, 219, 219);border-width:2px;" colspan="1" rowspan="1">
<div style="text-align: center"><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);">周四</span></span></div> </td>
<td style="padding:10px;width:33.33%;border-style:solid;border-color:rgb(219, 219, 219);border-width:2px;" colspan="1" rowspan="1">
<div>
<div><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);"><input type="checkbox"></span></span></div>
</div>
<div><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);"><input type="checkbox"></span></span></div> </td>
<td style="padding:10px;width:33.33%;border-style:solid;border-color:rgb(219, 219, 219);border-width:2px;" colspan="1" rowspan="1">
<div><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);"><br clear="none"></span></span></div> </td>
</tr>
<tr>
<td style="padding:10px;width:33.33%;border-style:solid;border-color:rgb(219, 219, 219);border-width:2px;" colspan="1" rowspan="1">
<div style="text-align: center"><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);">周五</span></span></div> </td>
<td style="padding:10px;width:33.33%;border-style:solid;border-color:rgb(219, 219, 219);border-width:2px;" colspan="1" rowspan="1">
<div>
<div><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);"><input type="checkbox"></span></span></div>
</div>
<div><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);"><input type="checkbox"></span></span></div> </td>
<td style="padding:10px;width:33.33%;border-style:solid;border-color:rgb(219, 219, 219);border-width:2px;" colspan="1" rowspan="1">
<div><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);"><br clear="none"></span></span></div> </td>
</tr>
<tr>
<td style="padding:10px;width:33.33%;border-style:solid;border-color:rgb(219, 219, 219);border-width:2px;" colspan="1" rowspan="1">
<div style="text-align: center"><span style="color: rgb(0, 166, 206);"><span style="font-size: 14px;">周六</span></span></div> </td>
<td style="padding:10px;width:33.33%;border-style:solid;border-color:rgb(219, 219, 219);border-width:2px;" colspan="1" rowspan="1">
<div><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);"><input type="checkbox"></span></span></div>
<div><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);"><input type="checkbox"></span></span></div> </td>
<td style="padding:10px;width:33.33%;border-style:solid;border-color:rgb(219, 219, 219);border-width:2px;" colspan="1" rowspan="1">
<div><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);"><br clear="none"></span></span></div> </td>
</tr>
<tr>
<td style="padding:10px;width:33.33%;border-style:solid;border-color:rgb(219, 219, 219);border-width:2px;" colspan="1" rowspan="1">
<div style="text-align: center"><span style="color: rgb(0, 166, 206);"><span style="font-size: 14px;">周日</span></span></div> </td>
<td style="padding:10px;width:33.33%;border-style:solid;border-color:rgb(219, 219, 219);border-width:2px;" colspan="1" rowspan="1">
<div><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);"><input type="checkbox"></span></span></div>
<div><span style="font-size: 14px;"><span style="color: rgb(101, 100, 106);"><input type="checkbox"></span></span></div> </td>
<td style="padding:10px;width:33.33%;border-style:solid;border-color:rgb(219, 219, 219);border-width:2px;" colspan="1" rowspan="1">
<div>
<br clear="none">
</div> </td>
</tr>
</tbody>
</table>
</div>