fix placeholder images to use image util for AWS
This commit is contained in:
parent
f617364cb4
commit
ca3aa0687f
3 changed files with 6 additions and 6 deletions
|
|
@ -7,7 +7,7 @@
|
||||||
import MenuItems from '$lib/components/ui/menu/MenuItems.svelte'
|
import MenuItems from '$lib/components/ui/menu/MenuItems.svelte'
|
||||||
import UncapIndicator from '$lib/components/uncap/UncapIndicator.svelte'
|
import UncapIndicator from '$lib/components/uncap/UncapIndicator.svelte'
|
||||||
import CharacterTags from '$lib/components/tags/CharacterTags.svelte'
|
import CharacterTags from '$lib/components/tags/CharacterTags.svelte'
|
||||||
import { getCharacterImageWithPose } from '$lib/utils/images'
|
import { getCharacterImageWithPose, getPlaceholderImage } from '$lib/utils/images'
|
||||||
import { openDetailsSidebar } from '$lib/features/details/openDetailsSidebar.svelte'
|
import { openDetailsSidebar } from '$lib/features/details/openDetailsSidebar.svelte'
|
||||||
import { sidebar } from '$lib/stores/sidebar.svelte'
|
import { sidebar } from '$lib/stores/sidebar.svelte'
|
||||||
import { GridType } from '$lib/types/enums'
|
import { GridType } from '$lib/types/enums'
|
||||||
|
|
@ -261,7 +261,7 @@
|
||||||
<img
|
<img
|
||||||
class="image placeholder"
|
class="image placeholder"
|
||||||
alt=""
|
alt=""
|
||||||
src="/images/placeholders/placeholder-weapon-grid.png"
|
src={getPlaceholderImage('character', 'grid')}
|
||||||
/>
|
/>
|
||||||
{#if ctx?.canEdit()}
|
{#if ctx?.canEdit()}
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
import MenuItems from '$lib/components/ui/menu/MenuItems.svelte'
|
import MenuItems from '$lib/components/ui/menu/MenuItems.svelte'
|
||||||
import UncapIndicator from '$lib/components/uncap/UncapIndicator.svelte'
|
import UncapIndicator from '$lib/components/uncap/UncapIndicator.svelte'
|
||||||
import { getSummonImage } from '$lib/features/database/detail/image'
|
import { getSummonImage } from '$lib/features/database/detail/image'
|
||||||
|
import { getPlaceholderImage } from '$lib/utils/images'
|
||||||
import { openDetailsSidebar } from '$lib/features/details/openDetailsSidebar.svelte'
|
import { openDetailsSidebar } from '$lib/features/details/openDetailsSidebar.svelte'
|
||||||
import { sidebar } from '$lib/stores/sidebar.svelte'
|
import { sidebar } from '$lib/stores/sidebar.svelte'
|
||||||
import { GridType } from '$lib/types/enums'
|
import { GridType } from '$lib/types/enums'
|
||||||
|
|
@ -176,7 +177,7 @@
|
||||||
<img
|
<img
|
||||||
class="image placeholder"
|
class="image placeholder"
|
||||||
alt=""
|
alt=""
|
||||||
src={position === -1 || position === 6 ? '/images/placeholders/placeholder-summon-main.png' : '/images/placeholders/placeholder-summon-sub.png'}
|
src={getPlaceholderImage('summon', position === -1 || position === 6 ? 'main' : 'grid')}
|
||||||
/>
|
/>
|
||||||
{#if ctx?.canEdit()}
|
{#if ctx?.canEdit()}
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
import MenuItems from '$lib/components/ui/menu/MenuItems.svelte'
|
import MenuItems from '$lib/components/ui/menu/MenuItems.svelte'
|
||||||
import UncapIndicator from '$lib/components/uncap/UncapIndicator.svelte'
|
import UncapIndicator from '$lib/components/uncap/UncapIndicator.svelte'
|
||||||
import { getWeaponImage } from '$lib/features/database/detail/image'
|
import { getWeaponImage } from '$lib/features/database/detail/image'
|
||||||
|
import { getPlaceholderImage } from '$lib/utils/images'
|
||||||
import { openDetailsSidebar } from '$lib/features/details/openDetailsSidebar.svelte'
|
import { openDetailsSidebar } from '$lib/features/details/openDetailsSidebar.svelte'
|
||||||
import { getAwakeningImage, getWeaponKeyImages, getAxSkillImages } from '$lib/utils/modifiers'
|
import { getAwakeningImage, getWeaponKeyImages, getAxSkillImages } from '$lib/utils/modifiers'
|
||||||
import { sidebar } from '$lib/stores/sidebar.svelte'
|
import { sidebar } from '$lib/stores/sidebar.svelte'
|
||||||
|
|
@ -230,9 +231,7 @@
|
||||||
<img
|
<img
|
||||||
class="image placeholder"
|
class="image placeholder"
|
||||||
alt=""
|
alt=""
|
||||||
src={position === -1
|
src={getPlaceholderImage('weapon', position === -1 ? 'main' : 'grid')}
|
||||||
? '/images/placeholders/placeholder-weapon-main.png'
|
|
||||||
: '/images/placeholders/placeholder-weapon-grid.png'}
|
|
||||||
/>
|
/>
|
||||||
{#if ctx?.canEdit()}
|
{#if ctx?.canEdit()}
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue