Skip to content

Commit

Permalink
Merge branch 'v2' into v2
Browse files Browse the repository at this point in the history
  • Loading branch information
tweidinger authored Jan 31, 2025
2 parents b87e0a4 + 137690a commit d94cdfe
Show file tree
Hide file tree
Showing 10 changed files with 122 additions and 59 deletions.
2 changes: 1 addition & 1 deletion packages/awesome-tauri
Submodule awesome-tauri updated 1 files
+5 −8 README.md
102 changes: 51 additions & 51 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 21 additions & 2 deletions src/components/AwesomeTauri.astro
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ const sections = {
'plugins-no-official': 'Plugins',
integrations: 'Integrations',
articles: 'Articles',
guides: 'Guides',
tutorials: 'Tutorials',
guides: 'Guides & Tutorials',
'guides-no-official-no-video': 'Guides & Tutorials',
'guides-no-official-only-video': 'Guides & Tutorials',
templates: 'Templates',
'applications-audio-video': 'Audio & Video',
'applications-chatgpt-clients': 'ChatGPT clients',
Expand Down Expand Up @@ -57,6 +58,24 @@ for (const header of categories) {
img = entry.children[2];
if (img && img.src && img.src.includes('official')) continue;
}
if (section.includes('-no-video')) {
let img = entry.children[1];
if (img && img.src && img.src.includes('YouTube')) continue;
img = entry.children[2];
if (img && img.src && img.src.includes('YouTube')) continue;
}
if (section.includes('-only-video')) {
let skip = true;
let img = entry.children[1];
if (img && img.src && img.src.includes('YouTube')) {
skip = false;
}
img = entry.children[2];
if (img && img.src && img.src.includes('YouTube')) {
skip = false;
}
if (skip) continue;
}
cards.push({
href: entry.children[0].href,
name: entry.children[0].textContent,
Expand Down
25 changes: 25 additions & 0 deletions src/content/docs/learn/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ sidebar:
---

import { Card, CardGrid, LinkCard } from '@astrojs/starlight/components';
import AwesomeTauri from '@components/AwesomeTauri.astro';

The Learning category is intended to provide end-to-end learning experiences on a Tauri related topic.

Expand Down Expand Up @@ -34,3 +35,27 @@ To learn how to write your own splash screen or use a node.js sidecar, check out
<LinkCard title="Splashcreen" href="/learn/splashscreen/" />
<LinkCard title="Node.js as a Sidecar" href="/learn/sidecar-nodejs/" />
</CardGrid>

## More Resources

This section contains learning resources created by the Community that are not hosted on this website.

<LinkCard
title="Have something to share?"
description="Open a pull request to show us your amazing resource."
href="https://github.com/tauri-apps/awesome-tauri/pulls"
/>

### Books

- **HTML, CSS, JavaScript, and Rust for Beginners: A Guide to Application Development with Tauri** by James Alexander Rose
- Paperback on Amazon: https://www.amazon.com/dp/B0DR6KZVVW
- Free PDF version: [direct download](/assets/learn/community/HTML_CSS_JavaScript_and_Rust_for_Beginners_A_Guide_to_Application_Development_with_Tauri.pdf) (PDF 4MB)

### Guides & Tutorials

<AwesomeTauri section="guides-no-official-no-video" />

#### Video Guides

<AwesomeTauri section="guides-no-official-only-video" />
18 changes: 18 additions & 0 deletions src/content/docs/plugin/file-system.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,24 @@ use the the object form of permissions `{ "identifier": string, "allow"?: [], "d
In the above example you can use the [`exists`](#exists) API using any `$APPDATA` sub path (does not include sub-directories)
and the [`rename`](#rename)

:::tip
If you are trying to access dotfiles (e.g. `.gitignore`) or dotfolders (e.g. `.ssh`) on Unix based systems,
then you need to specify either the full path `/home/user/.ssh/example` or the glob after the dotfolder path
component `/home/user/.ssh/*`.

If that does not work in your use case then you can configure the plugin to treat any component
as a valid path literal.

```json title="src-tauri/tauri.conf.json
"plugins": {
"fs": {
"requireLiteralLeadingDot": false
}
}
```

:::

[NSPrivacyAccessedAPICategoryFileTimestamp]: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api#4278393
[C617.1]: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api#4278393
[base directory]: /reference/javascript/api/namespacepath/#basedirectory
Expand Down
3 changes: 1 addition & 2 deletions src/content/docs/start/create-project.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ Follow along with the prompts to choose your project name, frontend language, pa

:::tip[Not sure what to choose?]

{/* TODO: redirect to integrate to existing front-end project specific docs */}
We recommend starting with the vanilla template (HTML, CSS, and JavaScript without a frontend framework) to get started. You can always [integrate a frontend framework](/start/create-project/) later.
We recommend starting with the vanilla template (HTML, CSS, and JavaScript without a frontend framework) to get started. You can always [integrate a frontend framework](/start/frontend/) later.

- Choose which language to use for your frontend: `TypeScript / JavaScript`
- Choose your package manager: `pnpm`
Expand Down
6 changes: 4 additions & 2 deletions src/content/docs/start/migrate/from-tauri-1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,12 @@ Most of the environment variables read and written by the Tauri CLI were renamed

The event system was redesigned to be easier to use. Instead of relying on the source of the event, it now has a simpler implementation that relies on event targets.

- The `emit` function now emits the event to all event listeners
- Added a new `emit_to` function to trigger an event to a specific target
- The `emit` function now emits the event to all event listeners.
- Added a new `emit_to`/`emitTo` function to trigger an event to a specific target.
- `emit_filter` now filters based on [`EventTarget`](https://docs.rs/tauri/2.0.0/tauri/event/enum.EventTarget.html) instead of a window.
- Renamed `listen_global` to `listen_any`. It now listens to all events regardless of their filters and targets.
- JavaScript: `event.listen()` behaves similar to `listen_any`. It now listens to all events regardless of their filters and targets, unless a target is set in the `Options`.
- JavaScript: `WebviewWindow.listen` etc. only listen to events emitted to the respective `EventTarget`.

### Multiwebview support

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/start/prerequisites.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ WebView 2 is already installed on Windows 10 (from version 1803 onward) and late

Tauri uses Microsoft Edge WebView2 to render content on Windows.

Install WebView2 by visiting the [WebView2 Runtime download section](https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section). Download the "Evergreen Boostrapper" and install it.
Install WebView2 by visiting the [WebView2 Runtime download section](https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section). Download the "Evergreen Bootstrapper" and install it.

Next: [Install Rust](#rust)

Expand Down

0 comments on commit d94cdfe

Please sign in to comment.