mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 07:10:33 +00:00
- feat: Style tweaks.
- feat: footer links on dashboard. - feat: Inactive accounts view.
This commit is contained in:
@@ -1,12 +1,15 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import DashboardTopbar from 'components/Dashboard/DashboardTopbar';
|
import DashboardTopbar from 'components/Dashboard/DashboardTopbar';
|
||||||
import DashboardContentRoute from 'components/Dashboard/DashboardContentRoute';
|
import DashboardContentRoute from 'components/Dashboard/DashboardContentRoute';
|
||||||
|
import DashboardFooter from 'components/Dashboard/DashboardFooter';
|
||||||
|
|
||||||
export default function() {
|
export default function() {
|
||||||
return (
|
return (
|
||||||
<div className="dashboard-content" id="dashboard">
|
<div className="dashboard-content" id="dashboard">
|
||||||
<DashboardTopbar />
|
<DashboardTopbar />
|
||||||
<DashboardContentRoute />
|
<DashboardContentRoute />
|
||||||
|
|
||||||
|
<DashboardFooter />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
24
client/src/components/Dashboard/DashboardFooter.js
Normal file
24
client/src/components/Dashboard/DashboardFooter.js
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
import footerLinks from 'config/footerLinks';
|
||||||
|
import { For } from 'components';
|
||||||
|
|
||||||
|
function FooterLinkItem({ title, link }) {
|
||||||
|
return (
|
||||||
|
<div class="">
|
||||||
|
<a href={link} target="_blank">
|
||||||
|
{title}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function DashboardFooter({}) {
|
||||||
|
return (
|
||||||
|
<div class="dashboard__footer">
|
||||||
|
<div class="footer-links">
|
||||||
|
<For render={FooterLinkItem} of={footerLinks} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
33
client/src/config/footerLinks.js
Normal file
33
client/src/config/footerLinks.js
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default [
|
||||||
|
{
|
||||||
|
title: 'Blog',
|
||||||
|
link: '#',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Support',
|
||||||
|
link: '#',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Status',
|
||||||
|
link: '#',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Pricing',
|
||||||
|
link: '#',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Solution Partner Program',
|
||||||
|
link: '#',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Docs',
|
||||||
|
link: '#',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Bigcapital',
|
||||||
|
link: '#',
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -301,6 +301,30 @@
|
|||||||
color: #555;
|
color: #555;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__footer{
|
||||||
|
margin-top: auto;
|
||||||
|
padding: 8px 0;
|
||||||
|
border-top: 1px solid #ececec;
|
||||||
|
|
||||||
|
.footer-links{
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
> div{
|
||||||
|
font-size: 12px;
|
||||||
|
margin-right: 20px;
|
||||||
|
display: inline;
|
||||||
|
|
||||||
|
a{
|
||||||
|
color: #8c8c8c;
|
||||||
|
|
||||||
|
&:hover{
|
||||||
|
color: $blue2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabs--dashboard-views{
|
.tabs--dashboard-views{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
$sidebar-background: #01194e;
|
$sidebar-background: #01194e;
|
||||||
$sidebar-text-color: #fff;
|
$sidebar-text-color: #fff;
|
||||||
$sidebar-width: 100%;
|
$sidebar-width: 100%;
|
||||||
$sidebar-menu-item-color: rgba(255, 255, 255, 0.85);
|
$sidebar-menu-item-color: rgba(255, 255, 255, 0.9);
|
||||||
$sidebar-popover-submenu-bg: rgb(1, 20, 62);
|
$sidebar-popover-submenu-bg: rgb(1, 20, 62);
|
||||||
$sidebar-menu-label-color: rgba(255, 255, 255, 0.5);
|
$sidebar-menu-label-color: rgba(255, 255, 255, 0.5);
|
||||||
$sidebar-submenu-item-color: rgba(255, 255, 255, 0.55);
|
$sidebar-submenu-item-color: rgba(255, 255, 255, 0.55);
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ exports.seed = (knex) => {
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
// Inserts seed entries
|
// Inserts seed entries
|
||||||
return knex('views').insert([
|
return knex('views').insert([
|
||||||
|
|
||||||
// Accounts
|
// Accounts
|
||||||
|
{ id: 15, name: 'Inactive', roles_logic_expression: '1', resource_id: 1, predefined: true },
|
||||||
{ id: 1, name: 'Assets', roles_logic_expression: '1', resource_id: 1, predefined: true },
|
{ id: 1, name: 'Assets', roles_logic_expression: '1', resource_id: 1, predefined: true },
|
||||||
{ id: 2, name: 'Liabilities', roles_logic_expression: '1', resource_id: 1, predefined: true },
|
{ id: 2, name: 'Liabilities', roles_logic_expression: '1', resource_id: 1, predefined: true },
|
||||||
{ id: 3, name: 'Equity', roles_logic_expression: '1', resource_id: 1, predefined: true },
|
{ id: 3, name: 'Equity', roles_logic_expression: '1', resource_id: 1, predefined: true },
|
||||||
|
|||||||
@@ -11,13 +11,14 @@ exports.seed = (knex) => {
|
|||||||
{ id: 3, field_id: 6, index: 1, comparator: 'equals', value: 'equity', view_id: 3 },
|
{ id: 3, field_id: 6, index: 1, comparator: 'equals', value: 'equity', view_id: 3 },
|
||||||
{ id: 4, field_id: 6, index: 1, comparator: 'equals', value: 'income', view_id: 4 },
|
{ id: 4, field_id: 6, index: 1, comparator: 'equals', value: 'income', view_id: 4 },
|
||||||
{ id: 5, field_id: 6, index: 1, comparator: 'equals', value: 'expense', view_id: 5 },
|
{ id: 5, field_id: 6, index: 1, comparator: 'equals', value: 'expense', view_id: 5 },
|
||||||
|
{ id: 12, field_id: 17, index: 1, comparator: 'is', value: 1, view_id: 15 },
|
||||||
|
|
||||||
// Items
|
// Items.
|
||||||
{ id: 6, field_id: 12, index: 1, comparator: 'equals', value: 'service', view_id: 6 },
|
{ id: 6, field_id: 12, index: 1, comparator: 'equals', value: 'service', view_id: 6 },
|
||||||
{ id: 7, field_id: 12, index: 1, comparator: 'equals', value: 'inventory', view_id: 7 },
|
{ id: 7, field_id: 12, index: 1, comparator: 'equals', value: 'inventory', view_id: 7 },
|
||||||
{ id: 8, field_id: 12, index: 1, comparator: 'equals', value: 'non-inventory', view_id: 8 },
|
{ id: 8, field_id: 12, index: 1, comparator: 'equals', value: 'non-inventory', view_id: 8 },
|
||||||
|
|
||||||
// Manual Journals
|
// Manual Journals.
|
||||||
{ id: 9, field_id: 26, index: 1, comparator: 'equals', value: 'Journal', view_id: 9 },
|
{ id: 9, field_id: 26, index: 1, comparator: 'equals', value: 'Journal', view_id: 9 },
|
||||||
{ id: 10, field_id: 26, index: 1, comparator: 'equals', value: 'CreditNote', view_id: 10 },
|
{ id: 10, field_id: 26, index: 1, comparator: 'equals', value: 'CreditNote', view_id: 10 },
|
||||||
{ id: 11, field_id: 26, index: 1, comparator: 'equals', value: 'Reconciliation', view_id: 11 },
|
{ id: 11, field_id: 26, index: 1, comparator: 'equals', value: 'Reconciliation', view_id: 11 },
|
||||||
|
|||||||
Reference in New Issue
Block a user