Commit Graph

69 Commits

Author SHA1 Message Date
Lucas Fernandes Nogueira
33eb49c4c0
refactor: use own invoke return struct instead of serde_json::Value (#1259) 2021-02-18 16:57:29 -03:00
Lucas Fernandes Nogueira
ea7332539d
refactor(core): all API are now promise based (#1239) 2021-02-16 01:23:15 -03:00
Lucas Fernandes Nogueira
77fc730671
refactor(core): split endpoint API matching into modules (#1219) 2021-02-12 02:42:40 -03:00
Lucas Fernandes Nogueira
35468f68e5
chore(fmt): merge imports (#1216) 2021-02-11 03:22:42 -03:00
Lucas Fernandes Nogueira
84d7cdae63
refactor(core): remove no-server and its APIs (#1215) 2021-02-11 02:33:18 -03:00
chip
e02c9419cb
refactor(tauri): support for building without environmental variables (#850)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-02-09 15:22:04 -03:00
Lucas Fernandes Nogueira
99ecf7bb3e
feat(tauri): use WRY as webview engine (#1190) 2021-02-08 11:19:22 -03:00
Lucas Fernandes Nogueira
b9ce7b94c4
refactor(tauri): Webview traits (#1183) 2021-02-05 00:44:58 -03:00
Lucas Fernandes Nogueira
a169b67ef0
feat(tauri): add async support (#1169) 2021-02-03 20:47:57 -03:00
Lucas Fernandes Nogueira
3e8abe3764
feat(cli) rewrite the core CLI in Rust (#851) 2021-01-30 12:15:47 -03:00
Lucas Fernandes Nogueira
f887320df3
fix(template) default windows icon id should be 32512, fixes #1099 (#1107) 2020-12-05 22:42:27 -03:00
Jacob Bolda
6a21965ff3
chore: add prettier for js formatting (#937)
* chore: add prettier for js/ts formatting

* fix lint-staged to object

* test commit

* format all

* lock file bump

* eslint extends prettier

This will let us skip rules in eslint that prettier can control. Prettier for styles, eslint for code errors.

* add prettier config

* roll back to what we had with eslint settings

* skip mutation observer

* add prettier typescript eslint

* run prettier in lint workflow

* format:check script

* turn off space before function in eslint

it is fighting with prettier

* fix dir in workflow

* remove semis

* add api to eslint

* shift eslint ignore comment after prettier format

* ignore errors that currently exist

* build:typevalidators

* replace was broken on typevalidator build

* try pushing up error

* format

* try removing working dir from eslint workflow

* try node 12

* fix indent in action

* bump eslint

* fix supposeded error and try another

* try breaking eslint

* try building in action

* adjust action paths again

* need dot

* remove build

* fix(tauri.js/eslint): escape glob *

* fix(tauri.js): ignore lint error

* Create prettier-taurijs.md

Co-authored-by: Noah Klayman <noahklayman@gmail.com>
2020-08-18 21:36:46 -05:00
Zak Patterson
43a8c4d2bc
fix #920: Create recipes (#930)
* Create recipes

A recipe consists of:
	* Name
	* List of NPM dependencies required (dev and production)
	* Sub-commands needed
		For example, the react recipes run create-react-app to set
		up the UI. Future recipes can do anything, they could pull
		down a sample UI, clone a repository, download a static HTML
		file, initialize another environment that compiles to JS/wasm etc.

The devPath and dist folders nomally configured by the init command
are overridden by the recipe definition.

* Fix no recipe prompts

* Fix linter unsafe assignment error

* Add `beforeXCommand` settings to recipes

This is so good, it makes it possible to just run:

> yarn init
> yarn add tauri
> yarn tauri init # with recipe selected, adds app ui
> yarn tauri dev # starts app ui dev server and rust component

* Rename init to create

Also improve so it exports a function that can be passed
arguments, instead of just reading directly from command line

* Add new tauri init command aliased to create

* Update changes file

* Remove unneeded import

* Add customized splash page for react recipes

* Remove unneeded recipe buildconfig property

* Add no-browser setting to start react dev server

* Revert "Add no-browser setting to start react dev server"

This reverts commit 22bcf3ac5a.
2020-08-17 12:07:44 -05:00
Lucas Fernandes Nogueira
4abd12c2a4
fix(tauri) webview initialization on windows, fixes #879 (#885) 2020-07-23 08:38:40 -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
42a8bb0e09
fix(api) promisified not cleaning up transformed callbacks, fixes #852 (#853) 2020-07-18 17:05:32 -03:00
Ngo Iok Ui (Wu Yu Wei)
cd5b401707
feature: import official webview rust binding (#846)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-07-18 08:04:22 -03:00
Lucas Fernandes Nogueira
dac1db3983
fix(tauri) notification body optional, requestPermission() regression, closes #793 (#844)
* fix(tauri) notification body optional, title required

* fix(tauri) regression on requestPermission()
2020-07-16 19:17:41 -03:00
Lucas Fernandes Nogueira
015474657c
fix(tauri.js) move Notification initialization to tauri.js script (#736) 2020-07-03 13:47:30 -03:00
nothingismagick
2681ad361b
refactor(tauri.js) rewrite API module in TypeScript, closes #679 #435 (#703)
Co-authored-by: Quentin Goinaud <armaldio@gmail.com>
Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-06-27 12:20:00 -03:00
Ping Chen
622e1d52d2
Support writing binary file to local disk (#580)
Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com>
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio>
2020-06-20 19:21:41 -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
Lucas Fernandes Nogueira
4b54cc1564
feat(tauri) add httpRequest API (#589) 2020-05-11 17:03:58 -03:00
Lucas Fernandes Nogueira
1d792d2a54
feat(tauri.js) add proxy devServer so we can inject tauri.js script, closes #212 #483 (#559) 2020-05-05 09:10:39 -03:00
Lucas Fernandes Nogueira
96cea8206b
chore(tauri.js) version updates (#546) 2020-04-03 00:16:53 +02: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
Lucas Fernandes Nogueira
b4a08e88fd
feat(example) add API showcase to communication example (#511) 2020-03-14 11:08:13 -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
Lucas Fernandes Nogueira
c8d9726a09
fix(tauri) do not use template literals and fix entry for IE (#474)
* fix(tauri) do not use template literals

* fix(entry) make it work on IE
2020-03-01 08:11:35 -06:00
Lucas Fernandes Nogueira
4741394b18
fix(template) incorrect package > authors field on Cargo.toml (#479) 2020-03-01 08:08:32 -06:00
Lucas Fernandes Nogueira
21e710e1b0
feature(bundle) merge BundleSettings with config from tauri.conf… (#471)
* feat(bundler) read tauri config WIP

* feat(bundler) merge BundleSettings with tauri.conf.json"

* chore(lint) strings must use single quotes

* chore(bundler) platform-specific config on separated object on tauri cfg

* fix(eslint) unexpected trailing comma
2020-02-29 16:49:45 -03: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
Jacob Bolda
7c0482f9a8
fix(tauri.js/template): don't ignore lock file, add WixTools (#451)
As noted in the comment that was deleted, we should commit the Cargo.lock when creating an executable. This is the template that is copied into the consumer so I think we can safely assume that they will be creating an executable.

Also adding `WixTools` which is created on Windows builds, similar to the `/target/` dir
2020-02-22 13:51:13 -03:00
Lucas Fernandes Nogueira
da5f654332
fix(open) open <a> on browser only if target=_blank (#437)
merging because CI is borked
2020-02-19 14:34:03 +01:00
Lucas Fernandes Nogueira
09680ed6de
fix(tauri.js) if the DOM is already loaded, listen for <a> clicks (#436)
code is fine, the CI is borked
2020-02-19 14:31:26 +01:00
nothingismagick
ed68676505
Feat/new logo (#429)
* feat(newlogo)

* chore(readmes): updates to Licenses and body

* chore(template): add new logo to templated iconset
2020-02-15 20:58:36 +01:00
Tensor-Programming
06a71242b0
add delimiter 2020-02-11 20:31:29 -05:00
nothingismagick
a84656e037
chore(release): version updates (#404)
* chore(release): version updates

* updater too

* update template
2020-02-09 12:42:23 -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
3e1ce404f5
feat(tauri) add splashscreen API (#400)
* feat(tauri) add splashscreen API

* fix(examples) quasar example building
2020-02-08 12:34:15 -03:00
Tensor-Programming
335f71c36b
change serde versions to 1.0 (#396) 2020-02-05 20:18:20 -05:00
Lucas Fernandes Nogueira
78f1e03495
feat(tauri.js) inject MutationObserver to lazy load JS/CSS on no… (#355)
* feat(tauri.js) inject MutationObserver to lazy load scripts on no-server

* feat(tauri.js) add disable inliner config

* fix(tauri.js) add types

* feat(tauri.js&tauri) lazy load CSS files on mutation observer
2020-01-27 10:03:27 -03:00
Lucas Fernandes Nogueira
0bac7d69aa
chore(examples) add nuxt example (#306)
* chore(examples) add nuxt example

* fix(examples) add tauri middleware to nuxt example
2020-01-27 09:53:39 -03:00
Ty Tracey
fcbc261dff Changing web link references from tauri-apps.org to tauri.studio and the wiki, when appropriate (#349) 2020-01-23 11:16:59 +01:00
nothingismagick
2f343ec07d fix(template): relax versioning for tauri (#347) 2020-01-22 08:25:06 -03:00
Tensor-Programming
ee2d714b67
Feat(CLI) Icon Check fix: #309 (#310)
* add icon check for windows.

* fix spelling

* add basic icon logic

* make error more prolific
2020-01-12 20:27:35 -05:00
Lucas Nogueira
7ae7c9dfc2
chore(versions) bump to 0.3.1 2019-12-31 19:24:07 -03:00