fix: 解决lint问题

This commit is contained in:
luch1994 2024-09-27 19:47:55 +08:00
parent bcb41c68fb
commit ac0216cb64
10 changed files with 22 additions and 16 deletions

View File

@ -58,7 +58,5 @@ const readData = async (directory: string): Promise<PackageJson | null> => {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
body: JSON.stringify(res), body: JSON.stringify(res),
}).catch((e) => { }).catch(() => {});
console.log(99999, e);
});
})(); })();

View File

@ -44,8 +44,6 @@ import { PluginManagerProvider } from './securityPlugin/pluginManager.provider';
import { LogRequestMiddleware } from './middlewares/logRequest.middleware'; import { LogRequestMiddleware } from './middlewares/logRequest.middleware';
import { PluginManager } from './securityPlugin/pluginManager'; import { PluginManager } from './securityPlugin/pluginManager';
import { Logger } from './logger'; import { Logger } from './logger';
import { DownloadTask } from './models/downloadTask.entity';
import { Session } from './models/session.entity';
@Module({ @Module({
imports: [ imports: [

View File

@ -12,7 +12,7 @@ export class LogRequestMiddleware implements NestMiddleware {
const userAgent = req.get('user-agent') || ''; const userAgent = req.get('user-agent') || '';
const startTime = Date.now(); const startTime = Date.now();
const traceId = genTraceId({ ip }); const traceId = genTraceId({ ip });
this.logger.setTraceId(traceId); req['traceId'] = traceId;
const query = JSON.stringify(req.query); const query = JSON.stringify(req.query);
const body = JSON.stringify(req.body); const body = JSON.stringify(req.body);
this.logger.info( this.logger.info(

View File

@ -33,4 +33,10 @@ export class MessagePushingTask extends BaseEntity {
@Column() @Column()
deletedAt: Date; deletedAt: Date;
@Column()
operator: string;
@Column()
operatorId: string;
} }

View File

@ -21,7 +21,8 @@ export const mockSensitiveResponseSchema: ResponseSchema = {
code: { code: {
bannerConf: { bannerConf: {
titleConfig: { titleConfig: {
mainTitle: '<h3 style="text-align: center">欢迎填写问卷</h3><p>为了给您提供更好的服务,希望您能抽出几分钟时间,将您的感受和建议告诉我们,<span style="color: rgb(204, 0, 0)">期待您的参与!</span></p>', mainTitle:
'<h3 style="text-align: center">欢迎填写问卷</h3><p>为了给您提供更好的服务,希望您能抽出几分钟时间,将您的感受和建议告诉我们,<span style="color: rgb(204, 0, 0)">期待您的参与!</span></p>',
subTitle: '', subTitle: '',
}, },
bannerConfig: { bannerConfig: {
@ -318,11 +319,13 @@ export const mockResponseSchema: ResponseSchema = {
code: { code: {
bannerConf: { bannerConf: {
titleConfig: { titleConfig: {
mainTitle: '<h3 style="text-align: center">欢迎填写问卷</h3><p>为了给您提供更好的服务,希望您能抽出几分钟时间,将您的感受和建议告诉我们,<span style="color: rgb(204, 0, 0)">期待您的参与!</span></p>', mainTitle:
'<h3 style="text-align: center">欢迎填写问卷</h3><p>为了给您提供更好的服务,希望您能抽出几分钟时间,将您的感受和建议告诉我们,<span style="color: rgb(204, 0, 0)">期待您的参与!</span></p>',
subTitle: '', subTitle: '',
}, },
bannerConfig: { bannerConfig: {
bgImage: 'http://10.190.55.101:3000/imgs/skin/17e06b7604a007e1d3e1453b9ddadc3c.webp', bgImage:
'http://10.190.55.101:3000/imgs/skin/17e06b7604a007e1d3e1453b9ddadc3c.webp',
videoLink: '', videoLink: '',
postImg: '', postImg: '',
}, },

View File

@ -25,7 +25,8 @@ export const mockResponseSchema: ResponseSchema = {
code: { code: {
bannerConf: { bannerConf: {
titleConfig: { titleConfig: {
mainTitle: '<h3 style="text-align: center">欢迎填写问卷</h3><p>为了给您提供更好的服务,希望您能抽出几分钟时间,将您的感受和建议告诉我们,<span style="color: rgb(204, 0, 0)">期待您的参与!</span></p>', mainTitle:
'<h3 style="text-align: center">欢迎填写问卷</h3><p>为了给您提供更好的服务,希望您能抽出几分钟时间,将您的感受和建议告诉我们,<span style="color: rgb(204, 0, 0)">期待您的参与!</span></p>',
subTitle: '', subTitle: '',
}, },
bannerConfig: { bannerConfig: {

View File

@ -2,7 +2,7 @@ import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm'; import { InjectRepository } from '@nestjs/typeorm';
import { MongoRepository } from 'typeorm'; import { MongoRepository } from 'typeorm';
import { SurveyResponse } from 'src/models/surveyResponse.entity'; import { SurveyResponse } from 'src/models/surveyResponse.entity';
import { RECORD_STATUS } from 'src/enums';
@Injectable() @Injectable()
export class SurveyResponseService { export class SurveyResponseService {
constructor( constructor(

View File

@ -1,4 +1,4 @@
import { computed, defineComponent, shallowRef, defineAsyncComponent, watch } from 'vue' import { computed, defineComponent, shallowRef, defineAsyncComponent } from 'vue'
import { includes } from 'lodash-es' import { includes } from 'lodash-es'
import BaseChoice from '../BaseChoice' import BaseChoice from '../BaseChoice'
@ -61,7 +61,7 @@ export default defineComponent({
return options.map((item) => { return options.map((item) => {
return { return {
...item, ...item,
disabled: (item.release === 0) || isDisabled(item) disabled: isDisabled(item)
} }
}) })
}) })
@ -93,7 +93,6 @@ export default defineComponent({
return { return {
onChange, onChange,
handleSelectMoreChange, handleSelectMoreChange,
disableState,
myOptions, myOptions,
selectMoreView selectMoreView
} }

View File

@ -1,4 +1,4 @@
import { defineComponent, shallowRef, watch, defineAsyncComponent } from 'vue' import { defineComponent, shallowRef, defineAsyncComponent } from 'vue'
import BaseChoice from '../BaseChoice' import BaseChoice from '../BaseChoice'
/** /**

View File

@ -5,7 +5,8 @@
"vitest.config.*", "vitest.config.*",
"cypress.config.*", "cypress.config.*",
"nightwatch.conf.*", "nightwatch.conf.*",
"playwright.config.*" "playwright.config.*",
"report.ts"
], ],
"compilerOptions": { "compilerOptions": {
"composite": true, "composite": true,