mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-05 16:01:50 -05:00
Refine recently added components
This commit is contained in:
5
awx/ui/client/lib/index.js
Normal file
5
awx/ui/client/lib/index.js
Normal file
@@ -0,0 +1,5 @@
|
||||
import PathService from './path.service';
|
||||
|
||||
angular
|
||||
.module('at.lib', [])
|
||||
.factory('PathService', PathService);
|
||||
16
awx/ui/client/lib/path.service.js
Normal file
16
awx/ui/client/lib/path.service.js
Normal file
@@ -0,0 +1,16 @@
|
||||
function getPartialPath (path) {
|
||||
return `/static/partials/${path}.partial.html`;
|
||||
}
|
||||
|
||||
function getViewPath (path) {
|
||||
return `/static/views/${path}.view.html`;
|
||||
}
|
||||
|
||||
function PathService () {
|
||||
return {
|
||||
getPartialPath,
|
||||
getViewPath
|
||||
};
|
||||
}
|
||||
|
||||
export default PathService;
|
||||
Reference in New Issue
Block a user