mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
f6dd813247
* chore(locadex): add .locadex/LOCADEX.md * refactor(locadex): i18n * gt-retranslate (#1199) * update interaction.drilldown code sample (#1198) * removed quotes (#1203) * Add missing hostnames to CSP configuration (#1202) * Add missing hostnames to CSP configuration Added 13 missing domains found in comprehensive codebase search: - *.mintlify.com (dashboard, API, analytics proxy) - leaves.mintlify.com (GitLab webhooks) - d1ctpt7j8wusba.cloudfront.net (mint releases) - mintcdn.com (asset tracking) - api.mintlifytrieve.com (search API) - mintlify-assets.b-cdn.net (BunnyCDN) - mintlify.s3-us-west-1.amazonaws.com (S3 images) - fonts.googleapis.com (Google Fonts) - cdn.jsdelivr.net (emoji assets) - us.posthog.com (PostHog analytics) - cdn.getkoala.com (Koala analytics) - browser.sentry-cdn.com (Sentry error tracking) - js.sentry-cdn.com (Sentry SDK) Updated domain whitelist table and all CSP configuration examples (Cloudflare, AWS CloudFront, Vercel) to include required domains. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Apply suggestions from code review Co-authored-by: Mayank Shouche <43075711+mayankshouche@users.noreply.github.com> * Update guides/csp-configuration.mdx Co-authored-by: Lucas <18381968+lucaspunz@users.noreply.github.com> * Update guides/csp-configuration.mdx * Update CSP examples to match revised domain whitelist - Remove mintlify-assets.b-cdn.net and mintlify.s3-us-west-1.amazonaws.com - Add *.mintcdn.com wildcard domain to img-src and connect-src - Update all configuration examples (main, Cloudflare, AWS CloudFront, Vercel) - Align with reviewer feedback from PR #1202 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * remove redundancies in examples --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Mayank Shouche <43075711+mayankshouche@users.noreply.github.com> Co-authored-by: Lucas <18381968+lucaspunz@users.noreply.github.com> * Added custom reverse proxy configurartion. (#1200) * Update advanced/reverse-proxy.mdx * Update docs.json * Documentation edits made through Mintlify web editor * Update advanced/reverse-proxy.mdx * Update advanced/reverse-proxy.mdx * Update advanced/reverse-proxy.mdx * Documentation edits made through Mintlify web editor * Documentation edits made through Mintlify web editor * move from `advanced` to `guides` * copy edit * remove Custom from title * fix group casing * concision * update header * replace lists with table * more active language * remove redundant example * update placeholder * remove propagating snippet * copy edit troubleshooting * make limitations more solutions-oriented * update example config --------- Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com> * Update Vale configuration (#1194) * add CI workflow * add script to find new vocabulary terms * add vocab accept list * add modified Google styles * add Mintlify headings * add vale.ini * update vocab with Mintlify defaults * add README for vale * update vocab * fix vale.ini * remove redundant workflow * update vocab * add running vale to the Claude review command * hide reverse proxy guide (#1211) * Added troubleshooting section for disabled repository options (#1210) * Update settings/github.mdx * add troubleshooting for public repo feedback * add images --------- Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com> * Vale improvements (#1212) * update header exceptions * remove FirstPerson rule it mostly flags UI elements like "My profile" * remove Will - too noisy * add drilldown to accept list * update accepted words * Fix vale errors (#1213) * don't lint inside JSON examples * actually don't lint inside JSON snippets * update vocab * fix errors * update vocab * remove latin abbreviations * don't lint snippets * update vocab * don't lint in angle brackets * add language tags * update vocab * regexify vocab list * grammar * changelog added for Sept 14-19 (#1215) * changelog added for Sept 14-19 * Update changelog.mdx Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com> * Update changelog.mdx Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com> --------- Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com> * Documentation edits made through Mintlify web editor (#1242) Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> * hide slack app page (#1250) * Updated codeblock styling documentation with new theme options (#1252) * Update settings.mdx * Update code.mdx * Update components/code-groups.mdx * Update settings.mdx * Update code.mdx * Update components/code-groups.mdx * Update settings.mdx * Update code.mdx * Update components/code-groups.mdx * copy edits --------- Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com> * chore(locadex): add .locadex/LOCADEX.md * pulling updates to docs * gt-retranslate * updating translations * re-translate * retranslate es/text.mdx --------- Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com> Co-authored-by: RoyceWilliams510 <roycejames1130@gmail.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Mayank Shouche <43075711+mayankshouche@users.noreply.github.com> Co-authored-by: Lucas <18381968+lucaspunz@users.noreply.github.com> Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> Co-authored-by: Brandon Waselnuk <brandonwaselnuk@gmail.com> Co-authored-by: locadex-agent[bot] <217277504+locadex-agent[bot]@users.noreply.github.com> * hide slack app page * add files --------- Co-authored-by: locadex-agent[bot] <217277504+locadex-agent[bot]@users.noreply.github.com> Co-authored-by: fernando-aviles <fernando@generaltranslation.com> Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com> Co-authored-by: RoyceWilliams510 <roycejames1130@gmail.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Mayank Shouche <43075711+mayankshouche@users.noreply.github.com> Co-authored-by: Lucas <18381968+lucaspunz@users.noreply.github.com> Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> Co-authored-by: Brandon Waselnuk <brandonwaselnuk@gmail.com>
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
export const Counter = () => {
|
|
const [count, setCount] = useState(0)
|
|
|
|
const increment = () => setCount(count + 1)
|
|
const decrement = () => setCount(count - 1)
|
|
|
|
return (
|
|
<div className="flex items-center justify-center">
|
|
<div className="flex items-center rounded-xl overflow-hidden border border-zinc-950/20 dark:border-white/20">
|
|
<button
|
|
onClick={decrement}
|
|
className="flex items-center justify-center h-8 w-8 text-zinc-950/80 dark:text-white/80 border-r border-zinc-950/20 dark:border-white/20"
|
|
aria-label="Decrease"
|
|
>
|
|
-
|
|
</button>
|
|
|
|
<div className="flex text-sm items-center justify-center h-8 px-6 text-zinc-950/80 dark:text-white/80 font-medium min-w-[4rem] text-center">
|
|
{count}
|
|
</div>
|
|
|
|
<button
|
|
onClick={increment}
|
|
className="flex items-center justify-center h-8 w-8 text-zinc-950/80 dark:text-white/80 border-l border-zinc-950/20 dark:border-white/20"
|
|
aria-label="Increase"
|
|
>
|
|
+
|
|
</button>
|
|
</div>
|
|
</div>
|
|
)
|
|
} |