@sonolus/core 7.14.2 → 7.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/core/background/item.d.ts +2 -0
- package/dist/common/core/effect/item.d.ts +2 -0
- package/dist/common/core/engine/configuration/configuration.d.ts +2 -0
- package/dist/common/core/engine/item.d.ts +2 -0
- package/dist/common/core/engine/playData/archetype.d.ts +1 -0
- package/dist/common/core/engine/previewData/archetype.d.ts +1 -0
- package/dist/common/core/engine/watchData/archetype.d.ts +1 -0
- package/dist/common/core/icon.d.ts +19 -0
- package/dist/common/core/icon.js +19 -0
- package/dist/common/core/index.d.ts +1 -0
- package/dist/common/core/index.js +1 -0
- package/dist/common/core/itemType.d.ts +1 -1
- package/dist/common/core/level/item.d.ts +2 -0
- package/dist/common/core/particle/item.d.ts +2 -0
- package/dist/common/core/playlist/item.d.ts +2 -0
- package/dist/common/core/post/item.d.ts +2 -0
- package/dist/common/core/replay/configuration.d.ts +2 -0
- package/dist/common/core/replay/item.d.ts +2 -0
- package/dist/common/core/room/item.d.ts +2 -0
- package/dist/common/core/runtimes/function.d.ts +1 -0
- package/dist/common/core/runtimes/function.js +1 -0
- package/dist/common/core/server/info.d.ts +16 -2
- package/dist/common/core/server/items/community/comment/comment.d.ts +2 -0
- package/dist/common/core/server/items/info.d.ts +1 -0
- package/dist/common/core/server/items/leaderboard/record/record.d.ts +2 -0
- package/dist/common/core/server/items/list.d.ts +1 -0
- package/dist/common/core/server/items/section.d.ts +2 -1
- package/dist/common/core/server/option.d.ts +34 -0
- package/dist/common/core/skin/item.d.ts +2 -0
- package/dist/common/core/tag.d.ts +1 -1
- package/dist/common/core/text.d.ts +95 -25
- package/dist/common/core/text.js +95 -25
- package/dist/common/core/user/index.d.ts +1 -0
- package/dist/common/core/user/index.js +1 -0
- package/dist/common/core/user/item.d.ts +8 -0
- package/dist/common/core/user/item.js +1 -0
- package/dist/common/database/tag.d.ts +1 -1
- package/dist/common/version.js +2 -2
- package/dist/node/core/resource/compress.d.ts +2 -2
- package/dist/node/core/resource/decompress.d.ts +3 -2
- package/dist/node/core/resource/hash.d.ts +2 -1
- package/package.json +8 -8
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Srl } from '../srl.js';
|
|
2
2
|
import { Tag } from '../tag.js';
|
|
3
|
+
import { UserItem } from '../user/item.js';
|
|
3
4
|
export type BackgroundItem = {
|
|
4
5
|
name: string;
|
|
5
6
|
source?: string;
|
|
@@ -7,6 +8,7 @@ export type BackgroundItem = {
|
|
|
7
8
|
title: string;
|
|
8
9
|
subtitle: string;
|
|
9
10
|
author: string;
|
|
11
|
+
authorUser?: UserItem;
|
|
10
12
|
tags: Tag[];
|
|
11
13
|
thumbnail: Srl;
|
|
12
14
|
data: Srl;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Srl } from '../srl.js';
|
|
2
2
|
import { Tag } from '../tag.js';
|
|
3
|
+
import { UserItem } from '../user/item.js';
|
|
3
4
|
export type EffectItem = {
|
|
4
5
|
name: string;
|
|
5
6
|
source?: string;
|
|
@@ -7,6 +8,7 @@ export type EffectItem = {
|
|
|
7
8
|
title: string;
|
|
8
9
|
subtitle: string;
|
|
9
10
|
author: string;
|
|
11
|
+
authorUser?: UserItem;
|
|
10
12
|
tags: Tag[];
|
|
11
13
|
thumbnail: Srl;
|
|
12
14
|
data: Srl;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { Text } from '../../text.js';
|
|
1
2
|
import { EngineConfigurationOption } from './option.js';
|
|
2
3
|
import { EngineConfigurationUI } from './ui.js';
|
|
3
4
|
export type EngineConfiguration = {
|
|
4
5
|
options: EngineConfigurationOption[];
|
|
5
6
|
ui: EngineConfigurationUI;
|
|
7
|
+
replayFallbackOptionNames?: (Text | (string & {}))[];
|
|
6
8
|
};
|
|
@@ -4,6 +4,7 @@ import { ParticleItem } from '../particle/item.js';
|
|
|
4
4
|
import { SkinItem } from '../skin/item.js';
|
|
5
5
|
import { Srl } from '../srl.js';
|
|
6
6
|
import { Tag } from '../tag.js';
|
|
7
|
+
import { UserItem } from '../user/item.js';
|
|
7
8
|
export type EngineItem = {
|
|
8
9
|
name: string;
|
|
9
10
|
source?: string;
|
|
@@ -11,6 +12,7 @@ export type EngineItem = {
|
|
|
11
12
|
title: string;
|
|
12
13
|
subtitle: string;
|
|
13
14
|
author: string;
|
|
15
|
+
authorUser?: UserItem;
|
|
14
16
|
tags: Tag[];
|
|
15
17
|
skin: SkinItem;
|
|
16
18
|
background: BackgroundItem;
|
|
@@ -8,6 +8,7 @@ export declare const Icon: {
|
|
|
8
8
|
readonly AnglesRight: "anglesRight";
|
|
9
9
|
readonly AnglesUp: "anglesUp";
|
|
10
10
|
readonly AngleUp: "angleUp";
|
|
11
|
+
readonly Announcement: "announcement";
|
|
11
12
|
readonly ArrowDown: "arrowDown";
|
|
12
13
|
readonly ArrowLeft: "arrowLeft";
|
|
13
14
|
readonly ArrowRight: "arrowRight";
|
|
@@ -16,6 +17,7 @@ export declare const Icon: {
|
|
|
16
17
|
readonly Background: "background";
|
|
17
18
|
readonly Bell: "bell";
|
|
18
19
|
readonly BellSlash: "bellSlash";
|
|
20
|
+
readonly Book: "book";
|
|
19
21
|
readonly Bookmark: "bookmark";
|
|
20
22
|
readonly BookmarkHollow: "bookmarkHollow";
|
|
21
23
|
readonly Check: "check";
|
|
@@ -29,6 +31,7 @@ export declare const Icon: {
|
|
|
29
31
|
readonly Engine: "engine";
|
|
30
32
|
readonly Envelope: "envelope";
|
|
31
33
|
readonly EnvelopeOpen: "envelopeOpen";
|
|
34
|
+
readonly Filter: "filter";
|
|
32
35
|
readonly Globe: "globe";
|
|
33
36
|
readonly Heart: "heart";
|
|
34
37
|
readonly HeartHollow: "heartHollow";
|
|
@@ -57,6 +60,21 @@ export declare const Icon: {
|
|
|
57
60
|
readonly Show: "show";
|
|
58
61
|
readonly Shuffle: "shuffle";
|
|
59
62
|
readonly Skin: "skin";
|
|
63
|
+
readonly Sort: "sort";
|
|
64
|
+
readonly SortDown: "sortDown";
|
|
65
|
+
readonly SortDown19: "sortDown19";
|
|
66
|
+
readonly SortDown91: "sortDown91";
|
|
67
|
+
readonly SortDownAZ: "sortDownAZ";
|
|
68
|
+
readonly SortDownShortWide: "sortDownShortWide";
|
|
69
|
+
readonly SortDownWideShort: "sortDownWideShort";
|
|
70
|
+
readonly SortDownZA: "sortDownZA";
|
|
71
|
+
readonly SortUp: "sortUp";
|
|
72
|
+
readonly SortUp19: "sortUp19";
|
|
73
|
+
readonly SortUp91: "sortUp91";
|
|
74
|
+
readonly SortUpAZ: "sortUpAZ";
|
|
75
|
+
readonly SortUpShortWide: "sortUpShortWide";
|
|
76
|
+
readonly SortUpWideShort: "sortUpWideShort";
|
|
77
|
+
readonly SortUpZA: "sortUpZA";
|
|
60
78
|
readonly Star: "star";
|
|
61
79
|
readonly StarHalf: "starHalf";
|
|
62
80
|
readonly StarHollow: "starHollow";
|
|
@@ -68,6 +86,7 @@ export declare const Icon: {
|
|
|
68
86
|
readonly ThumbsUpHollow: "thumbsUpHollow";
|
|
69
87
|
readonly Trophy: "trophy";
|
|
70
88
|
readonly Unlock: "unlock";
|
|
89
|
+
readonly User: "user";
|
|
71
90
|
readonly XMark: "xMark";
|
|
72
91
|
};
|
|
73
92
|
export type Icon = (typeof Icon)[keyof typeof Icon];
|
package/dist/common/core/icon.js
CHANGED
|
@@ -8,6 +8,7 @@ export const Icon = {
|
|
|
8
8
|
AnglesRight: 'anglesRight',
|
|
9
9
|
AnglesUp: 'anglesUp',
|
|
10
10
|
AngleUp: 'angleUp',
|
|
11
|
+
Announcement: 'announcement',
|
|
11
12
|
ArrowDown: 'arrowDown',
|
|
12
13
|
ArrowLeft: 'arrowLeft',
|
|
13
14
|
ArrowRight: 'arrowRight',
|
|
@@ -16,6 +17,7 @@ export const Icon = {
|
|
|
16
17
|
Background: 'background',
|
|
17
18
|
Bell: 'bell',
|
|
18
19
|
BellSlash: 'bellSlash',
|
|
20
|
+
Book: 'book',
|
|
19
21
|
Bookmark: 'bookmark',
|
|
20
22
|
BookmarkHollow: 'bookmarkHollow',
|
|
21
23
|
Check: 'check',
|
|
@@ -29,6 +31,7 @@ export const Icon = {
|
|
|
29
31
|
Engine: 'engine',
|
|
30
32
|
Envelope: 'envelope',
|
|
31
33
|
EnvelopeOpen: 'envelopeOpen',
|
|
34
|
+
Filter: 'filter',
|
|
32
35
|
Globe: 'globe',
|
|
33
36
|
Heart: 'heart',
|
|
34
37
|
HeartHollow: 'heartHollow',
|
|
@@ -57,6 +60,21 @@ export const Icon = {
|
|
|
57
60
|
Show: 'show',
|
|
58
61
|
Shuffle: 'shuffle',
|
|
59
62
|
Skin: 'skin',
|
|
63
|
+
Sort: 'sort',
|
|
64
|
+
SortDown: 'sortDown',
|
|
65
|
+
SortDown19: 'sortDown19',
|
|
66
|
+
SortDown91: 'sortDown91',
|
|
67
|
+
SortDownAZ: 'sortDownAZ',
|
|
68
|
+
SortDownShortWide: 'sortDownShortWide',
|
|
69
|
+
SortDownWideShort: 'sortDownWideShort',
|
|
70
|
+
SortDownZA: 'sortDownZA',
|
|
71
|
+
SortUp: 'sortUp',
|
|
72
|
+
SortUp19: 'sortUp19',
|
|
73
|
+
SortUp91: 'sortUp91',
|
|
74
|
+
SortUpAZ: 'sortUpAZ',
|
|
75
|
+
SortUpShortWide: 'sortUpShortWide',
|
|
76
|
+
SortUpWideShort: 'sortUpWideShort',
|
|
77
|
+
SortUpZA: 'sortUpZA',
|
|
60
78
|
Star: 'star',
|
|
61
79
|
StarHalf: 'starHalf',
|
|
62
80
|
StarHollow: 'starHollow',
|
|
@@ -68,5 +86,6 @@ export const Icon = {
|
|
|
68
86
|
ThumbsUpHollow: 'thumbsUpHollow',
|
|
69
87
|
Trophy: 'trophy',
|
|
70
88
|
Unlock: 'unlock',
|
|
89
|
+
User: 'user',
|
|
71
90
|
XMark: 'xMark',
|
|
72
91
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ItemType = 'post' | 'playlist' | 'level' | 'skin' | 'background' | 'effect' | 'particle' | 'engine' | 'replay' | 'room';
|
|
1
|
+
export type ItemType = 'post' | 'playlist' | 'level' | 'skin' | 'background' | 'effect' | 'particle' | 'engine' | 'replay' | 'room' | 'user';
|
|
@@ -5,6 +5,7 @@ import { ParticleItem } from '../particle/item.js';
|
|
|
5
5
|
import { SkinItem } from '../skin/item.js';
|
|
6
6
|
import { Srl } from '../srl.js';
|
|
7
7
|
import { Tag } from '../tag.js';
|
|
8
|
+
import { UserItem } from '../user/item.js';
|
|
8
9
|
export type UseItem<T> = {
|
|
9
10
|
useDefault: true;
|
|
10
11
|
} | {
|
|
@@ -19,6 +20,7 @@ export type LevelItem = {
|
|
|
19
20
|
title: string;
|
|
20
21
|
artists: string;
|
|
21
22
|
author: string;
|
|
23
|
+
authorUser?: UserItem;
|
|
22
24
|
tags: Tag[];
|
|
23
25
|
engine: EngineItem;
|
|
24
26
|
useSkin: UseItem<SkinItem>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Srl } from '../srl.js';
|
|
2
2
|
import { Tag } from '../tag.js';
|
|
3
|
+
import { UserItem } from '../user/item.js';
|
|
3
4
|
export type ParticleItem = {
|
|
4
5
|
name: string;
|
|
5
6
|
source?: string;
|
|
@@ -7,6 +8,7 @@ export type ParticleItem = {
|
|
|
7
8
|
title: string;
|
|
8
9
|
subtitle: string;
|
|
9
10
|
author: string;
|
|
11
|
+
authorUser?: UserItem;
|
|
10
12
|
tags: Tag[];
|
|
11
13
|
thumbnail: Srl;
|
|
12
14
|
data: Srl;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LevelItem } from '../level/item.js';
|
|
2
2
|
import { Srl } from '../srl.js';
|
|
3
3
|
import { Tag } from '../tag.js';
|
|
4
|
+
import { UserItem } from '../user/item.js';
|
|
4
5
|
export type PlaylistItem = {
|
|
5
6
|
name: string;
|
|
6
7
|
source?: string;
|
|
@@ -8,6 +9,7 @@ export type PlaylistItem = {
|
|
|
8
9
|
title: string;
|
|
9
10
|
subtitle: string;
|
|
10
11
|
author: string;
|
|
12
|
+
authorUser?: UserItem;
|
|
11
13
|
tags: Tag[];
|
|
12
14
|
levels: LevelItem[];
|
|
13
15
|
thumbnail?: Srl;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Srl } from '../srl.js';
|
|
2
2
|
import { Tag } from '../tag.js';
|
|
3
|
+
import { UserItem } from '../user/item.js';
|
|
3
4
|
export type PostItem = {
|
|
4
5
|
name: string;
|
|
5
6
|
source?: string;
|
|
@@ -7,6 +8,7 @@ export type PostItem = {
|
|
|
7
8
|
title: string;
|
|
8
9
|
time: number;
|
|
9
10
|
author: string;
|
|
11
|
+
authorUser?: UserItem;
|
|
10
12
|
tags: Tag[];
|
|
11
13
|
thumbnail?: Srl;
|
|
12
14
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LevelItem } from '../level/item.js';
|
|
2
2
|
import { Srl } from '../srl.js';
|
|
3
3
|
import { Tag } from '../tag.js';
|
|
4
|
+
import { UserItem } from '../user/item.js';
|
|
4
5
|
export type ReplayItem = {
|
|
5
6
|
name: string;
|
|
6
7
|
source?: string;
|
|
@@ -8,6 +9,7 @@ export type ReplayItem = {
|
|
|
8
9
|
title: string;
|
|
9
10
|
subtitle: string;
|
|
10
11
|
author: string;
|
|
12
|
+
authorUser?: UserItem;
|
|
11
13
|
tags: Tag[];
|
|
12
14
|
level: LevelItem;
|
|
13
15
|
data: Srl;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Srl } from '../srl.js';
|
|
2
2
|
import { Tag } from '../tag.js';
|
|
3
|
+
import { UserItem } from '../user/item.js';
|
|
3
4
|
export type RoomItem = {
|
|
4
5
|
name: string;
|
|
5
6
|
title: string;
|
|
6
7
|
subtitle: string;
|
|
7
8
|
master: string;
|
|
9
|
+
masterUser?: UserItem;
|
|
8
10
|
tags: Tag[];
|
|
9
11
|
cover?: Srl;
|
|
10
12
|
bgm?: Srl;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { Icon } from '../icon.js';
|
|
1
2
|
import { Srl } from '../srl.js';
|
|
3
|
+
import { Text } from '../text.js';
|
|
2
4
|
import { ServerConfiguration } from './configuration.js';
|
|
3
5
|
export type ServerInfo = {
|
|
4
6
|
title: string;
|
|
@@ -7,6 +9,18 @@ export type ServerInfo = {
|
|
|
7
9
|
configuration: ServerConfiguration;
|
|
8
10
|
banner?: Srl;
|
|
9
11
|
};
|
|
10
|
-
export type ServerInfoButton =
|
|
11
|
-
|
|
12
|
+
export type ServerInfoButton = ServerInfoAuthenticationButton | ServerInfoItemButton | ServerInfoConfigurationButton;
|
|
13
|
+
export type ServerInfoAuthenticationButton = {
|
|
14
|
+
type: 'authentication';
|
|
15
|
+
};
|
|
16
|
+
export type ServerInfoItemButton = {
|
|
17
|
+
type: 'room' | 'post' | 'playlist' | 'level' | 'replay' | 'skin' | 'background' | 'effect' | 'particle' | 'engine' | 'user' | 'configuration';
|
|
18
|
+
title?: Text | (string & {});
|
|
19
|
+
icon?: Icon | (string & {});
|
|
20
|
+
badgeCount?: number;
|
|
21
|
+
infoType?: string;
|
|
22
|
+
itemName?: string;
|
|
23
|
+
};
|
|
24
|
+
export type ServerInfoConfigurationButton = {
|
|
25
|
+
type: 'configuration';
|
|
12
26
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { UserItem } from '../../../../user/item.js';
|
|
1
2
|
import { ServerForm } from '../../../form.js';
|
|
2
3
|
export type ServerItemCommunityComment = {
|
|
3
4
|
name: string;
|
|
4
5
|
author: string;
|
|
6
|
+
authorUser?: UserItem;
|
|
5
7
|
time: number;
|
|
6
8
|
content: string;
|
|
7
9
|
actions: ServerForm[];
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Text } from '../../../../text.js';
|
|
2
|
+
import { UserItem } from '../../../../user/item.js';
|
|
2
3
|
export type ServerItemLeaderboardRecord = {
|
|
3
4
|
name: string;
|
|
4
5
|
rank: Text | (string & {});
|
|
5
6
|
player: string;
|
|
7
|
+
playerUser?: UserItem;
|
|
6
8
|
value: Text | (string & {});
|
|
7
9
|
};
|
|
@@ -10,8 +10,9 @@ import { ReplayItem } from '../../replay/item.js';
|
|
|
10
10
|
import { RoomItem } from '../../room/item.js';
|
|
11
11
|
import { SkinItem } from '../../skin/item.js';
|
|
12
12
|
import { Text } from '../../text.js';
|
|
13
|
+
import { UserItem } from '../../user/item.js';
|
|
13
14
|
import { ServerForm } from '../form.js';
|
|
14
|
-
export type ServerItemSection = ServerItemSectionTyped<'post', PostItem> | ServerItemSectionTyped<'playlist', PlaylistItem> | ServerItemSectionTyped<'level', LevelItem> | ServerItemSectionTyped<'skin', SkinItem> | ServerItemSectionTyped<'background', BackgroundItem> | ServerItemSectionTyped<'effect', EffectItem> | ServerItemSectionTyped<'particle', ParticleItem> | ServerItemSectionTyped<'engine', EngineItem> | ServerItemSectionTyped<'replay', ReplayItem> | ServerItemSectionTyped<'room', RoomItem>;
|
|
15
|
+
export type ServerItemSection = ServerItemSectionTyped<'post', PostItem> | ServerItemSectionTyped<'playlist', PlaylistItem> | ServerItemSectionTyped<'level', LevelItem> | ServerItemSectionTyped<'skin', SkinItem> | ServerItemSectionTyped<'background', BackgroundItem> | ServerItemSectionTyped<'effect', EffectItem> | ServerItemSectionTyped<'particle', ParticleItem> | ServerItemSectionTyped<'engine', EngineItem> | ServerItemSectionTyped<'replay', ReplayItem> | ServerItemSectionTyped<'room', RoomItem> | ServerItemSectionTyped<'user', UserItem>;
|
|
15
16
|
export type ServerItemSectionTyped<TItemType, TItem> = {
|
|
16
17
|
title: Text | (string & {});
|
|
17
18
|
icon?: Icon | (string & {});
|
|
@@ -75,6 +75,7 @@ export type ServerServerItemOption = {
|
|
|
75
75
|
required: boolean;
|
|
76
76
|
type: 'serverItem';
|
|
77
77
|
itemType: ItemType;
|
|
78
|
+
infoType?: string;
|
|
78
79
|
def: Sil | null;
|
|
79
80
|
allowOtherServers: boolean;
|
|
80
81
|
};
|
|
@@ -85,6 +86,7 @@ export type ServerServerItemsOption = {
|
|
|
85
86
|
required: boolean;
|
|
86
87
|
type: 'serverItems';
|
|
87
88
|
itemType: ItemType;
|
|
89
|
+
infoType?: string;
|
|
88
90
|
def: Sil[];
|
|
89
91
|
allowOtherServers: boolean;
|
|
90
92
|
limit: number;
|
|
@@ -104,4 +106,36 @@ export type ServerFileOption = {
|
|
|
104
106
|
required: boolean;
|
|
105
107
|
type: 'file';
|
|
106
108
|
def: string;
|
|
109
|
+
validation?: ServerFileOptionValidationFile<'file'> | ServerFileOptionValidationImage<'image'> | ServerFileOptionValidationAudio<'audio'> | ServerFileOptionValidationZip<'zip'> | ServerFileOptionValidationImage<'serverBanner'> | ServerFileOptionValidationImage<'postThumbnail'> | ServerFileOptionValidationImage<'playlistThumbnail'> | ServerFileOptionValidationImage<'levelCover'> | ServerFileOptionValidationAudio<'levelBgm'> | ServerFileOptionValidationAudio<'levelPreview'> | ServerFileOptionValidationJson<'levelData'> | ServerFileOptionValidationImage<'skinThumbnail'> | ServerFileOptionValidationJson<'skinData'> | ServerFileOptionValidationImage<'skinTexture'> | ServerFileOptionValidationImage<'backgroundThumbnail'> | ServerFileOptionValidationImage<'backgroundImage'> | ServerFileOptionValidationJson<'backgroundData'> | ServerFileOptionValidationJson<'backgroundConfiguration'> | ServerFileOptionValidationImage<'effectThumbnail'> | ServerFileOptionValidationJson<'effectData'> | ServerFileOptionValidationZip<'effectAudio'> | ServerFileOptionValidationImage<'particleThumbnail'> | ServerFileOptionValidationJson<'particleData'> | ServerFileOptionValidationImage<'particleTexture'> | ServerFileOptionValidationImage<'engineThumbnail'> | ServerFileOptionValidationJson<'enginePlayData'> | ServerFileOptionValidationJson<'engineWatchData'> | ServerFileOptionValidationJson<'enginePreviewData'> | ServerFileOptionValidationJson<'engineTutorialData'> | ServerFileOptionValidationFile<'engineRom'> | ServerFileOptionValidationJson<'engineConfiguration'> | ServerFileOptionValidationJson<'replayData'> | ServerFileOptionValidationJson<'replayConfiguration'> | ServerFileOptionValidationImage<'roomCover'> | ServerFileOptionValidationAudio<'roomBgm'> | ServerFileOptionValidationAudio<'roomPreview'>;
|
|
110
|
+
};
|
|
111
|
+
export type ServerFileOptionValidationFile<T> = {
|
|
112
|
+
type: T;
|
|
113
|
+
minSize?: number;
|
|
114
|
+
maxSize?: number;
|
|
115
|
+
};
|
|
116
|
+
export type ServerFileOptionValidationImage<T> = {
|
|
117
|
+
type: T;
|
|
118
|
+
minSize?: number;
|
|
119
|
+
maxSize?: number;
|
|
120
|
+
minWidth?: number;
|
|
121
|
+
maxWidth?: number;
|
|
122
|
+
minHeight?: number;
|
|
123
|
+
maxHeight?: number;
|
|
124
|
+
};
|
|
125
|
+
export type ServerFileOptionValidationAudio<T> = {
|
|
126
|
+
type: T;
|
|
127
|
+
minSize?: number;
|
|
128
|
+
maxSize?: number;
|
|
129
|
+
minLength?: number;
|
|
130
|
+
maxLength?: number;
|
|
131
|
+
};
|
|
132
|
+
export type ServerFileOptionValidationZip<T> = {
|
|
133
|
+
type: T;
|
|
134
|
+
minSize?: number;
|
|
135
|
+
maxSize?: number;
|
|
136
|
+
};
|
|
137
|
+
export type ServerFileOptionValidationJson<T> = {
|
|
138
|
+
type: T;
|
|
139
|
+
minSize?: number;
|
|
140
|
+
maxSize?: number;
|
|
107
141
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Srl } from '../srl.js';
|
|
2
2
|
import { Tag } from '../tag.js';
|
|
3
|
+
import { UserItem } from '../user/item.js';
|
|
3
4
|
export type SkinItem = {
|
|
4
5
|
name: string;
|
|
5
6
|
source?: string;
|
|
@@ -7,6 +8,7 @@ export type SkinItem = {
|
|
|
7
8
|
title: string;
|
|
8
9
|
subtitle: string;
|
|
9
10
|
author: string;
|
|
11
|
+
authorUser?: UserItem;
|
|
10
12
|
tags: Tag[];
|
|
11
13
|
thumbnail: Srl;
|
|
12
14
|
data: Srl;
|
|
@@ -35,6 +35,8 @@ export declare const Text: {
|
|
|
35
35
|
readonly Engine: "#ENGINE";
|
|
36
36
|
/** en: Replay */
|
|
37
37
|
readonly Replay: "#REPLAY";
|
|
38
|
+
/** en: User */
|
|
39
|
+
readonly User: "#USER";
|
|
38
40
|
/** en: Room */
|
|
39
41
|
readonly Room: "#ROOM";
|
|
40
42
|
/** en: Thumbnail */
|
|
@@ -115,6 +117,10 @@ export declare const Text: {
|
|
|
115
117
|
readonly Good: "#GOOD";
|
|
116
118
|
/** en: Miss */
|
|
117
119
|
readonly Miss: "#MISS";
|
|
120
|
+
/** en: Judgment */
|
|
121
|
+
readonly Judgment: "#JUDGMENT";
|
|
122
|
+
/** en: Accuracy */
|
|
123
|
+
readonly Accuracy: "#ACCURACY";
|
|
118
124
|
/** en: Filter */
|
|
119
125
|
readonly Filter: "#FILTER";
|
|
120
126
|
/** en: Sort */
|
|
@@ -139,6 +145,10 @@ export declare const Text: {
|
|
|
139
145
|
readonly Time: "#TIME";
|
|
140
146
|
/** en: Author */
|
|
141
147
|
readonly Author: "#AUTHOR";
|
|
148
|
+
/** en: Coauthor */
|
|
149
|
+
readonly Coauthor: "#COAUTHOR";
|
|
150
|
+
/** en: Collaborator */
|
|
151
|
+
readonly Collaborator: "#COLLABORATOR";
|
|
142
152
|
/** en: Description */
|
|
143
153
|
readonly Description: "#DESCRIPTION";
|
|
144
154
|
/** en: Genre */
|
|
@@ -169,6 +179,10 @@ export declare const Text: {
|
|
|
169
179
|
readonly Region: "#REGION";
|
|
170
180
|
/** en: Tag */
|
|
171
181
|
readonly Tag: "#TAG";
|
|
182
|
+
/** en: Include Tag */
|
|
183
|
+
readonly IncludeTag: "#INCLUDE_TAG";
|
|
184
|
+
/** en: Exclude Tag */
|
|
185
|
+
readonly ExcludeTag: "#EXCLUDE_TAG";
|
|
172
186
|
/** en: Content */
|
|
173
187
|
readonly Content: "#CONTENT";
|
|
174
188
|
/** en: Comment */
|
|
@@ -181,8 +195,6 @@ export declare const Text: {
|
|
|
181
195
|
readonly Role: "#ROLE";
|
|
182
196
|
/** en: Permission */
|
|
183
197
|
readonly Permission: "#PERMISSION";
|
|
184
|
-
/** en: User */
|
|
185
|
-
readonly User: "#USER";
|
|
186
198
|
/** en: Level Speed */
|
|
187
199
|
readonly Speed: "#SPEED";
|
|
188
200
|
/** en: Mirror Level */
|
|
@@ -197,6 +209,8 @@ export declare const Text: {
|
|
|
197
209
|
readonly JudgmentLoose: "#JUDGMENT_LOOSE";
|
|
198
210
|
/** en: Auto SFX */
|
|
199
211
|
readonly EffectAuto: "#EFFECT_AUTO";
|
|
212
|
+
/** en: Haptic */
|
|
213
|
+
readonly Haptic: "#HAPTIC";
|
|
200
214
|
/** en: Stage */
|
|
201
215
|
readonly Stage: "#STAGE";
|
|
202
216
|
/** en: Stage Position */
|
|
@@ -411,6 +425,20 @@ export declare const Text: {
|
|
|
411
425
|
readonly PreviewMeasure: "#PREVIEW_MEASURE";
|
|
412
426
|
/** en: Preview Combo */
|
|
413
427
|
readonly PreviewCombo: "#PREVIEW_COMBO";
|
|
428
|
+
/** en: UI */
|
|
429
|
+
readonly Ui: "#UI";
|
|
430
|
+
/** en: UI Metric */
|
|
431
|
+
readonly UiMetric: "#UI_METRIC";
|
|
432
|
+
/** en: UI Primary Metric */
|
|
433
|
+
readonly UiPrimaryMetric: "#UI_PRIMARY_METRIC";
|
|
434
|
+
/** en: UI Secondary Metric */
|
|
435
|
+
readonly UiSecondaryMetric: "#UI_SECONDARY_METRIC";
|
|
436
|
+
/** en: UI Judgment */
|
|
437
|
+
readonly UiJudgment: "#UI_JUDGMENT";
|
|
438
|
+
/** en: UI Combo */
|
|
439
|
+
readonly UiCombo: "#UI_Combo";
|
|
440
|
+
/** en: UI Menu */
|
|
441
|
+
readonly UiMenu: "#UI_Menu";
|
|
414
442
|
/** en: ON */
|
|
415
443
|
readonly On: "#ON";
|
|
416
444
|
/** en: OFF */
|
|
@@ -517,6 +545,28 @@ export declare const Text: {
|
|
|
517
545
|
readonly Special: "#SPECIAL";
|
|
518
546
|
/** en: Append */
|
|
519
547
|
readonly Append: "#APPEND";
|
|
548
|
+
/** en: Enter post... */
|
|
549
|
+
readonly PostPlaceholder: "#POST_PLACEHOLDER";
|
|
550
|
+
/** en: Enter playlist... */
|
|
551
|
+
readonly PlaylistPlaceholder: "#PLAYLIST_PLACEHOLDER";
|
|
552
|
+
/** en: Enter level... */
|
|
553
|
+
readonly LevelPlaceholder: "#LEVEL_PLACEHOLDER";
|
|
554
|
+
/** en: Enter skin... */
|
|
555
|
+
readonly SkinPlaceholder: "#SKIN_PLACEHOLDER";
|
|
556
|
+
/** en: Enter background... */
|
|
557
|
+
readonly BackgroundPlaceholder: "#BACKGROUND_PLACEHOLDER";
|
|
558
|
+
/** en: Enter SFX... */
|
|
559
|
+
readonly EffectPlaceholder: "#EFFECT_PLACEHOLDER";
|
|
560
|
+
/** en: Enter particle... */
|
|
561
|
+
readonly ParticlePlaceholder: "#PARTICLE_PLACEHOLDER";
|
|
562
|
+
/** en: Enter engine... */
|
|
563
|
+
readonly EnginePlaceholder: "#ENGINE_PLACEHOLDER";
|
|
564
|
+
/** en: Enter replay... */
|
|
565
|
+
readonly ReplayPlaceholder: "#REPLAY_PLACEHOLDER";
|
|
566
|
+
/** en: Enter user... */
|
|
567
|
+
readonly UserPlaceholder: "#USER_PLACEHOLDER";
|
|
568
|
+
/** en: Enter room... */
|
|
569
|
+
readonly RoomPlaceholder: "#ROOM_PLACEHOLDER";
|
|
520
570
|
/** en: Enter keywords... */
|
|
521
571
|
readonly KeywordsPlaceholder: "#KEYWORDS_PLACEHOLDER";
|
|
522
572
|
/** en: Enter name... */
|
|
@@ -537,6 +587,10 @@ export declare const Text: {
|
|
|
537
587
|
readonly TimePlaceholder: "#TIME_PLACEHOLDER";
|
|
538
588
|
/** en: Enter author... */
|
|
539
589
|
readonly AuthorPlaceholder: "#AUTHOR_PLACEHOLDER";
|
|
590
|
+
/** en: Enter coauthor... */
|
|
591
|
+
readonly CoauthorPlaceholder: "#COAUTHOR_PLACEHOLDER";
|
|
592
|
+
/** en: Enter collaborator... */
|
|
593
|
+
readonly CollaboratorPlaceholder: "#COLLABORATOR_PLACEHOLDER";
|
|
540
594
|
/** en: Enter description... */
|
|
541
595
|
readonly DescriptionPlaceholder: "#DESCRIPTION_PLACEHOLDER";
|
|
542
596
|
/** en: Enter genre... */
|
|
@@ -575,51 +629,49 @@ export declare const Text: {
|
|
|
575
629
|
readonly RolePlaceholder: "#ROLE_PLACEHOLDER";
|
|
576
630
|
/** en: Enter permission... */
|
|
577
631
|
readonly PermissionPlaceholder: "#PERMISSION_PLACEHOLDER";
|
|
578
|
-
/** en: Enter user... */
|
|
579
|
-
readonly UserPlaceholder: "#USER_PLACEHOLDER";
|
|
580
632
|
/** en: {0}% */
|
|
581
633
|
readonly PercentageUnit: "#PERCENTAGE_UNIT";
|
|
582
|
-
/** en: {0}
|
|
634
|
+
/** en: {0}yr */
|
|
583
635
|
readonly YearUnit: "#YEAR_UNIT";
|
|
584
|
-
/** en: {0}
|
|
636
|
+
/** en: {0}mo */
|
|
585
637
|
readonly MonthUnit: "#MONTH_UNIT";
|
|
586
|
-
/** en: {0}
|
|
638
|
+
/** en: {0}d */
|
|
587
639
|
readonly DayUnit: "#DAY_UNIT";
|
|
588
|
-
/** en: {0}
|
|
640
|
+
/** en: {0}h */
|
|
589
641
|
readonly HourUnit: "#HOUR_UNIT";
|
|
590
|
-
/** en: {0}
|
|
642
|
+
/** en: {0}m */
|
|
591
643
|
readonly MinuteUnit: "#MINUTE_UNIT";
|
|
592
|
-
/** en: {0}
|
|
644
|
+
/** en: {0}s */
|
|
593
645
|
readonly SecondUnit: "#SECOND_UNIT";
|
|
594
|
-
/** en: {0}
|
|
646
|
+
/** en: {0}ms */
|
|
595
647
|
readonly MillisecondUnit: "#MILLISECOND_UNIT";
|
|
596
|
-
/** en: {0}
|
|
648
|
+
/** en: {0}yr ago */
|
|
597
649
|
readonly YearPast: "#YEAR_PAST";
|
|
598
|
-
/** en: {0}
|
|
650
|
+
/** en: {0}mo ago */
|
|
599
651
|
readonly MonthPast: "#MONTH_PAST";
|
|
600
|
-
/** en: {0}
|
|
652
|
+
/** en: {0}d ago */
|
|
601
653
|
readonly DayPast: "#DAY_PAST";
|
|
602
|
-
/** en: {0}
|
|
654
|
+
/** en: {0}h ago */
|
|
603
655
|
readonly HourPast: "#HOUR_PAST";
|
|
604
|
-
/** en: {0}
|
|
656
|
+
/** en: {0}m ago */
|
|
605
657
|
readonly MinutePast: "#MINUTE_PAST";
|
|
606
|
-
/** en: {0}
|
|
658
|
+
/** en: {0}s ago */
|
|
607
659
|
readonly SecondPast: "#SECOND_PAST";
|
|
608
|
-
/** en: {0}
|
|
660
|
+
/** en: {0}ms ago */
|
|
609
661
|
readonly MillisecondPast: "#MILLISECOND_PAST";
|
|
610
|
-
/** en: In {0}
|
|
662
|
+
/** en: In {0}yr */
|
|
611
663
|
readonly YearFuture: "#YEAR_FUTURE";
|
|
612
|
-
/** en: In {0}
|
|
664
|
+
/** en: In {0}mo */
|
|
613
665
|
readonly MonthFuture: "#MONTH_FUTURE";
|
|
614
|
-
/** en: In {0}
|
|
666
|
+
/** en: In {0}d */
|
|
615
667
|
readonly DayFuture: "#DAY_FUTURE";
|
|
616
|
-
/** en: In {0}
|
|
668
|
+
/** en: In {0}h */
|
|
617
669
|
readonly HourFuture: "#HOUR_FUTURE";
|
|
618
|
-
/** en: In {0}
|
|
670
|
+
/** en: In {0}m */
|
|
619
671
|
readonly MinuteFuture: "#MINUTE_FUTURE";
|
|
620
|
-
/** en: In {0}
|
|
672
|
+
/** en: In {0}s */
|
|
621
673
|
readonly SecondFuture: "#SECOND_FUTURE";
|
|
622
|
-
/** en: In {0}
|
|
674
|
+
/** en: In {0}ms */
|
|
623
675
|
readonly MillisecondFuture: "#MILLISECOND_FUTURE";
|
|
624
676
|
/** en: Tap */
|
|
625
677
|
readonly Tap: "#TAP";
|
|
@@ -661,6 +713,8 @@ export declare const Text: {
|
|
|
661
713
|
readonly Featured: "#FEATURED";
|
|
662
714
|
/** en: Competitive */
|
|
663
715
|
readonly Competitive: "#COMPETITIVE";
|
|
716
|
+
/** en: Tournament */
|
|
717
|
+
readonly Tournament: "#TOURNAMENT";
|
|
664
718
|
/** en: Holiday */
|
|
665
719
|
readonly Holiday: "#HOLIDAY";
|
|
666
720
|
/** en: Limited */
|
|
@@ -747,10 +801,26 @@ export declare const Text: {
|
|
|
747
801
|
readonly ShortVersion: "#SHORT_VERSION";
|
|
748
802
|
/** en: Long Version */
|
|
749
803
|
readonly LongVersion: "#LONG_VERSION";
|
|
804
|
+
/** en: Cut Version */
|
|
805
|
+
readonly CutVersion: "#CUT_VERSION";
|
|
750
806
|
/** en: Full Version */
|
|
751
807
|
readonly FullVersion: "#FULL_VERSION";
|
|
808
|
+
/** en: Extended Version */
|
|
809
|
+
readonly ExtendedVersion: "#EXTENDED_VERSION";
|
|
752
810
|
/** en: Live Version */
|
|
753
811
|
readonly LiveVersion: "#LIVE_VERSION";
|
|
812
|
+
/** en: Explicit */
|
|
813
|
+
readonly Explicit: "#EXPLICIT";
|
|
814
|
+
/** en: Multi Finger */
|
|
815
|
+
readonly MultiFinger: "#MULTI_FINGER";
|
|
816
|
+
/** en: Full Hand */
|
|
817
|
+
readonly FullHand: "#FULL_HAND";
|
|
818
|
+
/** en: Cross Hand */
|
|
819
|
+
readonly CrossHand: "#CROSS_HAND";
|
|
820
|
+
/** en: Gimmick */
|
|
821
|
+
readonly Gimmick: "#GIMMICK";
|
|
822
|
+
/** en: Collaboration */
|
|
823
|
+
readonly Collaboration: "#COLLABORATION";
|
|
754
824
|
/** en: Report */
|
|
755
825
|
readonly Report: "#REPORT";
|
|
756
826
|
/** en: Reason */
|
package/dist/common/core/text.js
CHANGED
|
@@ -35,6 +35,8 @@ export const Text = {
|
|
|
35
35
|
Engine: '#ENGINE',
|
|
36
36
|
/** en: Replay */
|
|
37
37
|
Replay: '#REPLAY',
|
|
38
|
+
/** en: User */
|
|
39
|
+
User: '#USER',
|
|
38
40
|
/** en: Room */
|
|
39
41
|
Room: '#ROOM',
|
|
40
42
|
/** en: Thumbnail */
|
|
@@ -115,6 +117,10 @@ export const Text = {
|
|
|
115
117
|
Good: '#GOOD',
|
|
116
118
|
/** en: Miss */
|
|
117
119
|
Miss: '#MISS',
|
|
120
|
+
/** en: Judgment */
|
|
121
|
+
Judgment: '#JUDGMENT',
|
|
122
|
+
/** en: Accuracy */
|
|
123
|
+
Accuracy: '#ACCURACY',
|
|
118
124
|
/** en: Filter */
|
|
119
125
|
Filter: '#FILTER',
|
|
120
126
|
/** en: Sort */
|
|
@@ -139,6 +145,10 @@ export const Text = {
|
|
|
139
145
|
Time: '#TIME',
|
|
140
146
|
/** en: Author */
|
|
141
147
|
Author: '#AUTHOR',
|
|
148
|
+
/** en: Coauthor */
|
|
149
|
+
Coauthor: '#COAUTHOR',
|
|
150
|
+
/** en: Collaborator */
|
|
151
|
+
Collaborator: '#COLLABORATOR',
|
|
142
152
|
/** en: Description */
|
|
143
153
|
Description: '#DESCRIPTION',
|
|
144
154
|
/** en: Genre */
|
|
@@ -169,6 +179,10 @@ export const Text = {
|
|
|
169
179
|
Region: '#REGION',
|
|
170
180
|
/** en: Tag */
|
|
171
181
|
Tag: '#TAG',
|
|
182
|
+
/** en: Include Tag */
|
|
183
|
+
IncludeTag: '#INCLUDE_TAG',
|
|
184
|
+
/** en: Exclude Tag */
|
|
185
|
+
ExcludeTag: '#EXCLUDE_TAG',
|
|
172
186
|
/** en: Content */
|
|
173
187
|
Content: '#CONTENT',
|
|
174
188
|
/** en: Comment */
|
|
@@ -181,8 +195,6 @@ export const Text = {
|
|
|
181
195
|
Role: '#ROLE',
|
|
182
196
|
/** en: Permission */
|
|
183
197
|
Permission: '#PERMISSION',
|
|
184
|
-
/** en: User */
|
|
185
|
-
User: '#USER',
|
|
186
198
|
/** en: Level Speed */
|
|
187
199
|
Speed: '#SPEED',
|
|
188
200
|
/** en: Mirror Level */
|
|
@@ -197,6 +209,8 @@ export const Text = {
|
|
|
197
209
|
JudgmentLoose: '#JUDGMENT_LOOSE',
|
|
198
210
|
/** en: Auto SFX */
|
|
199
211
|
EffectAuto: '#EFFECT_AUTO',
|
|
212
|
+
/** en: Haptic */
|
|
213
|
+
Haptic: '#HAPTIC',
|
|
200
214
|
/** en: Stage */
|
|
201
215
|
Stage: '#STAGE',
|
|
202
216
|
/** en: Stage Position */
|
|
@@ -411,6 +425,20 @@ export const Text = {
|
|
|
411
425
|
PreviewMeasure: '#PREVIEW_MEASURE',
|
|
412
426
|
/** en: Preview Combo */
|
|
413
427
|
PreviewCombo: '#PREVIEW_COMBO',
|
|
428
|
+
/** en: UI */
|
|
429
|
+
Ui: '#UI',
|
|
430
|
+
/** en: UI Metric */
|
|
431
|
+
UiMetric: '#UI_METRIC',
|
|
432
|
+
/** en: UI Primary Metric */
|
|
433
|
+
UiPrimaryMetric: '#UI_PRIMARY_METRIC',
|
|
434
|
+
/** en: UI Secondary Metric */
|
|
435
|
+
UiSecondaryMetric: '#UI_SECONDARY_METRIC',
|
|
436
|
+
/** en: UI Judgment */
|
|
437
|
+
UiJudgment: '#UI_JUDGMENT',
|
|
438
|
+
/** en: UI Combo */
|
|
439
|
+
UiCombo: '#UI_Combo',
|
|
440
|
+
/** en: UI Menu */
|
|
441
|
+
UiMenu: '#UI_Menu',
|
|
414
442
|
/** en: ON */
|
|
415
443
|
On: '#ON',
|
|
416
444
|
/** en: OFF */
|
|
@@ -517,6 +545,28 @@ export const Text = {
|
|
|
517
545
|
Special: '#SPECIAL',
|
|
518
546
|
/** en: Append */
|
|
519
547
|
Append: '#APPEND',
|
|
548
|
+
/** en: Enter post... */
|
|
549
|
+
PostPlaceholder: '#POST_PLACEHOLDER',
|
|
550
|
+
/** en: Enter playlist... */
|
|
551
|
+
PlaylistPlaceholder: '#PLAYLIST_PLACEHOLDER',
|
|
552
|
+
/** en: Enter level... */
|
|
553
|
+
LevelPlaceholder: '#LEVEL_PLACEHOLDER',
|
|
554
|
+
/** en: Enter skin... */
|
|
555
|
+
SkinPlaceholder: '#SKIN_PLACEHOLDER',
|
|
556
|
+
/** en: Enter background... */
|
|
557
|
+
BackgroundPlaceholder: '#BACKGROUND_PLACEHOLDER',
|
|
558
|
+
/** en: Enter SFX... */
|
|
559
|
+
EffectPlaceholder: '#EFFECT_PLACEHOLDER',
|
|
560
|
+
/** en: Enter particle... */
|
|
561
|
+
ParticlePlaceholder: '#PARTICLE_PLACEHOLDER',
|
|
562
|
+
/** en: Enter engine... */
|
|
563
|
+
EnginePlaceholder: '#ENGINE_PLACEHOLDER',
|
|
564
|
+
/** en: Enter replay... */
|
|
565
|
+
ReplayPlaceholder: '#REPLAY_PLACEHOLDER',
|
|
566
|
+
/** en: Enter user... */
|
|
567
|
+
UserPlaceholder: '#USER_PLACEHOLDER',
|
|
568
|
+
/** en: Enter room... */
|
|
569
|
+
RoomPlaceholder: '#ROOM_PLACEHOLDER',
|
|
520
570
|
/** en: Enter keywords... */
|
|
521
571
|
KeywordsPlaceholder: '#KEYWORDS_PLACEHOLDER',
|
|
522
572
|
/** en: Enter name... */
|
|
@@ -537,6 +587,10 @@ export const Text = {
|
|
|
537
587
|
TimePlaceholder: '#TIME_PLACEHOLDER',
|
|
538
588
|
/** en: Enter author... */
|
|
539
589
|
AuthorPlaceholder: '#AUTHOR_PLACEHOLDER',
|
|
590
|
+
/** en: Enter coauthor... */
|
|
591
|
+
CoauthorPlaceholder: '#COAUTHOR_PLACEHOLDER',
|
|
592
|
+
/** en: Enter collaborator... */
|
|
593
|
+
CollaboratorPlaceholder: '#COLLABORATOR_PLACEHOLDER',
|
|
540
594
|
/** en: Enter description... */
|
|
541
595
|
DescriptionPlaceholder: '#DESCRIPTION_PLACEHOLDER',
|
|
542
596
|
/** en: Enter genre... */
|
|
@@ -575,51 +629,49 @@ export const Text = {
|
|
|
575
629
|
RolePlaceholder: '#ROLE_PLACEHOLDER',
|
|
576
630
|
/** en: Enter permission... */
|
|
577
631
|
PermissionPlaceholder: '#PERMISSION_PLACEHOLDER',
|
|
578
|
-
/** en: Enter user... */
|
|
579
|
-
UserPlaceholder: '#USER_PLACEHOLDER',
|
|
580
632
|
/** en: {0}% */
|
|
581
633
|
PercentageUnit: '#PERCENTAGE_UNIT',
|
|
582
|
-
/** en: {0}
|
|
634
|
+
/** en: {0}yr */
|
|
583
635
|
YearUnit: '#YEAR_UNIT',
|
|
584
|
-
/** en: {0}
|
|
636
|
+
/** en: {0}mo */
|
|
585
637
|
MonthUnit: '#MONTH_UNIT',
|
|
586
|
-
/** en: {0}
|
|
638
|
+
/** en: {0}d */
|
|
587
639
|
DayUnit: '#DAY_UNIT',
|
|
588
|
-
/** en: {0}
|
|
640
|
+
/** en: {0}h */
|
|
589
641
|
HourUnit: '#HOUR_UNIT',
|
|
590
|
-
/** en: {0}
|
|
642
|
+
/** en: {0}m */
|
|
591
643
|
MinuteUnit: '#MINUTE_UNIT',
|
|
592
|
-
/** en: {0}
|
|
644
|
+
/** en: {0}s */
|
|
593
645
|
SecondUnit: '#SECOND_UNIT',
|
|
594
|
-
/** en: {0}
|
|
646
|
+
/** en: {0}ms */
|
|
595
647
|
MillisecondUnit: '#MILLISECOND_UNIT',
|
|
596
|
-
/** en: {0}
|
|
648
|
+
/** en: {0}yr ago */
|
|
597
649
|
YearPast: '#YEAR_PAST',
|
|
598
|
-
/** en: {0}
|
|
650
|
+
/** en: {0}mo ago */
|
|
599
651
|
MonthPast: '#MONTH_PAST',
|
|
600
|
-
/** en: {0}
|
|
652
|
+
/** en: {0}d ago */
|
|
601
653
|
DayPast: '#DAY_PAST',
|
|
602
|
-
/** en: {0}
|
|
654
|
+
/** en: {0}h ago */
|
|
603
655
|
HourPast: '#HOUR_PAST',
|
|
604
|
-
/** en: {0}
|
|
656
|
+
/** en: {0}m ago */
|
|
605
657
|
MinutePast: '#MINUTE_PAST',
|
|
606
|
-
/** en: {0}
|
|
658
|
+
/** en: {0}s ago */
|
|
607
659
|
SecondPast: '#SECOND_PAST',
|
|
608
|
-
/** en: {0}
|
|
660
|
+
/** en: {0}ms ago */
|
|
609
661
|
MillisecondPast: '#MILLISECOND_PAST',
|
|
610
|
-
/** en: In {0}
|
|
662
|
+
/** en: In {0}yr */
|
|
611
663
|
YearFuture: '#YEAR_FUTURE',
|
|
612
|
-
/** en: In {0}
|
|
664
|
+
/** en: In {0}mo */
|
|
613
665
|
MonthFuture: '#MONTH_FUTURE',
|
|
614
|
-
/** en: In {0}
|
|
666
|
+
/** en: In {0}d */
|
|
615
667
|
DayFuture: '#DAY_FUTURE',
|
|
616
|
-
/** en: In {0}
|
|
668
|
+
/** en: In {0}h */
|
|
617
669
|
HourFuture: '#HOUR_FUTURE',
|
|
618
|
-
/** en: In {0}
|
|
670
|
+
/** en: In {0}m */
|
|
619
671
|
MinuteFuture: '#MINUTE_FUTURE',
|
|
620
|
-
/** en: In {0}
|
|
672
|
+
/** en: In {0}s */
|
|
621
673
|
SecondFuture: '#SECOND_FUTURE',
|
|
622
|
-
/** en: In {0}
|
|
674
|
+
/** en: In {0}ms */
|
|
623
675
|
MillisecondFuture: '#MILLISECOND_FUTURE',
|
|
624
676
|
/** en: Tap */
|
|
625
677
|
Tap: '#TAP',
|
|
@@ -661,6 +713,8 @@ export const Text = {
|
|
|
661
713
|
Featured: '#FEATURED',
|
|
662
714
|
/** en: Competitive */
|
|
663
715
|
Competitive: '#COMPETITIVE',
|
|
716
|
+
/** en: Tournament */
|
|
717
|
+
Tournament: '#TOURNAMENT',
|
|
664
718
|
/** en: Holiday */
|
|
665
719
|
Holiday: '#HOLIDAY',
|
|
666
720
|
/** en: Limited */
|
|
@@ -747,10 +801,26 @@ export const Text = {
|
|
|
747
801
|
ShortVersion: '#SHORT_VERSION',
|
|
748
802
|
/** en: Long Version */
|
|
749
803
|
LongVersion: '#LONG_VERSION',
|
|
804
|
+
/** en: Cut Version */
|
|
805
|
+
CutVersion: '#CUT_VERSION',
|
|
750
806
|
/** en: Full Version */
|
|
751
807
|
FullVersion: '#FULL_VERSION',
|
|
808
|
+
/** en: Extended Version */
|
|
809
|
+
ExtendedVersion: '#EXTENDED_VERSION',
|
|
752
810
|
/** en: Live Version */
|
|
753
811
|
LiveVersion: '#LIVE_VERSION',
|
|
812
|
+
/** en: Explicit */
|
|
813
|
+
Explicit: '#EXPLICIT',
|
|
814
|
+
/** en: Multi Finger */
|
|
815
|
+
MultiFinger: '#MULTI_FINGER',
|
|
816
|
+
/** en: Full Hand */
|
|
817
|
+
FullHand: '#FULL_HAND',
|
|
818
|
+
/** en: Cross Hand */
|
|
819
|
+
CrossHand: '#CROSS_HAND',
|
|
820
|
+
/** en: Gimmick */
|
|
821
|
+
Gimmick: '#GIMMICK',
|
|
822
|
+
/** en: Collaboration */
|
|
823
|
+
Collaboration: '#COLLABORATION',
|
|
754
824
|
/** en: Report */
|
|
755
825
|
Report: '#REPORT',
|
|
756
826
|
/** en: Reason */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UserItem } from './item.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/common/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const compress: <T>(data: T) => Promise<Buffer
|
|
2
|
-
export declare const compressSync: <T>(data: T) => Buffer
|
|
1
|
+
export declare const compress: <T>(data: T) => Promise<Buffer<ArrayBuffer>>;
|
|
2
|
+
export declare const compressSync: <T>(data: T) => Buffer<ArrayBuffer>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
import { InputType } from 'node:zlib';
|
|
2
|
+
export declare const decompress: <T>(data: InputType) => Promise<T>;
|
|
3
|
+
export declare const decompressSync: <T>(data: InputType) => T;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { BinaryLike } from 'node:crypto';
|
|
2
|
+
export declare const hash: (buffer: BinaryLike) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sonolus/core",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.15.0",
|
|
4
4
|
"description": "Core library for Sonolus",
|
|
5
5
|
"author": "NonSpicyBurrito",
|
|
6
6
|
"repository": "github:Sonolus/sonolus-core",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"build": "tsc -p ."
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@eslint/js": "^9.
|
|
29
|
-
"@types/node": "^22.
|
|
30
|
-
"eslint": "^9.
|
|
28
|
+
"@eslint/js": "^9.39.2",
|
|
29
|
+
"@types/node": "^22.19.7",
|
|
30
|
+
"eslint": "^9.39.2",
|
|
31
31
|
"eslint-config-prettier": "^10.1.8",
|
|
32
|
-
"prettier": "^3.
|
|
33
|
-
"prettier-plugin-organize-imports": "^4.
|
|
34
|
-
"typescript": "~5.
|
|
35
|
-
"typescript-eslint": "^8.
|
|
32
|
+
"prettier": "^3.8.1",
|
|
33
|
+
"prettier-plugin-organize-imports": "^4.3.0",
|
|
34
|
+
"typescript": "~5.9.3",
|
|
35
|
+
"typescript-eslint": "^8.53.1"
|
|
36
36
|
}
|
|
37
37
|
}
|