Skip to content

Commit 84fd255

Browse files
committed
final
1 parent cf63e3d commit 84fd255

File tree

9 files changed

+46
-12
lines changed

9 files changed

+46
-12
lines changed

src/App.js

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
import './App.css';
22
import React from "react";
3-
import BootApp from "./views/index";
3+
import Application from "./views/index";
44
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 />
147
export default App;

src/components/atom/index.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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>;

src/components/molecules/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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+
* */

src/components/orginasms/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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+
* */

src/config/localenv.json.exmaple

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Local env setup json example file
3+
* @Author STRUCTLOOPER
4+
* */
15
{
26
"appName" : "port-structlooper",
37
"env" : "DEV",

src/services/Http/httpRequests.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/*
2+
* All server requests
3+
* GET, POST, & ETCs
4+
* @Author STRUCTLOOPER
5+
* */

src/theme/colors.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Primary color json which have some basic colors
3+
* @Author STRUCTLOOPER
4+
* */
15
const primaryColors = {
26
bckRed :'#F5D6D6',
37
yellow :'#f3da75',

src/uitls/primaryFunctions.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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+
* */

src/views/index.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
/*
2+
* Views are screens to show on user interface
3+
* all init functions are initiated here
4+
* @Author STRUCTLOOPER
5+
* */
16
import React from 'react';
27

3-
const BootApp = () => {
8+
const Application = () => {
49
return (
510
<div>
611
<h1>Boot app</h1>
712
</div>
813
);
914
};
1015

11-
export default BootApp;
16+
export default Application;

0 commit comments

Comments
 (0)