Skip to content

Commit 458c4f3

Browse files
SkyBird233MingcongBai
authored andcommitted
chore: run prettier with prettier-plugin-tailwindcss
Command: `npx prettier . --write`
1 parent 12fd871 commit 458c4f3

Some content is hidden

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

48 files changed

+402
-243
lines changed

index.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
<meta property="og:type" content="website" />
99
<meta property="og:url" content="https://aosc.io" />
1010
<meta property="og:image" content="https://aosc.io/assets/aosc.svg" />
11-
<meta property="og:description" content="安同开源社区(Anthon Open Source Community,简称 AOSC)是一个由计算机爱好者志愿组织工作,主要活动于线上的开源社区。" />
11+
<meta
12+
property="og:description"
13+
content="安同开源社区(Anthon Open Source Community,简称 AOSC)是一个由计算机爱好者志愿组织工作,主要活动于线上的开源社区。" />
1214
<meta property="og:locale" content="zh_CN" />
1315
<title>社区门户 | 安同开源社区 (AOSC)</title>
1416
</head>

src/components/AppH2.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup></script>
22
<template>
3-
<h2 class="font-semibold text-[1.2em] mb-2 features">
3+
<h2 class="features mb-2 text-[1.2em] font-semibold">
44
<slot></slot>
55
</h2>
66
</template>

src/components/AppSupport.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const support = ref();
2727
</script>
2828
<template>
2929
<CategorySecond title="支持文档" id="support" />
30-
<div ref="support" class="pt-4 pb-[60px] px-16">
30+
<div ref="support" class="px-16 pt-4 pb-[60px]">
3131
<ul class="list-disc">
3232
<li v-for="item in navigationList" :key="item.title">
3333
<AppLink

src/components/CategorySecond.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const props = defineProps({
88
</script>
99
<template>
1010
<div
11-
class="theme-bg-color-secondary-static flex justify-between items-end text-white py-[5px] px-[10px] m-p select-none h-[2rem] leading-none items-center">
11+
class="theme-bg-color-secondary-static m-p flex h-[2rem] items-center items-end justify-between px-[10px] py-[5px] leading-none text-white select-none">
1212
<span>
1313
{{ props.title }}
1414
</span>

src/components/LinkButton.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const props = defineProps({
1515
<a
1616
target="_blank"
1717
:href="link"
18-
class="flex justify-center items-center text-white block hover:no-underline hover:opacity-85 theme-bg-color-primary-static"
18+
class="theme-bg-color-primary-static block flex items-center justify-center text-white hover:no-underline hover:opacity-85"
1919
>{{ text }}</a
2020
>
2121
</template>

src/components/PageNotFound.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ onMounted(() => {
2121
(URL) 是否正确。</p
2222
>
2323
<p>
24-
如果该页面链接是其他网页中所引用的,请<AppLink target="_blank" to="https://aosc.io/contact/">与我们联系</AppLink>。
24+
如果该页面链接是其他网页中所引用的,请<AppLink
25+
target="_blank"
26+
to="https://aosc.io/contact/"
27+
>与我们联系</AppLink
28+
>。
2529
</p>
2630
</div>
2731
</div>

src/css/index.scss

+11-8
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,12 @@ $bg-secondary: #3f6075;
9595
margin-top: 32px;
9696
margin-bottom: 32px;
9797
background-size: 4px 1px;
98-
background-image: linear-gradient(to left,
99-
$blue 0%,
100-
$blue 25%,
101-
transparent 50%);
98+
background-image: linear-gradient(
99+
to left,
100+
$blue 0%,
101+
$blue 25%,
102+
transparent 50%
103+
);
102104
}
103105

104106
code {
@@ -118,7 +120,7 @@ $bg-secondary: #3f6075;
118120
font-family: var(--font-family-monospace);
119121
line-height: 1.75;
120122

121-
>code {
123+
> code {
122124
font-size: 12px;
123125
padding: 15px 12px;
124126
overflow-x: auto;
@@ -291,7 +293,6 @@ table {
291293
border-collapse: collapse;
292294

293295
tr {
294-
295296
th,
296297
td {
297298
border: 1px solid $bg-secondary;
@@ -326,10 +327,12 @@ td {
326327
}
327328

328329
.vuepress-markdown-body div[class*='v-md-pre-wrapper-'] pre,
329-
.vuepress-markdown-body div[class*='v-md-pre-wrapper-'] pre[class*='v-md-prism-'] {
330+
.vuepress-markdown-body
331+
div[class*='v-md-pre-wrapper-']
332+
pre[class*='v-md-prism-'] {
330333
z-index: 0;
331334
}
332335

333336
.vuepress-markdown-body div[class*='v-md-pre-wrapper-']::before {
334337
z-index: 0;
335-
}
338+
}

src/pages/afterglow/AfterglowIndex.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const docList = reactive([
7272
<div ref="bgImg">
7373
<img
7474
src="/assets/afterglow/afterglow.zh-cn.jpg"
75-
class="w-full aspect-4/3 mt-2"
75+
class="mt-2 aspect-4/3 w-full"
7676
alt="" />
7777
</div>
7878
</div>

src/pages/afterglow/requirements/AfterglowRequirements.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const afterLowRequirementsList = ref();
7575
</div>
7676

7777
<category-second title="补充说明" id="support" />
78-
<div class="pt-4 pb-4 px-16">
78+
<div class="px-16 pt-4 pb-4">
7979
<ul class="list-disc">
8080
<li
8181
>关于星霞 OS 兼容的处理器,详请见<AppLink to="/afterglow/isa"

src/pages/aosc-os/AoscIndex.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const docList = reactive([
8282
<div ref="bgImg">
8383
<img
8484
src="/assets/aosc-os/aosc-os.zh-cn.jpg"
85-
class="w-full aspect-8/5 mt-2"
85+
class="mt-2 aspect-8/5 w-full"
8686
alt="" />
8787
</div>
8888
</div>

src/pages/aosc-os/asahi/relnote/AoscAsahiRelnote.vue

+13-10
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,33 @@ import CategorySecond from '/src/components/CategorySecond.vue';
77
<category-second title="发行注记:2025 年 2 月" />
88
<div class="p-6">
99
<p>
10-
安同 OS (Apple Silicon) 是面向基于 Apple 芯片的 Mac 设备发布的系统版本,本次更新包含如下主要内容。
11-
</p><br />
10+
安同 OS (Apple Silicon) 是面向基于 Apple 芯片的 Mac
11+
设备发布的系统版本,本次更新包含如下主要内容。 </p
12+
><br />
1213
</div>
1314

1415
<category-second title="组件更新" id="component-updates" />
1516
<div class="p-6">
1617
<p>
17-
本次发行属常规更新,包含截至 2024 年 2 月 15 日的所有系统更新;其中,Linux 内核版本更新至 6.12.12 版本,带有最新 Asahi Linux 补丁集。
18-
</p><br />
18+
本次发行属常规更新,包含截至 2024 年 2 月 15
19+
日的所有系统更新;其中,Linux 内核版本更新至 6.12.12 版本,带有最新
20+
Asahi Linux 补丁集。 </p
21+
><br />
1922
</div>
2023

2124
<category-second title="已知问题" id="component-updates" />
2225
<div class="p-6">
23-
<p>
24-
当前发行包含如下已知问题,我们将尽快修复:
25-
</p><br />
26-
<div class="pt-2 pb-4 px-12">
26+
<p> 当前发行包含如下已知问题,我们将尽快修复: </p><br />
27+
<div class="px-12 pt-2 pb-4">
2728
<ul class="list-disc">
28-
<li>由于先前缺少测试设备且并未引入相关支持组件,MacBook Air (M1, 2020) 的音箱暂未正确驱动</li>
29+
<li
30+
>由于先前缺少测试设备且并未引入相关支持组件,MacBook Air (M1, 2020)
31+
的音箱暂未正确驱动</li
32+
>
2933
<li>OpenGL 图形加速暂不可用,我们正在整理 Asahi Linux 补丁集</li>
3034
</ul>
3135
</div>
3236
</div>
33-
3437
</div>
3538
</template>
3639

src/pages/aosc-os/livekit/relnote/AoscLivekitRelnote.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import CategorySecond from '/src/components/CategorySecond.vue';
1616
<div class="p-6">
1717
<p>除将系统组件更新到 2024 年 9 月的基线外,LiveKit 还包含如下新特性:</p
1818
><br />
19-
<div class="pt-2 pb-4 px-16">
19+
<div class="px-16 pt-2 pb-4">
2020
<ul class="list-disc">
2121
<li>更新 Linux 内核至 6.10 分支,支持更多新硬件</li>
2222
<li>支持龙架构旧世界固件引导安同 OS 安装盘</li>

src/pages/aosc-os/livekit/requirements/AoscLivekitRequirements.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const aoscOsRequirementsList = ref();
8181
</div>
8282

8383
<category-second title="补充说明" id="support" />
84-
<div class="pt-4 pb-4 px-16">
84+
<div class="px-16 pt-4 pb-4">
8585
<ul class="list-disc">
8686
<li
8787
>关于安同 OS 兼容的处理器,详请见<AppLink

0 commit comments

Comments
 (0)