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", "WhiteLabel": "true",
"FooterVersion": "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": [ "HeaderItems": [
{ {
"text": "Syntax", "text": "Syntax",

View file

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