Skip to content

Commit

Permalink
Added package-lock.json. Updated Storybook preview head. Added .env f…
Browse files Browse the repository at this point in the history
…ile.
  • Loading branch information
trevoreyre committed Nov 28, 2023
1 parent a65f3c2 commit f395518
Show file tree
Hide file tree
Showing 6 changed files with 14,780 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VITE_GOOGLE_MAPS_API_KEY=
VITE_GOOGLE_MAPS_MAP_ID=
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ custom-elements.json
my-element.bundled.js
.turbo
storybook-static
.DS_Store
.env
9 changes: 0 additions & 9 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@ const config = {
stories: ['../{src,docs}/**/*.mdx', '../{src,docs}/**/*.stories.js'],
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
docs: { autodocs: true },
previewHead: (head) => `
${head}
<script async src="https://maps.googleapis.com/maps/api/js?callback=googleMapsCallback&key=AIzaSyBaKhvYlE30Hxxwny_Rkm8-WB7gigy8GaY&libraries=maps,marker&v=beta"></script>
<script>
function googleMapsCallback() {
console.log('Google Maps loaded!')
}
</script>
`,
}

export default config
9 changes: 9 additions & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<script
async
src="https://maps.googleapis.com/maps/api/js?callback=googleMapsCallback&key=%VITE_GOOGLE_MAPS_API_KEY%&libraries=maps,marker&v=beta"
></script>
<script>
function googleMapsCallback() {
console.log('Google Maps loaded!')
}
</script>
2 changes: 1 addition & 1 deletion docs/examples/llama-llama-adventure-home-page.stories.js

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

Loading

0 comments on commit f395518

Please sign in to comment.