mirror of
https://github.com/PreMiD/PreMiD.git
synced 2026-04-06 04:41:58 +02:00
chore: cleanup
This commit is contained in:
@@ -21,10 +21,14 @@ If you are a developer looking to contribute to PreMiD, read along.
|
||||
|
||||
This monorepo is split into multiple packages / projects. Here's a list of them:
|
||||
|
||||
- [apps/api](apps/api) - The API for PreMiD.
|
||||
- [apps/website](apps/website) - The website for PreMiD.
|
||||
- [apps/docs](apps/docs) - The official documentation for PreMiD.
|
||||
- [apps/pd](apps/pd/README.md) - A simple url shortener service to shorten urls longer than 256 characters.
|
||||
- [apps/schema-server](apps/schema-server) - Simple Schema server for the Presence manifest.
|
||||
|
||||
- [packages/db](packages/db) - Database schema for PreMiD.
|
||||
|
||||
## Development
|
||||
|
||||
### Release
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
# Nuxt 3 Minimal Starter
|
||||
|
||||
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
|
||||
|
||||
## Setup
|
||||
|
||||
Make sure to install the dependencies:
|
||||
|
||||
```bash
|
||||
# npm
|
||||
npm install
|
||||
|
||||
# pnpm
|
||||
pnpm install
|
||||
|
||||
# yarn
|
||||
yarn install
|
||||
|
||||
# bun
|
||||
bun install
|
||||
```
|
||||
|
||||
## Development Server
|
||||
|
||||
Start the development server on `http://localhost:3000`:
|
||||
|
||||
```bash
|
||||
# npm
|
||||
npm run dev
|
||||
|
||||
# pnpm
|
||||
pnpm run dev
|
||||
|
||||
# yarn
|
||||
yarn dev
|
||||
|
||||
# bun
|
||||
bun run dev
|
||||
```
|
||||
|
||||
## Production
|
||||
|
||||
Build the application for production:
|
||||
|
||||
```bash
|
||||
# npm
|
||||
npm run build
|
||||
|
||||
# pnpm
|
||||
pnpm run build
|
||||
|
||||
# yarn
|
||||
yarn build
|
||||
|
||||
# bun
|
||||
bun run build
|
||||
```
|
||||
|
||||
Locally preview production build:
|
||||
|
||||
```bash
|
||||
# npm
|
||||
npm run preview
|
||||
|
||||
# pnpm
|
||||
pnpm run preview
|
||||
|
||||
# yarn
|
||||
yarn preview
|
||||
|
||||
# bun
|
||||
bun run preview
|
||||
```
|
||||
|
||||
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
|
||||
81
packages/db/lib/Presence.d.ts
vendored
81
packages/db/lib/Presence.d.ts
vendored
@@ -1,81 +0,0 @@
|
||||
/// <reference types="mongoose/types/aggregate.js" />
|
||||
/// <reference types="mongoose/types/callback.js" />
|
||||
/// <reference types="mongoose/types/collection.js" />
|
||||
/// <reference types="mongoose/types/connection.js" />
|
||||
/// <reference types="mongoose/types/cursor.js" />
|
||||
/// <reference types="mongoose/types/document.js" />
|
||||
/// <reference types="mongoose/types/error.js" />
|
||||
/// <reference types="mongoose/types/expressions.js" />
|
||||
/// <reference types="mongoose/types/helpers.js" />
|
||||
/// <reference types="mongoose/types/middlewares.js" />
|
||||
/// <reference types="mongoose/types/indexes.js" />
|
||||
/// <reference types="mongoose/types/models.js" />
|
||||
/// <reference types="mongoose/types/mongooseoptions.js" />
|
||||
/// <reference types="mongoose/types/pipelinestage.js" />
|
||||
/// <reference types="mongoose/types/populate.js" />
|
||||
/// <reference types="mongoose/types/query.js" />
|
||||
/// <reference types="mongoose/types/schemaoptions.js" />
|
||||
/// <reference types="mongoose/types/schematypes.js" />
|
||||
/// <reference types="mongoose/types/session.js" />
|
||||
/// <reference types="mongoose/types/types.js" />
|
||||
/// <reference types="mongoose/types/utility.js" />
|
||||
/// <reference types="mongoose/types/validation.js" />
|
||||
/// <reference types="mongoose/types/virtuals.js" />
|
||||
/// <reference types="mongoose/types/inferschematype.js" />
|
||||
import type mongoose from "mongoose";
|
||||
|
||||
export interface PresenceSchema {
|
||||
name: string;
|
||||
url: string;
|
||||
githubUrl: string;
|
||||
folderName: string;
|
||||
presenceJs: string;
|
||||
iframeJs?: string;
|
||||
metadata: PresenceMetadata;
|
||||
}
|
||||
export interface PresenceMetadata {
|
||||
$schema: string;
|
||||
altnames?: string[];
|
||||
author: PresenceMetadataContributor;
|
||||
category: PresenceMetadataCategory;
|
||||
color: string;
|
||||
contributors?: PresenceMetadataContributor[];
|
||||
description: Record<string, string> & {
|
||||
en: string;
|
||||
};
|
||||
iframe?: boolean;
|
||||
iFrameRegExp?: string;
|
||||
logo: string;
|
||||
readLogs?: boolean;
|
||||
regExp?: string;
|
||||
service: string;
|
||||
settings?: PresenceMetadataSetting[];
|
||||
tags: string[];
|
||||
thumbnail: string;
|
||||
url: string | string[];
|
||||
version: `${number}.${number}.${number}`;
|
||||
}
|
||||
export interface PresenceMetadataSetting {
|
||||
icon?: string;
|
||||
id: string;
|
||||
if?: Record<string, unknown>;
|
||||
multiLanguage?: boolean;
|
||||
placeholder?: string;
|
||||
title?: string;
|
||||
value?: string | number | boolean;
|
||||
values?: string[];
|
||||
}
|
||||
export interface PresenceMetadataContributor {
|
||||
id: string;
|
||||
name: string;
|
||||
}
|
||||
export type PresenceMetadataCategory = "other" | "games" | "videos" | "anime" | "music" | "socials";
|
||||
declare const _default: mongoose.Model<PresenceSchema, {}, {}, {}, mongoose.Document<unknown, {}, PresenceSchema> & PresenceSchema & {
|
||||
_id: mongoose.Types.ObjectId;
|
||||
}, mongoose.Schema<PresenceSchema, mongoose.Model<PresenceSchema, any, any, any, mongoose.Document<unknown, any, PresenceSchema> & PresenceSchema & {
|
||||
_id: mongoose.Types.ObjectId;
|
||||
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, PresenceSchema, mongoose.Document<unknown, {}, mongoose.FlatRecord<PresenceSchema>> & mongoose.FlatRecord<PresenceSchema> & {
|
||||
_id: mongoose.Types.ObjectId;
|
||||
}>>;
|
||||
export default _default;
|
||||
// # sourceMappingURL=Presence.d.ts.map
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"Presence.d.ts","sourceRoot":"","sources":["../src/Presence.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAoB,MAAM,UAAU,CAAC;AAE5C,MAAM,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AAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE;CACzC,CAAC,EACF,cAAc,GAAG,IAAI,MAAM,CAAiB;IAC3C,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE;IAC5C,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE;IAC3C,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC1B,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,sBAAsB,EAAE;IAC1D,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE;IACtC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE;IAC5C,GAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE;CACrC,CAAC,CAAC;AAEJ,eAAe,QAAQ,CAAC,KAAK,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC"}
|
||||
2
packages/db/lib/index.d.ts
vendored
2
packages/db/lib/index.d.ts
vendored
@@ -1,2 +0,0 @@
|
||||
export { default as Presence } from "./Presence.js";
|
||||
// # sourceMappingURL=index.d.ts.map
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC"}
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC"}
|
||||
Reference in New Issue
Block a user