Runs a connect web server, serving files from /client on port 3000.
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
| // Usage: | |
| // OfflineListener.init(true); | |
| define(['angular', 'core'], function(angular){ | |
| // Some concepts from: https://github.com/HubSpot/offline | |
| var module = angular.module('utils.offline', []); | |
| module.service('OfflineListener', function ($rootScope, $window, $alert) { | |
| var offlineAlert; |
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 angular from 'angular'; | |
| import { StyleSheet, css } from 'aphrodite'; | |
| import '../style/app.css'; | |
| const styles = StyleSheet.create({ | |
| red: { | |
| backgroundColor: 'red' | |
| }, |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script data-require="[email protected]" data-semver="1.2.4" src="http://code.angularjs.org/1.2.4/angular.js"></script> | |
| <link rel="stylesheet" href="style.css" /> | |
| <script src="script.js"></script> | |
| </head> | |
| <body ng-app="myApp"> |
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
| app.factory('fotosRest', function (ENV, $timeout, $cordovaFileTransfer, $q, $http, session) { | |
| var _makeid = function () { | |
| var text = ""; | |
| var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; | |
| for (var i = 0; i < 5; i++) | |
| text += possible.charAt(Math.floor(Math.random() * possible.length)); | |
| return text; |
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 _ from 'lodash'; | |
| export default function decorating(AnalyticsProvider, $provide) { | |
| 'use strict'; | |
| AnalyticsProvider.setAccount('UA-64741631-1'); | |
| $provide.decorator('$q', function($delegate) { | |
| var defer = $delegate.defer; | |
| $delegate.defer = function() { | |
| var deferred = defer(); |
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
| /** | |
| * Track JS error details in Universal Analytics | |
| */ | |
| function trackJavaScriptError(e) { | |
| var ie = window.event || {}, | |
| errMsg = e.message || ie.errorMessage; | |
| var errSrc = (e.filename || ie.errorUrl) + ': ' + (e.lineno || ie.errorLine); | |
| ga('send', 'exception', { | |
| 'exDescription': errSrc + ': ' + errMsg, |
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
| 'use strict'; | |
| var crudService = angular.module('crud.service', ['app.config', 'ngResource']); | |
| crudService.factory('CrudService', function(ENV, $resource, $schemaFormWrapper) { | |
| return $resource( | |
| ENV.apiEndpoint + '/senha/:crud/:entity/:param', { | |
| crud: '@crud', | |
| entity: '@entity', |
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
| { | |
| "type": "object", | |
| "title": "Comment", | |
| "properties": { | |
| "name": { | |
| "type": "object", | |
| "x-schema-form":{ | |
| "type": "template", | |
| "template": "<h1 ng-click=\"form.foo(form.name)\">Yo {{form.name}}!</h1>", | |
| "name": "Ninja", |
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
| // custom directive to fade in the header bar after scrolling | |
| (function() { | |
| 'use strict'; | |
| angular | |
| .module('dbaq.ionCoverHeader', []) | |
| .directive('ionCoverHeader', ['$document', '$timeout', '$ionicScrollDelegate', function($document, $timeout, $ionicScrollDelegate) { | |
| /** |