diff --git a/.assets/admin01.png b/.assets/admin01.png new file mode 100644 index 0000000..a8f5c70 Binary files /dev/null and b/.assets/admin01.png differ diff --git a/.assets/admin02.png b/.assets/admin02.png new file mode 100644 index 0000000..ed603be Binary files /dev/null and b/.assets/admin02.png differ diff --git a/.assets/admin03.png b/.assets/admin03.png new file mode 100644 index 0000000..f871215 Binary files /dev/null and b/.assets/admin03.png differ diff --git a/.assets/login.png b/.assets/login.png new file mode 100644 index 0000000..5a4747a Binary files /dev/null and b/.assets/login.png differ diff --git a/.assets/screenshot_home.png b/.assets/screenshot_home.png new file mode 100644 index 0000000..d14af34 Binary files /dev/null and b/.assets/screenshot_home.png differ diff --git a/.dockerignore b/.dockerignore index 72e9aa4..65bf4b6 100644 --- a/.dockerignore +++ b/.dockerignore @@ -4,4 +4,5 @@ node_modules npm-debug.log README.md .next -.git \ No newline at end of file +.git +.assets \ No newline at end of file diff --git a/README.md b/README.md index 3cf6e0b..da3d15d 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,39 @@ # Short This tool is intended to provide simple url shorting and link aggregation functionality. +Users should be able to create short links for example to generate smaller QR codes with the builtin QR code generator. -It is powered by nextjs and postgres. +The admin panel is a PWA for easy access and management of the links even on mobile devices. + +It is powered by nextjs and postgres. +Authentication is outsourced via OAuth2. +# Example Page +- optimized for mobile view +- simple and clean design + + + +# Easy to use Admin Interface + +## Overview Page + +- get an overview of all links and their views + + + +## Redirect Pages + +- a simple redirect to a target url + + + +# Custom Pages + +- an aggregation of multiple redirect pages +- (future work - text blocks; image blocks) + + + -#### Info -The tool is in a early stage of development. -Integration of IDP is planned. \ No newline at end of file diff --git a/src/actions/block_actions.ts b/src/actions/block_actions.ts index 444a47a..92e0a88 100644 --- a/src/actions/block_actions.ts +++ b/src/actions/block_actions.ts @@ -1,9 +1,8 @@ "use server" -import { set, z } from "zod"; +import { z } from "zod"; import prisma from "../../prisma/prisma"; import { revalidatePath } from "next/cache"; -import toast from "react-hot-toast"; export async function createLinkBlock(prevState: any, formData: FormData) { diff --git a/src/components/CustomPageComponent.tsx b/src/components/CustomPageComponent.tsx index 77c58ac..46b02aa 100644 --- a/src/components/CustomPageComponent.tsx +++ b/src/components/CustomPageComponent.tsx @@ -28,7 +28,7 @@ export default async function CustomPageComponent(params: { customPage: CustomPa className="rounded-full zoom-animated" /> -