m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-09 05:33:51 -05:00

6 Commits

Author SHA1 Message Date
Sergio
aa4195f8d6 chore: bump project version 2025-03-07 18:25:00 +02:00
Sergio
1b94629c79 fix: overflowing image references in web UI 2025-03-07 18:01:32 +02:00
Sergio
8cd9cce94e chore: bump project version 2025-03-07 17:38:20 +02:00
Sergio
ddabd8c102 fix: strip hash when parsing image references 2025-03-07 17:37:56 +02:00
Sergio
0b0028ab6d Fix search in docs 2025-03-07 16:40:59 +02:00
Sergio
75509550b1 Fix CI Dockerfile 2025-03-03 11:35:58 +02:00
7 changed files with 9 additions and 7 deletions

View File

@@ -5,6 +5,7 @@ ARG TARGETOS
COPY binaries/* / COPY binaries/* /
RUN mv cup-$TARGETOS-$TARGETARCH cup RUN mv cup-$TARGETOS-$TARGETARCH cup
RUN chmod +x cup
FROM scratch FROM scratch
COPY --from=builder /cup /cup COPY --from=builder /cup /cup

2
Cargo.lock generated
View File

@@ -355,7 +355,7 @@ dependencies = [
[[package]] [[package]]
name = "cup" name = "cup"
version = "3.0.1" version = "3.0.3"
dependencies = [ dependencies = [
"bollard", "bollard",
"chrono", "chrono",

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "cup" name = "cup"
version = "3.0.1" version = "3.0.3"
edition = "2021" edition = "2021"
[dependencies] [dependencies]

Binary file not shown.

View File

@@ -4,7 +4,7 @@
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",
"build": "next build", "build": "next build && pagefind --site out --output-path out/_pagefind",
"start": "next start", "start": "next start",
"lint": "next lint", "lint": "next lint",
"fmt": "bun prettier --write ." "fmt": "bun prettier --write ."
@@ -26,6 +26,7 @@
"@types/react-dom": "^19.0.3", "@types/react-dom": "^19.0.3",
"eslint": "^9.18.0", "eslint": "^9.18.0",
"eslint-config-next": "15.1.5", "eslint-config-next": "15.1.5",
"pagefind": "^1.3.0",
"postcss": "^8.5.1", "postcss": "^8.5.1",
"prettier": "^3.4.2", "prettier": "^3.4.2",
"prettier-plugin-tailwindcss": "^0.6.11", "prettier-plugin-tailwindcss": "^0.6.11",

View File

@@ -16,7 +16,7 @@ pub fn split(reference: &str) -> (String, String, String) {
} }
} }
}; };
let splits = repository_and_tag.split(':').collect::<Vec<&str>>(); let splits = repository_and_tag.split('@').next().unwrap().split(':').collect::<Vec<&str>>();
let (repository, tag) = match splits.len() { let (repository, tag) = match splits.len() {
1 | 2 => { 1 | 2 => {
let repository_components = splits[0].split('/').collect::<Vec<&str>>(); let repository_components = splits[0].split('/').collect::<Vec<&str>>();
@@ -38,7 +38,7 @@ pub fn split(reference: &str) -> (String, String, String) {
}; };
(repository, tag) (repository, tag)
} }
_ => unreachable!(), _ => {dbg!(splits); panic!()},
}; };
(registry.to_string(), repository, tag.to_string()) (registry.to_string(), repository, tag.to_string())
} }

View File

@@ -82,14 +82,14 @@ export default function Image({ data }: { data: Image }) {
> >
<div className="mb-4 flex items-center gap-3"> <div className="mb-4 flex items-center gap-3">
<Box className={`size-6 shrink-0 text-${theme}-500`} /> <Box className={`size-6 shrink-0 text-${theme}-500`} />
<DialogTitle className="font-mono text-black dark:text-white"> <DialogTitle className="font-mono text-black dark:text-white break-all">
{url ? ( {url ? (
<> <>
<a <a
href={url} href={url}
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
className={`group w-fit text-black hover:underline dark:text-white`} className={`group w-fit hover:underline`}
> >
<span> <span>
{data.reference} {data.reference}