️ coffee

This commit is contained in:
Erin Schnabel 2025-11-21 21:38:06 -05:00
parent 68de05b5d2
commit 1e10f70f57
No known key found for this signature in database
4 changed files with 19 additions and 2 deletions

View file

@ -124,5 +124,6 @@ jobs:
gh release upload "${{ steps.build.outputs.version }}" --clobber \
${{ github.event.repository.name }}-${{ steps.build.outputs.version }}.zip \
'./build/main.js#main.js' \
'./build/styles.css#styles.css' \
'./manifest.json' \
'./manifest-beta.json'

View file

@ -15,7 +15,7 @@ const parameters = {
banner: {
js: banner,
},
entryPoints: ['src/main.ts'],
entryPoints: ['src/main.ts', 'src/styles.css'],
bundle: true,
external: [
'obsidian',
@ -54,4 +54,4 @@ if (prod) {
} else {
const ctx = await esbuild.context(parameters);
await ctx.watch()
}
}

View file

@ -153,6 +153,15 @@ export class DeckNotesSettingsTab extends PluginSettingTab {
"frontmatter or inline before each H2. Lines starting " +
"with #flashcards are stripped from display.",
});
const div = this.containerEl.createDiv("deck-cards-coffee");
div.createEl("a", {
href: "https://www.buymeacoffee.com/ebullient",
}).createEl("img", {
attr: {
src: "https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=☕&slug=ebullient&button_colour=8e6787&font_colour=ebebeb&font_family=Inter&outline_colour=392a37&coffee_colour=ecc986",
},
});
}
/** Save on exit */

7
src/styles.css Normal file
View file

@ -0,0 +1,7 @@
.deck-cards-coffee {
text-align: center;
img {
margin: auto;
height: 30px;
}
}