clone of repo on github
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

41 lines
993 B

import { writable } from "svelte/store";
// The old feedType store is no longer needed since we use the new relay management system
// All relay selection is now handled by the activeInboxRelays and activeOutboxRelays stores in ndk.ts
export const idList = writable<string[]>([]);
export const alexandriaKinds = writable<number[]>([30040, 30041, 30818]);
export interface PublicationLayoutVisibility {
toc: boolean;
blog: boolean;
main: boolean;
inner: boolean;
discussion: boolean;
editing: boolean;
}
const defaultVisibility: PublicationLayoutVisibility = {
toc: false,
blog: true,
main: true,
inner: false,
discussion: true,
editing: false,
};
function createVisibilityStore() {
const { subscribe, set, update } = writable<PublicationLayoutVisibility>({
...defaultVisibility,
});
return {
subscribe,
set,
update,
reset: () => set({ ...defaultVisibility }),
};
}
export const publicationColumnVisibility = createVisibilityStore();