Skip to content

Commit 0312f44

Browse files
committed
invoice docs - added
1 parent 34edd2a commit 0312f44

25 files changed

+795
-94
lines changed

components/layout/CustomAside.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,20 @@ const route = useRoute();
4444
const appConfig = useAppConfig();
4545
4646
const sidebarItems = computed(() => {
47-
const path = route.path;
47+
const path = route.path.replace(/^\/+|\/+$/g, ''); // Remove leading/trailing slashes
4848
4949
const sidebarConfig = appConfig.shadcnDocs?.sidebar || {};
5050
51-
// Find which config section matches the current route
52-
const key = Object.keys(sidebarConfig).find((k) => path.startsWith(k));
51+
// Normalize config keys too
52+
const normalizedConfig = Object.fromEntries(
53+
Object.entries(sidebarConfig).map(([key, value]) => [
54+
key.replace(/^\/+|\/+$/g, ''),
55+
value,
56+
])
57+
);
5358
54-
return key ? sidebarConfig[key] : [];
59+
const key = Object.keys(normalizedConfig).find((k) => path.startsWith(k));
60+
return key ? normalizedConfig[key] : [];
5561
});
5662
5763
const tree = computed(() => {

www/app.config.ts

Lines changed: 119 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,18 @@ export default defineAppConfig({
4646
target: '_self',
4747
showLinkIcon: false,
4848
},
49+
{
50+
title: 'Invoice',
51+
to: '/comfortinvoice',
52+
target: '_self',
53+
showLinkIcon: false,
54+
},
55+
{
56+
title: 'Bookings',
57+
to: '/comfortbookings',
58+
target: '_self',
59+
showLinkIcon: false,
60+
},
4961
{
5062
title: 'Events',
5163
to: '/comfortevents',
@@ -80,112 +92,131 @@ export default defineAppConfig({
8092
text: 'Comfort Accounting',
8193
collapsible: true,
8294
items: [
83-
{
84-
text: 'How to install',
85-
link: '/comfortaccounting/how-to-install',
86-
},
87-
{
88-
text: 'How to Translate',
89-
link: '/comfortaccounting/how-to-translate',
90-
},
91-
{
92-
text: 'Template Override',
93-
link: '/comfortaccounting/template-override',
94-
},
95-
{
96-
text: 'Hooks and Filters',
97-
link: '/comfortaccounting/hooks-and-filters',
98-
},
99-
{
100-
text: 'Code Samples',
101-
link: '/comfortaccounting/code-samples',
102-
},
95+
{ text: 'How to install', link: '/comfortaccounting/how-to-install' },
96+
{ text: 'How to Translate', link: '/comfortaccounting/how-to-translate' },
97+
{ text: 'Template Override', link: '/comfortaccounting/template-override' },
98+
{ text: 'Hooks and Filters', link: '/comfortaccounting/hooks-and-filters' },
99+
{ text: 'Code Samples', link: '/comfortaccounting/code-samples' },
103100
],
104101
},
105102
{
106103
text: 'User Guide',
107104
collapsible: true,
108105
items: [
109-
{
110-
text: 'General',
111-
link: '/comfortaccounting/user-guide/general',
112-
},
113-
{
114-
text: 'Dashboard',
115-
link: '/comfortaccounting/user-guide/dashboard',
116-
},
117-
{
118-
text: 'Agency Manager',
119-
link: '/comfortaccounting/user-guide/agency-manager',
120-
},
121-
{
122-
text: 'Account Manager',
123-
link: '/comfortaccounting/user-guide/account-manager',
124-
},
125-
{
126-
text: 'Category Manager',
127-
link: '/comfortaccounting/user-guide/category-manager',
128-
},
129-
{
130-
text: 'VC Manager',
131-
link: '/comfortaccounting/user-guide/vc-manager',
132-
},
133-
{
134-
text: 'Log Manager',
135-
link: '/comfortaccounting/user-guide/log-manager',
136-
},
137-
{
138-
text: 'Reports Manager (Pro)',
139-
link: '/comfortaccounting/user-guide/reports-manager',
140-
},
141-
{
142-
text: 'Settings Manager',
143-
link: '/comfortaccounting/user-guide/settings-manager',
144-
},
145-
{
146-
text: 'Tools Manager',
147-
link: '/comfortaccounting/user-guide/tools-manager',
148-
},
149-
{
150-
text: 'Emails Manager',
151-
link: '/comfortaccounting/user-guide/emails-manager',
152-
},
153-
{
154-
text: 'Helps & Updates',
155-
link: '/comfortaccounting/user-guide/helps-updates',
156-
},
157-
{
158-
text: 'Integrations',
159-
link: '/comfortaccounting/user-guide/integrations',
160-
},
106+
{ text: 'General', link: '/comfortaccounting/user-guide/general' },
107+
{ text: 'Dashboard', link: '/comfortaccounting/user-guide/dashboard' },
108+
{ text: 'Agency Manager', link: '/comfortaccounting/user-guide/agency-manager' },
109+
{ text: 'Account Manager', link: '/comfortaccounting/user-guide/account-manager' },
110+
{ text: 'Category Manager', link: '/comfortaccounting/user-guide/category-manager' },
111+
{ text: 'VC Manager', link: '/comfortaccounting/user-guide/vc-manager' },
112+
{ text: 'Log Manager', link: '/comfortaccounting/user-guide/log-manager' },
113+
{ text: 'Reports Manager (Pro)', link: '/comfortaccounting/user-guide/reports-manager' },
114+
{ text: 'Settings Manager', link: '/comfortaccounting/user-guide/settings-manager' },
115+
{ text: 'Tools Manager', link: '/comfortaccounting/user-guide/tools-manager' },
116+
{ text: 'Emails Manager', link: '/comfortaccounting/user-guide/emails-manager' },
117+
{ text: 'Helps & Updates', link: '/comfortaccounting/user-guide/helps-updates' },
118+
{ text: 'Integrations', link: '/comfortaccounting/user-guide/integrations' },
161119
],
162120
},
163121
{
164122
text: 'Shortcode',
165123
collapsible: true,
166124
items: [
167-
{
168-
text: '7 Shortcodes',
169-
link: '/comfortaccounting/shortcodes',
170-
},
125+
{ text: '7 Shortcodes', link: '/comfortaccounting/shortcodes' },
126+
],
127+
},
128+
{
129+
text: 'Widgets',
130+
collapsible: true,
131+
items: [
132+
{ text: 'Classic Widgets', link: '/comfortaccounting/classic-widgets' },
133+
{ text: 'Elementor Widget', link: '/comfortaccounting/elementor-widgets' },
134+
{ text: 'Gutenberg Blocks', link: '/comfortaccounting/gutenberg-blocks' },
135+
],
136+
},
137+
],
138+
139+
'/comfortinvoice': [
140+
{
141+
text: 'Comfort Invoice',
142+
collapsible: true,
143+
items: [
144+
{ text: 'How to install', link: '/comfortinvoice/how-to-install' },
145+
{ text: 'How to Translate', link: '/comfortinvoice/how-to-translate' },
146+
{ text: 'Template Override', link: '/comfortinvoice/template-override' },
147+
{ text: 'Hooks and Filters', link: '/comfortinvoice/hooks-and-filters' },
148+
{ text: 'Code Samples', link: '/comfortinvoice/code-samples' },
149+
],
150+
},
151+
{
152+
text: 'User Guide',
153+
collapsible: true,
154+
items: [
155+
{ text: 'General', link: '/comfortinvoice/user-guide/general' },
156+
{ text: 'Dashboard', link: '/comfortinvoice/user-guide/dashboard' },
157+
{ text: 'Invoice Manager', link: '/comfortinvoice/user-guide/invoice-manager' },
158+
{ text: 'Customer Manager', link: '/comfortinvoice/user-guide/customer-manager' },
159+
{ text: 'Item Manager', link: '/comfortinvoice/user-guide/item-manager' },
160+
{ text: 'Tax Manager', link: '/comfortinvoice/user-guide/tax-manager' },
161+
{ text: 'Payment History Manager', link: '/comfortinvoice/user-guide/payment-history-manager' },
162+
{ text: 'Settings Manager', link: '/comfortinvoice/user-guide/settings-manager' },
163+
{ text: 'Tools Manager', link: '/comfortinvoice/user-guide/tools-manager' },
164+
{ text: 'Emails Manager', link: '/comfortinvoice/user-guide/emails-manager' },
165+
{ text: 'Helps & Updates', link: '/comfortinvoice/user-guide/helps-updates' },
166+
{ text: 'WooCommerce Integration', link: '/comfortinvoice/user-guide/woo-integration' },
167+
],
168+
},
169+
{
170+
text: 'Widgets',
171+
collapsible: true,
172+
items: [
173+
{ text: 'Dashboard Widgets', link: '/comfortinvoice/dashboard-widgets' },
174+
{ text: 'Classic Widgets', link: '/comfortinvoice/classic-widgets' },
175+
{ text: 'Elementor Widget', link: '/comfortinvoice/elementor-widgets' },
176+
{ text: 'Gutenberg Blocks', link: '/comfortinvoice/gutenberg-blocks' },
177+
],
178+
},
179+
],
180+
181+
'/comfortbookings': [
182+
{
183+
text: 'Comfort Bookings',
184+
collapsible: true,
185+
items: [
186+
{ text: 'How to install', link: '/comfortbookings/how-to-install' },
187+
{ text: 'How to Translate', link: '/comfortbookings/how-to-translate' },
188+
{ text: 'Template Override', link: '/comfortbookings/template-override' },
189+
{ text: 'Hooks and Filters', link: '/comfortbookings/hooks-and-filters' },
190+
{ text: 'Code Samples', link: '/comfortbookings/code-samples' },
191+
],
192+
},
193+
{
194+
text: 'User Guide',
195+
collapsible: true,
196+
items: [
197+
{ text: 'General', link: '/comfortbookings/user-guide/general' },
198+
{ text: 'Dashboard', link: '/comfortbookings/user-guide/dashboard' },
199+
{ text: 'Appointment Type Manager', link: '/comfortbookings/user-guide/type-manager' },
200+
{ text: 'Meeting & Booking Manager', link: '/comfortbookings/user-guide/meeting-booking-manager' },
201+
{ text: 'Public Meeting & Booking', link: '/comfortbookings/user-guide/public-meeting-booking' },
202+
{ text: 'Meeting & Booking Calendar (Pro)', link: '/comfortbookings/user-guide/calendar' },
203+
{ text: 'Payments History', link: '/comfortbookings/user-guide/payment-history-manager' },
204+
{ text: 'Orders', link: '/comfortbookings/user-guide/orders' },
205+
{ text: 'Payment Methods', link: '/comfortbookings/user-guide/payment-methods-manager' },
206+
{ text: 'Settings Manager', link: '/comfortbookings/user-guide/settings-manager' },
207+
{ text: 'Tools Manager', link: '/comfortbookings/user-guide/tools-manager' },
208+
{ text: 'Emails Manager', link: '/comfortbookings/user-guide/emails-manager' },
209+
{ text: 'SMS Alerts Manager', link: '/comfortbookings/user-guide/sms-alerts-manager' },
210+
{ text: 'Helps & Updates', link: '/comfortbookings/user-guide/helps-updates' },
171211
],
172212
},
173213
{
174214
text: 'Widgets',
175215
collapsible: true,
176216
items: [
177-
{
178-
text: 'Classic Widgets',
179-
link: '/comfortaccounting/classic-widgets',
180-
},
181-
{
182-
text: 'Elementor Widget',
183-
link: '/comfortaccounting/elementor-widgets',
184-
},
185-
{
186-
text: 'Gutenberg Blocks',
187-
link: '/comfortaccounting/gutenberg-blocks',
188-
},
217+
{ text: 'Classic Widgets', link: '/comfortbookings/classic-widgets' },
218+
{ text: 'Elementor Widget', link: '/comfortbookings/elementor-widgets' },
219+
{ text: 'Gutenberg Blocks', link: '/comfortbookings/gutenberg-blocks' },
189220
],
190221
},
191222
],

www/content/comfortaccounting/8.classic-widgets.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ card: "article"
1111

1212
# Classic Widgets
1313

14-
WordPress currently doesn’t support classic widgets but still you can enable it by using this plugin [“Classic Widgets”](https://wordpress.org/plugins/classic-widgets/)
14+
<!-- WordPress currently doesn’t support classic widgets but still you can enable it by using this plugin [“Classic Widgets”](https://wordpress.org/plugins/classic-widgets/)
1515
1616
Comfort Accounting for WordPress plugin supports classic widgets. To add Comfort Accounting classic widget from dashboard.
1717
@@ -24,4 +24,4 @@ After adding the widget to the sidebar, you can adjust the input fields and chec
2424
2525
The following classic widgets(currently 0 widgets (core and pro)) can be accessed from wordpress dashboard widget manager. We will keep adding more classic widgets for this plugin in future as needed. All widgets has shortcode and same params.
2626
27-
**Last modified:** December 9, 2024
27+
**Last modified:** December 9, 2024 -->
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: "Comfort Accounting Documentation"
3+
description: "Documentation for Comfort Accounting for WordPress"
4+
keywords: "Comfort Accounting index keywords."
5+
url: "/comfortaccounting/classic-widgets"
6+
type: "article"
7+
site_name: "Comfort ERP"
8+
image: /seo_card.png
9+
card: "article"
10+
---
11+
# Classic Widgets
12+
13+
<!-- WordPress currently doesn’t support classic widgets but still you can enable it by using this plugin [“Classic Widgets”](https://wordpress.org/plugins/classic-widgets/)
14+
15+
Comfort Accounting for WordPress plugin supports classic widgets. To add Comfort Accounting classic widget from dashboard.
16+
17+
**Appearance -> Widgets -> Comfort Accounting**
18+
19+
Drag the “CBX Changelog” widget from left to any right-side sidebar(s).
20+
21+
After adding the widget to the sidebar, you can adjust the input fields and check your frontend.
22+
\[Video coming soon\]
23+
24+
The following classic widgets(currently 0 widgets (core and pro)) can be accessed from wordpress dashboard widget manager. We will keep adding more classic widgets for this plugin in future as needed. All widgets has shortcode and same params.
25+
26+
**Last modified:** December 9, 2024 -->
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: "Comfort Invoice Documentation"
3+
description: "Documentation for Comfort Invoice"
4+
keywords: "Comfort Invoice index keywords"
5+
url: "/comfortinvoice/code-samples"
6+
type: "type"
7+
site_name: "Comfort ERP"
8+
image: /seo_card.png
9+
card: "article"
10+
---
11+
# Code Samples
12+
13+
**Last modified:** December 9, 2024
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: "Comfort Invoice Documentation"
3+
description: "Comfort Invoice index description."
4+
keywords: "Comfort Invoice index keywords."
5+
url: "/comfortinvoice/dashboard-widgets"
6+
type: "article"
7+
site_name: "Comfort ERP"
8+
image: /seo_card.png
9+
card: "article"
10+
---
11+
12+
# Dashboard Widgets
13+
14+
The **Dashboard Widgets** in **Comfort Invoice** provide a quick and efficient way to monitor key financial data directly from the dashboard. These widgets offer instant insights into recent invoices, allowing users to stay updated on their billing activities.
15+
16+
## Latest Invoices Widget ##
17+
18+
+ The widget displays the **latest 10 invoices** by default, giving users an immediate overview of recent transactions.
19+
+ Each entry includes essential invoice details such as:
20+
- **Invoice No**
21+
- **Status**
22+
- **Total Amount**
23+
- **Add Date**
24+
25+
### **Configurable Invoice Limit** ###
26+
+ Users can **customize** the number of invoices shown in the widget.
27+
+ The maximum number of invoices that can be displayed is **20**.
28+
+ This setting allows businesses to adjust their dashboard view based on their workflow and monitoring needs.
29+
30+
The **Dashboard Widgets** feature enhances invoice tracking and provides real-time updates, ensuring users have quick access to important financial information at a glance.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: "Comfort Accounting Documentation"
3+
description: "Documentation for Comfort Accounting for WordPress"
4+
keywords: "Comfort Accounting index keywords."
5+
url: "/comfortaccounting/elementor-widgets"
6+
type: "type"
7+
site_name: "Comfort ERP"
8+
image: /seo_card.png
9+
card: "article"
10+
---
11+
# Elementor Widgets
12+
13+
14+
15+
**Last modified:** December 9, 2024
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: "Comfort Accounting Documentation"
3+
description: "Documentation for Comfort Accounting for WordPress"
4+
keywords: "Comfort Accounting index keywords."
5+
url: "/comfortaccounting/gutenberg-blocks"
6+
type: "type"
7+
site_name: "Comfort ERP"
8+
image: /seo_card.png
9+
card: "article"
10+
---
11+
# Gutenberg Blocks
12+
13+
14+
15+
**Last modified:** December 9, 2024

0 commit comments

Comments
 (0)