Compare commits

...

10 Commits

Author SHA1 Message Date
Johannes Theiner bfa0145644
Merge pull request #91 from revolter/patch-1
Fix inconsistent indentation
2024-07-31 22:06:34 +02:00
Johannes Theiner 893e489e84
Merge pull request #92 from revolter/patch-2
Fix incorrect TypeScript spelling
2024-07-31 21:47:47 +02:00
Johannes Theiner d05f42d8c5
Merge pull request #95 from tobiasvl/patch-1
Update README.md
2024-07-31 20:18:53 +02:00
Tobias V. Langhoff 47ec36c11e
Update README.md
Update link to plugin guidelines
2024-03-02 22:30:14 +01:00
iulianOnofrei (U-lee-aan) de770934b2
Fix incorrect TypeScript spelling 2024-01-21 15:20:39 +02:00
iulianOnofrei (U-lee-aan) f4debcda6b
Fix inconsistent indentation 2024-01-19 21:14:58 +02:00
Aleksey Rowan e60294b950
Update manifest description (#77) 2023-11-15 12:17:04 -05:00
Lishid 7112f01bc6
Update README.md 2023-07-25 15:17:26 -04:00
Johannes Theiner e8f03522bc
Adapt to plugin guidelines (#65)
- remove header in settings
- remove logging of changed settings value
2023-07-17 12:36:25 -04:00
Erica Xu 9be2b5d748
Update manifest.json 2023-07-11 11:37:36 -04:00
4 changed files with 8 additions and 10 deletions

View File

@ -2,8 +2,8 @@
This is a sample plugin for Obsidian (https://obsidian.md).
This project uses Typescript to provide type checking and documentation.
The repo depends on the latest plugin API (obsidian.d.ts) in Typescript Definition format, which contains TSDoc comments describing what it does.
This project uses TypeScript to provide type checking and documentation.
The repo depends on the latest plugin API (obsidian.d.ts) in TypeScript Definition format, which contains TSDoc comments describing what it does.
**Note:** The Obsidian API is still in early alpha and is subject to change at any time!
@ -41,7 +41,7 @@ Quick starting guide for new plugin devs:
## Adding your plugin to the community plugin list
- Check https://github.com/obsidianmd/obsidian-releases/blob/master/plugin-review.md
- Check the [plugin guidelines](https://docs.obsidian.md/Plugins/Releasing/Plugin+guidelines).
- Publish an initial version.
- Make sure you have a `README.md` file in the root of your repo.
- Make a pull request at https://github.com/obsidianmd/obsidian-releases to add your plugin.
@ -49,7 +49,8 @@ Quick starting guide for new plugin devs:
## How to use
- Clone this repo.
- `npm i` or `yarn` to install dependencies
- Make sure your NodeJS is at least v16 (`node --version`).
- `npm i` or `yarn` to install dependencies.
- `npm run dev` to start compilation in watch mode.
## Manually installing the plugin

View File

@ -120,8 +120,6 @@ class SampleSettingTab extends PluginSettingTab {
containerEl.empty();
containerEl.createEl('h2', {text: 'Settings for my awesome plugin.'});
new Setting(containerEl)
.setName('Setting #1')
.setDesc('It\'s a secret')
@ -129,7 +127,6 @@ class SampleSettingTab extends PluginSettingTab {
.setPlaceholder('Enter your secret')
.setValue(this.plugin.settings.mySetting)
.onChange(async (value) => {
console.log('Secret: ' + value);
this.plugin.settings.mySetting = value;
await this.plugin.saveSettings();
}));

View File

@ -1,9 +1,9 @@
{
"id": "obsidian-sample-plugin",
"id": "sample-plugin",
"name": "Sample Plugin",
"version": "1.0.0",
"minAppVersion": "0.15.0",
"description": "This is a sample plugin for Obsidian. This plugin demonstrates some of the capabilities of the Obsidian API.",
"description": "Demonstrates some of the capabilities of the Obsidian API.",
"author": "Obsidian",
"authorUrl": "https://obsidian.md",
"fundingUrl": "https://obsidian.md/pricing",

View File

@ -10,7 +10,7 @@
"moduleResolution": "node",
"importHelpers": true,
"isolatedModules": true,
"strictNullChecks": true,
"strictNullChecks": true,
"lib": [
"DOM",
"ES5",