diff --git a/src/Settings.ts b/src/Settings.ts index 16fda9e..04b0cf1 100644 --- a/src/Settings.ts +++ b/src/Settings.ts @@ -3,7 +3,7 @@ import { S3Client, GetObjectCommand, NoSuchKey, PutObjectCommand, ListObjectsCom import Ob2StaticPlugin from 'src/main'; -export interface PostProcessSettings { +export interface StaticExporterSettings { endpoint: string; region: string; bucket: string; @@ -44,6 +44,11 @@ export class Ob2StaticSettingTab extends PluginSettingTab { containerEl.empty(); + new Setting(containerEl) + .setHeading() + .setName('S3 API') + .setDesc('Or S3 compatible API') + new Setting(containerEl) .setName('S3 API ENDPOINT') .setDesc('no bucket name in it') diff --git a/src/main.ts b/src/main.ts index 1936524..1e4f936 100644 --- a/src/main.ts +++ b/src/main.ts @@ -15,7 +15,7 @@ function hashArrayBuffer(arrayBuffer: ArrayBuffer) { export default class Ob2StaticPlugin extends Plugin { - settings: PostProcessSettings; + settings: StaticExporterSettings; postsTFiles: TFile[]; allTFiles: TFile[]; client: S3Client; @@ -36,7 +36,7 @@ export default class Ob2StaticPlugin extends Plugin { new Notice('Sended GitHub Action deploy Webhook'); }); // Perform additional things with the ribbon - ribbonIconEl.addClass('my-plugin-ribbon-class'); + // ribbonIconEl.addClass('my-plugin-ribbon-class'); // This adds a status bar item to the bottom of the app. Does not work on mobile apps. // const statusBarItemEl = this.addStatusBarItem();