Merge pull request #2050 from iminoso/layout
Create all components for new repo page
This commit is contained in:
commit
74b6944b0d
8 changed files with 53 additions and 15 deletions
10
static/js/directives/components/pages/repo-page/body.tsx
Normal file
10
static/js/directives/components/pages/repo-page/body.tsx
Normal file
|
@ -0,0 +1,10 @@
|
|||
import * as React from "react";
|
||||
|
||||
class body extends React.Component<{}, {}> {
|
||||
render () {
|
||||
return <div> The component for the main content</div>;
|
||||
}
|
||||
}
|
||||
|
||||
export default body;
|
||||
|
|
@ -2,7 +2,7 @@ import * as React from "react";
|
|||
|
||||
class repoHeader extends React.Component<{}, {}> {
|
||||
render () {
|
||||
return <p> The component for the header</p>;
|
||||
return <div> The component for the header</div>;
|
||||
}
|
||||
}
|
||||
|
21
static/js/directives/components/pages/repo-page/main.tsx
Normal file
21
static/js/directives/components/pages/repo-page/main.tsx
Normal file
|
@ -0,0 +1,21 @@
|
|||
import * as angular from "angular";
|
||||
|
||||
import repoHeader from "./header";
|
||||
import repoSidebar from "./sidebar";
|
||||
import repoBody from "./body";
|
||||
|
||||
export function rpDirectives(){
|
||||
angular.module('quayPages').directive('rpHeader', function(reactDirective) {
|
||||
return reactDirective(repoHeader);
|
||||
});
|
||||
|
||||
angular.module('quayPages').directive('rpSidebar', function(reactDirective) {
|
||||
return reactDirective(repoSidebar);
|
||||
});
|
||||
|
||||
angular.module('quayPages').directive('rpBody', function(reactDirective) {
|
||||
return reactDirective(repoBody);
|
||||
});
|
||||
}
|
||||
|
||||
|
10
static/js/directives/components/pages/repo-page/sidebar.tsx
Normal file
10
static/js/directives/components/pages/repo-page/sidebar.tsx
Normal file
|
@ -0,0 +1,10 @@
|
|||
import * as React from "react";
|
||||
|
||||
class repoSidebar extends React.Component<{}, {}> {
|
||||
render () {
|
||||
return <div> The component for the sidebar</div>;
|
||||
}
|
||||
}
|
||||
|
||||
export default repoSidebar;
|
||||
|
Reference in a new issue