ObsidianJustSharePlease/src/settings.ts

27 lines
580 B
TypeScript
Raw Normal View History

2023-08-11 19:01:10 +02:00
export const defaultSettings: JSPSettings = {
2023-08-17 11:56:40 +02:00
url: "https://jsp.ellpeck.de",
2023-08-16 12:47:47 +02:00
shared: [],
stripFrontmatter: true,
includeNoteName: true
2023-08-11 19:01:10 +02:00
};
2023-06-25 18:16:06 +02:00
2023-08-16 14:21:40 +02:00
// TODO add a setting for auto-refreshing uploads when saving
// TODO add a setting for auto-removing JSP shares when the original file is deleted
2023-06-25 18:16:06 +02:00
export interface JSPSettings {
2023-08-11 19:01:10 +02:00
url: string;
shared: SharedItem[];
2023-08-16 12:47:47 +02:00
stripFrontmatter: boolean;
includeNoteName: boolean;
2023-08-11 19:01:10 +02:00
}
export interface SharedItem {
id: string;
password: string;
2023-08-16 14:21:40 +02:00
// TODO auto-update path when file is moved
2023-08-11 19:01:10 +02:00
path: string;
2023-06-25 18:16:06 +02:00
}