@sonolus/core 7.9.3 → 7.11.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.
@@ -22,6 +22,7 @@ export declare const Icon: {
22
22
  readonly Clock: "clock";
23
23
  readonly Comment: "comment";
24
24
  readonly Crown: "crown";
25
+ readonly CustomServer: "customServer";
25
26
  readonly Delete: "delete";
26
27
  readonly Edit: "edit";
27
28
  readonly Effect: "effect";
@@ -25,6 +25,7 @@ exports.Icon = {
25
25
  Clock: 'clock',
26
26
  Comment: 'comment',
27
27
  Crown: 'crown',
28
+ CustomServer: 'customServer',
28
29
  Delete: 'delete',
29
30
  Edit: 'edit',
30
31
  Effect: 'effect',
@@ -26,5 +26,5 @@ export type ReplayData = {
26
26
  t: number[];
27
27
  x: number[];
28
28
  y: number[];
29
- }[];
29
+ };
30
30
  };
@@ -1,5 +1,6 @@
1
1
  import { ServerItemCommunityComment } from './comment';
2
2
  export type ServerItemCommunityCommentList = {
3
3
  pageCount: number;
4
+ cursor?: string;
4
5
  comments: ServerItemCommunityComment[];
5
6
  };
@@ -1,5 +1,6 @@
1
1
  import { ServerItemLeaderboardRecord } from './record';
2
2
  export type ServerItemLeaderboardRecordList = {
3
3
  pageCount: number;
4
+ cursor?: string;
4
5
  records: ServerItemLeaderboardRecord[];
5
6
  };
@@ -1,6 +1,7 @@
1
1
  import { ServerForm } from '../form';
2
2
  export type ServerItemList<T> = {
3
3
  pageCount: number;
4
+ cursor?: string;
4
5
  items: T[];
5
6
  searches?: ServerForm[];
6
7
  };
@@ -50,8 +50,11 @@ export type ServerSelectOption = {
50
50
  description?: string;
51
51
  required: boolean;
52
52
  type: 'select';
53
- def: number;
54
- values: (Text | (string & {}))[];
53
+ def: string;
54
+ values: {
55
+ name: string;
56
+ title: Text | (string & {});
57
+ }[];
55
58
  };
56
59
  export type ServerMultiOption = {
57
60
  query: string;
@@ -60,7 +63,10 @@ export type ServerMultiOption = {
60
63
  required: boolean;
61
64
  type: 'multi';
62
65
  def: boolean[];
63
- values: (Text | (string & {}))[];
66
+ values: {
67
+ name: string;
68
+ title: Text | (string & {});
69
+ }[];
64
70
  };
65
71
  export type ServerServerItemOption = {
66
72
  query: string;
@@ -97,4 +103,5 @@ export type ServerFileOption = {
97
103
  description?: string;
98
104
  required: boolean;
99
105
  type: 'file';
106
+ def: string;
100
107
  };
@@ -1,4 +1,22 @@
1
1
  export declare const Text: {
2
+ /** en: Custom Server */
3
+ readonly CustomServer: "#CUSTOM_SERVER";
4
+ /** en: Collection */
5
+ readonly Collection: "#COLLECTION";
6
+ /** en: Server */
7
+ readonly Server: "#SERVER";
8
+ /** en: Address */
9
+ readonly Address: "#ADDRESS";
10
+ /** en: Expiration */
11
+ readonly Expiration: "#EXPIRATION";
12
+ /** en: Storage */
13
+ readonly Storage: "#STORAGE";
14
+ /** en: Log */
15
+ readonly Log: "#LOG";
16
+ /** en: Inquiry */
17
+ readonly Inquiry: "#INQUIRY";
18
+ /** en: Banner */
19
+ readonly Banner: "#BANNER";
2
20
  /** en: Post */
3
21
  readonly Post: "#POST";
4
22
  /** en: Playlist */
@@ -19,6 +37,68 @@ export declare const Text: {
19
37
  readonly Replay: "#REPLAY";
20
38
  /** en: Room */
21
39
  readonly Room: "#ROOM";
40
+ /** en: Thumbnail */
41
+ readonly PostThumbnail: "#POST_THUMBNAIL";
42
+ /** en: Thumbnail */
43
+ readonly PlaylistThumbnail: "#PLAYLIST_THUMBNAIL";
44
+ /** en: Cover */
45
+ readonly LevelCover: "#LEVEL_COVER";
46
+ /** en: BGM */
47
+ readonly LevelBgm: "#LEVEL_BGM";
48
+ /** en: Preview */
49
+ readonly LevelPreview: "#LEVEL_PREVIEW";
50
+ /** en: Data */
51
+ readonly LevelData: "#LEVEL_DATA";
52
+ /** en: Thumbnail */
53
+ readonly SkinThumbnail: "#SKIN_THUMBNAIL";
54
+ /** en: Data */
55
+ readonly SkinData: "#SKIN_DATA";
56
+ /** en: Texture */
57
+ readonly SkinTexture: "#SKIN_TEXTURE";
58
+ /** en: Thumbnail */
59
+ readonly BackgroundThumbnail: "#BACKGROUND_THUMBNAIL";
60
+ /** en: Image */
61
+ readonly BackgroundImage: "#BACKGROUND_IMAGE";
62
+ /** en: Data */
63
+ readonly BackgroundData: "#BACKGROUND_DATA";
64
+ /** en: Configuration */
65
+ readonly BackgroundConfiguration: "#BACKGROUND_CONFIGURATION";
66
+ /** en: Thumbnail */
67
+ readonly EffectThumbnail: "#EFFECT_THUMBNAIL";
68
+ /** en: Data */
69
+ readonly EffectData: "#EFFECT_DATA";
70
+ /** en: Audio */
71
+ readonly EffectAudio: "#EFFECT_AUDIO";
72
+ /** en: Thumbnail */
73
+ readonly ParticleThumbnail: "#PARTICLE_THUMBNAIL";
74
+ /** en: Data */
75
+ readonly ParticleData: "#PARTICLE_DATA";
76
+ /** en: Texture */
77
+ readonly ParticleTexture: "#PARTICLE_TEXTURE";
78
+ /** en: Thumbnail */
79
+ readonly EngineThumbnail: "#ENGINE_THUMBNAIL";
80
+ /** en: Play Data */
81
+ readonly EnginePlaydata: "#ENGINE_PLAYDATA";
82
+ /** en: Watch Data */
83
+ readonly EngineWatchdata: "#ENGINE_WATCHDATA";
84
+ /** en: Preview Data */
85
+ readonly EnginePreviewdata: "#ENGINE_PREVIEWDATA";
86
+ /** en: Tutorial Data */
87
+ readonly EngineTutorialdata: "#ENGINE_TUTORIALDATA";
88
+ /** en: ROM */
89
+ readonly EngineRom: "#ENGINE_ROM";
90
+ /** en: Configuration */
91
+ readonly EngineConfiguration: "#ENGINE_CONFIGURATION";
92
+ /** en: Data */
93
+ readonly ReplayData: "#REPLAY_DATA";
94
+ /** en: Configuration */
95
+ readonly ReplayConfiguration: "#REPLAY_CONFIGURATION";
96
+ /** en: Cover */
97
+ readonly RoomCover: "#ROOM_COVER";
98
+ /** en: BGM */
99
+ readonly RoomBgm: "#ROOM_BGM";
100
+ /** en: Preview */
101
+ readonly RoomPreview: "#ROOM_PREVIEW";
22
102
  /** en: Grade */
23
103
  readonly Grade: "#GRADE";
24
104
  /** en: Arcade Score */
@@ -35,6 +115,10 @@ export declare const Text: {
35
115
  readonly Good: "#GOOD";
36
116
  /** en: Miss */
37
117
  readonly Miss: "#MISS";
118
+ /** en: Filter */
119
+ readonly Filter: "#FILTER";
120
+ /** en: Sort */
121
+ readonly Sort: "#SORT";
38
122
  /** en: Keywords */
39
123
  readonly Keywords: "#KEYWORDS";
40
124
  /** en: Name */
@@ -55,12 +139,16 @@ export declare const Text: {
55
139
  readonly Time: "#TIME";
56
140
  /** en: Author */
57
141
  readonly Author: "#AUTHOR";
142
+ /** en: Description */
143
+ readonly Description: "#DESCRIPTION";
58
144
  /** en: Genre */
59
145
  readonly Genre: "#GENRE";
60
146
  /** en: Type */
61
147
  readonly Type: "#TYPE";
62
148
  /** en: Category */
63
149
  readonly Category: "#CATEGORY";
150
+ /** en: Status */
151
+ readonly Status: "#STATUS";
64
152
  /** en: Language */
65
153
  readonly Language: "#LANGUAGE";
66
154
  /** en: Difficulty */
@@ -421,6 +509,8 @@ export declare const Text: {
421
509
  readonly TimePlaceholder: "#TIME_PLACEHOLDER";
422
510
  /** en: Enter author... */
423
511
  readonly AuthorPlaceholder: "#AUTHOR_PLACEHOLDER";
512
+ /** en: Enter description... */
513
+ readonly DescriptionPlaceholder: "#DESCRIPTION_PLACEHOLDER";
424
514
  /** en: Enter genre... */
425
515
  readonly GenrePlaceholder: "#GENRE_PLACEHOLDER";
426
516
  /** en: Enter type... */
@@ -461,10 +551,48 @@ export declare const Text: {
461
551
  readonly UserPlaceholder: "#USER_PLACEHOLDER";
462
552
  /** en: {0}% */
463
553
  readonly PercentageUnit: "#PERCENTAGE_UNIT";
554
+ /** en: {0} yr */
555
+ readonly YearUnit: "#YEAR_UNIT";
556
+ /** en: {0} mo */
557
+ readonly MonthUnit: "#MONTH_UNIT";
558
+ /** en: {0} d */
559
+ readonly DayUnit: "#DAY_UNIT";
560
+ /** en: {0} h */
561
+ readonly HourUnit: "#HOUR_UNIT";
562
+ /** en: {0} m */
563
+ readonly MinuteUnit: "#MINUTE_UNIT";
464
564
  /** en: {0} s */
465
565
  readonly SecondUnit: "#SECOND_UNIT";
466
566
  /** en: {0} ms */
467
567
  readonly MillisecondUnit: "#MILLISECOND_UNIT";
568
+ /** en: {0} yr ago */
569
+ readonly YearPast: "#YEAR_PAST";
570
+ /** en: {0} mo ago */
571
+ readonly MonthPast: "#MONTH_PAST";
572
+ /** en: {0} d ago */
573
+ readonly DayPast: "#DAY_PAST";
574
+ /** en: {0} h ago */
575
+ readonly HourPast: "#HOUR_PAST";
576
+ /** en: {0} m ago */
577
+ readonly MinutePast: "#MINUTE_PAST";
578
+ /** en: {0} s ago */
579
+ readonly SecondPast: "#SECOND_PAST";
580
+ /** en: {0} ms ago */
581
+ readonly MillisecondPast: "#MILLISECOND_PAST";
582
+ /** en: In {0} yr */
583
+ readonly YearFuture: "#YEAR_FUTURE";
584
+ /** en: In {0} mo */
585
+ readonly MonthFuture: "#MONTH_FUTURE";
586
+ /** en: In {0} d */
587
+ readonly DayFuture: "#DAY_FUTURE";
588
+ /** en: In {0} h */
589
+ readonly HourFuture: "#HOUR_FUTURE";
590
+ /** en: In {0} m */
591
+ readonly MinuteFuture: "#MINUTE_FUTURE";
592
+ /** en: In {0} s */
593
+ readonly SecondFuture: "#SECOND_FUTURE";
594
+ /** en: In {0} ms */
595
+ readonly MillisecondFuture: "#MILLISECOND_FUTURE";
468
596
  /** en: Tap */
469
597
  readonly Tap: "#TAP";
470
598
  /** en: Tap and Hold */
@@ -649,6 +777,16 @@ export declare const Text: {
649
777
  readonly Ranking: "#RANKING";
650
778
  /** en: Score */
651
779
  readonly Score: "#SCORE";
780
+ /** en: Owner */
781
+ readonly Owner: "#OWNER";
782
+ /** en: Admin */
783
+ readonly Admin: "#ADMIN";
784
+ /** en: Moderator */
785
+ readonly Moderator: "#MODERATOR";
786
+ /** en: Reviewer */
787
+ readonly Reviewer: "#REVIEWER";
788
+ /** en: Banned */
789
+ readonly Banned: "#BANNED";
652
790
  /** en: Player */
653
791
  readonly Player: "#PLAYER";
654
792
  /** en: Spectator */
@@ -843,7 +981,7 @@ export declare const Text: {
843
981
  readonly Allowed: "#ALLOWED";
844
982
  /** en: Disallow */
845
983
  readonly Disallow: "#DISALLOW";
846
- /** en: DisallowED */
984
+ /** en: Disallowed */
847
985
  readonly Disallowed: "#DISALLOWED";
848
986
  /** en: Approve */
849
987
  readonly Approve: "#APPROVE";
@@ -2,6 +2,24 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Text = void 0;
4
4
  exports.Text = {
5
+ /** en: Custom Server */
6
+ CustomServer: '#CUSTOM_SERVER',
7
+ /** en: Collection */
8
+ Collection: '#COLLECTION',
9
+ /** en: Server */
10
+ Server: '#SERVER',
11
+ /** en: Address */
12
+ Address: '#ADDRESS',
13
+ /** en: Expiration */
14
+ Expiration: '#EXPIRATION',
15
+ /** en: Storage */
16
+ Storage: '#STORAGE',
17
+ /** en: Log */
18
+ Log: '#LOG',
19
+ /** en: Inquiry */
20
+ Inquiry: '#INQUIRY',
21
+ /** en: Banner */
22
+ Banner: '#BANNER',
5
23
  /** en: Post */
6
24
  Post: '#POST',
7
25
  /** en: Playlist */
@@ -22,6 +40,68 @@ exports.Text = {
22
40
  Replay: '#REPLAY',
23
41
  /** en: Room */
24
42
  Room: '#ROOM',
43
+ /** en: Thumbnail */
44
+ PostThumbnail: '#POST_THUMBNAIL',
45
+ /** en: Thumbnail */
46
+ PlaylistThumbnail: '#PLAYLIST_THUMBNAIL',
47
+ /** en: Cover */
48
+ LevelCover: '#LEVEL_COVER',
49
+ /** en: BGM */
50
+ LevelBgm: '#LEVEL_BGM',
51
+ /** en: Preview */
52
+ LevelPreview: '#LEVEL_PREVIEW',
53
+ /** en: Data */
54
+ LevelData: '#LEVEL_DATA',
55
+ /** en: Thumbnail */
56
+ SkinThumbnail: '#SKIN_THUMBNAIL',
57
+ /** en: Data */
58
+ SkinData: '#SKIN_DATA',
59
+ /** en: Texture */
60
+ SkinTexture: '#SKIN_TEXTURE',
61
+ /** en: Thumbnail */
62
+ BackgroundThumbnail: '#BACKGROUND_THUMBNAIL',
63
+ /** en: Image */
64
+ BackgroundImage: '#BACKGROUND_IMAGE',
65
+ /** en: Data */
66
+ BackgroundData: '#BACKGROUND_DATA',
67
+ /** en: Configuration */
68
+ BackgroundConfiguration: '#BACKGROUND_CONFIGURATION',
69
+ /** en: Thumbnail */
70
+ EffectThumbnail: '#EFFECT_THUMBNAIL',
71
+ /** en: Data */
72
+ EffectData: '#EFFECT_DATA',
73
+ /** en: Audio */
74
+ EffectAudio: '#EFFECT_AUDIO',
75
+ /** en: Thumbnail */
76
+ ParticleThumbnail: '#PARTICLE_THUMBNAIL',
77
+ /** en: Data */
78
+ ParticleData: '#PARTICLE_DATA',
79
+ /** en: Texture */
80
+ ParticleTexture: '#PARTICLE_TEXTURE',
81
+ /** en: Thumbnail */
82
+ EngineThumbnail: '#ENGINE_THUMBNAIL',
83
+ /** en: Play Data */
84
+ EnginePlaydata: '#ENGINE_PLAYDATA',
85
+ /** en: Watch Data */
86
+ EngineWatchdata: '#ENGINE_WATCHDATA',
87
+ /** en: Preview Data */
88
+ EnginePreviewdata: '#ENGINE_PREVIEWDATA',
89
+ /** en: Tutorial Data */
90
+ EngineTutorialdata: '#ENGINE_TUTORIALDATA',
91
+ /** en: ROM */
92
+ EngineRom: '#ENGINE_ROM',
93
+ /** en: Configuration */
94
+ EngineConfiguration: '#ENGINE_CONFIGURATION',
95
+ /** en: Data */
96
+ ReplayData: '#REPLAY_DATA',
97
+ /** en: Configuration */
98
+ ReplayConfiguration: '#REPLAY_CONFIGURATION',
99
+ /** en: Cover */
100
+ RoomCover: '#ROOM_COVER',
101
+ /** en: BGM */
102
+ RoomBgm: '#ROOM_BGM',
103
+ /** en: Preview */
104
+ RoomPreview: '#ROOM_PREVIEW',
25
105
  /** en: Grade */
26
106
  Grade: '#GRADE',
27
107
  /** en: Arcade Score */
@@ -38,6 +118,10 @@ exports.Text = {
38
118
  Good: '#GOOD',
39
119
  /** en: Miss */
40
120
  Miss: '#MISS',
121
+ /** en: Filter */
122
+ Filter: '#FILTER',
123
+ /** en: Sort */
124
+ Sort: '#SORT',
41
125
  /** en: Keywords */
42
126
  Keywords: '#KEYWORDS',
43
127
  /** en: Name */
@@ -58,12 +142,16 @@ exports.Text = {
58
142
  Time: '#TIME',
59
143
  /** en: Author */
60
144
  Author: '#AUTHOR',
145
+ /** en: Description */
146
+ Description: '#DESCRIPTION',
61
147
  /** en: Genre */
62
148
  Genre: '#GENRE',
63
149
  /** en: Type */
64
150
  Type: '#TYPE',
65
151
  /** en: Category */
66
152
  Category: '#CATEGORY',
153
+ /** en: Status */
154
+ Status: '#STATUS',
67
155
  /** en: Language */
68
156
  Language: '#LANGUAGE',
69
157
  /** en: Difficulty */
@@ -424,6 +512,8 @@ exports.Text = {
424
512
  TimePlaceholder: '#TIME_PLACEHOLDER',
425
513
  /** en: Enter author... */
426
514
  AuthorPlaceholder: '#AUTHOR_PLACEHOLDER',
515
+ /** en: Enter description... */
516
+ DescriptionPlaceholder: '#DESCRIPTION_PLACEHOLDER',
427
517
  /** en: Enter genre... */
428
518
  GenrePlaceholder: '#GENRE_PLACEHOLDER',
429
519
  /** en: Enter type... */
@@ -464,10 +554,48 @@ exports.Text = {
464
554
  UserPlaceholder: '#USER_PLACEHOLDER',
465
555
  /** en: {0}% */
466
556
  PercentageUnit: '#PERCENTAGE_UNIT',
557
+ /** en: {0} yr */
558
+ YearUnit: '#YEAR_UNIT',
559
+ /** en: {0} mo */
560
+ MonthUnit: '#MONTH_UNIT',
561
+ /** en: {0} d */
562
+ DayUnit: '#DAY_UNIT',
563
+ /** en: {0} h */
564
+ HourUnit: '#HOUR_UNIT',
565
+ /** en: {0} m */
566
+ MinuteUnit: '#MINUTE_UNIT',
467
567
  /** en: {0} s */
468
568
  SecondUnit: '#SECOND_UNIT',
469
569
  /** en: {0} ms */
470
570
  MillisecondUnit: '#MILLISECOND_UNIT',
571
+ /** en: {0} yr ago */
572
+ YearPast: '#YEAR_PAST',
573
+ /** en: {0} mo ago */
574
+ MonthPast: '#MONTH_PAST',
575
+ /** en: {0} d ago */
576
+ DayPast: '#DAY_PAST',
577
+ /** en: {0} h ago */
578
+ HourPast: '#HOUR_PAST',
579
+ /** en: {0} m ago */
580
+ MinutePast: '#MINUTE_PAST',
581
+ /** en: {0} s ago */
582
+ SecondPast: '#SECOND_PAST',
583
+ /** en: {0} ms ago */
584
+ MillisecondPast: '#MILLISECOND_PAST',
585
+ /** en: In {0} yr */
586
+ YearFuture: '#YEAR_FUTURE',
587
+ /** en: In {0} mo */
588
+ MonthFuture: '#MONTH_FUTURE',
589
+ /** en: In {0} d */
590
+ DayFuture: '#DAY_FUTURE',
591
+ /** en: In {0} h */
592
+ HourFuture: '#HOUR_FUTURE',
593
+ /** en: In {0} m */
594
+ MinuteFuture: '#MINUTE_FUTURE',
595
+ /** en: In {0} s */
596
+ SecondFuture: '#SECOND_FUTURE',
597
+ /** en: In {0} ms */
598
+ MillisecondFuture: '#MILLISECOND_FUTURE',
471
599
  /** en: Tap */
472
600
  Tap: '#TAP',
473
601
  /** en: Tap and Hold */
@@ -652,6 +780,16 @@ exports.Text = {
652
780
  Ranking: '#RANKING',
653
781
  /** en: Score */
654
782
  Score: '#SCORE',
783
+ /** en: Owner */
784
+ Owner: '#OWNER',
785
+ /** en: Admin */
786
+ Admin: '#ADMIN',
787
+ /** en: Moderator */
788
+ Moderator: '#MODERATOR',
789
+ /** en: Reviewer */
790
+ Reviewer: '#REVIEWER',
791
+ /** en: Banned */
792
+ Banned: '#BANNED',
655
793
  /** en: Player */
656
794
  Player: '#PLAYER',
657
795
  /** en: Spectator */
@@ -846,7 +984,7 @@ exports.Text = {
846
984
  Allowed: '#ALLOWED',
847
985
  /** en: Disallow */
848
986
  Disallow: '#DISALLOW',
849
- /** en: DisallowED */
987
+ /** en: Disallowed */
850
988
  Disallowed: '#DISALLOWED',
851
989
  /** en: Approve */
852
990
  Approve: '#APPROVE',
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
4
  exports.version = {
5
- package: '7.9.3',
6
- sonolus: '0.8.8',
5
+ package: '7.11.0',
6
+ sonolus: '0.8.10',
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonolus/core",
3
- "version": "7.9.3",
3
+ "version": "7.11.0",
4
4
  "description": "Core library for Sonolus",
5
5
  "author": "NonSpicyBurrito",
6
6
  "repository": "github:Sonolus/sonolus-core",
@@ -20,14 +20,14 @@
20
20
  "build": "tsc -p ."
21
21
  },
22
22
  "devDependencies": {
23
- "@eslint/js": "^9.16.0",
23
+ "@eslint/js": "^9.17.0",
24
24
  "@types/eslint__js": "^8.42.3",
25
- "@types/node": "^20.17.9",
26
- "eslint": "^9.16.0",
25
+ "@types/node": "^20.17.10",
26
+ "eslint": "^9.17.0",
27
27
  "eslint-config-prettier": "^9.1.0",
28
- "prettier": "^3.4.1",
28
+ "prettier": "^3.4.2",
29
29
  "prettier-plugin-organize-imports": "^4.1.0",
30
30
  "typescript": "~5.7.2",
31
- "typescript-eslint": "^8.16.0"
31
+ "typescript-eslint": "^8.18.2"
32
32
  }
33
33
  }