File tree 9 files changed +46
-12
lines changed
9 files changed +46
-12
lines changed Original file line number Diff line number Diff line change 1
1
import './App.css' ;
2
2
import React from "react" ;
3
- import BootApp from "./views/index" ;
3
+ import Application from "./views/index" ;
4
4
import Config from './config'
5
- import _ from "lodash" ;
6
- function App ( ) {
7
- return (
8
- < >
9
- { ( Config . env === 'DEV' || Config . env === 'PROD' ) && < BootApp /> }
10
- { _ . isUndefined ( Config . env ) && < h1 > ENV IS NOT SETUP, CONTACT ADMIN</ h1 > }
11
- </ >
12
- ) ;
13
- }
5
+ import * as Atom from './components/atom' ;
6
+ const App = ( ) => ( Config . env === 'DEV' || Config . env === 'PROD' ) ? < Application /> : < Atom . ContactAdmin />
14
7
export default App ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Atom it's smallest component of the application
3
+ * The first letter of name of function should be in capital letter
4
+ * @Author STRUCTLOOPER
5
+ * */
6
+ import React from "react" ;
7
+
8
+ export const ContactAdmin = ( ) => < h1 > ENV IS NOT SETUP, CONTACT ADMIN</ h1 > ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Molecules are made up of two or more atoms
3
+ * The first letter of name of function should be in capital letter
4
+ * @Author STRUCTLOOPER
5
+ * */
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Organisms are used by views & made by the combination of atom & molecules
3
+ * The first letter of name of function should be in capital letter
4
+ * @Author STRUCTLOOPER
5
+ * */
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Local env setup json example file
3
+ * @Author STRUCTLOOPER
4
+ * */
1
5
{
2
6
"appName" : "port-structlooper",
3
7
"env" : "DEV",
Original file line number Diff line number Diff line change
1
+ /*
2
+ * All server requests
3
+ * GET, POST, & ETCs
4
+ * @Author STRUCTLOOPER
5
+ * */
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Primary color json which have some basic colors
3
+ * @Author STRUCTLOOPER
4
+ * */
1
5
const primaryColors = {
2
6
bckRed :'#F5D6D6' ,
3
7
yellow :'#f3da75' ,
Original file line number Diff line number Diff line change
1
+ /*
2
+ * A set of all util functions
3
+ * The first letter of name of function should be in capital letter
4
+ * @Author STRUCTLOOPER
5
+ * */
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Views are screens to show on user interface
3
+ * all init functions are initiated here
4
+ * @Author STRUCTLOOPER
5
+ * */
1
6
import React from 'react' ;
2
7
3
- const BootApp = ( ) => {
8
+ const Application = ( ) => {
4
9
return (
5
10
< div >
6
11
< h1 > Boot app</ h1 >
7
12
</ div >
8
13
) ;
9
14
} ;
10
15
11
- export default BootApp ;
16
+ export default Application ;
You can’t perform that action at this time.
0 commit comments