Skip to content
New issue

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

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

Already on GitHub? # to your account

Add ability to customize corsBaseUrl #23

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.DS_Store
node_modules
/dist

# local env files
.env.local
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ options = {
apiKey: YOUR_API_KEY,
deepSearch: true,
cors: false,
corsBaseUrl: 'https://cors-anywhere.herokuapp.com',
params: {},
focus: false
}
Expand All @@ -81,6 +82,7 @@ options = {
| `apiKey` | String | null | Your Google PLACE Api key (REQUIRED) |
| `deepSearch` | Boolean | false | Get more informations about selected place (geometry etc..) |
| `cors` | Boolean | false | Set to true when project is running locally |
| `corsBaseUrl` | String | https://cors-anywhere.herokuapp.com | Uses a test proxy server. For production use, supply your own |
| `params` | Object | {} | Google Autocomplete optional parameters |
| `focus` | Boolean | false | Focus input |
| `debounceTime` | Number | 400 | Time in ms before trigger a new Google api call |
Expand Down
10 changes: 10 additions & 0 deletions dist/demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<meta charset="utf-8">
<title>vue-custom-google-autocomplete demo</title>
<script src="./vue-custom-google-autocomplete.umd.js"></script>

<link rel="stylesheet" href="./vue-custom-google-autocomplete.css">


<script>
console.log(vue-custom-google-autocomplete)
</script>
Loading