Compare commits

..

No commits in common. "master" and "1.2.2" have entirely different histories.

5 changed files with 5 additions and 45 deletions

27
main.ts
View file

@ -30,33 +30,6 @@ export default class FantasyPlugin extends Plugin {
}
});
//Command to open Modal dialog
this.addCommand({
id: 'open-fantasy-generator',
name: 'Open Fantasy Generator',
callback: () => {
new GeneratorModal(this.app, (result) => {
const copyContent = async () => {
//Try to see if any generators spit out an Error or if copying the string fails.
try {
if (result instanceof Error) {
new Notice(`${result}`);
} else {
await navigator.clipboard.writeText(result);
new Notice(`${result} was copied to the clipboard.`);
}
} catch (err) {
console.error('Failed to copy: ', err);
new Notice("Failed to copy, Check error in console.");
}
}
copyContent();
}, this).open();
},
});
//Register the InlineGeneratorSuggester to the Editor suggester.
this.registerEditorSuggest(new InlineGeneratorSuggester(this.getOptionsForSuggest, this));

View file

@ -1,7 +1,7 @@
{
"id": "fantasy-content-generator",
"name": "Fantasy Content Generator",
"version": "1.2.4",
"version": "1.2.2",
"minAppVersion": "0.15.0",
"description": "A Fantasy Content Generator for Obsidian for All Your TTRPG / World Building Needs",
"author": "Gregory Jagermeister ",

View file

@ -1,6 +1,6 @@
{
"name": "fantasy-content-generator",
"version": "1.2.4",
"version": "1.2.2",
"description": "A Fantasy Content Generator For all your TTRPG Needs",
"main": "main.js",
"scripts": {

View file

@ -1,15 +1,4 @@
.theme-light .OFCGDetails {
border: 1px solid #ccc;
box-shadow: 0px 12px 0px 0px rgba(255, 255, 255, 0.37);
background-color: #f0f0f0;
}
.theme-light .OFCGDetails[open] summary {
border-bottom: 1px solid #666;
margin-bottom: 0.5em;
}
.theme-dark .OFCGDetails {
.OFCGDetails {
border: 1px solid #272727;
box-shadow: 0px 12px 0px 0px rgba(0, 0, 0, 0.37);
background-color: #313131;
@ -27,7 +16,7 @@
padding: 0.5em;
}
.theme-dark .OFCGDetails[open] summary {
.OFCGDetails[open] summary {
border-bottom: 1px solid #aaa;
margin-bottom: 0.5em;
}

View file

@ -1,5 +1,3 @@
{
"1.2.3": "0.15.0",
"1.2.2": "0.15.0",
"1.2.4": "0.15.0"
"1.2.2": "0.15.0"
}