Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
export const combineCELFilters = (...filters: Array<string | undefined>): string | undefined => {
const conditions = filters.filter((filter): filter is string => Boolean(filter));
return conditions.length === 0 ? undefined : conditions.map((filter) => `(${filter})`).join(" && ");
};
export type CollectionScope = { kind: "all" } | { kind: "space"; name: string };
export const buildCollectionScopeFilter = (scope: CollectionScope): string | undefined =>
scope.kind === "space" ? `space == ${JSON.stringify(scope.name)}` : undefined;