Lucas Fernandes Nogueira
d1f650edd3
chore(docs): improve manage API examples on interior mutability ( #1875 )
2021-05-20 10:40:18 -03:00
Lucas Fernandes Nogueira
aab3e1f18b
refactor(core): move api modules behind allowlist feature flags ( #1864 )
...
* refactor(core): move api modules behind allowlist feature flags
* run fmt
2021-05-19 09:21:57 -03:00
Lucas Fernandes Nogueira
17c7c4396f
refactor(core): use attohttpc by default ( #1861 )
2021-05-19 01:06:08 -03:00
Lucas Fernandes Nogueira
95d518afa1
feat(core): expose AppHandle, add create_window API ( #1855 )
2021-05-18 16:49:01 -03:00
Lucas Fernandes Nogueira
7616e6cc7b
feat(api): validate window API size and location arguments ( #1846 )
...
* feat(api): validate window API `size` and `location` arguments
* fmt
2021-05-17 11:47:11 -03:00
Ngo Iok Ui (Wu Yu Wei)
c1f8e11342
chore: remove unnecessary anonymous lifetimes ( #1829 )
2021-05-14 10:29:54 -03:00
chip
0b87532706
fix(macros): fix rest of command collisons ( #1805 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2021-05-12 12:56:16 -03:00
chip
7862ec562f
fix(macros): change invoke binding in generate handler ( #1804 )
2021-05-12 12:22:05 -03:00
Lucas Fernandes Nogueira
d36b726926
fix(macros): collision when command is named cmd ( #1802 )
2021-05-12 11:17:33 -03:00
nothingismagick
12268e6e69
fix(csp): add 'self' ( #1794 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2021-05-12 09:45:39 -03:00
chip
caba4ed198
feat(examples): barebones custom param type example ( #1780 )
...
* feat(examples): barebones custom param type example
* cargo +nightly fmt
* fix build
* add required imports
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2021-05-11 15:44:53 -03:00
chip
27a7810767
feat(core): add default Args to all types exposing Params ( #1777 )
2021-05-11 14:32:11 -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
7bb7dda752
refactor(core): resolve resource_dir using the package info ( #1762 )
2021-05-10 00:01:12 -03:00
Lucas Fernandes Nogueira
665ec1d4a1
refactor: move runtime to tauri-runtime crate ( #1751 )
2021-05-09 15:19:37 -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
6bfac866a7
refactor(core): add window getters, physical & logical sizes/positions ( #1723 )
2021-05-05 20:15:08 -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
Lucas Fernandes Nogueira
6132f3f4fe
feat(core): reintroduce CSP injection ( #1704 )
2021-05-04 23:31:05 -03:00
Lucas Fernandes Nogueira
53f842656b
feat(examples): add window creation on navigation example ( #1692 )
2021-05-03 15:41:09 -03:00
Lucas Fernandes Nogueira
26c6a832bf
feat(examples): add navigation example ( #1690 )
2021-05-03 14:42:40 -03:00
Lucas Fernandes Nogueira
8845487f9d
fix(cli.js): handle cli.rs promise rejection ( #1689 )
2021-05-03 14:42:31 -03:00
Lucas Fernandes Nogueira
2122ae61fa
feat(examples): add state example ( #1687 )
...
* feat(examples): add state example
* clippy
2021-05-03 13:16:34 -03:00
Lucas Fernandes Nogueira
b86fe9a6de
feat(examples): add splashscreen example ( #1685 )
2021-05-03 11:16:51 -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
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
Aivan Monceller
361456afbd
refactor(example): svelte imports ( #1673 )
2021-05-02 09:00:06 -03:00
Lucas Fernandes Nogueira
5c1fe52c2b
feat(cli.rs): allow using cross instead of cargo, add target triple arg ( #1664 )
2021-04-30 15:16:14 -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
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
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
Lucas Fernandes Nogueira
9490b257d2
fix(cli.rs): enable the updater feature on cli ( #1597 )
2021-04-23 01:41:51 -03:00
Lucas Nogueira
1b159748e7
chore(examples): update api build files
2021-04-23 00:25:01 -03:00
Lucas Fernandes Nogueira
2c69f90658
chore(examples): do not use lld linker ( #1589 )
2021-04-22 19:38:14 -03: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
Lucas Fernandes Nogueira
5b6c7bb6ee
feat(examples): showcase basics of multiwindows feature on api example ( #1468 )
2021-04-12 23:35:57 -03:00
Lucas Fernandes Nogueira
aea614587b
refactor(repo): add /tooling folder ( #1457 )
2021-04-12 01:59:25 -03:00
chip
a6def7066e
Refactor(tauri): move tauri-api and tauri-updater to tauri ( #1455 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2021-04-12 01:09:41 -03:00
Lucas Nogueira
88cd6baa9d
Merge remote-tracking branch 'origin/dev' into feature/create-tauri-app
2021-04-11 10:11:29 -03:00
Jacob Bolda
40ac52971e
feat: create-tauri-app wiring ( #1442 )
...
* chore(deps) Update Tauri JS CLI (#1319 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* chore(deps) Update Tauri Core (#1318 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* chore(deps) Update Tauri API (#1316 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* chore(deps) Update Rust crate serde_json to 1.0.64 (#1315 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* chore(deps) Update Rust crate once_cell to 1.7.2 (#1314 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* chore(deps) Update Rust crate image to 0.23.14 (#1313 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* feat(cli/build): improve no distDir error message (#1306 )
* feat(cli/build): improve no distDir error message
* chore: use Path's Display impl
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
* chore(deps) Update Tauri API Definitions (#1317 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
* feat(bundler/wix): install webview2 runtime (#1329 )
* feat(bundler/wix): install webview2 runtime
* add changefile
* chore(deps) Update Tauri API Definitions (major) (#1290 )
* chore(deps) Update Tauri API Definitions
* chore: update to husky v5
* chore: remove husky script
* chore: recreate lock file
Co-authored-by: Renovate Bot <bot@renovateapp.com >
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
* chore(deps) Update Tauri JS CLI (#1291 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
* refactor(core): app hooks (#1332 )
* fix(api/window): rename manager export to appWindow (#1342 )
* feat(api/shell): allow open command to open files (#1341 )
* chore(deps) Update Tauri API Definitions (#1344 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* chore(deps) Update Rust crate tokio to 1.3 (#1343 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* chore(deps) Update Rust crate open to 1.6.0 (#1348 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* fix(core): wrong usage of wry RPC on event API (#1351 )
* copy cli config definition window visibility defaults (#1353 )
* feat(core): add file drop handler (#1352 )
* fix: get correct resource dir in AppImge (fix #1308 ) (#1333 )
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
* feat: build without proc macros (#1226 )
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
* chore(deps) Update Tauri JS CLI (#1346 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* refactor(core): use Mutex in std to reduce async usage (#1350 )
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
* fix(examples): build error (#1354 )
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
* API example new ui (#1310 )
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
* chore(deps): remove `winres` from template (#1357 )
* refactor(core): add `unlisten`, `once` APIs to the event system (#1359 )
* fix(cli): use correct arg in `_blanks` links polyfill (#1362 )
* fix(api/http): correct types (#1360 )
* fix(api/http): correct types
* Add changes
* Update correct-http-api-types.md
* chore(deps) Update Tauri JS CLI (#1364 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* chore(deps) Update Tauri API Definitions (#1363 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* fix(tauri/webview): Use different user_data_path for Windows (#1365 ) (#1366 )
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
* fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371 )
* fix(config): serde_json::Value::Object takes a Map instead of HashMap
* fix: fmt
* fix(tauri.js): init command properly building with manifests (#1374 )
* fix(tauri.js): init command properly building with manifests
* fix: tests
* feat(bundler): add visual c++ redistributable files with MSM (#1368 )
* refactor(core): reduce usage on arc and mutex (#1361 )
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
* feat(config): allow setting product name and version on tauri.conf.json (#1358 )
* feat: add current working directory to path api module (#1375 )
* refactor(core): move bundle script to /tauri crate (#1377 )
* refactor(core): move bundle script to /tauri crate
* fix(cli): clippy
* fix(core): tests
* refactor(core): custom protocol URL uses the app identifier (#1376 )
* refactor(core): custom protocol URL uses the app identifier
* fix: clippy
* fix(tauri-api): remove .exe from app_name on windows (#1379 )
* chore(deps) Update Tauri API Definitions (#1384 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* chore(deps) Update Rust crate tokio to 1.4 (#1383 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* fix(cli): prmpt user before install deps in init (#1381 )
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
* chore(deps) Update dependency rollup to v2.42.4 (#1386 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* refactor(cli): rewrite init command in Rust (#1382 )
Co-authored-by: nothingismagick <denjell@mailscript.com >
* refactor(bundler): specific settings on dedicated structs, update README (#1380 )
* replace lazy_static uses with once_cell (#1391 )
* chore(deps) Update Tauri JS CLI (#1385 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* refactor(cli): rewrite info in Rust (#1389 )
* refactor(core): remove async from app hooks, add InvokeMessage type (#1392 )
* fix(cli): disable custom-protocol feature on dev command (#1393 )
* Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395 )
* feat(bundler) code signing (#473 )
Co-authored-by: Rajiv Shah <rajivshah1@icloud.com >
Co-authored-by: David Lemarier <david@lemarier.ca >
* feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399 )
* update to sharp 0.28.0 for cpu arm (m1) (#1404 )
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
* feat(cli): propagate args passed after `dev --`, closes #1406 (#1407 )
* refactor(api): use secure RNG, closes #1356 (#1398 )
* chore(deps) Update Tauri API Definitions (#1411 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* chore(deps) Update Rust crate rfd to 0.2.2 (#1410 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* chore(deps) Update Tauri CLI (#1413 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* chore(deps) Update Tauri Bundler (#1412 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* refactor(core): rewrite shell execute API, closes #1229 (#1408 )
* chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* chore(deps) Update Tauri JS CLI (#1414 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* fix: asset resolution on debug mode
* fix(core): ignore query string on custom protocol asset resolver (#1420 )
* wire up existing and adjust recipe configuration
* merge dev
* fix default app name
* clean up vanillajs and proper pass args
* use scaffe to copy the react templates
* fix(api): remove cjs, rename .mjs to .js
* chore: tauri.js dead code elim (#1422 )
* remove templates, only used it CTA
* help command is empty, remove
* delete files that aren't imported / required
* set files array to ignore src and config files
* remove unused deps
* add arch notes for future ref
* change file
* allow specifying a binary
* resolve last bits to reach scaffe
* adjust vanilla js template dir path
Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com >
* fix up cra scaffolding
* remove none and rely on vanillajs
* log shell commands
* remove no recipe question branch
* shift react template for better overwrite copying
* update deps
* simple readme
* implement dep manager
* pretty
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com >
Co-authored-by: Noah Klayman <noahklayman@gmail.com >
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com >
Co-authored-by: chip <chip@chip.sh >
Co-authored-by: Gabe Cohen <gcc3.14@gmail.com >
Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com >
Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com >
Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com >
Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com >
Co-authored-by: david <david@lemarier.ca >
Co-authored-by: nothingismagick <denjell@mailscript.com >
Co-authored-by: William <william@venner.io >
Co-authored-by: Rajiv Shah <rajivshah1@icloud.com >
Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com >
Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com >
2021-04-11 04:22:07 -05:00
nothingismagick
bf82136466
feat(license): SPDX Headers ( #1449 )
...
* chore(licenses): api
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(licenses): scripts
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): cli/core
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): cli/tauri-bundler
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): workflows
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): require license_template in rust
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): core/tauri
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): core/tauri-api
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): core/tauri-build
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): core/tauri-codegen
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): core/tauri-macros
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): core/tauri-updater
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): core/tauri-utils
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): examples
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): cli/tauri.js
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): changefile
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): place both licenses in root
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): package.json SPDX
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): SPDX everywhere
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* fix(tauri.js): tests more time for ubuntu
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): commons conservancy language
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): add spdx file
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* fix(license): clippy
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): language
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
2021-04-11 00:09:09 +02:00
Lucas Fernandes Nogueira
8b36fe0c5d
refactor: move tauri crates to /core folder ( #1444 )
2021-04-08 13:22:20 -03:00
david
e511d39910
feat(api): Expose application metadata and functions to JS api - fix #1387 ( #1445 )
2021-04-08 12:50:55 -03:00
chip
9ce0569f17
fix(example): unlisten to event on tab change in api example ( #1436 )
...
* unlisten to event on tab change in api example
* rewrite
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2021-04-06 19:51:15 -03:00
chip
94038b5e71
refactor(tauri): remove app runner, use builder ( #1429 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2021-04-06 17:50:53 -03:00
Lucas Fernandes Nogueira
9b35cf7a1b
feat(config): simplify app urls with custom paths ( #1432 )
2021-04-06 02:01:32 -03:00
chip
8584e667cd
speed up asset inclusion on debug mode ( fixes #1394 ) ( #1430 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2021-04-06 01:15:53 -03:00