Skip to content

Commit bbe0874

Browse files
JG #Change UI
1 parent bdb06be commit bbe0874

File tree

1,722 files changed

+128565
-55335
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,722 files changed

+128565
-55335
lines changed

.babelrc.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
module.exports = [
2+
{
3+
env: {
4+
production: {
5+
plugins: ['transform-remove-console'],
6+
},
7+
},
8+
},
9+
'babel-plugin-transform-imports',
10+
{
11+
'@material-ui/core': {
12+
// Use "transform: '@material-ui/core/${member}'," if your bundler does not support ES modules
13+
transform: '@material-ui/core/esm/${member}',
14+
preventFullImport: true,
15+
},
16+
'@material-ui/icons': {
17+
// Use "transform: '@material-ui/icons/${member}'," if your bundler does not support ES modules
18+
transform: '@material-ui/icons/esm/${member}',
19+
preventFullImport: true,
20+
},
21+
},
22+
];

.env

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
NODE_ENV=production
2-
PORT=3001
3-
SERVER_URL=http://localhost:3690
4-
REACT_APP_SITE_TOKEN=dlhsakldhaisyieor8y-23mnewhfwebfjwefv
1+
#SKIP_PREFLIGHT_CHECK=true

.eslintrc

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"node": true
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"react-app",
10+
"prettier",
11+
"prettier/react",
12+
"plugin:prettier/recommended"
13+
],
14+
"globals": {
15+
"Atomics": "readonly",
16+
"SharedArrayBuffer": "readonly"
17+
},
18+
"parser": "babel-eslint",
19+
"parserOptions": {
20+
"sourceType": "module",
21+
"allowImportExportEverywhere": false,
22+
"codeFrame": false
23+
},
24+
"plugins": [
25+
"react",
26+
"prettier",
27+
"react-hooks"
28+
],
29+
"rules": {
30+
"prettier/prettier": "error",
31+
"no-case-declarations": "off",
32+
"no-eval": "error",
33+
"import/first": "error",
34+
"react-hooks/rules-of-hooks": "error",
35+
"react-hooks/exhaustive-deps": "warn"
36+
}
37+
}

.gitignore

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
1+
react-sortable-hoc# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

33
# dependencies
44
/node_modules
55
/.pnp
66
.pnp.js
7+
/.idea/crema.iml
8+
/.idea/dictionaries/yogi0.xml
9+
/.idea/inspectionProfiles/Project_Default.xml
10+
/.idea/misc.xml
11+
/.idea/modules.xml
12+
/.idea/vcs.xml
13+
/.idea/workspace.xml
14+
/.idea/*
715

816
# testing
917
/coverage
@@ -21,17 +29,4 @@
2129
npm-debug.log*
2230
yarn-debug.log*
2331
yarn-error.log*
24-
# git ls-files --others --exclude-from=.git/info/exclude
25-
# Lines that start with '#' are comments.
26-
# For a project mostly in C, the following would be a good set of
27-
# exclude patterns (uncomment them if you want to use them):
28-
# *.[oa]
29-
# *~
30-
/.idea/
31-
.eslintcache
32-
33-
34-
debug.log
35-
36-
*.zip
37-
*.rar
32+
package-lock.json

.pre-commoit-confing.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- repo: https://github.com/prettier/prettier
2+
sha: '' # Use the sha or tag you want to point at
3+
hooks:
4+
- id: prettier

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"bracketSpacing": false,
3+
"jsxBracketSameLine": true,
4+
"jsxSingleQuote": true,
5+
"singleQuote": true,
6+
"trailingComma": "all",
7+
"tabWidth": 2
8+
}

.storybook/config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import {addDecorator, addParameters} from '@storybook/react';
2+
import {muiTheme} from 'storybook-addon-material-ui';
3+
import {withA11y} from '@storybook/addon-a11y';
4+
import defaultConfig from '../src/@crema/utility/ContextProvider/defaultConfig';
5+
import {withKnobs} from '@storybook/addon-knobs';
6+
import theme from './theme';
7+
import '!style-loader!css-loader!./css/storybook.css';
8+
9+
addDecorator(muiTheme(defaultConfig.theme));
10+
addDecorator(withA11y);
11+
addDecorator(withKnobs);
12+
addParameters({
13+
options: {
14+
theme: theme,
15+
},
16+
});

.storybook/css/storybook.css

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
body {
2+
line-height: 1.35 !important;
3+
font-family: 'Poppins', serif;
4+
}
5+
6+
* {
7+
margin: 0;
8+
padding: 0;
9+
}
10+
11+
*,
12+
*:before,
13+
*:after {
14+
box-sizing: border-box;
15+
}
16+
17+
img {
18+
max-width: 100%;
19+
height: auto;
20+
}
21+
22+
h1 {
23+
font-size: 36px;
24+
}
25+
26+
h2 {
27+
font-size: 30px;
28+
}
29+
30+
h3 {
31+
font-size: 24px;
32+
}
33+
34+
h4 {
35+
font-size: 22px;
36+
}
37+
38+
h5 {
39+
font-size: 18px;
40+
}
41+
42+
h6 {
43+
font-size: 16px;
44+
}
45+
46+
.sb-show-main {
47+
padding: 20px !important;
48+
}

.storybook/main.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
stories: ['../src/**/*.stories.js'],
3+
addons: [
4+
'@storybook/preset-create-react-app',
5+
'@storybook/addon-knobs/register',
6+
'@storybook/addon-a11y/register',
7+
'storybook-addon-material-ui/register',
8+
'@storybook/addon-actions',
9+
'@storybook/addon-links',
10+
],
11+
};

.storybook/theme.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import {create} from '@storybook/theming/create';
2+
import defaultConfig from '../src/@crema/utility/ContextProvider/defaultConfig';
3+
4+
export default create({
5+
base: 'light',
6+
7+
appContentBg: defaultConfig.theme.palette.background.default,
8+
9+
// colorPrimary: 'hotpink',
10+
// colorSecondary: 'deepskyblue',
11+
//
12+
// // UI
13+
// appBg: 'silver',
14+
// appContentBg: 'silver',
15+
// appBorderColor: 'grey',
16+
// appBorderRadius: 4,
17+
//
18+
// // Typography
19+
fontBase: 'Poppins',
20+
// fontCode: 'monospace',
21+
//
22+
// // Text colors
23+
// textColor: 'black',
24+
// textInverseColor: 'rgba(255,255,255,0.9)',
25+
//
26+
// // Toolbar default and active colors
27+
// barTextColor: 'silver',
28+
// barSelectedColor: 'black',
29+
// barBg: 'hotpink',
30+
//
31+
// // Form colors
32+
// inputBg: 'white',
33+
// inputBorder: 'silver',
34+
// inputTextColor: 'black',
35+
// inputBorderRadius: 4,
36+
//
37+
brandTitle: 'Crema Admin Theme',
38+
brandUrl: 'http://crema-react.firebaseapp.com/',
39+
brandImage:
40+
'https://firebasestorage.googleapis.com/v0/b/git-access.appspot.com/o/logo.png?alt=media',
41+
});

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Jesse Framework
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
2+
3+
#### Online Demo: http://crema-react.firebaseapp.com/
4+
5+
#### Online Document: https://crema-react.gitbook.io/docs/
6+
7+
## Available Scripts
8+
9+
In the project directory, you can run:
10+
11+
### `yarn start`
12+
13+
Runs the app in the development mode.<br />
14+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
15+
16+
The page will reload if you make edits.<br />
17+
You will also see any lint errors in the console.
18+
19+
### `yarn test`
20+
21+
Launches the test runner in the interactive watch mode.<br />
22+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
23+
24+
### `yarn build`
25+
26+
Builds the app for production to the `build` folder.<br />
27+
It correctly bundles React in production mode and optimizes the build for the best performance.
28+
29+
The build is minified and the filenames include the hashes.<br />
30+
Your app is ready to be deployed!
31+
32+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
33+
34+
### `yarn eject`
35+
36+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
37+
38+
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
39+
40+
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
41+
42+
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
43+
44+
## Learn More
45+
46+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
47+
48+
To learn React, check out the [React documentation](https://reactjs.org/).
49+
50+
### Code Splitting
51+
52+
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
53+
54+
### Analyzing the Bundle Size
55+
56+
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
57+
58+
### Making a Progressive Web App
59+
60+
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
61+
62+
### Advanced Configuration
63+
64+
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
65+
66+
### Deployment
67+
68+
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
69+
70+
### `yarn build` fails to minify
71+
72+
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

debug.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[0101/092743.424:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)

jsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": "src",
4+
"paths": {
5+
"@/*": ["src/*"]
6+
}
7+
}
8+
}

0 commit comments

Comments
 (0)