@sonolus/core 7.7.1 → 7.8.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 +5 -5
- package/dist/common/core/effect/item.d.ts +4 -4
- package/dist/common/core/engine/item.d.ts +8 -8
- package/dist/common/core/engine/watchData/watchData.d.ts +1 -1
- package/dist/common/core/icon.d.ts +22 -0
- package/dist/common/core/icon.js +22 -0
- package/dist/common/core/index.d.ts +2 -1
- package/dist/common/core/index.js +0 -1
- package/dist/common/core/level/item.d.ts +5 -5
- package/dist/common/core/package/info.d.ts +1 -1
- package/dist/common/core/particle/item.d.ts +4 -4
- package/dist/common/core/playlist/item.d.ts +2 -2
- package/dist/common/core/post/item.d.ts +2 -2
- package/dist/common/core/replay/item.d.ts +3 -3
- package/dist/common/core/room/item.d.ts +4 -4
- package/dist/common/core/server/authenticate.d.ts +4 -4
- package/dist/common/core/server/configuration.d.ts +4 -0
- package/dist/common/core/server/form.d.ts +2 -0
- package/dist/common/core/server/index.d.ts +3 -2
- package/dist/common/core/server/info.d.ts +5 -3
- package/dist/common/core/server/items/community/comment/comment.d.ts +1 -1
- package/dist/common/core/server/items/community/comment/index.d.ts +4 -2
- package/dist/common/core/server/items/community/comment/list.d.ts +3 -3
- package/dist/common/core/server/items/community/comment/submit.d.ts +9 -0
- package/dist/common/core/server/items/community/comment/upload.d.ts +1 -0
- package/dist/common/core/server/items/community/index.d.ts +3 -2
- package/dist/common/core/server/items/community/info.d.ts +3 -3
- package/dist/common/core/server/items/community/submit.d.ts +4 -2
- package/dist/common/core/server/items/community/upload.d.ts +1 -0
- package/dist/common/core/server/items/community/upload.js +2 -0
- package/dist/common/core/server/items/create.d.ts +2 -2
- package/dist/common/core/server/items/details.d.ts +8 -6
- package/dist/common/core/server/items/index.d.ts +8 -6
- package/dist/common/core/server/items/info.d.ts +5 -5
- package/dist/common/core/server/items/leaderboard/details.d.ts +3 -3
- package/dist/common/core/server/items/leaderboard/index.d.ts +2 -2
- package/dist/common/core/server/items/leaderboard/leaderboard.d.ts +2 -1
- package/dist/common/core/server/items/leaderboard/record/details.d.ts +1 -1
- package/dist/common/core/server/items/leaderboard/record/index.d.ts +3 -3
- package/dist/common/core/server/items/leaderboard/record/list.d.ts +3 -3
- package/dist/common/core/server/items/leaderboard/record/record.d.ts +1 -1
- package/dist/common/core/server/items/list.d.ts +1 -1
- package/dist/common/core/server/items/section.d.ts +17 -2
- package/dist/common/core/server/items/submit-action.d.ts +9 -0
- package/dist/common/core/server/items/submit-action.js +2 -0
- package/dist/common/core/server/items/upload-action.d.ts +1 -0
- package/dist/common/core/server/items/upload-action.js +2 -0
- package/dist/common/core/server/items/upload.d.ts +1 -1
- package/dist/common/core/server/multiplayer/chat-message.d.ts +3 -2
- package/dist/common/core/server/multiplayer/commands/add-suggestion-command.d.ts +2 -2
- package/dist/common/core/server/multiplayer/commands/remove-user-command.d.ts +2 -1
- package/dist/common/core/server/multiplayer/commands/report-user-command.d.ts +2 -1
- package/dist/common/core/server/multiplayer/commands/update-lead-command.d.ts +2 -1
- package/dist/common/core/server/multiplayer/commands/update-level-command.d.ts +2 -2
- package/dist/common/core/server/multiplayer/commands/update-master-command.d.ts +2 -1
- package/dist/common/core/server/multiplayer/create-room.d.ts +2 -2
- package/dist/common/core/server/multiplayer/events/update-event.d.ts +6 -5
- package/dist/common/core/server/multiplayer/events/update-lead-event.d.ts +2 -1
- package/dist/common/core/server/multiplayer/events/update-level-event.d.ts +2 -2
- package/dist/common/core/server/multiplayer/events/update-master-event.d.ts +2 -1
- package/dist/common/core/server/multiplayer/events/update-scoreboard-description-event.d.ts +1 -1
- package/dist/common/core/server/multiplayer/index.d.ts +2 -3
- package/dist/common/core/server/multiplayer/join-room.d.ts +4 -4
- package/dist/common/core/server/multiplayer/result-entry.d.ts +2 -1
- package/dist/common/core/server/multiplayer/score-entry.d.ts +2 -1
- package/dist/common/core/server/multiplayer/suggestion.d.ts +4 -3
- package/dist/common/core/server/multiplayer/user-status-entry.d.ts +2 -1
- package/dist/common/core/server/option.d.ts +32 -14
- package/dist/common/core/service/authenticate-external.d.ts +3 -3
- package/dist/common/core/service/index.d.ts +2 -2
- package/dist/common/core/service/user-profile.d.ts +7 -2
- package/dist/common/core/{server/multiplayer/level-locator.d.ts → sil.d.ts} +1 -1
- package/dist/common/core/sil.js +2 -0
- package/dist/common/core/skin/item.d.ts +4 -4
- package/dist/common/core/srl.d.ts +4 -0
- package/dist/common/core/srl.js +2 -0
- package/dist/common/core/text.d.ts +79 -3
- package/dist/common/core/text.js +79 -3
- package/dist/common/database/background/item.d.ts +6 -6
- package/dist/common/database/effect/item.d.ts +5 -5
- package/dist/common/database/engine/item.d.ts +9 -9
- package/dist/common/database/level/item.d.ts +6 -6
- package/dist/common/database/particle/item.d.ts +5 -5
- package/dist/common/database/playlist/item.d.ts +3 -3
- package/dist/common/database/post/item.d.ts +3 -3
- package/dist/common/database/replay/item.d.ts +4 -4
- package/dist/common/database/server/server-info.d.ts +2 -2
- package/dist/common/database/skin/item.d.ts +5 -5
- package/dist/common/version.js +2 -2
- package/dist/node/core/resource/compress.d.ts +0 -1
- package/dist/node/core/resource/decompress.d.ts +0 -1
- package/dist/node/core/resource/hash.d.ts +0 -1
- package/dist/node/core/service/keys.d.ts +0 -1
- package/package.json +6 -6
- package/dist/common/core/resource/index.d.ts +0 -1
- package/dist/common/core/resource/srl.d.ts +0 -4
- /package/dist/common/core/{resource/index.js → server/configuration.js} +0 -0
- /package/dist/common/core/{resource/srl.js → server/items/community/comment/submit.js} +0 -0
- /package/dist/common/core/server/{multiplayer/level-locator.js → items/community/comment/upload.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Srl } from '../srl';
|
|
2
2
|
import { Tag } from '../tag';
|
|
3
3
|
export type BackgroundItem = {
|
|
4
4
|
name: string;
|
|
@@ -8,8 +8,8 @@ export type BackgroundItem = {
|
|
|
8
8
|
subtitle: string;
|
|
9
9
|
author: string;
|
|
10
10
|
tags: Tag[];
|
|
11
|
-
thumbnail:
|
|
12
|
-
data:
|
|
13
|
-
image:
|
|
14
|
-
configuration:
|
|
11
|
+
thumbnail: Srl;
|
|
12
|
+
data: Srl;
|
|
13
|
+
image: Srl;
|
|
14
|
+
configuration: Srl;
|
|
15
15
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Srl } from '../srl';
|
|
2
2
|
import { Tag } from '../tag';
|
|
3
3
|
export type EffectItem = {
|
|
4
4
|
name: string;
|
|
@@ -8,7 +8,7 @@ export type EffectItem = {
|
|
|
8
8
|
subtitle: string;
|
|
9
9
|
author: string;
|
|
10
10
|
tags: Tag[];
|
|
11
|
-
thumbnail:
|
|
12
|
-
data:
|
|
13
|
-
audio:
|
|
11
|
+
thumbnail: Srl;
|
|
12
|
+
data: Srl;
|
|
13
|
+
audio: Srl;
|
|
14
14
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BackgroundItem } from '../background/item';
|
|
2
2
|
import { EffectItem } from '../effect/item';
|
|
3
3
|
import { ParticleItem } from '../particle/item';
|
|
4
|
-
import { SRL } from '../resource/srl';
|
|
5
4
|
import { SkinItem } from '../skin/item';
|
|
5
|
+
import { Srl } from '../srl';
|
|
6
6
|
import { Tag } from '../tag';
|
|
7
7
|
export type EngineItem = {
|
|
8
8
|
name: string;
|
|
@@ -16,11 +16,11 @@ export type EngineItem = {
|
|
|
16
16
|
background: BackgroundItem;
|
|
17
17
|
effect: EffectItem;
|
|
18
18
|
particle: ParticleItem;
|
|
19
|
-
thumbnail:
|
|
20
|
-
playData:
|
|
21
|
-
watchData:
|
|
22
|
-
previewData:
|
|
23
|
-
tutorialData:
|
|
24
|
-
rom?:
|
|
25
|
-
configuration:
|
|
19
|
+
thumbnail: Srl;
|
|
20
|
+
playData: Srl;
|
|
21
|
+
watchData: Srl;
|
|
22
|
+
previewData: Srl;
|
|
23
|
+
tutorialData: Srl;
|
|
24
|
+
rom?: Srl;
|
|
25
|
+
configuration: Srl;
|
|
26
26
|
};
|
|
@@ -13,30 +13,52 @@ export declare const Icon: {
|
|
|
13
13
|
readonly ArrowRight: "arrowRight";
|
|
14
14
|
readonly ArrowUp: "arrowUp";
|
|
15
15
|
readonly Award: "award";
|
|
16
|
+
readonly Background: "background";
|
|
17
|
+
readonly Bell: "bell";
|
|
18
|
+
readonly BellSlash: "bellSlash";
|
|
16
19
|
readonly Bookmark: "bookmark";
|
|
17
20
|
readonly BookmarkHollow: "bookmarkHollow";
|
|
18
21
|
readonly Check: "check";
|
|
22
|
+
readonly Clock: "clock";
|
|
19
23
|
readonly Comment: "comment";
|
|
20
24
|
readonly Crown: "crown";
|
|
21
25
|
readonly Delete: "delete";
|
|
22
26
|
readonly Edit: "edit";
|
|
27
|
+
readonly Effect: "effect";
|
|
28
|
+
readonly Engine: "engine";
|
|
29
|
+
readonly Envelope: "envelope";
|
|
30
|
+
readonly EnvelopeOpen: "envelopeOpen";
|
|
31
|
+
readonly Globe: "globe";
|
|
23
32
|
readonly Heart: "heart";
|
|
24
33
|
readonly HeartHollow: "heartHollow";
|
|
25
34
|
readonly Hide: "hide";
|
|
35
|
+
readonly Level: "level";
|
|
26
36
|
readonly Lock: "lock";
|
|
27
37
|
readonly Medal: "medal";
|
|
38
|
+
readonly Message: "message";
|
|
28
39
|
readonly Minus: "minus";
|
|
29
40
|
readonly Options: "options";
|
|
41
|
+
readonly Particle: "particle";
|
|
42
|
+
readonly Pin: "pin";
|
|
43
|
+
readonly Player: "player";
|
|
44
|
+
readonly Playlist: "playlist";
|
|
30
45
|
readonly Plus: "plus";
|
|
46
|
+
readonly Post: "post";
|
|
31
47
|
readonly Ranking: "ranking";
|
|
48
|
+
readonly Replay: "replay";
|
|
32
49
|
readonly Reply: "reply";
|
|
50
|
+
readonly Restore: "restore";
|
|
51
|
+
readonly Room: "room";
|
|
33
52
|
readonly Search: "search";
|
|
34
53
|
readonly Settings: "settings";
|
|
35
54
|
readonly Show: "show";
|
|
36
55
|
readonly Shuffle: "shuffle";
|
|
56
|
+
readonly Skin: "skin";
|
|
37
57
|
readonly Star: "star";
|
|
38
58
|
readonly StarHalf: "starHalf";
|
|
39
59
|
readonly StarHollow: "starHollow";
|
|
60
|
+
readonly Stopwatch: "stopwatch";
|
|
61
|
+
readonly Tag: "tag";
|
|
40
62
|
readonly ThumbsDown: "thumbsDown";
|
|
41
63
|
readonly ThumbsDownHollow: "thumbsDownHollow";
|
|
42
64
|
readonly ThumbsUp: "thumbsUp";
|
package/dist/common/core/icon.js
CHANGED
|
@@ -16,30 +16,52 @@ exports.Icon = {
|
|
|
16
16
|
ArrowRight: 'arrowRight',
|
|
17
17
|
ArrowUp: 'arrowUp',
|
|
18
18
|
Award: 'award',
|
|
19
|
+
Background: 'background',
|
|
20
|
+
Bell: 'bell',
|
|
21
|
+
BellSlash: 'bellSlash',
|
|
19
22
|
Bookmark: 'bookmark',
|
|
20
23
|
BookmarkHollow: 'bookmarkHollow',
|
|
21
24
|
Check: 'check',
|
|
25
|
+
Clock: 'clock',
|
|
22
26
|
Comment: 'comment',
|
|
23
27
|
Crown: 'crown',
|
|
24
28
|
Delete: 'delete',
|
|
25
29
|
Edit: 'edit',
|
|
30
|
+
Effect: 'effect',
|
|
31
|
+
Engine: 'engine',
|
|
32
|
+
Envelope: 'envelope',
|
|
33
|
+
EnvelopeOpen: 'envelopeOpen',
|
|
34
|
+
Globe: 'globe',
|
|
26
35
|
Heart: 'heart',
|
|
27
36
|
HeartHollow: 'heartHollow',
|
|
28
37
|
Hide: 'hide',
|
|
38
|
+
Level: 'level',
|
|
29
39
|
Lock: 'lock',
|
|
30
40
|
Medal: 'medal',
|
|
41
|
+
Message: 'message',
|
|
31
42
|
Minus: 'minus',
|
|
32
43
|
Options: 'options',
|
|
44
|
+
Particle: 'particle',
|
|
45
|
+
Pin: 'pin',
|
|
46
|
+
Player: 'player',
|
|
47
|
+
Playlist: 'playlist',
|
|
33
48
|
Plus: 'plus',
|
|
49
|
+
Post: 'post',
|
|
34
50
|
Ranking: 'ranking',
|
|
51
|
+
Replay: 'replay',
|
|
35
52
|
Reply: 'reply',
|
|
53
|
+
Restore: 'restore',
|
|
54
|
+
Room: 'room',
|
|
36
55
|
Search: 'search',
|
|
37
56
|
Settings: 'settings',
|
|
38
57
|
Show: 'show',
|
|
39
58
|
Shuffle: 'shuffle',
|
|
59
|
+
Skin: 'skin',
|
|
40
60
|
Star: 'star',
|
|
41
61
|
StarHalf: 'starHalf',
|
|
42
62
|
StarHollow: 'starHollow',
|
|
63
|
+
Stopwatch: 'stopwatch',
|
|
64
|
+
Tag: 'tag',
|
|
43
65
|
ThumbsDown: 'thumbsDown',
|
|
44
66
|
ThumbsDownHollow: 'thumbsDownHollow',
|
|
45
67
|
ThumbsUp: 'thumbsUp',
|
|
@@ -12,11 +12,12 @@ export * from './particle';
|
|
|
12
12
|
export * from './playlist';
|
|
13
13
|
export * from './post';
|
|
14
14
|
export * from './replay';
|
|
15
|
-
export * from './resource';
|
|
16
15
|
export * from './room';
|
|
17
16
|
export * from './runtimes';
|
|
18
17
|
export * from './server';
|
|
19
18
|
export * from './service';
|
|
19
|
+
export { Sil } from './sil';
|
|
20
20
|
export * from './skin';
|
|
21
|
+
export { Srl } from './srl';
|
|
21
22
|
export { Tag } from './tag';
|
|
22
23
|
export * from './text';
|
|
@@ -27,7 +27,6 @@ __exportStar(require("./particle"), exports);
|
|
|
27
27
|
__exportStar(require("./playlist"), exports);
|
|
28
28
|
__exportStar(require("./post"), exports);
|
|
29
29
|
__exportStar(require("./replay"), exports);
|
|
30
|
-
__exportStar(require("./resource"), exports);
|
|
31
30
|
__exportStar(require("./room"), exports);
|
|
32
31
|
__exportStar(require("./runtimes"), exports);
|
|
33
32
|
__exportStar(require("./server"), exports);
|
|
@@ -2,8 +2,8 @@ import { BackgroundItem } from '../background/item';
|
|
|
2
2
|
import { EffectItem } from '../effect/item';
|
|
3
3
|
import { EngineItem } from '../engine/item';
|
|
4
4
|
import { ParticleItem } from '../particle/item';
|
|
5
|
-
import { SRL } from '../resource/srl';
|
|
6
5
|
import { SkinItem } from '../skin/item';
|
|
6
|
+
import { Srl } from '../srl';
|
|
7
7
|
import { Tag } from '../tag';
|
|
8
8
|
export type UseItem<T> = {
|
|
9
9
|
useDefault: true;
|
|
@@ -25,8 +25,8 @@ export type LevelItem = {
|
|
|
25
25
|
useBackground: UseItem<BackgroundItem>;
|
|
26
26
|
useEffect: UseItem<EffectItem>;
|
|
27
27
|
useParticle: UseItem<ParticleItem>;
|
|
28
|
-
cover:
|
|
29
|
-
bgm:
|
|
30
|
-
preview?:
|
|
31
|
-
data:
|
|
28
|
+
cover: Srl;
|
|
29
|
+
bgm: Srl;
|
|
30
|
+
preview?: Srl;
|
|
31
|
+
data: Srl;
|
|
32
32
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Srl } from '../srl';
|
|
2
2
|
import { Tag } from '../tag';
|
|
3
3
|
export type ParticleItem = {
|
|
4
4
|
name: string;
|
|
@@ -8,7 +8,7 @@ export type ParticleItem = {
|
|
|
8
8
|
subtitle: string;
|
|
9
9
|
author: string;
|
|
10
10
|
tags: Tag[];
|
|
11
|
-
thumbnail:
|
|
12
|
-
data:
|
|
13
|
-
texture:
|
|
11
|
+
thumbnail: Srl;
|
|
12
|
+
data: Srl;
|
|
13
|
+
texture: Srl;
|
|
14
14
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LevelItem } from '../level/item';
|
|
2
|
-
import {
|
|
2
|
+
import { Srl } from '../srl';
|
|
3
3
|
import { Tag } from '../tag';
|
|
4
4
|
export type PlaylistItem = {
|
|
5
5
|
name: string;
|
|
@@ -10,5 +10,5 @@ export type PlaylistItem = {
|
|
|
10
10
|
author: string;
|
|
11
11
|
tags: Tag[];
|
|
12
12
|
levels: LevelItem[];
|
|
13
|
-
thumbnail?:
|
|
13
|
+
thumbnail?: Srl;
|
|
14
14
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Srl } from '../srl';
|
|
2
2
|
import { Tag } from '../tag';
|
|
3
3
|
export type PostItem = {
|
|
4
4
|
name: string;
|
|
@@ -8,5 +8,5 @@ export type PostItem = {
|
|
|
8
8
|
time: number;
|
|
9
9
|
author: string;
|
|
10
10
|
tags: Tag[];
|
|
11
|
-
thumbnail?:
|
|
11
|
+
thumbnail?: Srl;
|
|
12
12
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LevelItem } from '../level/item';
|
|
2
|
-
import {
|
|
2
|
+
import { Srl } from '../srl';
|
|
3
3
|
import { Tag } from '../tag';
|
|
4
4
|
export type ReplayItem = {
|
|
5
5
|
name: string;
|
|
@@ -10,6 +10,6 @@ export type ReplayItem = {
|
|
|
10
10
|
author: string;
|
|
11
11
|
tags: Tag[];
|
|
12
12
|
level: LevelItem;
|
|
13
|
-
data:
|
|
14
|
-
configuration:
|
|
13
|
+
data: Srl;
|
|
14
|
+
configuration: Srl;
|
|
15
15
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Srl } from '../srl';
|
|
2
2
|
import { Tag } from '../tag';
|
|
3
3
|
export type RoomItem = {
|
|
4
4
|
name: string;
|
|
@@ -6,7 +6,7 @@ export type RoomItem = {
|
|
|
6
6
|
subtitle: string;
|
|
7
7
|
master: string;
|
|
8
8
|
tags: Tag[];
|
|
9
|
-
cover?:
|
|
10
|
-
bgm?:
|
|
11
|
-
preview?:
|
|
9
|
+
cover?: Srl;
|
|
10
|
+
bgm?: Srl;
|
|
11
|
+
preview?: Srl;
|
|
12
12
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
1
|
+
import { ServiceUserProfile } from '../service/user-profile';
|
|
2
|
+
export type ServerAuthenticateRequest = {
|
|
3
3
|
type: 'authenticateServer';
|
|
4
4
|
address: string;
|
|
5
5
|
time: number;
|
|
6
|
-
userProfile:
|
|
6
|
+
userProfile: ServiceUserProfile;
|
|
7
7
|
};
|
|
8
|
-
export type
|
|
8
|
+
export type ServerAuthenticateResponse = {
|
|
9
9
|
session: string;
|
|
10
10
|
expiration: number;
|
|
11
11
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ServerAuthenticateRequest, ServerAuthenticateResponse } from './authenticate';
|
|
2
|
+
export { ServerConfiguration } from './configuration';
|
|
2
3
|
export { ServerForm } from './form';
|
|
3
4
|
export { ServerInfo, ServerInfoButton } from './info';
|
|
4
5
|
export * from './items';
|
|
5
6
|
export * from './multiplayer';
|
|
6
|
-
export { ServerCollectionItemOption, ServerFileOption, ServerMultiOption, ServerOption, ServerSelectOption, ServerServerItemOption, ServerSliderOption, ServerTextAreaOption, ServerTextOption, ServerToggleOption, } from './option';
|
|
7
|
+
export { ServerCollectionItemOption, ServerFileOption, ServerMultiOption, ServerOption, ServerSelectOption, ServerServerItemOption, ServerServerItemsOption, ServerSliderOption, ServerTextAreaOption, ServerTextOption, ServerToggleOption, } from './option';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Srl } from '../srl';
|
|
2
|
+
import { ServerConfiguration } from './configuration';
|
|
2
3
|
export type ServerInfo = {
|
|
3
4
|
title: string;
|
|
4
5
|
description?: string;
|
|
5
6
|
buttons: ServerInfoButton[];
|
|
6
|
-
|
|
7
|
+
configuration: ServerConfiguration;
|
|
8
|
+
banner?: Srl;
|
|
7
9
|
};
|
|
8
10
|
export type ServerInfoButton = {
|
|
9
|
-
type: 'authentication' | 'multiplayer' | 'post' | 'playlist' | 'level' | 'replay' | 'skin' | 'background' | 'effect' | 'particle' | 'engine';
|
|
11
|
+
type: 'authentication' | 'multiplayer' | 'post' | 'playlist' | 'level' | 'replay' | 'skin' | 'background' | 'effect' | 'particle' | 'engine' | 'configuration';
|
|
10
12
|
};
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { ServerItemCommunityComment } from './comment';
|
|
2
|
+
export { ServerItemCommunityCommentList } from './list';
|
|
3
|
+
export { ServerSubmitItemCommunityCommentActionRequest, ServerSubmitItemCommunityCommentActionResponse, } from './submit';
|
|
4
|
+
export { ServerUploadItemCommunityCommentActionResponse } from './upload';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
1
|
+
import { ServerItemCommunityComment } from './comment';
|
|
2
|
+
export type ServerItemCommunityCommentList = {
|
|
3
3
|
pageCount: number;
|
|
4
|
-
comments:
|
|
4
|
+
comments: ServerItemCommunityComment[];
|
|
5
5
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type ServerSubmitItemCommunityCommentActionRequest = {
|
|
2
|
+
values: string;
|
|
3
|
+
};
|
|
4
|
+
export type ServerSubmitItemCommunityCommentActionResponse = {
|
|
5
|
+
shouldUpdateCommunity?: boolean;
|
|
6
|
+
shouldNavigateCommentsToPage?: number;
|
|
7
|
+
key: string;
|
|
8
|
+
hashes: string[];
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ServerUploadItemCommunityCommentActionResponse = {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export * from './comment';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
2
|
+
export { ServerItemCommunityInfo } from './info';
|
|
3
|
+
export { ServerSubmitItemCommunityActionRequest, ServerSubmitItemCommunityActionResponse, } from './submit';
|
|
4
|
+
export { ServerUploadItemCommunityActionResponse } from './upload';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ServerForm } from '../../form';
|
|
2
|
-
import {
|
|
3
|
-
export type
|
|
2
|
+
import { ServerItemCommunityComment } from './comment/comment';
|
|
3
|
+
export type ServerItemCommunityInfo = {
|
|
4
4
|
actions: ServerForm[];
|
|
5
|
-
topComments:
|
|
5
|
+
topComments: ServerItemCommunityComment[];
|
|
6
6
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type ServerSubmitItemCommunityActionRequest = {
|
|
2
2
|
values: string;
|
|
3
3
|
};
|
|
4
|
-
export type
|
|
4
|
+
export type ServerSubmitItemCommunityActionResponse = {
|
|
5
5
|
shouldUpdateCommunity?: boolean;
|
|
6
6
|
shouldNavigateCommentsToPage?: number;
|
|
7
|
+
key: string;
|
|
8
|
+
hashes: string[];
|
|
7
9
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ServerUploadItemCommunityActionResponse = {};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { ServerForm } from '../form';
|
|
2
|
+
import { ServerItemLeaderboard } from './leaderboard/leaderboard';
|
|
3
|
+
import { ServerItemSection } from './section';
|
|
4
|
+
export type ServerItemDetails<T> = {
|
|
4
5
|
item: T;
|
|
5
|
-
description
|
|
6
|
+
description?: string;
|
|
7
|
+
actions: ServerForm[];
|
|
6
8
|
hasCommunity: boolean;
|
|
7
|
-
leaderboards:
|
|
8
|
-
sections:
|
|
9
|
+
leaderboards: ServerItemLeaderboard[];
|
|
10
|
+
sections: ServerItemSection[];
|
|
9
11
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * from './community';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
2
|
+
export { ServerCreateItemRequest, ServerCreateItemResponse } from './create';
|
|
3
|
+
export { ServerItemDetails } from './details';
|
|
4
|
+
export { ServerItemInfo } from './info';
|
|
5
5
|
export * from './leaderboard';
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
6
|
+
export { ServerItemList } from './list';
|
|
7
|
+
export { ServerItemSection, ServerItemSectionTyped } from './section';
|
|
8
|
+
export { ServerSubmitItemActionRequest, ServerSubmitItemActionResponse } from './submit-action';
|
|
9
|
+
export { ServerUploadItemResponse } from './upload';
|
|
10
|
+
export { ServerUploadItemActionResponse } from './upload-action';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Srl } from '../../srl';
|
|
2
2
|
import { ServerForm } from '../form';
|
|
3
|
-
import {
|
|
4
|
-
export type
|
|
3
|
+
import { ServerItemSection } from './section';
|
|
4
|
+
export type ServerItemInfo = {
|
|
5
5
|
creates?: ServerForm[];
|
|
6
6
|
searches?: ServerForm[];
|
|
7
|
-
sections:
|
|
8
|
-
banner?:
|
|
7
|
+
sections: ServerItemSection[];
|
|
8
|
+
banner?: Srl;
|
|
9
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
3
|
-
topRecords:
|
|
1
|
+
import { ServerItemLeaderboardRecord } from './record';
|
|
2
|
+
export type ServerItemLeaderboardDetails = {
|
|
3
|
+
topRecords: ServerItemLeaderboardRecord[];
|
|
4
4
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { ServerItemLeaderboardDetails } from './details';
|
|
2
|
+
export { ServerItemLeaderboard } from './leaderboard';
|
|
3
3
|
export * from './record';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
export { ServerItemLeaderboardRecordDetails } from './details';
|
|
2
|
+
export { ServerItemLeaderboardRecordList } from './list';
|
|
3
|
+
export { ServerItemLeaderboardRecord } from './record';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
1
|
+
import { ServerItemLeaderboardRecord } from './record';
|
|
2
|
+
export type ServerItemLeaderboardRecordList = {
|
|
3
3
|
pageCount: number;
|
|
4
|
-
records:
|
|
4
|
+
records: ServerItemLeaderboardRecord[];
|
|
5
5
|
};
|
|
@@ -1,7 +1,22 @@
|
|
|
1
|
+
import { BackgroundItem } from '../../background';
|
|
2
|
+
import { EffectItem } from '../../effect';
|
|
3
|
+
import { EngineItem } from '../../engine';
|
|
1
4
|
import { Icon } from '../../icon';
|
|
5
|
+
import { LevelItem } from '../../level';
|
|
6
|
+
import { ParticleItem } from '../../particle';
|
|
7
|
+
import { PlaylistItem } from '../../playlist';
|
|
8
|
+
import { PostItem } from '../../post';
|
|
9
|
+
import { ReplayItem } from '../../replay';
|
|
10
|
+
import { RoomItem } from '../../room';
|
|
11
|
+
import { SkinItem } from '../../skin';
|
|
2
12
|
import { Text } from '../../text';
|
|
3
|
-
|
|
13
|
+
import { ServerForm } from '../form';
|
|
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 ServerItemSectionTyped<TItemType, TItem> = {
|
|
4
16
|
title: Text | (string & {});
|
|
5
17
|
icon?: Icon | (string & {});
|
|
6
|
-
|
|
18
|
+
itemType: TItemType;
|
|
19
|
+
items: TItem[];
|
|
20
|
+
search?: ServerForm;
|
|
21
|
+
searchValues?: string;
|
|
7
22
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ServerUploadItemActionResponse = {};
|