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
let nextTodoId = 0 | |
export const addTodo = (text) => { | |
return { | |
type: 'ADD_TODO', | |
id: nextTodoId++, | |
text | |
} | |
} | |
export const setVisibilityFilter = (filter) => { |
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
Verifying that +vadorequest is my blockchain ID. https://onename.com/vadorequest |
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
angular.module('app').service 'ClientService', ( | |
$templateCache | |
Config | |
) -> | |
# Returns the class that must be applied to the body in order to enable the client's stylesheets. | |
# If no client then returns empty string. | |
@getClientClass = -> | |
return 'client-' + Config.client if Config.client.length | |
return '' |
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
angular.module('app').config ($stateProvider, $urlRouterProvider) -> | |
$urlRouterProvider.when '/', '/users' | |
_checkSession = ngInject (SessionService, $q) -> | |
defer = $q.defer() | |
unless SessionService.isValid() | |
defer.reject('not logged') | |
else defer.resolve() | |
return defer.promise |
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
/** | |
* Compiles LESS files into CSS. | |
* | |
* --------------------------------------------------------------- | |
* | |
* Only the `assets/styles/importer.less` is compiled. | |
* This allows you to control the ordering yourself, i.e. import your | |
* dependencies, mixins, variables, resets, etc. before other stylesheets) | |
* | |
* For usage docs see: |
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
/** | |
* Run predefined tasks whenever watched file patterns are added, changed or deleted. | |
* | |
* --------------------------------------------------------------- | |
* | |
* Watch for changes on | |
* - files in the `assets` folder | |
* - the `tasks/pipeline.js` file | |
* and re-run the appropriate tasks. | |
* |
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
/** | |
* Compile les fichiers TypeScript (ts) en JS. | |
* Les recompile au même endroit que les fichiers TS. | |
* | |
* @see https://github.com/TypeStrong/grunt-ts | |
*/ | |
module.exports = function(grunt) { | |
grunt.config.set('ts', { | |
serverCommonJs: { | |
files: [ |
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
/** | |
* Run predefined tasks whenever watched file patterns are added, changed or deleted. | |
* | |
* --------------------------------------------------------------- | |
* | |
* Watch for changes on | |
* - files in the `assets` folder | |
* - the `tasks/pipeline.js` file | |
* and re-run the appropriate tasks. | |
* |
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
/** | |
* Synchronisation entre les fichiers sources et les fichiers générés avec raffraichissement auto du navigateur. | |
* Aide intégrée: http://localhost:3001/ (quand le serveur est lancé) | |
* | |
* @see http://www.browsersync.io/docs/ | |
*/ | |
module.exports = function(grunt) { | |
grunt.config.set('browserSync', { | |
bsFiles: { | |
src : [ |
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
######################## | |
# node.js / npm | |
######################## | |
lib-cov | |
*.seed | |
*.csv | |
*.dat | |
*.out | |
*.pid | |
*.gz |