Skip to content

Commit

Permalink
added js files and fixed tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniespratley committed Dec 17, 2014
1 parent d83db4a commit 1dec6d6
Show file tree
Hide file tree
Showing 169 changed files with 2,559 additions and 2,810 deletions.
16 changes: 8 additions & 8 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ module.exports = function (grunt) {
base: ['.tmp', '<%= yeoman.app %>'],
middleware: function (connect, options) {
return [
require('json-proxy').initialize(proxyConfig),
mountFolder(connect, '.grunt'),
mountFolder(connect, '.tmp'),
require('json-proxy').initialize(proxyConfig),
mountFolder(connect, '.grunt'),
mountFolder(connect, '.tmp'),
mountFolder(connect, 'app')
];
}
Expand Down Expand Up @@ -495,7 +495,7 @@ module.exports = function (grunt) {
coffee: true,
match: '.',
matchall: true,
extensions: '.coffee',
extensions: '.js',
specNameMatcher: 'Spec', // load only specs containing specNameMatcher
projectRoot: '.',
requirejs: false,
Expand Down Expand Up @@ -524,7 +524,7 @@ module.exports = function (grunt) {
},
api: {
src: [
'.tmp/scripts/**/*.js',
'<%= yeoman.app %>/scripts/**/*.js',
'!.tmp/spec/**/*.js'
],
title: 'API'
Expand Down Expand Up @@ -559,7 +559,7 @@ module.exports = function (grunt) {
/* ======================[ @TODO: Bower Install ]====================== */
'bower-install': {
app: {
src: ['app/index.html'],
src: ['<%= yeoman.app %>/index.html'],
cwd: '',
ignorePath: '',
exclude: [],
Expand Down Expand Up @@ -605,8 +605,8 @@ module.exports = function (grunt) {
options: {
reporter: 'spec',
//captureFile: 'results.txt', // Optionally capture the reporter output to a file
quiet: false, // Optionally suppress output to standard out (defaults to false)
clearRequireCache: false // Optionally clear the require cache before running tests (defaults to false)
quiet: false,
clearRequireCache: false
},
src: [
'test/routes/*-spec.js'
Expand Down
Binary file modified app/.DS_Store
Binary file not shown.
100 changes: 0 additions & 100 deletions app/scripts/app.coffee

This file was deleted.

95 changes: 95 additions & 0 deletions app/scripts/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
'use strict';

/**
* @ngdoc directive
* @name rfx.directive:rAutogrow
* @element textarea
* @function
*
* @description
* Resize textarea automatically to the size of its text content.
*
* @example
<example module="rfx">
<file name="index.html">
<textarea ng-model="text" r-autogrow class="input-block-level"></textarea>
<pre>{{text}}</pre>
</file>
</example>
*/
var app;

Parse.initialize("fYHs4Flnj7vgVHm9vaFiFTSKt5Mj2Bxf9e93mTOB", "QPFGBNHs0QQHFS54atV71oKppd3gTgaFfQIHP2VW");

app = angular.module('angularCmsApp', ['ngCookies', 'ngResource', 'ngSanitize', 'ngRoute', 'ngAnimate', 'mgcrea.ngStrap', 'fg']).config(function($routeProvider) {
var routeResolver;
routeResolver = {
delay: function($q, $timeout) {
var delay;
delay = $q.defer();
$timeout(delay.resolve, 1000);
return delay.promise;
}
};
return $routeProvider.when('/', {
templateUrl: 'views/main.html',
controller: 'MainCtrl'
}).when('/docs', {
templateUrl: 'views/docs.html',
controller: 'DocsCtrl'
}).when('/admin', {
templateUrl: 'views/admin.html',
controller: 'AdminCtrl'
}).when('/plugins', {
templateUrl: 'views/plugins.html',
controller: 'PluginsCtrl'
}).when('/themes', {
templateUrl: 'views/themes.html',
controller: 'ThemesCtrl'
}).when('/widgets', {
templateUrl: 'views/widgets.html',
controller: 'WidgetsCtrl'
}).when('/media', {
templateUrl: 'views/media.html',
controller: 'MediaCtrl'
}).when('/settings', {
templateUrl: 'views/settings.html',
controller: 'SettingsCtrl'
}).when('/users', {
templateUrl: 'views/users.html',
controller: 'UsersCtrl'
}).when('/login', {
templateUrl: 'views/login.html',
controller: 'LoginCtrl'
}).when('/register', {
templateUrl: 'views/register.html',
controller: 'RegisterCtrl'
}).when('/dashboard', {
templateUrl: 'views/dashboard.html',
controller: 'DashboardCtrl'
}).when('/profile', {
templateUrl: 'views/profile.html',
controller: 'ProfileCtrl'
}).when('/pages', {
templateUrl: 'views/pages.html',
controller: 'PagesCtrl',
resolve: {
pages: function(DataService) {
return DataService.fetch('pages').then(function(res) {
return res.data;
});
}
}
}).when('/help', {
templateUrl: 'views/help.html',
controller: 'HelpCtrl'
}).when('/forgot-password', {
templateUrl: 'views/forgot-password.html',
controller: 'ForgotPasswordCtrl'
}).when('/register', {
templateUrl: 'views/register.html',
controller: 'RegisterCtrl'
}).otherwise({
redirectTo: '/'
});
});
Loading

0 comments on commit 1dec6d6

Please sign in to comment.