This repository has been archived by the owner on Nov 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7634965
commit b450466
Showing
20 changed files
with
303 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,37 @@ | ||
# Ember-cli-ted-navs | ||
# Ember CLI TED Navs | ||
|
||
This README outlines the details of collaborating on this Ember addon. | ||
> This addon is prepared for internal use by TED and is open-sourced for educational purposes but will not be supported for shared community use. | ||
This addon adds several TED-themed navigation components to your app. | ||
|
||
## Installation | ||
|
||
* `git clone` this repository | ||
* `npm install` | ||
* `bower install` | ||
This addon relies on TED Bootstrap, so first ensure that [Ember CLI TED Bootstrap](https://github.com/tedconf/ember-cli-ted-bootstrap) is installed. | ||
|
||
Then, install using | ||
|
||
```sh | ||
ember install ember-ted-navs | ||
``` | ||
|
||
## Components | ||
|
||
## Running | ||
### ted-navbar | ||
|
||
* `ember server` | ||
* Visit your app at http://localhost:4200. | ||
Blockless form: | ||
|
||
## Running Tests | ||
```hbs | ||
{{ted-navbar name='My App'}} | ||
``` | ||
|
||
* `npm test` (Runs `ember try:testall` to test your addon against multiple Ember versions) | ||
* `ember test` | ||
* `ember test --server` | ||
`<ted-navbar>` accepts an optional block, so you can add additional Bootstrap elements to the navbar: | ||
|
||
## Building | ||
```hbs | ||
{{#ted-navbar name='My App'}} | ||
{{/ted-navbar}} | ||
``` | ||
|
||
* `ember build` | ||
### ted-nav | ||
|
||
For more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/). | ||
### ted-subnav |
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 +1 @@ | ||
export { default } from 'ember-cli-ted-navs/components/ted-nav-item'; | ||
export { default } from 'ember-ted-navs/components/ted-nav-item'; |
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 +1 @@ | ||
export { default } from 'ember-cli-ted-navs/components/ted-nav'; | ||
export { default } from 'ember-ted-navs/components/ted-nav'; |
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 +1 @@ | ||
export { default } from 'ember-cli-ted-navs/components/ted-navbar'; | ||
export { default } from 'ember-ted-navs/components/ted-navbar'; |
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 +1 @@ | ||
export { default } from 'ember-cli-ted-navs/components/ted-subnav-item'; | ||
export { default } from 'ember-ted-navs/components/ted-subnav-item'; |
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 +1 @@ | ||
export { default } from 'ember-cli-ted-navs/components/ted-subnav'; | ||
export { default } from 'ember-ted-navs/components/ted-subnav'; |
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 +1 @@ | ||
export { default } from 'ember-cli-ted-navs/services/ted-subnav-state'; | ||
export { default } from 'ember-ted-navs/services/ted-subnav-state'; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
'use strict'; | ||
|
||
module.exports = { | ||
name: 'ember-cli-ted-navs' | ||
name: 'ember-ted-navs' | ||
}; |
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,9 @@ | ||
import Ember from 'ember'; | ||
|
||
export default Ember.Controller.extend({ | ||
actions: { | ||
conferencesAction() { | ||
alert('Action from conferences controller'); | ||
} | ||
} | ||
}); |
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 +1,73 @@ | ||
@import 'ember-cli-ted-navs/styles'; | ||
@import 'ember-ted-docs/styles'; | ||
@import 'ember-ted-navs/styles'; | ||
|
||
h2 { | ||
margin-top: 50px; | ||
} | ||
|
||
section { | ||
margin-bottom: 50px; | ||
} | ||
|
||
.wider-container { | ||
@media (min-width: 768px) { | ||
width: 780px; | ||
} | ||
@media (min-width: 992px) { | ||
width: 1000px; | ||
} | ||
@media (min-width: 1200px) { | ||
width: 1200px; | ||
} | ||
} | ||
|
||
.Demo { | ||
box-shadow: 0 27px 24px 0 rgba(0,0,0,0.2),0 40px 77px 0 rgba(0,0,0,0.22); | ||
overflow: hidden; | ||
height: 600px; | ||
margin-left: -15px; | ||
margin-right: -15px; | ||
margin-top: 30px; | ||
margin-bottom: 70px; | ||
} | ||
|
||
.UI-Element { | ||
margin-bottom: 30px; | ||
|
||
&__example-view { | ||
padding: 50px 10px 30px; | ||
position: relative; | ||
border: 1px solid #ddd; | ||
border-top-right-radius: 3px; | ||
border-top-left-radius: 3px; | ||
} | ||
|
||
&__example-label { | ||
font-size: 10px; | ||
font-weight: bold; | ||
color: #666; | ||
text-transform: uppercase; | ||
position: absolute; | ||
top: 0px; | ||
left: 0px; | ||
padding: 5px; | ||
background: #eee; | ||
border-bottom-right-radius: 4px; | ||
} | ||
|
||
&__example-use { | ||
background-color: rgb(250,250,250); | ||
border: 1px solid #ddd; | ||
border-bottom-left-radius: 3px; | ||
border-bottom-right-radius: 3px; | ||
|
||
& .hljs { | ||
background: transparent; | ||
border: none; | ||
} | ||
} | ||
} | ||
|
||
.u-margin-top { | ||
margin-top: 15px; | ||
} |
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
Oops, something went wrong.