This commit is contained in:
@@ -41,6 +41,7 @@ const iconOptions = [
|
|||||||
{ value: 'shopping-cart', label: 'Shopping cart' },
|
{ value: 'shopping-cart', label: 'Shopping cart' },
|
||||||
{ value: 'map', label: 'Map' },
|
{ value: 'map', label: 'Map' },
|
||||||
];
|
];
|
||||||
|
const showDevelopmentFields = import.meta.env.DEV;
|
||||||
|
|
||||||
function releaseLabel(link: LauncherAppLink) {
|
function releaseLabel(link: LauncherAppLink) {
|
||||||
return link.release?.version ?? '-';
|
return link.release?.version ?? '-';
|
||||||
@@ -338,24 +339,26 @@ export function LauncherAppsPage() {
|
|||||||
<span className="text-xs font-medium text-muted-foreground">설명</span>
|
<span className="text-xs font-medium text-muted-foreground">설명</span>
|
||||||
<textarea className="mt-2 min-h-20 w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground outline-none focus:ring-2 focus:ring-ring" value={displayForm.description} onChange={(event) => setDisplayForm((prev) => prev ? { ...prev, description: event.target.value } : prev)} />
|
<textarea className="mt-2 min-h-20 w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground outline-none focus:ring-2 focus:ring-ring" value={displayForm.description} onChange={(event) => setDisplayForm((prev) => prev ? { ...prev, description: event.target.value } : prev)} />
|
||||||
</label>
|
</label>
|
||||||
<div className="grid gap-4 md:grid-cols-2">
|
{showDevelopmentFields ? (
|
||||||
<label className="block">
|
<div className="grid gap-4 md:grid-cols-2">
|
||||||
<span className="text-xs font-medium text-muted-foreground">실행 URL</span>
|
<label className="block">
|
||||||
<input className="mt-2 h-9 w-full rounded-md border border-input bg-background px-3 text-sm text-foreground outline-none focus:ring-2 focus:ring-ring" value={displayForm.launchUrl} onChange={(event) => setDisplayForm((prev) => prev ? { ...prev, launchUrl: event.target.value } : prev)} />
|
<span className="text-xs font-medium text-muted-foreground">실행 URL</span>
|
||||||
</label>
|
<input className="mt-2 h-9 w-full rounded-md border border-input bg-background px-3 text-sm text-foreground outline-none focus:ring-2 focus:ring-ring" value={displayForm.launchUrl} onChange={(event) => setDisplayForm((prev) => prev ? { ...prev, launchUrl: event.target.value } : prev)} />
|
||||||
<label className="block">
|
</label>
|
||||||
<span className="text-xs font-medium text-muted-foreground">상세 URL</span>
|
<label className="block">
|
||||||
<input className="mt-2 h-9 w-full rounded-md border border-input bg-background px-3 text-sm text-foreground outline-none focus:ring-2 focus:ring-ring" value={displayForm.detailUrl} onChange={(event) => setDisplayForm((prev) => prev ? { ...prev, detailUrl: event.target.value } : prev)} />
|
<span className="text-xs font-medium text-muted-foreground">자세히 보기 URL 링크</span>
|
||||||
</label>
|
<input className="mt-2 h-9 w-full rounded-md border border-input bg-background px-3 text-sm text-foreground outline-none focus:ring-2 focus:ring-ring" value={displayForm.detailUrl} onChange={(event) => setDisplayForm((prev) => prev ? { ...prev, detailUrl: event.target.value } : prev)} />
|
||||||
<label className="block">
|
</label>
|
||||||
<span className="text-xs font-medium text-muted-foreground">개발 앱 경로</span>
|
<label className="block">
|
||||||
<input className="mt-2 h-9 w-full rounded-md border border-input bg-background px-3 text-sm text-foreground outline-none focus:ring-2 focus:ring-ring" value={displayForm.devAppPath} onChange={(event) => setDisplayForm((prev) => prev ? { ...prev, devAppPath: event.target.value } : prev)} />
|
<span className="text-xs font-medium text-muted-foreground">개발 앱 경로</span>
|
||||||
</label>
|
<input className="mt-2 h-9 w-full rounded-md border border-input bg-background px-3 text-sm text-foreground outline-none focus:ring-2 focus:ring-ring" value={displayForm.devAppPath} onChange={(event) => setDisplayForm((prev) => prev ? { ...prev, devAppPath: event.target.value } : prev)} />
|
||||||
<label className="block">
|
</label>
|
||||||
<span className="text-xs font-medium text-muted-foreground">실행 파일 경로</span>
|
<label className="block">
|
||||||
<input className="mt-2 h-9 w-full rounded-md border border-input bg-background px-3 text-sm text-foreground outline-none focus:ring-2 focus:ring-ring" value={displayForm.execPath} onChange={(event) => setDisplayForm((prev) => prev ? { ...prev, execPath: event.target.value } : prev)} />
|
<span className="text-xs font-medium text-muted-foreground">실행 파일 경로</span>
|
||||||
</label>
|
<input className="mt-2 h-9 w-full rounded-md border border-input bg-background px-3 text-sm text-foreground outline-none focus:ring-2 focus:ring-ring" value={displayForm.execPath} onChange={(event) => setDisplayForm((prev) => prev ? { ...prev, execPath: event.target.value } : prev)} />
|
||||||
</div>
|
</label>
|
||||||
|
</div>
|
||||||
|
) : null}
|
||||||
<div className="grid gap-4 md:grid-cols-2">
|
<div className="grid gap-4 md:grid-cols-2">
|
||||||
<label className="block">
|
<label className="block">
|
||||||
<span className="text-xs font-medium text-muted-foreground">소개 영상 경로</span>
|
<span className="text-xs font-medium text-muted-foreground">소개 영상 경로</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user