Skip to content

Commit 736ac26

Browse files
simonhylltauri-bot
authored andcommitted
[ci] format
1 parent dfc1f3b commit 736ac26

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+98
-130
lines changed

astro.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ export default defineConfig({
9696
{
9797
tag: 'script',
9898
attrs: {
99-
src: '/navigate.js'
100-
}
99+
src: '/navigate.js',
100+
},
101101
},
102102
],
103103
// TODO: Be sure this is updated when the branch is switched

public/navigate.js

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
async function chapterNavigation() {
2-
let navigating = false
3-
document.addEventListener("keydown", function (e) {
4-
if (navigating) return
5-
if (e.altKey || e.ctrlKey || e.metaKey) {
6-
return;
7-
}
8-
if (window.search && document.activeElement === window.search) {
9-
return;
10-
}
11-
12-
switch (e.key) {
13-
case "ArrowLeft":
14-
e.preventDefault();
15-
let previousButton = document.querySelector('a[rel="prev"]');
16-
if (!previousButton && window.location.pathname !== '/') previousButton = { href: '/' }
17-
18-
if (document.referrer.includes(window.location.host))
19-
if (previousButton) {
20-
window.location.href = previousButton.href;
21-
navigating = true;
22-
}
23-
break;
24-
case "ArrowRight":
25-
e.preventDefault();
26-
let nextButton = document.querySelector('a[rel="next"]');
27-
if (!nextButton && window.location.pathname === '/') nextButton = { href: "/start/" }
28-
29-
if (nextButton) {
30-
window.location.href = nextButton.href;
31-
navigating = true;
32-
}
33-
break;
34-
}
35-
});
36-
};
37-
38-
window.addEventListener('DOMContentLoaded', () => {
39-
chapterNavigation()
40-
})
41-
42-
window.onload = function () {
43-
document.body.setAttribute('tabindex', '-1');
44-
document.body.focus();
45-
};
2+
let navigating = false;
3+
document.addEventListener('keydown', function (e) {
4+
if (navigating) return;
5+
if (e.altKey || e.ctrlKey || e.metaKey) {
6+
return;
7+
}
8+
if (window.search && document.activeElement === window.search) {
9+
return;
10+
}
11+
12+
switch (e.key) {
13+
case 'ArrowLeft':
14+
e.preventDefault();
15+
let previousButton = document.querySelector('a[rel="prev"]');
16+
if (!previousButton && window.location.pathname !== '/') previousButton = { href: '/' };
17+
18+
if (document.referrer.includes(window.location.host))
19+
if (previousButton) {
20+
window.location.href = previousButton.href;
21+
navigating = true;
22+
}
23+
break;
24+
case 'ArrowRight':
25+
e.preventDefault();
26+
let nextButton = document.querySelector('a[rel="next"]');
27+
if (!nextButton && window.location.pathname === '/') nextButton = { href: '/start/' };
28+
29+
if (nextButton) {
30+
window.location.href = nextButton.href;
31+
navigating = true;
32+
}
33+
break;
34+
}
35+
});
36+
}
37+
38+
window.addEventListener('DOMContentLoaded', () => {
39+
chapterNavigation();
40+
});
41+
42+
window.onload = function () {
43+
document.body.setAttribute('tabindex', '-1');
44+
document.body.focus();
45+
};

src/content/docs/_ko/guides/test/webdriver/index.mdx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,8 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components';
4141

4242
<CardGrid>
4343
<LinkCard title="예제 설정" href="/ko/test/webdriver/example/" />
44-
<LinkCard
45-
title="Selenium"
46-
href="/ko/test/webdriver/example/selenium"
47-
/>
48-
<LinkCard
49-
title="WebdriverIO"
50-
href="/ko/test/webdriver/example/webdriverio"
51-
/>
44+
<LinkCard title="Selenium" href="/ko/test/webdriver/example/selenium" />
45+
<LinkCard title="WebdriverIO" href="/ko/test/webdriver/example/webdriverio" />
5246
</CardGrid>
5347

5448
## 지속적 통합 (CI)

src/content/docs/_zh-cn/guides/frontend/index.mdx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,20 @@ Tauri 与前端无关,支持大多数开箱即用的前端框架。但是,
2323
<LinkCard title="Qwik" href="/zh-cn/start/frontend-configuration/qwik" />
2424
<LinkCard title="Svelte" href="/zh-cn/start/frontend-configuration/svelte" />
2525
<LinkCard title="Vite" href="/zh-cn/start/frontend-configuration/vite" />
26-
<LinkCard title="Webpack" href="/zh-cn/start/frontend-configuration/webpack" />
26+
<LinkCard
27+
title="Webpack"
28+
href="/zh-cn/start/frontend-configuration/webpack"
29+
/>
2730
</CardGrid>
2831

2932
## Rust
3033

3134
<CardGrid>
3235
<LinkCard title="Leptos" href="/zh-cn/start/frontend-configuration/leptos" />
33-
<LinkCard title="Sycamore" href="/zh-cn/start/frontend-configuration/sycamore" />
36+
<LinkCard
37+
title="Sycamore"
38+
href="/zh-cn/start/frontend-configuration/sycamore"
39+
/>
3440
<LinkCard title="Trunk" href="/zh-cn/start/frontend-configuration/trunk" />
3541
<LinkCard title="Yew" href="/zh-cn/start/frontend-configuration/yew" />
3642
</CardGrid>

src/content/docs/_zh-cn/guides/test/webdriver/index.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components';
4141

4242
<CardGrid>
4343
<LinkCard title="Setup" href="/zh-cn/test/webdriver/example/" />
44-
<LinkCard
45-
title="Selenium"
46-
href="/zh-cn/test/webdriver/example/selenium"
47-
/>
44+
<LinkCard title="Selenium" href="/zh-cn/test/webdriver/example/selenium" />
4845
<LinkCard
4946
title="WebdriverIO"
5047
href="/zh-cn/test/webdriver/example/webdriverio"

src/content/docs/concepts/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Core Concepts
33
sidebar:
44
order: 0
55
label: Overview
6-
badge:
6+
badge:
77
text: WIP
88
variant: caution
99
---

src/content/docs/concepts/rendering.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Rendering
33
sidebar:
44
order: 0
5-
badge:
5+
badge:
66
text: WIP
77
variant: caution
88
---

src/content/docs/concepts/size.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: App Size
33
sidebar:
44
order: 0
5-
badge:
5+
badge:
66
text: WIP
77
variant: caution
88
---

src/content/docs/develop/Debug/application.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Application Debug
33
sidebar:
4-
badge:
4+
badge:
55
text: WIP
66
variant: caution
77
---
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
---
22
title: CrabNebula Cloud
33
sidebar:
4-
badge:
4+
badge:
55
text: WIP
66
variant: caution
77
---
88

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

1111
<Stub />
12-
13-

0 commit comments

Comments
 (0)