batch ok
This commit is contained in:
1 parent
29244c247e
commit
263c03291e
21 files changed
+1009
-266
No files matched your search
@@ -259,28 +259,59 @@ func (c Note) UpdateNoteOrContent(noteOrContent NoteOrContent) revel.Result {
|
|||||||
|
|
||||||
// 删除note/ 删除别人共享给我的笔记
|
// 删除note/ 删除别人共享给我的笔记
|
||||||
// userId 是note.UserId
|
// userId 是note.UserId
|
||||||
func (c Note) DeleteNote(noteId, userId string, isShared bool) revel.Result {
|
func (c Note) DeleteNote(noteIds []string, isShared bool) revel.Result {
|
||||||
if(!isShared) {
|
if !isShared {
|
||||||
return c.RenderJson(trashService.DeleteNote(noteId, c.GetUserId()));
|
for _, noteId := range noteIds {
|
||||||
|
trashService.DeleteNote(noteId, c.GetUserId())
|
||||||
|
}
|
||||||
|
return c.RenderJson(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
return c.RenderJson(trashService.DeleteSharedNote(noteId, userId, c.GetUserId()));
|
for _, noteId := range noteIds {
|
||||||
|
trashService.DeleteSharedNote(noteId, c.GetUserId())
|
||||||
|
}
|
||||||
|
|
||||||
|
return c.RenderJson(true)
|
||||||
}
|
}
|
||||||
// 删除trash
|
|
||||||
|
// 删除trash, 已弃用, 用DeleteNote
|
||||||
func (c Note) DeleteTrash(noteId string) revel.Result {
|
func (c Note) DeleteTrash(noteId string) revel.Result {
|
||||||
return c.RenderJson(trashService.DeleteTrash(noteId, c.GetUserId()));
|
return c.RenderJson(trashService.DeleteTrash(noteId, c.GetUserId()))
|
||||||
}
|
}
|
||||||
|
|
||||||
// 移动note
|
// 移动note
|
||||||
func (c Note) MoveNote(noteId, notebookId string) revel.Result {
|
func (c Note) MoveNote(noteIds []string, notebookId string) revel.Result {
|
||||||
return c.RenderJson(noteService.MoveNote(noteId, notebookId, c.GetUserId()));
|
userId := c.GetUserId()
|
||||||
|
for _, noteId := range noteIds {
|
||||||
|
noteService.MoveNote(noteId, notebookId, userId)
|
||||||
|
}
|
||||||
|
return c.RenderJson(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 复制note
|
// 复制note
|
||||||
func (c Note) CopyNote(noteId, notebookId string) revel.Result {
|
func (c Note) CopyNote(noteIds []string, notebookId string) revel.Result {
|
||||||
return c.RenderJson(noteService.CopyNote(noteId, notebookId, c.GetUserId()));
|
copyNotes := make([]info.Note, len(noteIds))
|
||||||
|
userId := c.GetUserId()
|
||||||
|
for i, noteId := range noteIds {
|
||||||
|
copyNotes[i] = noteService.CopyNote(noteId, notebookId, userId)
|
||||||
|
}
|
||||||
|
re := info.NewRe()
|
||||||
|
re.Ok = true
|
||||||
|
re.Item = copyNotes
|
||||||
|
return c.RenderJson(re)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 复制别人共享的笔记给我
|
// 复制别人共享的笔记给我
|
||||||
func (c Note) CopySharedNote(noteId, notebookId, fromUserId string) revel.Result {
|
func (c Note) CopySharedNote(noteIds []string, notebookId, fromUserId string) revel.Result {
|
||||||
return c.RenderJson(noteService.CopySharedNote(noteId, notebookId, fromUserId, c.GetUserId()));
|
copyNotes := make([]info.Note, len(noteIds))
|
||||||
|
userId := c.GetUserId()
|
||||||
|
for i, noteId := range noteIds {
|
||||||
|
copyNotes[i] = noteService.CopySharedNote(noteId, notebookId, fromUserId, userId)
|
||||||
|
}
|
||||||
|
re := info.NewRe()
|
||||||
|
re.Ok = true
|
||||||
|
re.Item = copyNotes
|
||||||
|
return c.RenderJson(re)
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------
|
//------------
|
||||||
@@ -290,6 +321,7 @@ func (c Note) SearchNote(key string) revel.Result {
|
|||||||
_, blogs := noteService.SearchNote(key, c.GetUserId(), c.GetPage(), pageSize, "UpdatedTime", false, false)
|
_, blogs := noteService.SearchNote(key, c.GetUserId(), c.GetPage(), pageSize, "UpdatedTime", false, false)
|
||||||
return c.RenderJson(blogs)
|
return c.RenderJson(blogs)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 通过tags搜索
|
// 通过tags搜索
|
||||||
func (c Note) SearchNoteByTags(tags []string) revel.Result {
|
func (c Note) SearchNoteByTags(tags []string) revel.Result {
|
||||||
_, blogs := noteService.SearchNoteByTags(tags, c.GetUserId(), c.GetPage(), pageSize, "UpdatedTime", false)
|
_, blogs := noteService.SearchNoteByTags(tags, c.GetUserId(), c.GetPage(), pageSize, "UpdatedTime", false)
|
||||||
@@ -456,7 +488,9 @@ func (c Note) ExportPdf(noteId string) revel.Result {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 设置/取消Blog; 置顶
|
// 设置/取消Blog; 置顶
|
||||||
func (c Note) SetNote2Blog(noteId string, isBlog, isTop bool) revel.Result {
|
func (c Note) SetNote2Blog(noteIds []string, isBlog, isTop bool) revel.Result {
|
||||||
re := noteService.ToBlog(c.GetUserId(), noteId, isBlog, isTop)
|
for _, noteId := range noteIds {
|
||||||
return c.RenderJson(re)
|
noteService.ToBlog(c.GetUserId(), noteId, isBlog, isTop)
|
||||||
|
}
|
||||||
|
return c.RenderJson(true)
|
||||||
}
|
}
|
||||||
@@ -73,17 +73,13 @@ func (this *NoteImageService) UpdateNoteImages(userId, noteId, imgSrc, content s
|
|||||||
|
|
||||||
// 复制图片, 把note的图片都copy给我, 且修改noteContent图片路径
|
// 复制图片, 把note的图片都copy给我, 且修改noteContent图片路径
|
||||||
func (this *NoteImageService) CopyNoteImages(fromNoteId, fromUserId, newNoteId, content, toUserId string) string {
|
func (this *NoteImageService) CopyNoteImages(fromNoteId, fromUserId, newNoteId, content, toUserId string) string {
|
||||||
|
/* 弃用之
|
||||||
// 得到fromNoteId的noteImages, 如果为空, 则直接返回content
|
// 得到fromNoteId的noteImages, 如果为空, 则直接返回content
|
||||||
noteImages := []info.NoteImage{}
|
noteImages := []info.NoteImage{}
|
||||||
db.ListByQWithFields(db.NoteImages, bson.M{"NoteId": bson.ObjectIdHex(fromNoteId)}, []string{"ImageId"}, ¬eImages)
|
db.ListByQWithFields(db.NoteImages, bson.M{"NoteId": bson.ObjectIdHex(fromNoteId)}, []string{"ImageId"}, ¬eImages)
|
||||||
|
|
||||||
if len(noteImages) == 0 {
|
if len(noteImages) == 0 {
|
||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
|
|
||||||
// <img src="/file/outputImage?fileId=12323232" />
|
|
||||||
// 把fileId=1232替换成新的
|
|
||||||
replaceMap := map[string]string{}
|
|
||||||
for _, noteImage := range noteImages {
|
for _, noteImage := range noteImages {
|
||||||
imageId := noteImage.ImageId.Hex()
|
imageId := noteImage.ImageId.Hex()
|
||||||
ok, newImageId := fileService.CopyImage(fromUserId, imageId, toUserId)
|
ok, newImageId := fileService.CopyImage(fromUserId, imageId, toUserId)
|
||||||
@@ -91,19 +87,43 @@ func (this *NoteImageService) CopyNoteImages(fromNoteId, fromUserId, newNoteId,
|
|||||||
replaceMap[imageId] = newImageId
|
replaceMap[imageId] = newImageId
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
if len(replaceMap) > 0 {
|
// 因为很多图片上传就会删除, 所以直接从内容中查看图片id进行复制
|
||||||
// 替换之
|
|
||||||
reg, _ := regexp.Compile("outputImage\\?fileId=([a-z0-9A-Z]{24})")
|
// <img src="/file/outputImage?fileId=12323232" />
|
||||||
content = reg.ReplaceAllStringFunc(content, func(each string) string {
|
// 把fileId=1232替换成新的
|
||||||
// each=outputImage?fileId=541bd2f599c37b4f3r000003
|
replaceMap := map[string]string{}
|
||||||
fileId := each[len(each)-24:] // 得到后24位, 也即id
|
|
||||||
if replaceFileId, ok := replaceMap[fileId]; ok {
|
reg, _ := regexp.Compile("(outputImage|getImage)\\?fileId=([a-z0-9A-Z]{24})")
|
||||||
|
content = reg.ReplaceAllStringFunc(content, func(each string) string {
|
||||||
|
// each = outputImage?fileId=541bd2f599c37b4f3r000003
|
||||||
|
// each = getImage?fileId=541bd2f599c37b4f3r000003
|
||||||
|
|
||||||
|
fileId := each[len(each)-24:] // 得到后24位, 也即id
|
||||||
|
|
||||||
|
if _, ok := replaceMap[fileId]; !ok {
|
||||||
|
if bson.IsObjectIdHex(fileId) {
|
||||||
|
ok2, newImageId := fileService.CopyImage(fromUserId, fileId, toUserId)
|
||||||
|
if ok2 {
|
||||||
|
replaceMap[fileId] = newImageId
|
||||||
|
} else {
|
||||||
|
replaceMap[fileId] = ""
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
replaceMap[fileId] = ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
replaceFileId := replaceMap[fileId]
|
||||||
|
if replaceFileId != "" {
|
||||||
|
if each[0] == 'o' {
|
||||||
return "outputImage?fileId=" + replaceFileId
|
return "outputImage?fileId=" + replaceFileId
|
||||||
}
|
}
|
||||||
return each
|
return "getImage?fileId=" + replaceFileId
|
||||||
});
|
}
|
||||||
}
|
return each
|
||||||
|
});
|
||||||
|
|
||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -664,7 +664,7 @@ func (this *NoteService) CopyNote(noteId, notebookId, userId string) info.Note {
|
|||||||
note.NotebookId = bson.ObjectIdHex(notebookId)
|
note.NotebookId = bson.ObjectIdHex(notebookId)
|
||||||
|
|
||||||
noteContent.NoteId = note.NoteId
|
noteContent.NoteId = note.NoteId
|
||||||
this.AddNoteAndContent(note, noteContent, note.UserId);
|
note = this.AddNoteAndContent(note, noteContent, note.UserId);
|
||||||
|
|
||||||
// 更新blog状态
|
// 更新blog状态
|
||||||
isBlog := this.updateToNotebookBlog(note.NoteId.Hex(), notebookId, userId)
|
isBlog := this.updateToNotebookBlog(note.NoteId.Hex(), notebookId, userId)
|
||||||
@@ -683,10 +683,9 @@ func (this *NoteService) CopyNote(noteId, notebookId, userId string) info.Note {
|
|||||||
// 复制别人的共享笔记给我
|
// 复制别人的共享笔记给我
|
||||||
// 将别人可用的图片转为我的图片, 复制图片
|
// 将别人可用的图片转为我的图片, 复制图片
|
||||||
func (this *NoteService) CopySharedNote(noteId, notebookId, fromUserId, myUserId string) info.Note {
|
func (this *NoteService) CopySharedNote(noteId, notebookId, fromUserId, myUserId string) info.Note {
|
||||||
// Log(shareService.HasSharedNote(noteId, myUserId) || shareService.HasSharedNotebook(noteId, myUserId, fromUserId))
|
|
||||||
// 判断是否共享了给我
|
// 判断是否共享了给我
|
||||||
if notebookService.IsMyNotebook(notebookId, myUserId) &&
|
// Log(notebookService.IsMyNotebook(notebookId, myUserId))
|
||||||
(shareService.HasSharedNote(noteId, myUserId) || shareService.HasSharedNotebook(noteId, myUserId, fromUserId)) {
|
if notebookService.IsMyNotebook(notebookId, myUserId) && shareService.HasReadPerm(fromUserId, myUserId, noteId) {
|
||||||
note := this.GetNote(noteId, fromUserId)
|
note := this.GetNote(noteId, fromUserId)
|
||||||
if note.NoteId == "" {
|
if note.NoteId == "" {
|
||||||
return info.Note{}
|
return info.Note{}
|
||||||
|
|||||||
@@ -25,6 +25,12 @@ type TrashService struct {
|
|||||||
// 应该放在回收站里
|
// 应该放在回收站里
|
||||||
// 有trashService
|
// 有trashService
|
||||||
func (this *TrashService) DeleteNote(noteId, userId string) bool {
|
func (this *TrashService) DeleteNote(noteId, userId string) bool {
|
||||||
|
note := noteService.GetNote(noteId, userId);
|
||||||
|
// 如果是垃圾, 则彻底删除
|
||||||
|
if (note.IsTrash) {
|
||||||
|
return this.DeleteTrash(noteId, userId)
|
||||||
|
}
|
||||||
|
|
||||||
// 首先删除其共享
|
// 首先删除其共享
|
||||||
if shareService.DeleteShareNoteAll(noteId, userId) {
|
if shareService.DeleteShareNoteAll(noteId, userId) {
|
||||||
// 更新note isTrash = true
|
// 更新note isTrash = true
|
||||||
@@ -36,13 +42,15 @@ func (this *TrashService) DeleteNote(noteId, userId string) bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除别人共享给我的笔记
|
// 删除别人共享给我的笔记
|
||||||
// 先判断我是否有权限, 笔记是否是我创建的
|
// 先判断我是否有权限, 笔记是否是我创建的
|
||||||
func (this *TrashService) DeleteSharedNote(noteId, userId, myUserId string) bool {
|
func (this *TrashService) DeleteSharedNote(noteId, myUserId string) bool {
|
||||||
note := noteService.GetNote(noteId, userId)
|
note := noteService.GetNoteById(noteId)
|
||||||
|
userId := note.UserId.Hex()
|
||||||
if shareService.HasUpdatePerm(userId, myUserId, noteId) && note.CreatedUserId.Hex() == myUserId {
|
if shareService.HasUpdatePerm(userId, myUserId, noteId) && note.CreatedUserId.Hex() == myUserId {
|
||||||
return db.UpdateByIdAndUserId(db.Notes, noteId, userId, bson.M{"$set": bson.M{"IsTrash": true, "Usn": userService.IncrUsn(userId)}})
|
return db.UpdateByIdAndUserId(db.Notes, noteId, userId, bson.M{"$set": bson.M{"IsTrash": true, "Usn": userService.IncrUsn(userId)}})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,6 +83,8 @@ function log(o) {
|
|||||||
</a>
|
</a>
|
||||||
<span class="for-split"> - </span>
|
<span class="for-split"> - </span>
|
||||||
<span id="curNotebookForNewNote" notebookId=""></span>
|
<span id="curNotebookForNewNote" notebookId=""></span>
|
||||||
|
|
||||||
|
<!--
|
||||||
<div class="dropdown" style="display: inline-block">
|
<div class="dropdown" style="display: inline-block">
|
||||||
<a class="ios7-a dropdown-toggle"
|
<a class="ios7-a dropdown-toggle"
|
||||||
id="listNotebookDropdownMenu" data-toggle="dropdown">
|
id="listNotebookDropdownMenu" data-toggle="dropdown">
|
||||||
@@ -94,6 +96,8 @@ function log(o) {
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
-->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 只为新建别人的笔记 -->
|
<!-- 只为新建别人的笔记 -->
|
||||||
@@ -104,12 +108,14 @@ function log(o) {
|
|||||||
<span class="new-note-text-abbr">{{msg . "new"}}</span>
|
<span class="new-note-text-abbr">{{msg . "new"}}</span>
|
||||||
</a>
|
</a>
|
||||||
<span class="new-split">|</span>
|
<span class="new-split">|</span>
|
||||||
<a id="newShareNoteMarkdownBtn" class="new-note" title="{{msg . "newMarkdown"}}">
|
<a id="newShareNoteMarkdownBtn" class="new-note new-markdown" title="{{msg . "newMarkdown"}}">
|
||||||
<span class="new-markdown-text">{{msg . "newMarkdown"}}</span>
|
<span class="new-markdown-text">{{msg . "newMarkdown"}}</span>
|
||||||
<span class="new-markdown-text-abbr">Md</span>
|
<span class="new-markdown-text-abbr">Md</span>
|
||||||
</a>
|
</a>
|
||||||
<span class="for-split"> - </span>
|
<span class="for-split"> - </span>
|
||||||
<span id="curNotebookForNewSharedNote" notebookId="" userId=""></span>
|
<span id="curNotebookForNewSharedNote" notebookId="" userId=""></span>
|
||||||
|
|
||||||
|
<!--
|
||||||
<div class="dropdown" style="display: inline-block">
|
<div class="dropdown" style="display: inline-block">
|
||||||
<a id="listShareNotebookDropdownMenu" class="ios7-a dropdown-toggle" data-toggle="dropdown">
|
<a id="listShareNotebookDropdownMenu" class="ios7-a dropdown-toggle" data-toggle="dropdown">
|
||||||
<i class="fa fa-angle-down"></i>
|
<i class="fa fa-angle-down"></i>
|
||||||
@@ -118,6 +124,7 @@ function log(o) {
|
|||||||
<ul id="notebookNavForNewSharedNote"></ul>
|
<ul id="notebookNavForNewSharedNote"></ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -420,12 +427,13 @@ function log(o) {
|
|||||||
|
|
||||||
<!-- 遮罩, 为了resize3Columns用 -->
|
<!-- 遮罩, 为了resize3Columns用 -->
|
||||||
<div id="noteMask" class="note-mask"></div>
|
<div id="noteMask" class="note-mask"></div>
|
||||||
<div id="noteMaskForLoading" class="note-mask">
|
<div id="noteMaskForLoading" class="note-mask"> <!-- z-index: 11 -->
|
||||||
<img src="/images/loading-24.gif"/>
|
<img src="/images/loading-24.gif"/>
|
||||||
<br />
|
<br />
|
||||||
loading...
|
loading...
|
||||||
</div>
|
</div>
|
||||||
<div id="editorMask">
|
<!-- for tips -->
|
||||||
|
<div id="editorMask"> <!-- z-index: 10 -->
|
||||||
{{msg . "noNoteNewNoteTips"}}
|
{{msg . "noNoteNewNoteTips"}}
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
@@ -437,6 +445,16 @@ function log(o) {
|
|||||||
{{msg . "canntNewNoteTips"}}
|
{{msg . "canntNewNoteTips"}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="batchMask" class="note-mask"> <!-- z-index: 99 -->
|
||||||
|
<div class="batch-ctn" id="batchCtn"></div>
|
||||||
|
<div class="batch-info">
|
||||||
|
{{leaMsg . "<span></span> notes selected"}}
|
||||||
|
<p><i class="fa fa-cog"></i></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="noteTop">
|
<div id="noteTop">
|
||||||
<!-- 左侧放tag, 右侧放按钮, 比如save, info, move, delete -->
|
<!-- 左侧放tag, 右侧放按钮, 比如save, info, move, delete -->
|
||||||
<div id="tool" class="clearfix">
|
<div id="tool" class="clearfix">
|
||||||
@@ -842,7 +860,6 @@ function log(o) {
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
var LEA = {};
|
var LEA = {};
|
||||||
LEA.s1 = new Date();
|
|
||||||
LEA.locale = "{{.locale}}";
|
LEA.locale = "{{.locale}}";
|
||||||
var UrlPrefix = '{{.siteUrl}}';
|
var UrlPrefix = '{{.siteUrl}}';
|
||||||
var UserInfo = {{.userInfo|jsonJs}};
|
var UserInfo = {{.userInfo|jsonJs}};
|
||||||
@@ -887,7 +904,6 @@ var GlobalConfigs = {{.globalConfigs|jsonJs}};
|
|||||||
<!-- /dev -->
|
<!-- /dev -->
|
||||||
|
|
||||||
<!-- pro_app_js -->
|
<!-- pro_app_js -->
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
initPage();
|
initPage();
|
||||||
// 当tinymce.dev.js时, 请注释require
|
// 当tinymce.dev.js时, 请注释require
|
||||||
@@ -904,6 +920,5 @@ window.require = {
|
|||||||
<!-- /dev -->
|
<!-- /dev -->
|
||||||
|
|
||||||
<script src="/public/js/plugins/main.js"></script>
|
<script src="/public/js/plugins/main.js"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
+2
-1
@@ -230,7 +230,7 @@ unVerified=未验证
|
|||||||
verifiedNow=现在去验证
|
verifiedNow=现在去验证
|
||||||
resendVerifiedEmail=重新发送验证邮件
|
resendVerifiedEmail=重新发送验证邮件
|
||||||
# 分享
|
# 分享
|
||||||
defaulthhare=默认共享
|
defaultShare=默认分享
|
||||||
addShare=添加分享
|
addShare=添加分享
|
||||||
friendEmail=好友邮箱
|
friendEmail=好友邮箱
|
||||||
permission=权限
|
permission=权限
|
||||||
@@ -246,6 +246,7 @@ emailBodyRequired=邮件内容不能为空
|
|||||||
clickToCopy=点击复制
|
clickToCopy=点击复制
|
||||||
sendSuccess=发送成功
|
sendSuccess=发送成功
|
||||||
inviteEmailBody=Hi, 你好, 我是%s, %s非常好用, 快来注册吧!
|
inviteEmailBody=Hi, 你好, 我是%s, %s非常好用, 快来注册吧!
|
||||||
|
<span></span> notes selected=当前选中了 <span></span> 篇笔记
|
||||||
|
|
||||||
# 历史记录
|
# 历史记录
|
||||||
historiesNum=leanote会保存笔记的最近<b>10</b>份历史记录
|
historiesNum=leanote会保存笔记的最近<b>10</b>份历史记录
|
||||||
|
|||||||
@@ -456,6 +456,9 @@ h1, h2, h3 {
|
|||||||
|
|
||||||
// blog
|
// blog
|
||||||
#noteItemList {
|
#noteItemList {
|
||||||
|
user-select: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
.item-setting, .item-blog {
|
.item-setting, .item-blog {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 1px;
|
right: 1px;
|
||||||
@@ -485,10 +488,28 @@ h1, h2, h3 {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#noteItemList .item:hover {
|
#noteItemList .item:hover {
|
||||||
.item-setting {
|
.item-setting {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 当是批量操作时, 隐藏之
|
||||||
|
.batch {
|
||||||
|
#noteItemList {
|
||||||
|
.item-active,
|
||||||
|
.item-active:hover {
|
||||||
|
// .item-blog,
|
||||||
|
.item-setting {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#toggleEditorMode {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// share
|
// share
|
||||||
@@ -1092,7 +1113,9 @@ top: 4px;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.note-mask {
|
.note-mask {
|
||||||
position: absolute; top: 0px; bottom: 0px; right: 0; left: 3px; z-index: -1;
|
position: absolute; top: 0px; bottom: 0px; right: 0;
|
||||||
|
left: 0px;
|
||||||
|
z-index: -1;
|
||||||
}
|
}
|
||||||
#noteMaskForLoading {
|
#noteMaskForLoading {
|
||||||
padding-top: 60px;
|
padding-top: 60px;
|
||||||
@@ -1645,3 +1668,55 @@ top: 4px;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------
|
||||||
|
// batch
|
||||||
|
#batchMask {
|
||||||
|
background: #fff;
|
||||||
|
user-select: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
}
|
||||||
|
.batch-ctn {
|
||||||
|
position: relative;
|
||||||
|
padding: 50px;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.batch-note {
|
||||||
|
display: inline-block;
|
||||||
|
width: 160px;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
// margin-left: -80px;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
height: 200px;
|
||||||
|
padding: 5px;
|
||||||
|
border-radius: 5px;
|
||||||
|
background: #eee;
|
||||||
|
// transform: rotate(-30deg);
|
||||||
|
overflow: hidden;
|
||||||
|
transition: margin 0.5s;
|
||||||
|
margin-left: -1000px;
|
||||||
|
.title {
|
||||||
|
font-size: 16px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.batch-info {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 300px;
|
||||||
|
// 设置
|
||||||
|
p {
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
.fa {
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1 +1 @@
|
|||||||
@font-face{font-family:leanote;src:url(../../fonts/leanote-font2/leanote.eot?-vcf23i);src:url(../../fonts/leanote-font2/leanote.eot?#iefix-vcf23i) format('embedded-opentype'),url(../../fonts/leanote-font2/leanote.ttf?-vcf23i) format('truetype'),url(../../fonts/leanote-font2/leanote.woff?-vcf23i) format('woff'),url(../../fonts/leanote-font2/leanote.svg?-vcf23i#leanote) format('svg');font-weight:400;font-style:normal}#logo,#switcher span,.mce-i-mind,.mce-i-ace-pre,.lea-icon{font-family:leanote!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-markdown:before{content:"\e604"}.mce-i-mind:before{content:"\e602"}.mce-i-ace-pre:before{content:"\e603"}#logo:before{content:"\e600";line-height:1;margin-top:5px;display:inline-block;vertical-align:top}#switcher span:before{content:"\e601"}.new-split{display:none}.new-note{background-color:#000;border-radius:3px;padding:3px 5px;border:1px solid #080303}.new-note,.new-note a{color:#fff}.new-note:hover{background:#3D3B3B;border-color:transparent}.new-note:hover,.new-note:hover a{color:#fff}.new-markdown{margin-left:3px;margin-right:3px}*,.h1,.h2,.h3,.h4,.h5,.h6{font-family:Helvetica,Tahoma,Arial,Hiragino Sans GB,"Microsoft YaHei","微软雅黑","Micro Hei",SimSun,"宋体",Heiti,"黑体",sans-serif}body{font-family:Helvetica,Tahoma,Arial,Hiragino Sans GB,"Microsoft YaHei","微软雅黑","Micro Hei",SimSun,"宋体",Heiti,"黑体",sans-serif;font-weight:400;font-size:14px}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min-device-pixel-ratio:2){body{font-weight:300}}h1,h2,h3{font-family:Helvetica,Tahoma,Arial,Hiragino Sans GB,"Microsoft YaHei","微软雅黑","Micro Hei",SimSun,"宋体",Heiti,"黑体",sans-serif;font-weight:400!important}#noteItemList,#notebook,#leftNotebook,.slimScrollDiv,#editorContent,#editorContent_ifr,.mce-edit-area,.mce-container-body,.mce-tinymce,#editor .mce-ifr,.wmd-input,#noteReadContent,#attachList,#tags,.editor-content,.preview-container{-webkit-overflow-scrolling:touch!important}.btn *{cursor:pointer!important}.ios7-a{display:inline-block;padding:0 10px;height:36px;vertical-align:middle;line-height:36px;cursor:pointer}#tool{border-bottom:1px solid #ddd;height:36px;margin-left:-5px}#tag{height:36px;line-height:36px}#editor,#mdEditor{position:absolute;z-index:2;top:66px;bottom:0;right:0;left:5px;padding:0;display:none}#mdEditor{z-index:1;background-color:#fff;bottom:5px}#mdEditor #md-section-helper,#mdEditor #wmd-input{font-size:14px;line-height:22px}#tag .dropdown{line-height:30px}.btn{border-radius:2px}.alert{margin-bottom:10px}#logo{font-size:36px}#switcher span{border-radius:5px;display:inline-block;cursor:pointer;font-size:18px;height:34px;line-height:34px;margin-top:8px;padding:0 5px}.noteSplit{position:absolute;top:0;width:5px;height:100%;overflow:hidden;z-index:3333;cursor:col-resize}.dropdown-menu{border-radius:3px;margin:0;border:1px solid #0fb264;box-shadow:rgba(0,0,0,.172549)0 6px 12px 0}.dropdown-menu:before{content:"";width:20px;height:12px;position:absolute;top:-12px;right:8px;background-image:url(../../images/triangle_2x.png);background-size:20px 12px}.dropdown-submenu .dropdown-menu:before{background:0 0}#searchNotebookForAddDropdownList,#searchNotebookForAddShareDropdownList{left:-200px}#searchNotebookForAddDropdownList:before,#searchNotebookForAddShareDropdownList:before{left:190px;right:inherit}.dropdown-menu li{list-style:none;padding-left:10px;width:100%;height:30px;line-height:30px}.dropdown-menu li>a{color:#000;display:block;padding-right:20px}.dropdown-menu>li>a{padding:3px 20px 3px 0}#notebookNavForNewNote li:hover{background:0 0}#noteList{position:absolute;bottom:0;top:0}#noteAndEditorMask{position:absolute;left:0;right:0;top:0;bottom:0;background:#fff;text-align:center;padding-top:60px;opacity:.3;z-index:20;display:none}.dropdown-submenu{position:relative}.dropdown-submenu>ul.dropdown-menu{top:0;left:100%;margin-left:-3px!important;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;padding-top:10px!important}.dropdown-submenu:hover>.dropdown-menu{display:block}.dropdown-submenu:after{display:block;content:" ";position:absolute;right:0;top:10px;width:0;height:0;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;border-left-color:#666}.dropdown-submenu:hover>a:after{border-left-color:#fff}.dropdown-submenu.pull-left{float:none}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px}.open>.dropdown-menu,.dropdown-submenu:hover>.dropdown-menu{opacity:1;transform:scale(1,1);-webkit-transform:scale(1,1);-moz-transform:scale(1,1);-o-transform:scale(1,1)}.dropdown-menu{opacity:0;display:block;-webkit-transform:scale(0,0);-webkit-transform-origin:top;-webkit-animation-fill-mode:forwards;-webkit-transition:all .2s cubic-bezier(0.34,1.21,.4,Line truncated
|
@font-face{font-family:leanote;src:url(../../fonts/leanote-font2/leanote.eot?-vcf23i);src:url(../../fonts/leanote-font2/leanote.eot?#iefix-vcf23i) format('embedded-opentype'),url(../../fonts/leanote-font2/leanote.ttf?-vcf23i) format('truetype'),url(../../fonts/leanote-font2/leanote.woff?-vcf23i) format('woff'),url(../../fonts/leanote-font2/leanote.svg?-vcf23i#leanote) format('svg');font-weight:400;font-style:normal}#logo,#switcher span,.mce-i-mind,.mce-i-ace-pre,.lea-icon{font-family:leanote!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-markdown:before{content:"\e604"}.mce-i-mind:before{content:"\e602"}.mce-i-ace-pre:before{content:"\e603"}#logo:before{content:"\e600";line-height:1;margin-top:5px;display:inline-block;vertical-align:top}#switcher span:before{content:"\e601"}.new-split{display:none}.new-note{background-color:#000;border-radius:3px;padding:3px 5px;border:1px solid #080303}.new-note,.new-note a{color:#fff}.new-note:hover{background:#3D3B3B;border-color:transparent}.new-note:hover,.new-note:hover a{color:#fff}.new-markdown{margin-left:3px;margin-right:3px}*,.h1,.h2,.h3,.h4,.h5,.h6{font-family:Helvetica,Tahoma,Arial,Hiragino Sans GB,"Microsoft YaHei","微软雅黑","Micro Hei",SimSun,"宋体",Heiti,"黑体",sans-serif}body{font-family:Helvetica,Tahoma,Arial,Hiragino Sans GB,"Microsoft YaHei","微软雅黑","Micro Hei",SimSun,"宋体",Heiti,"黑体",sans-serif;font-weight:400;font-size:14px}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min-device-pixel-ratio:2){body{font-weight:300}}h1,h2,h3{font-family:Helvetica,Tahoma,Arial,Hiragino Sans GB,"Microsoft YaHei","微软雅黑","Micro Hei",SimSun,"宋体",Heiti,"黑体",sans-serif;font-weight:400!important}#noteItemList,#notebook,#leftNotebook,.slimScrollDiv,#editorContent,#editorContent_ifr,.mce-edit-area,.mce-container-body,.mce-tinymce,#editor .mce-ifr,.wmd-input,#noteReadContent,#attachList,#tags,.editor-content,.preview-container{-webkit-overflow-scrolling:touch!important}.btn *{cursor:pointer!important}.ios7-a{display:inline-block;padding:0 10px;height:36px;vertical-align:middle;line-height:36px;cursor:pointer}#tool{border-bottom:1px solid #ddd;height:36px;margin-left:-5px}#tag{height:36px;line-height:36px}#editor,#mdEditor{position:absolute;z-index:2;top:66px;bottom:0;right:0;left:5px;padding:0;display:none}#mdEditor{z-index:1;background-color:#fff;bottom:5px}#mdEditor #md-section-helper,#mdEditor #wmd-input{font-size:14px;line-height:22px}#tag .dropdown{line-height:30px}.btn{border-radius:2px}.alert{margin-bottom:10px}#logo{font-size:36px}#switcher span{border-radius:5px;display:inline-block;cursor:pointer;font-size:18px;height:34px;line-height:34px;margin-top:8px;padding:0 5px}.noteSplit{position:absolute;top:0;width:5px;height:100%;overflow:hidden;z-index:3333;cursor:col-resize}.dropdown-menu{border-radius:3px;margin:0;border:1px solid #0fb264;box-shadow:rgba(0,0,0,.172549)0 6px 12px 0}.dropdown-menu:before{content:"";width:20px;height:12px;position:absolute;top:-12px;right:8px;background-image:url(../../images/triangle_2x.png);background-size:20px 12px}.dropdown-submenu .dropdown-menu:before{background:0 0}#searchNotebookForAddDropdownList,#searchNotebookForAddShareDropdownList{left:-200px}#searchNotebookForAddDropdownList:before,#searchNotebookForAddShareDropdownList:before{left:190px;right:inherit}.dropdown-menu li{list-style:none;padding-left:10px;width:100%;height:30px;line-height:30px}.dropdown-menu li>a{color:#000;display:block;padding-right:20px}.dropdown-menu>li>a{padding:3px 20px 3px 0}#notebookNavForNewNote li:hover{background:0 0}#noteList{position:absolute;bottom:0;top:0}#noteAndEditorMask{position:absolute;left:0;right:0;top:0;bottom:0;background:#fff;text-align:center;padding-top:60px;opacity:.3;z-index:20;display:none}.dropdown-submenu{position:relative}.dropdown-submenu>ul.dropdown-menu{top:0;left:100%;margin-left:-3px!important;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;padding-top:10px!important}.dropdown-submenu:hover>.dropdown-menu{display:block}.dropdown-submenu:after{display:block;content:" ";position:absolute;right:0;top:10px;width:0;height:0;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;border-left-color:#666}.dropdown-submenu:hover>a:after{border-left-color:#fff}.dropdown-submenu.pull-left{float:none}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px}.open>.dropdown-menu,.dropdown-submenu:hover>.dropdown-menu{opacity:1;transform:scale(1,1);-webkit-transform:scale(1,1);-moz-transform:scale(1,1);-o-transform:scale(1,1)}.dropdown-menu{opacity:0;display:block;-webkit-transform:scale(0,0);-webkit-transform-origin:top;-webkit-animation-fill-mode:forwards;-webkit-transition:all .2s cubic-bezier(0.34,1.21,.4,Line truncated
|
||||||
@@ -1 +1 @@
|
|||||||
@font-face{font-family:leanote;src:url(../../fonts/leanote-font2/leanote.eot?-vcf23i);src:url(../../fonts/leanote-font2/leanote.eot?#iefix-vcf23i) format('embedded-opentype'),url(../../fonts/leanote-font2/leanote.ttf?-vcf23i) format('truetype'),url(../../fonts/leanote-font2/leanote.woff?-vcf23i) format('woff'),url(../../fonts/leanote-font2/leanote.svg?-vcf23i#leanote) format('svg');font-weight:400;font-style:normal}#logo,#switcher span,.mce-i-mind,.mce-i-ace-pre,.lea-icon{font-family:leanote!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-markdown:before{content:"\e604"}.mce-i-mind:before{content:"\e602"}.mce-i-ace-pre:before{content:"\e603"}#logo:before{content:"\e600";line-height:1;margin-top:5px;display:inline-block;vertical-align:top}#switcher span:before{content:"\e601"}.new-split{display:none}.new-note{background-color:#000;border-radius:3px;padding:3px 5px;border:1px solid #080303}.new-note,.new-note a{color:#fff}.new-note:hover{background:#3D3B3B;border-color:transparent}.new-note:hover,.new-note:hover a{color:#fff}.new-markdown{margin-left:3px;margin-right:3px}*,.h1,.h2,.h3,.h4,.h5,.h6{font-family:Helvetica,Tahoma,Arial,Hiragino Sans GB,"Microsoft YaHei","微软雅黑","Micro Hei",SimSun,"宋体",Heiti,"黑体",sans-serif}body{font-family:Helvetica,Tahoma,Arial,Hiragino Sans GB,"Microsoft YaHei","微软雅黑","Micro Hei",SimSun,"宋体",Heiti,"黑体",sans-serif;font-weight:400;font-size:14px}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min-device-pixel-ratio:2){body{font-weight:300}}h1,h2,h3{font-family:Helvetica,Tahoma,Arial,Hiragino Sans GB,"Microsoft YaHei","微软雅黑","Micro Hei",SimSun,"宋体",Heiti,"黑体",sans-serif;font-weight:400!important}#noteItemList,#notebook,#leftNotebook,.slimScrollDiv,#editorContent,#editorContent_ifr,.mce-edit-area,.mce-container-body,.mce-tinymce,#editor .mce-ifr,.wmd-input,#noteReadContent,#attachList,#tags,.editor-content,.preview-container{-webkit-overflow-scrolling:touch!important}.btn *{cursor:pointer!important}.ios7-a{display:inline-block;padding:0 10px;height:36px;vertical-align:middle;line-height:36px;cursor:pointer}#tool{border-bottom:1px solid #ddd;height:36px;margin-left:-5px}#tag{height:36px;line-height:36px}#editor,#mdEditor{position:absolute;z-index:2;top:66px;bottom:0;right:0;left:5px;padding:0;display:none}#mdEditor{z-index:1;background-color:#fff;bottom:5px}#mdEditor #md-section-helper,#mdEditor #wmd-input{font-size:14px;line-height:22px}#tag .dropdown{line-height:30px}.btn{border-radius:2px}.alert{margin-bottom:10px}#logo{font-size:36px}#switcher span{border-radius:5px;display:inline-block;cursor:pointer;font-size:18px;height:34px;line-height:34px;margin-top:8px;padding:0 5px}.noteSplit{position:absolute;top:0;width:5px;height:100%;overflow:hidden;z-index:3333;cursor:col-resize}.dropdown-menu{border-radius:3px;margin:0;border:1px solid #0fb264;box-shadow:rgba(0,0,0,.172549)0 6px 12px 0}.dropdown-menu:before{content:"";width:20px;height:12px;position:absolute;top:-12px;right:8px;background-image:url(../../images/triangle_2x.png);background-size:20px 12px}.dropdown-submenu .dropdown-menu:before{background:0 0}#searchNotebookForAddDropdownList,#searchNotebookForAddShareDropdownList{left:-200px}#searchNotebookForAddDropdownList:before,#searchNotebookForAddShareDropdownList:before{left:190px;right:inherit}.dropdown-menu li{list-style:none;padding-left:10px;width:100%;height:30px;line-height:30px}.dropdown-menu li>a{color:#000;display:block;padding-right:20px}.dropdown-menu>li>a{padding:3px 20px 3px 0}#notebookNavForNewNote li:hover{background:0 0}#noteList{position:absolute;bottom:0;top:0}#noteAndEditorMask{position:absolute;left:0;right:0;top:0;bottom:0;background:#fff;text-align:center;padding-top:60px;opacity:.3;z-index:20;display:none}.dropdown-submenu{position:relative}.dropdown-submenu>ul.dropdown-menu{top:0;left:100%;margin-left:-3px!important;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;padding-top:10px!important}.dropdown-submenu:hover>.dropdown-menu{display:block}.dropdown-submenu:after{display:block;content:" ";position:absolute;right:0;top:10px;width:0;height:0;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;border-left-color:#666}.dropdown-submenu:hover>a:after{border-left-color:#fff}.dropdown-submenu.pull-left{float:none}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px}.open>.dropdown-menu,.dropdown-submenu:hover>.dropdown-menu{opacity:1;transform:scale(1,1);-webkit-transform:scale(1,1);-moz-transform:scale(1,1);-o-transform:scale(1,1)}.dropdown-menu{opacity:0;display:block;-webkit-transform:scale(0,0);-webkit-transform-origin:top;-webkit-animation-fill-mode:forwards;-webkit-transition:all .2s cubic-bezier(0.34,1.21,.4,Line truncated
|
@font-face{font-family:leanote;src:url(../../fonts/leanote-font2/leanote.eot?-vcf23i);src:url(../../fonts/leanote-font2/leanote.eot?#iefix-vcf23i) format('embedded-opentype'),url(../../fonts/leanote-font2/leanote.ttf?-vcf23i) format('truetype'),url(../../fonts/leanote-font2/leanote.woff?-vcf23i) format('woff'),url(../../fonts/leanote-font2/leanote.svg?-vcf23i#leanote) format('svg');font-weight:400;font-style:normal}#logo,#switcher span,.mce-i-mind,.mce-i-ace-pre,.lea-icon{font-family:leanote!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-markdown:before{content:"\e604"}.mce-i-mind:before{content:"\e602"}.mce-i-ace-pre:before{content:"\e603"}#logo:before{content:"\e600";line-height:1;margin-top:5px;display:inline-block;vertical-align:top}#switcher span:before{content:"\e601"}.new-split{display:none}.new-note{background-color:#000;border-radius:3px;padding:3px 5px;border:1px solid #080303}.new-note,.new-note a{color:#fff}.new-note:hover{background:#3D3B3B;border-color:transparent}.new-note:hover,.new-note:hover a{color:#fff}.new-markdown{margin-left:3px;margin-right:3px}*,.h1,.h2,.h3,.h4,.h5,.h6{font-family:Helvetica,Tahoma,Arial,Hiragino Sans GB,"Microsoft YaHei","微软雅黑","Micro Hei",SimSun,"宋体",Heiti,"黑体",sans-serif}body{font-family:Helvetica,Tahoma,Arial,Hiragino Sans GB,"Microsoft YaHei","微软雅黑","Micro Hei",SimSun,"宋体",Heiti,"黑体",sans-serif;font-weight:400;font-size:14px}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min-device-pixel-ratio:2){body{font-weight:300}}h1,h2,h3{font-family:Helvetica,Tahoma,Arial,Hiragino Sans GB,"Microsoft YaHei","微软雅黑","Micro Hei",SimSun,"宋体",Heiti,"黑体",sans-serif;font-weight:400!important}#noteItemList,#notebook,#leftNotebook,.slimScrollDiv,#editorContent,#editorContent_ifr,.mce-edit-area,.mce-container-body,.mce-tinymce,#editor .mce-ifr,.wmd-input,#noteReadContent,#attachList,#tags,.editor-content,.preview-container{-webkit-overflow-scrolling:touch!important}.btn *{cursor:pointer!important}.ios7-a{display:inline-block;padding:0 10px;height:36px;vertical-align:middle;line-height:36px;cursor:pointer}#tool{border-bottom:1px solid #ddd;height:36px;margin-left:-5px}#tag{height:36px;line-height:36px}#editor,#mdEditor{position:absolute;z-index:2;top:66px;bottom:0;right:0;left:5px;padding:0;display:none}#mdEditor{z-index:1;background-color:#fff;bottom:5px}#mdEditor #md-section-helper,#mdEditor #wmd-input{font-size:14px;line-height:22px}#tag .dropdown{line-height:30px}.btn{border-radius:2px}.alert{margin-bottom:10px}#logo{font-size:36px}#switcher span{border-radius:5px;display:inline-block;cursor:pointer;font-size:18px;height:34px;line-height:34px;margin-top:8px;padding:0 5px}.noteSplit{position:absolute;top:0;width:5px;height:100%;overflow:hidden;z-index:3333;cursor:col-resize}.dropdown-menu{border-radius:3px;margin:0;border:1px solid #0fb264;box-shadow:rgba(0,0,0,.172549)0 6px 12px 0}.dropdown-menu:before{content:"";width:20px;height:12px;position:absolute;top:-12px;right:8px;background-image:url(../../images/triangle_2x.png);background-size:20px 12px}.dropdown-submenu .dropdown-menu:before{background:0 0}#searchNotebookForAddDropdownList,#searchNotebookForAddShareDropdownList{left:-200px}#searchNotebookForAddDropdownList:before,#searchNotebookForAddShareDropdownList:before{left:190px;right:inherit}.dropdown-menu li{list-style:none;padding-left:10px;width:100%;height:30px;line-height:30px}.dropdown-menu li>a{color:#000;display:block;padding-right:20px}.dropdown-menu>li>a{padding:3px 20px 3px 0}#notebookNavForNewNote li:hover{background:0 0}#noteList{position:absolute;bottom:0;top:0}#noteAndEditorMask{position:absolute;left:0;right:0;top:0;bottom:0;background:#fff;text-align:center;padding-top:60px;opacity:.3;z-index:20;display:none}.dropdown-submenu{position:relative}.dropdown-submenu>ul.dropdown-menu{top:0;left:100%;margin-left:-3px!important;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;padding-top:10px!important}.dropdown-submenu:hover>.dropdown-menu{display:block}.dropdown-submenu:after{display:block;content:" ";position:absolute;right:0;top:10px;width:0;height:0;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;border-left-color:#666}.dropdown-submenu:hover>a:after{border-left-color:#fff}.dropdown-submenu.pull-left{float:none}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px}.open>.dropdown-menu,.dropdown-submenu:hover>.dropdown-menu{opacity:1;transform:scale(1,1);-webkit-transform:scale(1,1);-moz-transform:scale(1,1);-o-transform:scale(1,1)}.dropdown-menu{opacity:0;display:block;-webkit-transform:scale(0,0);-webkit-transform-origin:top;-webkit-animation-fill-mode:forwards;-webkit-transition:all .2s cubic-bezier(0.34,1.21,.4,Line truncated
|
||||||
@@ -1 +1 @@
|
|||||||
@font-face{font-family:leanote;src:url(../../fonts/leanote-font2/leanote.eot?-vcf23i);src:url(../../fonts/leanote-font2/leanote.eot?#iefix-vcf23i) format('embedded-opentype'),url(../../fonts/leanote-font2/leanote.ttf?-vcf23i) format('truetype'),url(../../fonts/leanote-font2/leanote.woff?-vcf23i) format('woff'),url(../../fonts/leanote-font2/leanote.svg?-vcf23i#leanote) format('svg');font-weight:400;font-style:normal}#logo,#switcher span,.mce-i-mind,.mce-i-ace-pre,.lea-icon{font-family:leanote!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-markdown:before{content:"\e604"}.mce-i-mind:before{content:"\e602"}.mce-i-ace-pre:before{content:"\e603"}#logo:before{content:"\e600";line-height:1;margin-top:5px;display:inline-block;vertical-align:top}#switcher span:before{content:"\e601"}.new-split{display:none}.new-note{background-color:#000;border-radius:3px;padding:3px 5px;border:1px solid #080303}.new-note,.new-note a{color:#fff}.new-note:hover{background:#3D3B3B;border-color:transparent}.new-note:hover,.new-note:hover a{color:#fff}.new-markdown{margin-left:3px;margin-right:3px}*,.h1,.h2,.h3,.h4,.h5,.h6{font-family:'Open Sans','Helvetica Neue',Arial,'Hiragino Sans GB','Microsoft YaHei','WenQuanYi Micro Hei',sans-serif}body{font-family:'Open Sans','Helvetica Neue',Arial,'Hiragino Sans GB','Microsoft YaHei','WenQuanYi Micro Hei',sans-serif;font-weight:400;font-size:16px}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min-device-pixel-ratio:2){body{font-weight:300}}h1,h2,h3{font-family:'Open Sans','Helvetica Neue',Arial,'Hiragino Sans GB','Microsoft YaHei','WenQuanYi Micro Hei',sans-serif;font-weight:400!important}#noteItemList,#notebook,#leftNotebook,.slimScrollDiv,#editorContent,#editorContent_ifr,.mce-edit-area,.mce-container-body,.mce-tinymce,#editor .mce-ifr,.wmd-input,#noteReadContent,#attachList,#tags,.editor-content,.preview-container{-webkit-overflow-scrolling:touch!important}.btn *{cursor:pointer!important}.ios7-a{display:inline-block;padding:0 10px;height:36px;vertical-align:middle;line-height:36px;cursor:pointer}#tool{border-bottom:1px solid #ddd;height:36px;margin-left:-5px}#tag{height:36px;line-height:36px}#editor,#mdEditor{position:absolute;z-index:2;top:66px;bottom:0;right:0;left:5px;padding:0;display:none}#mdEditor{z-index:1;background-color:#fff;bottom:5px}#mdEditor #md-section-helper,#mdEditor #wmd-input{font-size:14px;line-height:22px}#tag .dropdown{line-height:30px}.btn{border-radius:2px}.alert{margin-bottom:10px}#logo{font-size:36px}#switcher span{border-radius:5px;display:inline-block;cursor:pointer;font-size:18px;height:34px;line-height:34px;margin-top:8px;padding:0 5px}.noteSplit{position:absolute;top:0;width:5px;height:100%;overflow:hidden;z-index:3333;cursor:col-resize}.dropdown-menu{border-radius:3px;margin:0;border:1px solid #0fb264;box-shadow:rgba(0,0,0,.172549)0 6px 12px 0}.dropdown-menu:before{content:"";width:20px;height:12px;position:absolute;top:-12px;right:8px;background-image:url(../../images/triangle_2x.png);background-size:20px 12px}.dropdown-submenu .dropdown-menu:before{background:0 0}#searchNotebookForAddDropdownList,#searchNotebookForAddShareDropdownList{left:-200px}#searchNotebookForAddDropdownList:before,#searchNotebookForAddShareDropdownList:before{left:190px;right:inherit}.dropdown-menu li{list-style:none;padding-left:10px;width:100%;height:30px;line-height:30px}.dropdown-menu li>a{color:#000;display:block;padding-right:20px}.dropdown-menu>li>a{padding:3px 20px 3px 0}#notebookNavForNewNote li:hover{background:0 0}#noteList{position:absolute;bottom:0;top:0}#noteAndEditorMask{position:absolute;left:0;right:0;top:0;bottom:0;background:#fff;text-align:center;padding-top:60px;opacity:.3;z-index:20;display:none}.dropdown-submenu{position:relative}.dropdown-submenu>ul.dropdown-menu{top:0;left:100%;margin-left:-3px!important;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;padding-top:10px!important}.dropdown-submenu:hover>.dropdown-menu{display:block}.dropdown-submenu:after{display:block;content:" ";position:absolute;right:0;top:10px;width:0;height:0;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;border-left-color:#666}.dropdown-submenu:hover>a:after{border-left-color:#fff}.dropdown-submenu.pull-left{float:none}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px}.open>.dropdown-menu,.dropdown-submenu:hover>.dropdown-menu{opacity:1;transform:scale(1,1);-webkit-transform:scale(1,1);-moz-transform:scale(1,1);-o-transform:scale(1,1)}.dropdown-menu{opacity:0;display:block;-webkit-transform:scale(0,0);-webkit-transform-origin:top;-webkit-animation-fill-mode:forwards;-webkit-transition:all .2s cubic-bezier(0.34,1.21,.4,1);-o-transform:scale(0,0);-o-transform-origin:top;-o-animation-fiLine truncated
|
@font-face{font-family:leanote;src:url(../../fonts/leanote-font2/leanote.eot?-vcf23i);src:url(../../fonts/leanote-font2/leanote.eot?#iefix-vcf23i) format('embedded-opentype'),url(../../fonts/leanote-font2/leanote.ttf?-vcf23i) format('truetype'),url(../../fonts/leanote-font2/leanote.woff?-vcf23i) format('woff'),url(../../fonts/leanote-font2/leanote.svg?-vcf23i#leanote) format('svg');font-weight:400;font-style:normal}#logo,#switcher span,.mce-i-mind,.mce-i-ace-pre,.lea-icon{font-family:leanote!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-markdown:before{content:"\e604"}.mce-i-mind:before{content:"\e602"}.mce-i-ace-pre:before{content:"\e603"}#logo:before{content:"\e600";line-height:1;margin-top:5px;display:inline-block;vertical-align:top}#switcher span:before{content:"\e601"}.new-split{display:none}.new-note{background-color:#000;border-radius:3px;padding:3px 5px;border:1px solid #080303}.new-note,.new-note a{color:#fff}.new-note:hover{background:#3D3B3B;border-color:transparent}.new-note:hover,.new-note:hover a{color:#fff}.new-markdown{margin-left:3px;margin-right:3px}*,.h1,.h2,.h3,.h4,.h5,.h6{font-family:'Open Sans','Helvetica Neue',Arial,'Hiragino Sans GB','Microsoft YaHei','WenQuanYi Micro Hei',sans-serif}body{font-family:'Open Sans','Helvetica Neue',Arial,'Hiragino Sans GB','Microsoft YaHei','WenQuanYi Micro Hei',sans-serif;font-weight:400;font-size:16px}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min-device-pixel-ratio:2){body{font-weight:300}}h1,h2,h3{font-family:'Open Sans','Helvetica Neue',Arial,'Hiragino Sans GB','Microsoft YaHei','WenQuanYi Micro Hei',sans-serif;font-weight:400!important}#noteItemList,#notebook,#leftNotebook,.slimScrollDiv,#editorContent,#editorContent_ifr,.mce-edit-area,.mce-container-body,.mce-tinymce,#editor .mce-ifr,.wmd-input,#noteReadContent,#attachList,#tags,.editor-content,.preview-container{-webkit-overflow-scrolling:touch!important}.btn *{cursor:pointer!important}.ios7-a{display:inline-block;padding:0 10px;height:36px;vertical-align:middle;line-height:36px;cursor:pointer}#tool{border-bottom:1px solid #ddd;height:36px;margin-left:-5px}#tag{height:36px;line-height:36px}#editor,#mdEditor{position:absolute;z-index:2;top:66px;bottom:0;right:0;left:5px;padding:0;display:none}#mdEditor{z-index:1;background-color:#fff;bottom:5px}#mdEditor #md-section-helper,#mdEditor #wmd-input{font-size:14px;line-height:22px}#tag .dropdown{line-height:30px}.btn{border-radius:2px}.alert{margin-bottom:10px}#logo{font-size:36px}#switcher span{border-radius:5px;display:inline-block;cursor:pointer;font-size:18px;height:34px;line-height:34px;margin-top:8px;padding:0 5px}.noteSplit{position:absolute;top:0;width:5px;height:100%;overflow:hidden;z-index:3333;cursor:col-resize}.dropdown-menu{border-radius:3px;margin:0;border:1px solid #0fb264;box-shadow:rgba(0,0,0,.172549)0 6px 12px 0}.dropdown-menu:before{content:"";width:20px;height:12px;position:absolute;top:-12px;right:8px;background-image:url(../../images/triangle_2x.png);background-size:20px 12px}.dropdown-submenu .dropdown-menu:before{background:0 0}#searchNotebookForAddDropdownList,#searchNotebookForAddShareDropdownList{left:-200px}#searchNotebookForAddDropdownList:before,#searchNotebookForAddShareDropdownList:before{left:190px;right:inherit}.dropdown-menu li{list-style:none;padding-left:10px;width:100%;height:30px;line-height:30px}.dropdown-menu li>a{color:#000;display:block;padding-right:20px}.dropdown-menu>li>a{padding:3px 20px 3px 0}#notebookNavForNewNote li:hover{background:0 0}#noteList{position:absolute;bottom:0;top:0}#noteAndEditorMask{position:absolute;left:0;right:0;top:0;bottom:0;background:#fff;text-align:center;padding-top:60px;opacity:.3;z-index:20;display:none}.dropdown-submenu{position:relative}.dropdown-submenu>ul.dropdown-menu{top:0;left:100%;margin-left:-3px!important;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;padding-top:10px!important}.dropdown-submenu:hover>.dropdown-menu{display:block}.dropdown-submenu:after{display:block;content:" ";position:absolute;right:0;top:10px;width:0;height:0;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;border-left-color:#666}.dropdown-submenu:hover>a:after{border-left-color:#fff}.dropdown-submenu.pull-left{float:none}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px}.open>.dropdown-menu,.dropdown-submenu:hover>.dropdown-menu{opacity:1;transform:scale(1,1);-webkit-transform:scale(1,1);-moz-transform:scale(1,1);-o-transform:scale(1,1)}.dropdown-menu{opacity:0;display:block;-webkit-transform:scale(0,0);-webkit-transform-origin:top;-webkit-animation-fill-mode:forwards;-webkit-transition:all .2s cubic-bezier(0.34,1.21,.4,1);-o-transform:scale(0,0);-o-transform-origin:top;-o-animation-fiLine truncated
|
||||||
@@ -1 +1 @@
|
|||||||
@font-face{font-family:leanote;src:url(../../fonts/leanote-font2/leanote.eot?-vcf23i);src:url(../../fonts/leanote-font2/leanote.eot?#iefix-vcf23i) format('embedded-opentype'),url(../../fonts/leanote-font2/leanote.ttf?-vcf23i) format('truetype'),url(../../fonts/leanote-font2/leanote.woff?-vcf23i) format('woff'),url(../../fonts/leanote-font2/leanote.svg?-vcf23i#leanote) format('svg');font-weight:400;font-style:normal}#logo,#switcher span,.mce-i-mind,.mce-i-ace-pre,.lea-icon{font-family:leanote!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-markdown:before{content:"\e604"}.mce-i-mind:before{content:"\e602"}.mce-i-ace-pre:before{content:"\e603"}#logo:before{content:"\e600";line-height:1;margin-top:5px;display:inline-block;vertical-align:top}#switcher span:before{content:"\e601"}.new-split{display:none}.new-note{background-color:#000;border-radius:3px;padding:3px 5px;border:1px solid #080303}.new-note,.new-note a{color:#fff}.new-note:hover{background:#3D3B3B;border-color:transparent}.new-note:hover,.new-note:hover a{color:#fff}.new-markdown{margin-left:3px;margin-right:3px}*,.h1,.h2,.h3,.h4,.h5,.h6{font-family:'Open Sans','Helvetica Neue',Arial,'Hiragino Sans GB','Microsoft YaHei','WenQuanYi Micro Hei',sans-serif}body{font-family:'Open Sans','Helvetica Neue',Arial,'Hiragino Sans GB','Microsoft YaHei','WenQuanYi Micro Hei',sans-serif;font-weight:400;font-size:16px}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min-device-pixel-ratio:2){body{font-weight:300}}h1,h2,h3{font-family:'Open Sans','Helvetica Neue',Arial,'Hiragino Sans GB','Microsoft YaHei','WenQuanYi Micro Hei',sans-serif;font-weight:400!important}#noteItemList,#notebook,#leftNotebook,.slimScrollDiv,#editorContent,#editorContent_ifr,.mce-edit-area,.mce-container-body,.mce-tinymce,#editor .mce-ifr,.wmd-input,#noteReadContent,#attachList,#tags,.editor-content,.preview-container{-webkit-overflow-scrolling:touch!important}.btn *{cursor:pointer!important}.ios7-a{display:inline-block;padding:0 10px;height:36px;vertical-align:middle;line-height:36px;cursor:pointer}#tool{border-bottom:1px solid #ddd;height:36px;margin-left:-5px}#tag{height:36px;line-height:36px}#editor,#mdEditor{position:absolute;z-index:2;top:66px;bottom:0;right:0;left:5px;padding:0;display:none}#mdEditor{z-index:1;background-color:#fff;bottom:5px}#mdEditor #md-section-helper,#mdEditor #wmd-input{font-size:14px;line-height:22px}#tag .dropdown{line-height:30px}.btn{border-radius:2px}.alert{margin-bottom:10px}#logo{font-size:36px}#switcher span{border-radius:5px;display:inline-block;cursor:pointer;font-size:18px;height:34px;line-height:34px;margin-top:8px;padding:0 5px}.noteSplit{position:absolute;top:0;width:5px;height:100%;overflow:hidden;z-index:3333;cursor:col-resize}.dropdown-menu{border-radius:3px;margin:0;border:1px solid #0fb264;box-shadow:rgba(0,0,0,.172549)0 6px 12px 0}.dropdown-menu:before{content:"";width:20px;height:12px;position:absolute;top:-12px;right:8px;background-image:url(../../images/triangle_2x.png);background-size:20px 12px}.dropdown-submenu .dropdown-menu:before{background:0 0}#searchNotebookForAddDropdownList,#searchNotebookForAddShareDropdownList{left:-200px}#searchNotebookForAddDropdownList:before,#searchNotebookForAddShareDropdownList:before{left:190px;right:inherit}.dropdown-menu li{list-style:none;padding-left:10px;width:100%;height:30px;line-height:30px}.dropdown-menu li>a{color:#000;display:block;padding-right:20px}.dropdown-menu>li>a{padding:3px 20px 3px 0}#notebookNavForNewNote li:hover{background:0 0}#noteList{position:absolute;bottom:0;top:0}#noteAndEditorMask{position:absolute;left:0;right:0;top:0;bottom:0;background:#fff;text-align:center;padding-top:60px;opacity:.3;z-index:20;display:none}.dropdown-submenu{position:relative}.dropdown-submenu>ul.dropdown-menu{top:0;left:100%;margin-left:-3px!important;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;padding-top:10px!important}.dropdown-submenu:hover>.dropdown-menu{display:block}.dropdown-submenu:after{display:block;content:" ";position:absolute;right:0;top:10px;width:0;height:0;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;border-left-color:#666}.dropdown-submenu:hover>a:after{border-left-color:#fff}.dropdown-submenu.pull-left{float:none}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px}.open>.dropdown-menu,.dropdown-submenu:hover>.dropdown-menu{opacity:1;transform:scale(1,1);-webkit-transform:scale(1,1);-moz-transform:scale(1,1);-o-transform:scale(1,1)}.dropdown-menu{opacity:0;display:block;-webkit-transform:scale(0,0);-webkit-transform-origin:top;-webkit-animation-fill-mode:forwards;-webkit-transition:all .2s cubic-bezier(0.34,1.21,.4,1);-o-transform:scale(0,0);-o-transform-origin:top;-o-animation-fiLine truncated
|
@font-face{font-family:leanote;src:url(../../fonts/leanote-font2/leanote.eot?-vcf23i);src:url(../../fonts/leanote-font2/leanote.eot?#iefix-vcf23i) format('embedded-opentype'),url(../../fonts/leanote-font2/leanote.ttf?-vcf23i) format('truetype'),url(../../fonts/leanote-font2/leanote.woff?-vcf23i) format('woff'),url(../../fonts/leanote-font2/leanote.svg?-vcf23i#leanote) format('svg');font-weight:400;font-style:normal}#logo,#switcher span,.mce-i-mind,.mce-i-ace-pre,.lea-icon{font-family:leanote!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-markdown:before{content:"\e604"}.mce-i-mind:before{content:"\e602"}.mce-i-ace-pre:before{content:"\e603"}#logo:before{content:"\e600";line-height:1;margin-top:5px;display:inline-block;vertical-align:top}#switcher span:before{content:"\e601"}.new-split{display:none}.new-note{background-color:#000;border-radius:3px;padding:3px 5px;border:1px solid #080303}.new-note,.new-note a{color:#fff}.new-note:hover{background:#3D3B3B;border-color:transparent}.new-note:hover,.new-note:hover a{color:#fff}.new-markdown{margin-left:3px;margin-right:3px}*,.h1,.h2,.h3,.h4,.h5,.h6{font-family:'Open Sans','Helvetica Neue',Arial,'Hiragino Sans GB','Microsoft YaHei','WenQuanYi Micro Hei',sans-serif}body{font-family:'Open Sans','Helvetica Neue',Arial,'Hiragino Sans GB','Microsoft YaHei','WenQuanYi Micro Hei',sans-serif;font-weight:400;font-size:16px}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min-device-pixel-ratio:2){body{font-weight:300}}h1,h2,h3{font-family:'Open Sans','Helvetica Neue',Arial,'Hiragino Sans GB','Microsoft YaHei','WenQuanYi Micro Hei',sans-serif;font-weight:400!important}#noteItemList,#notebook,#leftNotebook,.slimScrollDiv,#editorContent,#editorContent_ifr,.mce-edit-area,.mce-container-body,.mce-tinymce,#editor .mce-ifr,.wmd-input,#noteReadContent,#attachList,#tags,.editor-content,.preview-container{-webkit-overflow-scrolling:touch!important}.btn *{cursor:pointer!important}.ios7-a{display:inline-block;padding:0 10px;height:36px;vertical-align:middle;line-height:36px;cursor:pointer}#tool{border-bottom:1px solid #ddd;height:36px;margin-left:-5px}#tag{height:36px;line-height:36px}#editor,#mdEditor{position:absolute;z-index:2;top:66px;bottom:0;right:0;left:5px;padding:0;display:none}#mdEditor{z-index:1;background-color:#fff;bottom:5px}#mdEditor #md-section-helper,#mdEditor #wmd-input{font-size:14px;line-height:22px}#tag .dropdown{line-height:30px}.btn{border-radius:2px}.alert{margin-bottom:10px}#logo{font-size:36px}#switcher span{border-radius:5px;display:inline-block;cursor:pointer;font-size:18px;height:34px;line-height:34px;margin-top:8px;padding:0 5px}.noteSplit{position:absolute;top:0;width:5px;height:100%;overflow:hidden;z-index:3333;cursor:col-resize}.dropdown-menu{border-radius:3px;margin:0;border:1px solid #0fb264;box-shadow:rgba(0,0,0,.172549)0 6px 12px 0}.dropdown-menu:before{content:"";width:20px;height:12px;position:absolute;top:-12px;right:8px;background-image:url(../../images/triangle_2x.png);background-size:20px 12px}.dropdown-submenu .dropdown-menu:before{background:0 0}#searchNotebookForAddDropdownList,#searchNotebookForAddShareDropdownList{left:-200px}#searchNotebookForAddDropdownList:before,#searchNotebookForAddShareDropdownList:before{left:190px;right:inherit}.dropdown-menu li{list-style:none;padding-left:10px;width:100%;height:30px;line-height:30px}.dropdown-menu li>a{color:#000;display:block;padding-right:20px}.dropdown-menu>li>a{padding:3px 20px 3px 0}#notebookNavForNewNote li:hover{background:0 0}#noteList{position:absolute;bottom:0;top:0}#noteAndEditorMask{position:absolute;left:0;right:0;top:0;bottom:0;background:#fff;text-align:center;padding-top:60px;opacity:.3;z-index:20;display:none}.dropdown-submenu{position:relative}.dropdown-submenu>ul.dropdown-menu{top:0;left:100%;margin-left:-3px!important;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;padding-top:10px!important}.dropdown-submenu:hover>.dropdown-menu{display:block}.dropdown-submenu:after{display:block;content:" ";position:absolute;right:0;top:10px;width:0;height:0;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;border-left-color:#666}.dropdown-submenu:hover>a:after{border-left-color:#fff}.dropdown-submenu.pull-left{float:none}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px}.open>.dropdown-menu,.dropdown-submenu:hover>.dropdown-menu{opacity:1;transform:scale(1,1);-webkit-transform:scale(1,1);-moz-transform:scale(1,1);-o-transform:scale(1,1)}.dropdown-menu{opacity:0;display:block;-webkit-transform:scale(0,0);-webkit-transform-origin:top;-webkit-animation-fill-mode:forwards;-webkit-transition:all .2s cubic-bezier(0.34,1.21,.4,1);-o-transform:scale(0,0);-o-transform-origin:top;-o-animation-fiLine truncated
|
||||||
+733
-163
File diff suppressed because it is too large.
Load diff
+14
-17
@@ -297,7 +297,7 @@ Notebook.cacheAllNotebooks = function(notebooks) {
|
|||||||
self.cacheAllNotebooks(notebook.Subs);
|
self.cacheAllNotebooks(notebook.Subs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
// 展开到笔记本
|
// 展开到笔记本
|
||||||
Notebook.expandNotebookTo = function(notebookId, userId) {
|
Notebook.expandNotebookTo = function(notebookId, userId) {
|
||||||
@@ -332,8 +332,7 @@ Notebook.expandNotebookTo = function(notebookId, userId) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
// RenderNotebooks调用,
|
// RenderNotebooks调用,
|
||||||
// nav 为了新建, 快速选择, 移动笔记
|
// nav 为了新建, 快速选择, 移动笔记
|
||||||
@@ -341,7 +340,7 @@ Notebook.expandNotebookTo = function(notebookId, userId) {
|
|||||||
Notebook.renderNav = function(nav) {
|
Notebook.renderNav = function(nav) {
|
||||||
var self = this;
|
var self = this;
|
||||||
self.changeNav();
|
self.changeNav();
|
||||||
}
|
};
|
||||||
|
|
||||||
// 搜索notebook
|
// 搜索notebook
|
||||||
Notebook.searchNotebookForAddNote = function(key) {
|
Notebook.searchNotebookForAddNote = function(key) {
|
||||||
@@ -365,7 +364,7 @@ Notebook.searchNotebookForAddNote = function(key) {
|
|||||||
} else {
|
} else {
|
||||||
$("#notebookNavForNewNote").html(self.everNavForNewNote);
|
$("#notebookNavForNewNote").html(self.everNavForNewNote);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
// 搜索notebook
|
// 搜索notebook
|
||||||
Notebook.searchNotebookForList = function(key) {
|
Notebook.searchNotebookForList = function(key) {
|
||||||
@@ -391,8 +390,7 @@ Notebook.searchNotebookForList = function(key) {
|
|||||||
$notebookList.show();
|
$notebookList.show();
|
||||||
$("#notebookNavForNewNote").html(self.everNavForNewNote);
|
$("#notebookNavForNewNote").html(self.everNavForNewNote);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
// 修改,添加,删除notebook后调用
|
// 修改,添加,删除notebook后调用
|
||||||
// 改变nav
|
// 改变nav
|
||||||
@@ -422,7 +420,7 @@ Notebook.getChangedNotebooks = function(notebooks) {
|
|||||||
navForNewNote += eachForNew;
|
navForNewNote += eachForNew;
|
||||||
}
|
}
|
||||||
return navForNewNote;
|
return navForNewNote;
|
||||||
}
|
};
|
||||||
|
|
||||||
Notebook.everNavForNewNote = "";
|
Notebook.everNavForNewNote = "";
|
||||||
Notebook.everNotebooks = [];
|
Notebook.everNotebooks = [];
|
||||||
@@ -438,13 +436,9 @@ Notebook.changeNav = function() {
|
|||||||
$("#notebookNavForNewNote").html(html);
|
$("#notebookNavForNewNote").html(html);
|
||||||
|
|
||||||
// 移动, 复制重新来, 因为nav变了, 移动至-----的notebook导航也变了
|
// 移动, 复制重新来, 因为nav变了, 移动至-----的notebook导航也变了
|
||||||
// 这里速度很慢
|
|
||||||
var t1 = (new Date()).getTime();
|
|
||||||
Note.initContextmenu();
|
Note.initContextmenu();
|
||||||
Share.initContextmenu(Note.notebooksCopy);
|
Share.initContextmenu(Note.notebooksCopy);
|
||||||
var t2 = (new Date()).getTime();
|
};
|
||||||
log(t2-t1);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 我的共享notebooks
|
* 我的共享notebooks
|
||||||
@@ -573,15 +567,18 @@ Notebook.changeNotebookNav = function(notebookId) {
|
|||||||
|
|
||||||
Notebook.isAllNotebookId = function(notebookId) {
|
Notebook.isAllNotebookId = function(notebookId) {
|
||||||
return notebookId == Notebook.allNotebookId;
|
return notebookId == Notebook.allNotebookId;
|
||||||
}
|
};
|
||||||
Notebook.isTrashNotebookId = function(notebookId) {
|
Notebook.isTrashNotebookId = function(notebookId) {
|
||||||
return notebookId == Notebook.trashNotebookId;
|
return notebookId == Notebook.trashNotebookId;
|
||||||
}
|
};
|
||||||
// 当前选中的笔记本是否是"所有"
|
// 当前选中的笔记本是否是"所有"
|
||||||
// called by Note
|
// called by Note
|
||||||
Notebook.curActiveNotebookIsAll = function() {
|
Notebook.curActiveNotebookIsAll = function() {
|
||||||
return Notebook.isAllNotebookId($("#notebookList .active").attr("notebookId"));
|
return Notebook.isAllNotebookId($("#notebookList .curSelectedNode").attr("notebookId"));
|
||||||
}
|
};
|
||||||
|
Notebook.curActiveNotebookIsTrash = function() {
|
||||||
|
return Notebook.isTrashNotebookId($("#notebookList .curSelectedNode").attr("notebookId"));
|
||||||
|
};
|
||||||
|
|
||||||
// 改变笔记本
|
// 改变笔记本
|
||||||
// 0. 改变样式
|
// 0. 改变样式
|
||||||
|
|||||||
+20
-6
@@ -58,7 +58,7 @@ editorMode.prototype.changeMode = function(isWritingMode) {
|
|||||||
} else {
|
} else {
|
||||||
this.normalMode();
|
this.normalMode();
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
editorMode.prototype.resizeEditor = function() {
|
editorMode.prototype.resizeEditor = function() {
|
||||||
// css还没渲染完
|
// css还没渲染完
|
||||||
@@ -93,9 +93,14 @@ editorMode.prototype.normalMode = function() {
|
|||||||
|
|
||||||
$("#noteList").width(UserInfo.NoteListWidth);
|
$("#noteList").width(UserInfo.NoteListWidth);
|
||||||
$("#note").css("left", UserInfo.NoteListWidth);
|
$("#note").css("left", UserInfo.NoteListWidth);
|
||||||
}
|
|
||||||
|
this.isWritingMode = false;
|
||||||
|
};
|
||||||
|
|
||||||
editorMode.prototype.writtingMode = function() {
|
editorMode.prototype.writtingMode = function() {
|
||||||
|
if (Note.inBatch) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(this.$themeLink.attr('href').indexOf('writting-overwrite.css') == -1) {
|
if(this.$themeLink.attr('href').indexOf('writting-overwrite.css') == -1) {
|
||||||
this.$themeLink.attr("href", "/css/theme/writting-overwrite.css");
|
this.$themeLink.attr("href", "/css/theme/writting-overwrite.css");
|
||||||
}
|
}
|
||||||
@@ -126,7 +131,9 @@ editorMode.prototype.writtingMode = function() {
|
|||||||
|
|
||||||
// 切换到写模式
|
// 切换到写模式
|
||||||
Note.toggleWriteable();
|
Note.toggleWriteable();
|
||||||
}
|
|
||||||
|
this.isWritingMode = true;
|
||||||
|
};
|
||||||
|
|
||||||
editorMode.prototype.getWritingCss = function() {
|
editorMode.prototype.getWritingCss = function() {
|
||||||
if(this.isWritingMode) {
|
if(this.isWritingMode) {
|
||||||
@@ -681,8 +688,13 @@ function scrollTo(self, tagName, text) {
|
|||||||
// 主题
|
// 主题
|
||||||
$("#themeForm").on("click", "input", function(e) {
|
$("#themeForm").on("click", "input", function(e) {
|
||||||
var val = $(this).val();
|
var val = $(this).val();
|
||||||
$("#themeLink").attr("href", "/css/theme/" + val + ".css");
|
var preHref = $("#themeLink").attr("href"); // default.css?id=7
|
||||||
|
var arr = preHref.split('=');
|
||||||
|
var id = 1;
|
||||||
|
if (arr.length == 2) {
|
||||||
|
id = arr[1];
|
||||||
|
}
|
||||||
|
$("#themeLink").attr("href", "/css/theme/" + val + ".css?id=" + id);
|
||||||
ajaxPost("/user/updateTheme", {theme: val}, function(re) {
|
ajaxPost("/user/updateTheme", {theme: val}, function(re) {
|
||||||
if(reIsOk(re)) {
|
if(reIsOk(re)) {
|
||||||
UserInfo.Theme = val
|
UserInfo.Theme = val
|
||||||
@@ -800,6 +812,9 @@ function scrollTo(self, tagName, text) {
|
|||||||
if (UserInfo.LeftIsMin) {
|
if (UserInfo.LeftIsMin) {
|
||||||
minLeft(false);
|
minLeft(false);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
maxLeft(false);
|
||||||
|
}
|
||||||
|
|
||||||
// end
|
// end
|
||||||
// 开始时显示loading......
|
// 开始时显示loading......
|
||||||
@@ -1104,7 +1119,6 @@ LeaAce = {
|
|||||||
return function() {
|
return function() {
|
||||||
pre.find('.toggle-raw').remove();
|
pre.find('.toggle-raw').remove();
|
||||||
var value = pre.html();
|
var value = pre.html();
|
||||||
log(value);
|
|
||||||
value = value.replace(/ /g, " ").replace(/\<br *\/*\>/gi,"\n").replace(/</g, '<').replace(/>/g, '>');
|
value = value.replace(/ /g, " ").replace(/\<br *\/*\>/gi,"\n").replace(/</g, '<').replace(/>/g, '>');
|
||||||
pre.html(value);
|
pre.html(value);
|
||||||
var id = pre.attr('id');
|
var id = pre.attr('id');
|
||||||
|
|||||||
+11
-11
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
// 默认共享notebook id
|
// 默认共享notebook id
|
||||||
Share.defaultNotebookId = "share0";
|
Share.defaultNotebookId = "share0";
|
||||||
Share.defaultNotebookTitle = getMsg("defaulthhare");
|
Share.defaultNotebookTitle = getMsg("defaultShare");
|
||||||
Share.sharedUserInfos = {}; // userId => {}
|
Share.sharedUserInfos = {}; // userId => {}
|
||||||
|
|
||||||
// 在render时就创建, 以后复用之
|
// 在render时就创建, 以后复用之
|
||||||
@@ -19,12 +19,13 @@ Share.cache = {}; // note的cache
|
|||||||
Share.dialogIsNote = true;
|
Share.dialogIsNote = true;
|
||||||
|
|
||||||
// 设置缓存 note
|
// 设置缓存 note
|
||||||
|
// 弃用
|
||||||
Share.setCache = function(note) {
|
Share.setCache = function(note) {
|
||||||
if(!note || !note.NoteId) {
|
if(!note || !note.NoteId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Share.cache[note.NoteId] = note;
|
Share.cache[note.NoteId] = note;
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 我的共享notebooks
|
* 我的共享notebooks
|
||||||
@@ -296,7 +297,6 @@ Share.changeNotebook = function(userId, notebookId, callback) {
|
|||||||
//
|
//
|
||||||
// 如果是特定笔记本下的notes, 那么传过来的没有权限信息, 此时权限由notebookId决定
|
// 如果是特定笔记本下的notes, 那么传过来的没有权限信息, 此时权限由notebookId决定
|
||||||
if(param.notebookId) {
|
if(param.notebookId) {
|
||||||
|
|
||||||
}
|
}
|
||||||
if(callback) {
|
if(callback) {
|
||||||
callback(ret);
|
callback(ret);
|
||||||
@@ -381,10 +381,10 @@ Share.changeNotebookForNewNote = function(notebookId) {
|
|||||||
// 删除笔记, 我有权限, 且是我创建的笔记
|
// 删除笔记, 我有权限, 且是我创建的笔记
|
||||||
Share.deleteSharedNote = function(target, contextmenuItem) {
|
Share.deleteSharedNote = function(target, contextmenuItem) {
|
||||||
Note.deleteNote(target, contextmenuItem, true);
|
Note.deleteNote(target, contextmenuItem, true);
|
||||||
}
|
};
|
||||||
Share.copySharedNote = function(target, contextmenuItem) {
|
Share.copySharedNote = function(target, contextmenuItem) {
|
||||||
Note.copyNote(target, contextmenuItem, true);
|
Note.copyNote(target, contextmenuItem, true);
|
||||||
}
|
};
|
||||||
|
|
||||||
Share.contextmenu = null;
|
Share.contextmenu = null;
|
||||||
Share.initContextmenu = function(notebooksCopy) {
|
Share.initContextmenu = function(notebooksCopy) {
|
||||||
@@ -412,12 +412,13 @@ Share.initContextmenu = function(notebooksCopy) {
|
|||||||
}
|
}
|
||||||
function applyrule(menu) {
|
function applyrule(menu) {
|
||||||
var noteId = $(this).attr("noteId");
|
var noteId = $(this).attr("noteId");
|
||||||
var note = Share.cache[noteId];
|
var note = Note.getNote(noteId);
|
||||||
if(!note) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var items = [];
|
var items = [];
|
||||||
if(!(note.Perm && note.CreatedUserId == UserInfo.UserId)) {
|
if(Note.inBatch || !note) {
|
||||||
|
items.push("delete");
|
||||||
|
}
|
||||||
|
// 批量操作时, 不让删除
|
||||||
|
if(note && !(note.Perm && note.CreatedUserId == UserInfo.UserId)) {
|
||||||
items.push("delete");
|
items.push("delete");
|
||||||
}
|
}
|
||||||
// 不是自己的创建的不能删除
|
// 不是自己的创建的不能删除
|
||||||
@@ -426,7 +427,6 @@ Share.initContextmenu = function(notebooksCopy) {
|
|||||||
disable: true,
|
disable: true,
|
||||||
items: items
|
items: items
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Share.contextmenu = $("#noteItemList .item-shared").contextmenu(noteListMenu);
|
Share.contextmenu = $("#noteItemList .item-shared").contextmenu(noteListMenu);
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
.b-m-mpanel{background:url(images/contextmenu/menu_bg.gif) left repeat-y #fff;border:1px solid #ccc;position:absolute;padding:2px 0;z-index:99997;left:0;top:0;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box;overflow:auto}.b-m-split{height:6px;background:url(images/contextmenu/m_splitLine.gif) center repeat-x;font-size:0;margin:0 2px}.b-m-idisable,.b-m-ifocus,.b-m-item{padding:4px 10px 4px 4px;cursor:default;line-height:100%}.b-m-idisable{color:grey}.b-m-arrow,.b-m-ibody{overflow:hidden;text-overflow:ellipsis}.b-m-arrow{background:url(images/contextmenu/m_arrow.gif) right no-repeat}.b-m-idisable .b-m-arrow{background:0 0}.b-m-idisable img,.b-m-ifocus img,.b-m-item img{margin-right:8px;width:16px}.b-m-ifocus{background-color:#CDE3F6}.b-m-idisable img{visibility:hidden}.c-text{display:inline-block;padding-left:3px}.b-m-icon{width:23px;padding-left:3px}
|
.b-m-mpanel{background:url(images/contextmenu/menu_bg.gif) left repeat-y #fff;border:1px solid #ccc;position:absolute;padding:2px 0;z-index:99997;left:0;top:0;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box;overflow:auto}.b-m-split{height:6px;background:url(images/contextmenu/m_splitLine.gif) center repeat-x;font-size:0;margin:0 2px}.b-m-idisable,.b-m-ifocus,.b-m-item{padding:4px 10px 4px 4px;cursor:default;line-height:1.2}.b-m-idisable{color:grey}.b-m-arrow,.b-m-ibody{overflow:hidden;text-overflow:ellipsis}.b-m-arrow{background:url(images/contextmenu/m_arrow.gif) right no-repeat}.b-m-idisable .b-m-arrow{background:0 0}.b-m-idisable img,.b-m-ifocus img,.b-m-item img{margin-right:8px;width:16px}.b-m-ifocus{background-color:#CDE3F6}.b-m-idisable img{visibility:hidden}.c-text{display:inline-block;padding-left:3px}.b-m-icon{width:23px;padding-left:3px}
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
{
|
{
|
||||||
padding: 4px 10px 4px 4px;
|
padding: 4px 10px 4px 4px;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
line-height:100%;
|
line-height:1.2;
|
||||||
}
|
}
|
||||||
.b-m-idisable
|
.b-m-idisable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -180,20 +180,22 @@ LEA.cmroot = 1;
|
|||||||
pos.left = (pos.left + width + mwidth > bwidth) ? (pos.left - mwidth < 0 ? 0 : pos.left - mwidth) : pos.left + width;
|
pos.left = (pos.left + width + mwidth > bwidth) ? (pos.left - mwidth < 0 ? 0 : pos.left - mwidth) : pos.left + width;
|
||||||
pos.top = (pos.top + mheight > bheight) ? (pos.top - mheight + (width > 0 ? 25 : 0) < 0 ? 0 : pos.top - mheight + (width > 0 ? 25 : 0)) : pos.top;
|
pos.top = (pos.top + mheight > bheight) ? (pos.top - mheight + (width > 0 ? 25 : 0) < 0 ? 0 : pos.top - mheight + (width > 0 ? 25 : 0)) : pos.top;
|
||||||
$(this).css(pos).show().css("max-height", bheight);
|
$(this).css(pos).show().css("max-height", bheight);
|
||||||
|
|
||||||
showGroups.push(this.gidx);
|
showGroups.push(this.gidx);
|
||||||
};
|
};
|
||||||
|
|
||||||
//to hide menu
|
//to hide menu
|
||||||
var hideMenuPane = function() {
|
var hideMenuPane = function() {
|
||||||
var alias = null;
|
var alias = null;
|
||||||
|
|
||||||
|
// console.log('showGroups: ' + showGroups.length)
|
||||||
for (var i = showGroups.length - 1; i >= 0; i--) {
|
for (var i = showGroups.length - 1; i >= 0; i--) {
|
||||||
if (showGroups[i] == this.gidx)
|
if (showGroups[i] == this.gidx)
|
||||||
break;
|
break;
|
||||||
alias = showGroups.pop();
|
alias = showGroups.pop();
|
||||||
groups[alias].style.display = "none";
|
groups[alias].style.display = "none";
|
||||||
mitems[alias] && (mitems[alias].className = "b-m-item");
|
mitems[alias] && (mitems[alias].className = "b-m-item");
|
||||||
|
}
|
||||||
} //Endfor
|
|
||||||
//CollectGarbage();
|
|
||||||
};
|
};
|
||||||
function applyRule(rule) {
|
function applyRule(rule) {
|
||||||
/*
|
/*
|
||||||
@@ -216,19 +218,17 @@ LEA.cmroot = 1;
|
|||||||
|
|
||||||
/* to show menu */
|
/* to show menu */
|
||||||
function showMenu(e, menutarget) {
|
function showMenu(e, menutarget) {
|
||||||
|
// 先隐藏之前的
|
||||||
|
hideMenuPane();
|
||||||
|
removeContextmenuClass();
|
||||||
|
|
||||||
target = menutarget;
|
target = menutarget;
|
||||||
showMenuGroup.call(groups[cmroot], { left: e.pageX, top: e.pageY }, 0);
|
showMenuGroup.call(groups[cmroot], { left: e.pageX, top: e.pageY }, 0);
|
||||||
// life
|
|
||||||
if(!$(target).hasClass("item-active")) {
|
|
||||||
$(target).addClass("contextmenu-hover");
|
|
||||||
}
|
|
||||||
|
|
||||||
// life , 之前是mousedown
|
// 在该target上添加contextmenu-hover
|
||||||
$(document).one('click', function() {
|
if(target && !$(target).hasClass("item-active")) {
|
||||||
hideMenuPane();
|
$(target).addClass("contextmenu-hover");
|
||||||
// life
|
}
|
||||||
$(target).removeClass("contextmenu-hover");
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 初始化
|
// 初始化
|
||||||
@@ -264,6 +264,16 @@ LEA.cmroot = 1;
|
|||||||
onShowMenu.call(this, e);
|
onShowMenu.call(this, e);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function removeContextmenuClass() {
|
||||||
|
Note.$itemList.find('li').removeClass('contextmenu-hover');
|
||||||
|
}
|
||||||
|
|
||||||
|
// life , 之前是document, 绑定document即使stopPro也会执行到这里
|
||||||
|
$('body').on('click', function(e) {
|
||||||
|
removeContextmenuClass();
|
||||||
|
hideMenuPane();
|
||||||
|
});
|
||||||
|
|
||||||
//to apply rule
|
//to apply rule
|
||||||
if (option.rule) {
|
if (option.rule) {
|
||||||
applyRule(option.rule);
|
applyRule(option.rule);
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
var MSG={"app":"Leanote","share":"Share","noTag":"No Tags","inputEmail":"Email is required","history":"Histories","editorTips":"Tips","editorTipsInfo":"<h4>1. Short cuts</h4>ctrl+shift+c Toggle code<h4>2. shift+enter Get out of current block</h4> eg. <img src=\"/images/outofcode.png\" style=\"width: 90px\"/> in this situation you can use shift+enter to get out of current code block.","all":"Newest","trash":"Trash","delete":"Delete","unTitled":"UnTitled","writingMode":"Writing Mode","normalMode":"Normal Mode","saving":"Saving","saveSuccess":"Save success","update":"Update","close":"Close","cancel":"Cancel","send":"Send","shareToFriends":"Share to friends","publicAsBlog":"Public as blog","cancelPublic":"Cancel public","move":"Move","copy":"Copy","rename":"Rename","exportPdf":"Export PDF","addChildNotebook":"Add child notebook","deleteAllShared":"Delete shared user","deleteSharedNotebook":"Delete shared notebook","copyToMyNotebook":"Copy to my notebook","defaulthhare":"Default","friendEmail":"Friend email","readOnly":"Read only","writable":"Writable","inputFriendEmail":"Friend email is required","clickToChangePermission":"Click to change permission","sendInviteEmailToYourFriend":"Send invite email to your friend","friendNotExits":"Your friend hasn't %s's account, invite register link: %s","emailBodyRequired":"Email body is required","sendSuccess":"success","inviteEmailBody":"Hi,I am %s, %s is awesome, come on!","historiesNum":"We have saved at most <b>10</b> latest histories with each note","noHistories":"No histories","datetime":"Datetime","restoreFromThisVersion":"Restore from this version","confirmBackup":"Are you sure to restore from this version? We will backup the current note.","errorEmail":"Please input the right email"};function getMsg(key, data) {var msg = MSG[key];if(msg) {if(data) {if(!isArray(data)) {data = [data];}for(var i = 0; i < data.length; ++i) {msg = msg.replace("%s", data[i]);}}return msg;}return key;}
|
var MSG={"app":"Leanote","share":"Share","noTag":"No Tags","inputEmail":"Email is required","history":"Histories","editorTips":"Tips","editorTipsInfo":"<h4>1. Short cuts</h4>ctrl+shift+c Toggle code<h4>2. shift+enter Get out of current block</h4> eg. <img src=\"/images/outofcode.png\" style=\"width: 90px\"/> in this situation you can use shift+enter to get out of current code block.","all":"Newest","trash":"Trash","delete":"Delete","unTitled":"UnTitled","defaultShare":"Default sharing","writingMode":"Writing Mode","normalMode":"Normal Mode","saving":"Saving","saveSuccess":"Save success","update":"Update","close":"Close","cancel":"Cancel","send":"Send","shareToFriends":"Share to friends","publicAsBlog":"Public as blog","cancelPublic":"Cancel public","move":"Move","copy":"Copy","rename":"Rename","exportPdf":"Export PDF","addChildNotebook":"Add child notebook","deleteAllShared":"Delete shared user","deleteSharedNotebook":"Delete shared notebook","copyToMyNotebook":"Copy to my notebook","defaulthhare":"Default","friendEmail":"Friend email","readOnly":"Read only","writable":"Writable","inputFriendEmail":"Friend email is required","clickToChangePermission":"Click to change permission","sendInviteEmailToYourFriend":"Send invite email to your friend","friendNotExits":"Your friend hasn't %s's account, invite register link: %s","emailBodyRequired":"Email body is required","sendSuccess":"success","inviteEmailBody":"Hi,I am %s, %s is awesome, come on!","historiesNum":"We have saved at most <b>10</b> latest histories with each note","noHistories":"No histories","datetime":"Datetime","restoreFromThisVersion":"Restore from this version","confirmBackup":"Are you sure to restore from this version? We will backup the current note.","errorEmail":"Please input the right email"};function getMsg(key, data) {var msg = MSG[key];if(msg) {if(data) {if(!isArray(data)) {data = [data];}for(var i = 0; i < data.length; ++i) {msg = msg.replace("%s", data[i]);}}return msg;}return key;}
|
||||||
@@ -1 +1 @@
|
|||||||
var MSG={"app":"Leanote","share":"Partager","noTag":"No Tags","inputEmail":"L'adresse courriel est requis","history":"Historique","editorTips":"Astuces","editorTipsInfo":"<h4>1. Raccourcis</h4>ctrl+maj+c Active/désactive le code<h4>2. maj+entrée Sortir du bloc courant</h4> ex. <img src=\"/images/outofcode.png\" style=\"width: 90px\"/> dans cette situation vous pouvez utiliser maj+entrée pour sortir du bloc de code courant.","all":"Le plus récent","trash":"Corbeille","delete":"Effacer","unTitled":"Sans titre","writingMode":"Mode écriture","normalMode":"Mode normal","saving":"Sauvegarde","saveSuccess":"Sauvegarde réussie","update":"Mettre à jour","close":"Fermer","cancel":"Annuler","send":"Envoyer","shareToFriends":"Partage avec ses amis","publicAsBlog":"Publier en tant que blog","cancelPublic":"Annuler la publication","move":"Déplacer","copy":"Copier","rename":"Renommer","addChildNotebook":"Ajouer un bloc-note enfant","deleteAllShared":"Effacer l'utilisateur partagé","deleteSharedNotebook":"Effacer le bloc-notes partagé","copyToMyNotebook":"Copier vers mon bloc-notes","defaulthhare":"Par défaut","friendEmail":"Courriel de l'ami","readOnly":"Lecture seule","writable":"Editable","inputFriendEmail":"Le courriel de votre ami est requis/","clickToChangePermission":"Cliquez pour changer l'autorisation.","sendInviteEmailToYourFriend":"Envoyer un courriel d'invitation à votre ami.","friendNotExits":"Votre ami n'a pas de compte %s, lien d'invitation à s'enregistrer: %s","emailBodyRequired":"Corps du message requis","sendSuccess":"succès","inviteEmailBody":"Coucou, je suis %s, %s est génial, viens!","historiesNum":"Nous avons enregistré au maximum <b>10</b> historiques récents de chaque note.","noHistories":"Pas d'historique.","fold":"Plier","unfold":"Déplier","datetime":"Date & Heure","restoreFromThisVersion":"Restaurer depuis cette version","confirmBackup":"Êtes-vous sûr de vouloir restaurer depuis cette version? Nous allons réaliser une copie de sauvegarde de la note actuelle.","errorEmail":"Veuillez renseigner le courriel correct"};function getMsg(key, data) {var msg = MSG[key];if(msg) {if(data) {if(!isArray(data)) {data = [data];}for(var i = 0; i < data.length; ++i) {msg = msg.replace("%s", data[i]);}}return msg;}return key;}
|
var MSG={"app":"Leanote","share":"Partager","noTag":"No Tags","inputEmail":"L'adresse courriel est requis","history":"Historique","editorTips":"Astuces","editorTipsInfo":"<h4>1. Raccourcis</h4>ctrl+maj+c Active/désactive le code<h4>2. maj+entrée Sortir du bloc courant</h4> ex. <img src=\"/images/outofcode.png\" style=\"width: 90px\"/> dans cette situation vous pouvez utiliser maj+entrée pour sortir du bloc de code courant.","all":"Le plus récent","trash":"Corbeille","delete":"Effacer","unTitled":"Sans titre","defaultShare":"Partage par défaut","writingMode":"Mode écriture","normalMode":"Mode normal","saving":"Sauvegarde","saveSuccess":"Sauvegarde réussie","update":"Mettre à jour","close":"Fermer","cancel":"Annuler","send":"Envoyer","shareToFriends":"Partage avec ses amis","publicAsBlog":"Publier en tant que blog","cancelPublic":"Annuler la publication","move":"Déplacer","copy":"Copier","rename":"Renommer","addChildNotebook":"Ajouer un bloc-note enfant","deleteAllShared":"Effacer l'utilisateur partagé","deleteSharedNotebook":"Effacer le bloc-notes partagé","copyToMyNotebook":"Copier vers mon bloc-notes","defaulthhare":"Par défaut","friendEmail":"Courriel de l'ami","readOnly":"Lecture seule","writable":"Editable","inputFriendEmail":"Le courriel de votre ami est requis/","clickToChangePermission":"Cliquez pour changer l'autorisation.","sendInviteEmailToYourFriend":"Envoyer un courriel d'invitation à votre ami.","friendNotExits":"Votre ami n'a pas de compte %s, lien d'invitation à s'enregistrer: %s","emailBodyRequired":"Corps du message requis","sendSuccess":"succès","inviteEmailBody":"Coucou, je suis %s, %s est génial, viens!","historiesNum":"Nous avons enregistré au maximum <b>10</b> historiques récents de chaque note.","noHistories":"Pas d'historique.","fold":"Plier","unfold":"Déplier","datetime":"Date & Heure","restoreFromThisVersion":"Restaurer depuis cette version","confirmBackup":"Êtes-vous sûr de vouloir restaurer depuis cette version? Nous allons réaliser une copie de sauvegarde de la note actuelle.","errorEmail":"Veuillez renseigner le courriel correct"};function getMsg(key, data) {var msg = MSG[key];if(msg) {if(data) {if(!isArray(data)) {data = [data];}for(var i = 0; i < data.length; ++i) {msg = msg.replace("%s", data[i]);}}return msg;}return key;}
|
||||||
@@ -1 +1 @@
|
|||||||
var MSG={"app":"Leanote","share":"分享","noTag":"无标签","inputEmail":"请输入Email","history":"历史记录","editorTips":"帮助","editorTipsInfo":"<h4>1. 快捷键</h4>ctrl+shift+c 代码块切换 <h4>2. shift+enter 跳出当前区域</h4>比如在代码块中<img src=\"/images/outofcode.png\" style=\"width: 90px\"/>按shift+enter可跳出当前代码块.","all":"最新","trash":"废纸篓","delete":"删除","unTitled":"无标题","writingMode":"写作模式","normalMode":"普通模式","saving":"正在保存","saveSuccess":"保存成功","Are you sure to delete it ?":"确认删除?","Insert link into content":"将附件链接插入到内容中","Download":"下载","Delete":"删除","update":"更新","Update Time":"更新时间","Create Time":"创建时间","Post Url":"博文链接","close":"关闭","cancel":"取消","send":"发送","shareToFriends":"分享给好友","publicAsBlog":"公开为博客","cancelPublic":"取消公开为博客","move":"移动","copy":"复制","rename":"重命名","exportPdf":"导出PDF","addChildNotebook":"添加子笔记本","deleteAllShared":"删除所有共享","deleteSharedNotebook":"删除共享笔记本","copyToMyNotebook":"复制到我的笔记本","sendSuccess":"发送成功","defaulthhare":"默认共享","friendEmail":"好友邮箱","readOnly":"只读","writable":"可写","inputFriendEmail":"请输入好友邮箱","clickToChangePermission":"点击改变权限","sendInviteEmailToYourFriend":"发送邀请email给Ta","friendNotExits":"该用户还没有注册%s, 复制邀请链接发送给Ta, 邀请链接: %s","emailBodyRequired":"邮件内容不能为空","inviteEmailBody":"Hi, 你好, 我是%s, %s非常好用, 快来注册吧!","historiesNum":"leanote会保存笔记的最近<b>10</b>份历史记录","noHistories":"无历史记录","datetime":"日期","restoreFromThisVersion":"从该版本还原","confirmBackup":"确定要从该版还原? 还原前leanote会备份当前版本到历史记录中.","errorEmail":"请输入正确的email","Hyperlink":"超链接","Please provide the link URL and an optional title":"请填写链接和一个可选的标题","optional title":"可选标题","Cancel":"取消","Strong":"粗体","strong text":"粗体","Emphasis":"斜体","emphasized text":"斜体","Blockquote":"引用","Code Sample":"代码","enter code here":"代码","Image":"图片","Heading":"标题","Numbered List":"有序列表","Bulleted List":"无序列表","List item":"项目","Horizontal Rule":"水平线","Undo":"撤销","Redo":"重做","enter image description here":"图片标题","enter link description here":"链接标题","Add Album":"添加相册","Cannot delete default album":"不能删除默认相册","Cannot rename default album":"不能重命名默认相册","Rename Album":"重命名","Add Success!":"添加成功!","Rename Success!":"重命名成功!","Delete Success!":"删除成功","Are you sure to delete this image ?":"确定删除该图片?","click to remove this image":"删除图片","error":"错误","Error":"错误","Prev":"上一页","Next":"下一页"};function getMsg(key, data) {var msg = MSG[key];if(msg) {if(data) {if(!isArray(data)) {data = [data];}for(var i = 0; i < data.length; ++i) {msg = msg.replace("%s", data[i]);}}return msg;}return key;}
|
var MSG={"app":"Leanote","share":"分享","noTag":"无标签","inputEmail":"请输入Email","history":"历史记录","editorTips":"帮助","editorTipsInfo":"<h4>1. 快捷键</h4>ctrl+shift+c 代码块切换 <h4>2. shift+enter 跳出当前区域</h4>比如在代码块中<img src=\"/images/outofcode.png\" style=\"width: 90px\"/>按shift+enter可跳出当前代码块.","all":"最新","trash":"废纸篓","delete":"删除","unTitled":"无标题","defaultShare":"默认分享","writingMode":"写作模式","normalMode":"普通模式","saving":"正在保存","saveSuccess":"保存成功","Are you sure to delete it ?":"确认删除?","Insert link into content":"将附件链接插入到内容中","Download":"下载","Delete":"删除","update":"更新","Update Time":"更新时间","Create Time":"创建时间","Post Url":"博文链接","close":"关闭","cancel":"取消","send":"发送","shareToFriends":"分享给好友","publicAsBlog":"公开为博客","cancelPublic":"取消公开为博客","move":"移动","copy":"复制","rename":"重命名","exportPdf":"导出PDF","addChildNotebook":"添加子笔记本","deleteAllShared":"删除所有共享","deleteSharedNotebook":"删除共享笔记本","copyToMyNotebook":"复制到我的笔记本","sendSuccess":"发送成功","friendEmail":"好友邮箱","readOnly":"只读","writable":"可写","inputFriendEmail":"请输入好友邮箱","clickToChangePermission":"点击改变权限","sendInviteEmailToYourFriend":"发送邀请email给Ta","friendNotExits":"该用户还没有注册%s, 复制邀请链接发送给Ta, 邀请链接: %s","emailBodyRequired":"邮件内容不能为空","inviteEmailBody":"Hi, 你好, 我是%s, %s非常好用, 快来注册吧!","historiesNum":"leanote会保存笔记的最近<b>10</b>份历史记录","noHistories":"无历史记录","datetime":"日期","restoreFromThisVersion":"从该版本还原","confirmBackup":"确定要从该版还原? 还原前leanote会备份当前版本到历史记录中.","errorEmail":"请输入正确的email","Hyperlink":"超链接","Please provide the link URL and an optional title":"请填写链接和一个可选的标题","optional title":"可选标题","Cancel":"取消","Strong":"粗体","strong text":"粗体","Emphasis":"斜体","emphasized text":"斜体","Blockquote":"引用","Code Sample":"代码","enter code here":"代码","Image":"图片","Heading":"标题","Numbered List":"有序列表","Bulleted List":"无序列表","List item":"项目","Horizontal Rule":"水平线","Undo":"撤销","Redo":"重做","enter image description here":"图片标题","enter link description here":"链接标题","Add Album":"添加相册","Cannot delete default album":"不能删除默认相册","Cannot rename default album":"不能重命名默认相册","Rename Album":"重命名","Add Success!":"添加成功!","Rename Success!":"重命名成功!","Delete Success!":"删除成功","Are you sure to delete this image ?":"确定删除该图片?","click to remove this image":"删除图片","error":"错误","Error":"错误","Prev":"上一页","Next":"下一页"};function getMsg(key, data) {var msg = MSG[key];if(msg) {if(data) {if(!isArray(data)) {data = [data];}for(var i = 0; i < data.length; ++i) {msg = msg.replace("%s", data[i]);}}return msg;}return key;}
|
||||||
Reference in new issue
Block a user