refactor: database structure

This commit is contained in:
2025-01-03 04:42:42 +08:00
parent 70932900cd
commit 917af7320e
462 changed files with 1223 additions and 724 deletions

0
apps/app/.env.development Normal file → Executable file
View File

0
apps/app/.env.example Normal file → Executable file
View File

0
apps/app/.gitignore vendored Normal file → Executable file
View File

0
apps/app/__tests__/sign-in.test.tsx Normal file → Executable file
View File

0
apps/app/__tests__/sign-up.test.tsx Normal file → Executable file
View File

View File

View File

0
apps/app/app/(authenticated)/components/cursors.tsx Normal file → Executable file
View File

0
apps/app/app/(authenticated)/components/header.tsx Normal file → Executable file
View File

View File

0
apps/app/app/(authenticated)/components/sidebar.tsx Normal file → Executable file
View File

0
apps/app/app/(authenticated)/layout.tsx Normal file → Executable file
View File

0
apps/app/app/(authenticated)/page.tsx Normal file → Executable file
View File

0
apps/app/app/(authenticated)/webhooks/page.tsx Normal file → Executable file
View File

0
apps/app/app/(unauthenticated)/layout.tsx Normal file → Executable file
View File

View File

View File

0
apps/app/app/.well-known/vercel/flags/route.ts Normal file → Executable file
View File

0
apps/app/app/actions/users/get.ts Normal file → Executable file
View File

0
apps/app/app/actions/users/search.ts Normal file → Executable file
View File

0
apps/app/app/api/collaboration/auth/route.ts Normal file → Executable file
View File

0
apps/app/app/apple-icon.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 216 B

After

Width:  |  Height:  |  Size: 216 B

0
apps/app/app/cron/keep-alive/route.ts Normal file → Executable file
View File

0
apps/app/app/global-error.tsx Normal file → Executable file
View File

0
apps/app/app/health/route.ts Normal file → Executable file
View File

0
apps/app/app/icon.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 96 B

After

Width:  |  Height:  |  Size: 96 B

0
apps/app/app/layout.tsx Normal file → Executable file
View File

0
apps/app/app/opengraph-image.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 57 KiB

0
apps/app/instrumentation.ts Normal file → Executable file
View File

0
apps/app/liveblocks.config.ts Normal file → Executable file
View File

0
apps/app/middleware.ts Normal file → Executable file
View File

0
apps/app/next.config.ts Normal file → Executable file
View File

0
apps/app/package.json Normal file → Executable file
View File

0
apps/app/postcss.config.mjs Normal file → Executable file
View File

0
apps/app/sentry.client.config.ts Normal file → Executable file
View File

0
apps/app/tailwind.config.ts Normal file → Executable file
View File

0
apps/app/tsconfig.json Normal file → Executable file
View File

0
apps/app/vercel.json Normal file → Executable file
View File

0
apps/app/vitest.config.ts Normal file → Executable file
View File

0
apps/docs/api-reference/endpoint/create.mdx Normal file → Executable file
View File

0
apps/docs/api-reference/endpoint/delete.mdx Normal file → Executable file
View File

0
apps/docs/api-reference/endpoint/get.mdx Normal file → Executable file
View File

0
apps/docs/api-reference/introduction.mdx Normal file → Executable file
View File

0
apps/docs/api-reference/openapi.json Normal file → Executable file
View File

0
apps/docs/development.mdx Normal file → Executable file
View File

0
apps/docs/essentials/code.mdx Normal file → Executable file
View File

0
apps/docs/essentials/images.mdx Normal file → Executable file
View File

0
apps/docs/essentials/markdown.mdx Normal file → Executable file
View File

0
apps/docs/essentials/navigation.mdx Normal file → Executable file
View File

0
apps/docs/essentials/reusable-snippets.mdx Normal file → Executable file
View File

0
apps/docs/essentials/settings.mdx Normal file → Executable file
View File

0
apps/docs/favicon.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

0
apps/docs/images/checks-passed.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 157 KiB

After

Width:  |  Height:  |  Size: 157 KiB

0
apps/docs/images/hero-dark.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

0
apps/docs/images/hero-light.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

0
apps/docs/introduction.mdx Normal file → Executable file
View File

0
apps/docs/logo/dark.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 9.3 KiB

After

Width:  |  Height:  |  Size: 9.3 KiB

0
apps/docs/logo/light.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

0
apps/docs/mint.json Normal file → Executable file
View File

0
apps/docs/package.json Normal file → Executable file
View File

0
apps/docs/quickstart.mdx Normal file → Executable file
View File

0
apps/docs/snippets/snippet-intro.mdx Normal file → Executable file
View File

0
apps/email-playground/.gitignore vendored Normal file → Executable file
View File

0
apps/email-playground/emails/contact.tsx Normal file → Executable file
View File

0
apps/email-playground/package.json Normal file → Executable file
View File

0
apps/email-playground/tsconfig.json Normal file → Executable file
View File

0
apps/proxy/.whistle/.gitignore vendored Normal file → Executable file
View File

0
apps/proxy/.whistle/properties/properties Normal file → Executable file
View File

0
apps/proxy/.whistle/rules/files/0.webui Normal file → Executable file
View File

0
apps/proxy/.whistle/rules/files/2.recorder Normal file → Executable file
View File

0
apps/proxy/.whistle/rules/properties Normal file → Executable file
View File

0
apps/proxy/.whistle/values/properties Normal file → Executable file
View File

0
apps/proxy/package.json Normal file → Executable file
View File

0
apps/recorder/.devcontainer/Dockerfile Normal file → Executable file
View File

0
apps/recorder/.devcontainer/devcontainer.json Normal file → Executable file
View File

0
apps/recorder/.devcontainer/docker-compose.yml Normal file → Executable file
View File

0
apps/recorder/.github/workflows/ci.yaml vendored Normal file → Executable file
View File

0
apps/recorder/.gitignore vendored Normal file → Executable file
View File

4
apps/recorder/Cargo.toml Normal file → Executable file
View File

@@ -44,7 +44,7 @@ axum = "0.7.9"
uuid = { version = "1.6.0", features = ["v4"] }
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
sea-orm-migration = { version = "1", features = ["runtime-tokio-rustls"] }
reqwest = "0.12.9"
reqwest = { version = "0.12.9" }
thiserror = "2"
rss = "2"
bytes = "1.9"
@@ -85,6 +85,8 @@ testcontainers-modules = { version = "0.11.4", optional = true }
log = "0.4.22"
anyhow = "1.0.95"
bollard = { version = "0.18", optional = true }
async-graphql = "7.0.13"
async-graphql-axum = "7.0.13"
[dev-dependencies]

0
apps/recorder/examples/playground.rs Normal file → Executable file
View File

2
apps/recorder/src/app.rs Normal file → Executable file
View File

@@ -20,7 +20,7 @@ use crate::{
dal::{AppDalClient, AppDalInitalizer},
extract::mikan::{client::AppMikanClientInitializer, AppMikanClient},
migrations::Migrator,
models::entities::subscribers,
models::subscribers,
workers::subscription_worker::SubscriptionWorker,
};

0
apps/recorder/src/auth/basic.rs Normal file → Executable file
View File

2
apps/recorder/src/auth/config.rs Normal file → Executable file
View File

@@ -24,7 +24,7 @@ pub struct OidcAuthConfig {
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type", rename_all = "snake_case")]
#[serde(tag = "auth_type", rename_all = "snake_case")]
pub enum AppAuthConfig {
Basic(BasicAuthConfig),
Oidc(OidcAuthConfig),

0
apps/recorder/src/auth/errors.rs Normal file → Executable file
View File

0
apps/recorder/src/auth/mod.rs Normal file → Executable file
View File

0
apps/recorder/src/auth/oidc.rs Normal file → Executable file
View File

0
apps/recorder/src/auth/service.rs Normal file → Executable file
View File

0
apps/recorder/src/bin/main.rs Normal file → Executable file
View File

0
apps/recorder/src/config/mod.rs Normal file → Executable file
View File

0
apps/recorder/src/config/settings_mixin.yaml Normal file → Executable file
View File

0
apps/recorder/src/controllers/bangumi.rs Normal file → Executable file
View File

0
apps/recorder/src/controllers/episodes.rs Normal file → Executable file
View File

0
apps/recorder/src/controllers/mod.rs Normal file → Executable file
View File

2
apps/recorder/src/controllers/subscribers.rs Normal file → Executable file
View File

@@ -1,6 +1,6 @@
use loco_rs::prelude::*;
use crate::{models::entities::subscribers, views::subscribers::CurrentResponse};
use crate::{models::subscribers, views::subscribers::CurrentResponse};
async fn current(State(ctx): State<AppContext>) -> Result<impl IntoResponse> {
let subscriber = subscribers::Model::find_root(&ctx).await?;

0
apps/recorder/src/controllers/subscriptions.rs Normal file → Executable file
View File

0
apps/recorder/src/dal/client.rs Normal file → Executable file
View File

0
apps/recorder/src/dal/config.rs Normal file → Executable file
View File

0
apps/recorder/src/dal/mod.rs Normal file → Executable file
View File

0
apps/recorder/src/extract/defs.rs Normal file → Executable file
View File

0
apps/recorder/src/extract/errors.rs Normal file → Executable file
View File

Some files were not shown because too many files have changed in this diff Show More