Skip to content

Commit 3508883

Browse files
committed
Remove remote images
1 parent 901d04e commit 3508883

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

next.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
module.exports = {
44
reactStrictMode: true,
55
images: {
6-
domains: ["cdn.discordapp.com", "discord.com", "i.imgur.com"],
76
minimumCacheTTL: 3600
87
},
98
poweredByHeader: false,

pages/characters/[char].tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { MaterialCost, MaterialImage } from "../../components/Material"
1212
import YouTube from "../../components/YouTube"
1313
import { CharacterCurves, CostTemplates, getCharacterCurves, getCharacters, getCostTemplates } from "../../utils/data-cache"
1414
import { Character, CharacterFull, Constellation, CostTemplate, CurveEnum, Meta, Passive, Skill, Skills, TalentTable, TalentValue } from "../../utils/types"
15-
import { elements, ElementType, getCharStatsAt, getCostsFromTemplate, getGuidesFor, getLinkToGuide, getStarColor, image, isFullCharacter, isValueTable, stat, urlify, weapons } from "../../utils/utils"
15+
import { elements, ElementType, getCharStatsAt, getCostsFromTemplate, getGuidesFor, getLinkToGuide, getStarColor, isFullCharacter, isValueTable, stat, urlify, weapons } from "../../utils/utils"
1616
import styles from "../style.module.css"
1717

1818
interface Props {
@@ -52,12 +52,12 @@ export default function CharacterWebpage({ char, location, characterCurves, cost
5252
{char.ascensionCosts && costTemplates && <TOC href="#ascensions" title="Ascensions" />}
5353
{char.meta && <TOC href="#meta" title="Meta" />}
5454
{char.media.videos && <TOC href="#videos" title={Object.keys(char.media.videos).length > 1 ? "Videos" : "Video"} />}
55-
{char.skills && char.skills.map((s, i) => (<>
55+
{char.skills && char.skills.map((s, i) => (<span key={i}>
5656
{multiskill && <div>{s.ult?.type ?? `Skillset #${i}`}</div>}
5757
{s.talents && <TOC depth={multiskill ? 1 : 0} href={`#talents${i > 0 ? `-${i}` : ""}`} title="Talents" />}
5858
{s.passive && <TOC depth={multiskill ? 1 : 0} href={`#passive${i > 0 ? `-${i}` : ""}`} title="Passives" />}
5959
{s.constellations && <TOC depth={multiskill ? 1 : 0} href={`#const${i > 0 ? `-${i}` : ""}`} title="Constellations" />}
60-
</>))}
60+
</span>))}
6161
</div>
6262

6363
<div className="grid grid-flow-col justify-start">

pages/reminders.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import { GetServerSideProps } from "next"
2-
import { DiscordUser, Reminder } from "../utils/types"
3-
import { parseUser } from "../utils/parse-user"
4-
import Main from "../components/Main"
52
import Head from "next/head"
3+
import { Component } from "react"
4+
import Main from "../components/Main"
65
import { config } from "../utils/config"
7-
import { Component, useState } from "react"
8-
import Image from "next/image"
6+
import { parseUser } from "../utils/parse-user"
7+
import { DiscordUser, Reminder } from "../utils/types"
98

109
interface Props {
1110
user: DiscordUser
@@ -64,7 +63,8 @@ function ReminderCard({ r, onDelete }: { r: Reminder, onDelete: () => void }) {
6463
}
6564

6665
function DiscordAvatar({ user }: { user: DiscordUser }) {
67-
return <Image
66+
// eslint-disable-next-line @next/next/no-img-element
67+
return <img
6868
src={user.avatar ? `https://cdn.discordapp.com/avatars/${user.id}/${user.avatar}.webp?size=16` : "https://discord.com/assets/1f0bfc0865d324c2587920a7d80c609b.png"}
6969
alt="Discord avatar"
7070
width={16}

0 commit comments

Comments
 (0)