Imported libraries, removed next-basics.

This commit is contained in:
Mike Cao 2025-02-05 13:30:28 -08:00
parent 31266cb1ac
commit 113022ed17
44 changed files with 361 additions and 180 deletions

View file

@ -8,7 +8,7 @@ import {
THEME_CONFIG,
TIMEZONE_CONFIG,
} from 'lib/constants';
import { getItem } from 'next-basics';
import { getItem } from 'lib/storage';
import { getTimezone } from 'lib/date';
function getDefaultTheme() {

View file

@ -1,6 +1,6 @@
import { create } from 'zustand';
import { DASHBOARD_CONFIG, DEFAULT_WEBSITE_LIMIT } from 'lib/constants';
import { getItem, setItem } from 'next-basics';
import { getItem, setItem } from 'lib/storage';
export const initialState = {
showCharts: true,

View file

@ -2,7 +2,7 @@ import { create } from 'zustand';
import { produce } from 'immer';
import semver from 'semver';
import { CURRENT_VERSION, VERSION_CHECK, UPDATES_URL } from 'lib/constants';
import { getItem } from 'next-basics';
import { getItem } from 'lib/storage';
const initialState = {
current: CURRENT_VERSION,