Create individual directory for each page

This commit is contained in:
Ian Minoso 2016-10-31 15:44:55 -04:00
parent 8fae92267e
commit 2383609c15
2 changed files with 23 additions and 19 deletions

View file

@ -1,19 +1,2 @@
import * as React from "react";
import * as angular from "angular";
import repoHeader from "./directives/components/publicRepo/header";
import repoSidebar from "./directives/components/publicRepo/sidebar";
import repoMain from "./directives/components/publicRepo/main";
angular.module('quayPages').directive('rpHeader', function(reactDirective) {
return reactDirective(repoHeader);
});
angular.module('quayPages').directive('rpSidebar', function(reactDirective) {
return reactDirective(repoSidebar);
});
angular.module('quayPages').directive('rpMain', function(reactDirective) {
return reactDirective(repoMain);
});
import publicRepo from "./directives/components/publicRepo/publicRepo";
publicRepo();

View file

@ -0,0 +1,21 @@
import * as angular from "angular";
import repoHeader from "./header";
import repoSidebar from "./sidebar";
import repoMain from "./main";
var publicRepo = function(){
angular.module('quayPages').directive('rpHeader', function(reactDirective) {
return reactDirective(repoHeader);
});
angular.module('quayPages').directive('rpSidebar', function(reactDirective) {
return reactDirective(repoSidebar);
});
angular.module('quayPages').directive('rpMain', function(reactDirective) {
return reactDirective(repoMain);
});
}
export default publicRepo;