-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
82 changed files
with
15,053 additions
and
14,740 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
97 changes: 97 additions & 0 deletions
97
examples/emberjs/assets/todomvc-43b6e3250bad06f4f6525c3f76cdccb4.js
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
3,534 changes: 3,534 additions & 0 deletions
3,534
examples/emberjs/assets/vendor-140a551a2eaeeade2a766e8a028544c0.js
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
examples/emberjs/assets/vendor-3fc42c724882a4e06060d5610a02581a.css
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<title>TodoMVC</title> | ||
<meta name="description" content=""> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
|
||
<meta name="todomvc/config/environment" content="%7B%22modulePrefix%22%3A%22todomvc%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2Fexamples%2Femberjs-octane%2F%22%2C%22locationType%22%3A%22auto%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3Afalse%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_DEFAULT_ASYNC_OBSERVERS%22%3Atrue%2C%22_JQUERY_INTEGRATION%22%3Afalse%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22name%22%3A%22todomvc%22%2C%22version%22%3A%220.0.0%2Ba6780c37%22%7D%2C%22exportApplicationGlobal%22%3Afalse%7D" /> | ||
|
||
<link integrity="" rel="stylesheet" href="/examples/emberjs-octane/assets/vendor-3fc42c724882a4e06060d5610a02581a.css"> | ||
<link integrity="" rel="stylesheet" href="/examples/emberjs-octane/assets/todomvc-d41d8cd98f00b204e9800998ecf8427e.css"> | ||
|
||
|
||
</head> | ||
<body> | ||
|
||
|
||
<script src="/examples/emberjs-octane/assets/vendor-140a551a2eaeeade2a766e8a028544c0.js"></script> | ||
<script src="/examples/emberjs-octane/assets/todomvc-43b6e3250bad06f4f6525c3f76cdccb4.js"></script> | ||
|
||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
( cd todomvc && yarn build:prod ) \ | ||
&& rm -rf assets index.html \ | ||
&& ln -s todomvc/dist/assets assets \ | ||
&& ln -s todomvc/dist/index.html index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
extends: 'recommended' | ||
extends: 'octane' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# todomvc | ||
|
||
This README outlines the details of collaborating on this Ember application. | ||
A short introduction of this app could easily go here. | ||
|
||
## Prerequisites | ||
|
||
You will need the following things properly installed on your computer. | ||
|
||
* [Git](https://git-scm.com/) | ||
* [Node.js](https://nodejs.org/) | ||
* [Yarn](https://yarnpkg.com/) | ||
* [Ember CLI](https://ember-cli.com/) | ||
* [Google Chrome](https://google.com/chrome/) | ||
|
||
## Installation | ||
|
||
* `git clone <repository-url>` this repository | ||
* `cd todomvc` | ||
* `yarn install` | ||
|
||
## Running / Development | ||
|
||
* `ember serve` | ||
* Visit your app at [http://localhost:4200](http://localhost:4200). | ||
* Visit your tests at [http://localhost:4200/tests](http://localhost:4200/tests). | ||
|
||
### Code Generators | ||
|
||
Make use of the many generators for code, try `ember help generate` for more details | ||
|
||
### Running Tests | ||
|
||
* `ember test` | ||
* `ember test --server` | ||
|
||
### Linting | ||
|
||
* `yarn lint:hbs` | ||
* `yarn lint:js` | ||
* `yarn lint:js --fix` | ||
|
||
### Building | ||
|
||
* `ember build` (development) | ||
* `ember build --environment production` (production) | ||
|
||
### Deploying | ||
|
||
Specify what it takes to deploy your app. | ||
|
||
## Further Reading / Useful Links | ||
|
||
* [ember.js](https://emberjs.com/) | ||
* [ember-cli](https://ember-cli.com/) | ||
* Development Browser Extensions | ||
* [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi) | ||
* [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
import Application from '@ember/application'; | ||
import Resolver from './resolver'; | ||
import Resolver from 'ember-resolver'; | ||
import loadInitializers from 'ember-load-initializers'; | ||
import config from './config/environment'; | ||
|
||
const App = Application.extend({ | ||
modulePrefix: config.modulePrefix, | ||
podModulePrefix: config.podModulePrefix, | ||
Resolver | ||
}); | ||
export default class App extends Application { | ||
modulePrefix = config.modulePrefix; | ||
podModulePrefix = config.podModulePrefix; | ||
Resolver = Resolver; | ||
} | ||
|
||
loadInitializers(App, config.modulePrefix); | ||
|
||
export default App; |
9 changes: 9 additions & 0 deletions
9
examples/emberjs/todomvc/app/components/author-attribution.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<ExternalLink href='https://github.com/{{@github}}'> | ||
{{@name}} | ||
</ExternalLink> | ||
{{#if @twitter}} | ||
- | ||
<ExternalLink href='https://twitter.com/{{@twitter}}'> | ||
@{{@twitter}} | ||
</ExternalLink> | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<a href='' target='_blank' rel='noopener noreferrer' ...attributes> | ||
{{yield}} | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<footer class='info'> | ||
<p>Double-click to edit a todo</p> | ||
<p> | ||
Created by | ||
<AuthorAttribution @name='Preston Sego' @github='NullVoxPopuli' @twitter='NullVoxPopuli' />, | ||
<AuthorAttribution @name='Miguel Camba' @github='cibernox' />, | ||
<AuthorAttribution @name='Addy Osmani' @github='addyosmani' @twitter='addyosmani' /> | ||
</p> | ||
<p>Part of <ExternalLink href='http://todomvc.com'>TodoMVC</ExternalLink></p> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<section class='todoapp'> | ||
|
||
<TodoApp::Header /> | ||
|
||
{{yield}} | ||
|
||
</section> |
27 changes: 27 additions & 0 deletions
27
examples/emberjs/todomvc/app/components/todo-app/footer.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{{#if this.todoData.all}} | ||
<footer class='footer'> | ||
|
||
<span class='todo-count'> | ||
<strong>{{this.remaining}}</strong> {{this.suffix}} left | ||
</span> | ||
|
||
<ul class='filters'> | ||
<li> | ||
<LinkTo @route='index' @activeClass='selected'>All</LinkTo> | ||
<LinkTo @route='active' @activeClass='selected'>Active</LinkTo> | ||
<LinkTo @route='completed' @activeClass='selected'>Completed</LinkTo> | ||
</li> | ||
</ul> | ||
|
||
{{#if this.completed}} | ||
<button | ||
type='button' | ||
class='clear-completed' | ||
{{on 'click' this.todoData.clearCompleted}} | ||
> | ||
Clear completed | ||
</button> | ||
{{/if}} | ||
|
||
</footer> | ||
{{/if}} |
Oops, something went wrong.