Commit Graph

226 Commits

Author SHA1 Message Date
Fabian-Lars
3c62dbc902
feat(api): Add exists function to the fs module. (#5060)
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio>
2022-09-15 11:28:52 -03:00
Amr Bashir
5e74aefd4a
chore(api.js): add @since tag where appropriate (#5169) 2022-09-12 16:45:57 -03:00
Fabian-Lars
0837454b00
fix(api): Remove unused @ts-expect-error (#5131) 2022-09-03 11:56:15 -03:00
renovate[bot]
8183153a86
chore(deps) Update dependency eslint-config-standard-with-typescript to v22 (#4603)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-09-03 09:38:47 -03:00
Rafael Keramidas
a9381f3b40
refactor(core/api): use constants for events in core, add new enum for core events in api (#5100) 2022-09-03 01:04:55 -03:00
Josh Soref
8fd79b8fc0
Spelling (#4880)
Co-authored-by: Lorenzo Lewis <lorenzo_lewis@icloud.com>
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2022-09-03 01:03:02 -03:00
Lucas Fernandes Nogueira
2901145c49
chore: update license headers (#5067) 2022-08-28 15:13:21 -03:00
Jonas Kruckenberg
4fa968dc0e
fix(api): add async mockIPC() handler signature (#5056) 2022-08-26 13:12:24 +02:00
Mateo Gallardo
d35cc77831
docs(clipboard): Added allowlist section to the Clipboard module (#5014) 2022-08-23 13:54:32 -03:00
Amr Bashir
20a7036ba5
Revert "fix(core): avoid conflict with user-defined cmd arg in invoke, closes #4875 (#4892)" (#4924)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-08-12 20:34:17 -03:00
Amr Bashir
8958e9fdb5
docs: fix bullet point alignment in js api (#4922) 2022-08-12 19:08:18 -03:00
Lorenzo Lewis
4c24d10ff3
Update path.ts (#4895) 2022-08-09 11:36:50 -03:00
Amr Bashir
5109c27501
fix(core): avoid conflict with user-defined cmd arg in invoke, closes #4875 (#4892) 2022-08-08 15:51:56 -03:00
Lucas Fernandes Nogueira
d576e8ae72
feat(core): do not follow redirects if max_redirects is 0 closes #4795 (#4812) 2022-07-31 20:00:48 -03:00
horochx
d8cf9f9fcd
Command support for specified character encoding, closes #4644 (#4772)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-07-27 18:23:27 -03:00
Danil Karpenko
aa9f1243e6
Improved EventEmitter for tauri api shell (#4697)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-07-25 19:35:35 -03:00
Lorenzo Lewis
47666c4a0b
Fix/docs qol improvements (#4641) 2022-07-11 10:14:31 -03:00
Lucas Fernandes Nogueira
d5e910ebcc
chore(api): remove type-fest (#4605) 2022-07-06 10:07:46 -03:00
Lucas Fernandes Nogueira
92aca55a6f
feat(api): add support to ArrayBuffer (#4579) 2022-07-05 17:40:36 -03:00
Lucas Fernandes Nogueira
b02fc90f45
feat(api): add abstractions to updater and window event listeners (#4569) 2022-07-05 16:57:53 -03:00
Lucas Fernandes Nogueira
b8cd2a7993
feat(api): call toString() on dialog title and message, closes #4583 (#4588) 2022-07-04 22:30:06 -03:00
renovate[bot]
9217d88f94
chore(deps) Update Tauri API Definitions (#4523)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-06-30 17:52:43 -03:00
renovate[bot]
be4831fdfb
chore(deps) Update Tauri API Definitions (#4512)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-06-29 00:58:07 -03:00
MentalGear
94e581b8d0
docs: fixed readdir example code (#4510) 2022-06-28 17:56:44 -03:00
Fabian-Lars
68a09b3588
fix(docs): Fix typos in js path api docs. Extend rust path api docs. (#4482) 2022-06-27 08:41:00 -03:00
Lucas Nogueira
95e77e591d
docs(api): enhance theme api doc 2022-06-23 15:31:12 -03:00
Lucas Fernandes Nogueira
77ef1cd849
docs(api): fix dialog filters usage, closes #4367 (#4424) 2022-06-21 14:37:53 -03:00
Lucas Nogueira
32f35196a3
docs(api): add example for tauri://close-requested event usage 2022-06-19 22:38:44 -03:00
Lucas Fernandes Nogueira
6d94ce4235
feat(core): theme is now implemented on macOS (#4380) 2022-06-17 14:08:35 -03:00
Lucas Fernandes Nogueira
ea43cf52db
fix(api): writeBinaryFile sends an empty contents with only one arg (#4368) 2022-06-16 11:56:13 -03:00
github-actions[bot]
13c2fc1ffe
Apply Version Updates From Current Changes (#4352)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-06-15 23:08:50 -03:00
Fabian-Lars
6e1667998a
fix(docs): use appdir instead of resourcedir in writeFile examples. Fix dialog docs. (#4337) 2022-06-14 06:09:53 -07:00
Lucas Fernandes Nogueira
a136d0ed5c
docs(api): add example to all functions, closes #4322 (#4325) 2022-06-12 21:44:33 -03:00
Didrik Nordström
f482b09422
fix: remove notification permission prompt (#4302)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-06-09 17:37:05 -03:00
Fabian-Lars
55f89d5f9d
fix(api): Rename FormPart value to file to match docs and endpoint (#4307) 2022-06-09 11:22:17 -03:00
f91kdash
f72cace368
fix: never remove ipc callback & mem never be released (#4274)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-06-05 10:51:20 -03:00
Lucas Nogueira
0c63595916
fix(docs): grammar on private API usage warning 2022-05-30 11:06:32 -03:00
Lucas Fernandes Nogueira
7bba8db83e
feat(api): add resolveResource API to the path module (#4234) 2022-05-29 14:35:35 -03:00
Lucas Fernandes Nogueira
3f998ca294
feat(api): add writeTextFile and (path, contents, options) overload (#4228) 2022-05-29 10:10:41 -03:00
Lucas Fernandes Nogueira
f46175d5d4
feat(core): expose option to set dialog type, closes #4183 (#4187) 2022-05-21 11:24:39 -03:00
Lucas Fernandes Nogueira
ae99f99167
feat(core): expose message dialog's title option, ref #4183 (#4186) 2022-05-21 10:46:14 -03:00
Lucas Nogueira
ec79e075a9
fix(core): http timeout field is optional, closes #4036 2022-05-03 12:17:23 -03:00
Lucas Fernandes Nogueira
f3c5ca89e7
fix(core): http api connect_timeout deserialization, closes #4004 (#4006) 2022-04-29 21:26:45 -03:00
Lucas Fernandes Nogueira
c23f139ba8
perf(core): improve binary size with api enum serde refactor (#3952) 2022-04-24 14:08:05 -03:00
Lucas Nogueira
1303264190
chore: enable set_cursor_position in Linux
It is not ready yet, but it has been pushed to tao
2022-04-22 21:55:17 -03:00
Lucas Fernandes Nogueira
582bdfccbc
docs(tauri): document all feature flags, add test (#3947) 2022-04-22 21:51:39 -03:00
Lucas Fernandes Nogueira
1397d9121a
feat(core): add support to multipart/form-data requests, closes #2118 (#3929) 2022-04-22 20:04:58 -03:00
Lucas Fernandes Nogueira
c54ddfe933
feat: expose window cursor APIs, closes #3888 #3890 (#3935) 2022-04-21 15:54:08 -03:00
Lucas Fernandes Nogueira
4cebcf6da7
feat: expose theme APIs, closes #3903 (#3937) 2022-04-21 15:03:29 -03:00
Anish Prashun
822b038c3e
null type added (#3900) 2022-04-17 14:30:36 -03:00
Lucas Fernandes Nogueira
42e8d9cf92
fix(api): encode file path in convertFileSrc function, closes #3841 (#3846) 2022-04-02 11:54:26 -03:00
Lucas Nogueira
4541eaf2cb
fix: flag capitalization on documentation 2022-03-29 10:43:59 -03:00
Fabian-Lars
1deeb03ef6
fix(api.js): appWindow shown as type any, fixes #3747 (#3772)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-03-24 19:43:18 -03:00
Lucas Fernandes Nogueira
266156a0b0
feat(core): add BaseDirectory::Temp and $TEMP variable (#3763) 2022-03-24 14:12:17 -03:00
Amr Bashir
6054e981c4
Revert "Fix importing @tauri-apps/api in Node.js" (#3767) 2022-03-24 13:07:22 -03:00
Kasper
d36c8e0322
Fix importing @tauri-apps/api in Node.js (#3752)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-03-22 18:19:46 -03:00
Jonas Kruckenberg
393f4b3d79
docs: update WebviewWindow doc comment (#3730) 2022-03-19 23:05:44 -03:00
Lucas Fernandes Nogueira
f0db3f9b83
feat(updater): add download progress events (#3734) 2022-03-18 22:58:44 -03:00
Lucas Fernandes Nogueira
834ccc5153
feat(core): reimplement readTextFile for performance (#3631) 2022-03-07 11:34:33 -03:00
Lucas Fernandes Nogueira
76c791bd2b
fix(core): regression on the unlisten function (#3623) 2022-03-06 20:45:38 -03:00
Lucas Fernandes Nogueira
8c9358725a
refactor(core): move png and ico behind Cargo features (#3588) 2022-03-05 14:19:24 -03:00
Lucas Fernandes Nogueira
b744cd2758
feat: extend scopes with user selected paths, closes #3591 (#3595) 2022-03-03 15:41:58 -03:00
Lucas Nogueira
3e18264d9e
docs(api): fix shell links 2022-03-03 12:43:55 -03:00
Lucas Fernandes Nogueira
9cb1059aa3
fix(api): do not throw an exception if __TAURI_METADATA__ is not set, fixes #3554 (#3572) 2022-03-03 10:40:31 -03:00
renovate[bot]
55280bdea6
chore(deps) Update Tauri API Definitions (#3585)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-03-02 10:21:48 -03:00
Lucas Fernandes Nogueira
9b3b163baa
feat(core): simplify scope definition for sidecars (#3574) 2022-03-02 10:21:36 -03:00
Aidan Labourdette
2d8dd49589
chore: fix formatting (#3560)
Fixed the markdown formatting for the openWith? parameter options for the open function in shell module.

see: https://github.com/tauri-apps/tauri-docs/pull/476
2022-02-26 04:40:54 +02:00
Jordan Baron
cf29e02043
Docs: change command to cmd (#3530) 2022-02-24 09:37:47 -03:00
Jonas Kruckenberg
7e04c072c4
feat: add mock functions for testing and SSG (#3437)
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio>
2022-02-13 20:33:10 -03:00
Lucas Nogueira
cb5c722c3f
docs(api): document FS scope 2022-02-11 15:40:13 -03:00
Lucas Nogueira
5a0c382f3a
docs(api): document HTTP scope 2022-02-11 15:19:01 -03:00
Lucas Nogueira
9ed1ba0bce
fix(docs): imports must come after module docs 2022-02-11 15:08:17 -03:00
Lucas Nogueira
317d5dd17d
docs(api): document shell scope 2022-02-11 15:04:00 -03:00
Lucas Nogueira
f37a36f58b
fix: streaming example 2022-02-11 14:12:44 -03:00
Lucas Nogueira
49c1970fae
docs(api): convertFileSrc example 2022-02-11 14:02:58 -03:00
Lucas Nogueira
c50fbc22e7
docs(api): window label 2022-02-11 13:56:31 -03:00
Lucas Nogueira
8d6f629445
docs(api): window allowlist 2022-02-11 13:56:15 -03:00
Lucas Fernandes Nogueira
7aca0a6233
refactor(core): simplify shell scope, input only string arrays (#3372) 2022-02-09 13:44:52 -03:00
Lucas Fernandes Nogueira
4a10e88c4b
feat(docs): document data URLs usage (#3360) 2022-02-08 11:11:32 -03:00
Lucas Fernandes Nogueira
9b34055264
fix(core): window-specific event delivery, closes #3302 (#3344) 2022-02-06 17:50:02 -03:00
Jonas Kruckenberg
9b19a805aa
fix(api.js) Replace number[]with Uint8Array. fixes #3306 (#3305)
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-02-04 22:18:23 -03:00
Lucas Fernandes Nogueira
f5109e0c96
fix(api): window label null instead of actual value, closes #3295 (#3332) 2022-02-04 21:57:41 -03:00
Lucas Nogueira
f834a1545c
chore(api): fix formatting 2022-02-04 11:51:41 -03:00
Lucas Nogueira
a08509c641
fix(api): remove currentDir API from the path module 2022-02-04 11:49:23 -03:00
Lucas Nogueira
0d1e3219b4
Merge branch 'next' into feat/audit-patches 2022-02-02 20:09:41 -03:00
Lucas Nogueira
696dca58a9
refactor(core): remove BaseDirectory::Current variant 2022-01-26 16:48:31 -03:00
chip
10314cd5cf
feat(core): add argument parsing on shell scope (#44)
* feat: initial implementation

* feat: arg parser

* refactor: move codegen to context struct

* feat: regex validation

* fix tests

* fix: support magic argument value `-`

* feat: support value regex starting with `-`

* refactor: shell_scope mod, add happy path tests

* wip: scope command arguments

* wip: commands

* add better scoped errors and pattern matching

* add documentation to scoped command items

* support using the new shell scope for open

* use the proper items in tauri::scope during codegen

* shell-open uses ScopeError::Validation also

* use shell scoping for sidecar commands

* fix: cli.rs build

* fix: validation when arg list is empty

* require args in a non-fixed, non-empty config list

Co-authored-by: Chip Reed <chip@chip.sh>
2022-01-26 16:43:24 -03:00
Lucas Nogueira
efa1970db5
fix(api): type definition for http > Part, closes #3268 2022-01-23 16:51:35 -03:00
Edqe
18aab872a9
chore(docs): fix minor typo #3264 (#3265) 2022-01-23 16:43:29 -03:00
Lucas Nogueira
28a67fdb60
chore(docs): update platform-specific documentation notes 2022-01-22 14:35:36 -03:00
chip
d5d6d2abc1
Isolation Pattern (#43)
Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com>
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio>
2022-01-17 10:46:14 -03:00
Jonas Kruckenberg
ce03909fb6
[feat] add dialog title option. closes #3232 (#3233) 2022-01-16 19:41:11 +01:00
Jonas Kruckenberg
b5d9bcb402
Consistent event name usage (#3228) 2022-01-15 17:47:15 -03:00
Lucas Nogueira
eae311e6e2
fix(core): ipc and tests 2022-01-09 16:27:57 -03:00
Lucas Nogueira
766c4f2c57
refactor: unify fs read and write cmds for binary/text data [TRI-009] (#34) 2022-01-09 16:24:44 -03:00
Lucas Nogueira
a48b8b18d4
feat(core): validate callbacks and event names [TRI-038] [TRI-020] (#21) 2022-01-09 16:12:29 -03:00
Lucas Nogueira
5687b7fdcd
refactor: use macros to match core commands with allowlist conditionals [TRI-028] (#20) 2022-01-09 15:41:28 -03:00
Lucas Nogueira
63921fada4
refactor: change tauri::api::open with argument to an enum [TRI-022] (#19) 2022-01-09 14:58:38 -03:00
Lucas Fernandes Nogueira
680554de3e
feat: validate window label [TRI-021] (#13) 2022-01-09 14:30:43 -03:00
Lucas Nogueira
7920ff14e6
feat: scope the fs API and the asset protocol [TRI-026] [TRI-010] [TRI-011] (#10) 2022-01-09 14:30:04 -03:00