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
Sven Franck
todomvc
Commits
063462dc
Commit
063462dc
authored
Jul 13, 2015
by
TasteBot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update the build files for gh-pages [ci skip]
parent
3c75793b
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
4691 additions
and
2885 deletions
+4691
-2885
examples/typescript-backbone/js/app.ts
examples/typescript-backbone/js/app.ts
+2
-2
examples/typescript-backbone/node_modules/backbone/backbone.js
...les/typescript-backbone/node_modules/backbone/backbone.js
+643
-378
examples/typescript-backbone/node_modules/jquery/dist/jquery.js
...es/typescript-backbone/node_modules/jquery/dist/jquery.js
+9
-4
examples/typescript-backbone/node_modules/lodash/index.js
examples/typescript-backbone/node_modules/lodash/index.js
+4018
-2491
examples/typescript-backbone/node_modules/todomvc-common/base.js
...s/typescript-backbone/node_modules/todomvc-common/base.js
+7
-2
examples/typescript-backbone/package.json
examples/typescript-backbone/package.json
+6
-0
examples/typescript-backbone/readme.md
examples/typescript-backbone/readme.md
+6
-8
No files found.
examples/typescript-backbone/js/app.ts
View file @
063462dc
...
...
@@ -181,7 +181,7 @@ class TodoView extends Backbone.View {
static
ENTER_KEY
:
number
=
13
;
static
ESC_KEY
:
number
=
27
;
constructor
(
options
?
)
{
constructor
(
options
?
)
{
//... is a list tag.
this
.
tagName
=
'
li
'
;
...
...
@@ -277,7 +277,7 @@ class AppView extends Backbone.View {
footerElement
:
HTMLElement
;
statsTemplate
:
(
params
:
any
)
=>
string
;
constructor
()
{
constructor
()
{
super
();
// Instead of generating a new element, bind to the existing skeleton of
// the App already present in the HTML.
...
...
examples/typescript-backbone/node_modules/backbone/backbone.js
View file @
063462dc
This diff is collapsed.
Click to expand it.
examples/typescript-backbone/node_modules/jquery/dist/jquery.js
View file @
063462dc
/*!
* jQuery JavaScript Library v2.1.
3
* jQuery JavaScript Library v2.1.
4
* http://jquery.com/
*
* Includes Sizzle.js
...
...
@@ -9,7 +9,7 @@
* Released under the MIT license
* http://jquery.org/license
*
* Date: 201
4-12-18T15:1
1Z
* Date: 201
5-04-28T16:0
1Z
*/
(
function
(
global
,
factory
)
{
...
...
@@ -67,7 +67,7 @@ var
// Use the correct document accordingly with window argument (sandbox)
document
=
window
.
document
,
version
=
"
2.1.
3
"
,
version
=
"
2.1.
4
"
,
// Define a local copy of jQuery
jQuery
=
function
(
selector
,
context
)
{
...
...
@@ -531,7 +531,12 @@ jQuery.each("Boolean Number String Function Array Date RegExp Object Error".spli
});
function
isArraylike
(
obj
)
{
var
length
=
obj
.
length
,
// Support: iOS 8.2 (not reproducible in simulator)
// `in` check used to prevent JIT error (gh-2145)
// hasOwn isn't used here due to false negatives
// regarding Nodelist length in IE
var
length
=
"
length
"
in
obj
&&
obj
.
length
,
type
=
jQuery
.
type
(
obj
);
if
(
type
===
"
function
"
||
jQuery
.
isWindow
(
obj
)
)
{
...
...
examples/typescript-backbone/node_modules/lodash/index.js
View file @
063462dc
This diff is collapsed.
Click to expand it.
examples/typescript-backbone/node_modules/todomvc-common/base.js
View file @
063462dc
...
...
@@ -114,7 +114,12 @@
})({});
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
'
));
(
function
(
i
,
s
,
o
,
g
,
r
,
a
,
m
){
i
[
'
GoogleAnalyticsObject
'
]
=
r
;
i
[
r
]
=
i
[
r
]
||
function
(){
(
i
[
r
].
q
=
i
[
r
].
q
||
[]).
push
(
arguments
)},
i
[
r
].
l
=
1
*
new
Date
();
a
=
s
.
createElement
(
o
),
m
=
s
.
getElementsByTagName
(
o
)[
0
];
a
.
async
=
1
;
a
.
src
=
g
;
m
.
parentNode
.
insertBefore
(
a
,
m
)
})(
window
,
document
,
'
script
'
,
'
https://www.google-analytics.com/analytics.js
'
,
'
ga
'
);
ga
(
'
create
'
,
'
UA-31081062-1
'
,
'
auto
'
);
ga
(
'
send
'
,
'
pageview
'
);
}
/* jshint ignore:end */
...
...
@@ -228,7 +233,7 @@
xhr
.
onload
=
function
(
e
)
{
var
parsedResponse
=
JSON
.
parse
(
e
.
target
.
responseText
);
if
(
parsedResponse
instanceof
Array
)
{
var
count
=
parsedResponse
.
length
var
count
=
parsedResponse
.
length
;
if
(
count
!==
0
)
{
issueLink
.
innerHTML
=
'
This app has
'
+
count
+
'
open issues
'
;
document
.
getElementById
(
'
issue-count
'
).
style
.
display
=
'
inline
'
;
...
...
examples/typescript-backbone/package.json
View file @
063462dc
...
...
@@ -7,5 +7,11 @@
"lodash"
:
"^3.1.0"
,
"todomvc-app-css"
:
"^1.0.0"
,
"todomvc-common"
:
"^1.0.1"
},
"devDependencies"
:
{
"typescript"
:
"^1.4.0"
},
"scripts"
:
{
"compile"
:
"tsc js/app.ts"
}
}
examples/typescript-backbone/readme.md
View file @
063462dc
...
...
@@ -39,12 +39,10 @@ This application uses TypeScript classes to create Backbone.js models and views,
## Running
A standalone TypeScript compiler is available on NPM
.
To compile the TypeScript in this project, install the dependencies and run the
`compile`
script
.
npm install -g typescript
To compile the TypeScript in this project:
# from examples/typescript-backbone
tsc js/app.ts
open index.html
```
# from examples/typescript-backbone
$ npm run compile
$ open index.html
```
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