基本完成
@@ -17,7 +17,7 @@
|
||||
<div id="container">
|
||||
<!-- 关闭, 最小化, 最大 -->
|
||||
<div id="winTool" class="win-tool clearfix">
|
||||
<a class="tool-close"></a>
|
||||
<a class="tool-close-blur"></a>
|
||||
</div>
|
||||
<section id="box" class="animated fadeInUp">
|
||||
<div>
|
||||
|
Before Width: | Height: | Size: 182 B |
Before Width: | Height: | Size: 190 B |
Before Width: | Height: | Size: 646 B |
Before Width: | Height: | Size: 130 B |
Before Width: | Height: | Size: 671 B |
Before Width: | Height: | Size: 461 B |
Before Width: | Height: | Size: 162 B |
Before Width: | Height: | Size: 379 B |
Before Width: | Height: | Size: 737 B |
Before Width: | Height: | Size: 391 B |
Before Width: | Height: | Size: 820 B |
Before Width: | Height: | Size: 395 B |
Before Width: | Height: | Size: 745 B |
Before Width: | Height: | Size: 443 B |
Before Width: | Height: | Size: 822 B |
Before Width: | Height: | Size: 352 B |
Before Width: | Height: | Size: 679 B |
Before Width: | Height: | Size: 238 B |
Before Width: | Height: | Size: 391 B |
Before Width: | Height: | Size: 390 B |
Before Width: | Height: | Size: 762 B |
Before Width: | Height: | Size: 402 B |
Before Width: | Height: | Size: 837 B |
Before Width: | Height: | Size: 393 B |
Before Width: | Height: | Size: 771 B |
Before Width: | Height: | Size: 463 B |
Before Width: | Height: | Size: 896 B |
Before Width: | Height: | Size: 374 B |
Before Width: | Height: | Size: 731 B |
Before Width: | Height: | Size: 313 B |
Before Width: | Height: | Size: 595 B |
Before Width: | Height: | Size: 318 B |
Before Width: | Height: | Size: 608 B |
Before Width: | Height: | Size: 321 B |
Before Width: | Height: | Size: 662 B |
Before Width: | Height: | Size: 337 B |
Before Width: | Height: | Size: 616 B |
Before Width: | Height: | Size: 373 B |
Before Width: | Height: | Size: 710 B |
Before Width: | Height: | Size: 355 B |
Before Width: | Height: | Size: 686 B |
Before Width: | Height: | Size: 344 B |
Before Width: | Height: | Size: 626 B |
Before Width: | Height: | Size: 348 B |
Before Width: | Height: | Size: 695 B |
Before Width: | Height: | Size: 358 B |
Before Width: | Height: | Size: 644 B |
Before Width: | Height: | Size: 407 B |
Before Width: | Height: | Size: 773 B |
26
main.js
@@ -1,26 +0,0 @@
|
||||
global.$ = $;
|
||||
|
||||
var abar = require('address_bar');
|
||||
var folder_view = require('folder_view');
|
||||
var path = require('path');
|
||||
var shell = require('nw.gui').Shell;
|
||||
|
||||
$(document).ready(function() {
|
||||
var folder = new folder_view.Folder($('#files'));
|
||||
var addressbar = new abar.AddressBar($('#addressbar'));
|
||||
|
||||
folder.open(process.cwd());
|
||||
addressbar.set(process.cwd());
|
||||
|
||||
folder.on('navigate', function(dir, mime) {
|
||||
if (mime.type == 'folder') {
|
||||
addressbar.enter(mime);
|
||||
} else {
|
||||
shell.openItem(mime.path);
|
||||
}
|
||||
});
|
||||
|
||||
addressbar.on('navigate', function(dir) {
|
||||
folder.open(dir);
|
||||
});
|
||||
});
|
2
node_modules/web.js
generated
vendored
@@ -109,7 +109,7 @@ var Web = {
|
||||
|
||||
syncProcess: function(type, title) {
|
||||
var me = this;
|
||||
me.Note.syncProcess('In sync ' + type + ': ' + title);
|
||||
me.Note.syncProcess('In sync ' + type + ' <br /> ' + title);
|
||||
},
|
||||
/*
|
||||
syncNotebookFinish: function() {
|
||||
|
@@ -1,43 +0,0 @@
|
||||
#notebook,
|
||||
#notebookBottom {
|
||||
background: none !important;
|
||||
background-color: rgba(37, 49, 62, 0.9) !important;
|
||||
}
|
||||
.folderHeader .fa-left,
|
||||
.folderHeader span {
|
||||
color: #fff;
|
||||
}
|
||||
#addNotebookPlus {
|
||||
color: #F9F8F8;
|
||||
}
|
||||
#notebookList {
|
||||
border-top: none;
|
||||
}
|
||||
.folderBody a:hover {
|
||||
background-color: transparent !important;
|
||||
font-weight: bold;
|
||||
}
|
||||
.ztree li a.curSelectedNode {
|
||||
color: #eee;
|
||||
}
|
||||
.ztree li a.curSelectedNode,
|
||||
#starNotes li.selected {
|
||||
background-color: transparent;
|
||||
font-weight: bold;
|
||||
}
|
||||
.ztree li a.curSelectedNode a,
|
||||
#starNotes li.selected a {
|
||||
color: #eee;
|
||||
}
|
||||
#starNotes li,
|
||||
.ztree li {
|
||||
border: none;
|
||||
}
|
||||
#starNotes li a,
|
||||
.ztree li a {
|
||||
color: #eee;
|
||||
}
|
||||
.sync-icon,
|
||||
#myProfile a {
|
||||
color: #fff;
|
||||
}
|
BIN
public/css/icon/Traffic_lights_light.png
Normal file
After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 188 B |
Before Width: | Height: | Size: 223 B |
Before Width: | Height: | Size: 599 B |
Before Width: | Height: | Size: 169 B |
Before Width: | Height: | Size: 567 B |
Before Width: | Height: | Size: 413 B |
Before Width: | Height: | Size: 169 B |
@@ -721,6 +721,41 @@ body #container {
|
||||
.win-tool .tool-close {
|
||||
background: url(icon/traffic-close@2x.png);
|
||||
}
|
||||
.win-tool:hover .tool-close {
|
||||
.win-tool .tool-close:before {
|
||||
content: ' ';
|
||||
background: url(icon/traffic-close-hover@2x.png);
|
||||
}
|
||||
.win-tool .tool-close-blur {
|
||||
background: url(icon/traffic-disabled@2x.png);
|
||||
}
|
||||
.win-tool .tool-close-blur:before {
|
||||
content: ' ';
|
||||
background: url(icon/traffic-close-hover@2x.png);
|
||||
}
|
||||
.win-tool .tool-min {
|
||||
background: url(icon/traffic-minimise@2x.png);
|
||||
}
|
||||
.win-tool .tool-min:before {
|
||||
content: ' ';
|
||||
background: url(icon/traffic-minimise-hover@2x.png);
|
||||
}
|
||||
.win-tool .tool-max {
|
||||
background: url(icon/traffic-fullscreen@2x.png);
|
||||
}
|
||||
.win-tool .tool-max:before {
|
||||
content: ' ';
|
||||
background: url(icon/traffic-zoom-hover@2x.png);
|
||||
}
|
||||
.win-tool:hover .tool-close,
|
||||
.win-tool:hover .tool-close-blur {
|
||||
background: url(icon/traffic-close-hover@2x.png);
|
||||
}
|
||||
.win-tool:hover .tool-min {
|
||||
background: url(icon/traffic-minimise-hover@2x.png);
|
||||
}
|
||||
.win-tool:hover .tool-max {
|
||||
background: url(icon/traffic-zoom-hover@2x.png);
|
||||
}
|
||||
.blur .win-tool a {
|
||||
background: url(icon/traffic-disabled@2x.png);
|
||||
}
|
||||
|
@@ -809,28 +809,5 @@ body {
|
||||
padding: 20px;
|
||||
}
|
||||
}
|
||||
.win-tool {
|
||||
// height: 14px;
|
||||
padding: 5px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 99999;
|
||||
a {
|
||||
display: block;
|
||||
float: left;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
background-size: 14px 14px !important;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.tool-close {
|
||||
background: url(icon/traffic-close@2x.png);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.tool-close {
|
||||
background: url(icon/traffic-close-hover@2x.png);
|
||||
}
|
||||
}
|
||||
}
|
||||
@import "traffic.less";
|
||||
|
@@ -1549,43 +1549,6 @@ top: 4px;
|
||||
}
|
||||
*/
|
||||
|
||||
.win-tool {
|
||||
// height: 14px;
|
||||
padding: 5px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 99999;
|
||||
a {
|
||||
display: block;
|
||||
float: left;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
background-size: 14px 14px !important;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.tool-close {
|
||||
background: url(../icon/traffic-close@2x.png);
|
||||
}
|
||||
.tool-min {
|
||||
background: url(../icon/traffic-minimise@2x.png);
|
||||
}
|
||||
.tool-max {
|
||||
background: url(../icon/traffic-fullscreen@2x.png);
|
||||
}
|
||||
&:hover {
|
||||
.tool-close {
|
||||
background: url(../icon/traffic-close-hover@2x.png);
|
||||
}
|
||||
.tool-min {
|
||||
background: url(../icon/traffic-minimise-hover@2x.png);
|
||||
}
|
||||
.tool-max {
|
||||
background: url(../icon/traffic-zoom-hover@2x.png);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
html,body, #page, #pageInner {
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
@@ -1599,7 +1562,20 @@ html,body, #page, #pageInner {
|
||||
background: transparent;
|
||||
// box-shadow: 0px 0px 10px #B52F2F;
|
||||
}
|
||||
.modal-backdrop {
|
||||
right: 5px;
|
||||
left: 5px;
|
||||
bottom: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
#mainContainer, #mainMask {
|
||||
border-radius: 5px;
|
||||
}
|
||||
#noteAndEditor {
|
||||
background-color: #fff;
|
||||
}
|
||||
body {
|
||||
display: none;
|
||||
// #notesAndSort {
|
||||
-webkit-user-select: none; // input, textarea还是可以选择的
|
||||
-webkit-app-region: drag;
|
||||
@@ -1642,6 +1618,7 @@ body {
|
||||
-webkit-user-select: none;
|
||||
// -webkit-app-region: drag;
|
||||
}
|
||||
|
||||
#noteTitle,
|
||||
#searchNoteInput,
|
||||
#searchNotebookForList,
|
||||
@@ -1653,3 +1630,5 @@ body {
|
||||
{
|
||||
-webkit-app-region: no-drag;
|
||||
}
|
||||
|
||||
@import '../traffic.less';
|
||||
|
@@ -1399,39 +1399,6 @@ h3 {
|
||||
background-color: #D62929;
|
||||
}
|
||||
*/
|
||||
.win-tool {
|
||||
padding: 5px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 99999;
|
||||
}
|
||||
.win-tool a {
|
||||
display: block;
|
||||
float: left;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
background-size: 14px 14px !important;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.win-tool .tool-close {
|
||||
background: url(../icon/traffic-close@2x.png);
|
||||
}
|
||||
.win-tool .tool-min {
|
||||
background: url(../icon/traffic-minimise@2x.png);
|
||||
}
|
||||
.win-tool .tool-max {
|
||||
background: url(../icon/traffic-fullscreen@2x.png);
|
||||
}
|
||||
.win-tool:hover .tool-close {
|
||||
background: url(../icon/traffic-close-hover@2x.png);
|
||||
}
|
||||
.win-tool:hover .tool-min {
|
||||
background: url(../icon/traffic-minimise-hover@2x.png);
|
||||
}
|
||||
.win-tool:hover .tool-max {
|
||||
background: url(../icon/traffic-zoom-hover@2x.png);
|
||||
}
|
||||
html,
|
||||
body,
|
||||
#page,
|
||||
@@ -1447,7 +1414,21 @@ body,
|
||||
overflow: hidden;
|
||||
background: transparent;
|
||||
}
|
||||
.modal-backdrop {
|
||||
right: 5px;
|
||||
left: 5px;
|
||||
bottom: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
#mainContainer,
|
||||
#mainMask {
|
||||
border-radius: 5px;
|
||||
}
|
||||
#noteAndEditor {
|
||||
background-color: #fff;
|
||||
}
|
||||
body {
|
||||
display: none;
|
||||
-webkit-user-select: none;
|
||||
-webkit-app-region: drag;
|
||||
border: 1px solid #ccc;
|
||||
@@ -1490,6 +1471,62 @@ body {
|
||||
#notebook {
|
||||
-webkit-app-region: no-drag;
|
||||
}
|
||||
.win-tool {
|
||||
padding: 5px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 99999;
|
||||
}
|
||||
.win-tool a {
|
||||
display: block;
|
||||
float: left;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
background-size: 14px 14px !important;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.win-tool .tool-close {
|
||||
background: url(icon/traffic-close@2x.png);
|
||||
}
|
||||
.win-tool .tool-close:before {
|
||||
content: ' ';
|
||||
background: url(icon/traffic-close-hover@2x.png);
|
||||
}
|
||||
.win-tool .tool-close-blur {
|
||||
background: url(icon/traffic-disabled@2x.png);
|
||||
}
|
||||
.win-tool .tool-close-blur:before {
|
||||
content: ' ';
|
||||
background: url(icon/traffic-close-hover@2x.png);
|
||||
}
|
||||
.win-tool .tool-min {
|
||||
background: url(icon/traffic-minimise@2x.png);
|
||||
}
|
||||
.win-tool .tool-min:before {
|
||||
content: ' ';
|
||||
background: url(icon/traffic-minimise-hover@2x.png);
|
||||
}
|
||||
.win-tool .tool-max {
|
||||
background: url(icon/traffic-fullscreen@2x.png);
|
||||
}
|
||||
.win-tool .tool-max:before {
|
||||
content: ' ';
|
||||
background: url(icon/traffic-zoom-hover@2x.png);
|
||||
}
|
||||
.win-tool:hover .tool-close,
|
||||
.win-tool:hover .tool-close-blur {
|
||||
background: url(icon/traffic-close-hover@2x.png);
|
||||
}
|
||||
.win-tool:hover .tool-min {
|
||||
background: url(icon/traffic-minimise-hover@2x.png);
|
||||
}
|
||||
.win-tool:hover .tool-max {
|
||||
background: url(icon/traffic-zoom-hover@2x.png);
|
||||
}
|
||||
.blur .win-tool a {
|
||||
background: url(icon/traffic-disabled@2x.png);
|
||||
}
|
||||
::selection {
|
||||
background: #000000;
|
||||
color: #ffffff;
|
||||
|
BIN
public/css/theme/icon/Traffic_lights_light.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
public/css/theme/icon/traffic-close-down-graphite.png
Normal file
After Width: | Height: | Size: 395 B |
BIN
public/css/theme/icon/traffic-close-down-graphite@2x.png
Normal file
After Width: | Height: | Size: 758 B |
BIN
public/css/theme/icon/traffic-close-down.png
Normal file
After Width: | Height: | Size: 371 B |
BIN
public/css/theme/icon/traffic-close-down@2x.png
Normal file
After Width: | Height: | Size: 848 B |
BIN
public/css/theme/icon/traffic-close-hover-graphite.png
Normal file
After Width: | Height: | Size: 473 B |
BIN
public/css/theme/icon/traffic-close-hover-graphite@2x.png
Normal file
After Width: | Height: | Size: 772 B |
BIN
public/css/theme/icon/traffic-close-hover.png
Normal file
After Width: | Height: | Size: 492 B |
BIN
public/css/theme/icon/traffic-close-hover@2x.png
Normal file
After Width: | Height: | Size: 858 B |
BIN
public/css/theme/icon/traffic-close.png
Normal file
After Width: | Height: | Size: 392 B |
BIN
public/css/theme/icon/traffic-close@2x.png
Normal file
After Width: | Height: | Size: 738 B |
BIN
public/css/theme/icon/traffic-disabled.png
Normal file
After Width: | Height: | Size: 298 B |
BIN
public/css/theme/icon/traffic-disabled@2x.png
Normal file
After Width: | Height: | Size: 531 B |
BIN
public/css/theme/icon/traffic-fullscreen-down-graphite.png
Normal file
After Width: | Height: | Size: 385 B |
BIN
public/css/theme/icon/traffic-fullscreen-down-graphite@2x.png
Normal file
After Width: | Height: | Size: 816 B |
BIN
public/css/theme/icon/traffic-fullscreen-down.png
Normal file
After Width: | Height: | Size: 389 B |
BIN
public/css/theme/icon/traffic-fullscreen-down@2x.png
Normal file
After Width: | Height: | Size: 924 B |
BIN
public/css/theme/icon/traffic-fullscreen-hover-graphite.png
Normal file
After Width: | Height: | Size: 467 B |
BIN
public/css/theme/icon/traffic-fullscreen-hover-graphite@2x.png
Normal file
After Width: | Height: | Size: 809 B |
BIN
public/css/theme/icon/traffic-fullscreen-hover.png
Normal file
After Width: | Height: | Size: 516 B |
BIN
public/css/theme/icon/traffic-fullscreen-hover@2x.png
Normal file
After Width: | Height: | Size: 924 B |
BIN
public/css/theme/icon/traffic-fullscreen.png
Normal file
After Width: | Height: | Size: 411 B |
BIN
public/css/theme/icon/traffic-fullscreen@2x.png
Normal file
After Width: | Height: | Size: 775 B |
BIN
public/css/theme/icon/traffic-graphite.png
Normal file
After Width: | Height: | Size: 353 B |
BIN
public/css/theme/icon/traffic-graphite@2x.png
Normal file
After Width: | Height: | Size: 648 B |
BIN
public/css/theme/icon/traffic-minimise-down-graphite.png
Normal file
After Width: | Height: | Size: 304 B |
BIN
public/css/theme/icon/traffic-minimise-down-graphite@2x.png
Normal file
After Width: | Height: | Size: 658 B |
BIN
public/css/theme/icon/traffic-minimise-down.png
Normal file
After Width: | Height: | Size: 301 B |
BIN
public/css/theme/icon/traffic-minimise-down@2x.png
Normal file
After Width: | Height: | Size: 717 B |
BIN
public/css/theme/icon/traffic-minimise-hover-graphite.png
Normal file
After Width: | Height: | Size: 391 B |
BIN
public/css/theme/icon/traffic-minimise-hover-graphite@2x.png
Normal file
After Width: | Height: | Size: 640 B |