Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
6502aee7
Commit
6502aee7
authored
Sep 28, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
1f11f20f
Changes
29
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
160 additions
and
60 deletions
+160
-60
event.js
src/core/event.js
+1
-7
readonly.js
src/core/readonly.js
+3
-3
status.js
src/core/status.js
+3
-1
editor.keyboard.js
src/module/editor.keyboard.js
+0
-1
keynav.js
src/module/keynav.js
+4
-2
select.js
src/module/select.js
+4
-7
view.js
src/module/view.js
+8
-6
zoom.js
src/module/zoom.js
+2
-2
png.js
src/protocol/png.js
+12
-4
createshare.html
static/pages/createshare.html
+1
-1
doc.js
ui/doc.js
+2
-1
help.js
ui/menu/help/help.js
+3
-0
local.js
ui/menu/open/local.js
+6
-1
download.js
ui/menu/save/download.js
+12
-3
netdisk.js
ui/menu/save/netdisk.js
+3
-2
share.js
ui/menu/share/share.js
+5
-1
view.js
ui/menu/share/view.js
+4
-2
nav.js
ui/nav.js
+1
-0
image.js
ui/ribbon/idea/image.js
+1
-1
link.js
ui/ribbon/idea/link.js
+5
-3
_kityminder.less
ui/theme/default/css/_kityminder.less
+3
-0
_public.less
ui/theme/default/css/_public.less
+1
-0
_user.less
ui/theme/default/css/_user.less
+19
-0
_widgets.less
ui/theme/default/css/_widgets.less
+3
-2
default.all.css
ui/theme/default/css/default.all.css
+37
-2
default.all.css.map
ui/theme/default/css/default.all.css.map
+1
-1
user.js
ui/topbar/user.js
+10
-6
ui.js
ui/ui.js
+5
-0
netdiskfinder.js
ui/widget/netdiskfinder.js
+1
-1
No files found.
src/core/event.js
View file @
6502aee7
...
...
@@ -78,17 +78,11 @@ kity.extendClass(Minder, {
},
// TODO: mousemove lazy bind
_bindPaperEvents
:
function
()
{
this
.
_paper
.
on
(
'click dblclick
keydown keyup keypress paste
mousedown contextmenu mouseup mousemove mousewheel DOMMouseScroll touchstart touchmove touchend dragenter dragleave drop'
,
this
.
_firePharse
.
bind
(
this
));
this
.
_paper
.
on
(
'click dblclick mousedown contextmenu mouseup mousemove mousewheel DOMMouseScroll touchstart touchmove touchend dragenter dragleave drop'
,
this
.
_firePharse
.
bind
(
this
));
if
(
window
)
{
window
.
addEventListener
(
'resize'
,
this
.
_firePharse
.
bind
(
this
));
window
.
addEventListener
(
'blur'
,
this
.
_firePharse
.
bind
(
this
));
}
this
.
_renderTarget
.
onfocus
=
function
()
{
console
.
log
(
'focus'
);
};
this
.
_renderTarget
.
onblur
=
function
()
{
console
.
log
(
'blur'
);
};
},
_bindKeyboardEvents
:
function
()
{
if
((
navigator
.
userAgent
.
indexOf
(
'iPhone'
)
==
-
1
)
&&
(
navigator
.
userAgent
.
indexOf
(
'iPod'
)
==
-
1
)
&&
(
navigator
.
userAgent
.
indexOf
(
'iPad'
)
==
-
1
))
{
...
...
src/core/readonly.js
View file @
6502aee7
...
...
@@ -20,14 +20,14 @@ kity.extendClass(Minder, {
me
.
bkqueryCommandValue
=
me
.
queryCommandValue
;
me
.
queryCommandState
=
function
(
type
)
{
var
cmd
=
this
.
_getCommand
(
type
);
if
(
cmd
&&
cmd
.
enableReadOnly
===
false
)
{
if
(
cmd
&&
cmd
.
enableReadOnly
)
{
return
me
.
bkqueryCommandState
.
apply
(
me
,
arguments
);
}
return
-
1
;
};
me
.
queryCommandValue
=
function
(
type
)
{
var
cmd
=
this
.
_getCommand
(
type
);
if
(
cmd
&&
cmd
.
enableReadOnly
===
false
)
{
if
(
cmd
&&
cmd
.
enableReadOnly
)
{
return
me
.
bkqueryCommandValue
.
apply
(
me
,
arguments
);
}
return
null
;
...
...
@@ -48,7 +48,7 @@ kity.extendClass(Minder, {
delete
me
.
bkqueryCommandValue
;
}
this
.
rollbackStatus
(
);
this
.
setStatus
(
'normal'
);
me
.
_interactChange
();
}
...
...
src/core/status.js
View file @
6502aee7
...
...
@@ -22,7 +22,9 @@ kity.extendClass(Minder, {
var
sf
=
~
window
.
location
.
href
.
indexOf
(
'status'
);
var
tf
=
~
window
.
location
.
href
.
indexOf
(
'trace'
);
return
function
(
status
)
{
// 在 readonly 模式下,只有 force 为 true 才能切换回来
return
function
(
status
,
force
)
{
if
(
this
.
_status
==
'readonly'
&&
!
force
)
return
this
;
if
(
status
!=
this
.
_status
)
{
this
.
_rollbackStatus
=
this
.
_status
;
this
.
_status
=
status
;
...
...
src/module/editor.keyboard.js
View file @
6502aee7
...
...
@@ -296,7 +296,6 @@ Minder.keyboarder = kity.createClass('keyboarder', function(){
if
(
this
.
km
.
getStatus
()
==
'normal'
&&
node
&&
this
.
selection
.
isHide
()){
if
(
this
.
isShortcutCopyKey
){
console
.
log
(
this
.
km
.
getStatus
())
return
;
}
...
...
src/module/keynav.js
View file @
6502aee7
...
...
@@ -142,7 +142,9 @@ KityMinder.registerModule('KeyboardModule', function() {
queryState
:
function
(
km
)
{
return
km
.
getSelectedNode
()
?
0
:
-
1
;
}
},
enableReadOnly
:
true
});
// 稀释用
...
...
@@ -159,7 +161,7 @@ KityMinder.registerModule('KeyboardModule', function() {
var
root
=
this
.
getRoot
();
buildPositionNetwork
(
root
);
},
'normal.keydown'
:
function
(
e
)
{
'normal.keydown
readonly.keydown
'
:
function
(
e
)
{
var
minder
=
this
;
[
'left'
,
'right'
,
'up'
,
'down'
].
forEach
(
function
(
key
)
{
if
(
e
.
isShortcutKey
(
key
))
{
...
...
src/module/select.js
View file @
6502aee7
...
...
@@ -107,7 +107,7 @@ KityMinder.registerModule('Select', function() {
});
},
'events'
:
{
'
normal.mousedown textedit.mousedown inputready.
mousedown'
:
function
(
e
)
{
'mousedown'
:
function
(
e
)
{
var
downNode
=
e
.
getTargetNode
();
...
...
@@ -140,8 +140,8 @@ KityMinder.registerModule('Select', function() {
lastDownPosition
=
e
.
getPosition
(
this
.
getRenderContainer
());
}
},
'
normal.mousemove textedit.mousemove inputready.
mousemove'
:
marqueeActivator
.
selectMove
,
'
normal.mouseup textedit.mouseup inputready.
mouseup'
:
function
(
e
)
{
'mousemove'
:
marqueeActivator
.
selectMove
,
'mouseup'
:
function
(
e
)
{
var
upNode
=
e
.
getTargetNode
();
// 如果 mouseup 发生在 lastDownNode 外,是无需理会的
...
...
@@ -158,10 +158,7 @@ KityMinder.registerModule('Select', function() {
//全选操作
'normal.keydown inputready.keydown'
:
function
(
e
){
var
keyEvent
=
e
.
originEvent
;
if
(
(
keyEvent
.
ctrlKey
||
keyEvent
.
metaKey
)
&&
keymap
.
a
==
keyEvent
.
keyCode
){
if
(
e
.
isShortcutKey
(
'ctrl+a'
)
){
var
selectedNodes
=
[];
this
.
getRoot
().
traverse
(
function
(
node
){
...
...
src/module/view.js
View file @
6502aee7
...
...
@@ -107,7 +107,7 @@ var ViewDragger = kity.createClass("ViewDragger", {
})
.
on
(
'normal.mousemove normal.touchmove '
+
'readonly.
touchmove readonly.mouse
move '
+
'readonly.
mousemove readonly.touch
move '
+
'inputready.mousemove inputready.touchmove'
,
function
(
e
)
{
if
(
e
.
type
==
'touchmove'
)
{
e
.
preventDefault
();
// 阻止浏览器的后退事件
...
...
@@ -115,7 +115,7 @@ var ViewDragger = kity.createClass("ViewDragger", {
if
(
!
isTempDrag
)
return
;
var
offset
=
kity
.
Vector
.
fromPoints
(
lastPosition
,
e
.
getPosition
());
if
(
offset
.
length
()
>
10
)
{
this
.
setStatus
(
'hand'
);
this
.
setStatus
(
'hand'
,
true
);
var
paper
=
dragger
.
_minder
.
getPaper
();
paper
.
setStyle
(
'cursor'
,
'-webkit-grabbing'
);
}
...
...
@@ -163,7 +163,7 @@ KityMinder.registerModule('View', function() {
execute
:
function
(
minder
)
{
if
(
minder
.
getStatus
()
!=
'hand'
)
{
minder
.
setStatus
(
'hand'
);
minder
.
setStatus
(
'hand'
,
true
);
}
else
{
minder
.
rollbackStatus
();
}
...
...
@@ -173,7 +173,7 @@ KityMinder.registerModule('View', function() {
queryState
:
function
(
minder
)
{
return
minder
.
getStatus
()
==
'hand'
?
1
:
0
;
},
enableReadOnly
:
fals
e
enableReadOnly
:
tru
e
});
var
CameraCommand
=
kity
.
createClass
(
'CameraCommand'
,
{
...
...
@@ -190,7 +190,7 @@ KityMinder.registerModule('View', function() {
dragger
.
move
(
new
kity
.
Point
(
dx
,
dy
),
duration
);
this
.
setContentChanged
(
false
);
},
enableReadOnly
:
fals
e
enableReadOnly
:
tru
e
});
var
MoveCommand
=
kity
.
createClass
(
'MoveCommand'
,
{
...
...
@@ -213,7 +213,9 @@ KityMinder.registerModule('View', function() {
dragger
.
move
(
new
kity
.
Point
(
-
size
.
width
/
2
,
0
),
duration
);
break
;
}
}
},
enableReadOnly
:
true
});
return
{
...
...
src/module/zoom.js
View file @
6502aee7
...
...
@@ -88,7 +88,7 @@ KityMinder.registerModule('Zoom', function() {
}
return
0
;
},
enableReadOnly
:
fals
e
enableReadOnly
:
tru
e
});
var
ZoomOutCommand
=
kity
.
createClass
(
'ZoomOutCommand'
,
{
...
...
@@ -107,7 +107,7 @@ KityMinder.registerModule('Zoom', function() {
}
return
0
;
},
enableReadOnly
:
fals
e
enableReadOnly
:
tru
e
});
return
{
...
...
src/protocol/png.js
View file @
6502aee7
...
...
@@ -13,6 +13,7 @@ if (!kity.Browser.ie) {
image
.
onerror
=
function
(
err
)
{
reject
(
err
);
};
image
.
crossOrigin
=
''
;
image
.
src
=
url
;
});
}
...
...
@@ -50,17 +51,24 @@ if (!kity.Browser.ie) {
height
:
renderBox
.
height
+
1
,
style
:
'font-family: Arial, "Microsoft Yahei","Heiti SC";'
});
$svg
.
removeAttr
(
'id'
).
find
(
'*[id]'
).
removeAttr
(
'id'
);
svgXml
=
$
(
'<div></div>'
).
append
(
$svg
).
html
();
// Dummy IE
svgXml
=
svgXml
.
replace
(
' xmlns="http://www.w3.org/2000/svg" xmlns:NS1="" NS1:ns1:xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:NS2="" NS2:xmlns:ns1=""'
,
''
);
// svg 含有 符号导出报错 Entity 'nbsp' not defined
svgXml
=
svgXml
.
replace
(
/ /g
,
' '
);
blob
=
new
Blob
([
svgXml
],
{
type
:
'image/svg+xml;charset=utf-8'
});
// blob = new Blob([svgXml], {
// type: 'image/svg+xml'
// });
// svgUrl = DomURL.createObjectURL(blob);
svgUrl
=
DomURL
.
createObjectURL
(
blob
);
svgUrl
=
'data:image/svg+xml;charset=utf-8,'
+
encodeURIComponent
(
svgXml
);
return
{
width
:
width
,
...
...
static/pages/createshare.html
View file @
6502aee7
...
...
@@ -23,7 +23,7 @@
<div
class=
"share-body"
>
<h3>
$lang.url_share
</h3>
<p>
<input
id=
"share-url"
type=
"url"
value=
"http://naotu.baidu.com/?shareId=kcev3dd"
/>
<input
id=
"share-url"
class=
"fui-widget fui-selectable"
type=
"url"
readonly
value=
"http://naotu.baidu.com/?shareId=kcev3dd"
/>
<button
id=
"copy-share-url"
data-clipboard-target=
"share-url"
type=
"button"
>
$lang.copy
</button>
</p>
<h3>
$lang.sns_share
</h3>
...
...
ui/doc.js
View file @
6502aee7
...
...
@@ -73,8 +73,9 @@ KityMinder.registerUI('doc', function(minder) {
return
current
;
}
function
checkSaved
()
{
function
checkSaved
(
noConfirm
)
{
if
(
!
fio
.
user
.
current
())
return
true
;
if
(
noConfirm
)
return
current
.
saved
;
return
current
.
saved
||
window
.
confirm
(
minder
.
getLang
(
'ui.unsavedcontent'
,
'* '
+
current
.
title
));
}
...
...
ui/menu/help/help.js
View file @
6502aee7
...
...
@@ -37,6 +37,9 @@ KityMinder.registerUI('menu/help/help', function (minder) {
}));
$help
.
find
(
'.shortcut-content'
).
html
(
convert
(
operation
));
if
(
kity
.
Browser
.
mac
)
{
$help
.
addClass
(
'mac'
);
}
$help
.
removeClass
(
'loading'
);
}
...
...
ui/menu/open/local.js
View file @
6502aee7
...
...
@@ -68,7 +68,7 @@ KityMinder.registerUI('menu/open/local', function(minder) {
e
.
preventDefault
();
e
.
stopPropagation
();
}).
on
(
'drop'
,
function
(
e
)
{
if
(
!
$doc
.
checkSave
())
return
;
if
(
!
$doc
.
checkSave
d
())
return
;
e
=
e
.
originalEvent
;
read
(
e
.
dataTransfer
.
files
[
0
]);
$menu
.
hide
();
...
...
@@ -81,6 +81,11 @@ KityMinder.registerUI('menu/open/local', function(minder) {
var
info
=
new
fio
.
file
.
anlysisPath
(
domfile
.
name
);
var
protocol
=
supports
[
info
.
extension
];
if
(
!
protocol
||
!
protocol
.
decode
)
{
alert
(
minder
.
getLang
(
'ui.unsupportedfile'
));
return
Promise
.
reject
();
}
var
dataPromise
=
new
Promise
(
function
(
resolve
,
reject
)
{
var
reader
;
...
...
ui/menu/save/download.js
View file @
6502aee7
...
...
@@ -62,10 +62,14 @@ KityMinder.registerUI('menu/save/download', function(minder) {
return
null
;
})[
'catch'
](
function
(
e
)
{
debugger
;
window
.
alert
(
'下载失败:'
+
e
.
message
);
}).
then
(
function
()
{
$panel
.
removeClass
(
'loading'
);
$menu
.
hide
();
setTimeout
(
function
()
{
$panel
.
removeClass
(
'loading'
);
$menu
.
hide
();
});
});
}
...
...
@@ -99,7 +103,12 @@ KityMinder.registerUI('menu/save/download', function(minder) {
$
(
'<input name="iehack" value="☠" />'
).
appendTo
(
$form
);
var
netdisk
=
minder
.
getUI
(
'menu/save/netdisk'
);
netdisk
.
mute
=
true
;
$form
.
appendTo
(
'body'
).
submit
().
remove
();
setTimeout
(
function
()
{
netdisk
.
mute
=
false
;
});
}
function
buildDataUrl
(
mineType
,
data
)
{
...
...
ui/menu/save/netdisk.js
View file @
6502aee7
...
...
@@ -39,6 +39,7 @@ KityMinder.registerUI('menu/save/netdisk', function(minder) {
/* 文件名 */
var
$filename
=
$
(
'<input>'
)
.
addClass
(
'fui-widget fui-selectable'
)
.
attr
(
'type'
,
'text'
)
.
attr
(
'placeholder'
,
minder
.
getLang
(
'ui.filename'
))
.
attr
(
'title'
,
minder
.
getLang
(
'ui.filename'
))
...
...
@@ -81,8 +82,8 @@ KityMinder.registerUI('menu/save/netdisk', function(minder) {
ret
.
quickSave
=
quickSave
;
window
.
onbeforeunload
=
function
()
{
var
noask
=
window
.
location
.
href
.
indexOf
(
'noask'
)
>
0
;
if
(
!
$doc
.
checkSaved
()
&&
!
noask
)
var
noask
=
ret
.
mute
||
window
.
location
.
href
.
indexOf
(
'noask'
)
>
0
;
if
(
!
$doc
.
checkSaved
(
true
)
&&
!
noask
)
return
minder
.
getLang
(
'ui.unsavedcontent'
,
'* '
+
$doc
.
current
().
title
);
};
...
...
ui/menu/share/share.js
View file @
6502aee7
...
...
@@ -100,6 +100,10 @@ KityMinder.registerUI('menu/share/share', function(minder) {
};
actions
[
e
.
target
.
value
]();
});
$panel
.
delegate
(
'input#share-url'
,
'dblclick'
,
function
()
{
this
.
select
();
});
}
function
bindManageActions
()
{
...
...
@@ -192,7 +196,7 @@ KityMinder.registerUI('menu/share/share', function(minder) {
function
uuid
()
{
// 最多使用 1e7,否则 IE toString() 会出来指数表示法
var
timeLead
=
1
e
7
;
var
timeLead
=
1
e
6
;
return
((
+
new
Date
()
*
timeLead
)
+
(
Math
.
random
()
*
--
timeLead
)).
toString
(
36
);
}
...
...
ui/menu/share/view.js
View file @
6502aee7
...
...
@@ -48,6 +48,8 @@ KityMinder.registerUI('menu/share/view', function (minder) {
});
}
var
$container
=
$
(
minder
.
getRenderTarget
()).
addClass
(
'loading'
);
return
$
.
pajax
({
url
:
'http://naotu.baidu.com/share.php'
,
//'http://naotu.baidu.com/mongo.php',
...
...
@@ -66,9 +68,9 @@ KityMinder.registerUI('menu/share/view', function (minder) {
}).
then
(
function
()
{
$
(
minder
.
getRenderTarget
()).
removeClass
(
'loading'
);
minder
.
execCommand
(
'hand'
);
minder
.
disable
();
minder
.
execCommand
(
'hand'
,
true
);
$container
.
removeClass
(
'loading'
);
});
}
...
...
ui/nav.js
View file @
6502aee7
...
...
@@ -86,6 +86,7 @@ KityMinder.registerUI('nav', function(minder) {
$previewNavigator
.
show
=
function
()
{
$
.
fn
.
show
.
call
(
this
);
bind
();
updateContentView
();
updateVisibleView
();
};
...
...
ui/ribbon/idea/image.js
View file @
6502aee7
...
...
@@ -44,7 +44,7 @@ KityMinder.registerUI('image', function(minder) {
var
$dialogBody
=
$
(
$imageDialog
.
getBodyElement
());
$dialogBody
.
html
([
'<p><label>图片地址:</label><input type="url" class="image-url" /></p>'
,
'<p><label>图片地址:</label><input type="url" class="image-url
fui-widget fui-selection
" /></p>'
,
'<p><label>提示文本:</label><input type="text" class="image-title /"></p>'
,
'<img class="image-preview" src="" style="max-height: 200px;" />'
].
join
(
''
));
...
...
ui/ribbon/idea/link.js
View file @
6502aee7
...
...
@@ -9,6 +9,8 @@
KityMinder
.
registerUI
(
'ribbon/idea/link'
,
function
(
minder
)
{
var
R_URL
=
/
(
http|ftp|https
)
:
\/\/[\w\-
_
]
+
(\.[\w\-
_
]
+
)
+
([\w\-\.
,@?^=%&:
/
~
\+
#
]
*
[\w\-\@
?^=%&
/
~
\+
#
])?
/
;
var
$attachment
=
minder
.
getUI
(
'ribbon/idea/attachment'
);
var
$linkButtonMenu
=
new
FUI
.
ButtonMenu
({
...
...
@@ -34,8 +36,8 @@ KityMinder.registerUI('ribbon/idea/link', function(minder) {
var
$dialogBody
=
$
(
$linkDialog
.
getBodyElement
());
$dialogBody
.
html
([
'<p><label>连接地址:</label><input type="url" class="link-href" /></p>'
,
'<p><label>提示文本:</label><input type="text" class="link-title
/"
></p>'
'<p><label>连接地址:</label><input type="url" class="link-href
fui-widget fui-selectable
" /></p>'
,
'<p><label>提示文本:</label><input type="text" class="link-title
fui-widget fui-selectable" /
></p>'
].
join
(
''
));
var
$href
=
$dialogBody
.
find
(
'.link-href'
);
...
...
@@ -58,7 +60,7 @@ KityMinder.registerUI('ribbon/idea/link', function(minder) {
$href
.
on
(
'input'
,
function
()
{
var
url
=
$href
.
val
();
error
(
!
/^https
?\:\/\/(\w
+
\.)
+
\w
+/
.
test
(
url
));
error
(
!
R_URL
.
test
(
url
));
});
$linkButtonMenu
.
on
(
'buttonclick'
,
function
()
{
...
...
ui/theme/default/css/_kityminder.less
View file @
6502aee7
...
...
@@ -35,6 +35,9 @@ html, body {
&.maximize {
top: 40px;
}
&:focus {
/* box-shadow: inset 0 0 10px fadeOut(black, 0.5); */
}
-moz-user-select: none;
}
#tab-container.collapsed + #kityminder,
...
...
ui/theme/default/css/_public.less
View file @
6502aee7
...
...
@@ -43,6 +43,7 @@
.validate-error {
color: red;
border-color: red !important;
vertical-align: middle;
}
.button, button {
...
...
ui/theme/default/css/_user.less
View file @
6502aee7
...
...
@@ -6,6 +6,25 @@
color: @ui-fore;
vertical-align: baseline;
.loading-tip {
text-indent: 100000px;
display: inline-block;
width: 50px;
height: @panel-height;
line-height: @panel-height;
position: relative;
&:before {
content: ' ';
display: block;
position: absolute;
left: 9px;
top: 7px;
.loading-circle(16px);
box-shadow: none;
}
}
.fui-button {
padding: 5px 10px;
...
...
ui/theme/default/css/_widgets.less
View file @
6502aee7
...
...
@@ -16,7 +16,7 @@
.fui-label {
color: @button-text;
font-size: 12px;
vertical-align:
baselin
e;
vertical-align:
middl
e;
}
&.command-button {
...
...
@@ -26,7 +26,7 @@
height: 20px;
margin-right: 3px;
display: inline-block;
vertical-align:
baselin
e;
vertical-align:
middl
e;
}
&.large {
width: 50px;
...
...
@@ -260,6 +260,7 @@
height: 20px;
padding: 2px 4px;
width: 300px;
vertical-align: middle;
}
}
.fui-dialog-foot {
...
...
ui/theme/default/css/default.all.css
View file @
6502aee7
...
...
@@ -560,6 +560,7 @@
.validate-error
{
color
:
red
;
border-color
:
red
!important
;
vertical-align
:
middle
;
}
.button
,
button
{
...
...
@@ -822,7 +823,7 @@ li {
#tab-container
.fui-button
.fui-label
{
color
:
#5a6378
;
font-size
:
12px
;
vertical-align
:
baselin
e
;
vertical-align
:
middl
e
;
}
#tab-container
.fui-button.command-button
{
margin-bottom
:
3px
;
...
...
@@ -832,7 +833,7 @@ li {
height
:
20px
;
margin-right
:
3px
;
display
:
inline-block
;
vertical-align
:
baselin
e
;
vertical-align
:
middl
e
;
}
#tab-container
.fui-button.command-button.large
{
width
:
50px
;
...
...
@@ -1080,6 +1081,7 @@ li {
height
:
20px
;
padding
:
2px
4px
;
width
:
300px
;
vertical-align
:
middle
;
}
.fui-dialog
.fui-dialog-foot
{
position
:
absolute
;
...
...
@@ -1315,6 +1317,9 @@ body {
#kityminder
.maximize
{
top
:
40px
;
}
#kityminder
:focus
{
/* box-shadow: inset 0 0 10px fadeOut(black, 0.5); */
}
#tab-container
.collapsed
+
#kityminder
,
#panel
+
#kityminder
{
top
:
40px
;
...
...
@@ -1996,6 +2001,36 @@ body {
color
:
#ffffff
;
vertical-align
:
baseline
;
}
#panel
div
.user-panel
.loading-tip
{
text-indent
:
100000px
;
display
:
inline-block
;
width
:
50px
;
height
:
40px
;
line-height
:
40px
;
position
:
relative
;
}
#panel
div
.user-panel
.loading-tip
:before
{
content
:
' '
;
display
:
block
;
position
:
absolute
;
left
:
9px
;
top
:
7px
;
width
:
16px
;
height
:
16px
;
border
:
4px
solid
;
border-color
:
#c9ced1
transparent
transparent
;
box-shadow
:
0
0
11px
#ffffff
;
z-index
:
10
;
border-radius
:
100%
;
-webkit-animation
:
rotate
1.33s
ease
infinite
;
-moz-animation
:
rotate
1.33s
ease
infinite
;
-ms-animation
:
rotate
1.33s
ease
infinite
;
-o-animation
:
rotate
1.33s
ease
infinite
;
animation
:
rotate
1.33s
ease
infinite
;
filter
:
none
;
-webkit-filter
:
none
;
box-shadow
:
none
;
}
#panel
div
.user-panel
.fui-button
{
padding
:
5px
10px
;
height
:
30px
;
...
...
ui/theme/default/css/default.all.css.map
View file @
6502aee7
This diff is collapsed.
Click to expand it.
ui/topbar/user.js
View file @
6502aee7
...
...
@@ -14,7 +14,9 @@ KityMinder.registerUI('topbar/user', function(minder) {
var
$userPanel
=
$
(
'<div class="user-panel"></div>'
).
appendTo
(
'#panel'
);
var
$tip
=
$
(
'<span></span>'
).
text
(
minder
.
getLang
(
'ui.checklogin'
)).
appendTo
(
$userPanel
);
var
$tip
=
$
(
'<span class="loading-tip"></span>'
)
.
text
(
minder
.
getLang
(
'ui.checklogin'
))
.
appendTo
(
$userPanel
);
/* 登录按钮 */
var
$loginButton
=
new
FUI
.
Button
({
...
...
@@ -83,7 +85,7 @@ KityMinder.registerUI('topbar/user', function(minder) {
fio
.
user
.
check
().
then
(
check
)[
'catch'
](
function
(
error
)
{
$loginButton
.
show
();
$userButton
.
hide
();
$tip
.
remov
e
();
$tip
.
hid
e
();
});
});
...
...
@@ -98,11 +100,13 @@ KityMinder.registerUI('topbar/user', function(minder) {
$loginButton
.
hide
();
fio
.
user
.
fire
(
'login'
,
user
);
}
else
{
$loginButton
.
show
();
$userButton
.
hide
();
fio
.
user
.
fire
(
'logout'
,
user
);
if
(
window
.
location
.
href
.
indexOf
(
'nocheck'
)
==
-
1
)
{
logout
();
}
else
{
$loginButton
.
show
();
}
}
$tip
.
remov
e
();
$tip
.
hid
e
();
currentUser
=
user
;
}
...
...
ui/ui.js
View file @
6502aee7
...
...
@@ -42,6 +42,11 @@
e
.
stopPropagation
();
});
// 阻止非脑图事件冒泡
$
(
'#content-wrapper'
).
delegate
(
'input'
,
'mousedown mousemove mouseup contextmenu'
,
function
(
e
)
{
e
.
stopPropagation
();
});
minder
.
getPaper
().
addClass
(
'loading-target'
);
this
.
fire
(
'interactchange'
);
...
...
ui/widget/netdiskfinder.js
View file @
6502aee7
...
...
@@ -81,7 +81,7 @@ KityMinder.registerUI('widget/netdiskfinder', function(minder) {
var
$input
=
$
(
'<input>'
)
.
attr
(
'type'
,
'text'
)
.
addClass
(
'new-dir-name'
)
.
addClass
(
'new-dir-name
fui-widget fui-selectable
'
)
.
val
(
minder
.
getLang
(
'ui.newdir'
))
.
appendTo
(
$li
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment