-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #194 from idurar/master
auth bugs fixed
- Loading branch information
Showing
233 changed files
with
757 additions
and
13,239 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: github-repo-stats | ||
|
||
on: | ||
schedule: | ||
# Run this once per day, towards the end of the day for keeping the most | ||
# recent data point most meaningful (hours are interpreted in UTC). | ||
- cron: "50 23 * * *" | ||
workflow_dispatch: # Allow for running this manually. | ||
|
||
jobs: | ||
j1: | ||
name: github-repo-stats | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: run-ghrs | ||
# Use latest release. | ||
uses: jgehrcke/github-repo-stats@RELEASE | ||
with: | ||
ghtoken: ${{ secrets.ghrs_github_api_token }} | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
# IDURAR ERP/CRM Based Mern Stack and Ant Design (Express.js / React / Redux / MongoDB) | ||
# ERP / CRM Open Source based on (Node.js/React.js) | ||
|
||
IDURAR is Open Source ERP/CRM (Invoice / Inventory / Accounting / HR) Based on Advanced Mern Stack (Node.js / Express.js / MongoDb / React.js ) with Ant Design (AntD) and Redux | ||
|
||
``` | ||
Don't forget please to ⭐ this repo if you like this Starter Antd Admin! | ||
Can you star our Open Source ERP/CRM repo? 🤩 ! | ||
``` | ||
|
||
![screenshot-mern-redux-crud-app-idurar vercel app-2021 09 02-11_05_01](https://user-images.githubusercontent.com/50052356/141647096-dcb66696-6103-4850-ae21-9fc97a412252.png) | ||
![screenshot-mern-redux-crud-app-idurar vercel app-2021 09 02-11_04_25](https://user-images.githubusercontent.com/50052356/141647100-9dfd6ee5-f873-42a8-8923-88bd0cf53606.png) | ||
![Open Source ERP/CRM - MERN Stack (Node.js/React.js)](https://user-images.githubusercontent.com/50052356/141647096-dcb66696-6103-4850-ae21-9fc97a412252.png) | ||
![Open Source ERP/CRM - MERN Stack (Node.js/React.js)](https://user-images.githubusercontent.com/50052356/141647100-9dfd6ee5-f873-42a8-8923-88bd0cf53606.png) | ||
|
||
## CRM Starter Mern Antd Admin App | ||
## Open Source ERP / CRM App | ||
|
||
I build Starter Crm App based on mern stack (Express.js / MongoDb / React / Redux / AntD) with generic crud and auth , admin management . | ||
IDURAR is Open Source ERP/CRM (Invoice / Inventory / Accounting / HR) Based on Mern Stack (Node.js / Express.js / MongoDb / React.js ) with Ant Design (AntD) and Redux | ||
|
||
**Live App Demo** : [https://mern-redux-crud-app.vercel.app](https://mern-redux-crud-app.vercel.app) "Please use chrome" | ||
**Live App Demo** : [https://idurarapp.com/open-source-erp-crm/](https://idurarapp.com/open-source-erp-crm/) "Please use chrome" | ||
|
||
`username : admin@demo.com password : admin123` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
const crudController = require('../corsControllers/crudController'); | ||
module.exports = crudController.createCRUDController('Settings'); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodeLinker: node-modules |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...erpFrontend/src/config/serverApiConfig.js → frontend/src/config/serverApiConfig.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
export const API_BASE_URL = | ||
process.env.NODE_ENV == 'production' || process.env.REACT_APP_DEV_REMOTE == 'remote' | ||
? 'https://calm-ruby-barracuda-sock.cyclic.app/api/' | ||
? 'https://erp-crm.idurarapp.com/api/' | ||
: 'http://localhost:8888/api/'; | ||
export const DOWNLOAD_BASE_URL = | ||
process.env.NODE_ENV == 'production' || process.env.REACT_APP_DEV_REMOTE == 'remote' | ||
? 'https://calm-ruby-barracuda-sock.cyclic.app/download/' | ||
? 'https://erp-crm.idurarapp.com/download/' | ||
: 'http://localhost:8888/download/'; | ||
export const ACCESS_TOKEN_NAME = 'x-auth-token'; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import React from 'react'; | ||
|
||
import { Layout } from 'antd'; | ||
import { Divider, Row, Col } from 'antd'; | ||
|
||
const { Content } = Layout; | ||
|
||
const TopCard = ({ title, cardContent }) => { | ||
return ( | ||
<div | ||
className="whiteBox shadow" | ||
style={{ color: '#595959', fontSize: 13, height: '106px', marginBottom: '24px' }} | ||
> | ||
<div className="pad15 strong" style={{ textAlign: 'center', justifyContent: 'center' }}> | ||
<h3 style={{ color: '#22075e', marginBottom: 0 }}>{title}</h3> | ||
</div> | ||
<Divider style={{ padding: 0, margin: 0 }}></Divider> | ||
<div className="pad15" style={{ textAlign: 'center', justifyContent: 'center' }}> | ||
{cardContent} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default function SettingsLayout({ | ||
children, | ||
topCardTitle, | ||
topCardContent, | ||
bottomCardContent, | ||
}) { | ||
return ( | ||
<Layout className="site-layout"> | ||
<Content | ||
style={{ | ||
padding: '30px 40px', | ||
margin: '70px auto', | ||
width: '100%', | ||
maxWidth: '1100px', | ||
}} | ||
> | ||
<Row gutter={[24, 24]}> | ||
<Col | ||
className="gutter-row" | ||
xs={{ span: 24 }} | ||
sm={{ span: 24 }} | ||
md={{ span: 17 }} | ||
lg={{ span: 18 }} | ||
> | ||
<div className="whiteBox shadow" style={{ minHeight: '480px' }}> | ||
<Row className="pad10" gutter={[0, 0]}> | ||
{children} | ||
</Row> | ||
</div> | ||
</Col> | ||
<Col | ||
className="gutter-row" | ||
xs={{ span: 24 }} | ||
sm={{ span: 24 }} | ||
md={{ span: 7 }} | ||
lg={{ span: 6 }} | ||
> | ||
<TopCard title={topCardTitle} cardContent={topCardContent} /> | ||
<div className="whiteBox shadow" style={{ minHeight: '280px' }}> | ||
<Row gutter={[0, 0]}>{bottomCardContent}</Row> | ||
</div> | ||
</Col> | ||
</Row> | ||
</Content> | ||
</Layout> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Menu } from 'antd'; | ||
|
||
export default function GeneralSettings() { | ||
return <p>General Settings here</p>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Menu } from 'antd'; | ||
|
||
export default function InvoiceSettings() { | ||
return <p>Invoice Settings here</p>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Menu } from 'antd'; | ||
|
||
export default function PaymentSettings() { | ||
return <p>payment Settings here</p>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import { useState, useEffect } from 'react'; | ||
import { Menu, Tabs, Button, Divider } from 'antd'; | ||
import { SettingsLayout } from '@/layout'; | ||
|
||
import GeneralSettings from './GeneralSettings'; | ||
import PaymentSettings from './PaymentSettings'; | ||
import InvoiceSettings from './InvoiceSettings'; | ||
|
||
const RightMenu = ({ activeTab, handleTabChange }) => { | ||
const menuItems = [ | ||
{ key: 'generalSettings', label: 'generalSettings' }, | ||
{ key: 'paymentSettings', label: 'paymentSettings' }, | ||
{ key: 'invoiceSettings', label: 'invoiceSettings' }, | ||
]; | ||
const menuList = menuItems.map((item, index) => ( | ||
<Button | ||
type={item.key == activeTab ? 'default' : 'text'} | ||
key={item.key} | ||
style={{ marginBottom: '10px' }} | ||
block | ||
onClick={() => handleTabChange(item.key)} | ||
> | ||
{item.label} | ||
</Button> | ||
)); | ||
return <div className="pad10">{menuList}</div>; | ||
}; | ||
|
||
const Visibility = ({ isVisible = false, children }) => { | ||
const show = isVisible ? { display: 'block', opacity: 1 } : { display: 'none', opacity: 0 }; | ||
return <div style={show}>{children}</div>; | ||
}; | ||
|
||
export default function Settings() { | ||
const [state, setState] = useState('generalSettings'); | ||
|
||
const isActive = (tab) => { | ||
return state === tab ? true : false; | ||
}; | ||
|
||
const handleTabChange = (tab) => { | ||
setState(tab); | ||
}; | ||
|
||
return ( | ||
<SettingsLayout | ||
topCardContent="Generals Settings" | ||
topCardTitle="Settings" | ||
bottomCardContent={<RightMenu activeTab={state} handleTabChange={handleTabChange} />} | ||
> | ||
<Visibility isVisible={isActive('generalSettings')}> | ||
<GeneralSettings /> | ||
</Visibility> | ||
<Visibility isVisible={isActive('paymentSettings')}> | ||
<PaymentSettings /> | ||
</Visibility> | ||
<Visibility isVisible={isActive('invoiceSettings')}> | ||
<InvoiceSettings /> | ||
</Visibility> | ||
</SettingsLayout> | ||
); | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.