Skip to content

Commit 727decf

Browse files
committed
合并前端静态打包资源
1 parent 822fe00 commit 727decf

File tree

5 files changed

+39
-35
lines changed

5 files changed

+39
-35
lines changed

src/main/resources/static/page/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<script src="cdn/dragula.min.js"></script>
2323
<script src="cdn/sortable.min.js"></script>
2424
<script src="cdn/xlsx.full.min.js"></script>
25-
<script src="scripts/vendor-bundle-a18de83830.fa20615a.1586268.js" data-main="aurelia-bootstrapper"></script>
25+
<script src="scripts/vendor-bundle-a18de83830.d9e51f5c.1586268.js" data-main="aurelia-bootstrapper"></script>
2626
</body>
2727

2828
</html>

src/main/resources/static/page/mind.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
border: none;
7979
font-size: 14px;
8080
}
81-
81+
8282
#import {
8383
color: #fff;
8484
background: #00aaff;
@@ -94,6 +94,7 @@
9494
.topbar>input {
9595
width: 250px;
9696
}
97+
9798
#import {
9899
display: none;
99100
}
@@ -179,17 +180,22 @@
179180
<script type="text/javascript" src="cdn/sockjs.min.js"></script>
180181
<script type="text/javascript" src="cdn/stomp.min.js"></script>
181182
<script>
183+
var newMindStr = null;
184+
182185
function initMind(data) {
183186

184187
var readonly = typeof url('?readonly') !== 'undefined';
185188

186189
if ($('#mind').length == 0) return;
187190

191+
var newMind = data ? null : MindElixir.new('新主题');
192+
newMindStr = JSON.stringify(newMind);
193+
188194
window.mind = new MindElixir({
189195
el: '#mind',
190196
direction: MindElixir.SIDE,
191197
locale: 'cn',
192-
data: data ? data : MindElixir.new('新主题'),
198+
data: data ? data : newMind,
193199
draggable: !readonly, // default true
194200
editable: !readonly,
195201
contextMenu: !readonly, // default true
@@ -522,9 +528,7 @@
522528
if (blog) {
523529
updated = (blog.title != title) || (blog.content != content);
524530
} else {
525-
updated = !!$.trim(title) || (!!$.trim(content) && content !=
526-
`{"nodeData":{"id":"root","topic":"新主题","root":true,"children":[]},"linkData":{}}`
527-
);
531+
updated = !!$.trim(title) || (!!$.trim(content) && content != newMindStr);
528532
}
529533

530534
(window.parent && window.parent.postMessage) && (window.parent
@@ -634,7 +638,7 @@
634638
$('#saveFrm .btnOk').click(function (event) {
635639

636640
var title = $('#title').val();
637-
641+
638642
mind.cancelFocus();
639643
var content = mind.getAllDataString();
640644

src/main/resources/static/page/scripts/app-bundle-6f719eaebe.js renamed to src/main/resources/static/page/scripts/app-bundle-99bb06ad63.js

Lines changed: 26 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/resources/static/page/scripts/vendor-bundle-a18de83830.fa20615a.1586268.js renamed to src/main/resources/static/page/scripts/vendor-bundle-a18de83830.d9e51f5c.1586268.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/resources/static/page/scripts/vendor-bundle-a18de83830.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)