Commit Graph

107 Commits

Author SHA1 Message Date
Lucas Fernandes Nogueira
319cf16a54
fix: prune packages, add license files, closes #1507 (#1769)
Co-authored-by: Daniel Thompson-Yvetot <denjell@mailscript.com>
2021-05-10 20:28:15 -03:00
nothingismagick
afb4f2f896
chore(docs): add root-level ARCHITECTURE.md (#1766)
* chore(docs): add root-level ARCHITECTURE.md

Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com>

* chore(readme): cleanup  [skip ci]

Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com>

* chore(cli.js): update readme

Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com>

* chore(license): ship both apache and mit

Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com>

* chore(remove license): [skip ci]

Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com>

* chore(assimilation): we are now the borg

Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com>

* cleanup [skip ci]

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-05-10 20:39:24 +02:00
Lucas Fernandes Nogueira
d06e1de46b
fix(core): dialog freezing regression on macOS (#1768) 2021-05-10 15:02:50 -03:00
Lucas Fernandes Nogueira
22676df57a
refactor(core): menu and system-tray feature flags (#1765) 2021-05-10 13:27:42 -03:00
Lucas Fernandes Nogueira
5edda4ba08
fix(core): system tray icon path resolution (Linux) (#1763) 2021-05-10 00:27:43 -03:00
Lucas Fernandes Nogueira
7bb7dda752
refactor(core): resolve resource_dir using the package info (#1762) 2021-05-10 00:01:12 -03:00
Lucas Fernandes Nogueira
b6b4128885
chore(deps): wry 0.9.1 (#1761) 2021-05-09 22:50:16 -03:00
Lucas Fernandes Nogueira
4687538987
refactor(core): drop Option payload type on event::emit (#1760) 2021-05-09 22:50:08 -03:00
Lucas Fernandes Nogueira
34b6032df7
feat(core): add on_window_event (global) API to app::Builder (#1759) 2021-05-09 22:22:06 -03:00
Lucas Fernandes Nogueira
455c550f34
refactor(core): Settings serialization using bincode (#1758) 2021-05-09 22:09:32 -03:00
Lucas Fernandes Nogueira
8d2e4c63c7
fix(core): do not reattach window on rpc/file_drop (#1757) 2021-05-09 21:33:40 -03:00
Lucas Fernandes Nogueira
45a7a111e0
feat(core): add tauri-wry crate (#1756) 2021-05-09 18:43:50 -03:00
chip
f190f11f13
fix(core): allow !Sync futures to be used with #[command] (#1755) 2021-05-09 18:03:27 -03:00
chip
2f4fca7567
refactor(core): clearer case conversion + docs (#1754) 2021-05-09 18:02:26 -03:00
Lucas Fernandes Nogueira
665ec1d4a1
refactor: move runtime to tauri-runtime crate (#1751) 2021-05-09 15:19:37 -03:00
chip
e84949524c
fix(core): convert command arguments to camel case (#1753) 2021-05-09 15:14:48 -03:00
chip
bb8dafbe1e
feat(core): #[command] return with autoref specialization workaround fix #1672 (#1734)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-05-09 08:52:20 -03:00
Lucas Fernandes Nogueira
c090927021
feat(core): system tray, closes #157 (#1749) 2021-05-09 08:15:37 -03:00
Lucas Fernandes Nogueira
41d5d6aff2
feat(core): window menus (#1745) 2021-05-08 12:11:40 -03:00
Lucas Fernandes Nogueira
dbd9b078aa
refactor(core): create_window API signature on the Window struct (#1746) 2021-05-08 09:37:06 -03:00
Lucas Fernandes Nogueira
56e74ccf74
feat(core): ensure window.print()works on macOS (#1738) 2021-05-07 10:58:44 -03:00
Lucas Fernandes Nogueira
9c10ccf8d3
feat(core) window events, closes #1523 (#1726) 2021-05-06 00:43:02 -03:00
Lucas Fernandes Nogueira
e087f0f937
feat: add #[non_exhaustive] attribute (#1725) 2021-05-05 22:22:45 -03:00
Lucas Fernandes Nogueira
6bfac866a7
refactor(core): add window getters, physical & logical sizes/positions (#1723) 2021-05-05 20:15:08 -03:00
renovate[bot]
879f2965ec
chore(deps) Update Rust crate notify-rust to 4.5.0 (#1722)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-05 16:55:27 -03:00
Lucas Fernandes Nogueira
f7892cf4ff
feat(api): documentation (#1694)
* feat(api): documentation

* more docs [skip ci]
2021-05-05 14:36:40 -03:00
chip
1453d4bf84
feat(core): support generics (especially Param) in #[command] (#1622)
* wip: param argument proof of concept for #[command]

* use macros for automatic type inference in commands

* refactor command for better error handling

* remove redundant ToTokens impl for Wrapper and Handler

* create `StateP` to allow state to use type inference during commands

* wrap State instead of T

* remove accidental edit of attribute

* remove StateP

because we recommend `_: Window<P>` for type inference, the following
function types are now supported:
* Pat::Wild (arg: "_")
* Pat::Struct (arg: final path segment)
* Pat::TupleStruct (arg: final path segment)

* add wildcard, struct, and tuple struct commands to examples

* better unsupported command argument message

* feat(examples): move some commands to a separate module

* add change file

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-05-05 14:32:13 -03:00
renovate[bot]
9eebd03857
chore(deps) Update Rust crate zstd to 0.8 (#1707)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-05 02:04:45 -03:00
renovate[bot]
fe7fc7a2ca
chore(deps) Update Rust crate zstd to 0.8 (#1708)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-05 02:04:38 -03:00
renovate[bot]
180e12a09c
chore(deps) Update Rust crate notify-rust to 4.4.1 (#1705)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-05 02:03:13 -03:00
Lucas Fernandes Nogueira
6132f3f4fe
feat(core): reintroduce CSP injection (#1704) 2021-05-04 23:31:05 -03:00
Lucas Fernandes Nogueira
428d50add4
refactor(core): use bundle identifier on app dir, closes #1693 (#1703)
* refactor(core): use bundle identifier on app dir, closes #1693

* fix: tests

* clippy
2021-05-04 20:26:13 -03:00
Lucas Fernandes Nogueira
92a01a7cab
chore(deps): bump tauri-hotkey to 0.1.2 (#1701) 2021-05-04 12:05:26 -03:00
Lucas Fernandes Nogueira
2747bb6c11
fix(core): dialog API deadlock, closes #1695 (#1696) 2021-05-03 22:06:50 -03:00
Lucas Fernandes Nogueira
5110c704be
feat(core): allow users to access the Assets instance (#1691)
* feat(core): allow users to access the Assets instance

* chore(changes): mark as breaking change [skip ci]
2021-05-03 15:07:38 -03:00
Lucas Fernandes Nogueira
836ee60dc8
fix(wry): ControlFlow must be set to Wait for performance reasons (#1688) 2021-05-03 12:24:18 -03:00
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