Commit Graph

42 Commits

Author SHA1 Message Date
Amr Bashir
379cc2b354 fix(core/path): remove suffix in basename only once (#9165)
* fix(core/path): remove suffix in `basename` only once

closes #9064

* Update tooling/api/src/path.ts

* remove extra assert

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-03-18 08:40:23 -03:00
Amr Bashir
4b75834a41 chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
Marc Espin
dbd525ca64 docs: Update doc comment from normalize function in path plugin to match definition (#8886)
The doc comment from the normalize function in the path plugin was not matching the actual definition.

Rust definition: 0cb0a15ce2/core/tauri/src/path/plugin.rs (L18)

Typescript definition: 0cb0a15ce2/tooling/api/src/path.ts (L589)
2024-02-18 15:12:46 -03:00
Amr Bashir
8de308d1bf feat(core): implement new config structure (#8723)
* feat(core): implement new config structure

RFC#5 f3e82a6b0c/texts/0005-tauri-config-restructure.md

* fixes

* remove tauri-plugin copy [skip ci]

* move platform specific configs

* fix build

* fix cli

* doctests

* change files

* read updater plugin config on CLI

* doctests

* remove env var from docs

* fix getting pubkey

* add migrations

* clippy

* update change file [skip ci]

* rename frontendDist to prodFrontend?

* Revert "rename frontendDist to prodFrontend?"

This reverts commit ef7394f085.

* fix all_features check

* fix field name

* single license getter on bundler

* readd msiexec_args

* remove unused fixture

* update template

* Update .changes/tauri-bundle-settings-rfc-5.md

* Update .changes/config-restructure-rfc-5.md

* lint bundler, fix change file

* rename AppUrl to FrontendDist, add explicit variants for docs

* fix build

* lint

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-02-03 00:39:48 -03:00
Fabian-Lars
c2ad4d28c4 refactor(api)!: Rename primitives mod to core (#8273) 2023-11-20 17:53:13 -03:00
Amr Bashir
f93148eac0 feat: add tray and menu javascript APIs and events, closes #6617 (#7709)
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-11-19 08:38:24 -03:00
Amr Bashir
a63e71f979 refactor(core&api)!: hide internal functions and reuse them in api.js & rename tauri module to primitives (#7942)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-10-17 09:40:20 -03:00
Lucas Fernandes Nogueira
fbeb5b9185 refactor(core): use webview's URI schemes for IPC (#7170)
Co-authored-by: chip <chip@chip.sh>
2023-08-10 10:12:38 -03:00
Amr Bashir
6d3f3138b9 fix(core/path): change sep and delimiter to functions (#7160)
* fix(core/path): change `sep` and `delimiter` to functions

* fix impl

* semicolons

* return types

* generated

* fix init js

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-06-08 03:40:14 +03:00
Amr Bashir
4652c446b3 feat: add tempDir to path plugin (#7144)
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio>
2023-06-06 14:51:29 -03:00
Amr Bashir
e1e85dc2a5 chore: fix ci and cleanup leftovers (#6925)
* chore: fix ci and cleanup leftovers

1. removed leftover feature flags
2. remove zip/extract apis which are not used anymore
3. removed leftoever scopes
4. removed leftover allowlist and updater options
5. updated the example api

* remove leftover updater structs

* move updater under bundle and remove uneeded options

* fix cli on linux

* remove create_proxy

* clippy

* more clippy

* clippppy

* readd path api

* fix api example

* remove window allowlist

* remove window from allowlist config

* remove `all` allowlist option

* remove file_move

* lint

* fix windows build

* remvoe unused deps

* remvoe allowlist config option, move protocol to `security > asset_protocol`

* fix diffing features

* fmt and test

* fix scope alias

* change files

* android lint

* simplify allow_file impl

* Revert "simplify allow_file impl"

This reverts commit b8882f2fd0.

* expose scopes

* remove unused error variants

* protocol-asset on docs.rs

* ignore reqwest on udeps

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2023-05-13 13:48:28 +03:00
Lucas Fernandes Nogueira
fc4d687ef0 refactor(core): move file system endpoints to its own plugin (#6716) 2023-04-16 09:20:58 -03:00
Lucas Fernandes Nogueira
be941b9719 feat(core): add path plugin, implement mobile APIs (#6339) 2023-04-07 12:48:14 -03:00
Fabian-Lars
23282873e7 docs(api.js): Fix basename example, closes tauri-apps/tauri-docs#1180 (#6553) 2023-03-31 10:13:04 -03:00
Lucas Fernandes Nogueira
46e6187c89 chore: update license year (#6311) 2023-02-19 10:17:49 -03:00
Caesar Schinas
5d89905e39 feat(api): add app-specific directory APIs, closes #5263 (#5272)
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-09-28 19:34:09 -03:00
Caesar Schinas
08a44490d7 docs: correct path for desktop_dir, closes #5267 (#5268) 2022-09-28 11:36:15 -03:00
Lucas Nogueira
013fb354d9 docs(path): fix log directory documentation 2022-09-23 20:06:52 -03:00
Amr Bashir
5e74aefd4a chore(api.js): add @since tag where appropriate (#5169) 2022-09-12 16:45:57 -03:00
Josh Soref
8fd79b8fc0 Spelling (#4880)
Co-authored-by: Lorenzo Lewis <lorenzo_lewis@icloud.com>
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2022-09-03 01:03:02 -03:00
Lucas Fernandes Nogueira
2901145c49 chore: update license headers (#5067) 2022-08-28 15:13:21 -03:00
Lorenzo Lewis
4c24d10ff3 Update path.ts (#4895) 2022-08-09 11:36:50 -03:00
Lorenzo Lewis
47666c4a0b Fix/docs qol improvements (#4641) 2022-07-11 10:14:31 -03:00
Fabian-Lars
68a09b3588 fix(docs): Fix typos in js path api docs. Extend rust path api docs. (#4482) 2022-06-27 08:41:00 -03:00
Lucas Fernandes Nogueira
a136d0ed5c docs(api): add example to all functions, closes #4322 (#4325) 2022-06-12 21:44:33 -03:00
Lucas Fernandes Nogueira
7bba8db83e feat(api): add resolveResource API to the path module (#4234) 2022-05-29 14:35:35 -03:00
Amr Bashir
6054e981c4 Revert "Fix importing @tauri-apps/api in Node.js" (#3767) 2022-03-24 13:07:22 -03:00
Kasper
d36c8e0322 Fix importing @tauri-apps/api in Node.js (#3752)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-03-22 18:19:46 -03:00
Lucas Nogueira
9ed1ba0bce fix(docs): imports must come after module docs 2022-02-11 15:08:17 -03:00
Lucas Nogueira
a08509c641 fix(api): remove currentDir API from the path module 2022-02-04 11:49:23 -03:00
Oliver Ford
722d9ede6e doc(api) XDG user dirs are not env vars, fix: #3090 (#3092) 2021-12-27 10:57:45 -03:00
Jonas Kruckenberg
39e0da1652 Fix log_dir (#2756) 2021-10-17 08:12:52 -03:00
Jonas Kruckenberg
acbb3ae7bb feat: add Log directory (#2736)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-10-16 09:56:23 -03:00
amrbashir
ba9f1a3ceb docs(api.js): update platform-specific notes size 2021-09-04 17:52:57 +02:00
Amr Bashir
05b9d81ee6 feat(api.js): add nodejs-inspired functions in path module (#2310)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-08-02 10:58:09 -03:00
Amr Bashir
785865863e chore(api.js): better platform-specific notes (#2253) 2021-07-21 12:23:16 +08:00
Amr Bashir
277f5ca5a8 feat(api): export BaseDirectory in path module (#1885) 2021-05-30 16:59:46 -03:00
Lucas Fernandes Nogueira
2881ccc329 docs(api): document allowlist for each module (#1853) 2021-05-17 22:33:09 -03:00
Lucas Fernandes Nogueira
de147cd3a9 docs(api): document window.__TAURI__ option on each module [skip ci] (#1852) 2021-05-17 17:56:14 -03:00
Lucas Fernandes Nogueira
f7892cf4ff feat(api): documentation (#1694)
* feat(api): documentation

* more docs [skip ci]
2021-05-05 14:36:40 -03:00
Amr Bashir
186deb43d5 refactor: more consistent js-api docs (#1463) 2021-04-12 22:44:50 -03:00
Lucas Fernandes Nogueira
aea614587b refactor(repo): add /tooling folder (#1457) 2021-04-12 01:59:25 -03:00