Skip to content

Commit

Permalink
Merge branch 'theme' into theme-ecomm
Browse files Browse the repository at this point in the history
  • Loading branch information
Jed Mao committed Apr 4, 2014
2 parents ba25a80 + 5b0f0fb commit bd9b183
Show file tree
Hide file tree
Showing 9 changed files with 282 additions and 278 deletions.
3 changes: 2 additions & 1 deletion app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ angular.module('volusionApp')
$stateProvider,
$urlRouterProvider,
$locationProvider,
$injector,
apiProvider,
translateProvider,
config) {
Expand Down Expand Up @@ -48,7 +49,7 @@ angular.module('volusionApp')
$state.go('i18n.home', translateOptions, { location: 'replace' });
}]);

$urlRouterProvider.otherwise(function($injector) {
$urlRouterProvider.otherwise(function() {
var $window = $injector.get('$window');
$window.location.replace('/404.html');
});
Expand Down
4 changes: 1 addition & 3 deletions app/scripts/services/api-endpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@
* @param {string} baseRoute The server api's base route.
* @param {app.ApiEndpointConfig} endpointConfig Configuration object for the
* endpoint.
* @param {!Object} $injector The angular $injector service.
* @param {!Function} $resource The angular $resource service.
*/
var ApiEndpoint = function(baseRoute, endpointConfig, $injector, $resource) {
var ApiEndpoint = function(baseRoute, endpointConfig, $resource) {
this.config = endpointConfig;
this.$injector = $injector;
this.resource = $resource(baseRoute + endpointConfig.route, {},
endpointConfig.actions);

Expand Down
9 changes: 3 additions & 6 deletions app/scripts/services/api-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,14 @@ ApiProvider.prototype.endpoint = function(name) {

// Method for instantiating
ApiProvider.prototype.$get = [
'$injector',
'$resource',
function(
$injector) {
$resource) {
var api = {};

var self = this;
angular.forEach(self.endpoints, function(endpointConfig, name) {
api[name] = $injector.instantiate(ApiEndpoint, {
baseRoute: self.baseRoute,
endpointConfig: endpointConfig
});
api[name] = new ApiEndpoint(self.baseRoute, endpointConfig, $resource);
});

return api;
Expand Down
4 changes: 3 additions & 1 deletion app/views/about.html
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
<p>This is the about view.</p>
<section class="container">
<p>This is the about view.</p>
</section>
4 changes: 3 additions & 1 deletion app/views/contact.html
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
<p>This is the contact view.</p>
<section class="container">
<p>This is the contact view.</p>
</section>
4 changes: 3 additions & 1 deletion app/views/home.html
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
<p>This is the home view.</p>
<section class="container">
<p>This is the home view.</p>
</section>
2 changes: 1 addition & 1 deletion app/views/i18n.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<div class="container" data-ui-view=""></div>
<div data-ui-view=""></div>
528 changes: 265 additions & 263 deletions app/views/style-guide.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion config/env/prod.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"config": {
"API_URL": "/api/v1"
"API_URL": "http://volusion.apiary.io"
}
}

0 comments on commit bd9b183

Please sign in to comment.