Merge branch 'feature/auth-configure' of https://github.com/IT-Lab-KubSU/platform into feature/auth-configure

feature/auth-configure^2
Artem-Darius Weber 1 year ago
commit 94f7deabd1

@ -2,11 +2,11 @@
import styles from './app.module.scss'; import styles from './app.module.scss';
import NxWelcome from './nx-welcome'; import NxWelcome from './nx-welcome';
import {Home} from './home';
export function App() { export function App() {
return ( return (
<div> <div>
<NxWelcome title="frontend" /> <Home />
</div> </div>
); );
} }

@ -0,0 +1,20 @@
import {LoginPage, RegistrationPage} from "@platform/site-pages";
import {Link, Routes, Route} from 'react-router-dom'
export function Home() {
return(
<>
<ul>
<li><Link to="/login">Login</Link></li>
<li><Link to="/register">Register</Link></li>
</ul>
<Routes>
<Route path="/login" element={<LoginPage/>}></Route>
<Route path="/register" element={<RegistrationPage/>}></Route>
</Routes>
<h1>Hello</h1>
<LoginPage/>
<RegistrationPage/>
</>
);
}

@ -1,4 +1,5 @@
import { StrictMode } from 'react'; import { StrictMode } from 'react';
import {BrowserRouter} from 'react-router-dom';
import * as ReactDOM from 'react-dom/client'; import * as ReactDOM from 'react-dom/client';
import App from './app/app'; import App from './app/app';
@ -8,6 +9,8 @@ const root = ReactDOM.createRoot(
); );
root.render( root.render(
<StrictMode> <StrictMode>
<BrowserRouter>
<App /> <App />
</BrowserRouter>
</StrictMode> </StrictMode>
); );

@ -1 +1,3 @@
export * from './lib/registration-page/registration-page';
export * from './lib/login-page/login-page';
export * from './lib/site-pages'; export * from './lib/site-pages';

@ -0,0 +1,7 @@
/*
* Replace this with your own classes
*
* e.g.
* .container {
* }
*/

@ -0,0 +1,10 @@
import { render } from '@testing-library/react';
import LoginPage from './login-page';
describe('LoginPage', () => {
it('should render successfully', () => {
const { baseElement } = render(<LoginPage />);
expect(baseElement).toBeTruthy();
});
});

@ -0,0 +1,14 @@
import styles from './login-page.module.scss';
/* eslint-disable-next-line */
export interface LoginPageProps {}
export function LoginPage(props: LoginPageProps) {
return (
<div className={styles['container']}>
<h1>Welcome to LoginPage!</h1>
</div>
);
}
export default LoginPage;

@ -0,0 +1,7 @@
/*
* Replace this with your own classes
*
* e.g.
* .container {
* }
*/

@ -0,0 +1,10 @@
import { render } from '@testing-library/react';
import RegistrationPage from './registration-page';
describe('RegistrationPage', () => {
it('should render successfully', () => {
const { baseElement } = render(<RegistrationPage />);
expect(baseElement).toBeTruthy();
});
});

@ -0,0 +1,14 @@
import styles from './registration-page.module.scss';
/* eslint-disable-next-line */
export interface RegistrationPageProps {}
export function RegistrationPage(props: RegistrationPageProps) {
return (
<div className={styles['container']}>
<h1>Welcome to RegistrationPage!</h1>
</div>
);
}
export default RegistrationPage;

2931
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -22,11 +22,15 @@
"class-transformer": "^0.5.1", "class-transformer": "^0.5.1",
"class-validator": "^0.14.0", "class-validator": "^0.14.0",
"graphql": "^16.7.1", "graphql": "^16.7.1",
"localforage": "^1.10.0",
"match-sorter": "^6.3.1",
"react": "18.2.0", "react": "18.2.0",
"react-dom": "18.2.0", "react-dom": "18.2.0",
"react-is": "18.2.0", "react-is": "18.2.0",
"react-router-dom": "^6.14.2",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rxjs": "^7.8.0", "rxjs": "^7.8.0",
"sort-by": "^1.2.0",
"styled-components": "5.3.6", "styled-components": "5.3.6",
"tslib": "^2.3.0" "tslib": "^2.3.0"
}, },

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save