Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
claustra01 committed Aug 10, 2024
1 parent f2ee8a9 commit e841b3e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/pages/home/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { useEffect, useState } from "react";
import { useNavigate } from "react-router-dom";
import { DefaultButton } from "../../components/ui/Button";
import { useSocketRefStore } from "../../store";
import { device } from "../../utils/device";
import { requestPermission } from "../../utils/permission";
import styles from "./index.module.css";
import { useNavigate } from "react-router-dom";

function Home() {
const navigate = useNavigate();
Expand Down
42 changes: 21 additions & 21 deletions src/type/schema.ts
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
export interface Schema {
id: string;
interval: number;
angle: angle;
acceleration: acceleration;
distance: distance;
message_type: message_type;
event_type: event_type;
id: string;
interval: number;
angle: angle;
acceleration: acceleration;
distance: distance;
message_type: message_type;
event_type: event_type;
}

interface angle {
x: number;
y: number;
x: number;
y: number;
}

interface acceleration {
x: number;
y: number;
z: number;
x: number;
y: number;
z: number;
}

interface distance {
x: number;
y: number;
z: number;
x: number;
y: number;
z: number;
}

export enum message_type {
pointer = "pointer",
action = "action",
pointer = "pointer",
action = "action",
}

export enum event_type {
shooter = "shooter",
ringToss = "ring_toss",
fireFlower = "fire_flower",
}
shooter = "shooter",
ringToss = "ring_toss",
fireFlower = "fire_flower",
}

0 comments on commit e841b3e

Please sign in to comment.