This file contains hidden or 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
#!/bin/bash | |
# $1 = staging, production or development | |
BUILDPATH=cordova/platforms/android/build/outputs/apk/ | |
echo -e '\033[01;32m >>>>>>>>>>>>>>>>>>>>>>>> ETAPA 1/4 > APLICANDO CONFIGURAÇÕES ANDROID AO PROJETO \033[00;37m' | |
sed -i '' 's/ios/material/g' ember-cli-build.js | |
echo -e '\033[01;32m >>>>>>>>>>>>>>>>>>>>>>>> ETAPA 2/4 > FAZENDO BUILD PARA ANDROID \033[00;37m' | |
ember cordova:build --environment=$1 --platform=android |
This file contains hidden or 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
#!/bin/bash | |
# param of enviroment: staging, production and development | |
# IMPORTANT: change __Project__ for your project name | |
echo -e '\033[01;32m >>>>>>>>>>>>>>>>>>>>>>>> ETAPA 1/3 > APLICANDO CONFIGURAÇÕES IOS AO PROJETO \033[00;37m' | |
sed -i '' 's/material/ios/g' ember-cli-build.js | |
echo -e '\033[01;32m >>>>>>>>>>>>>>>>>>>>>>>> ETAPA 2/3 > FAZENDO BUILD PARA IOS \033[00;37m' | |
ember cordova:build --environment=$1 --platform=ios |
This file contains hidden or 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
import Ember from 'ember'; | |
export function initialize(container) { | |
return Ember.run.schedule('afterRender', function () { | |
new Framework7(); | |
}); | |
} | |
export default { | |
name: 'framework7', |
This file contains hidden or 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
filterContacts(filter) { | |
var list = this.get('list'); | |
return list.filter(function (item) { | |
if(_match(item.name) || _match(item.professionalEmail) || _match(item.jobFunction) || _match(item.department) || _match(item.professionalPhone)) { | |
return true; | |
} else { | |
return false; | |
} | |
}); |
This file contains hidden or 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
import Ember from 'ember'; | |
export default Ember.Mixin.create({ | |
activate() { | |
this._super(); | |
Ember.run.next(() => { | |
$(".modal").modal('show'); | |
}); | |
}, |
This file contains hidden or 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
var Sails = require('sails'), | |
_ = require('lodash'); | |
global.DOMAIN = 'http://localhost'; | |
global.PORT = 1337; | |
global.HOST = DOMAIN + ':' + PORT; | |
before(function(callback) { | |
this.timeout(50000); |
This file contains hidden or 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
/** | |
* beforeCreate | |
* | |
* @module :: Policy | |
* @description :: Simple policy to inject the user creating a record into the records values. | |
* Assumes req.user && req.user.id to be set when a user is logged in. | |
* @docs :: http://sailsjs.org/#!documentation/policies | |
* | |
*/ |
This file contains hidden or 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
import Ember from 'ember'; | |
import AjaxService from 'ember-ajax/services/ajax'; | |
import environment from 'web/config/environment'; | |
export default AjaxService.extend({ | |
host: environment.apiBaseUrl, | |
session: Ember.inject.service(), | |
headers: Ember.computed('session.session.content.authenticated.token', { | |
get() { | |
let headers = {}; |
This file contains hidden or 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
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p |
This file contains hidden or 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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
didRender() { | |
Ember.$('.nav li a').on('click', function(clicked) { | |
if (!Ember.$(this).hasClass("dropdown-toggle")) { | |
Ember.$('.navbar-collapse').collapse('hide'); | |
} | |
}); | |
} |