mirror of
https://github.com/ebullient/obsidian-deck-notes.git
synced 2026-07-22 06:40:43 +00:00
☕️ coffee
This commit is contained in:
parent
68de05b5d2
commit
1e10f70f57
4 changed files with 19 additions and 2 deletions
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
7
src/styles.css
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
.deck-cards-coffee {
|
||||
text-align: center;
|
||||
img {
|
||||
margin: auto;
|
||||
height: 30px;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue