Skip to content

Commit cf2eda1

Browse files
committed
feat: rename stickers_slab.json to sticker_slabs.json.
1 parent 4e983e3 commit cf2eda1

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ Example response:
224224
]
225225
```
226226

227-
### List stickers slab
227+
### List sticker slabs
228228

229229
```http
230-
GET https://raw.githubusercontent.com/ByMykel/CSGO-API/main/public/api/en/stickers_slab.json
230+
GET https://raw.githubusercontent.com/ByMykel/CSGO-API/main/public/api/en/sticker_slabs.json
231231
```
232232

233233
Example response:

group.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const inputFilePathsTemplate = [
1717
"./public/api/{lang}/patches.json",
1818
"./public/api/{lang}/skins_not_grouped.json",
1919
"./public/api/{lang}/stickers.json",
20-
"./public/api/{lang}/stickers_slab.json",
20+
"./public/api/{lang}/sticker_slabs.json",
2121
"./public/api/{lang}/keychains.json",
2222
"./public/api/{lang}/tools.json",
2323
];

public/docs/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -996,8 +996,8 @@ <h4 class="text-slate-200 font-semibold mb-3">Response Structure</h4>
996996
</div>
997997
<hr />
998998

999-
<div id="list-stickers-slab" class="mb-12">
1000-
<h1 class="section-heading">List stickers slab</h1>
999+
<div id="list-sticker-slabs" class="mb-12">
1000+
<h1 class="section-heading">List sticker slabs</h1>
10011001

10021002
<p class="mt-2 text-base md:text-lg text-slate-700 mb-6 leading-relaxed">
10031003
Returns an array of sticker slabs (sealed stickers that can be opened).
@@ -1006,10 +1006,10 @@ <h1 class="section-heading">List stickers slab</h1>
10061006
<div class="request-info">
10071007
<div class="flex items-center">
10081008
<span class="request-method">GET</span>
1009-
<span class="font-mono text-slate-200">/stickers_slab.json</span>
1009+
<span class="font-mono text-slate-200">/sticker_slabs.json</span>
10101010
</div>
10111011
<a
1012-
href="https://raw.githubusercontent.com/ByMykel/CSGO-API/main/public/api/en/stickers_slab.json"
1012+
href="https://raw.githubusercontent.com/ByMykel/CSGO-API/main/public/api/en/sticker_slabs.json"
10131013
target="_blank"
10141014
class="hover:scale-110 transition-transform duration-200"
10151015
>

scripts/generate-docs.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ const endpoints = [
4141
jsonFile: "public/api/en/stickers.json",
4242
},
4343
{
44-
id: "list-stickers-slab",
45-
title: "List stickers slab",
44+
id: "list-sticker-slabs",
45+
title: "List sticker slabs",
4646
description: "Returns an array of sticker slabs (sealed stickers that can be opened).",
47-
endpoint: "/stickers_slab.json",
48-
url: "https://raw.githubusercontent.com/ByMykel/CSGO-API/main/public/api/en/stickers_slab.json",
49-
jsonFile: "public/api/en/stickers_slab.json",
47+
endpoint: "/sticker_slabs.json",
48+
url: "https://raw.githubusercontent.com/ByMykel/CSGO-API/main/public/api/en/sticker_slabs.json",
49+
jsonFile: "public/api/en/sticker_slabs.json",
5050
},
5151
{
5252
id: "list-keychain",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,11 @@ const parseItem = item => {
205205
};
206206
};
207207

208-
export const getStickersSlab = () => {
208+
export const getStickerSlabs = () => {
209209
const { stickerKits } = state;
210210
const { folder } = languageData;
211211

212212
const stickers = stickerKits.filter(isSticker).map(parseItem);
213213

214-
saveDataJson(`./public/api/${folder}/stickers_slab.json`, stickers);
214+
saveDataJson(`./public/api/${folder}/sticker_slabs.json`, stickers);
215215
};

update.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { loadTranslations } from "./services/translations.js";
1010
import { getGraffiti } from "./services/graffiti.js";
1111
import { getPatches } from "./services/patches.js";
1212
import { getStickers } from "./services/stickers.js";
13-
import { getStickersSlab } from "./services/stickersSlab.js";
13+
import { getStickerSlabs } from "./services/stickerSlabs.js";
1414
import { getKeychains } from "./services/keychains.js";
1515
import { getSkins } from "./services/skins.js";
1616
import { LANGUAGES_URL } from "./constants.js";
@@ -67,7 +67,7 @@ await Promise.all(
6767
getSkins();
6868
getSkinsNotGrouped();
6969
getStickers();
70-
getStickersSlab();
70+
getStickerSlabs();
7171
getKeychains();
7272
getTools();
7373
getBaseWeapons();

0 commit comments

Comments
 (0)