Skip to content

Commit

Permalink
fix title
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkRRb committed Dec 13, 2024
1 parent 7e777ad commit c9e2c31
Show file tree
Hide file tree
Showing 18 changed files with 46 additions and 21 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
rel="stylesheet"
href="https://chinese-fonts-cdn.deno.dev/packages/maple-mono-cn/dist/MapleMono-CN-Regular/result.css"
/>
<title>Solid App</title>
<title>Protobuf Decoder</title>
<script src="./src/index.tsx" type="module" defer></script>
</head>
<body>
Expand Down
2 changes: 2 additions & 0 deletions src/components/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { JSXElement } from "solid-js";

import { cx } from "@emotion/css";

import ButtonStyles from "../components.styles/Button.styles";

export default (props: { class?: string; "on:click"?: () => void; children: JSXElement }): JSXElement => {
Expand Down
3 changes: 3 additions & 0 deletions src/components/Input.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { createMemo, For, JSXElement, onCleanup, onMount } from "solid-js";

import { cx } from "@emotion/css";

import { editable } from "edix";

import InputStyles from "../components.styles/Input.styles";

export default (props: { class?: string; value: string; "on:change": (text: string) => void }): JSXElement => {
Expand Down
6 changes: 4 additions & 2 deletions src/components/NodeAsBytes.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { createMemo, createSignal, JSXElement, Show } from "solid-js";
import { ProtoBufNode } from "../utilities/n_protobuf_decode/node";
import { bytesToHex } from "../utilities/hex_util";
import { cx } from "@emotion/css";

import NodeAsXStyles from "../components.styles/NodeAsX.styles";

import Button from "./Button";
import { cx } from "@emotion/css";
import { bytesToHex } from "../utilities/hex_util";

export default (props: { node: ProtoBufNode }): JSXElement => {
const result = createMemo(() => props.node.tryAsBytes());
Expand Down
4 changes: 3 additions & 1 deletion src/components/NodeAsDouble.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { createMemo, createSignal, JSXElement, Show } from "solid-js";
import { ProtoBufNode } from "../utilities/n_protobuf_decode/node";
import { cx } from "@emotion/css";

import NodeAsXStyles from "../components.styles/NodeAsX.styles";

import Button from "./Button";
import { cx } from "@emotion/css";

export default (props: { node: ProtoBufNode }): JSXElement => {
const result = createMemo(() => props.node.tryAsDouble());
Expand Down
4 changes: 3 additions & 1 deletion src/components/NodeAsFixed32.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { createMemo, createSignal, JSXElement, Show } from "solid-js";
import { ProtoBufNode } from "../utilities/n_protobuf_decode/node";
import { cx } from "@emotion/css";

import NodeAsXStyles from "../components.styles/NodeAsX.styles";

import Button from "./Button";
import { cx } from "@emotion/css";

export default (props: { node: ProtoBufNode }): JSXElement => {
const result = createMemo(() => props.node.tryAsFixed32());
Expand Down
4 changes: 3 additions & 1 deletion src/components/NodeAsFixed64.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { createMemo, createSignal, JSXElement, Show } from "solid-js";
import { ProtoBufNode } from "../utilities/n_protobuf_decode/node";
import { cx } from "@emotion/css";

import NodeAsXStyles from "../components.styles/NodeAsX.styles";

import Button from "./Button";
import { cx } from "@emotion/css";

export default (props: { node: ProtoBufNode }): JSXElement => {
const result = createMemo(() => props.node.tryAsFixed64());
Expand Down
4 changes: 3 additions & 1 deletion src/components/NodeAsFloat.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { createMemo, createSignal, JSXElement, Show } from "solid-js";
import { ProtoBufNode } from "../utilities/n_protobuf_decode/node";
import { cx } from "@emotion/css";

import NodeAsXStyles from "../components.styles/NodeAsX.styles";

import Button from "./Button";
import { cx } from "@emotion/css";

export default (props: { node: ProtoBufNode }): JSXElement => {
const result = createMemo(() => props.node.tryAsFloat());
Expand Down
4 changes: 3 additions & 1 deletion src/components/NodeAsInt32.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { createMemo, createSignal, JSXElement, Show } from "solid-js";
import { ProtoBufNode } from "../utilities/n_protobuf_decode/node";
import { cx } from "@emotion/css";

import NodeAsXStyles from "../components.styles/NodeAsX.styles";

import Button from "./Button";
import { cx } from "@emotion/css";

export default (props: { node: ProtoBufNode }): JSXElement => {
const result = createMemo(() => props.node.tryAsInt32());
Expand Down
4 changes: 3 additions & 1 deletion src/components/NodeAsInt64.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { createMemo, createSignal, JSXElement, Show } from "solid-js";
import { ProtoBufNode } from "../utilities/n_protobuf_decode/node";
import { cx } from "@emotion/css";

import NodeAsXStyles from "../components.styles/NodeAsX.styles";

import Button from "./Button";
import { cx } from "@emotion/css";

export default (props: { node: ProtoBufNode }): JSXElement => {
const result = createMemo(() => props.node.tryAsInt64());
Expand Down
4 changes: 3 additions & 1 deletion src/components/NodeAsSfixed32.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { createMemo, createSignal, JSXElement, Show } from "solid-js";
import { ProtoBufNode } from "../utilities/n_protobuf_decode/node";
import { cx } from "@emotion/css";

import NodeAsXStyles from "../components.styles/NodeAsX.styles";

import Button from "./Button";
import { cx } from "@emotion/css";

export default (props: { node: ProtoBufNode }): JSXElement => {
const result = createMemo(() => props.node.tryAsSfixed32());
Expand Down
4 changes: 3 additions & 1 deletion src/components/NodeAsSfixed64.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { createMemo, createSignal, JSXElement, Show } from "solid-js";
import { ProtoBufNode } from "../utilities/n_protobuf_decode/node";
import { cx } from "@emotion/css";

import NodeAsXStyles from "../components.styles/NodeAsX.styles";

import Button from "./Button";
import { cx } from "@emotion/css";

export default (props: { node: ProtoBufNode }): JSXElement => {
const result = createMemo(() => props.node.tryAsSfixed64());
Expand Down
4 changes: 3 additions & 1 deletion src/components/NodeAsSint64.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { createMemo, createSignal, JSXElement, Show } from "solid-js";
import { ProtoBufNode } from "../utilities/n_protobuf_decode/node";
import { cx } from "@emotion/css";

import NodeAsXStyles from "../components.styles/NodeAsX.styles";

import Button from "./Button";
import { cx } from "@emotion/css";

export default (props: { node: ProtoBufNode }): JSXElement => {
const result = createMemo(() => props.node.tryAsSint64());
Expand Down
4 changes: 3 additions & 1 deletion src/components/NodeAsString.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { createMemo, createSignal, JSXElement, Show } from "solid-js";
import { ProtoBufNode } from "../utilities/n_protobuf_decode/node";
import { cx } from "@emotion/css";

import NodeAsXStyles from "../components.styles/NodeAsX.styles";

import Button from "./Button";
import { cx } from "@emotion/css";

export default (props: { node: ProtoBufNode }): JSXElement => {
const result = createMemo(() => props.node.tryAsString());
Expand Down
4 changes: 3 additions & 1 deletion src/components/NodeAsUint64.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { createMemo, createSignal, JSXElement, Show } from "solid-js";
import { ProtoBufNode } from "../utilities/n_protobuf_decode/node";
import { cx } from "@emotion/css";

import NodeAsXStyles from "../components.styles/NodeAsX.styles";

import Button from "./Button";
import { cx } from "@emotion/css";

export default (props: { node: ProtoBufNode }): JSXElement => {
const result = createMemo(() => props.node.tryAsUint64());
Expand Down
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* @refresh reload */
import { render } from "solid-js/web";
import { media } from "./utilities/css_util";
import { injectGlobal } from "@emotion/css";

import App from "./views/App";
import { injectGlobal } from "@emotion/css";
import { media } from "./utilities/css_util";

injectGlobal({
"*": {
Expand Down
4 changes: 1 addition & 3 deletions src/utilities/n_protobuf_decode/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
import { decode } from "./decoder";

export default { decode };
export { decode } from "./decoder";
2 changes: 0 additions & 2 deletions src/views/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { JSXElement, Match, Switch } from "solid-js";

import { hexCheck, hexToBytes } from "../utilities/hex_util";

import { decode } from "../utilities/n_protobuf_decode/decoder";
import { WireType } from "../utilities/n_protobuf_decode/wire_type";

Expand Down

0 comments on commit c9e2c31

Please sign in to comment.