Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Oct 11, 2024
2 parents a47d2ff + 7901f82 commit b365088
Show file tree
Hide file tree
Showing 9 changed files with 8,622 additions and 71 deletions.
14 changes: 7 additions & 7 deletions Source/content/docs/develop/sidecar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@ First, define the arguments that need to be passed to the sidecar command in `sr
"description": "Capability for the main window",
"windows": ["main"],
"permissions": [
"path:default",
"event:default",
"window:default",
"app:default",
"resources:default",
"menu:default",
"tray:default",
"core:path:default",
"core:event:default",
"core:window:default",
"core:app:default",
"core:resources:default",
"core:menu:default",
"core:tray:default",
{
"identifier": "shell:allow-execute",
"allow": [
Expand Down
16 changes: 8 additions & 8 deletions Source/content/docs/security/capabilities.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ for core plugins and the `window.setTitle` API.
"description": "Capability for the main window",
"windows": ["main"],
"permissions": [
"path:default",
"event:default",
"window:default",
"app:default",
"resources:default",
"menu:default",
"tray:default",
"window:allow-set-title"
"core:path:default",
"core:event:default",
"core:window:default",
"core:app:default",
"core:resources:default",
"core:menu:default",
"core:tray:default",
"core:window:allow-set-title"
]
}
```
Expand Down
70 changes: 70 additions & 0 deletions Source/content/docs/start/create-project.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,78 @@ We recommend starting with the vanilla template (HTML, CSS, and JavaScript witho

:::

#### Scaffold a new project

<Steps>

1. Choose a name and a bundle identifier (unique-id for your app):
```
? Project name (tauri-app) ›
? Identifier (com.tauri-app.app) ›
```
2. Select a flavor for your frontend. First the language:
```
? Choose which language to use for your frontend ›
Rust (cargo)
TypeScript / JavaScript (pnpm, yarn, npm, bun)
.NET (dotnet)
```
3. Select a package manager (if there are multiple available):

Options for **TypeScript / JavaScript**:

```
? Choose your package manager ›
pnpm
yarn
npm
bun
```

4. Select a UI Template and flavor (if there are multiple available):

Options for **Rust**:

```
? Choose your UI template ›
Vanilla
Yew
Leptos
Sycamore
```

Options for **TypeScript / JavaScript**:

```
? Choose your UI template ›
Vanilla
Vue
Svelte
React
Solid
Angular
Preact
? Choose your UI flavor ›
TypeScript
JavaScript
```

Options for **.NET**:

```
? Choose your UI template ›
Blazor (https://dotnet.microsoft.com/en-us/apps/aspnet/web-apps/blazor/)
```

</Steps>

Once completed, the utility reports that the template has been created and displays how to run it using the configured package manager. If it detects missing decencies on your system, it prints a list of packages and prompts how to install them.

{/* TODO: Can CTA offer to install the deps? */}

#### Start the development server

After `create-tauri-app` has complete you can navigate into your project's folder, install dependencies, then use the [Tauri CLI](/reference/cli/) to start the development server:

import CommandTabs from '@components/CommandTabs.astro';
Expand Down
14 changes: 7 additions & 7 deletions Source/content/docs/zh-cn/develop/sidecar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,13 @@ const output = await sidecar_command.execute();
"description": "Capability for the main window",
"windows": ["main"],
"permissions": [
"path:default",
"event:default",
"window:default",
"app:default",
"resources:default",
"menu:default",
"tray:default",
"core:path:default",
"core:event:default",
"core:window:default",
"core:app:default",
"core:resources:default",
"core:menu:default",
"core:tray:default",
{
"identifier": "shell:allow-execute",
"allow": [
Expand Down
2 changes: 1 addition & 1 deletion Source/content/docs/zh-cn/plugin/deep-linking.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ fn run() {
"platforms": ["iOS", "android"],
"permissions": [
// 通常需要 event:default 来监听 deep-link 事件
"event:default",
"core:event:default",
"deep-link:default"
]
}
Expand Down
16 changes: 8 additions & 8 deletions Source/content/docs/zh-cn/reference/acl.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ title: 访问控制列表
"description": "Capability for the main window",
"windows": ["main"],
"permissions": [
"path:default",
"event:default",
"window:default",
"app:default",
"resources:default",
"menu:default",
"tray:default",
"window:allow-set-title"
"core:path:default",
"core:event:default",
"core:window:default",
"core:app:default",
"core:resources:default",
"core:menu:default",
"core:tray:default",
"core:window:allow-set-title"
]
}
```
Expand Down
92 changes: 52 additions & 40 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,54 @@
{
"dependencies": {
"@astrojs/markdown-remark": "5.3.0",
"@astrojs/rss": "4.0.8",
"@astrojs/starlight": "0.28.3",
"@lorenzo_lewis/starlight-utils": "0.2.0",
"@types/json-schema": "7.0.15",
"astro": "4.16.0",
"astro-d2": "0.6.0",
"astro-feelback": "0.3.4",
"astrojs-service-worker": "2.0.0",
"jsdom": "25.0.1",
"rehype-autolink-headings": "7.1.0",
"sass": "1.79.4",
"sharp": "0.33.5",
"shiki": "1.22.0",
"starlight-blog": "0.13.0",
"starlight-links-validator": "0.12.3"
},
"name": "tauri-docs",
"pnpm": {
"patchedDependencies": {
"@astrojs/[email protected]": "patches/@[email protected]"
}
},
"scripts": {
"build": "pnpm dev:setup && pnpm build:references && pnpm build:config && pnpm build:cli && pnpm build:releases && pnpm build:astro && pnpm build:i18n",
"build:astro": "astro build",
"build:cli": "pnpm --filter cli-generator run build",
"build:compatibility-table": "pnpm --filter compatibility-table run build",
"build:config": "pnpm --filter config-generator run build",
"build:i18n": "pnpm --filter docs-i18n-tracker run build",
"build:references": "pnpm --filter js-api-generator run build",
"build:releases": "pnpm --filter releases-generator run build",
"dev": "astro dev",
"dev:setup": "pnpm dev:setup:submodules && pnpm dev:setup:tauri && pnpm dev:setup:plugins-workspace && pnpm build:compatibility-table",
"dev:setup:plugins-workspace": "pnpm --prefix packages/plugins-workspace install",
"dev:setup:submodules": "git submodule update --init",
"dev:setup:tauri": "pnpm install -C packages/tauri/packages/api --ignore-workspace --no-frozen-lockfile",
"preview": "astro preview"
}
"name": "tauri-docs",
"type": "module",
"private": true,
"license": "MIT",
"version": "0.0.1",
"scripts": {
"dev:setup:submodules": "git submodule update --init",
"dev:setup:tauri": "pnpm install -C packages/tauri/packages/api --ignore-workspace --no-frozen-lockfile",
"dev:setup:plugins-workspace": "pnpm --prefix packages/plugins-workspace install",
"dev:setup": "pnpm dev:setup:submodules && pnpm dev:setup:tauri && pnpm dev:setup:plugins-workspace && pnpm build:compatibility-table",
"dev": "astro dev",
"format": "prettier -w --cache --plugin prettier-plugin-astro .",
"format:check": "prettier -c --cache --plugin prettier-plugin-astro .",
"build:compatibility-table": "pnpm --filter compatibility-table run build",
"build:references": "pnpm --filter js-api-generator run build",
"build:releases": "pnpm --filter releases-generator run build",
"build:config": "pnpm --filter config-generator run build",
"build:cli": "pnpm --filter cli-generator run build",
"build:astro": "astro build",
"build:i18n": "pnpm --filter docs-i18n-tracker run build",
"build": "pnpm dev:setup && pnpm build:references && pnpm build:config && pnpm build:cli && pnpm build:releases && pnpm build:astro && pnpm build:i18n",
"preview": "astro preview"
},
"dependencies": {
"@astrojs/markdown-remark": "^5.2.0",
"@astrojs/rss": "^4.0.7",
"@astrojs/starlight": "0.28.3",
"@lorenzo_lewis/starlight-utils": "^0.2.0",
"@types/json-schema": "^7.0.15",
"astro": "^4.15.7",
"astro-d2": "^0.6.0",
"astro-feelback": "^0.3.4",
"astrojs-service-worker": "^2.0.0",
"jsdom": "^25.0.0",
"prettier": "^3.2.5",
"prettier-plugin-astro": "^0.14.0",
"rehype-autolink-headings": "^7.1.0",
"sass": "^1.77.2",
"sharp": "^0.33.2",
"shiki": "^1.1.7",
"starlight-blog": "^0.13.0",
"starlight-links-validator": "^0.12.0"
},
"packageManager": "[email protected]",
"engines": {
"pnpm": "^9.0.0"
},
"pnpm": {
"patchedDependencies": {
"@astrojs/[email protected]": "patches/@[email protected]"
}
}
}
File renamed without changes.
Loading

0 comments on commit b365088

Please sign in to comment.