-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from elite-se/feature/split-in-packages
Feature/split in packages
- Loading branch information
Showing
32 changed files
with
201 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './errorBoundary.component'; | ||
export * from './featureFlag.component'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './general'; | ||
export * from './list'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './linkListItem.component'; |
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 16 additions & 13 deletions
29
packages/frontend/src/components/App.tsx → packages/frontend/src/app.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import * as React from 'react'; | ||
import * as ReactDOM from 'react-dom'; | ||
import { App } from './components/App'; | ||
import { App } from './app'; | ||
|
||
ReactDOM.render(<App />, document.getElementById('root')); |
2 changes: 1 addition & 1 deletion
2
...omponents/pages/support/LinkDirectory.tsx → packages/frontend/src/util/linkDirectory.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "elite-home", | ||
"version": "1.0.0", | ||
"private": true, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"main": "src/index.ts", | ||
"scripts": { | ||
"clean": "rm -rf dist/ node_modules/ tsconfig.tsbuildinfo" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^16.9.23", | ||
"elite-types": "^1.0.0" | ||
}, | ||
"dependencies": { | ||
"react": "^16.12.0", | ||
"elite-components": "^1.0.0" | ||
} | ||
} |
16 changes: 11 additions & 5 deletions
16
...rontend/src/components/pages/HomePage.tsx → packages/home/src/home.page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
import { Divider } from '@material-ui/core'; | ||
import { FeatureFlag } from 'elite-feature-flags'; | ||
import { FeatureFlag } from 'elite-components'; | ||
import * as React from 'react'; | ||
import { RouteComponentProps } from 'react-router'; | ||
import { LinkDirectory } from './support/LinkDirectory'; | ||
import { AppPath, AppRoute } from 'elite-types'; | ||
|
||
export interface HomePageProps extends RouteComponentProps {} | ||
|
||
/** | ||
* Route for the Home page of this app | ||
*/ | ||
export const HOME_ROUTE: AppRoute = { | ||
path: AppPath.HOME, | ||
displayName: 'Home', | ||
render: props => <HomePage {...props} />, | ||
}; | ||
|
||
export const HomePage = (props: HomePageProps) => ( | ||
<> | ||
<h1>Main Page</h1> | ||
<FeatureFlag featureName="under-construction-message"> | ||
Elite Sexyz is currently under construction. See discord main channel for more information | ||
</FeatureFlag> | ||
<Divider /> | ||
<LinkDirectory /> | ||
</> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './home.page'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"rootDir": "src", | ||
"outDir": "dist", | ||
"baseUrl": "src" | ||
}, | ||
"include": ["src/**/*"], | ||
"references": [ | ||
{ | ||
"path": "../types" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "elite-link", | ||
"version": "1.0.0", | ||
"private": true, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"main": "src/index.ts", | ||
"scripts": { | ||
"clean": "rm -rf dist/ node_modules/ tsconfig.tsbuildinfo" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^16.9.23", | ||
"elite-types": "^1.0.0" | ||
}, | ||
"dependencies": { | ||
"react": "^16.12.0", | ||
"elite-components": "^1.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './link.page'; |
23 changes: 16 additions & 7 deletions
23
...rontend/src/components/pages/LinkPage.tsx → packages/link/src/link.page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,30 @@ | ||
import { Divider, List } from '@material-ui/core'; | ||
import { List } from '@material-ui/core'; | ||
import * as React from 'react'; | ||
import { RouteComponentProps } from 'react-router'; | ||
import { LinkListItem } from '../general/LinkListItem'; | ||
import { LinkDirectory } from './support/LinkDirectory'; | ||
import { LinkListItem } from 'elite-components'; | ||
import { AppPath, AppRoute } from 'elite-types'; | ||
|
||
export interface LinkPageProps extends RouteComponentProps {} | ||
|
||
/** | ||
* Route for the Link page of this app | ||
*/ | ||
export const LINK_ROUTE: AppRoute = { | ||
path: AppPath.LINK, | ||
displayName: 'Useful Links', | ||
render: props => ( | ||
<> | ||
<LinkPage {...props} /> | ||
</> | ||
), | ||
}; | ||
|
||
export const LinkPage = (props: LinkPageProps) => ( | ||
<> | ||
<h1>Useful Links List</h1> | ||
<List> | ||
<LinkListItem href={'https://elite-se.informatik.uni-augsburg.de'} title={'Main Webpage'} /> | ||
<LinkListItem href={'https://github.com/elite-se/elite-se.protokolle'} title={'Exam Protocols'} /> | ||
</List> | ||
|
||
<Divider /> | ||
|
||
<LinkDirectory /> | ||
</> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"rootDir": "src", | ||
"outDir": "dist", | ||
"baseUrl": "src" | ||
}, | ||
"include": ["src/**/*"], | ||
"references": [ | ||
{ | ||
"path": "../types" | ||
} | ||
] | ||
} |
Oops, something went wrong.