Commit Graph

40 Commits

Author SHA1 Message Date
renovate[bot]
b4544b63f2 chore(deps) Update Tauri API (#1072)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-11-07 10:45:27 -03:00
Lucas Fernandes Nogueira
82cda98532 chore(tauri) dirs crate is unmaintained, use dirst-next instead (#1057) 2020-10-17 21:01:10 -03:00
PTrottier
0ede99da42 Make the dialog API comments more consistent (#1005) 2020-09-01 22:55:23 -05:00
chip
bbccad4e03 fix clippy warnings (#891)
Signed-off-by: Chip Reed <chip@chip.sh>
2020-07-24 08:19:10 -03:00
chip
a3362f3ade disable tests that fail on default windows installs (#890)
cat is not available as a command on a default windows install.
This disables the command test that uses cat during tests.  It also
disables `test_cmd_fail` even though it passes, because the test
is testing the wrong thing in this case.
2020-07-24 08:09:56 -03:00
Lucas Fernandes Nogueira
0245833bb5 feat(tauri) make window.alert and window.confirm available, fix #848 (#854) 2020-07-18 18:13:57 -03:00
Lucas Fernandes Nogueira
56f819d2ef feat(tauri) allow plugin config on tauri.conf.json (#824) 2020-07-13 18:18:06 -03:00
Lucas Fernandes Nogueira
fedee835e3 fix(tauri.js) windows Edge blank screen on tauri dev (#808) 2020-07-11 07:52:34 -03:00
Lucas Fernandes Nogueira
26635845bf feat(tauri) use port as number or the "random" string (#784) 2020-07-09 10:20:25 -03:00
Lucas Fernandes Nogueira
c8f430297f feat(workflow) improve clippy check, add fmt and audit checks (#754) 2020-07-05 22:13:50 -03:00
Lucas Fernandes Nogueira
522c86a956 refactor(tauri) simplify API functions types usage (#725) 2020-06-30 14:04:36 -03:00
Lucas Fernandes Nogueira
6b097345ed refactor(tauri) execute_promise String/Serialize management (#724) 2020-06-29 15:39:39 -03:00
Lucas Fernandes Nogueira
6d23b0673e docs(rust) add rustdocs to the crates (#723) 2020-06-28 10:34:43 -03:00
Lucas Fernandes Nogueira
dd1bffe91e refactor(api) rewrite readDir API (#722) 2020-06-27 15:40:46 -03:00
Lucas Fernandes Nogueira
e0c330cfb6 fix(tauri) httpRequest API JSON/Text response reader, header value as string, closes #691 (#702) 2020-06-19 14:59:16 -03:00
Lucas Fernandes Nogueira
d299a2b94d feat(tauri) CLI args additions (positional args, bool as value for args with takesValue=false) (#695) 2020-06-18 13:01:47 -03:00
Lucas Fernandes Nogueira
b04be6664e fix(tauri) environment variables usage (#688) 2020-06-17 18:11:11 -03:00
Lucas Fernandes Nogueira
d3c53ebf30 feat(tauri) make Config globally available (#681) 2020-06-17 13:05:51 -03:00
uneducated potato
92087db23c Implement HttpRequestBuilder for HttpRequestOptions (#651) (#677) 2020-06-15 01:11:51 -03:00
Lucas Fernandes Nogueira
406dea79ed feat(tauri) add Notifications API (#505) 2020-06-15 01:09:02 -03:00
Lucas Fernandes Nogueira
14a1ddfe18 feat(tauri) add app CLI interface config (#670) 2020-06-14 23:36:35 -03:00
Wu Yu Wei
c23675b5e5 refactor(tauri) update error handling crate to anyhow+thiserror, close #613 (#621)
* Replace error-chain with thiserror in util crate

* Replace errorchain with anyhow/thiserror in api

* Replace with anyhow/thiserror in updater

* Replace with anyhow/thiserror in tauri

* Fix error handling on windows
2020-05-29 19:22:04 -04:00
Lucas Fernandes Nogueira
4b54cc1564 feat(tauri) add httpRequest API (#589) 2020-05-11 17:03:58 -03:00
Lucas Fernandes Nogueira
b2e28f39fe feat(tauri) add path API (#513)
* feat(tauri) extend file system API

* chore(deps) pin web-view deps

* feat(tauri) add path API

* feat(tauri.js) add Dir definition and usage

* fix(tauri) correctly determine app_name

* feat(example) add Dir select to the communication example

* chore(tauri) wrap comment line

* fix(tauri) build works
2020-03-17 07:42:59 -03:00
Lucas Fernandes Nogueira
8ac066700a feat(tauri) extend file system API (#512)
* feat(tauri) extend file system API

* chore(deps) pin web-view deps
2020-03-16 17:04:15 -03:00
Lucas Fernandes Nogueira
37e8e79a04 feat(tauri) add dialog API (#514)
* feat(tauri) add dialog API

* feat(example) add dialog API to the communication example

* fix(dialog) transform backslash so it works on windows
2020-03-15 18:09:44 -03:00
renovate[bot]
5b46bacd46 chore(deps) Update Rust crate serde_json to 1.0.48 (#507)
* chore(deps) Update Rust crate serde_json to 1.0.48

* fix(tauri) resolve clippy warning

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-03-12 13:04:52 -03:00
Lucas Fernandes Nogueira
b95319bd74 feat(tauri.js) improve api module with type defs for each API fu… (#495)
* feat(tauri.js) improve api module with type defs for each API function

* chore(tauri) move endpoint specific modules

* refactor(tauri) move tcp mod to tauri_api

* feat(tauri) improve readDir signature, API features as kebab-case names

* fix(tauri) make event's payload optional

* feat(tauri) if invoke_handler fails, console.error the error message

* chore(api) improve JSDoc

* chore(tauri.js) update template

* chore(tauri) delete empty mod

* fix(tauri) tests and example with latest API signature
2020-03-09 18:44:19 -03:00
Tensor-Programming
6f12a34e6f Refact(All): (WIP) Cleanup workflow and add Windows Features. (#468)
* use var_os instead of var

* combine both var calls

* Add logic to remove cmd windows.

* fix build.rs

* modify for clippy.

* expose handle and refactor commands.

* add author name

* revert command changes

* little refactor

* add loopback to wix template

* fix custom command
2020-02-29 19:07:26 -05:00
Tensor-Programming
7b8edd29ea Fix(All) - Add Edge support to GUIJS (#452)
* fix edge api to use window.external.invoke

* remove tauri-examples

* remove if statement

* add more cases.

* add batch_to_exe script
2020-02-23 18:15:57 -05:00
Ty Tracey
b114fb8c38 Adding Clippy/Rust Fmt to the pr workflow #333 (#367)
* Added clippy configuration file, added github action to run clippy, and changed line endings for rust fmt

* fix(cippliy-check-action) install webkit2gtk

* fix(clippy_check) add env variables

* refactor(tauri) fix clippy checks

* chore(tauri) use tauri_includedir_codegen v0.5.2

* fix(tests) dir tests

Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com>
2020-02-08 14:18:09 -03:00
Tensor-Programming
cffda68b42 Refactor(All): Update and Format Deps for 2018 (#397)
* remove extern crate and macro_use

* fix test file

* update CLI

* organize imports

* organize core

* update api

* update updater

* update create-react-app

* update gatsby example

* update next-js example

* update svelte example

* update vanilla-js example

* update nuxt example

* update quasar example

* update vue example

* update templates.

* update build.rs

Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com>
2020-02-08 13:08:54 -03:00
Lucas Fernandes Nogueira
b7a6bc0f42 feat(bundler&tauri) add wix resource bundling and utils to get the path to the platform resource dir (#352)
* feat(bundler) copy resources to the out dir

* feat(utils) add resource_dir fn

* feat(examples) spawn node with resource JS instead of pkg bin

* feat(bundler) WIP on windows resource bundler

* feat(utils) add windows, macos resource_dir logic

* fix(bundler) resource folder iteration on wix

* chore(bundler) add comments to generate_resource_data fn

* chore(bundler) add comments to the get_wix_data fn

* change minor items.

* run `cargo fmt`

* run `rust fmt` and `clippy` and add fmt.toml

* remove unnessecary rustfmt.toml files.

Co-authored-by: Tensor-Programming <abeltensor@tensor-programming.com>
2020-01-26 19:57:09 -05:00
Tensor-Programming
91bf26c336 Refactor(Updater) Modernize Updater Crate and add Utils Crate (#335)
* update updater

* basic utils refactor.

* fix platform file.

* add errors.

* fix cargo.toml

* Rename cargo.toml to Cargo.toml

* remove warning.
2020-01-17 19:33:17 -05:00
Tensor-Programming
b9f3d9a92c refactor(Bundler, API) clean up external binary logic (#332)
* refactor external binary logic

* update regex and error.

* refactor bundle_settings external bin

* fix bug

* cleanup api

* cleanup windows deps.

* add windows macro
2020-01-16 22:19:21 -05:00
Lucas Fernandes Nogueira
6225e5d30a feat(bundler) add option to bundle external binaries (#312)
* feat(tauri-cli) add option to bundle external binaries

* feat(tauri-cli) bundle external binaries for OSX

* fix(cargo.toml) external bin path

* feat(bundler) bundle external binaries on MSI/WiX

* feat(tauri) append target triple to external binary name

* call cargo fmt.

Co-authored-by: Tensor-Programming <abeltensor@tensor-programming.com>
Co-authored-by: nothingismagick <drthompsonsmagickindustries@gmail.com>
2020-01-15 19:39:34 +01:00
Tensor-Programming
667d5905f6 Refact(api) Add error chain to Tauri_api. (#311)
* add error chain

* remove verson error

* update file error

* update dir

* fix file_system

* add command error type.

* fix minor inconsistency

* add command tests

* add other tests for cmd.

* add more testing for cmd

* add documentation.

* add walk_dir tests and documentation.

* add list_dir_contents test

* test for with_temp_dir

* add read_string tests and file error type.

* add test_binary and update tests.

* add check_read_binary_fail test

* add os codes for unix based systems.

* add core-tauri-test gh action

* update test-on-pr

* fix test to test all libs.

* fix unix/windows errors
2020-01-14 22:03:59 -05:00
Tensor-Programming
83b3fcb8c8 feat(Tauri-core) Add Quicktest to Tauri-API (#239)
* add simple bat and ps1 setup scripts

* add proptest for property testing

* add comments.

* add basic bash script (needs improvement)

* add basic quickcheck tests.

* add more comments.

* add simple is_dir test.

* add support for windows commands; remove returns

* remove print statement

* change prefixes to ch and add script

* fix prefixes.

* move qc script to .scripts folder.

* fix bash path.

* move scripts to root and add if checks.

* update bash script with more logic to check dirs.

* update bash script with more logic to check dirs.

* clean up and verify

* update gitignore for .vscode folder outside root

* add docs

* update docs

* format scripts
2019-12-29 00:45:13 -05:00
Tensor-Programming
b92eee019c [Refactor] Remove unwraps from tauri (#234)
* remove unwraps from tauri code

* refactor bundler and remove unwraps

* remove errors

* cleaup and add distinctions

* reword panic
2019-12-26 16:09:04 -05:00
Tensor-Programming
e288180104 [WIP] Refactor(Crates) Tauri into individual Crates (#192)
* split tauri into 3 crates

* fix macros

* change builder into lib

* cleanup package paths

* add features back to lib

* make build function public

* add build-deps

* rename and fix.

* correct package name

* move crates to root and refactor names

* fix github action

* move fixture to tauri-build

* remove slash

* add .vscode features

* fix updater

* fix updater mistake

* fix(tauri) refactor buiilds

* fix seperation

* change get back to get

* fix cfg and remove dead code warnings.

* roll #160 into this pr

* add credit

* fix eof

* chore(tauri) move assets to mod, loadAssets cfg outside its definition

* chore(tauri) remove unused deps

* update updater and cfg

* fix(tauri) embedded-server with dead variable

* add review refactors and remove cli form workgroup

* chore(tauri) rename tauri to tauri-api and tauri-bundle to tauri

* fix workspace and updater

* rename update to updater
2019-12-22 14:04:45 -05:00