Complete system for getting + saving Product Categories with new database, server, and client architecture.

This commit is contained in:
2024-09-01 21:57:46 +01:00
parent ba50aec9c9
commit b3e801e1ec
303 changed files with 4358 additions and 2885 deletions

View File

@@ -13,6 +13,7 @@ import { PageStoreProductPermutations } from './pages/page_store_product_permuta
// import { PageStoreProducts } from './pages/page_store_products.js';
// import { PageStoreProductVariations } from './pages/page_store_product_variations.js';
import { PageStoreStockItems } from './pages/page_store_stock_items.js';
import API from './api.js';
import DOM from './dom.js';
export default class Router {
@@ -66,13 +67,6 @@ export default class Router {
const url = Router.getUrlFromHash(hash);
this.navigateToUrl(url, data);
}
static getUrlFromHash(hash) {
if (hash == null) hash = hashPageHome;
console.log("getUrlFromHash:");
console.log("base url: " + _pathHost + "\nhash: " + hash);
return _pathHost + hash;
}
navigateToUrl(url, data = null, appendHistory = true) {
this.leavePageCurrent();