-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from ujiro99/fix-bug
Fix bug
- Loading branch information
Showing
23 changed files
with
223 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React from 'react' | ||
import { useTrackingState } from '@/hooks/useTrackingState' | ||
import { TrackingState } from '@/@types/global' | ||
import { formatTime } from '@/services/util' | ||
import { isDebug } from '@/const' | ||
|
||
const trackingsToText = (trackings: TrackingState[]) => { | ||
let res = '<trackings>' | ||
trackings.forEach((tracking) => { | ||
res += '\n line: ' + tracking.line | ||
res += '\n nodeId: ' + tracking.nodeId | ||
res += '\n startTime: ' + formatTime(tracking.trackingStartTime) | ||
res += '\n elapsedTime: ' + tracking.elapsedTime.toString() | ||
}) | ||
res += '\n' | ||
return res | ||
} | ||
|
||
export function Debug(): JSX.Element { | ||
const { trackings } = useTrackingState() | ||
|
||
if (!isDebug) { | ||
return <></> | ||
} | ||
|
||
return ( | ||
<pre className="debug"> | ||
<code>{trackingsToText(trackings)}</code> | ||
</pre> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
.LoadingIcon { | ||
position: absolute; | ||
right: 30px; | ||
top: 64px; | ||
top: 40px; | ||
} | ||
|
||
.LoadingIcon { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.plain-text { | ||
@apply w-full; | ||
@apply relative; | ||
@apply leading-normal; | ||
@apply cursor-pointer; | ||
@apply pr-3; | ||
@apply py-2; | ||
@apply min-h-[40px]; | ||
|
||
word-break: break-all; | ||
|
||
&.mod-edit { | ||
@apply cursor-text; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.