-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
31 lines (18 loc) · 813 Bytes
/
Copy pathindex.js
File metadata and controls
31 lines (18 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { loadProducts} from "./data/productManager.js";
import { renderProducts } from "./Main/render.js";
import { applyingAdminFilters } from "./Main/Admin-filter.js";
import {applyProductForm} from "./Main/input-body.js";
import { userInfo } from "./Main/index-user-info.js";
import { fileImagePreview } from "./data/preview.js";
import { unverifiedLogout, logOut } from "./Authentication/Auth/logout.js";
import { loadDarkModePreference, toggleDarkMode } from "./Main/dark-toggle.js";
const products = await loadProducts();
applyingAdminFilters();
userInfo();
unverifiedLogout();
logOut();
fileImagePreview();
applyProductForm();
renderProducts(products);
loadDarkModePreference();
document.getElementById('theme-toggle').addEventListener('click', toggleDarkMode);