Skip to content

Commit e17822f

Browse files
committed
Merge branch 'master' into release
2 parents 6be6877 + aeaf958 commit e17822f

Some content is hidden

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

62 files changed

+3332
-1964
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1818
- name: Use Node.js
19-
uses: actions/setup-node@v1
19+
uses: actions/setup-node@v3
2020
with:
21-
node-version: '14.x' # You might need to adjust this value to your own version
21+
node-version: '16.x' # You might need to adjust this value to your own version
2222
- name: Build
2323
id: build
2424
run: |
@@ -28,7 +28,8 @@ jobs:
2828
cp main.js manifest.json styles.css ${{ env.PLUGIN_NAME }}
2929
zip -r ${{ env.PLUGIN_NAME }}.zip ${{ env.PLUGIN_NAME }}
3030
ls
31-
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
31+
echo "tag_name=$(git tag --sort version:refname | tail -n 1)" >> $GITHUB_OUTPUT
32+
3233
- name: Create Release
3334
id: create_release
3435
uses: actions/create-release@v1
@@ -40,6 +41,7 @@ jobs:
4041
release_name: ${{ github.ref }}
4142
draft: false
4243
prerelease: false
44+
4345
- name: Upload zip file
4446
id: upload-zip
4547
uses: actions/upload-release-asset@v1
@@ -50,6 +52,7 @@ jobs:
5052
asset_path: ./${{ env.PLUGIN_NAME }}.zip
5153
asset_name: ${{ env.PLUGIN_NAME }}-${{ steps.build.outputs.tag_name }}.zip
5254
asset_content_type: application/zip
55+
5356
- name: Upload main.js
5457
id: upload-main
5558
uses: actions/upload-release-asset@v1
@@ -60,6 +63,7 @@ jobs:
6063
asset_path: ./main.js
6164
asset_name: main.js
6265
asset_content_type: text/javascript
66+
6367
- name: Upload manifest.json
6468
id: upload-manifest
6569
uses: actions/upload-release-asset@v1
@@ -70,6 +74,7 @@ jobs:
7074
asset_path: ./manifest.json
7175
asset_name: manifest.json
7276
asset_content_type: application/json
77+
7378
- name: Upload styles.css
7479
id: upload-css
7580
uses: actions/upload-release-asset@v1

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
node_modules
33
package-lock.json
44
exampleVault
5+
main.js

LICENSE.md

Lines changed: 57 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# GNU GENERAL PUBLIC LICENSE
1+
# GNU GENERAL PUBLIC LICENSE
2+
23
Version 3, 29 June 2007
34

45
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
@@ -212,25 +213,25 @@ produce it from the Program, in the form of source code under the
212213
terms of section 4, provided that you also meet all of these conditions:
213214

214215
a) The work must carry prominent notices stating that you modified
215-
it, and giving a relevant date.
216+
it, and giving a relevant date.
216217

217218
b) The work must carry prominent notices stating that it is
218-
released under this License and any conditions added under section 7.
219-
This requirement modifies the requirement in section 4 to
220-
"keep intact all notices".
219+
released under this License and any conditions added under section 7.
220+
This requirement modifies the requirement in section 4 to
221+
"keep intact all notices".
221222

222223
c) You must license the entire work, as a whole, under this
223-
License to anyone who comes into possession of a copy. This
224-
License will therefore apply, along with any applicable section 7
225-
additional terms, to the whole of the work, and all its parts,
226-
regardless of how they are packaged. This License gives no
227-
permission to license the work in any other way, but it does not
228-
invalidate such permission if you have separately received it.
224+
License to anyone who comes into possession of a copy. This
225+
License will therefore apply, along with any applicable section 7
226+
additional terms, to the whole of the work, and all its parts,
227+
regardless of how they are packaged. This License gives no
228+
permission to license the work in any other way, but it does not
229+
invalidate such permission if you have separately received it.
229230

230231
d) If the work has interactive user interfaces, each must display
231-
Appropriate Legal Notices; however, if the Program has interactive
232-
interfaces that do not display Appropriate Legal Notices, your
233-
work need not make them do so.
232+
Appropriate Legal Notices; however, if the Program has interactive
233+
interfaces that do not display Appropriate Legal Notices, your
234+
work need not make them do so.
234235

235236
A compilation of a covered work with other separate and independent
236237
works, which are not by their nature extensions of the covered work,
@@ -250,45 +251,45 @@ machine-readable Corresponding Source under the terms of this License,
250251
in one of these ways:
251252

252253
a) Convey the object code in, or embodied in, a physical product
253-
(including a physical distribution medium), accompanied by the
254-
Corresponding Source fixed on a durable physical medium
255-
customarily used for software interchange.
254+
(including a physical distribution medium), accompanied by the
255+
Corresponding Source fixed on a durable physical medium
256+
customarily used for software interchange.
256257

257258
b) Convey the object code in, or embodied in, a physical product
258-
(including a physical distribution medium), accompanied by a
259-
written offer, valid for at least three years and valid for as
260-
long as you offer spare parts or customer support for that product
261-
model, to give anyone who possesses the object code either (1) a
262-
copy of the Corresponding Source for all the software in the
263-
product that is covered by this License, on a durable physical
264-
medium customarily used for software interchange, for a price no
265-
more than your reasonable cost of physically performing this
266-
conveying of source, or (2) access to copy the
267-
Corresponding Source from a network server at no charge.
259+
(including a physical distribution medium), accompanied by a
260+
written offer, valid for at least three years and valid for as
261+
long as you offer spare parts or customer support for that product
262+
model, to give anyone who possesses the object code either (1) a
263+
copy of the Corresponding Source for all the software in the
264+
product that is covered by this License, on a durable physical
265+
medium customarily used for software interchange, for a price no
266+
more than your reasonable cost of physically performing this
267+
conveying of source, or (2) access to copy the
268+
Corresponding Source from a network server at no charge.
268269

269270
c) Convey individual copies of the object code with a copy of the
270-
written offer to provide the Corresponding Source. This
271-
alternative is allowed only occasionally and noncommercially, and
272-
only if you received the object code with such an offer, in accord
273-
with subsection 6b.
271+
written offer to provide the Corresponding Source. This
272+
alternative is allowed only occasionally and noncommercially, and
273+
only if you received the object code with such an offer, in accord
274+
with subsection 6b.
274275

275276
d) Convey the object code by offering access from a designated
276-
place (gratis or for a charge), and offer equivalent access to the
277-
Corresponding Source in the same way through the same place at no
278-
further charge. You need not require recipients to copy the
279-
Corresponding Source along with the object code. If the place to
280-
copy the object code is a network server, the Corresponding Source
281-
may be on a different server (operated by you or a third party)
282-
that supports equivalent copying facilities, provided you maintain
283-
clear directions next to the object code saying where to find the
284-
Corresponding Source. Regardless of what server hosts the
285-
Corresponding Source, you remain obligated to ensure that it is
286-
available for as long as needed to satisfy these requirements.
277+
place (gratis or for a charge), and offer equivalent access to the
278+
Corresponding Source in the same way through the same place at no
279+
further charge. You need not require recipients to copy the
280+
Corresponding Source along with the object code. If the place to
281+
copy the object code is a network server, the Corresponding Source
282+
may be on a different server (operated by you or a third party)
283+
that supports equivalent copying facilities, provided you maintain
284+
clear directions next to the object code saying where to find the
285+
Corresponding Source. Regardless of what server hosts the
286+
Corresponding Source, you remain obligated to ensure that it is
287+
available for as long as needed to satisfy these requirements.
287288

288289
e) Convey the object code using peer-to-peer transmission, provided
289-
you inform other peers where the object code and Corresponding
290-
Source of the work are being offered to the general public at no
291-
charge under subsection 6d.
290+
you inform other peers where the object code and Corresponding
291+
Source of the work are being offered to the general public at no
292+
charge under subsection 6d.
292293

293294
A separable portion of the object code, whose source code is excluded
294295
from the Corresponding Source as a System Library, need not be
@@ -363,27 +364,27 @@ add to a covered work, you may (if authorized by the copyright holders of
363364
that material) supplement the terms of this License with terms:
364365

365366
a) Disclaiming warranty or limiting liability differently from the
366-
terms of sections 15 and 16 of this License; or
367+
terms of sections 15 and 16 of this License; or
367368

368369
b) Requiring preservation of specified reasonable legal notices or
369-
author attributions in that material or in the Appropriate Legal
370-
Notices displayed by works containing it; or
370+
author attributions in that material or in the Appropriate Legal
371+
Notices displayed by works containing it; or
371372

372373
c) Prohibiting misrepresentation of the origin of that material, or
373-
requiring that modified versions of such material be marked in
374-
reasonable ways as different from the original version; or
374+
requiring that modified versions of such material be marked in
375+
reasonable ways as different from the original version; or
375376

376377
d) Limiting the use for publicity purposes of names of licensors or
377-
authors of the material; or
378+
authors of the material; or
378379

379380
e) Declining to grant rights under trademark law for use of some
380-
trade names, trademarks, or service marks; or
381+
trade names, trademarks, or service marks; or
381382

382383
f) Requiring indemnification of licensors and authors of that
383-
material by anyone who conveys the material (or modified versions of
384-
it) with contractual assumptions of liability to the recipient, for
385-
any liability that these contractual assumptions directly impose on
386-
those licensors and authors.
384+
material by anyone who conveys the material (or modified versions of
385+
it) with contractual assumptions of liability to the recipient, for
386+
any liability that these contractual assumptions directly impose on
387+
those licensors and authors.
387388

388389
All other non-permissive additional terms are considered "further
389390
restrictions" within the meaning of section 10. If the Program as you

esbuild.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ esbuild
5252
sourcemap: prod ? false : 'inline',
5353
treeShaking: true,
5454
outfile: 'main.js',
55+
minify: true,
5556
plugins: [
5657
esbuildSvelte({
5758
compilerOptions: { css: true },
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
date1: Tuesday, September 13th 2022
3+
date2: Saturday, May 21st 2022
4+
time: 14:12
5+
---
6+
7+
### Date
8+
```meta-bind
9+
INPUT[date(showcase):date1]
10+
```
11+
12+
### Date Picker
13+
```meta-bind
14+
INPUT[date_picker(showcase):date2]
15+
```
16+
17+
### Time
18+
```meta-bind
19+
INPUT[time(showcase):time]
20+
```

exampleVault/Input Fields/Editor.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
editor: |-
3+
test
4+
5+
**test**
6+
7+
# Heading
8+
---
9+
10+
```meta-bind
11+
INPUT[editor(showcase):editor]
12+
```
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
image: Other/Images/img_flower.webp
3+
---
4+
5+
```meta-bind
6+
INPUT[imageSuggester(optionQuery("Other/Images"), showcase):image]
7+
```

exampleVault/Input Fields/Number.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
number: 100
3+
---
4+
5+
```meta-bind
6+
INPUT[number(showcase):number]
7+
```
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
select: option 2
3+
multiSelect:
4+
- option 1
5+
- option 3
6+
---
7+
8+
### Select
9+
```meta-bind
10+
INPUT[select(
11+
option(option 1),
12+
option(option 2),
13+
option(option 3),
14+
showcase
15+
):select]
16+
```
17+
18+
### Multi Select
19+
```meta-bind
20+
INPUT[multi_select(
21+
option(option 1),
22+
option(option 2),
23+
option(option 3),
24+
showcase
25+
):multiSelect]
26+
27+
```

exampleVault/Input Fields/Slider.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
slider1: 57
3+
slider2: 11
4+
---
5+
6+
### Simple Slider
7+
```meta-bind
8+
INPUT[slider(showcase):slider1]
9+
```
10+
11+
### Slider with Labels
12+
```meta-bind
13+
INPUT[slider(addLabels, showcase):slider1]
14+
```
15+
16+
### Slider with custom min max values
17+
```meta-bind
18+
INPUT[slider(addLabels, minValue(-20), maxValue(20), showcase):slider2]
19+
```

0 commit comments

Comments
 (0)