Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
daslyfe committed Jun 14, 2024
1 parent 1d95da7 commit f3b83b4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 19 deletions.
3 changes: 1 addition & 2 deletions website/src/components/Udels/Udels.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { UdelFrame } from './UdelFrame';
import { useState } from 'react';
import UdelsHeader from './UdelsHeader';


const defaultHash = 'c3RhY2soCiAgCik%3D';

const getHashesFromUrl = () => {
Expand All @@ -31,7 +30,7 @@ export function Udels() {
const onEvaluate = (key, code) => {
const hashes = getHashesFromUrl();
hashes[key] = code2hash(code);

updateURLHashes(hashes);
};
// useEffect(() => {
Expand Down
13 changes: 4 additions & 9 deletions website/src/components/Udels/UdelsHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,11 @@ export default function UdelsHeader(Props) {
<header id="header" className="flex text-white z-[100] text-lg select-none bg-neutral-900">
<div className="px-4 items-center gap-2 flex space-x-2 md:pt-0 select-none">
<h1 onClick={() => {}} className={'text-l cursor-pointer flex gap-4'}>
<div
className={'mt-[1px] cursor-pointer'}
>
🌀
<div className={'mt-[1px] cursor-pointer'}>🌀</div>

<div className={'animate-pulse'}>
<span className="">strudel</span> <span className="text-sm">-UDELS</span>
</div>

<div className={'animate-pulse'}>
<span className="">strudel</span> <span className="text-sm">-UDELS</span>
</div>

</h1>
<NumberInput value={numWindows} setValue={setNumWindows} />
</div>
Expand Down
4 changes: 1 addition & 3 deletions website/src/repl/components/Code.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@


// type Props = {
// containerRef: React.MutableRefObject<HTMLElement | null>,
// editorRef: React.MutableRefObject<HTMLElement | null>,
// init: () => void
// }
export function Code(Props) {
const {editorRef, containerRef, init} = Props;
const { editorRef, containerRef, init } = Props;

return (
<section
Expand Down
3 changes: 1 addition & 2 deletions website/src/repl/components/ReplEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import BigPlayButton from '@src/repl/components/BigPlayButton';
import UserFacingErrorMessage from '@src/repl/components/UserFacingErrorMessage';
import { Header } from './Header';


// type Props = {
// context: replcontext,
// containerRef: React.MutableRefObject<HTMLElement | null>,
Expand All @@ -23,7 +22,7 @@ export default function ReplEditor(Props) {
const showPanel = !isEmbedded;
return (
<ReplContext.Provider value={context}>
<div className='h-full flex flex-col relative'>
<div className="h-full flex flex-col relative">
<Loader active={pending} />
<Header context={context} />
{isEmbedded && <BigPlayButton started={started} handleTogglePlay={handleTogglePlay} />}
Expand Down
6 changes: 3 additions & 3 deletions website/src/settings.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { persistentMap } from '@nanostores/persistent';
import { useStore } from '@nanostores/react';
import { register } from '@strudel/core';
import { isUdels, } from './repl/util.mjs';
import { isUdels } from './repl/util.mjs';

export const defaultAudioDeviceName = 'System Standard';

Expand All @@ -25,14 +25,14 @@ export const defaultSettings = {
isZen: false,
soundsFilter: 'all',
patternFilter: 'community',
panelPosition: 'right',
panelPosition: 'right',
userPatterns: '{}',
audioDeviceName: defaultAudioDeviceName,
};

let search = null;
if (typeof window !== 'undefined') {
search = new URLSearchParams(window.location.search);
search = new URLSearchParams(window.location.search);
}
// if running multiple instance in one window, it will use the settings for that instance. else default to normal
const instance = parseInt(search?.get('instance') ?? '0');
Expand Down

0 comments on commit f3b83b4

Please sign in to comment.