mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2025-12-16 20:49:23 +00:00
refactor!: refine spacings
BREAKING CAHNGE: some spaces changed
This commit is contained in:
@@ -127,18 +127,15 @@ export default function Page() {
|
||||
);
|
||||
|
||||
return (
|
||||
<PageRootSection
|
||||
className="flex h-full flex-col"
|
||||
title={toolGroups.converters.tools.jsonYaml.longTitle}
|
||||
>
|
||||
<PageSection className="mb-6 mt-0" title="Configuration">
|
||||
<PageRootSection className="h-full" title={toolGroups.converters.tools.jsonYaml.longTitle}>
|
||||
<PageSection title="Configuration">
|
||||
<Configurations list={[indentationConfig]} />
|
||||
</PageSection>
|
||||
<div className="flex flex-1 flex-col gap-x-4 gap-y-5 lg:flex-row">
|
||||
<PageSection className="mt-0 min-h-[200px] flex-1" title="Json" control={jsonControl}>
|
||||
<PageSection className="min-h-[200px] flex-1" title="Json" control={jsonControl}>
|
||||
<Editor language="json" value={form.json} onChange={onJsonChange} />
|
||||
</PageSection>
|
||||
<PageSection className="mt-0 min-h-[200px] flex-1" title="Yaml" control={yamlControl}>
|
||||
<PageSection className="min-h-[200px] flex-1" title="Yaml" control={yamlControl}>
|
||||
<Editor language="yaml" value={form.yaml} onChange={onYamlChange} />
|
||||
</PageSection>
|
||||
</div>
|
||||
|
||||
@@ -85,21 +85,23 @@ export default function Page() {
|
||||
|
||||
return (
|
||||
<PageRootSection title={toolGroups.converters.tools.numberBase.longTitle}>
|
||||
<PageSection className="mb-6" title="Configuration">
|
||||
<PageSection title="Configuration">
|
||||
<Configurations list={[formatNumberConfig]} />
|
||||
</PageSection>
|
||||
<PageSection title="Decimal" control={decControl}>
|
||||
<Input value={dec} onChange={onDecChange} />
|
||||
</PageSection>
|
||||
<PageSection title="Hexadecimal" control={hexControl}>
|
||||
<Input value={hex} onChange={onHexChange} />
|
||||
</PageSection>
|
||||
<PageSection title="Octal" control={octControl}>
|
||||
<Input value={oct} onChange={onOctChange} />
|
||||
</PageSection>
|
||||
<PageSection title="Binary" control={binControl}>
|
||||
<Input value={bin} onChange={onBinChange} />
|
||||
</PageSection>
|
||||
<div className="flex flex-col gap-3">
|
||||
<PageSection title="Decimal" control={decControl}>
|
||||
<Input value={dec} onChange={onDecChange} />
|
||||
</PageSection>
|
||||
<PageSection title="Hexadecimal" control={hexControl}>
|
||||
<Input value={hex} onChange={onHexChange} />
|
||||
</PageSection>
|
||||
<PageSection title="Octal" control={octControl}>
|
||||
<Input value={oct} onChange={onOctChange} />
|
||||
</PageSection>
|
||||
<PageSection title="Binary" control={binControl}>
|
||||
<Input value={bin} onChange={onBinChange} />
|
||||
</PageSection>
|
||||
</div>
|
||||
</PageRootSection>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -68,12 +68,14 @@ export default function Page() {
|
||||
|
||||
return (
|
||||
<PageRootSection title={toolGroups.encodersDecoders.tools.base64.longTitle}>
|
||||
<PageSection title="Decoded" control={decodedControl}>
|
||||
<Textarea value={form.decoded} onChange={onDecodedChange} rows={10} />
|
||||
</PageSection>
|
||||
<PageSection title="Encoded" control={encodedControl}>
|
||||
<Textarea value={form.encoded} onChange={onEncodedChange} rows={10} />
|
||||
</PageSection>
|
||||
<div className="flex flex-col gap-3">
|
||||
<PageSection title="Decoded" control={decodedControl}>
|
||||
<Textarea value={form.decoded} onChange={onDecodedChange} rows={10} />
|
||||
</PageSection>
|
||||
<PageSection title="Encoded" control={encodedControl}>
|
||||
<Textarea value={form.encoded} onChange={onEncodedChange} rows={10} />
|
||||
</PageSection>
|
||||
</div>
|
||||
</PageRootSection>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -66,12 +66,14 @@ export default function Page() {
|
||||
|
||||
return (
|
||||
<PageRootSection title={toolGroups.encodersDecoders.tools.html.longTitle}>
|
||||
<PageSection title="Decoded" control={decodedControl}>
|
||||
<Textarea value={form.decoded} onChange={onDecodedChange} rows={10} />
|
||||
</PageSection>
|
||||
<PageSection title="Encoded" control={encodedControl}>
|
||||
<Textarea value={form.encoded} onChange={onEncodedChange} rows={10} />
|
||||
</PageSection>
|
||||
<div className="flex flex-col gap-3">
|
||||
<PageSection title="Decoded" control={decodedControl}>
|
||||
<Textarea value={form.decoded} onChange={onDecodedChange} rows={10} />
|
||||
</PageSection>
|
||||
<PageSection title="Encoded" control={encodedControl}>
|
||||
<Textarea value={form.encoded} onChange={onEncodedChange} rows={10} />
|
||||
</PageSection>
|
||||
</div>
|
||||
</PageRootSection>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -47,12 +47,14 @@ export default function Page() {
|
||||
<PageSection title="Jwt Token" control={jwtTokenControl}>
|
||||
<Textarea value={jwt} onChange={onJwtChange} rows={3} />
|
||||
</PageSection>
|
||||
<PageSection title="Header" control={heaederControl}>
|
||||
<Editor height={180} language="json" value={header} options={{ readOnly: true }} />
|
||||
</PageSection>
|
||||
<PageSection title="Payload" control={payloadControl}>
|
||||
<Editor height={180} language="json" value={payload} options={{ readOnly: true }} />
|
||||
</PageSection>
|
||||
<div className="flex flex-col gap-3">
|
||||
<PageSection title="Header" control={heaederControl}>
|
||||
<Editor height={180} language="json" value={header} options={{ readOnly: true }} />
|
||||
</PageSection>
|
||||
<PageSection title="Payload" control={payloadControl}>
|
||||
<Editor height={180} language="json" value={payload} options={{ readOnly: true }} />
|
||||
</PageSection>
|
||||
</div>
|
||||
</PageRootSection>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -66,12 +66,14 @@ export default function Page() {
|
||||
|
||||
return (
|
||||
<PageRootSection title={toolGroups.encodersDecoders.tools.url.longTitle}>
|
||||
<PageSection title="Decoded" control={decodedControl}>
|
||||
<Textarea value={form.decoded} onChange={onDecodedChange} rows={10} />
|
||||
</PageSection>
|
||||
<PageSection title="Encoded" control={encodedControl}>
|
||||
<Textarea value={form.encoded} onChange={onEncodedChange} rows={10} />
|
||||
</PageSection>
|
||||
<div className="flex flex-col gap-3">
|
||||
<PageSection title="Decoded" control={decodedControl}>
|
||||
<Textarea value={form.decoded} onChange={onDecodedChange} rows={10} />
|
||||
</PageSection>
|
||||
<PageSection title="Encoded" control={encodedControl}>
|
||||
<Textarea value={form.encoded} onChange={onEncodedChange} rows={10} />
|
||||
</PageSection>
|
||||
</div>
|
||||
</PageRootSection>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -69,11 +69,8 @@ export default function Page() {
|
||||
const outputControl = <ControlMenu list={[outputCopyButton]} />;
|
||||
|
||||
return (
|
||||
<PageRootSection
|
||||
className="flex h-full flex-col"
|
||||
title={toolGroups.formatters.tools.json.longTitle}
|
||||
>
|
||||
<PageSection className="mt-0" title="Configuration">
|
||||
<PageRootSection className="h-full" title={toolGroups.formatters.tools.json.longTitle}>
|
||||
<PageSection title="Configuration">
|
||||
<Configurations list={[indentationConfig]} />
|
||||
</PageSection>
|
||||
<div className="flex flex-1 flex-col gap-x-4 gap-y-5 lg:flex-row">
|
||||
|
||||
@@ -69,33 +69,35 @@ export default function Page() {
|
||||
<PageSection title="Configuration">
|
||||
<Configurations list={[uppercaseConfig]} />
|
||||
</PageSection>
|
||||
<PageSection className="my-4" title="Input" control={inputControl}>
|
||||
<PageSection className="-mt-2" title="Input" control={inputControl}>
|
||||
<Textarea value={input} onChange={onInputChange} rows={5} />
|
||||
</PageSection>
|
||||
<PageSection title="MD5">
|
||||
<div className="flex gap-2">
|
||||
<Input className="flex-1" value={md5} readOnly />
|
||||
<ControlMenu list={[md5CopyButton]} />
|
||||
</div>
|
||||
</PageSection>
|
||||
<PageSection title="SHA1">
|
||||
<div className="flex gap-2">
|
||||
<Input className="flex-1" value={sha1} readOnly />
|
||||
<ControlMenu list={[sha1CopyButton]} />
|
||||
</div>
|
||||
</PageSection>
|
||||
<PageSection title="SHA256">
|
||||
<div className="flex gap-2">
|
||||
<Input className="flex-1" value={sha256} readOnly />
|
||||
<ControlMenu list={[sha256CopyButton]} />
|
||||
</div>
|
||||
</PageSection>
|
||||
<PageSection title="SHA512">
|
||||
<div className="flex gap-2">
|
||||
<Input className="flex-1" value={sha512} readOnly />
|
||||
<ControlMenu list={[sha512CopyButton]} />
|
||||
</div>
|
||||
</PageSection>
|
||||
<div className="flex flex-col gap-3">
|
||||
<PageSection title="MD5">
|
||||
<div className="flex gap-2">
|
||||
<Input className="flex-1" value={md5} readOnly />
|
||||
<ControlMenu list={[md5CopyButton]} />
|
||||
</div>
|
||||
</PageSection>
|
||||
<PageSection title="SHA1">
|
||||
<div className="flex gap-2">
|
||||
<Input className="flex-1" value={sha1} readOnly />
|
||||
<ControlMenu list={[sha1CopyButton]} />
|
||||
</div>
|
||||
</PageSection>
|
||||
<PageSection title="SHA256">
|
||||
<div className="flex gap-2">
|
||||
<Input className="flex-1" value={sha256} readOnly />
|
||||
<ControlMenu list={[sha256CopyButton]} />
|
||||
</div>
|
||||
</PageSection>
|
||||
<PageSection title="SHA512">
|
||||
<div className="flex gap-2">
|
||||
<Input className="flex-1" value={sha512} readOnly />
|
||||
<ControlMenu list={[sha512CopyButton]} />
|
||||
</div>
|
||||
</PageSection>
|
||||
</div>
|
||||
</PageRootSection>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ export default function Page() {
|
||||
<PageSection title="Configuration">
|
||||
<Configurations list={[hyphensConfig, uppercaseConfig, uuidVersionConfig]} />
|
||||
</PageSection>
|
||||
<PageSection className="mt-6" title="Generate">
|
||||
<PageSection title="Generate">
|
||||
<div className="flex items-center gap-2">
|
||||
<Button variant="secondary" onClick={onGenerateClick}>
|
||||
Generate UUID(s)
|
||||
@@ -140,7 +140,7 @@ export default function Page() {
|
||||
/>
|
||||
</div>
|
||||
</PageSection>
|
||||
<PageSection title="UUID(s)" control={uuidsControl}>
|
||||
<PageSection className="-mt-3" title="UUID(s)" control={uuidsControl}>
|
||||
<Textarea {...{ ref }} value={uuidsString} rows={10} readOnly />
|
||||
</PageSection>
|
||||
</PageRootSection>
|
||||
|
||||
Reference in New Issue
Block a user