Skip to content

Commit e343e0c

Browse files
committed
misc: enable vcs support and format all files with biome
- Enable VCS support in biome.jsonc to respect .gitignore - Format all tracked files with Biome
1 parent 4d3f911 commit e343e0c

File tree

50 files changed

+491
-382
lines changed

Some content is hidden

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

50 files changed

+491
-382
lines changed

biome.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
33
"vcs": {
4-
"enabled": false,
4+
"enabled": true,
55
"clientKind": "git",
6-
"useIgnoreFile": false
6+
"useIgnoreFile": true
77
},
88
"files": {
99
"ignoreUnknown": false

docs/style/fonts.css

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,64 @@
11
/* hebrew */
22
@font-face {
3-
font-family: 'Heebo';
3+
font-family: "Heebo";
44
font-style: normal;
55
font-weight: 400;
6-
src: url(https://fonts.gstatic.com/s/heebo/v9/NGS6v5_NC0k9P9H0TbFhsqMA6aw.woff2) format('woff2');
6+
src: url(https://fonts.gstatic.com/s/heebo/v9/NGS6v5_NC0k9P9H0TbFhsqMA6aw.woff2)
7+
format("woff2");
78
unicode-range: U+0590-05FF, U+20AA, U+25CC, U+FB1D-FB4F;
89
}
910

1011
/* latin */
1112
@font-face {
12-
font-family: 'Heebo';
13+
font-family: "Heebo";
1314
font-style: normal;
1415
font-weight: 400;
15-
src: url(https://fonts.gstatic.com/s/heebo/v9/NGS6v5_NC0k9P9H2TbFhsqMA.woff2) format('woff2');
16-
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
16+
src: url(https://fonts.gstatic.com/s/heebo/v9/NGS6v5_NC0k9P9H2TbFhsqMA.woff2)
17+
format("woff2");
18+
unicode-range:
19+
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
1720
}
1821

1922
/* hebrew */
2023
@font-face {
21-
font-family: 'Heebo';
24+
font-family: "Heebo";
2225
font-style: normal;
2326
font-weight: 700;
24-
src: url(https://fonts.gstatic.com/s/heebo/v9/NGS6v5_NC0k9P9H0TbFhsqMA6aw.woff2) format('woff2');
27+
src: url(https://fonts.gstatic.com/s/heebo/v9/NGS6v5_NC0k9P9H0TbFhsqMA6aw.woff2)
28+
format("woff2");
2529
unicode-range: U+0590-05FF, U+20AA, U+25CC, U+FB1D-FB4F;
2630
}
2731

2832
/* latin */
2933
@font-face {
30-
font-family: 'Heebo';
34+
font-family: "Heebo";
3135
font-style: normal;
3236
font-weight: 700;
33-
src: url(https://fonts.gstatic.com/s/heebo/v9/NGS6v5_NC0k9P9H2TbFhsqMA.woff2) format('woff2');
34-
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
37+
src: url(https://fonts.gstatic.com/s/heebo/v9/NGS6v5_NC0k9P9H2TbFhsqMA.woff2)
38+
format("woff2");
39+
unicode-range:
40+
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
3541
}
3642

3743
/* latin-ext */
3844
@font-face {
39-
font-family: 'Oxygen';
45+
font-family: "Oxygen";
4046
font-style: normal;
4147
font-weight: 700;
42-
src: url(https://fonts.gstatic.com/s/oxygen/v10/2sDcZG1Wl4LcnbuCNWgzZmW5Kb8VZBHR.woff2) format('woff2');
43-
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
48+
src: url(https://fonts.gstatic.com/s/oxygen/v10/2sDcZG1Wl4LcnbuCNWgzZmW5Kb8VZBHR.woff2)
49+
format("woff2");
50+
unicode-range:
51+
U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113,
52+
U+2C60-2C7F, U+A720-A7FF;
4453
}
4554

4655
/* latin */
4756
@font-face {
48-
font-family: 'Oxygen';
57+
font-family: "Oxygen";
4958
font-style: normal;
5059
font-weight: 700;
51-
src: url(https://fonts.gstatic.com/s/oxygen/v10/2sDcZG1Wl4LcnbuCNWgzaGW5Kb8VZA.woff2) format('woff2');
52-
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
60+
src: url(https://fonts.gstatic.com/s/oxygen/v10/2sDcZG1Wl4LcnbuCNWgzaGW5Kb8VZA.woff2)
61+
format("woff2");
62+
unicode-range:
63+
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
5364
}

docs/style/style.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,17 +1431,20 @@ label {
14311431
}
14321432

14331433
.has-animations.is-loaded .hero-title {
1434-
-webkit-animation: heroContent 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) forwards 0.15s;
1434+
-webkit-animation: heroContent 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)
1435+
forwards 0.15s;
14351436
animation: heroContent 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) forwards 0.15s;
14361437
}
14371438

14381439
.has-animations.is-loaded .hero-paragraph {
1439-
-webkit-animation: heroContent 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) forwards 0.3s;
1440+
-webkit-animation: heroContent 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)
1441+
forwards 0.3s;
14401442
animation: heroContent 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) forwards 0.3s;
14411443
}
14421444

14431445
.has-animations.is-loaded .hero-cta {
1444-
-webkit-animation: heroContent 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) forwards 0.45s;
1446+
-webkit-animation: heroContent 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)
1447+
forwards 0.45s;
14451448
animation: heroContent 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) forwards 0.45s;
14461449
}
14471450

electron.vite.config.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export default defineConfig({
3636
],
3737
publicDir: 'assets',
3838
define: {
39-
'__dirname': 'import.meta.dirname',
40-
'__filename': 'import.meta.filename',
39+
__dirname: 'import.meta.dirname',
40+
__filename: 'import.meta.filename',
4141
},
4242
build: {
4343
lib: {

src/config/defaults.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ export interface DefaultConfig {
1212
'window-size': WindowSizeConfig;
1313
'window-maximized': boolean;
1414
'window-position': WindowPositionConfig;
15-
'url': string;
16-
'options': {
15+
url: string;
16+
options: {
1717
language?: string;
1818
tray: boolean;
1919
appVisible: boolean;
@@ -37,7 +37,7 @@ export interface DefaultConfig {
3737
themes: string[];
3838
customWindowTitle?: string;
3939
};
40-
'plugins': Record<string, unknown>;
40+
plugins: Record<string, unknown>;
4141
}
4242

4343
export const defaultConfig: DefaultConfig = {
@@ -50,8 +50,8 @@ export const defaultConfig: DefaultConfig = {
5050
x: -1,
5151
y: -1,
5252
},
53-
'url': 'https://music.youtube.com',
54-
'options': {
53+
url: 'https://music.youtube.com',
54+
options: {
5555
tray: false,
5656
appVisible: true,
5757
autoUpdates: true,
@@ -72,5 +72,5 @@ export const defaultConfig: DefaultConfig = {
7272
usePodcastParticipantAsArtist: false,
7373
themes: [],
7474
},
75-
'plugins': {},
75+
plugins: {},
7676
};

src/config/index.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,12 @@ type Paths<T, D extends number = 10> = [D] extends [never]
7575
: '';
7676

7777
type SplitKey<K> = K extends `${infer A}.${infer B}` ? [A, B] : [K, string];
78-
type PathValue<T, K extends string> =
79-
SplitKey<K> extends [infer A extends keyof T, infer B extends string]
80-
? PathValue<T[A], B>
81-
: T;
78+
type PathValue<T, K extends string> = SplitKey<K> extends [
79+
infer A extends keyof T,
80+
infer B extends string,
81+
]
82+
? PathValue<T[A], B>
83+
: T;
8284

8385
export const get = <Key extends Paths<typeof defaultConfig>>(key: Key) =>
8486
store.get(key) as PathValue<typeof defaultConfig, typeof key>;

src/i18n/resources/@types/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ export interface LanguageResources {
22
[lang: string]: {
33
translation: Record<string, unknown> & {
44
language?: {
5-
'name': string;
5+
name: string;
66
'local-name': string;
7-
'code': string;
7+
code: string;
88
};
99
};
1010
};

src/plugins/album-actions/templates/dislike-button.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,31 @@ export const DislikeButton = (props: DislikeButtonProps) => (
1818
aria-hidden="true"
1919
class="yt-spec-button-shape-next__icon"
2020
style={{
21-
'color': 'var(--ytmusic-setting-item-toggle-active)',
21+
color: 'var(--ytmusic-setting-item-toggle-active)',
2222
}}
2323
>
2424
<div
2525
aria-hidden="true"
2626
class="yt-spec-button-shape-next__icon"
2727
style={{
28-
'color': 'white',
29-
'mask': 'linear-gradient(grey, grey)',
28+
color: 'white',
29+
mask: 'linear-gradient(grey, grey)',
3030
'-webkit-mask': 'linear-gradient(grey, grey)',
3131
'-webkit-mask-size': props.maskSize,
3232
'-webkit-mask-repeat': 'no-repeat',
3333
'z-index': 1,
34-
'position': 'absolute',
34+
position: 'absolute',
3535
}}
3636
>
37-
<div style={{ 'width': '24px', 'height': '24px' }}>
37+
<div style={{ width: '24px', height: '24px' }}>
3838
<svg
3939
class="style-scope yt-icon"
4040
preserveAspectRatio="xMidYMid meet"
4141
style={{
4242
'pointer-events': 'none',
43-
'display': 'block',
44-
'width': '100%',
45-
'height': '100%',
43+
display: 'block',
44+
width: '100%',
45+
height: '100%',
4646
}}
4747
viewBox="0 0 24 24"
4848
>
@@ -66,9 +66,9 @@ export const DislikeButton = (props: DislikeButtonProps) => (
6666
preserveAspectRatio="xMidYMid meet"
6767
style={{
6868
'pointer-events': 'none',
69-
'display': 'block',
70-
'width': '100%',
71-
'height': '100%',
69+
display: 'block',
70+
width: '100%',
71+
height: '100%',
7272
}}
7373
viewBox="0 0 24 24"
7474
>

src/plugins/album-actions/templates/like-button.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,31 @@ export const LikeButton = (props: LikeButtonProps) => (
1818
aria-hidden="true"
1919
class="yt-spec-button-shape-next__icon"
2020
style={{
21-
'color': 'var(--ytmusic-setting-item-toggle-active)',
21+
color: 'var(--ytmusic-setting-item-toggle-active)',
2222
}}
2323
>
2424
<div
2525
aria-hidden="true"
2626
class="yt-spec-button-shape-next__icon"
2727
style={{
28-
'color': 'white',
29-
'mask': 'linear-gradient(grey, grey)',
28+
color: 'white',
29+
mask: 'linear-gradient(grey, grey)',
3030
'-webkit-mask': 'linear-gradient(grey, grey)',
3131
'-webkit-mask-size': props.maskSize,
3232
'-webkit-mask-repeat': 'no-repeat',
3333
'z-index': 1,
34-
'position': 'absolute',
34+
position: 'absolute',
3535
}}
3636
>
37-
<div style={{ 'width': '24px', 'height': '24px' }}>
37+
<div style={{ width: '24px', height: '24px' }}>
3838
<svg
3939
class="style-scope yt-icon"
4040
preserveAspectRatio="xMidYMid meet"
4141
style={{
4242
'pointer-events': 'none',
43-
'display': 'block',
44-
'width': '100%',
45-
'height': '100%',
43+
display: 'block',
44+
width: '100%',
45+
height: '100%',
4646
}}
4747
viewBox="0 0 24 24"
4848
>
@@ -55,15 +55,15 @@ export const LikeButton = (props: LikeButtonProps) => (
5555
</svg>
5656
</div>
5757
</div>
58-
<div style={{ 'width': '24px', 'height': '24px' }}>
58+
<div style={{ width: '24px', height: '24px' }}>
5959
<svg
6060
class="style-scope yt-icon"
6161
preserveAspectRatio="xMidYMid meet"
6262
style={{
6363
'pointer-events': 'none',
64-
'display': 'block',
65-
'width': '100%',
66-
'height': '100%',
64+
display: 'block',
65+
width: '100%',
66+
height: '100%',
6767
}}
6868
viewBox="0 0 24 24"
6969
>

src/plugins/album-actions/templates/undislike-button.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ export const UnDislikeButton = (props: UnDislikeButtonProps) => (
2525
aria-hidden="true"
2626
class="yt-spec-button-shape-next__icon"
2727
style={{
28-
'color': 'white',
29-
'mask': 'linear-gradient(grey, grey)',
28+
color: 'white',
29+
mask: 'linear-gradient(grey, grey)',
3030
'-webkit-mask': 'linear-gradient(grey, grey)',
3131
'-webkit-mask-size': props.maskSize,
3232
'-webkit-mask-repeat': 'no-repeat',
3333
'z-index': 1,
34-
'position': 'absolute',
34+
position: 'absolute',
3535
}}
3636
>
3737
<div
@@ -45,9 +45,9 @@ export const UnDislikeButton = (props: UnDislikeButtonProps) => (
4545
preserveAspectRatio="xMidYMid meet"
4646
style={{
4747
'pointer-events': 'none',
48-
'display': 'block',
49-
'width': '100%',
50-
'height': '100%',
48+
display: 'block',
49+
width: '100%',
50+
height: '100%',
5151
}}
5252
viewBox="0 0 24 24"
5353
>
@@ -71,9 +71,9 @@ export const UnDislikeButton = (props: UnDislikeButtonProps) => (
7171
preserveAspectRatio="xMidYMid meet"
7272
style={{
7373
'pointer-events': 'none',
74-
'display': 'block',
75-
'width': '100%',
76-
'height': '100%',
74+
display: 'block',
75+
width: '100%',
76+
height: '100%',
7777
}}
7878
viewBox="0 0 24 24"
7979
>

0 commit comments

Comments
 (0)