Skip to content

Commit 09d48ec

Browse files
committed
fix template issue; update deps
1 parent 428e3ef commit 09d48ec

File tree

7 files changed

+22
-20
lines changed

7 files changed

+22
-20
lines changed

bun.lockb

8.71 KB
Binary file not shown.

exampleVault/Examples.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
slider1: 8
2+
slider1: 7
33
suggest: test
44
toggle1: false
55
Domestic_tasks:
@@ -13,7 +13,7 @@ inlineSelect: 1
1313
nested:
1414
object: test
1515
number1: 2
16-
number2: 16
16+
number2: 14
1717
time:
1818
---
1919

exampleVault/O_O 2024 Checklist.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
- [x] Don't include the word "Obsidian" in your name unless it absolutely makes sense. Most of the time it's redundant.
55
- [x] Don't include your plugin name in command names. Obsidian adds this for you.
66
- [x] Don't prefix commands with your plugin ID. Obsidian adds this for you.
7-
- [ ] Don't include `main.js` in your repo. Only include it in your releases.
7+
- [x] Don't include `main.js` in your repo. Only include it in your releases.
88
- [x] If you haven't, consider add a `fundingUrl` so that users of your plugin can show some support. [Learn more](https://docs.obsidian.md/Reference/Manifest#fundingUrl).
99

1010
## Compatibility
1111

1212
- [x] Don't provide default hotkeys when possible. [Learn more](https://docs.obsidian.md/Plugins/Releasing/Plugin+guidelines#Avoid+setting+a+default+hotkey+for+commands).
1313
- [x] Don't override core styling. If needed, add your own class and make the styling only apply to your class.
1414
- [x] Do scan your code for deprecated methods (they usually show up as strikeout text in IDEs).
15-
- [ ] Don't assign styles via JavaScript or in HTML. [Learn more](https://docs.obsidian.md/Plugins/Releasing/Plugin+guidelines#No+hardcoded+styling).
15+
- [x] Don't assign styles via JavaScript or in HTML. [Learn more](https://docs.obsidian.md/Plugins/Releasing/Plugin+guidelines#No+hardcoded+styling).
1616
- [x] Don't access the hardcoded `.obsidian` folder if you need to access the configuration directory. The location could be customized, so please use `Vault.configDir` instead.
1717

1818
## Mobile support
@@ -30,10 +30,10 @@ Please only complete this section if you have `isDesktopOnly` set to false in yo
3030
- [x] Don't use `var`. Use `let` or `const` instead. [Learn more](https://javascript.plainenglish.io/4-reasons-why-var-is-considered-obsolete-in-modern-javascript-a30296b5f08f).
3131
- [x] Don't use the global `app` instance. Use `this.app` provided to your plugin instance instead. [Learn more](https://docs.obsidian.md/Plugins/Releasing/Plugin+guidelines#Avoid%20using%20global%20app%20instance).
3232
- [x] Do break up your `main.ts` into smaller files or even folders if it gets big to make code easier to find.
33-
- [ ] Don't use `Promise`. Use `async` and `await` instead. [Learn more](https://docs.obsidian.md/Plugins/Releasing/Plugin+guidelines#Prefer+async%2Fawait+over+Promise).
34-
- [ ] Don't use global variables. Try to keep variables either in the scope of classes or functions. [Learn more](http://wiki.c2.com/?GlobalVariablesAreBad).
33+
- [x] Don't use `Promise`. Use `async` and `await` instead. [Learn more](https://docs.obsidian.md/Plugins/Releasing/Plugin+guidelines#Prefer+async%2Fawait+over+Promise).
34+
- [x] Don't use global variables. Try to keep variables either in the scope of classes or functions. [Learn more](http://wiki.c2.com/?GlobalVariablesAreBad).
3535
- [x] Do test with `instanceof` before casting into other types such as `TFile`, `TFolder`, or `FileSystemAdapter`,
36-
- [ ] Don't use use `as any` and use proper typing instead.
36+
- [x] Don't use use `as any` and use proper typing instead.
3737

3838

3939
## API usage

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,25 @@
3232
"@elysiajs/cors": "^1.1.1",
3333
"@happy-dom/global-registrator": "^14.12.3",
3434
"@tsconfig/svelte": "^5.0.4",
35-
"@types/bun": "^1.1.9",
35+
"@types/bun": "^1.1.10",
3636
"@typescript-eslint/eslint-plugin": "^7.18.0",
3737
"@typescript-eslint/parser": "^7.18.0",
3838
"builtin-modules": "^4.0.0",
39-
"elysia": "^1.1.13",
40-
"esbuild": "^0.23.1",
39+
"elysia": "^1.1.17",
40+
"esbuild": "^0.24.0",
4141
"esbuild-plugin-copy-watch": "^2.3.1",
4242
"esbuild-svelte": "^0.8.2",
4343
"eslint": "^8.57.1",
44-
"eslint-plugin-import": "^2.30.0",
44+
"eslint-plugin-import": "^2.31.0",
4545
"eslint-plugin-isaacscript": "^3.12.2",
4646
"eslint-plugin-no-relative-import-paths": "^1.5.5",
4747
"eslint-plugin-only-warn": "^1.1.0",
48-
"eslint-plugin-svelte": "^2.44.0",
48+
"eslint-plugin-svelte": "^2.44.1",
4949
"prettier": "^3.3.3",
50-
"prettier-plugin-svelte": "^3.2.6",
50+
"prettier-plugin-svelte": "^3.2.7",
5151
"string-argv": "^0.3.2",
52-
"svelte-check": "^4.0.2",
53-
"svelte-preprocess": "^6.0.2",
52+
"svelte-check": "^4.0.4",
53+
"svelte-preprocess": "^6.0.3",
5454
"tslib": "^2.7.0",
5555
"typescript": "^5.6.2",
5656
"yaml": "^2.5.1"
@@ -59,9 +59,9 @@
5959
"@codemirror/legacy-modes": "^6.4.1",
6060
"@lemons_dev/parsinom": "^0.0.12",
6161
"itertools-ts": "^1.27.1",
62-
"mathjs": "^13.1.1",
62+
"mathjs": "^13.2.0",
6363
"moment": "^2.30.1",
64-
"svelte": "5.0.0-next.251",
64+
"svelte": "5.0.0-next.262",
6565
"zod": "^3.23.8",
6666
"zod-validation-error": "^3.4.0"
6767
},

packages/obsidian/src/settings/buttonTemplateSetting/ButtonTemplateSettingComponent.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
</script>
3636

3737
<div class="mb-card markdown-rendered">
38-
<FlexRow>
38+
<FlexRow stretchChildren={true}>
3939
<span>{template.id}</span>
4040
<Button onclick={() => editTemplate()} variant={ButtonStyleType.PRIMARY} tooltip="Edit">
4141
<Icon plugin={plugin} iconName="pen-line" />

packages/obsidian/src/settings/buttonTemplateSetting/ButtonTemplatesSettingComponent.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
1515
1616
let {
1717
modal,
18-
buttonConfigs,
18+
buttonConfigs: propButtonConfigs,
1919
}: {
2020
modal: ButtonTemplatesSettingModal;
2121
buttonConfigs: ButtonConfig[];
2222
} = $props();
2323
2424
let errorCollection: ErrorCollection | undefined = $state();
25+
let buttonConfigs: ButtonConfig[] = $state(propButtonConfigs);
2526
2627
function deleteTemplate(template: ButtonConfig): void {
2728
buttonConfigs = buttonConfigs.filter(x => x !== template);

packages/obsidian/src/settings/inputFieldTemplateSetting/InputFieldTemplatesSettingComponent.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010
1111
let {
1212
modal,
13-
inputFieldTemplates,
13+
inputFieldTemplates: propInputFieldTemplates,
1414
}: {
1515
modal: InputFieldTemplatesSettingModal;
1616
inputFieldTemplates: InputFieldTemplate[];
1717
} = $props();
1818
1919
let errorCollection: ErrorCollection | undefined = $state();
20+
let inputFieldTemplates: InputFieldTemplate[] = $state(propInputFieldTemplates);
2021
2122
function deleteTemplate(template: InputFieldTemplate): void {
2223
inputFieldTemplates = inputFieldTemplates.filter(x => x !== template);

0 commit comments

Comments
 (0)