Shun Miyazawa 6 месяцев назад
Родитель
Сommit
9cd390ce15

Разница между файлами не показана из-за своего большого размера
+ 41 - 0
packages/core/vite.config.ts.timestamp-1758189633784-f32164351a199.mjs


+ 1 - 1
packages/presentation/src/client/components/GrowiSlides.tsx

@@ -30,7 +30,7 @@ export const GrowiSlides = (props: Props): JSX.Element => {
     rendererOptions.remarkPlugins == null ||
     rendererOptions.components == null
   ) {
-    return <></>;
+    return;
   }
 
   rendererOptions.remarkPlugins.push([

Разница между файлами не показана из-за своего большого размера
+ 41 - 0
packages/presentation/vite.config.ts.timestamp-1758189633827-c8683482be342.mjs


+ 1 - 1
packages/remark-attachment-refs/src/client/components/ExtractedAttachments.tsx

@@ -107,7 +107,7 @@ export const ExtractedAttachments = React.memo(
 
     // eslint-disable-next-line @typescript-eslint/no-unused-vars
     const renderExtractedImage = useCallback(
-      (attachment: IAttachmentHasId, index: number) => {
+      (attachment: IAttachmentHasId, _index: number) => {
         const { options } = refsContext;
 
         // determine alt

+ 2 - 2
packages/remark-attachment-refs/src/server/routes/refs.ts

@@ -62,7 +62,7 @@ function addDepthCondition(query, pagePath, optionsDepth) {
 
 type RequestWithUser = Request & { user: HydratedDocument<IUser> };
 
-const loginRequiredFallback = (req, res) => {
+const loginRequiredFallback = (_req, res) => {
   return res.status(403).send('login required');
 };
 
@@ -203,7 +203,7 @@ export const routesFactory = (crowi): any => {
 
         try {
           regex = generateRegexp(regexOptionValue);
-        } catch (err) {
+        } catch {
           res.status(400).send("the 'regex' option is invalid as RegExp.");
           return;
         }

+ 2 - 2
packages/remark-drawio/src/components/DrawioViewer.tsx

@@ -103,8 +103,8 @@ export const DrawioViewer = memo((props: DrawioViewerProps): JSX.Element => {
 
     const code = Array.isArray(children)
       ? children
-        .filter((elem) => typeof elem === 'string') // omit non-string elements (e.g. br element generated by line-breaks option)
-        .join('')
+          .filter((elem) => typeof elem === 'string') // omit non-string elements (e.g. br element generated by line-breaks option)
+          .join('')
       : children.toString();
 
     let mxgraphData: string | undefined;

Разница между файлами не показана из-за своего большого размера
+ 34 - 0
packages/remark-drawio/vite.config.ts.timestamp-1758189633770-3b03dbef4b115.mjs


+ 1 - 1
packages/remark-lsx/src/client/components/Lsx.tsx

@@ -93,7 +93,7 @@ const LsxSubstance = React.memo(
 
     const contents = useMemo(() => {
       if (data == null) {
-        return <></>;
+        return;
       }
 
       const depthRange = lsxContext.getOptDepth();

+ 1 - 1
packages/remark-lsx/src/server/index.ts

@@ -5,7 +5,7 @@ import { FilterXSS } from 'xss';
 import type { LsxApiOptions } from '../interfaces/api';
 import { listPages } from './routes/list-pages';
 
-const loginRequiredFallback = (req: Request, res: Response) => {
+const loginRequiredFallback = (_req: Request, res: Response) => {
   return res.status(403).send('login required');
 };
 

+ 1 - 1
packages/slack/src/middlewares/verify-slack-request.ts

@@ -40,7 +40,7 @@ export const verifySlackRequest = (
   }
 
   // protect against replay attacks
-  const time = Math.floor(new Date().getTime() / 1000);
+  const time = Math.floor(Date.now() / 1000);
   if (Math.abs(time - timestamp) > 300) {
     const message = 'Verification failed.';
     logger.warn(message, { body: req.body });

+ 0 - 1
packages/slack/src/utils/block-kit-builder.ts

@@ -9,7 +9,6 @@ import type {
   InputBlock,
   MultiSelect,
   Option,
-  Overflow,
   PlainTextInput,
   RadioButtons,
   SectionBlock,

Разница между файлами не показана из-за своего большого размера
+ 41 - 0
packages/slack/vite.config.ts.timestamp-1758189633790-d8e8cbc5a246c.mjs


+ 3 - 0
packages/ui/src/components/PagePath/PageListMeta.tsx

@@ -18,6 +18,7 @@ const SeenUsersCount = (props: SeenUsersCountProps): JSX.Element => {
   const { count, shouldSpaceOutIcon, basisViewersCount } = props;
 
   if (count === 0) {
+    // biome-ignore lint/complexity/noUselessFragments: ignore
     return <></>;
   }
 
@@ -25,6 +26,7 @@ const SeenUsersCount = (props: SeenUsersCountProps): JSX.Element => {
     basisViewersCount != null &&
     basisViewersCount <= SEEN_USERS_HIDE_THRES__ACTIVE_USERS_COUNT
   ) {
+    // biome-ignore lint/complexity/noUselessFragments: ignore
     return <></>;
   }
 
@@ -35,6 +37,7 @@ const SeenUsersCount = (props: SeenUsersCountProps): JSX.Element => {
   );
 
   if (strengthLevel > MAX_STRENGTH_LEVEL) {
+    // biome-ignore lint/complexity/noUselessFragments: ignore
     return <></>;
   }
 

+ 2 - 1
packages/ui/src/components/PagePath/PagePathLabel.tsx

@@ -14,7 +14,7 @@ const TextElement: FC<TextElemProps> = (props: TextElemProps) => (
         dangerouslySetInnerHTML={{ __html: props.children?.toString() || '' }}
       />
     ) : (
-      <>{props.children}</>
+      props.children
     )}
   </>
 );
@@ -48,6 +48,7 @@ export const PagePathLabel: FC<Props> = (props: Props) => {
     );
   } else if (isFormerOnly) {
     textElem = dPagePath.isFormerRoot ? (
+      // biome-ignore lint/complexity/noUselessFragments: ignore
       <>/</>
     ) : (
       <TextElement isHTML={isPathIncludedHtml}>{dPagePath.former}</TextElement>

+ 4 - 1
packages/ui/src/components/UserPicture.tsx

@@ -1,6 +1,7 @@
 import type { IUser, Ref } from '@growi/core';
 import { pagePathUtils } from '@growi/core/dist/utils';
 import dynamic from 'next/dynamic';
+import Image from 'next/image';
 import { useRouter } from 'next/router';
 import {
   forwardRef,
@@ -181,7 +182,9 @@ export const UserPicture = memo((userProps: Props): JSX.Element => {
     .filter(Boolean)
     .join(' ');
 
-  const imgElement = <img src={src} alt={displayName} className={className} />;
+  const imgElement = (
+    <Image src={src} alt={displayName} className={className} />
+  );
   const baseProps = { displayName, size, children: imgElement };
 
   if (username == null || noLink) {

Разница между файлами не показана из-за своего большого размера
+ 43 - 0
packages/ui/vite.config.ts.timestamp-1758190360976-115ca7355f39c.mjs


Разница между файлами не показана из-за своего большого размера
+ 43 - 0
packages/ui/vite.config.ts.timestamp-1758190379746-fbfa92c45b584.mjs


Некоторые файлы не были показаны из-за большого количества измененных файлов