Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhyll authored and tauri-bot committed Apr 22, 2024
1 parent dfc1f3b commit 736ac26
Show file tree
Hide file tree
Showing 46 changed files with 98 additions and 130 deletions.
4 changes: 2 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
88 changes: 44 additions & 44 deletions public/navigate.js
Original file line number Diff line number Diff line change
@@ -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();
};
10 changes: 2 additions & 8 deletions src/content/docs/_ko/guides/test/webdriver/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 8 additions & 2 deletions src/content/docs/_zh-cn/guides/frontend/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 1 addition & 4 deletions src/content/docs/_zh-cn/guides/test/webdriver/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/concepts/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Core Concepts
sidebar:
order: 0
label: Overview
badge:
badge:
text: WIP
variant: caution
---
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/concepts/rendering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Rendering
sidebar:
order: 0
badge:
badge:
text: WIP
variant: caution
---
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/concepts/size.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: App Size
sidebar:
order: 0
badge:
badge:
text: WIP
variant: caution
---
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/develop/Debug/application.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Application Debug
sidebar:
badge:
badge:
text: WIP
variant: caution
---
Expand Down
4 changes: 1 addition & 3 deletions src/content/docs/develop/Debug/crabnebula-cloud.mdx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
---
title: CrabNebula Cloud
sidebar:
badge:
badge:
text: WIP
variant: caution
---

import Stub from '@components/Stub.astro';

<Stub />


4 changes: 1 addition & 3 deletions src/content/docs/develop/Debug/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
title: Debug
sidebar:
label: Overview
badge:
badge:
text: WIP
variant: caution
---

import Stub from '@components/Stub.astro';

<Stub />


2 changes: 1 addition & 1 deletion src/content/docs/develop/Debug/intellij.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Debug in IntelliJ
sidebar:
badge:
badge:
text: WIP
variant: caution
---
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/develop/Debug/vscode.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Debug in VS Code
sidebar:
badge:
badge:
text: WIP
variant: caution
---
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/develop/development-cycle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Development Cycle
sidebar:
order: 1
badge:
badge:
text: WIP
variant: caution
---
Expand Down
4 changes: 1 addition & 3 deletions src/content/docs/develop/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ description: Core concepts for developing with Tauri.
sidebar:
order: 0
label: Overview
badge:
badge:
text: WIP
variant: caution
---

import Stub from '@components/Stub.astro';

<Stub />


2 changes: 1 addition & 1 deletion src/content/docs/develop/updating-dependencies.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Updating Dependencies
sidebar:
order: 1
badge:
badge:
text: WIP
variant: caution
---
Expand Down
3 changes: 1 addition & 2 deletions src/content/docs/distribute/Pipelines/github.mdx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
title: GitHub
sidebar:
badge:
badge:
text: WIP
variant: caution
---

import Stub from '@components/Stub.astro';

<Stub />

3 changes: 1 addition & 2 deletions src/content/docs/distribute/Pipelines/gitlab.mdx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
title: GitLab
sidebar:
badge:
badge:
text: WIP
variant: caution
---

import Stub from '@components/Stub.astro';

<Stub />

1 change: 0 additions & 1 deletion src/content/docs/distribute/Pipelines/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ sidebar:
import Stub from '@components/Stub.astro';

<Stub />

3 changes: 1 addition & 2 deletions src/content/docs/distribute/app-store.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
title: App Store
sidebar:
order: 1
badge:
badge:
text: WIP
variant: caution
---

import Stub from '@components/Stub.astro';

<Stub />

3 changes: 1 addition & 2 deletions src/content/docs/distribute/debian.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
title: Debian
sidebar:
order: 1
badge:
badge:
text: WIP
variant: caution
---

import Stub from '@components/Stub.astro';

<Stub />

3 changes: 1 addition & 2 deletions src/content/docs/distribute/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ title: Distribute
sidebar:
order: 0
label: Overview
badge:
badge:
text: WIP
variant: caution
---

import Stub from '@components/Stub.astro';

<Stub />

3 changes: 1 addition & 2 deletions src/content/docs/distribute/play-store.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
title: Play Store
sidebar:
order: 1
badge:
badge:
text: WIP
variant: caution
---

import Stub from '@components/Stub.astro';

<Stub />

3 changes: 1 addition & 2 deletions src/content/docs/distribute/steam.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
title: Steam
sidebar:
order: 1
badge:
badge:
text: WIP
variant: caution
---

import Stub from '@components/Stub.astro';

<Stub />

3 changes: 1 addition & 2 deletions src/content/docs/features/updater.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Loading

0 comments on commit 736ac26

Please sign in to comment.