Skip to content

Commit 9a4e003

Browse files
committed
a lot more refactoring
1 parent 6dc2724 commit 9a4e003

File tree

77 files changed

+1038
-1510
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+1038
-1510
lines changed

bunfig.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[test]
22
preload = ["./tests/__preload__/svelteLoader.ts", "./tests/__preload__/happydom.ts", "./tests/__preload__/obsidianMock.ts", "./tests/__preload__/customMatchers.ts"]
33
root = "./tests"
4+
logLevel = "warn"

exampleVault/Advanced Examples/Activity Tracker.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,5 @@ const columns = [
1919
];
2020
2121
22-
mb.createTable(container, context.file.path, component, bindTarget, tableHead, columns);
23-
```
24-
25-
```js-engine
26-
const mb = engine.getPlugin('obsidian-meta-bind-plugin').api;
27-
28-
const bindTarget = mb.createBindTarget('activities');
29-
const tableHead = ['From', 'To', 'Activity', 'Status'];
30-
const columns = [
31-
mb.inputField.createInputFieldDeclarationFromString('INPUT[time:scope^from]'),
32-
mb.inputField.createInputFieldDeclarationFromString('INPUT[time:scope^to]'),
33-
mb.inputField.createInputFieldDeclarationFromString('INPUT[inlineSelect(option(youtube), option(sudying), option(linch)):scope^activity]'),
34-
mb.inputField.createInputFieldDeclarationFromString('INPUT[inlineSelect(option(-, unproductive), option(0, normal), option(+, productive)):scope^status]')
35-
];
36-
37-
3822
mb.createTable(container, context.file.path, component, bindTarget, tableHead, columns);
3923
```

exampleVault/Advanced Examples/DnD 5e Travel Calculator.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,4 @@ varMins: 60
2323
| Miles To Travel: `INPUT[number:TravelDistance]` |
2424
| **Days Travel 🕓:** `VIEW[round(({TravelDistance} * ({varMins}/(({BaseSpeed} / ({ExhaustionLevel} > 1 ? 2 : 1) + ({Encumbered} ? -10 : 0) + ({HorseshoesofSpeed} ? 30 : 0) + {AdditionalBonus}) / 10) * {SpeedMultiplier})) / 60 / {HoursPerDay}, 1)]` |
2525

26-
Check out this calculator on [Josh's Publish](https://obsidianttrpgtutorials.com/Obsidian+TTRPG+Tutorials/Plugin+Tutorials/Travel+Calculators/DnD+5e+Travel+Calc/DnD+5e+Travel+Calc).
27-
28-
```abap
29-
report zdemo_helloworld.
30-
31-
write 'Hello World'.
32-
```
26+
Check out this calculator on [Josh's Publish](https://obsidianttrpgtutorials.com/Obsidian+TTRPG+Tutorials/Plugin+Tutorials/Travel+Calculators/DnD+5e+Travel+Calc/DnD+5e+Travel+Calc).

exampleVault/Button Example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
count: 4
2+
count: 0
33
---
44
Meta Bind is getting Buttons
55

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: 2
33
suggest: test
44
toggle1: false
55
Domestic_tasks:
@@ -13,7 +13,7 @@ inlineSelect: 0
1313
nested:
1414
object: test
1515
number1: 2
16-
number2: 16
16+
number2: 4
1717
---
1818

1919
## Fields Work Everywhere

src/IPlugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { type IAPI } from './api/IAPI';
1+
import { type API } from './api/API';
22
import { type MetaBindPluginSettings } from './settings/Settings';
33
import { type MetadataManager } from './metadata/MetadataManager';
4-
import { type IInternalAPI } from './api/internalApi/IInternalAPI';
4+
import { type IInternalAPI } from './api/IInternalAPI';
55

66
export interface IPlugin {
7-
readonly api: IAPI;
7+
readonly api: API<IPlugin>;
88
readonly internal: IInternalAPI;
99
readonly metadataManager: MetadataManager;
1010

0 commit comments

Comments
 (0)