mirror of
https://github.com/tauri-apps/tauri-docs.git
synced 2026-01-31 00:35:16 +01:00
[ci] format
This commit is contained in:
@@ -96,8 +96,8 @@ export default defineConfig({
|
||||
{
|
||||
tag: 'script',
|
||||
attrs: {
|
||||
src: '/navigate.js'
|
||||
}
|
||||
src: '/navigate.js',
|
||||
},
|
||||
},
|
||||
],
|
||||
// TODO: Be sure this is updated when the branch is switched
|
||||
|
||||
@@ -1,45 +1,45 @@
|
||||
async function chapterNavigation() {
|
||||
let navigating = false
|
||||
document.addEventListener("keydown", function (e) {
|
||||
if (navigating) return
|
||||
if (e.altKey || e.ctrlKey || e.metaKey) {
|
||||
return;
|
||||
}
|
||||
if (window.search && document.activeElement === window.search) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (e.key) {
|
||||
case "ArrowLeft":
|
||||
e.preventDefault();
|
||||
let previousButton = document.querySelector('a[rel="prev"]');
|
||||
if (!previousButton && window.location.pathname !== '/') previousButton = { href: '/' }
|
||||
|
||||
if (document.referrer.includes(window.location.host))
|
||||
if (previousButton) {
|
||||
window.location.href = previousButton.href;
|
||||
navigating = true;
|
||||
}
|
||||
break;
|
||||
case "ArrowRight":
|
||||
e.preventDefault();
|
||||
let nextButton = document.querySelector('a[rel="next"]');
|
||||
if (!nextButton && window.location.pathname === '/') nextButton = { href: "/start/" }
|
||||
|
||||
if (nextButton) {
|
||||
window.location.href = nextButton.href;
|
||||
navigating = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
chapterNavigation()
|
||||
})
|
||||
|
||||
window.onload = function () {
|
||||
document.body.setAttribute('tabindex', '-1');
|
||||
document.body.focus();
|
||||
};
|
||||
let navigating = false;
|
||||
document.addEventListener('keydown', function (e) {
|
||||
if (navigating) return;
|
||||
if (e.altKey || e.ctrlKey || e.metaKey) {
|
||||
return;
|
||||
}
|
||||
if (window.search && document.activeElement === window.search) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (e.key) {
|
||||
case 'ArrowLeft':
|
||||
e.preventDefault();
|
||||
let previousButton = document.querySelector('a[rel="prev"]');
|
||||
if (!previousButton && window.location.pathname !== '/') previousButton = { href: '/' };
|
||||
|
||||
if (document.referrer.includes(window.location.host))
|
||||
if (previousButton) {
|
||||
window.location.href = previousButton.href;
|
||||
navigating = true;
|
||||
}
|
||||
break;
|
||||
case 'ArrowRight':
|
||||
e.preventDefault();
|
||||
let nextButton = document.querySelector('a[rel="next"]');
|
||||
if (!nextButton && window.location.pathname === '/') nextButton = { href: '/start/' };
|
||||
|
||||
if (nextButton) {
|
||||
window.location.href = nextButton.href;
|
||||
navigating = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
chapterNavigation();
|
||||
});
|
||||
|
||||
window.onload = function () {
|
||||
document.body.setAttribute('tabindex', '-1');
|
||||
document.body.focus();
|
||||
};
|
||||
|
||||
@@ -41,14 +41,8 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components';
|
||||
|
||||
<CardGrid>
|
||||
<LinkCard title="예제 설정" href="/ko/test/webdriver/example/" />
|
||||
<LinkCard
|
||||
title="Selenium"
|
||||
href="/ko/test/webdriver/example/selenium"
|
||||
/>
|
||||
<LinkCard
|
||||
title="WebdriverIO"
|
||||
href="/ko/test/webdriver/example/webdriverio"
|
||||
/>
|
||||
<LinkCard title="Selenium" href="/ko/test/webdriver/example/selenium" />
|
||||
<LinkCard title="WebdriverIO" href="/ko/test/webdriver/example/webdriverio" />
|
||||
</CardGrid>
|
||||
|
||||
## 지속적 통합 (CI)
|
||||
|
||||
@@ -23,14 +23,20 @@ Tauri 与前端无关,支持大多数开箱即用的前端框架。但是,
|
||||
<LinkCard title="Qwik" href="/zh-cn/start/frontend-configuration/qwik" />
|
||||
<LinkCard title="Svelte" href="/zh-cn/start/frontend-configuration/svelte" />
|
||||
<LinkCard title="Vite" href="/zh-cn/start/frontend-configuration/vite" />
|
||||
<LinkCard title="Webpack" href="/zh-cn/start/frontend-configuration/webpack" />
|
||||
<LinkCard
|
||||
title="Webpack"
|
||||
href="/zh-cn/start/frontend-configuration/webpack"
|
||||
/>
|
||||
</CardGrid>
|
||||
|
||||
## Rust
|
||||
|
||||
<CardGrid>
|
||||
<LinkCard title="Leptos" href="/zh-cn/start/frontend-configuration/leptos" />
|
||||
<LinkCard title="Sycamore" href="/zh-cn/start/frontend-configuration/sycamore" />
|
||||
<LinkCard
|
||||
title="Sycamore"
|
||||
href="/zh-cn/start/frontend-configuration/sycamore"
|
||||
/>
|
||||
<LinkCard title="Trunk" href="/zh-cn/start/frontend-configuration/trunk" />
|
||||
<LinkCard title="Yew" href="/zh-cn/start/frontend-configuration/yew" />
|
||||
</CardGrid>
|
||||
|
||||
@@ -41,10 +41,7 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components';
|
||||
|
||||
<CardGrid>
|
||||
<LinkCard title="Setup" href="/zh-cn/test/webdriver/example/" />
|
||||
<LinkCard
|
||||
title="Selenium"
|
||||
href="/zh-cn/test/webdriver/example/selenium"
|
||||
/>
|
||||
<LinkCard title="Selenium" href="/zh-cn/test/webdriver/example/selenium" />
|
||||
<LinkCard
|
||||
title="WebdriverIO"
|
||||
href="/zh-cn/test/webdriver/example/webdriverio"
|
||||
|
||||
@@ -3,7 +3,7 @@ title: Core Concepts
|
||||
sidebar:
|
||||
order: 0
|
||||
label: Overview
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title: Rendering
|
||||
sidebar:
|
||||
order: 0
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title: App Size
|
||||
sidebar:
|
||||
order: 0
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Application Debug
|
||||
sidebar:
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: CrabNebula Cloud
|
||||
sidebar:
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
@@ -9,5 +9,3 @@ sidebar:
|
||||
import Stub from '@components/Stub.astro';
|
||||
|
||||
<Stub />
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title: Debug
|
||||
sidebar:
|
||||
label: Overview
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
@@ -10,5 +10,3 @@ sidebar:
|
||||
import Stub from '@components/Stub.astro';
|
||||
|
||||
<Stub />
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Debug in IntelliJ
|
||||
sidebar:
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Debug in VS Code
|
||||
sidebar:
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title: Development Cycle
|
||||
sidebar:
|
||||
order: 1
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
|
||||
@@ -4,7 +4,7 @@ description: Core concepts for developing with Tauri.
|
||||
sidebar:
|
||||
order: 0
|
||||
label: Overview
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
@@ -12,5 +12,3 @@ sidebar:
|
||||
import Stub from '@components/Stub.astro';
|
||||
|
||||
<Stub />
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title: Updating Dependencies
|
||||
sidebar:
|
||||
order: 1
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: GitHub
|
||||
sidebar:
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
@@ -9,4 +9,3 @@ sidebar:
|
||||
import Stub from '@components/Stub.astro';
|
||||
|
||||
<Stub />
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: GitLab
|
||||
sidebar:
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
@@ -9,4 +9,3 @@ sidebar:
|
||||
import Stub from '@components/Stub.astro';
|
||||
|
||||
<Stub />
|
||||
|
||||
|
||||
@@ -10,4 +10,3 @@ sidebar:
|
||||
import Stub from '@components/Stub.astro';
|
||||
|
||||
<Stub />
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title: App Store
|
||||
sidebar:
|
||||
order: 1
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
@@ -10,4 +10,3 @@ sidebar:
|
||||
import Stub from '@components/Stub.astro';
|
||||
|
||||
<Stub />
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title: Debian
|
||||
sidebar:
|
||||
order: 1
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
@@ -10,4 +10,3 @@ sidebar:
|
||||
import Stub from '@components/Stub.astro';
|
||||
|
||||
<Stub />
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ title: Distribute
|
||||
sidebar:
|
||||
order: 0
|
||||
label: Overview
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
@@ -11,4 +11,3 @@ sidebar:
|
||||
import Stub from '@components/Stub.astro';
|
||||
|
||||
<Stub />
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title: Play Store
|
||||
sidebar:
|
||||
order: 1
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
@@ -10,4 +10,3 @@ sidebar:
|
||||
import Stub from '@components/Stub.astro';
|
||||
|
||||
<Stub />
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title: Steam
|
||||
sidebar:
|
||||
order: 1
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
@@ -10,4 +10,3 @@ sidebar:
|
||||
import Stub from '@components/Stub.astro';
|
||||
|
||||
<Stub />
|
||||
|
||||
|
||||
@@ -13,6 +13,5 @@ import PluginLinks from '@components/PluginLinks.astro';
|
||||
<PluginLinks plugin="updater" />
|
||||
|
||||
<Stub>
|
||||
Based on
|
||||
https://github.com/tauri-apps/plugins-workspace/tree/plugins/updater
|
||||
Based on https://github.com/tauri-apps/plugins-workspace/tree/plugins/updater
|
||||
</Stub>
|
||||
|
||||
@@ -51,10 +51,7 @@ Learn more about the individual components and boundary enforcement:
|
||||
<LinkCard title="Permissions" href="/security/permissions" />
|
||||
<LinkCard title="Scopes" href="/security/scope" />
|
||||
<LinkCard title="Capabilities" href="/security/capabilities" />
|
||||
<LinkCard
|
||||
title="Runtime Authority"
|
||||
href="/security/runtime-authority"
|
||||
/>
|
||||
<LinkCard title="Runtime Authority" href="/security/runtime-authority" />
|
||||
</CardGrid>
|
||||
|
||||
Tauri allows developers to choose their own frontend stack and framework.
|
||||
@@ -62,10 +59,7 @@ This means that we cannot provide a hardening guide for every frontend stack of
|
||||
of choice, but Tauri provides generic features to control and contain the attack surface.
|
||||
|
||||
<CardGrid>
|
||||
<LinkCard
|
||||
title="Content Security Policy (CSP)"
|
||||
href="/security/csp"
|
||||
/>
|
||||
<LinkCard title="Content Security Policy (CSP)" href="/security/csp" />
|
||||
<LinkCard
|
||||
title="Isolation Pattern"
|
||||
href="/concepts/inter-process-communication/isolation"
|
||||
|
||||
@@ -32,7 +32,6 @@ Below is a checklist of common scenarios needed to integrate a frontend with Tau
|
||||
- For mobile development, a development server of some kind is necessary that can host the frontend on your internal IP.
|
||||
- Use a proper client-server relationship between your app and your API's (no hybrid solutions with SSR).
|
||||
|
||||
|
||||
## JavaScript
|
||||
|
||||
<CardGrid>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Leptos
|
||||
sidebar:
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Qwik
|
||||
sidebar:
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Svelte
|
||||
sidebar:
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Sycamore
|
||||
sidebar:
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Vite
|
||||
sidebar:
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Webpack
|
||||
sidebar:
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Yew
|
||||
sidebar:
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title: Create a Project
|
||||
sidebar:
|
||||
order: 3
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: GitHub
|
||||
sidebar:
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
@@ -9,4 +9,3 @@ sidebar:
|
||||
import Stub from '@components/Stub.astro';
|
||||
|
||||
<Stub />
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: GitLab
|
||||
sidebar:
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
@@ -9,4 +9,3 @@ sidebar:
|
||||
import Stub from '@components/Stub.astro';
|
||||
|
||||
<Stub />
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title: Overview
|
||||
sidebar:
|
||||
order: 10
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
@@ -10,4 +10,3 @@ sidebar:
|
||||
import Stub from '@components/Stub.astro';
|
||||
|
||||
<Stub />
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title: Setup
|
||||
sidebar:
|
||||
order: 30
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title: Selenium
|
||||
sidebar:
|
||||
order: 31
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title: WebdriverIO
|
||||
sidebar:
|
||||
order: 31
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
|
||||
@@ -3,7 +3,7 @@ title: Continuous Integration
|
||||
description: WebDriver Testing
|
||||
sidebar:
|
||||
order: 21
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
|
||||
@@ -4,7 +4,7 @@ description: WebDriver Testing
|
||||
sidebar:
|
||||
order: 10
|
||||
label: Overview
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
@@ -72,10 +72,7 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components';
|
||||
|
||||
The above examples also comes with a CI script to test with GitHub actions, but you may still be interested in the below WebDriver CI guide as it explains the concept a bit more.
|
||||
|
||||
<LinkCard
|
||||
title="Continuous Integration (CI)"
|
||||
href="/start/test/webdriver/ci"
|
||||
/>
|
||||
<LinkCard title="Continuous Integration (CI)" href="/start/test/webdriver/ci" />
|
||||
|
||||
[webdriver]: https://www.w3.org/TR/webdriver/
|
||||
[`tauri-driver`]: https://crates.io/crates/tauri-driver
|
||||
|
||||
@@ -4,7 +4,7 @@ description: Techniques for testing inside and outside the Tauri runtime
|
||||
sidebar:
|
||||
order: 1
|
||||
label: Overview
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
@@ -12,4 +12,3 @@ sidebar:
|
||||
import Stub from '@components/Stub.astro';
|
||||
|
||||
<Stub />
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title: Mock Tauri APIs
|
||||
sidebar:
|
||||
order: 1
|
||||
badge:
|
||||
badge:
|
||||
text: WIP
|
||||
variant: caution
|
||||
---
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"paths": {
|
||||
"@components/*": ["src/components/*"],
|
||||
"@assets/*": ["src/assets/*"],
|
||||
"@fragments/*": ["src/content/docs/_fragments/*"],
|
||||
"@fragments/*": ["src/content/docs/_fragments/*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user