
์ธ์ด ๐ฐ๐ท ํ๊ตญ์ด
์์ํ๊ธฐ
์ฌ์ฉ๋ฒ
๋ฌธ์
FastComments Vue 3 Library
์ด๊ฒ์ FastComments์ ๊ณต์ Vue 3 ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๋๋ค.
Vue 3์ฉ FastComments ๋๊ธ ์์ ฏ
์ ์ฅ์
์ฌ์ฉ๋ฒ 
๋๊ธ ์์ ฏ
FastCommentsVueNext ์ปดํฌ๋ํธ๋ ๋ผ์ด๋ธ FastComments ๋๊ธ ์์ ฏ์ ํฌํจํฉ๋๋ค.
์๋์ "demo"๋ฅผ ๊ทํ์ "tenantId"๋ก ๋ฐ๊พธ์ธ์ - FastComments ๊ด๋ฆฌ์ ์์ญ์์ ์ฌ๊ธฐ์์ ํ์ธํ ์ ์์ต๋๋ค.
์ด ์์ ฏ์ ๋ง์ ์ต์ ์ ์ง์ํฉ๋๋ค - FastCommentsConfig๋ ์ฌ๊ธฐ๋ฅผ ์ฐธ์กฐํ์ธ์.
<template>
<FastComments v-bind:config="{tenantId: 'demo'}" />
</template>
<script>
import { FastComments } from 'fastcomments-vue-next'
export default {
name: 'FastCommentsExample',
components: {
FastComments
}
}
</script>
ํ์ฌ ํ์ด์ง ์
๋ฐ์ดํธ (SPA ์์ ) 
FastComments์์๋ ๊ฒ์๋ฌผ ID(๋๋ ๋๊ธ์ด ์ฐ๊ฒฐ๋๋ ํ์ด์ง)๋ฅผ URL ID๋ผ๊ณ ๋ถ๋ฆ ๋๋ค. ์ด๋ URL์ด๊ฑฐ๋ ID์ผ ์ ์๊ธฐ ๋๋ฌธ์ ๋๋ค. ๋ค์๊ณผ ๊ฐ์ด URL ID๋ฅผ ์ ์ํ์ธ์. ์ปดํฌ๋ํธ๋ config ๊ฐ์ฒด์ ๋ณ๊ฒฝ์ ๊ฐ์ํ์ฌ ๋ค์ ๋ก๋ํ๋ฏ๋ก URL ID๋ฅผ ์ ๋ฐ์ดํธํ ์ ์์ต๋๋ค.
<FastComments v-bind:config="{tenantId: 'demo', url: 'https://example.com/somepage', urlId: 'some-page-id'}" />
Account Region (ATTENTION: EU Customers)
๊ณ์ ์ด EU์ ์๋ ๊ฒฝ์ฐ ์์ ฏ ๊ตฌ์ฑ์์ region = 'eu'๋ก ์ค์ ํ์ธ์. ์:
<FastComments v-bind:config="{tenantId: 'demo', url: 'https://example.com/somepage', urlId: 'some-page-id', region: 'eu'}" />
๊ทธ๋ ์ง ์์ผ๋ฉด region์ ์ ์ํ ํ์๊ฐ ์์ต๋๋ค.
ํ๋ก๋์
ํ๊ฒฝ 
์ฝ๋ฐฑ ๋ฑ์ ์ ๋ฌํ๋ ๊ฒฝ์ฐ config๋ฅผ ์ธ๋ผ์ธ์ผ๋ก ์ ์ํ๊ณ ์ถ์ง ์์ ๊ฒ์ ๋๋ค. ๋์ ,
config๋ฅผ computed()๋ฅผ ํตํด ์ ์ํด์ผ ํฉ๋๋ค. ๊ทธ๋ ์ง ์์ผ๋ฉด ์ฝ๋ฐฑ ๋ฑ์ด ํธ์ถ๋ ๋๋ง๋ค ์์ ฏ ์ ์ฒด๊ฐ ๋ค์ ๋ ๋๋ง๋ฉ๋๋ค.
FastComments 
FastComments
์ด ๋ฌธ์์๋ FastComments๋ฅผ Vue3์ ํจ๊ป ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ๋ํ ๋ช ๊ฐ์ง ์์ ๊ฐ ํฌํจ๋์ด ์์ต๋๋ค.
์ ์ฒด ๊ตฌ์ฑ ์ต์ ๋ชฉ๋ก์ fastcomments-typescript ๋ฐ ๋น์ฌ ๋ฌธ์๋ฅผ ์ฐธ์กฐํ์ธ์.
๋์์ด ํ์ํ์ ๊ฐ์?
Vue 3 ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ฌ์ฉ ์ค ๋ฌธ์ ๊ฐ ๋ฐ์ํ๊ฑฐ๋ ์ง๋ฌธ์ด ์๋ ๊ฒฝ์ฐ, ๋ค์์ ์ด์ฉํ์ธ์:
๊ธฐ์ฌ
๊ธฐ์ฌ๋ ํ์ํฉ๋๋ค! ๊ธฐ์ฌ ์ง์นจ์ GitHub ์ ์ฅ์๋ฅผ ๋ฐฉ๋ฌธํ์ธ์.