Skip to content

Commit

Permalink
Merge pull request #908 from AbleKSaju/fix_docs_url
Browse files Browse the repository at this point in the history
fix: invalid docs url
  • Loading branch information
rtdany10 authored Aug 8, 2024
2 parents 1e09f5c + ca1b388 commit 0420228
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/components/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export default defineComponent({
reportIssue,
toggleSidebar,
openDocumentation() {
ipc.openLink('https://docs.frappebooks.com/' + docsPathRef.value);
ipc.openLink('https://docs.frappe.io/' + docsPathRef.value);
},
setActiveGroup() {
const { fullPath } = this.$router.currentRoute.value;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Dashboard/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default {
return { period: 'This Year' };
},
activated() {
docsPathRef.value = 'analytics/dashboard';
docsPathRef.value = 'books/dashboard';
},
deactivated() {
docsPathRef.value = '';
Expand Down
52 changes: 26 additions & 26 deletions src/utils/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,40 +103,40 @@ export function updateConfigFiles(fyo: Fyo): ConfigFile {

export const docsPathMap: Record<string, string | undefined> = {
// Analytics
Dashboard: 'analytics/dashboard',
Reports: 'analytics/reports',
GeneralLedger: 'analytics/general-ledger',
ProfitAndLoss: 'analytics/profit-and-loss',
BalanceSheet: 'analytics/balance-sheet',
TrialBalance: 'analytics/trial-balance',
Dashboard: 'books/dashboard',
Reports: 'books/reports',
GeneralLedger: 'books/general-ledger',
ProfitAndLoss: 'books/profit-and-loss',
BalanceSheet: 'books/balance-sheet',
TrialBalance: 'books/trial-balance',

// Transactions
[ModelNameEnum.SalesInvoice]: 'transactions/sales-invoices',
[ModelNameEnum.PurchaseInvoice]: 'transactions/purchase-invoices',
[ModelNameEnum.Payment]: 'transactions/payments',
[ModelNameEnum.JournalEntry]: 'transactions/journal-entries',
[ModelNameEnum.SalesInvoice]: 'books/sales-invoices',
[ModelNameEnum.PurchaseInvoice]: 'books/purchase-invoices',
[ModelNameEnum.Payment]: 'books/payments',
[ModelNameEnum.JournalEntry]: 'books/journal-entries',

// Inventory
[ModelNameEnum.StockMovement]: 'inventory/stock-movement',
[ModelNameEnum.Shipment]: 'inventory/shipment',
[ModelNameEnum.PurchaseReceipt]: 'inventory/purchase-receipt',
StockLedger: 'inventory/stock-ledger',
StockBalance: 'inventory/stock-balance',
[ModelNameEnum.Batch]: 'inventory/batches',
[ModelNameEnum.StockMovement]: 'books/stock-movement',
[ModelNameEnum.Shipment]: 'books/shipment',
[ModelNameEnum.PurchaseReceipt]: 'books/purchase-receipt',
StockLedger: 'books/stock-ledger',
StockBalance: 'books/stock-balance',
[ModelNameEnum.Batch]: 'books/batches',

// Entries
Entries: 'entries/entries',
[ModelNameEnum.Party]: 'entries/party',
[ModelNameEnum.Item]: 'entries/items',
[ModelNameEnum.Tax]: 'entries/taxes',
[ModelNameEnum.PrintTemplate]: 'miscellaneous/print-templates',
Entries: 'books/books',
[ModelNameEnum.Party]: 'books/party',
[ModelNameEnum.Item]: 'books/items',
[ModelNameEnum.Tax]: 'books/taxes',
[ModelNameEnum.PrintTemplate]: 'books/print-templates',

// Miscellaneous
Search: 'miscellaneous/search',
NumberSeries: 'miscellaneous/number-series',
ImportWizard: 'miscellaneous/import-wizard',
Settings: 'miscellaneous/settings',
ChartOfAccounts: 'miscellaneous/chart-of-accounts',
Search: 'books/search',
NumberSeries: 'books/number-series',
ImportWizard: 'books/import-wizard',
Settings: 'books/settings',
ChartOfAccounts: 'books/chart-of-accounts',
};

export async function getDataURL(type: string, data: Uint8Array) {
Expand Down

0 comments on commit 0420228

Please sign in to comment.