From 3408da17c2d8c9d53763e0e8d41359443ddf68c3 Mon Sep 17 00:00:00 2001 From: louiscklaw Date: Wed, 16 Apr 2025 11:17:07 +0800 Subject: [PATCH] update compile ok, --- 002_source/cms/.eslintrc.js | 1 + 002_source/cms/next.config.mjs | 1 + 002_source/cms/package.json | 4 ++-- .../cms/src/components/dashboard/lesson_type/ILessonType.tsx | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/002_source/cms/.eslintrc.js b/002_source/cms/.eslintrc.js index 216a6b4..7a5746b 100644 --- a/002_source/cms/.eslintrc.js +++ b/002_source/cms/.eslintrc.js @@ -81,6 +81,7 @@ module.exports = { '@typescript-eslint/no-empty-function': 'warn', 'eslint-comments/require-description': 'off', 'eslintreact/jsx-sort-props': 'off', + 'react/jsx-sort-props': 'off', }, ignorePatterns: ['**/*del', '**/*bak'], }; diff --git a/002_source/cms/next.config.mjs b/002_source/cms/next.config.mjs index a5c367c..1308494 100644 --- a/002_source/cms/next.config.mjs +++ b/002_source/cms/next.config.mjs @@ -1,5 +1,6 @@ /** @type {import('next').NextConfig} */ const config = { + reactStrictMode: false, images: { domains: ['example.com', '127.0.0.1', 'localhost'], }, diff --git a/002_source/cms/package.json b/002_source/cms/package.json index 7398169..6716b93 100644 --- a/002_source/cms/package.json +++ b/002_source/cms/package.json @@ -7,7 +7,7 @@ "node": ">=18" }, "scripts": { - "dev": "rm -rf .next && next dev", + "dev": "next dev", "build": "rm -rf .next && next build", "build:w": "pnpx nodemon --ext ts,tsx,json,mjs,js,jsx --delay 1 --exec \"pnpm run build\"", "start": "next start", @@ -115,4 +115,4 @@ "protobufjs" ] } -} \ No newline at end of file +} diff --git a/002_source/cms/src/components/dashboard/lesson_type/ILessonType.tsx b/002_source/cms/src/components/dashboard/lesson_type/ILessonType.tsx index 226e1c9..6ed77fb 100644 --- a/002_source/cms/src/components/dashboard/lesson_type/ILessonType.tsx +++ b/002_source/cms/src/components/dashboard/lesson_type/ILessonType.tsx @@ -1,5 +1,6 @@ 'use client'; +// please use src/components/dashboard/lesson_type/interfaces.ts for defining new interfaces import { dayjs } from '@/lib/dayjs'; export interface LessonType {