fix: remove @nuxt/content

This commit is contained in:
DecDuck
2025-03-14 13:23:56 +11:00
parent fce084f95a
commit 3527f678e5
10 changed files with 9 additions and 1344 deletions

View File

@ -1 +0,0 @@
These docs are automatically compiled in the Drop UI and are designed for admins and users to understand how Drop works.

View File

@ -1,3 +0,0 @@
# Home
This page is intentionally left blank, as it should be replaced with a custom home page.

View File

@ -1,23 +0,0 @@
# API
All Drop components communicate through HTTP-based APIs. However, due to the different use-cases they differ in how they are used.
## Frontend APIs
Frontend APIs run on the server, and are found under `/api/v1/`. They are used to render the web frontend, and are focused around user-based control of Drop systems.
For example, frontend APIs are responsible for uploading profile pictures, customizing your profile and adding friends.
The frontend, however, does not have access to some Drop features, namely downloading content. That feature is reserved for the client APIs, where it is actually used.
## Client APIs
Client APIs run on the server, and are found under `/api/v1/client/`. They are used by Drop clients (namely the desktop client) to manage, download and communicate with other Drop clients. They have a very specific feature set, and are limited in how they can change user profiles.
For example, client APIs have the ability to download content, setup P2P connections and report game activity. However, they do not have access to user profile management or administrator controls.
## P2P APIs
P2P APIs run on Drop clients, and are found at the root of the HTTP server. They are used by other Drop clients to download content and negotiate P2P features. They use mTLS authentication as a lightweight and efficient way to do peer to peer authentication.
For example, P2P APIs would be used to negotiate a Wireguard tunnel to do Remote LAN play.

View File

@ -1,11 +0,0 @@
# Clients
Drop clients connected to a given Drop server can access:
- Game content and files (to download)
- User data
- Game metadata and images
- Information about other clients connected to the same Drop server
**It is important that you trust the client that you grant access to your Drop account.**

View File

@ -1,5 +0,0 @@
# About
This section is about what Drop does, and how it works. For users interested in the inner workings of Drop, this will go through many of the design decisions, why they were made and more!
For users that don't care how Drop works, and want help using Drop, look under other sections. This section is purely technical and theoretical.

View File

@ -1,124 +0,0 @@
<template>
<div class="bg-zinc-950 min-h-screen">
<TransitionRoot as="template" :show="sidebarOpen">
<Dialog
class="relative z-50 lg:hidden"
@close="sidebarOpen = false"
>
<TransitionChild
as="template"
enter="transition-opacity ease-linear duration-300"
enter-from="opacity-0"
enter-to="opacity-100"
leave="transition-opacity ease-linear duration-300"
leave-from="opacity-100"
leave-to="opacity-0"
>
<div class="fixed inset-0 bg-gray-900/80" />
</TransitionChild>
<div class="fixed inset-0 flex">
<TransitionChild
as="template"
enter="transition ease-in-out duration-300 transform"
enter-from="-translate-x-full"
enter-to="translate-x-0"
leave="transition ease-in-out duration-300 transform"
leave-from="translate-x-0"
leave-to="-translate-x-full"
>
<DialogPanel
class="relative mr-16 flex w-full max-w-xs flex-1"
>
<TransitionChild
as="template"
enter="ease-in-out duration-300"
enter-from="opacity-0"
enter-to="opacity-100"
leave="ease-in-out duration-300"
leave-from="opacity-100"
leave-to="opacity-0"
>
<div
class="absolute left-full top-0 flex w-16 justify-center pt-5"
>
<button
type="button"
class="-m-2.5 p-2.5"
@click="sidebarOpen = false"
>
<span class="sr-only"
>Close sidebar</span
>
<XMarkIcon
class="h-6 w-6 text-white"
aria-hidden="true"
/>
</button>
</div>
</TransitionChild>
<!-- Sidebar component, swap this element with another sidebar if you like -->
<DocsSidebar />
</DialogPanel>
</TransitionChild>
</div>
</Dialog>
</TransitionRoot>
<!-- Static sidebar for desktop -->
<div
class="hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col"
>
<!-- Sidebar component, swap this element with another sidebar if you like -->
<DocsSidebar />
</div>
<div class="lg:pl-72">
<div
class="flex sticky top-0 z-40 lg:hidden h-16 shrink-0 items-center gap-x-4 border-b border-zinc-700 bg-zinc-950 px-4 shadow-sm sm:gap-x-6 sm:px-6 lg:px-8"
>
<button
type="button"
class="-m-2.5 p-2.5 text-zinc-300 lg:hidden"
@click="sidebarOpen = true"
>
<span class="sr-only">Open sidebar</span>
<Bars3Icon class="h-6 w-6" aria-hidden="true" />
</button>
<Wordmark class="mb-[0.5px]" />
<NuxtLink
href="/"
class="ml-auto rounded bg-blue-600 px-2 py-1 text-sm font-semibold text-white shadow-sm hover:bg-blue-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600"
>
Home &rarr;
</NuxtLink>
</div>
<main class="py-10">
<div class="px-4 sm:px-6 lg:px-8">
<slot />
</div>
</main>
</div>
</div>
</template>
<script setup>
import { ref } from "vue";
import {
Dialog,
DialogPanel,
TransitionChild,
TransitionRoot,
} from "@headlessui/vue";
import { Bars3Icon, XMarkIcon } from "@heroicons/vue/24/outline";
import { ChevronDownIcon, MagnifyingGlassIcon } from "@heroicons/vue/20/solid";
const sidebarOpen = ref(false);
useHead({
titleTemplate: (title) =>
title ? `${title} | Drop Documentation` : "Drop Documentation",
});
</script>

View File

@ -36,7 +36,6 @@ export default defineNuxtConfig({
// Module config from here down
modules: [
"@nuxt/content",
"vue3-carousel-nuxt",
"nuxt-security",
"@nuxt/image",
@ -46,22 +45,6 @@ export default defineNuxtConfig({
prefix: "Vue",
},
content: {
api: {
baseURL: "/api/v1/_content",
},
markdown: {
anchorLinks: false,
},
sources: {
content: {
driver: "fs",
prefix: "/docs",
base: path.resolve(__dirname, "docs"),
},
},
},
security: {
headers: {
contentSecurityPolicy: {

View File

@ -14,7 +14,6 @@
"@drop/droplet": "^0.7.0",
"@headlessui/vue": "^1.7.23",
"@heroicons/vue": "^2.1.5",
"@nuxt/content": "^2.13.4",
"@nuxt/image": "1.9.0",
"@nuxtjs/tailwindcss": "^6.12.2",
"@prisma/client": "^6.1.0",

View File

@ -1,91 +0,0 @@
<template>
<div class="py-10 px-8 w-full">
<ContentDoc>
<template #not-found>
<main
class="mx-auto w-full max-w-7xl px-6 pb-16 pt-10 sm:pb-24 lg:px-8"
>
<img
class="mx-auto h-10 w-auto sm:h-12"
src="https://tailwindui.com/plus/img/logos/mark.svg?color=indigo&shade=600"
alt="Your Company"
/>
<div class="mx-auto mt-20 max-w-2xl text-center sm:mt-24">
<p class="text-base font-semibold leading-8 text-indigo-600">404</p>
<h1
class="mt-4 text-balance text-5xl font-semibold tracking-tight text-gray-900 sm:text-6xl"
>
This page does not exist
</h1>
<p
class="mt-6 text-pretty text-lg font-medium text-gray-500 sm:text-xl/8"
>
Sorry, we couldnt find the page youre looking for.
</p>
</div>
<div class="mx-auto mt-16 flow-root max-w-lg sm:mt-20">
<h2 class="sr-only">Popular pages</h2>
<ul
role="list"
class="-mt-6 divide-y divide-gray-900/5 border-b border-gray-900/5"
>
<li
v-for="(link, linkIdx) in links"
:key="linkIdx"
class="relative flex gap-x-6 py-6"
>
<div
class="flex h-10 w-10 flex-none items-center justify-center rounded-lg shadow-sm ring-1 ring-gray-900/10"
>
<component
:is="link.icon"
class="h-6 w-6 text-indigo-600"
aria-hidden="true"
/>
</div>
<div class="flex-auto">
<h3 class="text-sm font-semibold leading-6 text-gray-900">
<a :href="link.href">
<span class="absolute inset-0" aria-hidden="true" />
{{ link.name }}
</a>
</h3>
<p class="mt-2 text-sm leading-6 text-gray-600">
{{ link.description }}
</p>
</div>
<div class="flex-none self-center">
<ChevronRightIcon
class="h-5 w-5 text-gray-400"
aria-hidden="true"
/>
</div>
</li>
</ul>
<div class="mt-10 flex justify-center">
<a
href="#"
class="text-sm font-semibold leading-6 text-indigo-600"
>
<span aria-hidden="true">&larr;</span>
Back to home
</a>
</div>
</div>
</main>
</template>
<template v-slot="{ doc }">
<article class="prose prose-invert prose-blue">
<ContentRenderer :value="doc" />
</article>
</template>
</ContentDoc>
</div>
</template>
<script setup lang="ts">
definePageMeta({
layout: "docs",
});
</script>

1077
yarn.lock

File diff suppressed because it is too large Load Diff