Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
60dfcebc
Commit
60dfcebc
authored
Jul 23, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
daff: add colors
parent
cfcdf7ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
1 deletion
+71
-1
dream/platform/src/daff/daff.js
dream/platform/src/daff/daff.js
+1
-1
dream/platform/src/daff/daff_handsontable.css
dream/platform/src/daff/daff_handsontable.css
+69
-0
dream/platform/src/daff/index.html
dream/platform/src/daff/index.html
+1
-0
No files found.
dream/platform/src/daff/daff.js
View file @
60dfcebc
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
return
this
.
getElement
()
return
this
.
getElement
()
.
push
(
function
(
element
)
{
.
push
(
function
(
element
)
{
$
(
element
).
html
(
table_diff_html
);
$
(
element
).
addClass
(
"
highlighter
"
).
html
(
table_diff_html
);
});
});
});
});
}(
window
,
jQuery
,
rJS
,
JSON
,
daff
));
}(
window
,
jQuery
,
rJS
,
JSON
,
daff
));
dream/platform/src/daff/daff_handsontable.css
0 → 100644
View file @
60dfcebc
.highlighter
.add
{
background-color
:
#7fff7f
;
}
.highlighter
.remove
{
background-color
:
#ff7f7f
;
}
.highlighter
td
.modify
{
background-color
:
#7f7fff
;
}
.highlighter
td
.conflict
{
background-color
:
#f00
;
}
.highlighter
.spec
{
background-color
:
#aaa
;
}
.highlighter
.move
{
background-color
:
#ffa
;
}
.highlighter
.null
{
color
:
#888
;
}
.highlighter
table
{
border-collapse
:
collapse
;
}
.highlighter
td
,
.highlighter
th
{
border
:
1px
solid
#2D4068
;
padding
:
3px
7px
2px
;
}
.highlighter
th
,
.highlighter
.header
{
background-color
:
#aaf
;
font-weight
:
bold
;
padding-bottom
:
4px
;
padding-top
:
5px
;
text-align
:
left
;
}
.highlighter
tr
.header
th
{
border-bottom
:
2px
solid
black
;
}
.highlighter
.gap
{
color
:
#888
;
}
.highlighter
td
{
empty-cells
:
show
;
}
.highlighter
tr
:first-child
td
{
border-top
:
1px
solid
#2D4068
;
}
.highlighter
td
:first-child
{
border-left
:
1px
solid
#2D4068
;
}
.highlighter
tr
.index
td
,
.highlighter
.index
,
.highlighter
tr
.header
th
.index
,
.highlighter
td
.index
:first-child
,
.highlighter
tr
:first-child
td
.index
{
background-color
:
white
;
border
:
none
;
}
dream/platform/src/daff/index.html
View file @
60dfcebc
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
<html>
<html>
<head>
<head>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<link
rel=
"stylesheet"
href=
"./daff_handsontable.css"
></link>
<script
src=
"../<%= curl.jquery.relative_dest %>"
></script>
<script
src=
"../<%= curl.jquery.relative_dest %>"
></script>
<script
src=
"../<%= copy.rsvp.relative_dest %>"
></script>
<script
src=
"../<%= copy.rsvp.relative_dest %>"
></script>
...
...
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