Skip to content

Commit

Permalink
feat: remove public pages and app prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
diego3g committed Jun 17, 2024
1 parent f55e294 commit 4fd2a44
Show file tree
Hide file tree
Showing 69 changed files with 33 additions and 362 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
# Nivo

The all-in-one video solution for online learning.

..test ci
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function ViewsCount() {
return (
<Card className="relative">
<p className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-center text-sm leading-relaxed text-muted-foreground">
<Link href="/app/settings/organization" className="underline">
<Link href="/settings/organization" className="underline">
Setup your Bunny account
</Link>{' '}
to see metrics
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export function BatchUploadList({ batchId }: BatchUploadListProps) {
<TableCell>
<div className="flex flex-col">
<Link
href={`/app/videos/${video.id}`}
href={`/videos/${video.id}`}
prefetch={false}
className="font-medium text-primary outline-none hover:underline"
>
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function WebhookLogsFilters() {
}

startTransition(() => {
router.push(`/app/settings/developers/logs?${params.toString()}`)
router.push(`/settings/developers/logs?${params.toString()}`)
})
}

Expand All @@ -58,7 +58,7 @@ export function WebhookLogsFilters() {
params.delete('query')
params.delete('trigger')

router.push(`/app/settings/developers/logs?${params.toString()}`)
router.push(`/settings/developers/logs?${params.toString()}`)
}

const hasFilters = trigger !== undefined || query !== ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ export function WebhookLogsList() {
key={webhookLog.id}
className="cursor-pointer"
onClick={() =>
router.push(
`/app/settings/developers/logs/${webhookLog.id}`,
)
router.push(`/settings/developers/logs/${webhookLog.id}`)
}
>
<TableCell className="py-1.5">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default async function SettingsPage() {

<div className="space-x-3">
<Button size="default" variant="outline" asChild>
<Link href="/app/settings/developers/logs" prefetch={false}>
<Link href="/settings/developers/logs" prefetch={false}>
<Code2 className="mr-2 size-4" />
Webhook logs
</Link>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function WebhooksList() {

function navigateToPage(pageIndex: number) {
router.push(
`/app/settings/developers?${createQueryString('pageIndex', String(pageIndex))}`,
`/settings/developers?${createQueryString('pageIndex', String(pageIndex))}`,
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export default async function Layout({ children }: { children: ReactNode }) {
<span className="mb-2 px-4 text-xxs font-semibold uppercase text-muted-foreground">
General
</span>
<AsideLink href="/app/settings/profile">
<AsideLink href="/settings/profile">
<User2 className="mr-2 size-4" />
Profile
</AsideLink>
<AsideLink href="/app/settings/organization">
<AsideLink href="/settings/organization">
<Building className="mr-2 size-4" />
Organization
</AsideLink>
Expand All @@ -28,11 +28,11 @@ export default async function Layout({ children }: { children: ReactNode }) {
<span className="mb-2 px-4 text-xxs font-semibold uppercase text-muted-foreground">
Developers
</span>
<AsideLink href="/app/settings/developers">
<AsideLink href="/settings/developers">
<Code2 className="mr-2 size-4" />
API & Webhooks
</AsideLink>
<AsideLink href="/app/settings/developers/logs">
<AsideLink href="/settings/developers/logs">
<SquareDashedBottomCode className="mr-2 size-4" />
Webhook Logs
</AsideLink>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default async function Upload() {
<AlertCircle className="mt-1.5 size-6 shrink-0 text-amber-400" />
<p className="leading-relaxed text-muted-foreground">
Setup your{' '}
<Link href="/app/settings/organization" className="underline">
<Link href="/settings/organization" className="underline">
Bunny account integration
</Link>{' '}
before uploading videos on Nivo.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function UploadList() {
try {
const { batchId } = await createUploadBatch({ files })

router.push(`/app/batches/${batchId}`)
router.push(`/batches/${batchId}`)
} catch {
toast.error('Uh oh! Something went wrong.', {
description:
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default async function UploadsPage({
<TableCell>
<div className="flex flex-col">
<Link
href={`/app/videos/${video.id}`}
href={`/videos/${video.id}`}
prefetch={false}
className="font-medium text-primary outline-none hover:underline"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function UploadsFilters() {
tags.forEach((tag) => params.append('tagsFilter', tag))

startTransition(() => {
router.push(`/app/uploads?${params.toString()}`)
router.push(`/uploads?${params.toString()}`)
})
}

Expand All @@ -44,7 +44,7 @@ export function UploadsFilters() {
params.delete('titleFilter')
params.delete('tagsFilter')

router.push(`/app/uploads?${params.toString()}`)
router.push(`/uploads?${params.toString()}`)
}

const hasFilters = title !== '' || tags.length > 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,11 @@ export function UploadsPagination({
)

function navigateToPage(pageIndex: number) {
router.push(
`/app/uploads?${createQueryString('pageIndex', String(pageIndex))}`,
)
router.push(`/uploads?${createQueryString('pageIndex', String(pageIndex))}`)
}

function setPageSize(pageSize: string) {
router.push(`/app/uploads?${createQueryString('pageSize', pageSize)}`)
router.push(`/uploads?${createQueryString('pageSize', pageSize)}`)
}

const page = pageIndex + 1
Expand Down
File renamed without changes.
127 changes: 0 additions & 127 deletions apps/web/src/app/(home)/about/page.tsx

This file was deleted.

Loading

0 comments on commit 4fd2a44

Please sign in to comment.