Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update typescript: 4.7.4 → 4.8.2 (minor) #204

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
3f62dbe
info & energy coin pairs (#16)
subtleGradient Aug 24, 2021
7c5f50f
Bump next from 9.3.0 to 11.1.0 (#17)
dependabot[bot] Sep 2, 2021
303c65e
Bump next from 11.1.0 to 11.1.1 (#23)
dependabot[bot] Sep 2, 2021
0358382
Update next to version 12.0.8 (#76)
depfu[bot] Jan 16, 2022
430aa06
Update @types/node to version 17.0.8 (#75)
depfu[bot] Jan 16, 2022
cee5d0b
Bump ansi-regex from 5.0.0 to 5.0.1 (#77)
dependabot[bot] Jan 16, 2022
878b131
Update @types/react to version 17.0.38 (#70)
depfu[bot] Jan 16, 2022
d45a202
Bump tmpl from 1.0.4 to 1.0.5 (#32)
dependabot[bot] Jan 16, 2022
475da8e
Bump path-parse from 1.0.6 to 1.0.7 (#21)
dependabot[bot] Jan 16, 2022
f489fb0
Update next to version 12.1.6 (#145)
depfu[bot] Jun 29, 2022
d9fc089
Update all of jest to version 28.1.2 (#171)
depfu[bot] Jul 1, 2022
26b6846
Update typescript to version 4.7.4 (#169)
depfu[bot] Jul 1, 2022
3b4db2d
Update @types/node to version 18.0.0 (#168)
depfu[bot] Jul 1, 2022
fd87930
Update @types/react-dom to version 18.0.5 (#155)
depfu[bot] Jul 1, 2022
d6fe5e1
Bump lodash from 4.17.15 to 4.17.21 (#15)
dependabot[bot] Jul 1, 2022
3e26eb5
Update @testing-library/react to version 13.3.0
depfu[bot] Jul 1, 2022
2eaf699
Bump minimist from 1.2.4 to 1.2.6 (#128)
dependabot[bot] Jul 1, 2022
89ad019
Update @testing-library/jest-dom to version 5.16.4
depfu[bot] Jul 1, 2022
16ae8bb
Update all of babel7 to version 7.18.6 (#170)
depfu[bot] Jul 1, 2022
8c34303
Update all of react to version 18.2.0 (#173)
depfu[bot] Aug 13, 2022
a938582
Update next to version 12.2.5 (#195)
depfu[bot] Aug 13, 2022
5fbadd3
Update @types/react-dom to version 18.0.6 (#176)
depfu[bot] Aug 13, 2022
7c54a49
Update @types/react to version 18.0.17 (#192)
depfu[bot] Aug 13, 2022
96914e2
Update typescript to version 4.8.2
depfu[bot] Aug 27, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["next/babel"]
}
114 changes: 79 additions & 35 deletions components/opt-toy/AOPActivationTable.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
import * as React from "react"
import { OPT512 } from "./OPT512"
import { betweenX } from "./between"
import {
Blast,
Consume,
Feeling,
iNtuition,
OPT512,
Play,
Sensing,
Sleep,
Thinking,
} from "./OPT512"
import { FC } from "react"
import { isSSR } from "../../util/constants"

export default function AOPActivationTable({ op512 }: { op512: OPT512 }) {
if (isSSR) {
return null
}
const showSex = op512.fmDe !== "?" || op512.fmS !== "?"
return (
<div className="AOPActivationTable">
<style jsx>{`
<style jsx global>{`
.AOPActivationTable {
box-sizing: border-box;
font-size: 1em;
Expand Down Expand Up @@ -62,7 +76,7 @@ export default function AOPActivationTable({ op512 }: { op512: OPT512 }) {

} */

.AOPActivationTable .pair {
.AOPActivationTable .pair:not(:empty) {
border: 2px solid blue;
}
.AOPActivationTable .pair.next {
Expand All @@ -78,8 +92,8 @@ export default function AOPActivationTable({ op512 }: { op512: OPT512 }) {
margin-right: 4px;
}

.AOPActivationTable .animal.index0 .pair,
.AOPActivationTable .animal.index1 .pair.previous {
.AOPActivationTable .animal.index0 .pair:not(:empty),
.AOPActivationTable .animal.index1 .pair.previous:not(:empty) {
border-color: #fff;
background: blue;
color: white;
Expand All @@ -97,39 +111,69 @@ export default function AOPActivationTable({ op512 }: { op512: OPT512 }) {
]

return (
<span
<AnimalColumn
key={code}
className={`animal ${Ox.sex + Dx.sex} ${code} ${flipSideIsLast &&
"flipSideIsLast"} index${index}`}
>
<span className="part sex">
{showSex && (Ox.sex + Dx.sex).toUpperCase()}
</span>
<span>
{Ox.code}
{Dx.code}
</span>
<span className={`aa`}>{code}</span>
<span
className={`part o ${next?.observer === Ox &&
"pair next"} ${previous?.observer === Ox && "pair previous"}`}
>
{showSex && <i>{Ox.sex}</i>}
{Ox.code}
{Ox.focus}
</span>
<span
className={`part o ${next?.decider === Dx &&
"pair next"} ${previous?.decider === Dx && "pair previous"}`}
>
{showSex && <i>{Dx.sex}</i>}
{Dx.code}
{Dx.focus}
</span>
</span>
{...{
code,
Ox,
Dx,
flipSideIsLast,
index,
showSex,
next,
previous,
}}
/>
)
},
)}
</div>
)
}

const AnimalColumn: FC<{
code: string
Ox?: Sensing | iNtuition
Dx?: Thinking | Feeling
flipSideIsLast: boolean
index: number
showSex: boolean
next?: Play | Sleep | Blast | Consume
previous?: Play | Sleep | Blast | Consume
}> = ({ code, Ox, Dx, flipSideIsLast, index, showSex, next, previous }) => {
return (
<span
key={code}
className={`animal ${Ox?.sex + Dx?.sex} ${code} ${
flipSideIsLast && "flipSideIsLast"
} index${index}`}
>
{showSex && (
<span className="part sex">{(Ox?.sex + Dx?.sex).toUpperCase()}</span>
)}
<span>
{Ox?.code}
{Dx?.code}
</span>
<span className={`aa`}>{code}</span>
<span
className={`part o ${next?.observer === Ox && "pair next"} ${
previous?.observer === Ox && "pair previous"
}`}
>
{showSex && <i>{Ox?.sex}</i>}
{Ox?.code}
{Ox?.focus}
</span>
<span
className={`part o ${next?.decider === Dx && "pair next"} ${
previous?.decider === Dx && "pair previous"
}`}
>
{showSex && <i>{Dx?.sex}</i>}
{Dx?.code}
{Dx?.focus}
</span>
</span>
)
}
Loading