Commit Graph

71 Commits

Author SHA1 Message Date
Lucas Fernandes Nogueira
b86fe9a6de feat(examples): add splashscreen example (#1685) 2021-05-03 11:16:51 -03:00
Lucas Fernandes Nogueira
c91105ff96 refactor(build): allow setting window icon path on try_build (#1686) 2021-05-03 10:42:29 -03:00
chip
1d6f418129 refactor(core): merge invoke items into single struct, allow ? (#1683) 2021-05-03 01:17:47 -03:00
Lucas Fernandes Nogueira
8941790f98 fix(core): notification permission check when !allowlisted, closes #1666 (#1677) 2021-05-02 18:33:57 -03:00
Lucas Fernandes Nogueira
8b6f3de0ad feat(core): add state management, closes #1655 (#1665)
* feat(core): add state management, closes #1655

* fix(tests): ignore doc example

* use a trait to manage #[command] parameters

* add docs [skip ci]

* finish command before moving into respond_async

* Revert "finish command before moving into respond_async"

This reverts commit 4651bed5bf.

* refactor: split InvokeMessage into InvokeResolver, add InvokeResponse

* feat: add managed state to the plugin interface

* feat: add commands example

* add change file [skip ci]

* cleanup clones

Co-authored-by: chip reed <chip@chip.sh>
2021-05-02 15:34:15 -03:00
Lucas Fernandes Nogueira
d92fde7505 feat(core): add output and status APIs to the Command struct (#1668) 2021-05-02 09:00:39 -03:00
Lucas Fernandes Nogueira
b0bb796a42 refactor: rename command mod to process, move restart_application (#1667)
* refactor: rename `command` mod to `process`, move restart_application

* refactor(api): move `exit`, `relaunch` APIs to `process` module
2021-04-30 22:43:47 -03:00
Lucas Fernandes Nogueira
4f1e87f87b refactor(core): change drag element detection to data attr, fixes #1656 (#1659) 2021-04-29 20:38:19 -03:00
renovate[bot]
252014cae2 chore(deps) Update Rust crate notify-rust to 4.4.0 (#1648)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-28 22:27:26 -03:00
Lucas Fernandes Nogueira
c31f0978c5 refactor: update to wry 0.9 (#1630) 2021-04-28 19:56:05 -03:00
Lucas Fernandes Nogueira
721e98f175 feat(core): add env, cwd to the command API, closes #1634 (#1635)
Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com>
2021-04-28 18:25:44 -03:00
chip
a755d23e1b refactor(core): more bounds for better errors from #1623 (#1632) 2021-04-27 20:14:51 -03:00
Lucas Fernandes Nogueira
181e132aee refactor(core): simplify usage of app event and window label types (#1623)
Co-authored-by: chip reed <chip@chip.sh>
2021-04-27 11:52:12 -03:00
github-actions[bot]
0f86bc4071 Apply Version Updates From Current Changes (#1620)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-04-25 17:54:41 -03:00
github-actions[bot]
cad5192e31 Apply Version Updates From Current Changes (#1561)
Co-authored-by: nothingismagick <nothingismagick@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-04-25 16:07:22 -03:00
Lucas Fernandes Nogueira
a868cb7176 refactor(core): clear uri_scheme_protocol registration function names (#1617)
* refactor(core): clear `custom_protocol` registration function names

* fix

* fix clippy

* improve docs

* clippy

* renames
2021-04-25 13:00:03 -03:00
renovate[bot]
95d6fd059f chore(deps) Update Tauri Utils (#1476)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-24 12:54:21 -03:00
Lucas Fernandes Nogueira
7471e347d3 feat(core): add error message on error::CreateWebview (#1602) 2021-04-23 15:30:02 -03:00
Lucas Fernandes Nogueira
cfa74ebf68 feat(core): validate dialog default_path (it must exist) (#1599) 2021-04-23 03:17:29 -03:00
Lucas Fernandes Nogueira
aa7e2738cc feat: use rfd::FileDialog#set_file_name if default_path is a file (#1598) 2021-04-23 03:04:47 -03:00
Lucas Fernandes Nogueira
82ef8f6a92 fix(core): clippy warnings, closes #1490 (#1595)
* fix(core): clippy warnings, closes #1490

* fix: cli.rs build
2021-04-23 01:40:43 -03:00
Lucas Fernandes Nogueira
5e65b768e5 fix(core): expose PageLoadPayload struct (#1590) 2021-04-22 20:35:50 -03:00
Lucas Fernandes Nogueira
0234336d6a chore: cleanup setup error usage (#1588) 2021-04-22 19:14:02 -03:00
Lucas Fernandes Nogueira
ef474e5635 feat(ci): cache (#1585) 2021-04-22 17:34:46 -03:00
Lucas Fernandes Nogueira
99307d02c3 fix(core): sidecar command path (#1584) 2021-04-22 16:01:56 -03:00
Lucas Fernandes Nogueira
8fd1baf69b fix(core): pull package info from tauri.conf.json if set (#1581)
* fix(core): pull package info from tauri.conf.json if set

* fix: codegen
2021-04-22 12:28:18 -03:00
Lucas Fernandes Nogueira
5f033db41c feat(core): use bundle identifier on user data path (#1580) 2021-04-22 11:05:03 -03:00
david
5909c1e014 Make sure custom protocol is handled as secure context on macOS (#1551) 2021-04-22 10:09:42 -03:00
Lucas Fernandes Nogueira
422dd5e2a0 fix(core): command name on plugin invoke handler (#1577) 2021-04-21 23:31:27 -03:00
Lucas Fernandes Nogueira
d3fdeb4518 feat(core): expose async_runtime module (#1576) 2021-04-21 22:09:24 -03:00
Lucas Fernandes Nogueira
508eddc784 refactor(core): plugin initialization return value (#1575) 2021-04-21 21:44:18 -03:00
Lucas Fernandes Nogueira
938fb624f5 feat(core): expose custom protocol handler APIs (#1553) 2021-04-21 15:43:11 -03:00
Lucas Fernandes Nogueira
be65f04db7 fix(core): make window.__TAURI__.invoke context free, fixes #1547 (#1565) 2021-04-21 15:42:52 -03:00
Lucas Fernandes Nogueira
ceadf2f556 fix(core): macos shortcut modifiers, closes #1542 (#1560) 2021-04-21 09:12:18 -03:00
renovate[bot]
7b7658fbac chore(deps) Update Tauri Core (#1555)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-21 01:41:52 -03:00
Lucas Fernandes Nogueira
b2ed00087d chore: remove entire test folder from packaged tauri crate (#1552) 2021-04-20 20:13:42 -03:00
Jacob Bolda
ae14a3ff51 fix: #1517 had the wrong package reference in the changefile (#1538) 2021-04-19 12:31:13 -05:00
github-actions[bot]
a202b68447 apply version updates (#1503)
Co-authored-by: jbolda <jbolda@users.noreply.github.com>
2021-04-19 17:19:30 +02:00
Laegel
fcb3b4857e fix: #1512 (#1517)
* fix: Export

* chore(changefile)

* fix: Updated publish step

* fix: Also outputting CommonJS

* fix:`preparePublish` now copies the necessary files

* fix: typo

Co-authored-by: Laegel <valentin.chouaf@laposte.net>

* chore: update `build` script

* chore: add `prepublishOnly script`

* chore: update `api` covector config

* round two, fight!!

Co-authored-by: amrbashir <48618675+amrbashir@users.noreply.github.com>
2021-04-18 22:31:12 -05:00
renovate[bot]
7093dc6e11 chore(deps) Update Tauri Core (#1474)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-16 19:52:35 -03:00
chip
e447b8e0e6 allow event listeners to be nested (#1513)
* allow event listeners to be nested

* finish event comment

* remove extraneous into_iter()

* use tag instead of params on event for easier testing
2021-04-15 21:22:47 -03:00
chip
ece243d17c don't remove once listener on new thread (#1506)
Spawning an async task to remove the once listener caused it to be able to be
called multiple times before being removed. This design choice was previously
made due to deadlock happening when removing the event from inside `fn once`.
That was because the listeners were already locked inside the trigger when
asked to be removed. `fn trigger` now handles removing once handlers
2021-04-15 08:11:42 +02:00
github-actions[bot]
345f2dbfc5 Apply Version Updates From Current Changes (#1499)
Co-authored-by: nothingismagick <nothingismagick@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-04-14 20:33:44 -03:00
nothingismagick
850a99a576 fix(*): too many stars (#1491)
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com>
2021-04-14 23:17:58 +02:00
Lucas Fernandes Nogueira
395fbb343a fix(core): build error without updater feature (#1489) 2021-04-14 22:55:05 +02:00
github-actions[bot]
e267ebf1f1 Apply Version Updates From Current Changes (#1486)
* apply version updates

* adjust versions to beta-rc

Co-authored-by: jbolda <jbolda@users.noreply.github.com>
Co-authored-by: Jacob Bolda <me@jacobbolda.com>
2021-04-14 13:51:25 -05:00
nothingismagick
7d8eb5effb chore(authors): use programme title (#1478)
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com>
2021-04-14 13:11:08 -05:00
chip
ec27ca81fe refactor(tauri): remove private params trait methods (#1484)
* refactor(tauri): remove private params trait methods

* add changes file

* remove newly unused trait in WindowManager unit test
2021-04-14 13:03:20 -05:00
Lucas Fernandes Nogueira
f2d24ef2fb chore(deps): update wry (#1482) 2021-04-14 12:58:22 -05:00
github-actions[bot]
49c450d6fe Apply Version Updates From Current Changes (#1165)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-04-14 10:50:15 -03:00