mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-27 13:38:40 +00:00
begin pattern import button
This commit is contained in:
parent
ac2e450e38
commit
a750490eea
@ -44,6 +44,20 @@ export function PatternsTab({ context }) {
|
|||||||
<button className="hover:opacity-50" onClick={() => clearUserPatterns()}>
|
<button className="hover:opacity-50" onClick={() => clearUserPatterns()}>
|
||||||
clear
|
clear
|
||||||
</button>
|
</button>
|
||||||
|
<label className="hover:opacity-50 cursor-pointer">
|
||||||
|
<input
|
||||||
|
style={{ display: 'none' }}
|
||||||
|
type="file"
|
||||||
|
directory=""
|
||||||
|
webkitdirectory=""
|
||||||
|
multiple
|
||||||
|
accept="audio/*"
|
||||||
|
onChange={(e) => {
|
||||||
|
console.log('change', e.target.files);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
import
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
{Object.entries(userPatterns).map(([key, up]) => (
|
{Object.entries(userPatterns).map(([key, up]) => (
|
||||||
<a
|
<a
|
||||||
@ -83,11 +97,3 @@ export function PatternsTab({ context }) {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
selectable examples
|
|
||||||
if example selected
|
|
||||||
type character -> create new user pattern with exampleName_n
|
|
||||||
even if
|
|
||||||
clicking (+) opens the "new" example with same behavior as above
|
|
||||||
*/
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user