Skip to content

Commit 1b54fbb

Browse files
committed
chore(2025): format
1 parent 191494b commit 1b54fbb

16 files changed

+183
-179
lines changed

2025/astro.config.mjs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1+
import react from '@astrojs/react';
12
// @ts-check
23
import { defineConfig } from 'astro/config';
3-
import Macros from 'unplugin-macros/vite'
44

5-
import react from '@astrojs/react';
5+
import Macros from 'unplugin-macros/vite';
66

77
// https://astro.build/config
88
export default defineConfig({
9-
base: '/2025',
9+
base: '/2025',
1010

11-
experimental: {
12-
serializeConfig: true,
13-
},
11+
experimental: {
12+
serializeConfig: true,
13+
},
1414

15-
redirects: {
16-
'/': '/2025/ja',
17-
'/2025': '/2025/ja',
18-
},
15+
redirects: {
16+
'/': '/2025/ja',
17+
'/2025': '/2025/ja',
18+
},
1919

20-
vite:{
21-
optimizeDeps: {
22-
exclude: [
23-
'@resvg/resvg-js'
24-
]
25-
},
26-
plugins: [
27-
Macros()
28-
]
29-
},
20+
vite: {
21+
optimizeDeps: {
22+
exclude: [
23+
'@resvg/resvg-js',
24+
],
25+
},
26+
plugins: [
27+
Macros(),
28+
],
29+
},
3030

31-
integrations: [react()]
32-
});
31+
integrations: [react()],
32+
});

2025/eslint.config.mjs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { ryoppippi } from "@ryoppippi/eslint-config";
1+
import { ryoppippi } from '@ryoppippi/eslint-config';
22

33
export default ryoppippi({
4-
type: 'app', // or 'lib'
5-
svelte: false,
6-
astro: true,
7-
typescript: {
8-
tsconfigPath: "./tsconfig.json",
9-
},
4+
type: 'app', // or 'lib'
5+
svelte: false,
6+
astro: true,
7+
typescript: {
8+
tsconfigPath: './tsconfig.json',
9+
},
1010
});

2025/package.json

Lines changed: 46 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,48 @@
11
{
2-
"name": "2025",
3-
"private": true,
4-
"type": "module",
5-
"version": "0.0.1",
6-
"scripts": {
7-
"dev": "astro dev",
8-
"build": "astro build",
9-
"preview": "astro preview",
10-
"astro": "astro",
11-
"lint": "eslint --cache .",
12-
"format": "nr lint --fix"
13-
},
14-
"dependencies": {
15-
"@astrojs/react": "^4.2.0",
16-
"@types/react": "^19.0.8",
17-
"@types/react-dom": "^19.0.3",
18-
"astro": "^5.3.0",
19-
"astro-google-fonts-optimizer": "^0.2.2",
20-
"astro-seo": "^0.8.4",
21-
"react": "^19.0.0",
22-
"react-dom": "^19.0.0",
23-
"satori": "^0.12.1",
24-
"ufo": "^1.5.4"
25-
},
26-
"devDependencies": {
27-
"@antfu/ni": "^23.3.1",
28-
"@astrojs/ts-plugin": "^1.10.4",
29-
"@ryoppippi/eslint-config": "npm:@jsr/ryoppippi__eslint-config@^0.0.25",
30-
"eslint": "^9.20.1",
31-
"eslint-plugin-astro": "^1.3.1",
32-
"eslint-plugin-format": "^1.0.1",
33-
"sharp": "^0.33.5",
34-
"typescript": "^5.7.3",
35-
"unplugin-macros": "^0.16.0"
36-
},
37-
"pnpm": {
38-
"executionEnv": {
39-
"nodeVersion": "22.13.1"
40-
},
41-
"onlyBuiltDependencies": [
42-
"esbuild",
43-
"sharp"
44-
]
45-
},
46-
"packageManager": "[email protected]"
2+
"name": "2025",
3+
"type": "module",
4+
"version": "0.0.1",
5+
"private": true,
6+
"packageManager": "[email protected]",
7+
"scripts": {
8+
"dev": "astro dev",
9+
"build": "astro build",
10+
"preview": "astro preview",
11+
"astro": "astro",
12+
"check": "astro check",
13+
"lint": "eslint --cache .",
14+
"format": "nr lint --fix"
15+
},
16+
"dependencies": {
17+
"@astrojs/react": "^4.2.0",
18+
"@types/react": "^19.0.8",
19+
"@types/react-dom": "^19.0.3",
20+
"astro": "^5.3.0",
21+
"astro-google-fonts-optimizer": "^0.2.2",
22+
"astro-seo": "^0.8.4",
23+
"react": "^19.0.0",
24+
"react-dom": "^19.0.0",
25+
"satori": "^0.12.1",
26+
"ufo": "^1.5.4"
27+
},
28+
"devDependencies": {
29+
"@antfu/ni": "^23.3.1",
30+
"@astrojs/ts-plugin": "^1.10.4",
31+
"@ryoppippi/eslint-config": "npm:@jsr/ryoppippi__eslint-config@^0.0.25",
32+
"eslint": "^9.20.1",
33+
"eslint-plugin-astro": "^1.3.1",
34+
"eslint-plugin-format": "^1.0.1",
35+
"sharp": "^0.33.5",
36+
"typescript": "^5.7.3",
37+
"unplugin-macros": "^0.16.0"
38+
},
39+
"pnpm": {
40+
"executionEnv": {
41+
"nodeVersion": "22.13.1"
42+
},
43+
"onlyBuiltDependencies": [
44+
"esbuild",
45+
"sharp"
46+
]
47+
}
4748
}

2025/src/components/AnnouncementSlides.astro

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<iframe
2-
src="https://docs.google.com/presentation/d/e/2PACX-1vT62Rl7c-bAJ4l2REq__4nvaLW4ZCuTEblh1PGpOa2ZA2Wg6jUm08KWTP-liYFLe2m80RFd5oB-DP8v/embed?start=false&loop=false&delayms=3000"
3-
frameborder="0"
4-
allowfullscreen="true"
5-
mozallowfullscreen="true"
6-
webkitallowfullscreen="true"
2+
src="https://docs.google.com/presentation/d/e/2PACX-1vT62Rl7c-bAJ4l2REq__4nvaLW4ZCuTEblh1PGpOa2ZA2Wg6jUm08KWTP-liYFLe2m80RFd5oB-DP8v/embed?start=false&loop=false&delayms=3000"
3+
allowfullscreen="true"
74
/>
85

96
<style>

2025/src/components/Footer.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<footer style="background: linear-gradient(240deg, #9ebd13 0%, #069700 100%); color: #fff; text-align: center; padding: 20px 0;"/>
1+
<footer style="background: linear-gradient(240deg, #9ebd13 0%, #069700 100%); color: #fff; text-align: center; padding: 20px 0;" />

2025/src/components/Header.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
import LanguagePicker from '../components/LanguagePicker.astro'
3-
42
import { MAIN_BACKGROUND_COLOR } from '@/consts';
3+
4+
import LanguagePicker from '../components/LanguagePicker.astro';
55
---
66

77
<header class="hero">

2025/src/components/LanguagePicker.astro

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
2-
import { base } from "astro:config/client"
2+
// @ts-expect-error not found
3+
import { base } from 'astro:config/client';
34
4-
const languages = Object.keys(import.meta.glob('../pages/*.astro')).map(p=>p.split("/").at(-1).replace(".astro", "")).sort();
5-
const pathname = Astro.url.pathname.replace(import.meta.env.BASE_URL, "");
6-
const currentLang = pathname.split("/")[1];
5+
const languages = Object.keys(import.meta.glob('../pages/*.astro')).map(p => p.split('/').at(-1)!.replace('.astro', '')).sort();
6+
const pathname = Astro.url.pathname.replace(import.meta.env.BASE_URL, '');
7+
const currentLang = pathname.split('/')[1];
78
---
89
<div class="language-switcher">
910
{languages.map((lang, i) => (
1011
<>
11-
<a href={`${base}/${lang}/`} class:list={{active: lang === currentLang}}>
12+
<a href={`${base as string}/${lang}/`} class:list={{ active: lang === currentLang }}>
1213
{lang.toUpperCase()}
1314
</a>
1415
{i < languages.length - 1 && <span class="separator">/</span>}

2025/src/components/OgImage.tsx

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
1-
import satori from 'satori';
2-
import sharp from 'sharp';
1+
import { Buffer } from 'node:buffer';
2+
import LogoWhite from '@/assets/logo-white.svg?raw';
33
import { MAIN_BACKGROUND_COLOR } from '@/consts';
4+
import satori from 'satori';
45

5-
import LogoWhite from '@/assets/logo-white.svg?raw';
6+
import sharp from 'sharp';
67

78
/* convert string to base64 */
89
const LogoWhiteUrl = `data:image/svg+xml;base64,${Buffer.from(LogoWhite).toString('base64')}`;
910

10-
1111
export async function ogImage() {
12-
const svg = await satori(
13-
(
14-
<div
15-
style={{
16-
display: 'flex',
17-
position: 'relative',
18-
width: '100%',
19-
height: '100%',
20-
backgroundColor: MAIN_BACKGROUND_COLOR,
21-
}}
22-
>
23-
<img
24-
src={LogoWhiteUrl}
25-
style={{
26-
position: 'absolute',
27-
width: '100%',
28-
top: '100px'
29-
}}
30-
/>
31-
</div>
32-
),
33-
{
34-
width: 1600,
35-
height: 900,
36-
fonts:[]
37-
},
38-
);
12+
const svg = await satori(
13+
(
14+
<div
15+
style={{
16+
display: 'flex',
17+
position: 'relative',
18+
width: '100%',
19+
height: '100%',
20+
backgroundColor: MAIN_BACKGROUND_COLOR,
21+
}}
22+
>
23+
<img
24+
src={LogoWhiteUrl}
25+
style={{
26+
position: 'absolute',
27+
width: '100%',
28+
top: '100px',
29+
}}
30+
/>
31+
</div>
32+
),
33+
{
34+
width: 1600,
35+
height: 900,
36+
fonts: [],
37+
},
38+
);
3939

40-
return sharp(Buffer.from(svg)).png().toBuffer();
40+
return sharp(Buffer.from(svg)).png().toBuffer();
4141
}

2025/src/components/VenueMap.astro

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
---
2+
const src = 'https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3240.053340275775!2d139.77188631510504!3d35.70030498018984!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x60188ea7a29cf80b%3A0xdce74a4dd51e0a66!2z5a-M5aOr44K944OV44OI44Ki44Kt44OQ44OX44Op44K2!5e0!3m2!1sja!2sjp!4v1513741028586&amp;key=AIzaSyDYecdzqzXTkep-BSPK-rl52Yx3D1HFjME';
3+
---
14
<iframe
2-
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3240.053340275775!2d139.77188631510504!3d35.70030498018984!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x60188ea7a29cf80b%3A0xdce74a4dd51e0a66!2z5a-M5aOr44K944OV44OI44Ki44Kt44OQ44OX44Op44K2!5e0!3m2!1sja!2sjp!4v1513741028586&amp;key=AIzaSyDYecdzqzXTkep-BSPK-rl52Yx3D1HFjME"
3-
height="400"
4-
allowfullscreen=""
5+
{src}
6+
height="400"
7+
allowfullscreen=""
58
/>
69

710
<style>

2025/src/consts/_domain.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import path from 'node:path'
2-
import fs from 'node:fs'
1+
import fs from 'node:fs';
2+
import path from 'node:path';
33

4-
const CNAME = fs.readFileSync( path.join( import.meta.dirname, '../../../','CNAME' ), 'utf-8' ).trim()
4+
const CNAME = fs.readFileSync(path.join(import.meta.dirname, '../../../', 'CNAME'), 'utf-8').trim();
55

66
export const DOMAIN = `https://${CNAME}`;

0 commit comments

Comments
 (0)