Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jens-ox committed Aug 28, 2024
1 parent 0b351b6 commit 3c08af3
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 39 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Extraction, versioning and machine-readable provisioning of public data.

## API

See the [deployed Swagger docs](https://krake.dev/swagger).
See the [Swagger docs](https://redocly.github.io/redoc/?url=https://www.krake.dev/openapi.json).

## Adding exporters

Expand Down
10 changes: 5 additions & 5 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import cx from 'clsx'
import Link from 'next/link'
import { Link as RadixLink } from '@radix-ui/themes'
import { Button, Link as RadixLink } from '@radix-ui/themes'
import { inter, mono } from '@/utils/fonts'

import '@/styles/globals.css'
Expand All @@ -10,7 +10,7 @@ import { Metadata } from 'next'
const navigation = [
{ name: 'Datensätze', href: '/' },
{ name: 'Schemas', href: '/schema' },
{ name: 'API', href: '/swagger' },
{ name: 'API', href: 'https://redocly.github.io/redoc/?url=https://www.krake.dev/openapi.json' },
{ name: 'GitHub', href: 'https://github.com/jens-ox/oda' }
]

Expand All @@ -29,17 +29,17 @@ export default function RootLayout({ children }: { children: React.ReactNode })
<Contexts>
<div className="flex flex-col justify-between min-h-screen bg-slate-1">
<div className="flex flex-col gap-12">
<nav className="container mx-auto py-4 flex gap-12">
<nav className="container mx-auto py-4 flex gap-12 items-center">
<Link href="/">
<h1 className="font-medium">Open Data Aggregator</h1>
</Link>
<div className="flex gap-8 text-slate-11">
{navigation.map((item) => (
<RadixLink asChild key={item.name}>
<Button asChild key={item.name} variant="ghost">
<Link key={item.name} href={item.href}>
<span>{item.name}</span>
</Link>
</RadixLink>
</Button>
))}
</div>
</nav>
Expand Down
9 changes: 0 additions & 9 deletions app/swagger/page.tsx

This file was deleted.

Binary file modified bun.lockb
Binary file not shown.
8 changes: 0 additions & 8 deletions components/Swagger.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,9 @@
"@types/node": "^22.5.0",
"@types/react": "18.3.4",
"@types/react-dom": "18.3.0",
"@types/swagger-ui-react": "^4.18.3",
"@types/unzip-stream": "^0.3.4",
"@typescript-eslint/eslint-plugin": "^8.3.0",
"@typescript-eslint/parser": "^8.3.0",
"autoprefixer": "^10.4.20",
"eslint": "^9.9.1",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^17.10.2",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-promise": "^7.1.0",
"postcss": "^8.4.41",
"prettier": "^3.3.3",
"tailwindcss": "^3.4.10",
Expand All @@ -50,19 +41,15 @@
"date-fns": "^3.6.0",
"dotenv": "^16.4.5",
"encoding": "^0.1.13",
"eslint-config-next": "^14.2.6",
"glob": "^11.0.0",
"json-schema": "^0.4.0",
"lucide-react": "^0.436.0",
"next": "14.2.6",
"openapi3-ts": "^4.4.0",
"playwright": "^1.46.1",
"playwright-extra": "^4.3.6",
"puppeteer-extra-plugin-stealth": "^2.11.2",
"radix-themes-tw": "^0.2.3",
"react": "18.3.1",
"react-dom": "18.3.1",
"swagger-ui-react": "^5.17.14",
"unzip-stream": "^0.3.4",
"zod": "^3.23.8",
"zod-to-json-schema": "^3.23.2"
Expand Down
8 changes: 5 additions & 3 deletions public/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@
"description": "Dateienliste zu einer Quelle",
"content": {
"application/json": {
"type": "array",
"items": {
"type": "string"
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
Expand Down

0 comments on commit 3c08af3

Please sign in to comment.