Compare commits
No commits in common. "b79faf3ea96dc8832de0d3a3a57ba8088026ec9a" and "84c0f7243ed54d58dff38fccd8665f0277f3485e" have entirely different histories.
b79faf3ea9
...
84c0f7243e
@ -10,12 +10,11 @@
|
|||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "1.6.3"
|
"@biomejs/biome": "1.6.3"
|
||||||
},
|
}
|
||||||
"packageManager": "pnpm@9.5.0"
|
}
|
||||||
}
|
|
@ -12,41 +12,41 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@radix-ui/react-icons": "^1.3.0",
|
"@radix-ui/react-icons": "^1.3.0",
|
||||||
"@radix-ui/react-label": "^2.1.0",
|
"@radix-ui/react-label": "^2.0.2",
|
||||||
"@radix-ui/react-popover": "^1.1.2",
|
"@radix-ui/react-popover": "^1.0.7",
|
||||||
"@radix-ui/react-radio-group": "^1.2.1",
|
"@radix-ui/react-radio-group": "^1.1.3",
|
||||||
"@radix-ui/react-separator": "^1.1.0",
|
"@radix-ui/react-separator": "^1.0.3",
|
||||||
"@radix-ui/react-slot": "^1.1.0",
|
"@radix-ui/react-slot": "^1.0.2",
|
||||||
"@radix-ui/react-tooltip": "^1.1.3",
|
"@radix-ui/react-tooltip": "^1.0.7",
|
||||||
"@tanstack/react-virtual": "^3.10.8",
|
"@tanstack/react-virtual": "^3.2.1",
|
||||||
"class-variance-authority": "^0.7.0",
|
"class-variance-authority": "^0.7.0",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.0",
|
||||||
"dbtype": "workspace:dbtype",
|
"dbtype": "workspace:*",
|
||||||
"jotai": "^2.10.0",
|
"jotai": "^2.7.2",
|
||||||
"react": "^18.3.1",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.3.1",
|
"react-dom": "^18.2.0",
|
||||||
"react-resizable-panels": "^2.1.4",
|
"react-resizable-panels": "^2.0.16",
|
||||||
"swr": "^2.2.5",
|
"swr": "^2.2.5",
|
||||||
"tailwind-merge": "^2.5.3",
|
"tailwind-merge": "^2.2.2",
|
||||||
"tailwindcss-animate": "^1.0.7",
|
"tailwindcss-animate": "^1.0.7",
|
||||||
"usehooks-ts": "^3.1.0",
|
"usehooks-ts": "^3.1.0",
|
||||||
"wouter": "^3.3.5"
|
"wouter": "^3.1.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^22.7.4",
|
"@types/node": ">=20.0.0",
|
||||||
"@types/react": "^18.3.11",
|
"@types/react": "^18.2.66",
|
||||||
"@types/react-dom": "^18.3.0",
|
"@types/react-dom": "^18.2.22",
|
||||||
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
||||||
"@typescript-eslint/parser": "^7.18.0",
|
"@typescript-eslint/parser": "^7.2.0",
|
||||||
"@vitejs/plugin-react-swc": "^3.7.1",
|
"@vitejs/plugin-react-swc": "^3.5.0",
|
||||||
"autoprefixer": "^10.4.20",
|
"autoprefixer": "^10.4.19",
|
||||||
"eslint": "^8.57.1",
|
"eslint": "^8.57.0",
|
||||||
"eslint-plugin-react-hooks": "^4.6.2",
|
"eslint-plugin-react-hooks": "^4.6.0",
|
||||||
"eslint-plugin-react-refresh": "^0.4.12",
|
"eslint-plugin-react-refresh": "^0.4.6",
|
||||||
"postcss": "^8.4.47",
|
"postcss": "^8.4.38",
|
||||||
"shadcn-ui": "^0.8.0",
|
"shadcn-ui": "^0.8.0",
|
||||||
"tailwindcss": "^3.4.13",
|
"tailwindcss": "^3.4.3",
|
||||||
"typescript": "^5.6.2",
|
"typescript": "^5.2.2",
|
||||||
"vite": "^5.4.8"
|
"vite": "^5.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,11 +20,7 @@ export function DescTagItem({
|
|||||||
}) {
|
}) {
|
||||||
return <DescItem name={name} className={className}>
|
return <DescItem name={name} className={className}>
|
||||||
{items.length === 0 ? "N/A" : items.map(
|
{items.length === 0 ? "N/A" : items.map(
|
||||||
(x, i) =>
|
(x) => <StyledLink key={x} to={`/search?allow_tag=${name}:${x}`}>{x}</StyledLink>
|
||||||
<>
|
|
||||||
<StyledLink key={x} to={`/search?allow_tag=${name}:${x}`}>{x}</StyledLink>
|
|
||||||
{i + 1 < items.length && <span className="">, </span>}
|
|
||||||
</>
|
|
||||||
)}
|
)}
|
||||||
</DescItem>;
|
</DescItem>;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { Document } from "dbtype";
|
import type { Document } from "dbtype/api";
|
||||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card.tsx";
|
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card.tsx";
|
||||||
import TagBadge from "@/components/gallery/TagBadge.tsx";
|
import TagBadge from "@/components/gallery/TagBadge.tsx";
|
||||||
import { Fragment, useLayoutEffect, useRef, useState } from "react";
|
import { Fragment, useLayoutEffect, useRef, useState } from "react";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import useSWR from "swr";
|
import useSWR from "swr";
|
||||||
import type { Document } from "dbtype";
|
import type { Document } from "dbtype/api";
|
||||||
import { fetcher } from "./fetcher";
|
import { fetcher } from "./fetcher";
|
||||||
|
|
||||||
export function useGalleryDoc(id: string) {
|
export function useGalleryDoc(id: string) {
|
||||||
|
@ -58,14 +58,14 @@ export function ContentInfoPage({ params }: ContentInfoPageProps) {
|
|||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<div className="grid gap-4 grid-cols-[repeat(auto_fill_300px)]">
|
<div className="grid gap-4 grid-cols-[repeat(auto_fill_300px)]">
|
||||||
<DescTagItem name="Artist" items={classifiedTags.artist} />
|
<DescTagItem name="artist" items={classifiedTags.artist} />
|
||||||
<DescTagItem name="Group" items={classifiedTags.group} />
|
<DescTagItem name="group" items={classifiedTags.group} />
|
||||||
<DescTagItem name="Series" items={classifiedTags.series} />
|
<DescTagItem name="series" items={classifiedTags.series} />
|
||||||
<DescTagItem name="Character" items={classifiedTags.character} />
|
<DescTagItem name="character" items={classifiedTags.character} />
|
||||||
<DescItem name="Created At / Modified At">{new Date(data.created_at).toLocaleString()} / {new Date(data.modified_at).toLocaleString()}</DescItem>
|
<DescItem name="Created At">{new Date(data.created_at).toLocaleString()}</DescItem>
|
||||||
<DescItem name="Filehash">{data.content_hash}</DescItem>
|
<DescItem name="Modified At">{new Date(data.modified_at).toLocaleString()}</DescItem>
|
||||||
<DescItem name="Path">{`${data.basepath}/${data.filename}`}</DescItem>
|
<DescItem name="Path">{`${data.basepath}/${data.filename}`}</DescItem>
|
||||||
<DescItem name="Page Count">{data.pagenum}</DescItem>
|
<DescItem name="Page Count">{JSON.stringify(data.additional)}</DescItem>
|
||||||
</div>
|
</div>
|
||||||
<div className="grid mt-4">
|
<div className="grid mt-4">
|
||||||
<span className="text-muted-foreground text-sm">Tags</span>
|
<span className="text-muted-foreground text-sm">Tags</span>
|
||||||
|
@ -11,31 +11,31 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@zip.js/zip.js": "^2.7.52",
|
"@zip.js/zip.js": "^2.7.40",
|
||||||
"better-sqlite3": "^9.6.0",
|
"better-sqlite3": "^9.4.3",
|
||||||
"chokidar": "^3.6.0",
|
"chokidar": "^3.6.0",
|
||||||
"dbtype": "workspace:dbtype",
|
"dbtype": "workspace:dbtype",
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.5",
|
||||||
"jose": "^5.9.3",
|
"jose": "^5.9.3",
|
||||||
"koa": "^2.15.3",
|
"koa": "^2.15.2",
|
||||||
"koa-bodyparser": "^4.4.1",
|
"koa-bodyparser": "^4.4.1",
|
||||||
"koa-compose": "^4.1.0",
|
"koa-compose": "^4.1.0",
|
||||||
"koa-router": "^12.0.1",
|
"koa-router": "^12.0.1",
|
||||||
"kysely": "^0.27.4",
|
"kysely": "^0.27.3",
|
||||||
"natural-orderby": "^2.0.3",
|
"natural-orderby": "^2.0.3",
|
||||||
"tiny-async-pool": "^1.3.0"
|
"tiny-async-pool": "^1.3.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/better-sqlite3": "^7.6.11",
|
"@types/better-sqlite3": "^7.6.9",
|
||||||
"@types/jsonwebtoken": "^8.5.9",
|
"@types/jsonwebtoken": "^8.5.9",
|
||||||
"@types/koa": "^2.15.0",
|
"@types/koa": "^2.15.0",
|
||||||
"@types/koa-bodyparser": "^4.3.12",
|
"@types/koa-bodyparser": "^4.3.12",
|
||||||
"@types/koa-compose": "^3.2.8",
|
"@types/koa-compose": "^3.2.8",
|
||||||
"@types/koa-router": "^7.4.8",
|
"@types/koa-router": "^7.4.8",
|
||||||
"@types/node": "^22.7.4",
|
"@types/node": ">=20.0.0",
|
||||||
"@types/tiny-async-pool": "^1.0.5",
|
"@types/tiny-async-pool": "^1.0.5",
|
||||||
"nodemon": "^3.1.7",
|
"nodemon": "^3.1.0",
|
||||||
"tsx": "^4.19.1",
|
"tsx": "^4.19.1",
|
||||||
"typescript": "^5.6.2"
|
"typescript": "^5.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2757
pnpm-lock.yaml
2757
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user