Compare commits
	
		
			No commits in common. "811e9448b0c7e65ceea2ec795a359a2e81e555c0" and "626d556e1a98432cf12c08aed8641639fdd75ba6" have entirely different histories.
		
	
	
		
			811e9448b0
			...
			626d556e1a
		
	
		
@ -9,11 +9,8 @@ module.exports = {
 | 
				
			|||||||
  },
 | 
					  },
 | 
				
			||||||
  navigations: {
 | 
					  navigations: {
 | 
				
			||||||
    'enterfront.main': '/enterfront',
 | 
					    'enterfront.main': '/enterfront',
 | 
				
			||||||
    'enterfront.home': '/enterfront/home',
 | 
					    'link.enterfront.auth': '/enterfront/auth',
 | 
				
			||||||
    'enterfront.auth': '/enterfront/auth',
 | 
					    'link.enterfront.account': '/enterfront/account',
 | 
				
			||||||
    'enterfront.reg': '/enterfront/reg',
 | 
					 | 
				
			||||||
    'enterfront.account': '/enterfront/account',
 | 
					 | 
				
			||||||
    'enterfront.chat': '/enterfront/chat',
 | 
					 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  features: {
 | 
					  features: {
 | 
				
			||||||
    'undefined': {
 | 
					    'undefined': {
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										4
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							@ -14,7 +14,7 @@
 | 
				
			|||||||
                "react-router-dom": "^6.26.1",
 | 
					                "react-router-dom": "^6.26.1",
 | 
				
			||||||
                "typescript": "^5.5.4"
 | 
					                "typescript": "^5.5.4"
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            "version": "0.2.1"
 | 
					            "version": "0.2.0"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        "node_modules/@ampproject/remapping": {
 | 
					        "node_modules/@ampproject/remapping": {
 | 
				
			||||||
            "version": "2.3.0",
 | 
					            "version": "2.3.0",
 | 
				
			||||||
@ -7800,5 +7800,5 @@
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "version": "0.2.1"
 | 
					    "version": "0.2.0"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -17,5 +17,5 @@
 | 
				
			|||||||
        "clean": "rimraf dist"
 | 
					        "clean": "rimraf dist"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "name": "enterfront",
 | 
					    "name": "enterfront",
 | 
				
			||||||
    "version": "0.2.1"
 | 
					    "version": "0.2.0"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -3,22 +3,14 @@ import pkg from '../../package.json';
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
const baseUrl = getNavigationsValue(`${(pkg as any).name}.main`);
 | 
					const baseUrl = getNavigationsValue(`${(pkg as any).name}.main`);
 | 
				
			||||||
const navs = getNavigations();
 | 
					const navs = getNavigations();
 | 
				
			||||||
 | 
					const makeUrl = url => url;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const URLs = {
 | 
					export const URLs = {
 | 
				
			||||||
    baseUrl, // init
 | 
					    baseUrl,
 | 
				
			||||||
    home: {
 | 
					 | 
				
			||||||
        url: navs[`${(pkg as any).name}.home`],
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    chat: {
 | 
					 | 
				
			||||||
        url: navs[`${(pkg as any).name}.chat`],
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    auth: {
 | 
					    auth: {
 | 
				
			||||||
        url: navs[`${(pkg as any).name}.auth`], // sign in
 | 
					        url: makeUrl(navs[`link.${(pkg as any).name}.auth`]),
 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    reg: {
 | 
					 | 
				
			||||||
        url: navs[`${(pkg as any).name}.reg`], // sign up
 | 
					 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    account: {
 | 
					    account: {
 | 
				
			||||||
        url: navs[`${(pkg as any).name}.account`],
 | 
					        url: makeUrl(navs[`link.${(pkg as any).name}.account`]),
 | 
				
			||||||
    },
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
				
			|||||||
@ -1,16 +1,12 @@
 | 
				
			|||||||
import React from 'react';
 | 
					import React from 'react';
 | 
				
			||||||
import { BrowserRouter } from 'react-router-dom';
 | 
					import { BrowserRouter } from 'react-router-dom';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import "./index.css"
 | 
					 | 
				
			||||||
import { Dashboard } from './dashboard';
 | 
					import { Dashboard } from './dashboard';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import Interlocutor from './backend/interlocutor/Interlocutor.js'
 | 
					 | 
				
			||||||
import User from './backend/user/User.js'
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const App = () => {
 | 
					const App = () => {
 | 
				
			||||||
  return(
 | 
					  return(
 | 
				
			||||||
    <BrowserRouter>
 | 
					    <BrowserRouter>
 | 
				
			||||||
      <Dashboard/>
 | 
					      <Dashboard />
 | 
				
			||||||
    </BrowserRouter>
 | 
					    </BrowserRouter>
 | 
				
			||||||
  )
 | 
					  )
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -1,8 +0,0 @@
 | 
				
			|||||||
export default class Interlocutor {
 | 
					 | 
				
			||||||
    constructor(id, name) {
 | 
					 | 
				
			||||||
        this.name = name
 | 
					 | 
				
			||||||
        this.id = id
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    static name;
 | 
					 | 
				
			||||||
    static id;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@ -1,3 +0,0 @@
 | 
				
			|||||||
export default class User {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@ -1 +0,0 @@
 | 
				
			|||||||
@import "../reg/css/index.css";
 | 
					 | 
				
			||||||
@ -1,12 +0,0 @@
 | 
				
			|||||||
import React from 'react';
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const InputField = (props) => {
 | 
					 | 
				
			||||||
  return (
 | 
					 | 
				
			||||||
      <input
 | 
					 | 
				
			||||||
          onChange={(e) => props.setValue(e.target.value)}
 | 
					 | 
				
			||||||
          value={props.value}
 | 
					 | 
				
			||||||
      />
 | 
					 | 
				
			||||||
  );
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
export default InputField;
 | 
					 | 
				
			||||||
@ -1,25 +1,18 @@
 | 
				
			|||||||
import React from 'react';
 | 
					import React from 'react';
 | 
				
			||||||
import { Routes, Route } from 'react-router-dom';
 | 
					import { Routes, Route, Navigate } from 'react-router-dom';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { URLs } from './__data__/urls';
 | 
					import { URLs } from './__data__/urls';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import Home from './pages/Home.jsx'
 | 
					import HomePage from './pages/HomePage.jsx'
 | 
				
			||||||
import Init from './pages/Init.jsx'
 | 
					import Hello from './pages/Hello.jsx'
 | 
				
			||||||
import Account from './pages/Account.jsx'
 | 
					import Account from './pages/Account.jsx'
 | 
				
			||||||
import Chat from './pages/Chat.jsx'
 | 
					 | 
				
			||||||
import SignIn from './pages/SignIn.jsx'
 | 
					 | 
				
			||||||
import SignUp from './pages/SignUp.jsx'
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const Dashboard = () => {
 | 
					export const Dashboard = () => {
 | 
				
			||||||
  return (
 | 
					  return (
 | 
				
			||||||
    <Routes>
 | 
					    <Routes>
 | 
				
			||||||
        <Route path={URLs.baseUrl} element={<Init/>}/>
 | 
					        <Route path={URLs.baseUrl} element={<HomePage/>}/>
 | 
				
			||||||
        <Route path={URLs.home.url} element={<Home/>}/>
 | 
					        <Route path={URLs.auth.url} element={<Hello/>} />
 | 
				
			||||||
        <Route path={URLs.chat.url} element={<Chat/>}/>
 | 
					 | 
				
			||||||
        <Route path={URLs.auth.url} element={<SignIn/>}/>
 | 
					 | 
				
			||||||
        <Route path={URLs.reg.url} element={<SignUp/>}/>
 | 
					 | 
				
			||||||
        <Route path={URLs.account.url} element={<Account/>}/>
 | 
					        <Route path={URLs.account.url} element={<Account/>}/>
 | 
				
			||||||
        <Route path="*" element={<h1>404 page not found</h1>}/>
 | 
					 | 
				
			||||||
    </Routes>
 | 
					    </Routes>
 | 
				
			||||||
  );
 | 
					  );
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
				
			|||||||
@ -1,9 +0,0 @@
 | 
				
			|||||||
import React from 'react';
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const Header = () => {
 | 
					 | 
				
			||||||
  return (
 | 
					 | 
				
			||||||
      <div>Header</div>
 | 
					 | 
				
			||||||
  );
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
export default Header;
 | 
					 | 
				
			||||||
@ -1,14 +0,0 @@
 | 
				
			|||||||
@import "pages/css/index.css";
 | 
					 | 
				
			||||||
@import "header/css/index.css";
 | 
					 | 
				
			||||||
@import "components/css/index.css";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
body {
 | 
					 | 
				
			||||||
    margin: 0;
 | 
					 | 
				
			||||||
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
 | 
					 | 
				
			||||||
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
 | 
					 | 
				
			||||||
    sans-serif;
 | 
					 | 
				
			||||||
    -webkit-font-smoothing: antialiased;
 | 
					 | 
				
			||||||
    -moz-osx-font-smoothing: grayscale;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,9 +0,0 @@
 | 
				
			|||||||
import React from 'react';
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const Chat = () => {
 | 
					 | 
				
			||||||
  return (
 | 
					 | 
				
			||||||
      <h2>Chat with ...</h2>
 | 
					 | 
				
			||||||
  );
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
export default Chat;
 | 
					 | 
				
			||||||
							
								
								
									
										9
									
								
								src/pages/Hello.jsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								src/pages/Hello.jsx
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					import React from "react";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const Hello = () => {
 | 
				
			||||||
 | 
					  return (
 | 
				
			||||||
 | 
					      <h1>Hello!</h1>
 | 
				
			||||||
 | 
					  )
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export default Hello;
 | 
				
			||||||
@ -1,9 +0,0 @@
 | 
				
			|||||||
import React from "react";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const Home = () => {
 | 
					 | 
				
			||||||
  return (
 | 
					 | 
				
			||||||
      <h1 className="TestClass">Home</h1>
 | 
					 | 
				
			||||||
  )
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
export default Home
 | 
					 | 
				
			||||||
							
								
								
									
										9
									
								
								src/pages/HomePage.jsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								src/pages/HomePage.jsx
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					import React from "react";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const HomePage = () => {
 | 
				
			||||||
 | 
					  return (
 | 
				
			||||||
 | 
					      <h1>Home</h1>
 | 
				
			||||||
 | 
					  )
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export default HomePage
 | 
				
			||||||
@ -1,9 +0,0 @@
 | 
				
			|||||||
import React from "react";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const Init = () => {
 | 
					 | 
				
			||||||
  return (
 | 
					 | 
				
			||||||
      <h1 className="TestInit">Init page</h1>
 | 
					 | 
				
			||||||
  )
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
export default Init;
 | 
					 | 
				
			||||||
@ -1,13 +0,0 @@
 | 
				
			|||||||
import React from 'react';
 | 
					 | 
				
			||||||
import InputField from "../components/reg/InputField.jsx";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const SignIn = () => {
 | 
					 | 
				
			||||||
  return (
 | 
					 | 
				
			||||||
      <div>
 | 
					 | 
				
			||||||
        <h1>SignIn</h1>
 | 
					 | 
				
			||||||
        <InputField/>
 | 
					 | 
				
			||||||
      </div>
 | 
					 | 
				
			||||||
  );
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
export default SignIn;
 | 
					 | 
				
			||||||
@ -1,13 +0,0 @@
 | 
				
			|||||||
import React from 'react';
 | 
					 | 
				
			||||||
import InputField from "../components/reg/InputField.jsx";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const SignUp = () => {
 | 
					 | 
				
			||||||
  return (
 | 
					 | 
				
			||||||
      <div>
 | 
					 | 
				
			||||||
        <h1>SignUp</h1>
 | 
					 | 
				
			||||||
        <InputField/>
 | 
					 | 
				
			||||||
      </div>
 | 
					 | 
				
			||||||
  );
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
export default SignUp;
 | 
					 | 
				
			||||||
@ -1,5 +0,0 @@
 | 
				
			|||||||
@import "init.css";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
.TestClass {
 | 
					 | 
				
			||||||
    color: red;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@ -1,3 +0,0 @@
 | 
				
			|||||||
.TestInit {
 | 
					 | 
				
			||||||
    color: blue;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
							
								
								
									
										18
									
								
								versions.md
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								versions.md
									
									
									
									
									
								
							@ -1,18 +0,0 @@
 | 
				
			|||||||
# Instruction to create tags and versions
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
npm version <type>
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Here <type> can be:
 | 
					 | 
				
			||||||
- `patch` - the smallest update, 1.2.3 -> 1.2.**4**
 | 
					 | 
				
			||||||
- `minor` - 1.**2**.3 -> 1.**3**.0
 | 
					 | 
				
			||||||
- `major` - the greatest, **1**.2.3 -> **2**.0.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
To submit tag (previous command is treated as a commit):
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
git push --tags
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
The version in `package.json` will be updated automatically\
 | 
					 | 
				
			||||||
After that add new version to *brojs-admin*
 | 
					 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user