Commit Graph

17 Commits

Author SHA1 Message Date
Amr Bashir ad83d41cb5
chore: cleanup and simplify examples (#10743) 2024-08-27 01:25:36 +03:00
Amr Bashir 01f6aa3405
build: migrate repo to use `pnpm` as the package manager (#10607)
* build: migrate repo to use `pnpm` as the pacakge manager

* corepack enable

* update lock file

* format files

* format .github

* fix audit js

* wrap in quotes

* --frozen-lockfile

* simplify packageManager field

* lockfile

* remove cache from audit workflow
2024-08-16 23:04:08 -03:00
Amr Bashir 2b1ceb40d3
refactor(api)!: renamed `getCurrent` functions to avoid ambiguity (#10229)
* refactor(api)!: renamed `getCurrent` functions to avoid ambiguity

closes #10193

* Update .changes/get-current-ambguity.md

* rename `getAll` and update docs and examples
2024-07-11 14:26:15 +03:00
Fabian-Lars c33f6e6cf3
fix(core): Announce new webviews and windows (#9211)
* fix(core): Announce new webviews and windows

fixes #9200
fixes #8144

* fix js import in example

* emit created events to all listeners.

* remove duplicate event
2024-03-28 02:23:19 +02:00
Lucas Nogueira ab57f9531a
chore: run pnpm format on the repo 2024-02-03 11:08:13 -03:00
Amr Bashir a093682d2d
refactor(core): refactor and fix event system following multiwebview support (#8621)
* clippy

* refactor(core): refactor and fix event system following multiwebview support

* update documentation

* update js docs

* lint

* clippy

* update multiwindow example [skip ci]

* enhance event tests

* fix example

* Update .changes/tauri-event-after-multiwebview.md

Co-authored-by: Lucas Nogueira <118899497+lucasfernog-crabnebula@users.noreply.github.com>

* fix tests

* add diagram

* Add `App/AppHandle` even target

* Discard changes to examples/api/src-tauri/tauri-plugin-sample/permissions/schemas/schema.json

* revert accidental changes

* regenerate schemas

* fix doctests

* add helper methods

* update docs

* update api

* update docs [skip ci]

* update docs [skip ci]

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
Co-authored-by: Lucas Nogueira <118899497+lucasfernog-crabnebula@users.noreply.github.com>
2024-02-01 08:06:27 -03:00
Lucas Fernandes Nogueira c77b40324e
refactor(core): add support to multiple webviews on a Tauri window (#8280)
* feat: update to latest wry

* wry dev branch [skip ci]

* fix linux [skip ci]

* refactor(runtime): split webview and window types

* split dispatch

* implement create_webview

* move webview message

* wip webview mod

* create webview manager, finish webview struct and builder

* fix tests and docs

* rename WindowUrl to WebviewUrl

* update examples

* event refactor

* update JS API

* fix events

* update example

* add WebviewWindow class on JS

* fix macos build

* allow creating window+webview on the same runtime call

* rename tauri://window-created to tauri://webview-created

* Window::add_child

* use inner_size from webview on macOS

* add multiwebview example

* automatically resize webviews on window resize

* fix tests

* set_position, set_size

* position, size getters

* set_focus

* add close fn

* update mock runtime

* lint [skip ci]

* fix inner_size getter [skip ci]

* import hwnd [skip ci]

* update webview bound ratios on set_size/set_position

* add auto_resize option

* fix android

* fix build on windows

* typo

* with_webview isnt desktop only

* add WebviewWindow rust struct (and builder)

* fix build on android

* license header

* fix macos/windows

* fix macos build

* resolve todo

* handle window not found

* hide unstable features

* document unstable feature [skip ci]

* webview plugin permissions

* hide more stuff

* fix doctests

* typos

* add change files

* fix examples

* rename hook
2024-01-24 11:05:18 -03:00
Lucas Fernandes Nogueira 74d2464d0e
refactor(core): implement on_page_load event using wry hook (#8116) 2023-10-27 10:00:59 -03:00
Amr Bashir 71a0240166
chore: remove hotkey.js script and replace var with const (#7343)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-07-12 08:44:26 -03:00
Lucas Nogueira 873b9aee90
chore: run `yarn format` 2022-11-03 09:27:43 -03:00
Caesar Schinas 4137ab44a8
feat(macos): add `tabbing_identifier` option, closes #2804, #3912 (#5399)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-10-19 09:20:17 -03:00
Amr Bashir 1d7171a1ec
chore: add prettierignore and fmt the repo (#5192)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-09-18 09:16:35 -03:00
Lucas Nogueira 356b3e1c46
chore(examples): use appWindow on multiwindow example 2022-05-19 16:12:37 -03:00
Lucas Nogueira 8259cd64c2
feat(core): inject `CSP` on data URLs [TRI-049] (#16) 2022-01-09 14:57:12 -03:00
Lucas Nogueira 2a7bf6d912
refactor(examples): improve security when rendering HTML strings [TRI-003] (#14) 2022-01-09 14:35:30 -03:00
Amr Bashir 66916b739f
chore: add `.prettierrc` in repo root (#2145) 2021-07-03 19:48:04 -03:00
Lucas Fernandes Nogueira 6ec54c53b5
feat(core): allow `dev_path`, `dist_dir` as array of paths, fixes #1897 (#1926)
* feat(core): allow `dev_path`, `dist_dir` as array of paths, fixes #1897

* fix: clippy
2021-05-31 11:42:10 -03:00