Skip to content

Commit

Permalink
Primeiro commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mlpassos committed Sep 29, 2016
1 parent f08efde commit 213b8bd
Show file tree
Hide file tree
Showing 33 changed files with 283 additions and 6 deletions.
7 changes: 7 additions & 0 deletions app/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ const Router = Ember.Router.extend({
});

Router.map(function() {
this.route('home');
this.route('noticias');
this.route('tags');
this.route('contato');
this.route('sobre');
this.route('downloads');
this.route('search');
});

export default Router;
4 changes: 4 additions & 0 deletions app/routes/contato.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Ember from 'ember';

export default Ember.Route.extend({
});
4 changes: 4 additions & 0 deletions app/routes/downloads.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Ember from 'ember';

export default Ember.Route.extend({
});
13 changes: 13 additions & 0 deletions app/routes/home.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Ember from 'ember';

let props = {
title: 'Home',
subtitle: 'Bem-vindo ao aplicativo da SECOM',
content: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Necessitatibus, quibusdam rem eveniet dolores, repellendus sint eligendi earum. Impedit saepe quasi dicta? Accusamus dolore iusto, possimus! In modi amet, maiores eos!'
};

export default Ember.Route.extend({
model() {
return props;
}
});
8 changes: 8 additions & 0 deletions app/routes/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import Ember from 'ember';

export default Ember.Route.extend({
beforeModel() {
this._super(...arguments);
this.replaceWith('home');
}
});
13 changes: 13 additions & 0 deletions app/routes/noticias.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Ember from 'ember';

let props = {
title: 'Notícias',
subtitle: 'Bem-vindo a área de notícias do aplicativo da SECOM',
content: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Necessitatibus, quibusdam rem eveniet dolores, repellendus sint eligendi earum. Impedit saepe quasi dicta? Accusamus dolore iusto, possimus! In modi amet, maiores eos!'
};

export default Ember.Route.extend({
model() {
return props;
}
});
4 changes: 4 additions & 0 deletions app/routes/search.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Ember from 'ember';

export default Ember.Route.extend({
});
4 changes: 4 additions & 0 deletions app/routes/sobre.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Ember from 'ember';

export default Ember.Route.extend({
});
4 changes: 4 additions & 0 deletions app/routes/tags.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Ember from 'ember';

export default Ember.Route.extend({
});
2 changes: 2 additions & 0 deletions app/styles/app.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import 'materialize';
@import 'ember-cli-materialize';
10 changes: 10 additions & 0 deletions app/templates/application.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{partial 'navbar'}}

<div class="section index-banner">
{{outlet}}
</div>

{{partial 'footer'}}

{{!-- ember-cli-materialize modal container --}}
{{md-modal-container}}
1 change: 1 addition & 0 deletions app/templates/contato.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{outlet}}
1 change: 1 addition & 0 deletions app/templates/downloads.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{outlet}}
19 changes: 19 additions & 0 deletions app/templates/footer.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<footer class='page-footer light-blue white-text'>
{{!-- <div class="container">
<div class="row">
<div class="col m6 s12">
<h5>Left</h5>
</div>
<div class="col m6 s12">
<h5>Right</h5>
</div>
</div>
</div> --}}
{{#md-copyright text='Secretaria de Comunicação do Estado do Pará @ SECOM'
startYear=2016
class='light-blue darken-2 white-text'}}
<a class="white-text right" href="#!">
More Links
</a>
{{/md-copyright}}
</footer>
35 changes: 35 additions & 0 deletions app/templates/home.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<div class="container">
<div class="row">
<div class="col s12 m12">
<h1 class="header">{{model.title}}</h1>
<h4 class="header">{{model.subtitle}}</h4>
{{model.content}}
</div>
</div>
</div>

{{!-- <div class='container'>
<div class="section">
<div class="intro">
<h4 class="col s12 header">{{model.subtitle}}</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
</div>
<div class="section">
<h4 class="col s12 header">Navbar with mobile collapse button</h4>
<div class="intro">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
</div>
</div> --}}
{{outlet}}
9 changes: 9 additions & 0 deletions app/templates/index.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
To no index
<br>
<!-- A colored button with an icon -->
{{md-btn text='Button'
icon='mdi-action-favorite'
action='debug'
class='deep-purple darken-3'}}

{{outlet}}
25 changes: 25 additions & 0 deletions app/templates/navbar.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{{#md-navbar name='SECOM.APP' class='indigo' homeRoute='home'}}
<!-- A workaround to get the "active" class
to apply to the active <li> automatically -->
{{#link-to 'home' tagName='li'}}
{{link-to 'Home'}}
{{/link-to}}
{{#link-to 'noticias' tagName='li'}}
{{link-to 'Notícias'}}
{{/link-to}}
{{#link-to 'tags' tagName='li'}}
{{link-to 'Tags'}}
{{/link-to}}
{{#link-to 'downloads' tagName='li'}}
{{link-to 'Downloads'}}
{{/link-to}}
{{#link-to 'contato' tagName='li'}}
{{link-to 'Contato'}}
{{/link-to}}
{{#link-to 'sobre' tagName='li'}}
{{link-to 'Sobre'}}
{{/link-to}}
{{#link-to 'search' tagName='li'}}
<a href=""><i class="mdi-action-search"></i></a>
{{/link-to}}
{{/md-navbar}}
10 changes: 10 additions & 0 deletions app/templates/noticias.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<div class="container">
<div class="row">
<div class="col s12 m12">
<h1 class="header">{{model.title}}</h1>
<h4 class="header">{{model.subtitle}}</h4>
{{model.content}}
</div>
</div>
</div>
{{outlet}}
1 change: 1 addition & 0 deletions app/templates/search.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{outlet}}
1 change: 1 addition & 0 deletions app/templates/sobre.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{outlet}}
1 change: 1 addition & 0 deletions app/templates/tags.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{outlet}}
7 changes: 4 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "embeter-materialize",
"dependencies": {
"ember": "~2.7.0",
"ember-cli-shims": "0.1.1",
"ember-qunit-notifications": "0.1.0"
"ember": "~2.3.0",
"ember-cli-shims": "0.1.0",
"ember-qunit-notifications": "0.1.0",
"materialize": "~0.97.0"
}
}
3 changes: 2 additions & 1 deletion config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = function(environment) {
APP: {
// Here you can pass flags/options to your application instance
// when it is created
}
}
};

if (environment === 'development') {
Expand All @@ -29,6 +29,7 @@ module.exports = function(environment) {

if (environment === 'test') {
// Testem prefers this...
ENV.baseURL = '/';
ENV.locationType = 'none';

// keep test console output quieter
Expand Down
5 changes: 4 additions & 1 deletion ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ var EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
// Add options here
sassOptions: {
includePaths: ['bower_components/materialize/sass']
}
});

// Use `app.import` to add additional libraries to the generated
Expand All @@ -21,4 +24,4 @@ module.exports = function(defaults) {
// along with the exports of each module as its value.

return app.toTree();
};
};
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,22 @@
"ember-cli-htmlbars-inline-precompile": "^0.3.1",
"ember-cli-inject-live-reload": "^1.4.0",
"ember-cli-jshint": "^1.0.0",
"ember-cli-materialize": "git://github.com/robbyoconnor/ember-cli-materialize.git#9876e8d6366a4c750752d89d75b471be58c48140",
"ember-cli-qunit": "^2.0.0",
"ember-cli-release": "^0.2.9",
"ember-cli-sass": "^5.5.2",
"ember-cli-sri": "^2.1.0",
"ember-cli-test-loader": "^1.1.0",
"ember-cli-uglify": "^1.2.0",
"ember-data": "^2.7.0",
"ember-composability": "^0.1.3",
"ember-data": "^2.3.0",
"ember-export-application-global": "^1.0.5",
"ember-key-responder": "^0.4.2",
"ember-legacy-views": "^0.2.0",
"ember-load-initializers": "^0.5.1",
"ember-modal-dialog": "^0.8.8",
"ember-new-computed": "^1.0.3",
"ember-radio-button": "^1.0.7",
"ember-resolver": "^2.0.3",
"ember-welcome-page": "^1.0.1",
"loader.js": "^4.0.1"
Expand Down
11 changes: 11 additions & 0 deletions tests/unit/routes/contato-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { moduleFor, test } from 'ember-qunit';

moduleFor('route:contato', 'Unit | Route | contato', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});

test('it exists', function(assert) {
let route = this.subject();
assert.ok(route);
});
11 changes: 11 additions & 0 deletions tests/unit/routes/downloads-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { moduleFor, test } from 'ember-qunit';

moduleFor('route:downloads', 'Unit | Route | downloads', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});

test('it exists', function(assert) {
let route = this.subject();
assert.ok(route);
});
11 changes: 11 additions & 0 deletions tests/unit/routes/home-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { moduleFor, test } from 'ember-qunit';

moduleFor('route:home', 'Unit | Route | home', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});

test('it exists', function(assert) {
let route = this.subject();
assert.ok(route);
});
11 changes: 11 additions & 0 deletions tests/unit/routes/index-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { moduleFor, test } from 'ember-qunit';

moduleFor('route:index', 'Unit | Route | index', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});

test('it exists', function(assert) {
let route = this.subject();
assert.ok(route);
});
11 changes: 11 additions & 0 deletions tests/unit/routes/noticias-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { moduleFor, test } from 'ember-qunit';

moduleFor('route:noticias', 'Unit | Route | noticias', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});

test('it exists', function(assert) {
let route = this.subject();
assert.ok(route);
});
11 changes: 11 additions & 0 deletions tests/unit/routes/search-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { moduleFor, test } from 'ember-qunit';

moduleFor('route:search', 'Unit | Route | search', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});

test('it exists', function(assert) {
let route = this.subject();
assert.ok(route);
});
11 changes: 11 additions & 0 deletions tests/unit/routes/sobre-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { moduleFor, test } from 'ember-qunit';

moduleFor('route:sobre', 'Unit | Route | sobre', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});

test('it exists', function(assert) {
let route = this.subject();
assert.ok(route);
});
11 changes: 11 additions & 0 deletions tests/unit/routes/tags-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { moduleFor, test } from 'ember-qunit';

moduleFor('route:tags', 'Unit | Route | tags', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});

test('it exists', function(assert) {
let route = this.subject();
assert.ok(route);
});

0 comments on commit 213b8bd

Please sign in to comment.