Skip to content

Commit 092b96e

Browse files
committed
feat: Minor enhancements
1 parent 676e18d commit 092b96e

File tree

6 files changed

+52
-33
lines changed

6 files changed

+52
-33
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"plugin_card": {
3-
"more_info": "More Info"
3+
"more_info": "More Info",
4+
"official_plugin_verified": "Official Plugin Verified"
45
},
56
"plugin_modal": {
67
"description": "Description",
@@ -9,6 +10,7 @@
910
"author": "Author",
1011
"tags": "Tags",
1112
"view_on_npm": "View On NPM",
12-
"likes": "likes"
13+
"likes": "likes",
14+
"official_plugin_verified": "Official Plugin Verified"
1315
}
1416
}

public/locales/en/pages/privacypolicy.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"02": {
1515
"title": "Information We Collect",
1616
"content": [
17-
"OAuth Account Information: When you log in to React ChatBotify Gallery via third-party OAuth providers like GitHub or Google, we collect and store basic information provided by these services, such as your email address and username. We do not store or manage user passwords and rely solely on third-party OAuth providers for authentication.",
17+
"OAuth Account Information: When you log in to React ChatBotify Gallery via third-party OAuth providers like GitHub, we collect and store basic information provided by these services, such as your email address and username. We do not store or manage user passwords and rely solely on third-party OAuth providers for authentication.",
1818
"User Associations: We maintain a simple table that associates users with their linked OAuth accounts. This information is used to manage your access to the platform and ensure that you can access your own themes and plugins.",
1919
"Themes and Plugins Ownership: We store information about the themes and plugins you upload to the platform, including ownership details.",
2020
"Favorites: We store information about the themes and plugins that you have favorited, allowing you to easily access and manage your preferred items."
@@ -52,7 +52,6 @@
5252
"07": {
5353
"title": "Your Rights",
5454
"content": [
55-
"Access and Correction: You have the right to access and correct your personal information. You can do this through your account settings or by contacting us directly.",
5655
"Account Deletion: You can request the deletion of your account and associated data by contacting us. Please note that some information may be retained for legal or administrative purposes."
5756
]
5857
},

public/locales/en/pages/termsofservice.json

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
"01": {
88
"title": "Introduction",
99
"content": [
10-
"Welcome to React ChatBotify Gallery, a platform designed to facilitate the browsing, rating, sharing, and downloading of themes & plugins created by various authors.",
10+
"Welcome to React ChatBotify, a platform designed to facilitate the browsing, rating, sharing, and downloading of themes & plugins created by various authors.",
1111
"We serve as a platform only and do not own or endorse any themes & plugins uploaded by users.",
1212
"By using our service, you agree to comply with and be bound by the following Terms of Service. If you do not agree with these terms, please do not use our service."
1313
]
1414
},
1515
"02": {
1616
"title": "Ownership of Themes & Plugins",
1717
"content": [
18-
"All themes & plugins available on React ChatBotify Gallery are the intellectual property of their respective authors.",
18+
"All themes & plugins available on React ChatBotify are the intellectual property of their respective authors.",
1919
"By uploading content, you represent and warrant that you have the necessary rights to grant us a license to host, distribute, and make available your content to others.",
2020
"We do not claim ownership of any themes & plugins provided through our platform.",
2121
"The rights to these themes & plugins, including any copyrights or trademarks, remain with the original authors."
@@ -33,23 +33,23 @@
3333
"04": {
3434
"title": "Disclaimer of Warranties",
3535
"content": [
36-
{ "point": "4.1", "text": "React ChatBotify Gallery provides themes & plugins on an 'as is' basis without warranties of any kind, either express or implied." },
36+
{ "point": "4.1", "text": "React ChatBotify provides themes & plugins on an 'as is' basis without warranties of any kind, either express or implied." },
3737
{ "point": "4.2", "text": "We do not guarantee that the themes & plugins will meet your requirements, be error-free, or be compatible with your specific environment." },
38-
{ "point": "4.3", "text": "React ChatBotify Gallery does not vet or endorse any themes & plugins available on the platform, and users download and use them at their own risk." },
38+
{ "point": "4.3", "text": "React ChatBotify does not vet or endorse any themes & plugins available on the platform, and users download and use them at their own risk." },
3939
{ "point": "4.4", "text": "We do not make any warranties regarding the security, reliability, or performance of the themes & plugins." }
4040
]
4141
},
4242
"05": {
4343
"title": "Limitation of Liability",
4444
"content": [
45-
{ "point": "5.1", "text": "To the fullest extent permitted by law, React ChatBotify Gallery shall not be held liable for any direct, indirect, incidental, special, or consequential damages arising out of the use or inability to use the themes & plugins, even if we have been advised of the possibility of such damages." },
45+
{ "point": "5.1", "text": "To the fullest extent permitted by law, React ChatBotify shall not be held liable for any direct, indirect, incidental, special, or consequential damages arising out of the use or inability to use the themes & plugins, even if we have been advised of the possibility of such damages." },
4646
{ "point": "5.2", "text": "This includes but is not limited to damages related to loss of data, profits, or business interruption." }
4747
]
4848
},
4949
"06": {
5050
"title": "Indemnification",
5151
"content": [
52-
"You agree to indemnify and hold harmless React ChatBotify Gallery, its affiliates, and its members from any claims, damages, losses, or legal fees arising from your use of the themes & plugins, your violation of these Terms of Service, or your violation of any rights of another."
52+
"You agree to indemnify and hold harmless React ChatBotify, its affiliates, and its members from any claims, damages, losses, or legal fees arising from your use of the themes & plugins, your violation of these Terms of Service, or your violation of any rights of another."
5353
]
5454
},
5555
"07": {
@@ -82,7 +82,7 @@
8282
"11": {
8383
"title": "Content Removal",
8484
"content": [
85-
"React ChatBotify Gallery reserves the right to remove any content that violates these terms or is deemed inappropriate at our discretion, without notice."
85+
"React ChatBotify reserves the right to remove any content that violates these terms or is deemed inappropriate at our discretion, without notice."
8686
]
8787
},
8888
"12": {
@@ -97,12 +97,6 @@
9797
"content": [
9898
"We reserve the right to terminate or suspend your account at any time, with or without cause, and with or without notice, especially if you violate these terms."
9999
]
100-
},
101-
"14": {
102-
"title": "Age Requirement",
103-
"content": [
104-
"By using React ChatBotify Gallery, you affirm that you are at least 13 years of age or older, or have parental consent if younger, in compliance with applicable laws."
105-
]
106100
}
107101
}
108102
}
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"plugin_card": {
3-
"more_info": "更多信息"
3+
"more_info": "更多信息",
4+
"official_plugin_verified": "官方认证插件"
45
},
56
"plugin_modal": {
67
"description": "描述",
@@ -9,6 +10,7 @@
910
"author": "作者",
1011
"tags": "标签",
1112
"view_on_npm": "在 NPM 上查看",
12-
"likes": "点赞"
13+
"likes": "点赞",
14+
"official_plugin_verified": "官方认证插件"
1315
}
1416
}

src/components/Plugins/PluginCard.tsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
import CheckCircleIcon from '@mui/icons-material/CheckCircle';
12
import { Box, Card, CardContent, CardMedia, IconButton, Typography } from '@mui/material';
23
import { Heart } from 'lucide-react';
34
import React from 'react';
45
import { useTranslation } from 'react-i18next';
56

67
import defaultPluginIcon from '@/assets/images/PluginsPage/default_plugin_icon.webp';
8+
import GalleryTooltip from '@/components/GalleryTooltip/GalleryTooltip';
79
import useIsDesktop from '@/hooks/useIsDesktop';
810

911
import { Plugin } from '../../interfaces/Plugin';
@@ -59,9 +61,16 @@ const PluginCard: React.FC<{
5961
}}
6062
/>
6163
<CardContent>
62-
<Typography variant="h6" sx={{ fontWeight: 'bold' }}>
63-
{plugin.name}
64-
</Typography>
64+
<Box sx={{ display: 'flex', alignItems: 'center' }}>
65+
{plugin.name.startsWith('@rcb-plugins/') && (
66+
<GalleryTooltip content={t('plugin_card.official_plugin_verified')} placement="top">
67+
<CheckCircleIcon color="primary" sx={{ fontSize: '1.25rem', mr: 1, mt: 1 }} />
68+
</GalleryTooltip>
69+
)}
70+
<Typography variant="h6" sx={{ fontWeight: 'bold' }}>
71+
{plugin.name}
72+
</Typography>
73+
</Box>
6574
<Typography
6675
variant="body2"
6776
color="text.secondary"

src/components/Plugins/PluginModal.tsx

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import CheckCircleIcon from '@mui/icons-material/CheckCircle';
12
import CloseIcon from '@mui/icons-material/Close';
23
import { Avatar, Box, Button, Chip, Grid, IconButton, Modal, Typography } from '@mui/material';
34
import { Heart } from 'lucide-react';
@@ -6,6 +7,7 @@ import ReactDOM from 'react-dom';
67
import { useTranslation } from 'react-i18next';
78

89
import defaultPluginIcon from '@/assets/images/PluginsPage/default_plugin_icon.webp';
10+
import GalleryTooltip from '@/components/GalleryTooltip/GalleryTooltip';
911

1012
import { Plugin } from '../../interfaces/Plugin';
1113

@@ -79,17 +81,28 @@ const PluginModal: React.FC<{
7981
}}
8082
spacing={0}
8183
>
82-
<Typography
83-
id="plugin-modal-title"
84-
variant="h5"
85-
sx={{
86-
color: 'text.primary',
87-
fontWeight: 'bold',
88-
mb: 1,
89-
}}
90-
>
91-
{plugin.name}
92-
</Typography>
84+
<Box id="plugin-modal-title" sx={{ display: 'flex', alignItems: 'center', mb: 1 }}>
85+
{plugin.name.startsWith('@rcb-plugins/') && (
86+
<GalleryTooltip content={t('plugin_card.official_plugin_verified')}>
87+
<CheckCircleIcon
88+
color="primary"
89+
sx={{
90+
fontSize: '1.75rem',
91+
marginRight: 1,
92+
}}
93+
/>
94+
</GalleryTooltip>
95+
)}
96+
<Typography
97+
variant="h5"
98+
sx={{
99+
color: 'text.primary',
100+
fontWeight: 'bold',
101+
}}
102+
>
103+
{plugin.name}
104+
</Typography>
105+
</Box>
93106

94107
<Box display="flex" alignItems="center" sx={{ mb: 2 }}>
95108
{plugin.authorImg && (

0 commit comments

Comments
 (0)