Fix all res/ files with ESLint rules with 0 errors.

This commit is contained in:
Gunther Brunner
2016-01-19 23:08:33 +09:00
parent 1006564ae7
commit a3f815c118
258 changed files with 1634 additions and 1634 deletions

View File

@@ -1,4 +1,4 @@
require.ensure([], function (require) {
require.ensure([], function(require) {
require('nine-bootstrap')
require('angular')
@@ -11,7 +11,7 @@ require.ensure([], function (require) {
require('gettext').name,
require('./signin').name
])
.config(function ($routeProvider, $locationProvider) {
.config(function($routeProvider, $locationProvider) {
$locationProvider.html5Mode(true)
$routeProvider
.otherwise({

View File

@@ -1,7 +1,7 @@
require('./signin.css')
module.exports = angular.module('stf.signin', [])
.config(function ($routeProvider) {
.config(function($routeProvider) {
$routeProvider
.when('/auth/mock/', {
template: require('./signin.jade')

View File

@@ -2,18 +2,18 @@ module.exports = function SignInCtrl($scope, $http) {
$scope.error = null
$scope.submit = function () {
$scope.submit = function() {
var data = {
name: $scope.signin.username.$modelValue
, email: $scope.signin.email.$modelValue
}
$scope.invalid = false
$http.post('/auth/api/v1/mock', data)
.success(function (response) {
.success(function(response) {
$scope.error = null
location.replace(response.redirect)
})
.error(function (response) {
.error(function(response) {
switch (response.error) {
case 'ValidationError':
$scope.error = {