mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-23 19:05:16 +02:00
feat: remove plugin version references from Obsidian plugin routes, schemas, and UI components for cleaner integration
This commit is contained in:
parent
87150a6d7f
commit
54e66e131a
5 changed files with 0 additions and 16 deletions
|
|
@ -58,7 +58,6 @@ export class PermanentError extends Error {
|
|||
export interface ApiClientOptions {
|
||||
getServerUrl: () => string;
|
||||
getToken: () => string;
|
||||
pluginVersion: string;
|
||||
onAuthError?: () => void;
|
||||
}
|
||||
|
||||
|
|
@ -73,10 +72,6 @@ export class SurfSenseApiClient {
|
|||
Object.assign(this.opts, partial);
|
||||
}
|
||||
|
||||
get pluginVersion(): string {
|
||||
return this.opts.pluginVersion;
|
||||
}
|
||||
|
||||
async health(): Promise<HealthResponse> {
|
||||
return await this.request<HealthResponse>("GET", "/api/v1/obsidian/health");
|
||||
}
|
||||
|
|
@ -113,7 +108,6 @@ export class SurfSenseApiClient {
|
|||
vault_id: input.vaultId,
|
||||
vault_name: input.vaultName,
|
||||
search_space_id: input.searchSpaceId,
|
||||
plugin_version: this.opts.pluginVersion,
|
||||
device_id: input.deviceId,
|
||||
}
|
||||
);
|
||||
|
|
|
|||
|
|
@ -34,12 +34,9 @@ export default class SurfSensePlugin extends Plugin {
|
|||
this.seedIdentity();
|
||||
await this.saveSettings();
|
||||
|
||||
const pluginVersion = this.manifest.version;
|
||||
|
||||
this.api = new SurfSenseApiClient({
|
||||
getServerUrl: () => this.settings.serverUrl,
|
||||
getToken: () => this.settings.apiToken,
|
||||
pluginVersion,
|
||||
});
|
||||
|
||||
this.queue = new PersistentQueue(this.settings.queue ?? [], {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue