Commit Graph

75 Commits

Author SHA1 Message Date
Justin Starry 86af481c0d
Allow running clippy without target (#982) 2020-03-01 16:43:22 +08:00
Justin Starry d38ce422f9
Add support for building with web-sys (#961)
* Enable travis

* `web-sys` general conversion (#826)

* Moved patches from different PRs.

* Add bits & pieces and some services.

* Rename `stdweb` feature to `std_web`.

* Move tests and examples to different PR.

* Revert some `cargo_web` handling removal.

* Missed something.

* Implement `console_error_panic_hook`.

* Update Cargo.toml

Co-authored-by: Justin Starry <justin.m.starry@gmail.com>

* Move document creation to util convenience method (#855)

* `web-sys` listener conversion (#813)

* `web-sys` listener initial try.

* Improve macros?

* Remove generic from `EventListenerHandle`.

* Fix build.

* A cleaner solution?

* Even cleaner.

* Fix `build.rs`.

* Minor improvements.

* Following the yew toml style.

* Fixing visibility.

* Fix `rustfmt`.

* Add `web-sys` re-exports.

* Move general changes to different PR.

* Remove compat.

* Actually remove `compat.rs`.

* Rename `stdweb` feature to `std_web`.

* Move to gloo's `EventListener` and some polish.

* Remove outdated comment.

* Change `EventHandler` to be cancelled on drop.

* `web-sys` html conversion (#817)

* Converting all `html` parts.

* Format.

* Move general changes to different PR.

* Removed compat.

* Rename `stdweb` feature to `std_web`.

* Remove redudant function copy.

* Some polish.

* Move to gloo's `EventListener`.

* Replace `unwrap`s with `expect`s.

* `web-sys` agent conversion (#818)

* Converting `agent`.

* Remove wrong `cfg` in imports.

* Move general changes to different PR.

* Some optimisations.

* Rename `stdweb` feature to `std_web`.

* Fix `ArrayBuffer` to `Uint8Array` conversions.

* Add js module worker.

* Use `cfg-if`` and `cfg-match` to make things clearer.

* Fix `std_web` build.

* Add some polish.

* Add build guards for invalid build configs (#866)

* `web_sys` cfg conversion (#862)

* Use `cfg-if` and `cfg-match` and some polish.

* Mistakes were made.

* Missed line during rebasing.

* Mistakes were undone.

* Remove global.

* Remove part of `global!`.

* `web-sys` services conversion (#827)

* Convert `console`.

* Finish services.

* Some polish.

* Fix `ArrayBuffer` to `Uint8Array` conversions.

* Fix aborting fetch leading to error and some polish.

* Replaced some `unwrap`s with `expect`s.

* Use `cfg_if` and `cfg_match` and do some polish.

* Proper scoping.

* Some fixes.

* Move fetch and reader services to different PR.

* Revert split.

* Fix CI builds (#877)

* Fix derive_props_test

* Move tests (#897) (#898)

* `web-sys` fetch service conversion (#867)

* Split implementation.

* Import global.

* Import global.

* Revert split.

* Make fetch available again.

* Revert "Revert split."

This reverts commit 6e3f101dbedde2142f041467a8ae40ef5e3920c5.

* Re-revert split.

* Some polish.

* Move to `wasm_bindgen_futures`.

* Switch to `thiserror`.

* wip

* Update src/services/fetch/web_sys.rs

Co-Authored-By: daxpedda <daxpedda@gmail.com>

* Some more polish.

Co-authored-by: Justin Starry <justin.m.starry@gmail.com>

* `web-sys` reader service conversion (#868)

* Split reader implementation.

* Revert split.

* Remove leftover files.

* Make reader available again.

* Revert "Revert split."

This reverts commit 8abdc9cf2b014ab61fef2c48d1af8927d9a5a330.

* Revert "Remove leftover files."

This reverts commit 188c6eb9693881c9987061de8deb29c6f4c613a4.

* Re-revert split.

* Polish.

* Forgot some part.

* Some polish.

* Some polish.

* `web-sys` examples/tests conversion (#841)

* Fix examples/tests to work with `web_sys`.

* Update `StorageService` usage.

* Split `stdweb` and `web-sys` examples.

* Fixing the shell script.

* Trying to reset file permissions.

* Update to new reader API.

* Update to new fetch API.

* Update to new fetch API.

* Re-enable examples CI.

* Deleted duplicate example.

* Some fixes.

* Fix rand build.

* Fix spawning workers in combination with `wasm-bindgen`. (#901)

* Fix component rendering process (#913)

* wip

* Fix component rendering process

* Simplify yew-macro a bit (#902)

* yew-macro: Simplify Properties validation

* Fix most clippy warnings

* Fix clippy warnings (#912)

* Import Task trait in dashboard example

* Remove duplicate vtag tests

* Fix prevent_default() by non-passive (#958)

* Fix prevent_default() by non-passive

* Fix cargo fmt

* Remove `Option` from most services.

* Remove `Option` from resize service.

* Apply fetch changes.

* Apply reader service changes.

* Fix `node_refs` example.

* Remove web-sys travis branch

Co-authored-by: daxpedda <daxpedda@gmail.com>
Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
Co-authored-by: Jet Li <jing.i.qin@icloud.com>
2020-02-29 17:25:42 +08:00
Justin Starry f3f52906e8
Remove default build target because it breaks trybuild tests (#876) 2020-01-15 19:07:49 +08:00
Justin Starry 99220f542f
Update wasm-bindgen and fix cargo config (#853)
* Update wasm-bindgen and fix cargo config

* clippy
2020-01-08 15:08:32 +08:00
Justin Starry 33351f3e2a
Use stable rust in CI for rustfmt and clippy (#829) 2019-12-28 21:08:30 -06:00
Justin Starry 3ffde502a7
Enable emscripten in CI for rustc 1.39.0 (#828) 2019-12-28 18:03:39 -06:00
Justin Starry 17fdf5ea01
Disable emscripten in CI (#824) 2019-12-26 13:55:27 -06:00
Justin Starry 60cbcf4746
Add bincode format and make bincode an optional dependency (#806) 2019-12-14 21:41:13 -05:00
Justin Starry ff042058e5
Disable emscripten in CI for beta/nightly (#731)
* Update emscripten

* Don't fail on rustup check

* Disable emscripten for non-stable builds

* Try with cargo-web emscripten

* Revert system emscripten stuff
2019-11-23 17:13:13 -05:00
Justin Starry c6a677a417 Remove git files from travis cache 2019-10-14 15:54:49 -04:00
Justin Starry bbbf344e5f Speed up cache (#707) 2019-10-14 15:06:49 -04:00
Justin Starry 7e1b725f87 Cleanup run tests CI script (#709) 2019-10-14 15:06:12 -04:00
Justin Starry 9c9794bd9e Enable clippy in CI (#706)
* Enable clippy in CI

* Fix clippy warnings

* Only run fmt and clippy on stable

* Fix check script
2019-10-14 15:06:07 -04:00
Justin Starry 6fdf17757f Use wasm32-unknown-unknown as the default build target (#702)
* Use wasm32-unknown-unknown as the default build target

* Print rustup installed targets

* Add doc_test alias
2019-10-14 15:05:51 -04:00
Henry Zimmerman 70a95f87bf Fix Doc Tests (#674)
* fix doc tests

* fix tests for non-default format types

* make fetch example representative of using JSON

* add doc tests to ci

* clean up fetch docs

* update blurb above a fetch example

* minor grammar fix
2019-09-30 19:06:03 -04:00
Justin Starry 00ac8edc58 Fix CI wasm tests 2019-08-03 08:50:29 -04:00
Justin Starry 073d0af65d Update macro doc tests 2019-07-20 23:03:05 -04:00
Justin Starry e2c8cbe6fd Fix ci test for props-derive 2019-07-20 22:42:34 -04:00
Justin Starry 3fed651b42 Add support for required props 2019-07-20 22:38:50 -04:00
Justin Starry 7cd3cb7676 Run macro tests on CI 2019-07-15 10:18:17 -04:00
Justin Starry bd7f4be4a5 Support building wasm targets without cargo-web using wasm-bindgen 2019-06-29 10:23:52 -04:00
Aniket Deshpande 549e5c7f2f
Fix shebangs in `.sh` files 2018-12-14 23:00:50 +05:30
Denis Kolodin 8f227f949b Move examplef out of showcase 2018-04-15 09:41:51 +03:00
Denis Kolodin faa457e3f7 Build the full showcase with CI 2018-04-10 23:00:54 +03:00
Jan Bujak e9c7c125ea Rework Travis scripts 2018-02-04 17:36:42 +01:00