Namespace page directories

This commit is contained in:
Ian Minoso 2016-10-31 16:21:45 -04:00
parent 2383609c15
commit 9653cad53c
7 changed files with 29 additions and 25 deletions

View file

@ -1,2 +1,4 @@
import publicRepo from "./directives/components/publicRepo/publicRepo";
publicRepo();
import publicRepoDirectives from "./directives/components/components-repo-page/main";
// Init for each page
publicRepoDirectives();

View file

@ -1,10 +1,10 @@
import * as React from "react";
class main extends React.Component<{}, {}> {
class body extends React.Component<{}, {}> {
render () {
return <div> The component for the main content</div>;
}
}
export default main;
export default body;

View file

@ -0,0 +1,18 @@
import * as angular from "angular";
import repoHeader from "./header";
import repoSidebar from "./sidebar";
import repoMain from "./body";
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);
});

View file

@ -1,21 +0,0 @@
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;

5
tslint.json Normal file
View file

@ -0,0 +1,5 @@
{
"rules": {
"no-default-export": true
}
}