refactor: repartition server-side and client-side code

This commit is contained in:
LIlGG
2025-10-11 18:26:07 +08:00
parent 7acc4949fb
commit e9b573a276
309 changed files with 631 additions and 962 deletions

View File

@@ -1,6 +1,6 @@
import type { LoaderFunctionArgs } from '@remix-run/node';
import { data } from '@remix-run/node';
import { getAuthError } from '~/lib/.server/auth';
import { getAuthError } from '~/.server/service/auth';
/**
* 检查认证错误信息的路由

View File

@@ -1,5 +1,5 @@
import type { LoaderFunctionArgs } from '@remix-run/node';
import { logto } from '~/lib/.server/auth';
import { logto } from '~/.server/service/auth';
import { checkErrorLoader } from './check-error.server';
import { userLoader } from './user.server';

View File

@@ -1,5 +1,5 @@
import { data, type LoaderFunctionArgs } from '@remix-run/node';
import { getUser } from '~/lib/.server/auth';
import { getUser } from '~/.server/service/auth';
/**
* 用户信息API端点