Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added playground to docs, and google analytics to it #46

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<strong><a href="https://github.com/vazco/sparrowql/blob/master/.github/CONTRIBUTING.md">Contribute</a></strong> |
<strong><a href="#usage">Usage</a></strong> |
<strong><a href="https://github.com/vazco/sparrowql/blob/master/INTRODUCTION.md">Documentation</a></strong> |
<strong><a href="https://vazco.github.io/sparrowql">Playground</a></strong> |
<strong><a href="https://github.com/vazco/sparrowql/blob/master/FAQ.md">FAQ</a></strong>
</p>

Expand Down
12 changes: 11 additions & 1 deletion playground/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"lz-string": "1.5.0",
"prettier": "2.8.8",
"typescript": "5.1.3",
"vite": "4.4.5"
"vite": "4.4.5",
"vite-plugin-radar": "0.9.3"
}
}
8 changes: 7 additions & 1 deletion playground/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import { vitePluginRadar } from 'vite-plugin-radar'

// https://vitejs.dev/config/
export default defineConfig({
base: '/sparrowql/',
plugins: [react()],
plugins: [react(), vitePluginRadar({
enableDev: false,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is false by default. You can remove this line.

gtm: {
id: 'G-ZDM0DBJJVX'
}
})],
})
Loading