1
0
Fork 0
mirror of https://ark.sudovanilla.org/Korbs/butterflyvu.git synced 2024-12-22 15:23:54 +00:00

Setup Feelback configuration and componet

This commit is contained in:
Korbs 2024-12-10 22:45:19 -05:00
parent aa8d824293
commit 904536b407
2 changed files with 18 additions and 16 deletions

View file

@ -9,6 +9,13 @@
"WhiteLabel": "true",
"FooterVersion": "true"
},
"FeelbackConfig": {
"Enabled": false,
"ContentSetId": "566e8b96-c65e-4bf7-87df-d22a9f4994a2",
"Present": "like-dislike",
"Question": "Did this article help?",
"Answer": "Thank you for your feedback."
},
"HeaderItems": [
{
"text": "Syntax",

View file

@ -1,6 +1,6 @@
---
// Settings
import { SiteSettings } from '@config'
import { SiteSettings, FeelbackConfig } from '@config'
import {version} from '../../package.json'
// Properties
@ -29,21 +29,16 @@ import "@styles/prism.css"
<slot/>
<!-- <hr/>
<p>Last Updated: null</p> -->
<!-- {
FEEDBACK_ENABLED ?
// Feelback
FEELBACK_ENABLED ?
<FeelbackYesNo
contentSetId="2308b02b-8f9f-437e-9780-5ad4c0db016e"
preset="like-dislike"
textQuestion="Did this article help?"
textAnswer="Thank you for your feedback."
/>
:
null
:
null
} -->
{FeelbackConfig.Enabled ?
<FeelbackYesNo
contentSetId={FeelbackConfig.ContentSetId}
preset={FeelbackConfig.Present}
textQuestion={FeelbackConfig.Question}
textAnswer={FeelbackConfig.Answer}
/>
:
null
}
</div>
</article>