Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions app/project/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import Details from '../../components/details';
import Files from '../../components/files';
import Editor from '../../components/editor';
import MultiSelect from '../../components/multiselect';
import { TextField } from '@mui/material';
import { GuideType, withTooltip } from '@/components/tooltip';

const ROOT_URL = `https://open-audio-stack.github.io/open-audio-stack-registry`;
const PKG_FORMATS = projectFormats;
Expand Down Expand Up @@ -55,7 +53,6 @@ function getBlankProjectVersion(): PackageVersion {
changes: '',
files: [getBlankFile()],
plugins: {},
open: '',
};
}

Expand Down Expand Up @@ -100,15 +97,6 @@ export default function Home() {
blankLabel="Select a template"
/>
<Details form={form} pkgTypes={PKG_TYPES} setForm={setForm} version={version} setVersion={setVersion} />
<div className={styles.additionalField}>
<TextField
label={withTooltip(GuideType.Details, 'Project filename to open', 'open')}
variant="filled"
fullWidth
value={(form as ProjectInterface).open ?? ''}
onChange={e => setForm(f => ({ ...f, open: e.target.value }))}
/>
</div>
<div className={styles.additionalField}>
<MultiSelect
value={(form as ProjectInterface).plugins || {}}
Expand Down
9 changes: 9 additions & 0 deletions components/files.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,15 @@ const Files = ({ form, pkgFormats, setForm }: FilesProps) => {
helperText={errors.files && errors.files[index]?.url}
/>
</div>
<div className={styles.formGroup}>
<TextField
label={withTooltip(GuideType.Details, 'File to open', 'open')}
variant="filled"
fullWidth
value={file.open ?? ''}
onChange={e => handleFileChange(index, 'open', e.target.value)}
/>
</div>
<div className={styles.formGroup}>
<TextField
label={withTooltip(GuideType.Files, 'File size', 'size')}
Expand Down
Loading
Loading