change app template default author (#2893)

This commit is contained in:
heheer
2024-10-12 09:59:16 +08:00
committed by shilin66
parent ce898473a9
commit 07613749bc
13 changed files with 15 additions and 13 deletions

View File

@@ -309,7 +309,7 @@ const RenderList = React.memo(function RenderList({
</Box>
{item.author !== undefined && (
<Box fontSize={'xs'} mr={3}>
{`by ${item.author || feConfigs.systemTitle}`}
{`By ${item.author || feConfigs.systemTitle}`}
</Box>
)}
{selected ? (

View File

@@ -24,6 +24,7 @@ import {
getTemplateMarketItemDetail,
getTemplateMarketItemList
} from '@/web/core/app/api/template';
import { useSystemStore } from '@/web/common/system/useSystemStore';
type FormType = {
avatar: string;
@@ -46,6 +47,7 @@ const CreateModal = ({
const router = useRouter();
const { parentId, loadMyApps } = useContextSelector(AppListContext, (v) => v);
const { isPc } = useSystem();
const { feConfigs } = useSystemStore();
const typeMap = useRef({
[AppTypeEnum.simple]: {
@@ -257,7 +259,7 @@ const CreateModal = ({
{t(item.intro as any)}
</Box>
<Box w={'full'} fontSize={'mini'}>
<Box color={'myGray.500'}>By {item.author}</Box>
<Box color={'myGray.500'}>{`By ${item.author || feConfigs.systemTitle}`}</Box>
<Box
className="buttons"
display={'none'}

View File

@@ -189,7 +189,7 @@ const TemplateMarketModal = ({
</Box>
<Box w={'full'} fontSize={'mini'}>
<Box color={'myGray.500'}>By {item.author}</Box>
<Box color={'myGray.500'}>{`by ${item.author || feConfigs.systemTitle}`}</Box>
<Box
className="buttons"
display={'none'}