Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
todomvc
Commits
4cdaa181
Commit
4cdaa181
authored
Feb 04, 2015
by
Sindre Sorhus
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1116 from arthurvr/master
Migrate `Aria templates` example to `todomvc-app-css`
parents
5e5fd56c
894ec2e3
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
578 additions
and
10 deletions
+578
-10
examples/ariatemplates/.gitignore
examples/ariatemplates/.gitignore
+6
-0
examples/ariatemplates/bower.json
examples/ariatemplates/bower.json
+0
-7
examples/ariatemplates/bower_components/todomvc-common/bg.png
...ples/ariatemplates/bower_components/todomvc-common/bg.png
+0
-0
examples/ariatemplates/index.html
examples/ariatemplates/index.html
+3
-3
examples/ariatemplates/node_modules/todomvc-app-css/index.css
...ples/ariatemplates/node_modules/todomvc-app-css/index.css
+394
-0
examples/ariatemplates/node_modules/todomvc-common/base.css
examples/ariatemplates/node_modules/todomvc-common/base.css
+141
-0
examples/ariatemplates/node_modules/todomvc-common/base.js
examples/ariatemplates/node_modules/todomvc-common/base.js
+27
-0
examples/ariatemplates/package.json
examples/ariatemplates/package.json
+7
-0
No files found.
examples/ariatemplates/.gitignore
0 → 100644
View file @
4cdaa181
node_modules/todomvc-app-css
!node_modules/todomvc-app-css/index.css
node_modules/todomvc-common
!node_modules/todomvc-common/base.js
!node_modules/todomvc-common/base.css
examples/ariatemplates/bower.json
deleted
100644 → 0
View file @
5e5fd56c
{
"name"
:
"todomvc-ariatemplates"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.3.0"
}
}
examples/ariatemplates/bower_components/todomvc-common/bg.png
deleted
100644 → 0
View file @
5e5fd56c
2.08 KB
examples/ariatemplates/index.html
View file @
4cdaa181
...
@@ -3,14 +3,14 @@
...
@@ -3,14 +3,14 @@
<head>
<head>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<title>
Aria Templates • TodoMVC
</title>
<title>
Aria Templates • TodoMVC
</title>
<link
rel=
"stylesheet"
href=
"
bower_component
s/todomvc-common/base.css"
>
<link
rel=
"stylesheet"
href=
"
node_module
s/todomvc-common/base.css"
>
<link
rel=
"stylesheet"
href=
"
css/app
.css"
>
<link
rel=
"stylesheet"
href=
"
node_modules/todomvc-app-css/index
.css"
>
</head>
</head>
<body>
<body>
<section
id=
"todoapp"
>
<section
id=
"todoapp"
>
</section>
</section>
<script
src=
"
bower_component
s/todomvc-common/base.js"
></script>
<script
src=
"
node_module
s/todomvc-common/base.js"
></script>
<script
src=
"js/lib/aria/ariatemplates-1.3.5.js"
></script>
<script
src=
"js/lib/aria/ariatemplates-1.3.5.js"
></script>
<script>
<script>
// Update the path to the Todo module here when necessary
// Update the path to the Todo module here when necessary
...
...
examples/ariatemplates/
bower_components/todomvc-common/base
.css
→
examples/ariatemplates/
node_modules/todomvc-app-css/index
.css
View file @
4cdaa181
This diff is collapsed.
Click to expand it.
examples/ariatemplates/node_modules/todomvc-common/base.css
0 → 100644
View file @
4cdaa181
hr
{
margin
:
20px
0
;
border
:
0
;
border-top
:
1px
dashed
#c5c5c5
;
border-bottom
:
1px
dashed
#f7f7f7
;
}
.learn
a
{
font-weight
:
normal
;
text-decoration
:
none
;
color
:
#b83f45
;
}
.learn
a
:hover
{
text-decoration
:
underline
;
color
:
#787e7e
;
}
.learn
h3
,
.learn
h4
,
.learn
h5
{
margin
:
10px
0
;
font-weight
:
500
;
line-height
:
1.2
;
color
:
#000
;
}
.learn
h3
{
font-size
:
24px
;
}
.learn
h4
{
font-size
:
18px
;
}
.learn
h5
{
margin-bottom
:
0
;
font-size
:
14px
;
}
.learn
ul
{
padding
:
0
;
margin
:
0
0
30px
25px
;
}
.learn
li
{
line-height
:
20px
;
}
.learn
p
{
font-size
:
15px
;
font-weight
:
300
;
line-height
:
1.3
;
margin-top
:
0
;
margin-bottom
:
0
;
}
#issue-count
{
display
:
none
;
}
.quote
{
border
:
none
;
margin
:
20px
0
60px
0
;
}
.quote
p
{
font-style
:
italic
;
}
.quote
p
:before
{
content
:
'“'
;
font-size
:
50px
;
opacity
:
.15
;
position
:
absolute
;
top
:
-20px
;
left
:
3px
;
}
.quote
p
:after
{
content
:
'”'
;
font-size
:
50px
;
opacity
:
.15
;
position
:
absolute
;
bottom
:
-42px
;
right
:
3px
;
}
.quote
footer
{
position
:
absolute
;
bottom
:
-40px
;
right
:
0
;
}
.quote
footer
img
{
border-radius
:
3px
;
}
.quote
footer
a
{
margin-left
:
5px
;
vertical-align
:
middle
;
}
.speech-bubble
{
position
:
relative
;
padding
:
10px
;
background
:
rgba
(
0
,
0
,
0
,
.04
);
border-radius
:
5px
;
}
.speech-bubble
:after
{
content
:
''
;
position
:
absolute
;
top
:
100%
;
right
:
30px
;
border
:
13px
solid
transparent
;
border-top-color
:
rgba
(
0
,
0
,
0
,
.04
);
}
.learn-bar
>
.learn
{
position
:
absolute
;
width
:
272px
;
top
:
8px
;
left
:
-300px
;
padding
:
10px
;
border-radius
:
5px
;
background-color
:
rgba
(
255
,
255
,
255
,
.6
);
transition-property
:
left
;
transition-duration
:
500ms
;
}
@media
(
min-width
:
899px
)
{
.learn-bar
{
width
:
auto
;
padding-left
:
300px
;
}
.learn-bar
>
.learn
{
left
:
8px
;
}
}
examples/ariatemplates/
bower_component
s/todomvc-common/base.js
→
examples/ariatemplates/
node_module
s/todomvc-common/base.js
View file @
4cdaa181
/* global _ */
(
function
()
{
(
function
()
{
'
use strict
'
;
'
use strict
'
;
/* jshint ignore:start */
// Underscore's Template Module
// Underscore's Template Module
// Courtesy of underscorejs.org
// Courtesy of underscorejs.org
var
_
=
(
function
(
_
)
{
var
_
=
(
function
(
_
)
{
...
@@ -114,6 +116,7 @@
...
@@ -114,6 +116,7 @@
if
(
location
.
hostname
===
'
todomvc.com
'
)
{
if
(
location
.
hostname
===
'
todomvc.com
'
)
{
window
.
_gaq
=
[[
'
_setAccount
'
,
'
UA-31081062-1
'
],[
'
_trackPageview
'
]];(
function
(
d
,
t
){
var
g
=
d
.
createElement
(
t
),
s
=
d
.
getElementsByTagName
(
t
)[
0
];
g
.
src
=
'
//www.google-analytics.com/ga.js
'
;
s
.
parentNode
.
insertBefore
(
g
,
s
)}(
document
,
'
script
'
));
window
.
_gaq
=
[[
'
_setAccount
'
,
'
UA-31081062-1
'
],[
'
_trackPageview
'
]];(
function
(
d
,
t
){
var
g
=
d
.
createElement
(
t
),
s
=
d
.
getElementsByTagName
(
t
)[
0
];
g
.
src
=
'
//www.google-analytics.com/ga.js
'
;
s
.
parentNode
.
insertBefore
(
g
,
s
)}(
document
,
'
script
'
));
}
}
/* jshint ignore:end */
function
redirect
()
{
function
redirect
()
{
if
(
location
.
hostname
===
'
tastejs.github.io
'
)
{
if
(
location
.
hostname
===
'
tastejs.github.io
'
)
{
...
@@ -175,13 +178,17 @@
...
@@ -175,13 +178,17 @@
if
(
learnJSON
.
backend
)
{
if
(
learnJSON
.
backend
)
{
this
.
frameworkJSON
=
learnJSON
.
backend
;
this
.
frameworkJSON
=
learnJSON
.
backend
;
this
.
frameworkJSON
.
issueLabel
=
framework
;
this
.
append
({
this
.
append
({
backend
:
true
backend
:
true
});
});
}
else
if
(
learnJSON
[
framework
])
{
}
else
if
(
learnJSON
[
framework
])
{
this
.
frameworkJSON
=
learnJSON
[
framework
];
this
.
frameworkJSON
=
learnJSON
[
framework
];
this
.
frameworkJSON
.
issueLabel
=
framework
;
this
.
append
();
this
.
append
();
}
}
this
.
fetchIssueCount
();
}
}
Learn
.
prototype
.
append
=
function
(
opts
)
{
Learn
.
prototype
.
append
=
function
(
opts
)
{
...
@@ -212,6 +219,26 @@
...
@@ -212,6 +219,26 @@
document
.
body
.
insertAdjacentHTML
(
'
afterBegin
'
,
aside
.
outerHTML
);
document
.
body
.
insertAdjacentHTML
(
'
afterBegin
'
,
aside
.
outerHTML
);
};
};
Learn
.
prototype
.
fetchIssueCount
=
function
()
{
var
issueLink
=
document
.
getElementById
(
'
issue-count-link
'
);
if
(
issueLink
)
{
var
url
=
issueLink
.
href
.
replace
(
'
https://github.com
'
,
'
https://api.github.com/repos
'
);
var
xhr
=
new
XMLHttpRequest
();
xhr
.
open
(
'
GET
'
,
url
,
true
);
xhr
.
onload
=
function
(
e
)
{
var
parsedResponse
=
JSON
.
parse
(
e
.
target
.
responseText
);
if
(
parsedResponse
instanceof
Array
)
{
var
count
=
parsedResponse
.
length
if
(
count
!==
0
)
{
issueLink
.
innerHTML
=
'
This app has
'
+
count
+
'
open issues
'
;
document
.
getElementById
(
'
issue-count
'
).
style
.
display
=
'
inline
'
;
}
}
};
xhr
.
send
();
}
};
redirect
();
redirect
();
getFile
(
'
learn.json
'
,
Learn
);
getFile
(
'
learn.json
'
,
Learn
);
})();
})();
examples/ariatemplates/package.json
0 → 100644
View file @
4cdaa181
{
"private"
:
true
,
"dependencies"
:
{
"todomvc-common"
:
"^1.0.1"
,
"todomvc-app-css"
:
"^1.0.1"
}
}
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