mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 09:06:19 +08:00
chore: rename fundamentals to base (#9119)
This commit is contained in:
@@ -2,7 +2,7 @@ import {
|
||||
defineRuntimeConfig,
|
||||
defineStartupConfig,
|
||||
ModuleConfig,
|
||||
} from '../../fundamentals/config';
|
||||
} from '../../base/config';
|
||||
import { CaptchaConfig } from './types';
|
||||
|
||||
declare module '../config' {
|
||||
@@ -16,7 +16,7 @@ declare module '../config' {
|
||||
}
|
||||
}
|
||||
|
||||
declare module '../../fundamentals/guard' {
|
||||
declare module '../../base/guard' {
|
||||
interface RegisterGuardName {
|
||||
captcha: 'captcha';
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
|
||||
import { Throttle } from '../../base';
|
||||
import { Public } from '../../core/auth';
|
||||
import { Throttle } from '../../fundamentals';
|
||||
import { CaptchaService } from './service';
|
||||
|
||||
@Throttle('strict')
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
Config,
|
||||
getRequestResponseFromContext,
|
||||
GuardProvider,
|
||||
} from '../../fundamentals';
|
||||
} from '../../base';
|
||||
import { CaptchaService } from './service';
|
||||
|
||||
@Injectable()
|
||||
|
||||
@@ -6,12 +6,12 @@ import type { Request } from 'express';
|
||||
import { nanoid } from 'nanoid';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { TokenService, TokenType } from '../../core/auth/token';
|
||||
import {
|
||||
CaptchaVerificationFailed,
|
||||
Config,
|
||||
verifyChallengeResponse,
|
||||
} from '../../fundamentals';
|
||||
} from '../../base';
|
||||
import { TokenService, TokenType } from '../../core/auth/token';
|
||||
import { CaptchaConfig } from './types';
|
||||
|
||||
const validator = z
|
||||
|
||||
Reference in New Issue
Block a user