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
64b250b0
Commit
64b250b0
authored
Oct 13, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
expand command button
parent
66c1c1d8
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
33 additions
and
11 deletions
+33
-11
zh-cn.js
lang/zh-cn/zh-cn.js
+1
-1
expand.js
src/module/expand.js
+3
-3
default.js
src/theme/default.js
+1
-1
fresh.js
src/theme/fresh.js
+1
-1
tabs.js
ui/ribbon/tabs.js
+1
-1
level.js
ui/ribbon/view/level.js
+15
-1
_icons.less
ui/theme/default/css/_icons.less
+2
-0
default.all.css
ui/theme/default/css/default.all.css
+6
-0
default.all.css.map
ui/theme/default/css/default.all.css.map
+1
-1
icons.png
ui/theme/default/images/icons.png
+0
-0
commandbutton.js
ui/widget/commandbutton.js
+2
-2
No files found.
lang/zh-cn/zh-cn.js
View file @
64b250b0
...
@@ -138,7 +138,7 @@ KityMinder.LANG['zh-cn'] = {
...
@@ -138,7 +138,7 @@ KityMinder.LANG['zh-cn'] = {
'arrangeup'
:
'上移'
,
'arrangeup'
:
'上移'
,
'arrangedown'
:
'下移'
,
'arrangedown'
:
'下移'
,
'resetlayout'
:
'整理布局'
,
'resetlayout'
:
'整理布局'
,
'expandtolea
ve
'
:
'展开全部节点'
,
'expandtolea
f
'
:
'展开全部节点'
,
'collapsetolevel1'
:
'收起到一级节点'
'collapsetolevel1'
:
'收起到一级节点'
},
},
...
...
src/module/expand.js
View file @
64b250b0
...
@@ -241,7 +241,7 @@ KityMinder.registerModule('Expand', function() {
...
@@ -241,7 +241,7 @@ KityMinder.registerModule('Expand', function() {
});
});
return
{
return
{
commands
:
{
commands
:
{
'expandtolea
ve
'
:
ExpandNodeCommand
,
'expandtolea
f
'
:
ExpandNodeCommand
,
'collapsetolevel1'
:
CollapseNodeCommand
'collapsetolevel1'
:
CollapseNodeCommand
},
},
events
:
{
events
:
{
...
@@ -278,14 +278,14 @@ KityMinder.registerModule('Expand', function() {
...
@@ -278,14 +278,14 @@ KityMinder.registerModule('Expand', function() {
outside
:
ExpanderRenderer
outside
:
ExpanderRenderer
},
},
contextmenu
:
[{
contextmenu
:
[{
command
:
'expandtolea
ve
'
command
:
'expandtolea
f
'
},
{
},
{
command
:
'collapsetolevel1'
command
:
'collapsetolevel1'
},
{
},
{
divider
:
true
divider
:
true
}],
}],
commandShortcutKeys
:
{
commandShortcutKeys
:
{
'expandtolea
ve
'
:
'Alt+`'
,
'expandtolea
f
'
:
'Alt+`'
,
'collapsetolevel1'
:
'Alt+1'
'collapsetolevel1'
:
'Alt+1'
}
}
};
};
...
...
src/theme/default.js
View file @
64b250b0
...
@@ -22,7 +22,7 @@ KityMinder.registerTheme('classic', {
...
@@ -22,7 +22,7 @@ KityMinder.registerTheme('classic', {
'main-shadow'
:
'rgba(0, 0, 0, .25)'
,
'main-shadow'
:
'rgba(0, 0, 0, .25)'
,
'sub-color'
:
'white'
,
'sub-color'
:
'white'
,
'sub-background'
:
'
none
'
,
'sub-background'
:
'
transparent
'
,
'sub-stroke'
:
'none'
,
'sub-stroke'
:
'none'
,
'sub-font-size'
:
12
,
'sub-font-size'
:
12
,
'sub-padding'
:
[
5
,
10
],
'sub-padding'
:
[
5
,
10
],
...
...
src/theme/fresh.js
View file @
64b250b0
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
'main-space'
:
5
,
'main-space'
:
5
,
'sub-color'
:
'black'
,
'sub-color'
:
'black'
,
'sub-background'
:
'
none
'
,
'sub-background'
:
'
transparent
'
,
'sub-stroke'
:
'none'
,
'sub-stroke'
:
'none'
,
'sub-font-size'
:
12
,
'sub-font-size'
:
12
,
'sub-padding'
:
compat
?
[
3
,
5
]
:
[
5
,
10
],
'sub-padding'
:
compat
?
[
3
,
5
]
:
[
5
,
10
],
...
...
ui/ribbon/tabs.js
View file @
64b250b0
...
@@ -11,7 +11,7 @@ KityMinder.registerUI('ribbon/tabs', function(minder) {
...
@@ -11,7 +11,7 @@ KityMinder.registerUI('ribbon/tabs', function(minder) {
var
memory
=
minder
.
getUI
(
'memory'
);
var
memory
=
minder
.
getUI
(
'memory'
);
var
$tab
=
new
FUI
.
Tabs
({
var
$tab
=
new
FUI
.
Tabs
({
buttons
:
[
'idea'
,
'appearence'
/*, 'view'*/
].
map
(
function
(
key
)
{
buttons
:
[
'idea'
,
'appearence'
,
'view'
].
map
(
function
(
key
)
{
return
minder
.
getLang
(
'ui.tabs.'
+
key
);
return
minder
.
getLang
(
'ui.tabs.'
+
key
);
})
})
});
});
...
...
ui/ribbon/view/level.js
View file @
64b250b0
/**
/**
* @fileOverview
* @fileOverview
*
*
*
*
切换展开层次
*
*
* @author: techird
* @author: techird
* @copyright: Baidu FEX, 2014
* @copyright: Baidu FEX, 2014
*/
*/
KityMinder
.
registerUI
(
'ribbon/view/level'
,
function
(
minder
)
{
var
$commandbutton
=
minder
.
getUI
(
'widget/commandbutton'
);
var
$tabs
=
minder
.
getUI
(
'ribbon/tabs'
);
var
$levelPanel
=
new
FUI
.
LabelPanel
({
label
:
minder
.
getLang
(
'panels.level'
),
column
:
true
}).
appendTo
(
$tabs
.
view
);
[
'expandtoleaf'
,
'collapsetolevel1'
].
forEach
(
function
(
cmd
)
{
$commandbutton
.
generate
(
cmd
).
appendTo
(
$levelPanel
);
});
});
ui/theme/default/css/_icons.less
View file @
64b250b0
...
@@ -21,4 +21,6 @@
...
@@ -21,4 +21,6 @@
.italic& { .sprite(13); }
.italic& { .sprite(13); }
.arrangeup& { .sprite(14); }
.arrangeup& { .sprite(14); }
.arrangedown& { .sprite(15); }
.arrangedown& { .sprite(15); }
.expandtoleaf& { background-position: 0 -995px; }
.collapsetolevel1& { background-position: 0 -1015px;}
}
}
\ No newline at end of file
ui/theme/default/css/default.all.css
View file @
64b250b0
...
@@ -3569,6 +3569,12 @@ ul.resource-list li {
...
@@ -3569,6 +3569,12 @@ ul.resource-list li {
.arrangedown.command-button
.fui-icon
{
.arrangedown.command-button
.fui-icon
{
background-position
:
0
-300px
;
background-position
:
0
-300px
;
}
}
.expandtoleaf.command-button
.fui-icon
{
background-position
:
0
-995px
;
}
.collapsetolevel1.command-button
.fui-icon
{
background-position
:
0
-1015px
;
}
.preview-navigator
{
.preview-navigator
{
background
:
white
;
background
:
white
;
width
:
140px
;
width
:
140px
;
...
...
ui/theme/default/css/default.all.css.map
View file @
64b250b0
This diff is collapsed.
Click to expand it.
ui/theme/default/images/icons.png
View replaced file @
66c1c1d8
View file @
64b250b0
17.9 KB
|
W:
|
H:
19.2 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/widget/commandbutton.js
View file @
64b250b0
...
@@ -12,8 +12,8 @@ KityMinder.registerUI('widget/commandbutton', function(minder) {
...
@@ -12,8 +12,8 @@ KityMinder.registerUI('widget/commandbutton', function(minder) {
generate
:
function
(
command
,
onclick
)
{
generate
:
function
(
command
,
onclick
)
{
var
$button
=
new
FUI
.
Button
({
var
$button
=
new
FUI
.
Button
({
label
:
minder
.
getLang
(
'ui.'
+
command
),
label
:
minder
.
getLang
(
'ui.
command.'
+
command
)
||
minder
.
getLang
(
'ui.
'
+
command
),
text
:
minder
.
getLang
(
'ui.'
+
command
),
text
:
minder
.
getLang
(
'ui.
command.'
+
command
)
||
minder
.
getLang
(
'ui.
'
+
command
),
className
:
[
'command-widget'
,
'command-button'
,
command
]
className
:
[
'command-widget'
,
'command-button'
,
command
]
});
});
...
...
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