Skip to content

Commit 956f75f

Browse files
author
Jules Lefebvre
committed
feat(frontend/admin): add cache section
Add a new section for cache attributes. Also add US translation.
1 parent 413699a commit 956f75f

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

frontend/src/components/admin/configuration/ConfigurationNavBar.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,20 @@ import Link from "next/link";
1313
import { Dispatch, SetStateAction } from "react";
1414
import {
1515
TbAt,
16+
TbBinaryTree,
17+
TbBucket,
1618
TbMail,
19+
TbScale,
20+
TbServerBolt,
21+
TbSettings,
1722
TbShare,
1823
TbSocial,
19-
TbBucket,
20-
TbBinaryTree,
21-
TbSettings,
22-
TbScale,
2324
} from "react-icons/tb";
2425
import { FormattedMessage } from "react-intl";
2526

2627
const categories = [
2728
{ name: "General", icon: <TbSettings /> },
29+
{ name: "Cache", icon: <TbServerBolt /> },
2830
{ name: "Email", icon: <TbMail /> },
2931
{ name: "Share", icon: <TbShare /> },
3032
{ name: "SMTP", icon: <TbAt /> },

frontend/src/i18n/translations/en-US.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ export default {
423423
"admin.config.title": "Configuration",
424424
"admin.config.category.general": "General",
425425
"admin.config.category.share": "Share",
426+
"admin.config.category.cache": "Cache",
426427
"admin.config.category.email": "Email",
427428
"admin.config.category.smtp": "SMTP",
428429
"admin.config.category.oauth": "Social Login",
@@ -446,6 +447,23 @@ export default {
446447
"Change your logo by uploading a new image. The image must be a PNG and should have the format 1:1.",
447448
"admin.config.general.logo.placeholder": "Pick image",
448449

450+
"admin.config.cache.ttl":
451+
"TTL",
452+
"admin.config.cache.ttl.description":
453+
"Time in second to keep information inside the cache",
454+
"admin.config.cache.max-items":
455+
"Maximum items",
456+
"admin.config.cache.max-items.description":
457+
"Maximum number of items inside the cache",
458+
"admin.config.cache.redis-enabled":
459+
"Enabled Redis",
460+
"admin.config.cache.redis-enabled.description":
461+
"Whether to enable Redis caching",
462+
"admin.config.cache.redis-url":
463+
"Redis URL",
464+
"admin.config.cache.redis-url.description":
465+
"Url to connect to the Redis instance used for caching",
466+
449467
"admin.config.email.enable-share-email-recipients":
450468
"Enable email recipient sharing",
451469
"admin.config.email.enable-share-email-recipients.description":

0 commit comments

Comments
 (0)