+The voices +
+ ++The data will probably be useless to you, but you could use it to reduce the number of requests you have to do to the Mojang API. +It could also be used for making user lookup websites like NameMC, or maybe doing something like training AI on usernames or skins or something. +
+ ++Making archives of user-generated content will usually be controversial since it makes it harder for users to delete their data. +However, I believe the harm here is minimal since my dataset doesn't have very much (UUIDs, usernames, skins) and there's other ways of obtaining people's old names anyways (like NameMC, laby.net, etc). +
diff --git a/src/routes/(blog)/minecraft-uuids/namemc-captcha-clicking.png b/src/routes/(blog)/minecraft-uuids/namemc-captcha-clicking.png new file mode 100644 index 0000000..d2994e4 Binary files /dev/null and b/src/routes/(blog)/minecraft-uuids/namemc-captcha-clicking.png differ diff --git a/src/routes/(blog)/minecraft-uuids/namemc-wildcard-scraping.png b/src/routes/(blog)/minecraft-uuids/namemc-wildcard-scraping.png new file mode 100644 index 0000000..041977d Binary files /dev/null and b/src/routes/(blog)/minecraft-uuids/namemc-wildcard-scraping.png differ diff --git a/src/routes/(blog)/minecraft-uuids/northernside-32m.png b/src/routes/(blog)/minecraft-uuids/northernside-32m.png new file mode 100644 index 0000000..58973f5 Binary files /dev/null and b/src/routes/(blog)/minecraft-uuids/northernside-32m.png differ diff --git a/src/routes/(blog)/minecraft-uuids/wiki-vg-uuid-endpoint.png b/src/routes/(blog)/minecraft-uuids/wiki-vg-uuid-endpoint.png new file mode 100644 index 0000000..fb8ecad Binary files /dev/null and b/src/routes/(blog)/minecraft-uuids/wiki-vg-uuid-endpoint.png differ diff --git a/src/routes/(blog)/minecraft-uuids/yuno-55m.png b/src/routes/(blog)/minecraft-uuids/yuno-55m.png new file mode 100644 index 0000000..9b540bb Binary files /dev/null and b/src/routes/(blog)/minecraft-uuids/yuno-55m.png differ diff --git a/src/routes/[slug].json/+server.ts b/src/routes/[slug].json/+server.ts index 77e0dc8..1d4f73e 100644 --- a/src/routes/[slug].json/+server.ts +++ b/src/routes/[slug].json/+server.ts @@ -5,6 +5,7 @@ export const prerender = true export interface APIBlogPost { title: string + subtitle: string | undefined published: string html: string } @@ -15,10 +16,11 @@ export const GET: RequestHandler = async ({ params }) => { const post = await getPost(slug) - if (post === null) error(404, 'Not found'); + if (post === null) error(404, 'Not found') return json({ title: post.title, + subtitle: post.subtitle, published: post.published, html: post.html, }) diff --git a/src/routes/blog.json/preview.ts b/src/routes/blog.json/preview.ts index a1b1344..5d5e4d6 100644 --- a/src/routes/blog.json/preview.ts +++ b/src/routes/blog.json/preview.ts @@ -2,6 +2,7 @@ import { listBlogPostSlugs, type BlogPost, getPost } from '$lib/blog' export interface BlogPostPreview { title: string + subtitle: string | undefined published: string html: string css: string @@ -60,6 +61,7 @@ export async function getPosts() { return posts.map((p) => ({ title: p.title, published: p.published, + subtitle: p.subtitle, // HACK: remove images, i WILL parse html with regex and you won't stop me html: cutOffAtLine(p.html.replace(/<(img|iframe).+?\/?>|<\/?(img|iframe)>/g, ''), 6), css: p.css,