-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* bookmark 레이아웃 수정 * storybook 개선 * publish * asdf
- Loading branch information
1 parent
297d08e
commit 7f39e72
Showing
5 changed files
with
65 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
packages/svelte-notion-page/src/stories/bookmark/BookMark.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<script lang="ts"> | ||
import Bookmark from '$lib/default-notion-components/Bookmark.svelte'; | ||
export let props: any; | ||
async function getMeta(url: string) { | ||
if (url.includes('naver.com')) { | ||
return { | ||
title: '네이버', | ||
description: '네이버 메인에서 다양한 정보와 유용한 컨텐츠를 만나 보세요. 네이버 메인에서 다양한 정보와 유용한 컨텐츠를 만나 보세요. 네이버 메인에서 다양한 정보와 유용한 컨텐츠를 만나 보세요. 네이버 메인에서 다양한 정보와 유용한 컨텐츠를 만나 보세요. 네이버 메인에서 다양한 정보와 유용한 컨텐츠를 만나 보세요.', | ||
favicon: 'https://www.naver.com/favicon.ico', | ||
image: 'https://s.pstatic.net/static/www/mobile/edit/2016/0705/mobile_212852414260.png' | ||
}; | ||
} | ||
return { | ||
title: 'You must replace this component with something that have own getMeta method', | ||
description: '', | ||
image: '', | ||
favicon: '' | ||
}; | ||
} | ||
</script> | ||
|
||
<Bookmark {props} {getMeta} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters