2023-08-11 19:01:10 +02:00
|
|
|
export const defaultSettings: JSPSettings = {
|
|
|
|
url: "http://localhost:8080",
|
2023-08-16 12:47:47 +02:00
|
|
|
shared: [],
|
|
|
|
stripFrontmatter: 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;
|
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
|
|
|
|
|
|
|
}
|