Create individual directory for each page
This commit is contained in:
parent
8fae92267e
commit
2383609c15
2 changed files with 23 additions and 19 deletions
|
@ -1,19 +1,2 @@
|
||||||
import * as React from "react";
|
import publicRepo from "./directives/components/publicRepo/publicRepo";
|
||||||
import * as angular from "angular";
|
publicRepo();
|
||||||
|
|
||||||
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);
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
21
static/js/directives/components/publicRepo/publicRepo.tsx
Normal file
21
static/js/directives/components/publicRepo/publicRepo.tsx
Normal 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;
|
Reference in a new issue