chrone: sperate client and server to different repos.

This commit is contained in:
a.bouhuolia
2021-09-21 17:13:53 +02:00
parent e011b2a82b
commit 18df5530c7
10015 changed files with 17686 additions and 97524 deletions

4
src/config/app.js Normal file
View File

@@ -0,0 +1,4 @@
export default {
"app_name": "BigCapital",
"app_version": "0.0.1 (build 12344)",
}

View File

@@ -0,0 +1,144 @@
import React from 'react';
import { FormattedMessage as T } from 'components';
export const financialReportMenus = [
{
sectionTitle: <T id={'financial_accounting'} />,
reports: [
{
title: <T id={'balance_sheet_report'} />,
desc: (
<T id={'reports_a_company_s_assets_liabilities_and_shareholders'} />
),
link: '/financial-reports/balance-sheet',
},
{
title: <T id={'trial_balance_sheet'} />,
desc: (
<T id={'summarizes_the_credit_and_debit_balance_of_each_account'} />
),
link: '/financial-reports/trial-balance-sheet',
},
{
title: <T id={'profit_loss_report'} />,
desc: <T id={'reports_the_revenues_costs_and_expenses'} />,
link: '/financial-reports/profit-loss-sheet',
},
{
title: <T id={'cash_flow_statement'} />,
desc: (
<T id={'reports_inflow_and_outflow_of_cash_and_cash_equivalents'} />
),
link: '/financial-reports/cash-flow',
},
{
title: <T id={'journal_report'} />,
desc: <T id={'the_debit_and_credit_entries_of_system_transactions'} />,
link: '/financial-reports/journal-sheet',
},
{
title: <T id={'general_ledger_report'} />,
desc: <T id={'reports_every_transaction_going_in_and_out_of_your'} />,
link: '/financial-reports/general-ledger',
},
{
title: <T id={'receivable_aging_summary'} />,
desc: (
<T id={'summarize_total_unpaid_balances_of_customers_invoices'} />
),
link: '/financial-reports/receivable-aging-summary',
},
{
title: <T id={'payable_aging_summary'} />,
desc: <T id={'summarize_total_unpaid_balances_of_vendors_purchase'} />,
link: '/financial-reports/payable-aging-summary',
},
],
},
];
export const SalesAndPurchasesReportMenus = [
{
sectionTitle: <T id={'sales_purchases_reports'} />,
reports: [
{
title: <T id={'purchases_by_items'} />,
desc: (
<T
id={
'summarize_the_business_s_purchase_items_quantity_cost_and_average'
}
/>
),
link: '/financial-reports/purchases-by-items',
},
{
title: <T id={'sales_by_items'} />,
desc: (
<T
id={
'summarize_the_business_s_sold_items_quantity_income_and_average_income_rate'
}
/>
),
link: '/financial-reports/sales-by-items',
},
{
title: <T id={'inventory_valuation'} />,
desc: (
<T
id={
'summarize_the_business_s_purchase_items_quantity_cost_and_average'
}
/>
),
link: '/financial-reports/inventory-valuation',
},
{
title: <T id={'customers_balance_summary'} />,
desc: (
<T
id={
'summerize_the_total_amount_of_each_customer_owes_your_business'
}
/>
),
link: '/financial-reports/customers-balance-summary',
},
{
title: <T id={'vendors_balance_summary'} />,
desc: (
<T id={'summerize_the_total_amount_your_business_owes_each_vendor'} />
),
link: '/financial-reports/vendors-balance-summary',
},
{
title: <T id={'customers_transactions'} />,
desc: (
<T
id={'reports_every_transaction_going_in_and_out_of_each_customer'}
/>
),
link: '/financial-reports/transactions-by-customers',
},
{
title: <T id={'vendors_transactions'} />,
desc: (
<T
id={
'reports_every_transaction_going_in_and_out_of_each_vendor_supplier'
}
/>
),
link: '/financial-reports/transactions-by-vendors',
},
{
title: <T id={'inventory_item_details'} />,
desc: (
<T id={'reports_every_transaction_going_in_and_out_of_your_items'} />
),
link: '/financial-reports/inventory-item-details',
},
],
},
];

32
src/config/footerLinks.js Normal file
View File

@@ -0,0 +1,32 @@
import intl from 'react-intl-universal';
export const getFooterLinks = () => [
{
title: intl.get('blog'),
link: '#',
},
{
title: intl.get('support'),
link: '#',
},
{
title: intl.get('service_status'),
link: '#',
},
{
title: intl.get('pricing'),
link: '#',
},
{
title: intl.get('reseller_partner'),
link: '#',
},
{
title: intl.get('docs'),
link: '#',
},
{
title: 'Bigcapital',
link: 'http://bigcapital.ly',
}
]

View File

@@ -0,0 +1,29 @@
import React from 'react'
import { FormattedMessage as T } from 'components';
export default [
{
text: <T id={'general'}/>,
disabled: false,
href: '/preferences/general',
},
{
text: <T id={'users'}/>,
href: '/preferences/users',
},
{
text: <T id={'currencies'}/>,
href: '/preferences/currencies',
},
{
text: <T id={'accountant'}/>,
disabled: false,
href: '/preferences/accountant',
},
{
text: <T id={'items'}/>,
disabled: false,
href: '/preferences/items',
},
];

313
src/config/sidebarMenu.js Normal file
View File

@@ -0,0 +1,313 @@
import React from 'react';
import { FormattedMessage as T } from 'components';
export default [
{
text: <T id={'homepage'} />,
disabled: false,
href: '/',
matchExact: true,
},
{
text: <T id={'sales_inventory'} />,
label: true,
},
{
text: <T id={'items'} />,
children: [
{
text: <T id={'items'} />,
href: '/items',
},
{
text: <T id={'inventory_adjustments'} />,
href: '/inventory-adjustments',
},
{
text: <T id={'category_list'} />,
href: '/items/categories',
},
{
text: <T id={'New tasks'} />,
label: true,
},
{
divider: true,
},
{
text: <T id={'New inventory item'} />,
href: '/items/new',
},
{
text: <T id={'New service'} />,
href: '/items/new',
},
{
text: <T id={'New item category'} />,
href: '/items/categories/new',
},
// {
// text: <T id={'New inventory adjustment'} />,
// },
],
},
{
text: <T id={'sales'} />,
children: [
{
text: <T id={'estimates'} />,
href: '/estimates',
newTabHref: '/estimates/new',
},
{
text: <T id={'invoices'} />,
href: '/invoices',
newTabHref: '/invoices/new',
},
{
text: <T id={'receipts'} />,
href: '/receipts',
},
{
text: <T id={'payment_receives'} />,
href: '/payment-receives',
},
{
text: <T id={'New tasks'} />,
label: true,
},
{
divider: true,
},
{
text: <T id={'new_estimate'} />,
href: '/estimates/new',
},
{
text: <T id={'new_invoice'} />,
href: '/invoices/new',
},
{
text: <T id={'new_receipt'} />,
href: '/receipts/new',
},
{
text: <T id={'new_payment_receive'} />,
href: '/payment-receives/new',
},
],
},
{
text: <T id={'purchases'} />,
children: [
{
text: <T id={'bills'} />,
href: '/bills',
newTabHref: '/bills/new',
},
{
text: <T id={'payment_mades'} />,
href: '/payment-mades',
newTabHref: '/payment-mades/new',
},
{
text: <T id={'New tasks'} />,
label: true,
},
{
divider: true,
},
{
text: <T id={'New purchase invoice'} />,
href: '/bills/new',
},
{
text: <T id={'new_payment_made'} />,
href: '/payment-mades/new',
},
],
},
{
text: <T id={'contacts'} />,
children: [
{
text: <T id={'customers'} />,
href: '/customers',
newTabHref: '/customers/new',
},
{
text: <T id={'vendors'} />,
href: '/vendors',
newTabHref: '/vendors/new',
},
{
text: <T id={'New tasks'} />,
label: true,
},
{
divider: true,
},
{
text: <T id={'new_customer'} />,
href: '/customers/new',
},
{
text: <T id={'new_vendor'} />,
href: '/vendors/new',
},
],
},
{
text: <T id={'accounting'} />,
label: true,
},
{
text: <T id={'financial'} />,
children: [
{
text: <T id={'accounts_chart'} />,
href: '/accounts',
},
{
text: <T id={'manual_journals'} />,
href: '/manual-journals',
},
{
text: <T id={'exchange_rate'} />,
href: '/exchange-rates',
},
{
text: <T id={'New tasks'} />,
label: true,
},
{
divider: true,
},
{
text: <T id={'make_journal_entry'} />,
href: '/make-journal-entry',
},
],
},
{
text: <T id={'banking'} />,
children: [],
},
{
text: <T id={'expenses'} />,
children: [
{
text: <T id={'expenses'} />,
href: '/expenses',
},
{
text: <T id={'New tasks'} />,
label: true,
},
{
divider: true,
},
{
text: <T id={'new_expense'} />,
href: '/expenses/new',
},
],
},
{
text: <T id={'Reports'} />,
children: [
{
text: <T id={'balance_sheet'} />,
href: '/financial-reports/balance-sheet',
},
{
text: <T id={'trial_balance_sheet'} />,
href: '/financial-reports/trial-balance-sheet',
},
{
text: <T id={'journal'} />,
href: '/financial-reports/journal-sheet',
},
{
text: <T id={'general_ledger'} />,
href: '/financial-reports/general-ledger',
},
{
text: <T id={'profit_loss_sheet'} />,
href: '/financial-reports/profit-loss-sheet',
},
{
text: <T id={'cash_flow_statement'} />,
href: '/financial-reports/cash-flow',
},
{
text: <T id={'AR_Aging_Summary'} />,
href: '/financial-reports/receivable-aging-summary',
},
{
text: <T id={'AP_Aging_Summary'} />,
href: '/financial-reports/payable-aging-summary',
},
{
text: <T id={'Sales/Purchases'} />,
label: true,
},
{
divider: true,
},
{
text: <T id={'purchases_by_items'} />,
href: '/financial-reports/purchases-by-items',
},
{
text: <T id={'sales_by_items'} />,
href: '/financial-reports/sales-by-items',
},
{
text: <T id={'customers_transactions'} />,
href: '/financial-reports/transactions-by-customers',
},
{
text: <T id={'vendors_transactions'} />,
href: '/financial-reports/transactions-by-vendors',
},
{
text: <T id={'customers_balance_summary'} />,
href: '/financial-reports/customers-balance-summary',
},
{
text: <T id={'vendors_balance_summary'} />,
href: '/financial-reports/vendors-balance-summary',
},
{
text: <T id={'inventory'} />,
label: true,
},
{
divider: true,
},
{
text: <T id={'inventory_item_details'} />,
href: '/financial-reports/inventory-item-details',
},
{
text: <T id={'inventory_valuation'} />,
href: '/financial-reports/inventory-valuation',
},
],
},
{
text: <T id={'system'} />,
enableBilling: true,
label: true,
},
{
text: <T id={'preferences'} />,
href: '/preferences',
},
{
text: <T id={'billing'} />,
href: '/billing',
enableBilling: true,
},
];