mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-27 07:31:46 +01:00
16 lines
554 B
TypeScript
16 lines
554 B
TypeScript
import { Container } from "@/models/Container";
|
|
|
|
const DOZZLE_HOST = "DOZZLE_HOST";
|
|
export const sessionHost = useSessionStorage<string | null>(DOZZLE_HOST, null);
|
|
|
|
if (config.hosts.length === 1 && !sessionHost.value) {
|
|
sessionHost.value = config.hosts[0].id;
|
|
}
|
|
|
|
export function persistentVisibleKeys(container: Ref<Container>) {
|
|
return computed(() => useStorage(container.value.storageKey, []));
|
|
}
|
|
|
|
const DOZZLE_PINNED_CONTAINERS = "DOZZLE_PINNED_CONTAINERS";
|
|
export const pinnedContainers = useStorage(DOZZLE_PINNED_CONTAINERS, new Set<string>());
|