commit b3d57f0c05f44cc9403a747fed0079bfb47554fc Author: Russell Champoux Date: Fri Jan 23 16:08:45 2015 -0500 first commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..85de0c0 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Grimoire diff --git a/app.js b/app.js new file mode 100644 index 0000000..394ce05 --- /dev/null +++ b/app.js @@ -0,0 +1,19 @@ +(function (angular) { + 'use strict'; + + var app = angular.module('grimoire', [ + 'ngRoute', + 'grimoire.controller', + ]); + + app.config(['$routeProvider', function($routeProvider) { + $routeProvider.when('/grimoire', { + templateUrl: 'grimoire.html', + controller: 'grimoireController', + controllerAs: 'grimoire', + }).otherwise({ + redirectTo: '/grimoire' + }); + }]); + +}(window.angular)); \ No newline at end of file diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..fd9bc52 --- /dev/null +++ b/bower.json @@ -0,0 +1,28 @@ +{ + "name": "Grimoire", + "version": "0.0.0", + "authors": [ + "RussellChamp@gmail.com" + ], + "description": "Grimoire item generator for the Pathfinder tabletop RPG", + "keywords": [ + "pathfinder" + ], + "license": "MIT", + "homepage": "tilde.town/~krowbar/Grimoire", + "private": true, + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ], + "dependencies": { + "angularjs": "~1.3.10", + "angular-bootstrap": "~0.12.0", + "bootstrap": "~3.3.2", + "lodash": "~3.0.0", + "angular-route": "~1.3.10" + } +} diff --git a/grimoire-controller.js b/grimoire-controller.js new file mode 100644 index 0000000..28e308e --- /dev/null +++ b/grimoire-controller.js @@ -0,0 +1,16 @@ +(function (angular) { + 'use strict'; + + angular.module('grimoire.controller', ['ui.bootstrap']); + + function GrimoireController() { + /*jshint validthis: true */ + this.welcome = 'Welcome to the Grimoire App!'; + console.log("LOADED CONTROLLER"); + } + + angular + .module('grimoire.controller') + .controller('GrimoireController', [GrimoireController]); + +}(window.angular)); \ No newline at end of file diff --git a/grimoire.css b/grimoire.css new file mode 100644 index 0000000..7d0d6a7 --- /dev/null +++ b/grimoire.css @@ -0,0 +1,3 @@ +.body { + ; +}; \ No newline at end of file diff --git a/grimoire.html b/grimoire.html new file mode 100644 index 0000000..bccfdce --- /dev/null +++ b/grimoire.html @@ -0,0 +1 @@ +
{{grimoire.welcome}}
{{welcome}} \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..9bbd4f1 --- /dev/null +++ b/index.html @@ -0,0 +1,44 @@ + + + +Grimoire App + + + + + + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file