Avivash/add fission server url to app info (#68)

This commit is contained in:
Andrew Vivash 2022-09-22 13:17:01 -07:00 committed by GitHub
parent 15cc1f06ed
commit 9bf8f8123f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

2
.gitignore vendored
View File

@ -6,4 +6,4 @@ node_modules/
build/
# macOS
.DS_Store5
.DS_Store

View File

@ -4,6 +4,7 @@
import { deleteImageFromWNFS } from '$lib/gallery'
import { galleryStore } from '../../../stores'
import type { Gallery, Image } from '$lib/gallery'
import { fissionServerUrl } from '$lib/app-info'
export let image: Image
export let isModalOpen: boolean = false
@ -125,7 +126,7 @@
</button>
{/if}
<img
class="block object-cover object-center w-full h-full mb-4"
class="block object-cover object-center w-full h-full mb-4 rounded-[1rem]"
alt={`Image: ${image.name}`}
src={image.src}
/>
@ -140,7 +141,7 @@
</div>
<div class="flex flex-col items-center justify-center">
<a
href={`https://ipfs.runfission.net/ipfs/${image.cid}/userland`}
href={`https://ipfs.${fissionServerUrl}/ipfs/${image.cid}/userland`}
target="_blank"
class="underline mb-4 hover:text-slate-500"
>

View File

@ -2,3 +2,4 @@ export const appName = 'Awesome Webnative App'
export const appDescription = 'This is another awesome Webnative app.'
export const appURL = 'https://webnative.netlify.app'
export const appImageURL = `${appURL}/preview.png`
export const fissionServerUrl = 'runfission.com'