197 Commits

Author SHA1 Message Date
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
Lucas Nogueira
6ac21b3cef feat: add private api feature flag (#7) 2022-01-09 11:29:29 -03:00
Lucas Fernandes Nogueira
0600099696 feat(api): support unknown types for event emit payload, closes #2929 (#2964) 2022-01-07 16:50:07 -03:00
Lucas Fernandes Nogueira
b7a2345b06 feat(core): add raw headers to HTTP API, closes #2695 (#3053) 2022-01-07 13:53:04 -03:00
Lucas Fernandes Nogueira
2212bd5d75 fix: dialog default path on Linux, closes #3091 (#3123) 2021-12-27 13:03:51 -03:00
Oliver Ford
722d9ede6e doc(api) XDG user dirs are not env vars, fix: #3090 (#3092) 2021-12-27 10:57:45 -03:00
Lucas Fernandes Nogueira
74dff536d4 fix(core): emit tauri://close-requested to JS, closes #2996 (#3041) 2021-12-09 12:22:12 -03:00
Lucas Fernandes Nogueira
151e629ebf fix(core): streaming of small files using asset://, closes #2854 (#3039) 2021-12-09 01:24:11 -03:00
Amr Bashir
1bfc32a3b2 fix(api.js): add fileDropEnabled to WindowOptions, closes #2968 (#2989) 2021-12-09 01:03:21 -03:00
Amr Bashir
50c63900c7 fix(api.js): fix http.fetch throwing error if response body is empty, closes #2831 (#3008)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-12-08 23:39:42 -03:00
Lucas Nogueira
508e815247 chore(api): fix documentation tags 2021-12-06 16:49:09 -03:00
Lucas Fernandes Nogueira
15164d930a feat(core): allow defining a custom invoke system (#2899) 2021-11-16 12:58:18 -03:00
Jonas Kruckenberg
39e0da1652 Fix log_dir (#2756) 2021-10-17 08:12:52 -03:00
Jonas Kruckenberg
acbb3ae7bb feat: add Log directory (#2736)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-10-16 09:56:23 -03:00
renovate[bot]
b759744999 chore(deps) Update Tauri API Definitions (major) (#2747)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-10-13 10:30:24 -03:00
Lucas Fernandes Nogueira
e98c1af442 feat(core): expose message dialog APIs, fix window.confirm, implement HasRawWindowHandle for Window, closes #2535 (#2700) 2021-10-02 16:13:24 -03:00
Amr Bashir
3924c3d853 fix(api.js): fix os.platform return on macos and windows, closes #2698 (#2699)
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2021-10-02 14:15:20 -03:00
Lucas Fernandes Nogueira
11db96e440 fix(cli.js): .ico icon generation, closes #2692 (#2694)
* fix(cli.js): `.ico` icon generation, closes #2692

* fmt

* chore: cleanup resize logic
2021-10-02 08:42:32 -03:00
Lucas Nogueira
a21f6b212c docs(api): clarify setSize, setMinSize, setMaxSize and setLocation, closes #2660 2021-09-29 18:00:59 -03:00
Lucas Nogueira
2792531347 chore: apply temporary change to __currentWindow usage 2021-09-27 15:13:01 -03:00
Lucas Nogueira
f68603aee4 chore(docs): simplify event system documentation 2021-09-27 13:07:05 -03:00
Adilson Schmitt Junior
cc8b1468c8 Fix(api): Window size and position returning wrong class (fix: #2599) (#2621)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-09-22 18:57:23 -03:00
Manuel Quarneti
a1e40480c1 Typing (api/os) (#2558)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com>
Co-authored-by: david <david@lemarier.ca>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: chip <chip@chip.sh>
Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com>
2021-09-21 16:24:09 -03:00
amrbashir
ba9f1a3ceb docs(api.js): update platform-specific notes size 2021-09-04 17:52:57 +02:00
Ngo Iok Ui (Wu Yu Wei)
994b5325dd fix: missing asset protocol path (#2484) 2021-08-22 16:12:45 -03:00
Ngo Iok Ui (Wu Yu Wei)
88382fe147 chore(api): update protocol url path with wry 0.12.1 on Windows (#2409) 2021-08-12 13:56:07 -03:00
Lucas Fernandes Nogueira
8b2cc2615d fix(core): dialog's defaultPath behavior on Linux, closes #2232 (#2382) 2021-08-10 15:28:24 -03:00
Lucas Fernandes Nogueira
8e48029790 feat(api): improve EventName type definition (#2379) 2021-08-10 10:54:42 -03:00
dependabot[bot]
4d69a445f3 chore(deps): bump tar from 6.1.1 to 6.1.6 in /tooling/create-tauri-app (#2365)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-08-08 17:48:53 -03:00
Lucas Nogueira
fee3c5820b fix(api): unused @ts-expect-error 2021-08-04 10:41:50 -03:00