Skip to content

Commit 9e8015b

Browse files
committed
feat: added google places api script
1 parent 7405063 commit 9e8015b

File tree

32 files changed

+248
-0
lines changed

32 files changed

+248
-0
lines changed

templates/builder/astro/tailwind/js/src/pages/index.astro

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import Layout from '../layouts/Layout.astro';
33
import FormBuilder from '../components/FormBuilder.vue';
44
---
5+
<script is:inline type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
56

67
<Layout title="Welcome to Astro.">
78
<FormBuilder client:only="vue"/>

templates/builder/astro/tailwind/ts/src/pages/index.astro

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import Layout from '../layouts/Layout.astro';
33
import FormBuilder from '../components/FormBuilder.vue';
44
---
5+
<script is:inline type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
56

67
<Layout title="Welcome to Astro.">
78
<FormBuilder client:only="vue"/>

templates/builder/laravel/tailwind/js/resources/views/welcome.blade.php

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<title>Laravel</title>
77
@vite(['resources/css/app.css', 'resources/js/app.js'])
8+
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
89
</head>
910
<body>
1011
<div id="app"></div>

templates/builder/nuxt/tailwind/ts/nuxt.config.ts

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
// https://nuxt.com/docs/api/configuration/nuxt-config
22
export default defineNuxtConfig({
3+
app: {
4+
head: {
5+
script: [
6+
{
7+
async: true,
8+
src: 'https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places',
9+
},
10+
],
11+
},
12+
},
313
devtools: { enabled: true },
414
css: ['~/assets/css/main.css'],
515
modules: [
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + Vue</title>
8+
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.js"></script>
13+
</body>
14+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + Vue + TS</title>
8+
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.ts"></script>
13+
</body>
14+
</html>

templates/vueform/astro/bootstrap/js/src/pages/index.astro

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import TestForm from './../components/TestForm.vue';
66
@import './../styles/style.scss';
77
</style>
88

9+
<script is:inline type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
10+
911
<Layout title="Welcome to Astro.">
1012
<TestForm client:only="vue" />
1113
</Layout>

templates/vueform/astro/bootstrap/ts/src/pages/index.astro

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import TestForm from './../components/TestForm.vue';
66
@import './../styles/style.scss';
77
</style>
88

9+
<script is:inline type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
10+
911
<Layout title="Welcome to Astro.">
1012
<TestForm client:only="vue" />
1113
</Layout>

templates/vueform/astro/material/js/src/pages/index.astro

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import TestForm from './../components/TestForm.vue';
66
@import './../styles/style.scss';
77
</style>
88

9+
<script is:inline type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
10+
911
<Layout title="Welcome to Astro.">
1012
<TestForm client:only="vue" />
1113
</Layout>

templates/vueform/astro/material/ts/src/pages/index.astro

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import TestForm from './../components/TestForm.vue';
66
@import './../styles/style.scss';
77
</style>
88

9+
<script is:inline type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
10+
911
<Layout title="Welcome to Astro.">
1012
<TestForm client:only="vue" />
1113
</Layout>

templates/vueform/astro/tailwind-material/js/src/pages/index.astro

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import Layout from '../layouts/Layout.astro';
33
import TestForm from './../components/TestForm.vue';
44
---
5+
<script is:inline type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
56

67
<Layout title="Welcome to Astro.">
78
<div class="dark max-w-[320px] h-screen flex items-center justify-center mx-auto">

templates/vueform/astro/tailwind-material/ts/src/pages/index.astro

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import Layout from '../layouts/Layout.astro';
33
import TestForm from './../components/TestForm.vue';
44
---
5+
<script is:inline type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
56

67
<Layout title="Welcome to Astro.">
78
<div class="dark max-w-[320px] h-screen flex items-center justify-center mx-auto">

templates/vueform/astro/tailwind/js/src/pages/index.astro

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import Layout from '../layouts/Layout.astro';
33
import TestForm from './../components/TestForm.vue';
44
---
5+
<script is:inline type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
56

67
<Layout title="Welcome to Astro.">
78
<div class="dark max-w-[320px] h-screen flex items-center justify-center mx-auto">

templates/vueform/astro/tailwind/ts/src/pages/index.astro

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import Layout from '../layouts/Layout.astro';
33
import TestForm from './../components/TestForm.vue';
44
---
5+
<script is:inline type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
56

67
<Layout title="Welcome to Astro.">
78
<div class="dark max-w-[320px] h-screen flex items-center justify-center mx-auto">

templates/vueform/astro/vueform/js/src/pages/index.astro

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import TestForm from './../components/TestForm.vue';
66
@import './../styles/style.scss';
77
</style>
88

9+
<script is:inline type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
10+
911
<Layout title="Welcome to Astro.">
1012
<TestForm client:only="vue" />
1113
</Layout>

templates/vueform/astro/vueform/ts/src/pages/index.astro

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import TestForm from './../components/TestForm.vue';
66
@import './../styles/style.scss';
77
</style>
88

9+
<script is:inline type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
10+
911
<Layout title="Welcome to Astro.">
1012
<TestForm client:only="vue" />
1113
</Layout>

templates/vueform/laravel/vueform/js/resources/views/welcome.blade.php

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<title>Laravel</title>
77
@vite(['resources/css/app.css','resources/scss/app.scss', 'resources/js/app.js'])
8+
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
89
</head>
910
<body>
1011
<div id="app"></div>

templates/vueform/nuxt/bootstrap/ts/nuxt.config.ts

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
// https://nuxt.com/docs/api/configuration/nuxt-config
22
export default defineNuxtConfig({
3+
app: {
4+
head: {
5+
script: [
6+
{
7+
async: true,
8+
src: 'https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places',
9+
},
10+
],
11+
},
12+
},
313
devtools: { enabled: true },
414
css: ['~/assets/scss/main.scss'],
515
modules: [

templates/vueform/nuxt/material/ts/nuxt.config.ts

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
// https://nuxt.com/docs/api/configuration/nuxt-config
22
export default defineNuxtConfig({
3+
app: {
4+
head: {
5+
script: [
6+
{
7+
async: true,
8+
src: 'https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places',
9+
},
10+
],
11+
},
12+
},
313
devtools: { enabled: true },
414
css: ['~/assets/scss/main.scss'],
515
modules: [

templates/vueform/nuxt/tailwind-material/ts/nuxt.config.ts

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
// https://nuxt.com/docs/api/configuration/nuxt-config
22
export default defineNuxtConfig({
3+
app: {
4+
head: {
5+
script: [
6+
{
7+
async: true,
8+
src: 'https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places',
9+
},
10+
],
11+
},
12+
},
313
devtools: { enabled: true },
414
modules: [
515
'@nuxtjs/tailwindcss',

templates/vueform/nuxt/tailwind/ts/nuxt.config.ts

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
// https://nuxt.com/docs/api/configuration/nuxt-config
22
export default defineNuxtConfig({
3+
app: {
4+
head: {
5+
script: [
6+
{
7+
async: true,
8+
src: 'https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places',
9+
},
10+
],
11+
},
12+
},
313
devtools: { enabled: true },
414
modules: [
515
'@nuxtjs/tailwindcss',

templates/vueform/nuxt/vueform/ts/nuxt.config.ts

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
// https://nuxt.com/docs/api/configuration/nuxt-config
22
export default defineNuxtConfig({
3+
app: {
4+
head: {
5+
script: [
6+
{
7+
async: true,
8+
src: 'https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places',
9+
},
10+
],
11+
},
12+
},
313
devtools: { enabled: true },
414
css: ['~/assets/scss/main.scss'],
515
modules: [
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + Vue</title>
8+
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.js"></script>
13+
</body>
14+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + Vue + TS</title>
8+
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.ts"></script>
13+
</body>
14+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + Vue</title>
8+
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.js"></script>
13+
</body>
14+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + Vue + TS</title>
8+
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.ts"></script>
13+
</body>
14+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + Vue</title>
8+
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.js"></script>
13+
</body>
14+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + Vue + TS</title>
8+
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.ts"></script>
13+
</body>
14+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + Vue</title>
8+
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.js"></script>
13+
</body>
14+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + Vue + TS</title>
8+
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.ts"></script>
13+
</body>
14+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + Vue</title>
8+
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.js"></script>
13+
</body>
14+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + Vue + TS</title>
8+
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCToIMP1Rk6ZbGcfnJ2iwsnb09_lnxLmY&libraries=places"></script>
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.ts"></script>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)