Skip to content

Commit

Permalink
Merge pull request #31 from metastellar-io/iwaki
Browse files Browse the repository at this point in the history
add tokenposter export
  • Loading branch information
mymiracle0118 authored Jul 18, 2024
2 parents d978703 + e1a86ac commit 3c7ee61
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metastellar/ui-library",
"version": "0.0.17",
"version": "0.0.18",
"scripts": {
"dev": "vite dev --host",
"build": "vite build && npm run package",
Expand Down
16 changes: 8 additions & 8 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import type { AssetAccount } from "$lib/types.js";

// export const nftInfo: AssetAccount = {
// code: "Spunks",
// issuer: "GCAR7OJULRZBOMMUPJ33YMI3O6GPBMKHWVWQAD2BHSH6NZ25QYMI44UP"
// }
export const nftInfo: AssetAccount = {
code: "Spunks",
issuer: "GCAR7OJULRZBOMMUPJ33YMI3O6GPBMKHWVWQAD2BHSH6NZ25QYMI44UP"
}

// export const nftInfo: AssetAccount = {
// code: "CYBERMAN007",
// issuer: "GABSMRCVPJJQZ3PDYKR4B3UCU26JBMJFSWEQVQAHPDEFHDMSJI3IQ7IT"
// }

export const nftInfo: AssetAccount = {
code: "nmt",
issuer: "GDSZ24D4II53QDUQDWJMCOYDE7YCLWH3XUAE662GS46RCZF3E7KTRR5E"
}
// export const nftInfo: AssetAccount = {
// code: "nmt",
// issuer: "GDSZ24D4II53QDUQDWJMCOYDE7YCLWH3XUAE662GS46RCZF3E7KTRR5E"
// }

export const tokenInfo: AssetAccount = {
code: "BTCLN",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ export { default as Card } from "./card/card.svelte";
export { default as AssetSelector } from "./assetSelector/assetSelector.svelte";
export { default as ImagePoster } from "./imagePoster/imagePoster.svelte";
export { default as NftPoster } from "./nftPoster/nftPoster.svelte";
export { default as TokenPoster } from "./tokenPoster/tokenPoster.svelte";
export { default as YoutubePoster } from "./youtubePoster/youtubePoster.svelte";
export { default as CanvasModal } from "./CanvasModal/Modal.svelte";
export { default as Jumbotron} from "./jumbotron/index.svelte";
export { default as Jumbotron } from "./JumboTron/index.svelte";
export type * from "./types.js";
export { normalizeData, renderCanvas};

Expand Down
1 change: 1 addition & 0 deletions src/lib/nftPoster/nftPoster.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
assetInfo: assetInfo,
assetMetadata: assetMetadata
}
console.log("data", data);
getNFTAssetInfo(data)
}
Expand Down
6 changes: 3 additions & 3 deletions src/lib/tokenPoster/tokenPoster.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@
{#if assetMetadata?.image}
<img class={imgCls} src={assetMetadata?.image} alt="product 1" width={100} />
{:else}
<!-- <div class="flex justify-center items-center w-full h-48 bg-gray-300 rounded dark:bg-gray-700">
<svg width="48" height="48" class="text-gray-200" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" viewBox="0 0 640 512">
<div class={imgCls}>
<svg height="48" class="text-gray-200" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" viewBox="0 0 640 512">
<path d="M480 80C480 35.82 515.8 0 560 0C604.2 0 640 35.82 640 80C640 124.2 604.2 160 560 160C515.8 160 480 124.2 480 80zM0 456.1C0 445.6 2.964 435.3 8.551 426.4L225.3 81.01C231.9 70.42 243.5 64 256 64C268.5 64 280.1 70.42 286.8 81.01L412.7 281.7L460.9 202.7C464.1 196.1 472.2 192 480 192C487.8 192 495 196.1 499.1 202.7L631.1 419.1C636.9 428.6 640 439.7 640 450.9C640 484.6 612.6 512 578.9 512H55.91C25.03 512 .0006 486.1 .0006 456.1L0 456.1z" />
</svg>
</div> -->
</div>
{/if}

<div class="flex justify-between w-full mt-2">
Expand Down
6 changes: 3 additions & 3 deletions src/lib/youtubePoster/youtubePoster.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@
(videoElement as any).msRequestFullscreen();
}
}
onMount(()=>{
console.log($$restProps)
})
// onMount(()=>{
// console.log($$restProps)
// })
</script>

<Frame {...$$restProps} class={cardClass}>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
<NftPoster
isMouseTrackRecord={false}
dataURL="http://localhost/api"
baseURL = {testnetBaseURL}
baseURL = {mainnetBaseURL}
intervalData={intervalData}
hoverTransform
imgHoverTransform
Expand Down

0 comments on commit 3c7ee61

Please sign in to comment.