Skip to content

Commit 9142932

Browse files
committed
reformat all frontend files
1 parent b0c59e1 commit 9142932

File tree

14 files changed

+96
-70
lines changed

14 files changed

+96
-70
lines changed

frontend/docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,4 +329,4 @@ const config: Config = {
329329
} satisfies Preset.ThemeConfig,
330330
};
331331

332-
export default config;
332+
export default config;

frontend/src/components/HomepageFeatures/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ const FeatureList: FeatureItem[] = [
4747
<>
4848
The server is fully open source, and we welcome all contributions big or
4949
small. Help write the next version, or just post about any problems you
50-
find, despite our attempts to have perfect code, bugs happen and your feedback is valuable.
50+
find, despite our attempts to have perfect code, bugs happen and your
51+
feedback is valuable.
5152
</>
5253
),
5354
link: "https://github.com/openmultiplayer",
@@ -94,7 +95,7 @@ const Feature = ({ title, Img, description, link, linkText }: FeatureItem) => {
9495
);
9596
};
9697

97-
const HomepageFeatures = (): JSX.Element => {
98+
const HomepageFeatures = () => {
9899
return (
99100
<section className={styles.featuresSection}>
100101
<div className="container">
@@ -108,4 +109,4 @@ const HomepageFeatures = (): JSX.Element => {
108109
);
109110
};
110111

111-
export default HomepageFeatures;
112+
export default HomepageFeatures;

frontend/src/components/HomepageFeatures/styles.module.css

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,21 @@
3636
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
3737
}
3838

39-
.featureItem:nth-child(1) { animation-delay: 0.1s; }
40-
.featureItem:nth-child(2) { animation-delay: 0.2s; }
41-
.featureItem:nth-child(3) { animation-delay: 0.3s; }
42-
.featureItem:nth-child(4) { animation-delay: 0.4s; }
39+
.featureItem:nth-child(1) {
40+
animation-delay: 0.1s;
41+
}
42+
43+
.featureItem:nth-child(2) {
44+
animation-delay: 0.2s;
45+
}
46+
47+
.featureItem:nth-child(3) {
48+
animation-delay: 0.3s;
49+
}
50+
51+
.featureItem:nth-child(4) {
52+
animation-delay: 0.4s;
53+
}
4354

4455
.featureImageContainer {
4556
text-align: center;
@@ -104,6 +115,7 @@
104115
opacity: 0;
105116
transform: translateY(20px);
106117
}
118+
107119
to {
108120
opacity: 1;
109121
transform: translateY(0);
@@ -115,17 +127,17 @@
115127
flex: 1 1 100%;
116128
margin-bottom: 1.5rem;
117129
}
118-
130+
119131
.featuresRow {
120132
flex-direction: column;
121133
gap: 1.5rem;
122134
}
123-
135+
124136
.featureImageContainer {
125137
width: 90px;
126138
height: 90px;
127139
}
128-
140+
129141
.featureContent h3 {
130142
font-size: 1.25rem;
131143
}

frontend/src/components/ServerInfoPage.tsx

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -95,20 +95,24 @@ const Info = ({ data }: { data: ServerAllData }) => (
9595
</tr>
9696
</thead>
9797
<tbody>
98-
{Object.entries(data.ru).map(([key, value]) => (
99-
<tr key={key}>
100-
<td>{key}</td>
101-
<td>
102-
{key === "weburl" ? (
103-
<a href={`https://${value}`} target="_blank" rel="noreferrer">
104-
{value}
105-
</a>
106-
) : (
107-
value
108-
)}
109-
</td>
110-
</tr>
111-
))}
98+
{Object.entries(data.ru).map(([key, value]) => (
99+
<tr key={key}>
100+
<td>{key}</td>
101+
<td>
102+
{key === "weburl" ? (
103+
<a
104+
href={`https://${value}`}
105+
target="_blank"
106+
rel="noreferrer"
107+
>
108+
{value}
109+
</a>
110+
) : (
111+
value
112+
)}
113+
</td>
114+
</tr>
115+
))}
112116
</tbody>
113117
</table>
114118
</div>

frontend/src/components/templates/translations/bs/version-warning.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ export default function WarningVersion({
1010
return (
1111
<Admonition type="warning">
1212
<p>
13-
Ovo {name} je dodano u {version} i neće raditi u ranijim
14-
verzijama!
13+
Ovo {name} je dodano u {version} i neće raditi u ranijim verzijama!
1514
</p>
1615
</Admonition>
1716
);

frontend/src/components/templates/translations/es/version-warning.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export default function WarningVersion({
1010
return (
1111
<Admonition type="warning">
1212
<p>
13-
Esta {name} fue implementada en {version} y no funcionará en
14-
versiones anteriores.
13+
Esta {name} fue implementada en {version} y no funcionará en versiones
14+
anteriores.
1515
</p>
1616
</Admonition>
1717
);

frontend/src/components/templates/translations/pt-BR/version-warning.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export default function WarningVersion({
1010
return (
1111
<Admonition type="warning">
1212
<p>
13-
Esta {name} foi implementada no {version} e não funcionará em
14-
versões anteriores.
13+
Esta {name} foi implementada no {version} e não funcionará em versões
14+
anteriores.
1515
</p>
1616
</Admonition>
1717
);

frontend/src/components/templates/translations/sr/version-warning.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ export default function WarningVersion({
1010
return (
1111
<Admonition type="warning">
1212
<p>
13-
Ова {name} је додана у {version} и неће радити у ранијим
14-
верзијама!
13+
Ова {name} је додана у {version} и неће радити у ранијим верзијама!
1514
</p>
1615
</Admonition>
1716
);

frontend/src/components/templates/translations/tr/version-warning.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ export default function WarningVersion({
1010
return (
1111
<Admonition type="warning">
1212
<p>
13-
Bu {name} öğesi {version} sürümünde eklendi ve daha önceki sürümlerde çalışmayacaktır!
13+
Bu {name} öğesi {version} sürümünde eklendi ve daha önceki sürümlerde
14+
çalışmayacaktır!
1415
</p>
1516
</Admonition>
1617
);

frontend/src/css/custom.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ html[data-theme="dark"] {
155155
opacity: 0;
156156
transform: translateY(100%);
157157
}
158+
158159
to {
159160
opacity: 1;
160161
transform: translateY(0);
@@ -166,6 +167,7 @@ html[data-theme="dark"] {
166167
opacity: 1;
167168
transform: translateY(0);
168169
}
170+
169171
to {
170172
opacity: 0;
171173
transform: translateY(100%);
@@ -381,6 +383,7 @@ html[data-theme="dark"] {
381383
0% {
382384
transform: rotate(0deg);
383385
}
386+
384387
100% {
385388
transform: rotate(360deg);
386389
}

0 commit comments

Comments
 (0)