Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #46

Merged
merged 3 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
512 changes: 269 additions & 243 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions badgers-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "badgers-cli"
version = "0.2.0"
version = "0.2.1"
edition = "2021"
description = "Command-line SVG badge generation"

Expand All @@ -12,7 +12,7 @@ authors.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
clap = { version = "4.2.7", features = ["derive"] }
clap = { version = "4.5", features = ["derive"] }

[dependencies.spacebadgers]
workspace = true
6 changes: 3 additions & 3 deletions badgers-utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spacebadgers-utils"
version = "1.0.0"
version = "1.0.1"
edition = "2021"
description = "A collection of utilities for the SpaceBadgers project."

Expand All @@ -10,15 +10,15 @@ homepage.workspace = true
authors.workspace = true

[dependencies]
once_cell = "1.17.1"
once_cell = "1.19"

[dependencies.regex]
version = "1.8.2"
default-features = false
features = ["std", "perf", "unicode-perl"]

[dev-dependencies]
criterion = { version = "0.5.0", features = ["html_reports"] }
criterion = { version = "0.5", features = ["html_reports"] }

[[bench]]
name = "minify"
Expand Down
13 changes: 7 additions & 6 deletions badgers-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,18 @@
"@vercel/analytics": "^1.0.1",
"autoprefixer": "10.4.14",
"crates.io": "^2.2.4",
"eslint": "8.40.0",
"eslint-config-next": "13.4.2",
"next": "^13.4.3",
"eslint": "8.57.0",
"eslint-config-next": "^14.2.3",
"next": "^14.2.3",
"postcss": "8.4.23",
"react": "18.2.0",
"react-dom": "18.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"tailwindcss": "3.3.2",
"typescript": "5.0.4"
},
"devDependencies": {
"@octokit/types": "^9.2.2",
"encoding": "^0.1.13"
"encoding": "^0.1.13",
"sharp": "^0.33.3"
}
}
207 changes: 145 additions & 62 deletions badgers-web/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,78 +1,161 @@
import { Inter } from 'next/font/google'
import Image from 'next/image'
import { Analytics } from '@vercel/analytics/react'
import { Inter } from "next/font/google";
import Image from "next/image";
import { Analytics } from "@vercel/analytics/react";

import Logo from './logo.png'
import Logo from "./logo.png";

import './globals.css'
import Link from 'next/link'
import "./globals.css";
import Link from "next/link";
import { Metadata, Viewport } from "next";

const inter = Inter({ subsets: ['latin'] })
const inter = Inter({ subsets: ["latin"] });

export const metadata = {
title: 'SpaceBadgers',
applicationName: 'SpaceBadgers',
description: 'Fast and clean SVG badges',
keywords: ['badge', 'badges', 'badgers', 'spacebadgers', 'badge-generator', 'svg',],
colorScheme: 'light',
authors: [{ name: 'Marco Quinten', url: 'https://github.com/splittydev' }],
creator: 'Marco Quinten',
export const metadata: Metadata = {
title: "SpaceBadgers",
applicationName: "SpaceBadgers",
description: "Fast and clean SVG badges",
keywords: [
"badge",
"badges",
"badgers",
"spacebadgers",
"badge-generator",
"svg",
],
authors: [{ name: "Marco Quinten", url: "https://github.com/splittydev" }],
creator: "Marco Quinten",
metadataBase: new URL(`${process.env.NEXT_PUBLIC_WEB_PROTO!}://${process.env.NEXT_PUBLIC_WEB_HOST!}`),
}

export const viewport: Viewport = {
colorScheme: "light",
}

export default function RootLayout({
children,
}: {
children: React.ReactNode
children: React.ReactNode;
}) {
return (
<html lang="en">
<body className={`${inter.className} w-full flex flex-col items-center`}>
<div className="flex min-h-screen w-full xl:w-10/12 2xl:w-8/12 flex-col items-center py-4 md:p-16 gap-8">
<header className="flex flex-col gap-4">
<Link href="/" className="flex gap-4 select-none">
<div className="max-w-[64px] max-h-[64px] rounded-full shadow-md">
<Image placeholder='blur' priority alt="badgers.space Logo" src={Logo} width={256} height={256} />
</div>
<h1 className="text-6xl font-bold text-center">
Badge
<span className="text-orange-500">rs</span>
</h1>
</Link>
<div className="flex flex-col items-center justify-center">
Fast and clean SVG badges for your projects
</div>
</header>
<div className="flex flex-col gap-8 w-full">
{children}
<footer className="flex flex-col gap-6 w-full">

{/* Created by and link section */}
<section className="flex flex-wrap justify-between gap-2 bg-gray-100 mx-4 px-4 py-2 rounded-md">
<div className="text-sm">
<span className="text-gray-600">
Made with <span className="text-rose-500">♥</span> by <a target="_blank" className="text-gray-500 hover:text-amber-600" href="https://github.com/SplittyDev">Marco Quinten</a>.
</span>
</div>
<div className="flex gap-4 text-sm">
<a target="_blank" className="text-gray-500 hover:text-amber-600" href="https://github.com/splittydev/spacebadgers">GitHub</a>
</div>
</section>

{/* Informational Text */}
<section className="flex flex-col gap-4 px-6 text-sm text-justify text-gray-700">
<h2 className="text-md text-gray-600 font-bold">About SpaceBadgers</h2>
<p>Hey there, welcome to SpaceBadgers! If you&#x27;re wondering who we are and what we do, let us fill you in. We&#x27;re an open-source project with a passion for delivering top-notch SVG badges that are as speedy as they are stylish.</p>
<p>You see, we noticed that developers and project maintainers like you needed a way to display key information &#x2013; think build status, version, download counts &#x2013; in a way that&#x27;s quick and easy to integrate. That&#x27;s where we come in.</p>
<p>Under the hood, we&#x27;re powered by a Rust-based core library <a className="text-xs text-gray-700 hover:text-orange-600" href="https://crates.io/crates/spacebadgers" target="_blank">(crates.io)</a> and a Cloudflare worker. This dynamic duo ensures that we&#x27;re always delivering badges with excellent performance, straight from the edge. And speaking of integration, we&#x27;ve made it our mission to ensure smooth sailing when it comes to working with third-party services, courtesy of our NextJS-based API routes running on Vercel edge infrastructure.</p>
<p>What makes us different? We&#x27;re glad you asked! Unlike traditional image-based badges, we&#x27;re all about SVGs. They&#x27;re scalable, high-quality, and we serve them in a minified and compressed form for optimal delivery.</p>
<p>So that&#x27;s us, SpaceBadgers, in a nutshell. We&#x27;re here to provide a seamless, efficient badge generation process. If that sounds like your cup of tea, why not join the open-source community using SpaceBadgers today? We&#x27;d be thrilled to have you onboard!</p>
<p>For more information, take a look at our <a className="text-gray-700 hover:text-orange-600 underline underline-offset-2" href="https://github.com/splittydev/spacebadgers" target="_blank">GitHub</a>!</p>
</section>
</footer>
</div>
<body className={`${inter.className} w-full flex flex-col items-center`}>
<div className="flex min-h-screen w-full xl:w-10/12 2xl:w-8/12 flex-col items-center py-4 md:p-16 gap-8">
<header className="flex flex-col gap-4">
<Link href="/" className="flex gap-4 select-none">
<div className="max-w-[64px] max-h-[64px] rounded-full shadow-md">
<Image
placeholder="blur"
priority
alt="badgers.space Logo"
src={Logo}
width={256}
height={256}
/>
</div>
<h1 className="text-6xl font-bold text-center">
Badge
<span className="text-orange-500">rs</span>
</h1>
</Link>
<div className="flex flex-col items-center justify-center">
Fast and clean SVG badges for your projects
</div>
<Analytics />
</body>
</header>
<div className="flex flex-col gap-8 w-full">
{children}
<footer className="flex flex-col gap-6 w-full">
{/* Created by and link section */}
<section className="flex flex-wrap justify-between gap-2 bg-gray-100 mx-4 px-4 py-2 rounded-md">
<div className="text-sm">
<span className="text-gray-600">
Made with <span className="text-rose-500">♥</span> by{" "}
<a
target="_blank"
className="text-gray-500 hover:text-amber-600"
href="https://github.com/SplittyDev"
>
Marco Quinten
</a>
.
</span>
</div>
<div className="flex gap-4 text-sm">
<a
target="_blank"
className="text-gray-500 hover:text-amber-600"
href="https://github.com/splittydev/spacebadgers"
>
GitHub
</a>
</div>
</section>

{/* Informational Text */}
<section className="flex flex-col gap-4 px-6 text-sm text-justify text-gray-700">
<h2 className="text-md text-gray-600 font-bold">
About SpaceBadgers
</h2>
<p>
Hey there, welcome to SpaceBadgers! If you&#x27;re wondering
who we are and what we do, let us fill you in. We&#x27;re an
open-source project with a passion for delivering top-notch
SVG badges that are as speedy as they are stylish.
</p>
<p>
You see, we noticed that developers and project maintainers
like you needed a way to display key information &#x2013;
think build status, version, download counts &#x2013; in a way
that&#x27;s quick and easy to integrate. That&#x27;s where we
come in.
</p>
<p>
Under the hood, we&#x27;re powered by a Rust-based core
library{" "}
<a
className="text-xs text-gray-700 hover:text-orange-600"
href="https://crates.io/crates/spacebadgers"
target="_blank"
>
(crates.io)
</a>{" "}
and a Cloudflare worker. This dynamic duo ensures that
we&#x27;re always delivering badges with excellent
performance, straight from the edge. And speaking of
integration, we&#x27;ve made it our mission to ensure smooth
sailing when it comes to working with third-party services,
courtesy of our NextJS-based API routes running on Vercel edge
infrastructure.
</p>
<p>
What makes us different? We&#x27;re glad you asked! Unlike
traditional image-based badges, we&#x27;re all about SVGs.
They&#x27;re scalable, high-quality, and we serve them in a
minified and compressed form for optimal delivery.
</p>
<p>
So that&#x27;s us, SpaceBadgers, in a nutshell. We&#x27;re
here to provide a seamless, efficient badge generation
process. If that sounds like your cup of tea, why not join the
open-source community using SpaceBadgers today? We&#x27;d be
thrilled to have you onboard!
</p>
<p>
For more information, take a look at our{" "}
<a
className="text-gray-700 hover:text-orange-600 underline underline-offset-2"
href="https://github.com/splittydev/spacebadgers"
target="_blank"
>
GitHub
</a>
!
</p>
</section>
</footer>
</div>
</div>
<Analytics />
</body>
</html>
)
}
Loading