rhythia-api 182.0.0 → 185.0.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/.prettierrc.json +6 -6
- package/api/addCollectionMap.ts +82 -82
- package/api/approveMap.ts +78 -78
- package/api/chartPublicStats.ts +32 -32
- package/api/createBeatmap.ts +168 -156
- package/api/createBeatmapPage.ts +64 -64
- package/api/createClan.ts +81 -81
- package/api/createCollection.ts +58 -58
- package/api/deleteBeatmapPage.ts +77 -72
- package/api/deleteCollection.ts +59 -59
- package/api/deleteCollectionMap.ts +71 -71
- package/api/editAboutMe.ts +91 -91
- package/api/editClan.ts +90 -90
- package/api/editCollection.ts +77 -77
- package/api/editProfile.ts +123 -123
- package/api/getAvatarUploadUrl.ts +85 -85
- package/api/getBadgedUsers.ts +56 -56
- package/api/getBeatmapComments.ts +57 -57
- package/api/getBeatmapPage.ts +106 -106
- package/api/getBeatmapPageById.ts +99 -99
- package/api/getBeatmapStarRating.ts +53 -53
- package/api/getBeatmaps.ts +159 -159
- package/api/getClan.ts +77 -77
- package/api/getCollection.ts +130 -130
- package/api/getCollections.ts +130 -126
- package/api/getLeaderboard.ts +136 -136
- package/api/getMapUploadUrl.ts +93 -93
- package/api/getPassToken.ts +55 -55
- package/api/getProfile.ts +146 -146
- package/api/getPublicStats.ts +180 -180
- package/api/getRawStarRating.ts +57 -57
- package/api/getScore.ts +85 -85
- package/api/getTimestamp.ts +23 -23
- package/api/getUserScores.ts +175 -175
- package/api/nominateMap.ts +82 -69
- package/api/postBeatmapComment.ts +59 -59
- package/api/rankMapsArchive.ts +64 -64
- package/api/searchUsers.ts +56 -56
- package/api/setPasskey.ts +59 -59
- package/api/submitScore.ts +433 -433
- package/api/updateBeatmapPage.ts +229 -229
- package/handleApi.ts +20 -20
- package/index.html +2 -2
- package/index.ts +866 -864
- package/package.json +2 -2
- package/types/database.ts +114 -1
- package/utils/getUserBySession.ts +48 -48
- package/utils/requestUtils.ts +87 -87
- package/utils/security.ts +20 -20
- package/utils/star-calc/index.ts +72 -72
- package/utils/star-calc/osuUtils.ts +53 -53
- package/utils/star-calc/sspmParser.ts +398 -398
- package/utils/star-calc/sspmv1Parser.ts +165 -165
- package/utils/supabase.ts +13 -13
- package/utils/test +4 -4
- package/utils/validateToken.ts +7 -7
- package/vercel.json +12 -12
- package/package-lock.json +0 -8913
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
export const sampleMap = `osu file format v14
|
|
2
|
-
|
|
3
|
-
[General]
|
|
4
|
-
AudioFilename: audio.mp3
|
|
5
|
-
AudioLeadIn: 0
|
|
6
|
-
PreviewTime: 99664
|
|
7
|
-
Countdown: 0
|
|
8
|
-
SampleSet: Normal
|
|
9
|
-
StackLeniency: 0
|
|
10
|
-
Mode: 0
|
|
11
|
-
LetterboxInBreaks: 0
|
|
12
|
-
UseSkinSprites: 1
|
|
13
|
-
SkinPreference:Default
|
|
14
|
-
WidescreenStoryboard: 1
|
|
15
|
-
SamplesMatchPlaybackRate: 1
|
|
16
|
-
|
|
17
|
-
[Editor]
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
[Metadata]
|
|
21
|
-
Title:new beginnings
|
|
22
|
-
TitleUnicode:new beginnings
|
|
23
|
-
Artist:nekodex
|
|
24
|
-
ArtistUnicode:nekodex
|
|
25
|
-
Creator:pishifat
|
|
26
|
-
Version:tutorial
|
|
27
|
-
Source:
|
|
28
|
-
Tags:
|
|
29
|
-
BeatmapID:2116202
|
|
30
|
-
BeatmapSetID:1011011
|
|
31
|
-
|
|
32
|
-
[Difficulty]
|
|
33
|
-
HPDrainRate:5
|
|
34
|
-
CircleSize:2
|
|
35
|
-
OverallDifficulty:8
|
|
36
|
-
ApproachRate:8
|
|
37
|
-
SliderMultiplier:1
|
|
38
|
-
SliderTickRate:1
|
|
39
|
-
|
|
40
|
-
[Events]
|
|
41
|
-
//Background and Video events
|
|
42
|
-
0,0,"new-beginnings.jpg",0,0
|
|
43
|
-
|
|
44
|
-
[TimingPoints]
|
|
45
|
-
-28,461.538461538462,4,1,0,100,1,0
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
[Colours]
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
[HitObjects]
|
|
52
|
-
256,192,24202,1,0,0:0:0:0:
|
|
53
|
-
`;
|
|
1
|
+
export const sampleMap = `osu file format v14
|
|
2
|
+
|
|
3
|
+
[General]
|
|
4
|
+
AudioFilename: audio.mp3
|
|
5
|
+
AudioLeadIn: 0
|
|
6
|
+
PreviewTime: 99664
|
|
7
|
+
Countdown: 0
|
|
8
|
+
SampleSet: Normal
|
|
9
|
+
StackLeniency: 0
|
|
10
|
+
Mode: 0
|
|
11
|
+
LetterboxInBreaks: 0
|
|
12
|
+
UseSkinSprites: 1
|
|
13
|
+
SkinPreference:Default
|
|
14
|
+
WidescreenStoryboard: 1
|
|
15
|
+
SamplesMatchPlaybackRate: 1
|
|
16
|
+
|
|
17
|
+
[Editor]
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
[Metadata]
|
|
21
|
+
Title:new beginnings
|
|
22
|
+
TitleUnicode:new beginnings
|
|
23
|
+
Artist:nekodex
|
|
24
|
+
ArtistUnicode:nekodex
|
|
25
|
+
Creator:pishifat
|
|
26
|
+
Version:tutorial
|
|
27
|
+
Source:
|
|
28
|
+
Tags:
|
|
29
|
+
BeatmapID:2116202
|
|
30
|
+
BeatmapSetID:1011011
|
|
31
|
+
|
|
32
|
+
[Difficulty]
|
|
33
|
+
HPDrainRate:5
|
|
34
|
+
CircleSize:2
|
|
35
|
+
OverallDifficulty:8
|
|
36
|
+
ApproachRate:8
|
|
37
|
+
SliderMultiplier:1
|
|
38
|
+
SliderTickRate:1
|
|
39
|
+
|
|
40
|
+
[Events]
|
|
41
|
+
//Background and Video events
|
|
42
|
+
0,0,"new-beginnings.jpg",0,0
|
|
43
|
+
|
|
44
|
+
[TimingPoints]
|
|
45
|
+
-28,461.538461538462,4,1,0,100,1,0
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
[Colours]
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
[HitObjects]
|
|
52
|
+
256,192,24202,1,0,0:0:0:0:
|
|
53
|
+
`;
|