Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix formatting

Blue Mouse07f3db9bc720
diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js
index 8fe511f75..f16fe8228 100644
--- a/docs/docusaurus.config.js
+++ b/docs/docusaurus.config.js
@@ -137,7 +137,8 @@ const config = {
stylesheets: [
{
href: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css',
- integrity: 'sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc',
+ integrity:
+ 'sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc',
crossorigin: 'anonymous',
},
],
diff --git a/docs/sidebars.js b/docs/sidebars.js
index bb6fd7076..5273d4147 100644
--- a/docs/sidebars.js
+++ b/docs/sidebars.js
@@ -92,7 +92,12 @@ module.exports = {
},
],
API: ['api/stats', 'api/events', 'api/admin'],
- CAPTCHA: ['captcha/introduction', 'captcha/client-side-usage', 'captcha/server-side-validation', 'captcha/testing'],
+ CAPTCHA: [
+ 'captcha/introduction',
+ 'captcha/client-side-usage',
+ 'captcha/server-side-validation',
+ 'captcha/testing',
+ ],
'Self-hosting': ['selfhosting/how-to', 'selfhosting/configuring'],
Contribute: ['contribute/how-to'],
},
diff --git a/docs/src/components/FeedbackWidget.jsx b/docs/src/components/FeedbackWidget.jsx
index 8e8824be3..4710beda6 100644
--- a/docs/src/components/FeedbackWidget.jsx
+++ b/docs/src/components/FeedbackWidget.jsx
@@ -28,7 +28,11 @@ const hasRecentFeedback = (pathname) => {
const raw = window.localStorage.getItem(key)
if (raw) {
const data = JSON.parse(raw)
- if (data && typeof data.ts === 'number' && getNowMs() - data.ts < FEEDBACK_TTL_MS) {
+ if (
+ data &&
+ typeof data.ts === 'number' &&
+ getNowMs() - data.ts < FEEDBACK_TTL_MS
+ ) {
return true
}
}
@@ -112,8 +116,14 @@ export default function FeedbackWidget() {
<>
{showReasonForm ? (
<form className='swx-feedback-form' onSubmit={onSubmitReason}>
- <p className='swx-feedback-question'>Why was this page not helpful to you?</p>
- <div role='group' aria-label='Choose a reason' className='swx-feedback-reasons'>
+ <p className='swx-feedback-question'>
+ Why was this page not helpful to you?
+ </p>
+ <div
+ role='group'
+ aria-label='Choose a reason'
+ className='swx-feedback-reasons'
+ >
{NEGATIVE_REASONS.map((label) => (
<label key={label} className='swx-feedback-reason'>
<input
@@ -138,7 +148,9 @@ export default function FeedbackWidget() {
</form>
) : (
<>
- <p className='swx-feedback-question'>Was this page helpful to you?</p>
+ <p className='swx-feedback-question'>
+ Was this page helpful to you?
+ </p>
<div role='group' className='swx-feedback-actions'>
<button
type='button'