Просмотр исходного кода

Code improvement

https://youtrack.weseek.co.jp/issue/GW-7759
- Update message of appLimiter
- Add padding to brand logo
mudana 3 лет назад
Родитель
Сommit
9d27a50b02

+ 1 - 1
packages/app/src/components/Navbar/GrowiNavbar.tsx

@@ -113,7 +113,7 @@ const GrowiNavbarLogo: FC<NavbarLogoProps> = memo((props: NavbarLogoProps) => {
 
 
   const { logoSrc } = props;
   const { logoSrc } = props;
   return logoSrc != null
   return logoSrc != null
-    ? (<img src={logoSrc} className="picture picture-lg " id="settingBrandLogo" width="32" />)
+    ? (<img src={logoSrc} className="picture picture-lg p-2" id="settingBrandLogo" width="32" />)
     : <GrowiLogo />;
     : <GrowiLogo />;
 
 
 });
 });

+ 1 - 1
packages/app/src/server/routes/apiv3/customize-setting.js

@@ -19,7 +19,7 @@ const apiLimiter = rateLimit({
   windowMs: 15 * 60 * 1000, // 15 minutes
   windowMs: 15 * 60 * 1000, // 15 minutes
   max: 10, // limit each IP to 10 requests per windowMs
   max: 10, // limit each IP to 10 requests per windowMs
   message:
   message:
-    'Too many requests were sent from this IP. Please try a password reset request again on the password reset request form',
+    'Too many requests sent from this IP, please try again after 15 minutes',
 });
 });
 
 
 /**
 /**