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
5902d9a8
Commit
5902d9a8
authored
Feb 27, 2014
by
campaign
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
bb5dd29a
a4301c1c
Changes
10
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
8297 additions
and
78 deletions
+8297
-78
dev.html
demo/dev.html
+2
-2
dev.js
dist/dev.js
+7994
-0
dev.php
dist/dev.php
+2
-2
index.html
dist/index.html
+4
-3
social.css
dist/social.css
+108
-5
social.js
dist/social.js
+153
-61
social.less
dist/social.less
+23
-3
kity
kity
+1
-1
dropmenu.js
src/ui/dropmenu.js
+9
-0
kityminder.css
themes/default/css/kityminder.css
+1
-1
No files found.
demo/dev.html
View file @
5902d9a8
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +5,9 @@
<script
src=
"../dist/jquery-2.1.0.min.js"
></script>
<script
src=
"../dist/jquery-2.1.0.min.js"
></script>
<script
src=
"../kity/dist/kitygraph.all.js"
></script>
<script
src=
"../kity/dist/kitygraph.all.js"
></script>
<script
src=
"../configure.js"
></script>
<script
src=
"../configure.js"
></script>
<script
src=
"../dist/dev.
php
"
></script>
<script
src=
"../dist/dev.
js
"
></script>
<script
src=
"../lang/zh-cn/zh-cn.js"
charset=
"utf-8"
></script>
<script
src=
"../lang/zh-cn/zh-cn.js"
charset=
"utf-8"
></script>
<link
href=
"../themes/default/
_
css/import.css"
type=
"text/css"
rel=
"stylesheet"
>
<link
href=
"../themes/default/css/import.css"
type=
"text/css"
rel=
"stylesheet"
>
<style>
<style>
.km_receiver
{
.km_receiver
{
width
:
0
;
width
:
0
;
...
...
dist/dev.js
0 → 100644
View file @
5902d9a8
This diff is collapsed.
Click to expand it.
dist/dev.php
View file @
5902d9a8
...
@@ -74,9 +74,9 @@ $dependency = Array(
...
@@ -74,9 +74,9 @@ $dependency = Array(
$content
=
""
;
$content
=
""
;
header
(
'Content-Type: text/javascript; charset=utf-8'
);
foreach
(
$dependency
as
$index
=>
$dep
)
{
foreach
(
$dependency
as
$index
=>
$dep
)
{
if
(
$_GET
[
'join'
]
!=
null
)
{
if
(
$_GET
[
'join'
]
!=
null
||
$argv
[
1
]
==
'join'
)
{
header
(
'Content-Type: text/javascript; charset=utf-8'
);
echo
file_get_contents
(
"../
$dep
"
)
.
"
\n\n
"
;
echo
file_get_contents
(
"../
$dep
"
)
.
"
\n\n
"
;
}
else
{
}
else
{
echo
"document.write('<script charset=utf-8 src=
\"
../
$dep
\"
></script>');"
;
echo
"document.write('<script charset=utf-8 src=
\"
../
$dep
\"
></script>');"
;
...
...
dist/index.html
View file @
5902d9a8
...
@@ -2,12 +2,13 @@
...
@@ -2,12 +2,13 @@
<html>
<html>
<head>
<head>
<meta
charset=
"utf-8"
>
<script
src=
"jquery-2.1.0.min.js"
charset=
"utf-8"
></script>
<script
src=
"jquery-2.1.0.min.js"
charset=
"utf-8"
></script>
<script
src=
"baidu-frontia-js-full-1.0.0.js"
charset=
"utf-8"
></script>
<script
src=
"baidu-frontia-js-full-1.0.0.js"
charset=
"utf-8"
></script>
<script
src=
"social.js"
charset=
"utf-8"
></script>
<script
src=
"social.js"
charset=
"utf-8"
></script>
<script
src=
"../kity/dist/kitygraph.all.js"
></script>
<script
src=
"../kity/dist/kitygraph.all.js"
charset=
"utf-8"
></script>
<script
src=
"../configure.js"
></script>
<script
src=
"../configure.js"
charset=
"utf-8"
></script>
<script
src=
"../dist/dev.php"
></script>
<script
src=
"../dist/dev.php"
charset=
"utf-8"
></script>
<script
src=
"../lang/zh-cn/zh-cn.js"
charset=
"utf-8"
></script>
<script
src=
"../lang/zh-cn/zh-cn.js"
charset=
"utf-8"
></script>
<link
href=
"../themes/default/css/import.css"
type=
"text/css"
rel=
"stylesheet"
>
<link
href=
"../themes/default/css/import.css"
type=
"text/css"
rel=
"stylesheet"
>
<link
rel=
"stylesheet"
href=
"social.css"
>
<link
rel=
"stylesheet"
href=
"social.css"
>
...
...
dist/social.css
View file @
5902d9a8
#social
{
position
:
absolute
;
right
:
10px
;
top
:
10px
;
line-height
:
20px
;
text-align
:
right
;
overflow
:
hidden
}
#social
button
,
#social
.kmui-btn
{
outline
:
none
;
display
:
inline-block
;
padding
:
0
15px
;
height
:
35px
;
font-size
:
13px
;
line-height
:
35px
;
text-align
:
center
;
border-radius
:
5px
;
color
:
#fff
;
text-decoration
:
none
;
border
:
none
;
margin-left
:
5px
;
cursor
:
pointer
;
background
:
#0099f2
;
background
:
url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwOTlmMiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjNDA5NmVlIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzAwNzZkZCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=)
;
background
:
-moz-linear-gradient
(
top
,
#0099f2
0
,
#4096ee
0
,
#0076dd
100%
);
background
:
-webkit-gradient
(
linear
,
left
top
,
left
bottom
,
color-stop
(
0
,
#0099f2
),
color-stop
(
0
,
#4096ee
),
color-stop
(
100%
,
#0076dd
));
background
:
-webkit-linear-gradient
(
top
,
#0099f2
0
,
#4096ee
0
,
#0076dd
100%
);
background
:
-o-linear-gradient
(
top
,
#0099f2
0
,
#4096ee
0
,
#0076dd
100%
);
background
:
-ms-linear-gradient
(
top
,
#0099f2
0
,
#4096ee
0
,
#0076dd
100%
);
background
:
linear-gradient
(
to
bottom
,
#0099f2
0
,
#4096ee
0
,
#0076dd
100%
);
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#0099f2'
,
endColorstr
=
'#0076dd'
,
GradientType
=
0
);}
#social
button
:hover
,
#social
.kmui-btn
:hover
{
background
:
#009fff
}
#social
{
#social
button
[
disabled
],
#social
.kmui-btn
[
disabled
]
{
background
:
#aaa
}
position
:
absolute
;
#social
button
.baidu-cloud
,
#social
.kmui-btn.baidu-cloud
{
padding-left
:
35px
;
position
:
relative
}
#social
button
.baidu-cloud
:before
,
#social
.kmui-btn.baidu-cloud
:before
{
content
:
' '
;
display
:
block
;
width
:
24px
;
height
:
24px
;
background
:
url(../themes/default/images/baiducloud.png)
;
position
:
absolute
;
left
:
7px
;
top
:
5px
}
right
:
10px
;
#social
button
.share
,
#social
.kmui-btn.share
{
padding-left
:
35px
;
position
:
relative
}
#social
button
.share
:before
,
#social
.kmui-btn.share
:before
{
content
:
' '
;
display
:
block
;
width
:
24px
;
height
:
24px
;
background
:
url(../themes/default/images/share.png)
no-repeat
;
position
:
absolute
;
left
:
7px
;
top
:
5px
}
top
:
10px
;
#social
button
img
,
#social
.kmui-btn
img
{
position
:
relative
;
top
:
3px
;
border-radius
:
2px
;
margin-right
:
7px
}
line-height
:
20px
;
text-align
:
right
;
overflow
:
hidden
;
}
#social
button
{
font-family
:
Arial
,
"Heiti SC"
,
"Microsoft Yahei"
;
outline
:
none
;
display
:
inline-block
;
padding
:
0
15px
;
height
:
35px
;
font-size
:
13px
;
line-height
:
35px
;
text-align
:
center
;
border-radius
:
5px
;
color
:
#ffffff
;
text-decoration
:
none
;
border
:
none
;
margin-left
:
5px
;
cursor
:
pointer
;
background
:
#0099f2
;
/* Old browsers */
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background
:
url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwOTlmMiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjNDA5NmVlIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzAwNzZkZCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=)
;
background
:
-moz-linear-gradient
(
top
,
#0099f2
0%
,
#4096ee
0%
,
#0076dd
100%
);
/* FF3.6+ */
background
:
-webkit-gradient
(
linear
,
left
top
,
left
bottom
,
color-stop
(
0%
,
#0099f2
),
color-stop
(
0%
,
#4096ee
),
color-stop
(
100%
,
#0076dd
));
/* Chrome,Safari4+ */
background
:
-webkit-linear-gradient
(
top
,
#0099f2
0%
,
#4096ee
0%
,
#0076dd
100%
);
/* Chrome10+,Safari5.1+ */
background
:
-o-linear-gradient
(
top
,
#0099f2
0%
,
#4096ee
0%
,
#0076dd
100%
);
/* Opera 11.10+ */
background
:
-ms-linear-gradient
(
top
,
#0099f2
0%
,
#4096ee
0%
,
#0076dd
100%
);
/* IE10+ */
background
:
linear-gradient
(
to
bottom
,
#0099f2
0%
,
#4096ee
0%
,
#0076dd
100%
);
/* W3C */
}
#social
button
:hover
{
background
:
#009fff
;
}
#social
button
[
disabled
]
{
background
:
#AAA
;
}
#social
button
.baidu-cloud
{
padding-left
:
35px
;
position
:
relative
;
}
#social
button
.baidu-cloud
:before
{
content
:
' '
;
display
:
block
;
width
:
24px
;
height
:
24px
;
background
:
url(../themes/default/images/baiducloud.png)
;
position
:
absolute
;
left
:
7px
;
top
:
5px
;
}
#social
button
.share
{
padding-left
:
35px
;
position
:
relative
;
}
#social
button
.share
:before
{
content
:
' '
;
display
:
block
;
width
:
24px
;
height
:
24px
;
background
:
url(../themes/default/images/share.png)
no-repeat
;
position
:
absolute
;
left
:
7px
;
top
:
5px
;
}
#social
button
img
{
position
:
relative
;
top
:
3px
;
border-radius
:
2px
;
margin-right
:
7px
;
}
#social
button
.user-file
{
padding-right
:
28px
;
position
:
relative
;
}
#social
button
.user-file
:after
{
content
:
' '
;
display
:
block
;
position
:
absolute
;
right
:
10px
;
top
:
15px
;
width
:
0
;
height
:
0
;
border
:
solid
;
border-width
:
4px
5px
;
border-color
:
#FFFFFF
transparent
transparent
transparent
;
}
.user-file-menu
{
margin-top
:
20px
;
margin-left
:
1px
;
}
dist/social.js
View file @
5902d9a8
This diff is collapsed.
Click to expand it.
dist/social.less
View file @
5902d9a8
...
@@ -5,7 +5,8 @@
...
@@ -5,7 +5,8 @@
line-height: 20px;
line-height: 20px;
text-align: right;
text-align: right;
overflow: hidden;
overflow: hidden;
button, .kmui-btn {
button {
font-family: Arial, "Heiti SC", "Microsoft Yahei";
outline: none;
outline: none;
display: inline-block;
display: inline-block;
padding: 0 15px;
padding: 0 15px;
...
@@ -27,7 +28,6 @@
...
@@ -27,7 +28,6 @@
background: -o-linear-gradient(top, #0099f2 0%,#4096ee 0%,#0076dd 100%); /* Opera 11.10+ */
background: -o-linear-gradient(top, #0099f2 0%,#4096ee 0%,#0076dd 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #0099f2 0%,#4096ee 0%,#0076dd 100%); /* IE10+ */
background: -ms-linear-gradient(top, #0099f2 0%,#4096ee 0%,#0076dd 100%); /* IE10+ */
background: linear-gradient(to bottom, #0099f2 0%,#4096ee 0%,#0076dd 100%); /* W3C */
background: linear-gradient(to bottom, #0099f2 0%,#4096ee 0%,#0076dd 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0099f2', endColorstr='#0076dd',GradientType=0 ); /* IE6-8 */
&:hover {
&:hover {
background: #009fff;
background: #009fff;
...
@@ -72,5 +72,25 @@
...
@@ -72,5 +72,25 @@
border-radius: 2px;
border-radius: 2px;
margin-right: 7px;
margin-right: 7px;
}
}
&.user-file {
padding-right: 28px;
position: relative;
&:after {
content: ' ';
display: block;
position: absolute;
right: 10px;
top: 15px;
width: 0;
height: 0;
border: solid;
border-width: 4px 5px;
border-color: #FFFFFF transparent transparent transparent;
}
}
}
}
}
.user-file-menu {
margin-top: 20px;
margin-left: 1px;
}
}
\ No newline at end of file
kity
@
95a7c76b
Subproject commit
48128c2e87fb9c8f2f93e64fc2df3f04ffa0a692
Subproject commit
95a7c76b5880e335a09cb5e7504e1edb8776f17d
src/ui/dropmenu.js
View file @
5902d9a8
...
@@ -100,6 +100,15 @@ KM.ui.define('dropmenu', {
...
@@ -100,6 +100,15 @@ KM.ui.define('dropmenu', {
return
currentVal
return
currentVal
}
}
},
},
appendItem
:
function
(
item
)
{
var
itemTpl
=
'<%if(item.divider){%><li class="kmui-divider"></li><%}else{%>'
+
'<li <%if(item.active||item.disabled){%>class="<%= item.active||
\'\'
%> <%=item.disabled||
\'\'
%>" <%}%> data-value="<%= item.value%>" data-label="<%= item.label%>">'
+
'<a href="#" tabindex="-1"><em class="kmui-dropmenu-checkbox"><i class="kmui-icon-ok"></i></em><%= item.label%></a>'
+
'</li><%}%>'
;
var
html
=
$
.
parseTmpl
(
itemTpl
,
item
);
var
$item
=
$
(
html
).
click
(
item
.
click
);
this
.
root
().
append
(
$item
);
},
addSubmenu
:
function
(
label
,
menu
,
index
)
{
addSubmenu
:
function
(
label
,
menu
,
index
)
{
index
=
index
||
0
;
index
=
index
||
0
;
...
...
themes/default/css/kityminder.css
View file @
5902d9a8
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
border-radius
:
4px
;
border-radius
:
4px
;
box-shadow
:
3px
3px
8px
rgba
(
0
,
0
,
0
,
.5
);
box-shadow
:
3px
3px
8px
rgba
(
0
,
0
,
0
,
.5
);
}
}
.kmui-container
.kmui-editor-body
{
.kmui-container
.kmui-editor-body
{
background
:
rgb
(
50
,
60
,
61
)
url(../images/grid.png)
repeat
;
background
:
rgb
(
50
,
60
,
61
)
url(../images/grid.png)
repeat
;
/*line-height: 0;*/
/*line-height: 0;*/
overflow
:
hidden
;
overflow
:
hidden
;
...
...
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