mirror of
https://github.com/traberph/short.git
synced 2026-11-22 22:55:12 +00:00
update Readme and minor css changes
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 153 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 178 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 88 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 95 KiB |
+2
-1
@@ -4,4 +4,5 @@ node_modules
|
|||||||
npm-debug.log
|
npm-debug.log
|
||||||
README.md
|
README.md
|
||||||
.next
|
.next
|
||||||
.git
|
.git
|
||||||
|
.assets
|
||||||
@@ -1,11 +1,39 @@
|
|||||||
# Short
|
# Short
|
||||||
|
|
||||||
This tool is intended to provide simple url shorting and link aggregation functionality.
|
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.
|
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
"use server"
|
"use server"
|
||||||
|
|
||||||
import { set, z } from "zod";
|
import { z } from "zod";
|
||||||
import prisma from "../../prisma/prisma";
|
import prisma from "../../prisma/prisma";
|
||||||
import { revalidatePath } from "next/cache";
|
import { revalidatePath } from "next/cache";
|
||||||
import toast from "react-hot-toast";
|
|
||||||
|
|
||||||
export async function createLinkBlock(prevState: any, formData: FormData) {
|
export async function createLinkBlock(prevState: any, formData: FormData) {
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export default async function CustomPageComponent(params: { customPage: CustomPa
|
|||||||
className="rounded-full zoom-animated"
|
className="rounded-full zoom-animated"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<h1 className="mt-5 text-center zoom-animated">{customPage.title}</h1>
|
<h1 className="my-10 text-center zoom-animated">{customPage.title}</h1>
|
||||||
<div className="w-full max-w-96 p-2">
|
<div className="w-full max-w-96 p-2">
|
||||||
|
|
||||||
{linkBlocks.map((block, index) => (
|
{linkBlocks.map((block, index) => (
|
||||||
@@ -39,7 +39,7 @@ export default async function CustomPageComponent(params: { customPage: CustomPa
|
|||||||
>
|
>
|
||||||
<a href={`/${block.redirectPage.page.shortcode}`}>
|
<a href={`/${block.redirectPage.page.shortcode}`}>
|
||||||
<div className="relative flex items-center">
|
<div className="relative flex items-center">
|
||||||
<div className="flex-shrink-0"><LinkFavicon url={block.redirectPage.dest} /></div>
|
<div className="flex-shrink-0 w-8 h-8"><LinkFavicon url={block.redirectPage.dest} /></div>
|
||||||
<div className="absolute left-1/2 transform -translate-x-1/2 text-center font-bold">{block.title}</div>
|
<div className="absolute left-1/2 transform -translate-x-1/2 text-center font-bold">{block.title}</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user