Skip to content

Commit

Permalink
Assets urls made relative
Browse files Browse the repository at this point in the history
  • Loading branch information
PGBI committed Nov 16, 2015
1 parent 736b671 commit 734dac2
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Kong Dashboard</title>
<link rel="stylesheet" href="/css/app.min.css" >
<link rel="stylesheet" href="css/app.min.css" >
</head>
<body>
<app-route-loading-indicator></app-route-loading-indicator>
Expand Down Expand Up @@ -91,6 +91,6 @@
</div>
</footer>

<script src="/js/app.min.js"></script>
<script src="js/app.min.js"></script>
</body>
</html>
26 changes: 13 additions & 13 deletions src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ var app = angular.module('app', ['ngRoute', 'ngCookies', 'ngAnimate', 'ngSanitiz

$routeProvider
.when('/', {
templateUrl: '/html/home.html',
templateUrl: 'html/home.html',
resolve: {
isAppReady: isAppReady
}
})
.when('/config', {
templateUrl: '/html/config.html',
templateUrl: 'html/config.html',
controller: 'ConfigController'
})
.when('/apis', {
templateUrl: '/html/apis/index.html',
templateUrl: 'html/apis/index.html',
controller: 'ApisController',
resolve: {
isAppReady: isAppReady,
Expand All @@ -35,15 +35,15 @@ var app = angular.module('app', ['ngRoute', 'ngCookies', 'ngAnimate', 'ngSanitiz
}
})
.when('/apis/add', {
templateUrl: '/html/apis/form.html',
templateUrl: 'html/apis/form.html',
controller: 'ApiController',
resolve: {
isAppReady: isAppReady,
api: function() {return {}}
}
})
.when('/apis/:id', {
templateUrl: '/html/apis/form.html',
templateUrl: 'html/apis/form.html',
controller: 'ApiController',
resolve: {
isAppReady: isAppReady,
Expand All @@ -54,7 +54,7 @@ var app = angular.module('app', ['ngRoute', 'ngCookies', 'ngAnimate', 'ngSanitiz
}
})
.when('/apis/:api_id/plugins', {
templateUrl: '/html/plugins/index.html',
templateUrl: 'html/plugins/index.html',
controller: 'PluginsController',
resolve: {
isAppReady: isAppReady,
Expand All @@ -69,7 +69,7 @@ var app = angular.module('app', ['ngRoute', 'ngCookies', 'ngAnimate', 'ngSanitiz
}
})
.when('/consumers/:consumer_id/plugins', {
templateUrl: '/html/plugins/index.html',
templateUrl: 'html/plugins/index.html',
controller: 'PluginsController',
resolve: {
isAppReady: isAppReady,
Expand All @@ -84,7 +84,7 @@ var app = angular.module('app', ['ngRoute', 'ngCookies', 'ngAnimate', 'ngSanitiz
}
})
.when('/plugins', {
templateUrl: '/html/plugins/index.html',
templateUrl: 'html/plugins/index.html',
controller: 'PluginsController',
resolve: {
isAppReady: isAppReady,
Expand All @@ -95,7 +95,7 @@ var app = angular.module('app', ['ngRoute', 'ngCookies', 'ngAnimate', 'ngSanitiz
}
})
.when('/plugins/add', {
templateUrl: '/html/plugins/form.html',
templateUrl: 'html/plugins/form.html',
controller: 'PluginController',
resolve: {
isAppReady: isAppReady,
Expand All @@ -114,7 +114,7 @@ var app = angular.module('app', ['ngRoute', 'ngCookies', 'ngAnimate', 'ngSanitiz
}
})
.when('/plugins/:id', {
templateUrl: '/html/plugins/form.html',
templateUrl: 'html/plugins/form.html',
controller: 'PluginController',
resolve: {
isAppReady: isAppReady,
Expand All @@ -134,7 +134,7 @@ var app = angular.module('app', ['ngRoute', 'ngCookies', 'ngAnimate', 'ngSanitiz
}
})
.when('/consumers', {
templateUrl: '/html/consumers/index.html',
templateUrl: 'html/consumers/index.html',
controller: 'ConsumersController',
resolve: {
isAppReady: isAppReady,
Expand All @@ -144,15 +144,15 @@ var app = angular.module('app', ['ngRoute', 'ngCookies', 'ngAnimate', 'ngSanitiz
}
})
.when('/consumers/add', {
templateUrl: '/html/consumers/form.html',
templateUrl: 'html/consumers/form.html',
controller: 'ConsumerController',
resolve: {
isAppReady: isAppReady,
consumer: function() { return {}; },
}
})
.when('/consumers/:id', {
templateUrl: '/html/consumers/form.html',
templateUrl: 'html/consumers/form.html',
controller: 'ConsumerController',
resolve: {
isAppReady: isAppReady,
Expand Down
2 changes: 1 addition & 1 deletion src/js/directives/field_error.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ angular.module('app').directive("appFieldError", function () {
scope: {
error: '='
},
templateUrl: '/html/directives_templates/field_error.html',
templateUrl: 'html/directives_templates/field_error.html'
};
});
2 changes: 1 addition & 1 deletion src/js/directives/loader.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
angular.module('app').directive("appLoader", function () {
return {
restrict: 'E',
templateUrl: '/html/directives_templates/loader.html'
templateUrl: 'html/directives_templates/loader.html'
};
});
2 changes: 1 addition & 1 deletion src/js/directives/route_loading_indicator.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
angular.module('app').directive("appRouteLoadingIndicator", ['$rootScope', function ($rootScope) {
return {
restrict: 'E',
templateUrl: "/html/directives_templates/route_loading_indicator.html",
templateUrl: "html/directives_templates/route_loading_indicator.html",
controller: ['$scope', '$rootScope', 'Alert', function ($scope, $rootScope, Alert) {
$scope.loading = false;
$rootScope.$on('$routeChangeStart', function () {
Expand Down

0 comments on commit 734dac2

Please sign in to comment.