Merge main
This commit is contained in:
commit
c5c7dde8ed
13 changed files with 606 additions and 500 deletions
|
|
@ -248,7 +248,7 @@ const GridRep = (props: Props) => {
|
||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Link href={`/p/${props.shortcode}`}>
|
<Link legacyBehavior href={`/p/${props.shortcode}`}>
|
||||||
<a className={styles.gridRep}>
|
<a className={styles.gridRep}>
|
||||||
{detailsWithUsername}
|
{detailsWithUsername}
|
||||||
<div className={styles.weaponGrid}>
|
<div className={styles.weaponGrid}>
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ const LinkItem = ({ icon, title, link, className, ...props }: Props) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={classes}>
|
<div className={classes}>
|
||||||
<Link href={link}>
|
<Link legacyBehavior href={link}>
|
||||||
<a href={link} target="_blank" rel="noreferrer">
|
<a href={link} target="_blank" rel="noreferrer">
|
||||||
<div className={styles.left}>
|
<div className={styles.left}>
|
||||||
<i className={styles.icon}>{icon}</i>
|
<i className={styles.icon}>{icon}</i>
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,67 @@ const UpdatesPage = () => {
|
||||||
return (
|
return (
|
||||||
<div className={classes}>
|
<div className={classes}>
|
||||||
<h1>{common('about.segmented_control.updates')}</h1>
|
<h1>{common('about.segmented_control.updates')}</h1>
|
||||||
|
<ContentUpdate
|
||||||
|
version="2023-08F"
|
||||||
|
dateString="2023/08/16"
|
||||||
|
event="events.flash"
|
||||||
|
newItems={{
|
||||||
|
character: ['3040478000', '3040479000', '3040480000'],
|
||||||
|
weapon: ['1040915400', '1040024800', '1040422000'],
|
||||||
|
summon: ['2040423000'],
|
||||||
|
}}
|
||||||
|
uncappedItems={{
|
||||||
|
character: ['3040161000', '3040165000'],
|
||||||
|
}}
|
||||||
|
numNotes={1}
|
||||||
|
/>
|
||||||
|
<ContentUpdate
|
||||||
|
version="2023-08U"
|
||||||
|
dateString="2023/08/11"
|
||||||
|
event="events.content"
|
||||||
|
newItems={{
|
||||||
|
character: ['3040476000', '3040477000'],
|
||||||
|
weapon: ['1040117100'],
|
||||||
|
summon: ['2040422000', '2040421000'],
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<ContentUpdate
|
||||||
|
version="2023-07L"
|
||||||
|
dateString="2023/07/31"
|
||||||
|
event="events.legfest"
|
||||||
|
newItems={{
|
||||||
|
character: ['3040472000', '3040474000', '3040475000', '3040473000'],
|
||||||
|
weapon: [
|
||||||
|
'1040815800',
|
||||||
|
'1040024700',
|
||||||
|
'1040516200',
|
||||||
|
'1040218600',
|
||||||
|
'1040617600',
|
||||||
|
'1030305800',
|
||||||
|
],
|
||||||
|
summon: ['2040420000'],
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<ContentUpdate
|
||||||
|
version="2023-07F"
|
||||||
|
dateString="2023/07/15"
|
||||||
|
event="events.flash"
|
||||||
|
newItems={{
|
||||||
|
character: ['3040470000', '3040471000'],
|
||||||
|
weapon: ['1040316300', '1040516100'],
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<ContentUpdate
|
||||||
|
version="2023-07U"
|
||||||
|
dateString="2023/07/08"
|
||||||
|
event="events.uncap"
|
||||||
|
newItems={{
|
||||||
|
weapon: ['1040218500'],
|
||||||
|
}}
|
||||||
|
uncappedItems={{
|
||||||
|
character: ['3040102000'],
|
||||||
|
}}
|
||||||
|
/>
|
||||||
<ContentUpdate
|
<ContentUpdate
|
||||||
version="2023-06L"
|
version="2023-06L"
|
||||||
dateString="2023/06/29"
|
dateString="2023/06/29"
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,13 @@ interface Props
|
||||||
HTMLDivElement
|
HTMLDivElement
|
||||||
> {
|
> {
|
||||||
wrapperClassName?: string
|
wrapperClassName?: string
|
||||||
|
<<<<<<< HEAD
|
||||||
headerRef?: React.RefObject<HTMLDivElement>
|
headerRef?: React.RefObject<HTMLDivElement>
|
||||||
footerRef?: React.RefObject<HTMLDivElement>
|
footerRef?: React.RefObject<HTMLDivElement>
|
||||||
|
=======
|
||||||
|
headerref?: React.RefObject<HTMLDivElement>
|
||||||
|
footerref?: React.RefObject<HTMLDivElement>
|
||||||
|
>>>>>>> main
|
||||||
scrollable?: boolean
|
scrollable?: boolean
|
||||||
onEscapeKeyDown: (event: KeyboardEvent) => void
|
onEscapeKeyDown: (event: KeyboardEvent) => void
|
||||||
onOpenAutoFocus: (event: Event) => void
|
onOpenAutoFocus: (event: Event) => void
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,6 @@
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
display: block;
|
display: block;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
font-family: system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial,
|
|
||||||
sans-serif;
|
|
||||||
font-size: $font-regular;
|
font-size: $font-regular;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
|
|
|
||||||
|
|
@ -183,7 +183,7 @@ const PartyHeader = (props: Props) => {
|
||||||
) => {
|
) => {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Link href={`/${username}`} passHref>
|
<Link legacyBehavior href={`/${username}`} passHref>
|
||||||
<a className={linkClass}>{userBlock(username, picture, element)}</a>
|
<a className={linkClass}>{userBlock(username, picture, element)}</a>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -193,7 +193,7 @@ const PartyHeader = (props: Props) => {
|
||||||
const linkedRaidBlock = (raid: Raid) => {
|
const linkedRaidBlock = (raid: Raid) => {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Link href={`/teams?raid=${raid.slug}`} passHref>
|
<Link legacyBehavior href={`/teams?raid=${raid.slug}`} passHref>
|
||||||
<a className={`Raid ${linkClass}`}>{raid.name[locale]}</a>
|
<a className={`Raid ${linkClass}`}>{raid.name[locale]}</a>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
993
package-lock.json
generated
993
package-lock.json
generated
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
|
@ -13,6 +13,7 @@
|
||||||
"build-storybook": "storybook build"
|
"build-storybook": "storybook build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@next/font": "^13.4.19",
|
||||||
"@radix-ui/react-alert-dialog": "^1.0.2",
|
"@radix-ui/react-alert-dialog": "^1.0.2",
|
||||||
"@radix-ui/react-dialog": "^1.0.2",
|
"@radix-ui/react-dialog": "^1.0.2",
|
||||||
"@radix-ui/react-dropdown-menu": "^2.0.1",
|
"@radix-ui/react-dropdown-menu": "^2.0.1",
|
||||||
|
|
@ -53,19 +54,20 @@
|
||||||
"lodash.debounce": "^4.0.8",
|
"lodash.debounce": "^4.0.8",
|
||||||
"lodash.isequal": "^4.5.0",
|
"lodash.isequal": "^4.5.0",
|
||||||
"meyer-reset-scss": "^2.0.4",
|
"meyer-reset-scss": "^2.0.4",
|
||||||
"next": "12.0.8",
|
"next": "^13.4.19",
|
||||||
"next-i18next": "^10.5.0",
|
"next-i18next": "^10.5.0",
|
||||||
"next-themes": "^0.2.1",
|
"next-themes": "^0.2.1",
|
||||||
"next-usequerystate": "^1.7.0",
|
"next-usequerystate": "^1.7.0",
|
||||||
"pluralize": "^8.0.0",
|
"pluralize": "^8.0.0",
|
||||||
"react": "^18.0.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.0.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-i18next": "^11.15.5",
|
"react-i18next": "^11.15.5",
|
||||||
"react-infinite-scroll-component": "^6.1.0",
|
"react-infinite-scroll-component": "^6.1.0",
|
||||||
"react-linkify": "^1.0.0-alpha",
|
"react-linkify": "^1.0.0-alpha",
|
||||||
"react-lite-youtube-embed": "^2.3.52",
|
"react-lite-youtube-embed": "^2.3.52",
|
||||||
"react-scroll": "^1.8.5",
|
"react-scroll": "^1.8.5",
|
||||||
"react-string-replace": "^1.1.0",
|
"react-string-replace": "^1.1.0",
|
||||||
|
"react-use": "^17.4.0",
|
||||||
"remixicon-react": "^1.0.0",
|
"remixicon-react": "^1.0.0",
|
||||||
"resolve-url-loader": "^5.0.0",
|
"resolve-url-loader": "^5.0.0",
|
||||||
"sanitize-html": "^2.8.1",
|
"sanitize-html": "^2.8.1",
|
||||||
|
|
@ -99,7 +101,7 @@
|
||||||
"@types/sanitize-html": "^2.8.0",
|
"@types/sanitize-html": "^2.8.0",
|
||||||
"@types/uuid": "^9.0.0",
|
"@types/uuid": "^9.0.0",
|
||||||
"eslint": "8.7.0",
|
"eslint": "8.7.0",
|
||||||
"eslint-config-next": "12.0.8",
|
"eslint-config-next": "^13.4.19",
|
||||||
"eslint-plugin-storybook": "^0.6.11",
|
"eslint-plugin-storybook": "^0.6.11",
|
||||||
"eslint-plugin-valtio": "^0.4.1",
|
"eslint-plugin-valtio": "^0.4.1",
|
||||||
"sass-loader": "^13.2.2",
|
"sass-loader": "^13.2.2",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
import { appWithTranslation } from 'next-i18next'
|
import { appWithTranslation } from 'next-i18next'
|
||||||
import Head from 'next/head'
|
import Head from 'next/head'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
|
import localFont from '@next/font/local'
|
||||||
|
import { useIsomorphicLayoutEffect } from 'react-use'
|
||||||
import { useTranslation } from 'next-i18next'
|
import { useTranslation } from 'next-i18next'
|
||||||
import { get } from 'local-storage'
|
import { get } from 'local-storage'
|
||||||
import { getCookie, setCookie } from 'cookies-next'
|
import { getCookie, setCookie } from 'cookies-next'
|
||||||
|
|
@ -22,6 +24,12 @@ import type { AppProps } from 'next/app'
|
||||||
|
|
||||||
import DiscordIcon from '~public/icons/discord.svg'
|
import DiscordIcon from '~public/icons/discord.svg'
|
||||||
import ShareIcon from '~public/icons/Share.svg'
|
import ShareIcon from '~public/icons/Share.svg'
|
||||||
|
|
||||||
|
const goalking = localFont({
|
||||||
|
src: './fonts/gk-variable.woff2',
|
||||||
|
fallback: ['system-ui', 'inter', 'helvetica neue', 'sans-serif'],
|
||||||
|
variable: '--font-goalking',
|
||||||
|
})
|
||||||
import '../styles/globals.scss'
|
import '../styles/globals.scss'
|
||||||
|
|
||||||
function MyApp({ Component, pageProps }: AppProps) {
|
function MyApp({ Component, pageProps }: AppProps) {
|
||||||
|
|
@ -29,6 +37,10 @@ function MyApp({ Component, pageProps }: AppProps) {
|
||||||
const [mounted, setMounted] = useState(false)
|
const [mounted, setMounted] = useState(false)
|
||||||
const [refresh, setRefresh] = useState(false)
|
const [refresh, setRefresh] = useState(false)
|
||||||
|
|
||||||
|
useIsomorphicLayoutEffect(() => {
|
||||||
|
document.body.style.setProperty('--font-family', goalking.style.fontFamily)
|
||||||
|
}, [])
|
||||||
|
|
||||||
// Subscribe to app state to listen for account changes and
|
// Subscribe to app state to listen for account changes and
|
||||||
// unsubscribe when component is unmounted
|
// unsubscribe when component is unmounted
|
||||||
const unsubscribe = subscribe(accountState, () => {
|
const unsubscribe = subscribe(accountState, () => {
|
||||||
|
|
@ -111,7 +123,7 @@ function MyApp({ Component, pageProps }: AppProps) {
|
||||||
<div className="Connect">
|
<div className="Connect">
|
||||||
<p>{t('errors.server_unavailable.discord')}</p>
|
<p>{t('errors.server_unavailable.discord')}</p>
|
||||||
<div className="Discord LinkItem">
|
<div className="Discord LinkItem">
|
||||||
<Link href="https://discord.gg/qyZ5hGdPC8">
|
<Link legacyBehavior href="https://discord.gg/qyZ5hGdPC8">
|
||||||
<a
|
<a
|
||||||
href="https://discord.gg/qyZ5hGdPC8"
|
href="https://discord.gg/qyZ5hGdPC8"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
|
|
||||||
BIN
pages/fonts/gk-variable.woff2
Normal file
BIN
pages/fonts/gk-variable.woff2
Normal file
Binary file not shown.
|
|
@ -19,6 +19,9 @@
|
||||||
"uncap": "Uncap"
|
"uncap": "Uncap"
|
||||||
},
|
},
|
||||||
"versions": {
|
"versions": {
|
||||||
|
"2023-08F": {
|
||||||
|
"features": ["Added new class \"Street King\""]
|
||||||
|
},
|
||||||
"2023-05L": {
|
"2023-05L": {
|
||||||
"features": ["A large update is in the works. Stay tuned!"]
|
"features": ["A large update is in the works. Stay tuned!"]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,9 @@
|
||||||
"uncap": "上限解放"
|
"uncap": "上限解放"
|
||||||
},
|
},
|
||||||
"versions": {
|
"versions": {
|
||||||
|
"2023-08F": {
|
||||||
|
"features": "新ジョブ「キング」を追加"
|
||||||
|
},
|
||||||
"2023-05L": {
|
"2023-05L": {
|
||||||
"features": ["特大アップデートが開発中。お楽しみにしてください!"]
|
"features": ["特大アップデートが開発中。お楽しみにしてください!"]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,7 @@ html {
|
||||||
body {
|
body {
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
font-family: system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial,
|
font-family: var(--font-family);
|
||||||
sans-serif;
|
|
||||||
font-size: 1.4rem;
|
font-size: 1.4rem;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: $unit-2x !important;
|
padding: $unit-2x !important;
|
||||||
|
|
@ -26,6 +25,7 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
|
font-family: var(--font-goalking);
|
||||||
min-height: 90%;
|
min-height: 90%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -66,8 +66,7 @@ button,
|
||||||
input,
|
input,
|
||||||
textarea {
|
textarea {
|
||||||
border: 2px solid transparent;
|
border: 2px solid transparent;
|
||||||
font-family: system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial,
|
font-family: var(--font-family);
|
||||||
sans-serif;
|
|
||||||
font-size: $font-regular;
|
font-size: $font-regular;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue