mirror of
https://github.com/acedanger/finance.git
synced 2025-12-05 22:50:12 -08:00
Add VSCode task for automatic build on project open and update dependencies
Remove .vscode from .gitignore to allow for project-specific settings. Introduce a VSCode task to run `npm run dev` automatically when the project is opened. Update environment configuration files and dependencies to enhance support for the Node adapter. Fixes #13
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { atom } from "nanostores";
|
||||
import type { Transaction } from "../types";
|
||||
import { atom } from 'nanostores';
|
||||
import type { Transaction } from '../types';
|
||||
|
||||
// Atom to hold the ID of the currently selected account
|
||||
export const currentAccountId = atom<string | null>(null);
|
||||
@@ -39,9 +39,7 @@ export function transactionSaved(transaction: Transaction) {
|
||||
}
|
||||
// Potentially trigger UI updates or refreshes here
|
||||
// This might involve dispatching a custom event or calling a refresh function
|
||||
document.dispatchEvent(
|
||||
new CustomEvent("transactionSaved", { detail: { transaction } })
|
||||
);
|
||||
document.dispatchEvent(new CustomEvent('transactionSaved', { detail: { transaction } }));
|
||||
|
||||
// Trigger a general refresh after saving too, to update balance
|
||||
triggerRefresh();
|
||||
|
||||
Reference in New Issue
Block a user