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

Pass all options to MapboxGeocoder and fix query method #16

Open
wants to merge 61 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
e7dc04e
chore: add position prop
vinayakkulkarni Jul 18, 2019
e5b28e5
fix: No mapboxgl detected in options. Map markers are disabled. Pleas…
vinayakkulkarni Jul 18, 2019
90acf9b
Merge pull request #1 from vinayakkulkarni/position_mapboxgl_object_fix
vinayakkulkarni Jul 18, 2019
9dbcfaa
update package
vinayakkulkarni Jul 18, 2019
ea0a0b3
Merge pull request #2 from vinayakkulkarni/position_mapboxgl_object_fix
vinayakkulkarni Jul 18, 2019
eea8d71
fix: mapboxGl as prop not mapboxgl
vinayakkulkarni Jul 18, 2019
8457f91
chore: update build
vinayakkulkarni Jul 18, 2019
93474b8
chore: update package.json
vinayakkulkarni Jul 18, 2019
b63de8e
chore: update mapboxgl prop
vinayakkulkarni Jul 18, 2019
a64e494
chore: update multi-query string
vinayakkulkarni Jul 18, 2019
52e23b8
chore: update build to support multiquery
vinayakkulkarni Jul 18, 2019
7a99dd0
fix: typo error
vinayakkulkarni Jul 18, 2019
3341a1a
chore: update build
vinayakkulkarni Jul 18, 2019
8ab63b4
feat: add marker as props
vinayakkulkarni Sep 17, 2019
9cb0838
fix: update build
vinayakkulkarni Sep 17, 2019
d748481
fix: update debouce issue caused by vue component
vinayakkulkarni Oct 10, 2019
787bafa
fix: update build
vinayakkulkarni Oct 15, 2019
b8fa9ed
chore: remove the `_updateInput` method causing debounce issue
vinayakkulkarni Oct 21, 2019
68ce793
chore: update build
vinayakkulkarni Oct 21, 2019
cf924d6
fix query method
dd Feb 7, 2020
e95f88a
update passed props to MapboxGeocoder
dd Feb 7, 2020
1453034
fix: remove dist build
vinayakkulkarni May 19, 2020
9d30d96
feat(bot): setup dependabot 🤖
vinayakkulkarni May 19, 2020
29c97e4
feat(bot): setup semantic pr 🤖
vinayakkulkarni May 19, 2020
8f823da
chore: minor housekeeping 🧹
vinayakkulkarni May 19, 2020
8a739ca
feat(lint): add commitlint & husky 🏗
vinayakkulkarni May 19, 2020
e1f1512
chore(housekeeping): gitignore, prettier & babel configs 🥳
vinayakkulkarni May 19, 2020
ebfb583
refactor: remove public directory 📂
vinayakkulkarni May 19, 2020
6034d21
feat(ci): add github action 🏗
vinayakkulkarni May 19, 2020
f013cac
build(rollup): add rollup configs 👨‍🔧
vinayakkulkarni May 19, 2020
bd2a863
chore: add LICENSE 📓
vinayakkulkarni May 19, 2020
96a639d
refactor(source): refactor GeoCoderCtrl & remove vue config file 💅
vinayakkulkarni May 19, 2020
0469e1c
docs: update README 🥳
vinayakkulkarni May 19, 2020
6617fee
feat: add jsconfig for better intellisense 🔌
vinayakkulkarni May 19, 2020
4f8e7b5
refactor: add package.json & lockfile 🚀
vinayakkulkarni May 19, 2020
9d23d2c
Merge branch 'master' into fix/major-housekeeping
vinayakkulkarni May 19, 2020
ca8d336
Merge pull request #3 from geospoc/fix/major-housekeeping
vinayakkulkarni May 19, 2020
ae821b9
chore: update lockfile to include ship.js
vinayakkulkarni May 19, 2020
ec6aaa9
Merge pull request #4 from geospoc/feat/add-shipjs-workflow
vinayakkulkarni May 19, 2020
f5fa654
chore: release v0.1.0 (#5)
vinayakkulkarni May 19, 2020
06fd64c
chore(deps): update lockfile with correct scope
vinayakkulkarni May 19, 2020
b30deca
Merge pull request #6 from geospoc/fix/package-scope-issue
vinayakkulkarni May 19, 2020
71d6151
chore: release v0.1.1 (#7)
vinayakkulkarni May 19, 2020
af2a8d3
chore(deps-dev): bump rollup from 2.10.4 to 2.10.5
dependabot-preview[bot] May 19, 2020
6340fe9
Merge pull request #8 from geospoc/dependabot/npm_and_yarn/rollup-2.10.5
dependabot-preview[bot] May 19, 2020
309c8fd
fix: stop squishing results after updating input
vinayakkulkarni May 20, 2020
d0d23f8
fix: typo issue
vinayakkulkarni May 20, 2020
35b7b1d
Merge pull request #9 from geospoc/fix/results-squishing-issue
vinayakkulkarni May 20, 2020
b6a340c
chore: update docs
vinayakkulkarni May 20, 2020
9a0dc0e
Merge pull request #10 from geospoc/fix/update-docs
vinayakkulkarni May 20, 2020
06ef6b6
fix: no mapboxgl detected issue
vinayakkulkarni May 20, 2020
8e0ba70
Merge pull request #11 from geospoc/fix/mapbox-gl-issue
vinayakkulkarni May 20, 2020
ee218c9
feat: add geocoder based on custom container_id
vinayakkulkarni May 20, 2020
c7e06be
docs: update example
vinayakkulkarni May 20, 2020
928de2b
Merge pull request #12 from geospoc/feat/add-custom-container-support
vinayakkulkarni May 20, 2020
84c0fde
feat: add badges
vinayakkulkarni May 20, 2020
3e7823e
chore: update alignment
vinayakkulkarni May 20, 2020
193f8de
Merge pull request #14 from geospoc/feat/add-badges
vinayakkulkarni May 20, 2020
2e0cc4d
chore: release v0.2.0 (#15)
vinayakkulkarni May 20, 2020
1e8c8a9
Merge branch 'master' into master
dd May 20, 2020
3cdfda7
Add `prepare` script
twil Jun 22, 2020
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
19 changes: 19 additions & 0 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 1
update_configs:
# Keep package.json (& lockfiles) up to date as soon as
# new versions are published to the npm registry
- package_manager: "javascript"
directory: "/"
update_schedule: "live"
# Apply default reviewer and label to created
# pull requests
default_reviewers:
- "vinayakkulkarni"
default_assignees:
- "vinayakkulkarni"
default_labels:
- "dependencies"
commit_message:
prefix: "fix"
prefix_development: "chore"
include_scope: true
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
node_modules
.dist
build
dist
24 changes: 17 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
module.exports = {
root: true,
env: {
node: true
browser: true,
es6: true,
node: true,
},
extends: ["plugin:vue/essential", "@vue/prettier"],
parserOptions: {
parser: 'babel-eslint',
},
extends: [
'plugin:vue/recommended',
'plugin:prettier/recommended',
'prettier',
'prettier/vue',
],
// required to lint *.vue files
plugins: ['vue', 'prettier'],
// add your custom rules here
rules: {
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
},
parserOptions: {
parser: "babel-eslint"
}
};
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
5 changes: 5 additions & 0 deletions .github/semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Always validate the PR title AND all the commits
titleAndCommits: true
# Allows use of Merge commits (eg on github: "Merge branch 'master' into feature/ride-unicorns")
# this is only relevant when using commitsOnly: true (or titleAndCommits: true)
allowMergeCommits: true
52 changes: 52 additions & 0 deletions .github/workflows/shipjs-manual-prepare.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Ship js Manual Prepare
on:
issue_comment:
types: [created]
jobs:
manual_prepare:
if: |
github.event_name == 'issue_comment' &&
(github.event.comment.author_association == 'member' || github.event.comment.author_association == 'owner') &&
startsWith(github.event.comment.body, '@shipjs prepare')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: master
- uses: actions/setup-node@v1
- run: |
if [ -f "yarn.lock" ]; then
yarn install
else
npm install
fi
- run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- run: npm run release:prepare -- --yes --no-browse
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_INCOMING_HOOK: ${{ secrets.SLACK_INCOMING_HOOK }}

create_done_comment:
if: success()
needs: manual_prepare
runs-on: ubuntu-latest
steps:
- uses: actions/github@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: comment "@${{ github.actor }} `shipjs prepare` done"

create_fail_comment:
if: cancelled() || failure()
needs: manual_prepare
runs-on: ubuntu-latest
steps:
- uses: actions/github@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: comment "@${{ github.actor }} `shipjs prepare` fail"
29 changes: 29 additions & 0 deletions .github/workflows/shipjs-trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Ship js trigger
on:
push:
branches:
- master
jobs:
build:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: master

- uses: actions/setup-node@v1
with:
registry-url: "https://npm.pkg.github.com"
- run: |
if [ -f "yarn.lock" ]; then
yarn install
else
npm install
fi

- run: npm run release:trigger
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_INCOMING_HOOK: ${{ secrets.SLACK_INCOMING_HOOK }}
84 changes: 70 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,104 @@
logs
*.log
npm-debug.log*
*.code-workspace
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules
jspm_packages
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history
*.vscode
*.idea

*.sublime-*
*.editorconfig
*.code-workspace
# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

*.map*
*.DS_Store
vue-mapbox-demo
checklist.txt
# TernJS port file
.tern-port
.DS_Store
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"semi": true,
"arrowParens": "always",
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": true,
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"tabWidth": 2,
"useTabs": false,
"vueIndentScriptAndStyle": true
}
47 changes: 47 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<a name="0.2.0"></a>
# [0.2.0](https://github.com/geospoc/v-mapbox-geocoder/compare/v0.1.1...v0.2.0) (2020-05-20)


### Bug Fixes

* no mapboxgl detected issue ([06ef6b6](https://github.com/geospoc/v-mapbox-geocoder/commit/06ef6b6))
* stop squishing results after updating input ([309c8fd](https://github.com/geospoc/v-mapbox-geocoder/commit/309c8fd))
* typo issue ([d0d23f8](https://github.com/geospoc/v-mapbox-geocoder/commit/d0d23f8))


### Features

* add badges ([84c0fde](https://github.com/geospoc/v-mapbox-geocoder/commit/84c0fde))
* add geocoder based on custom container_id ([ee218c9](https://github.com/geospoc/v-mapbox-geocoder/commit/ee218c9))



<a name="0.1.1"></a>
## [0.1.1](https://github.com/geospoc/v-mapbox-geocoder/compare/0.2.0...0.1.1) (2020-05-19)



<a name="0.1.0"></a>
# [0.1.0](https://github.com/geospoc/v-mapbox-geocoder/compare/0.2.0...0.1.0) (2020-05-19)


### Bug Fixes

* mapboxGl as prop not mapboxgl ([eea8d71](https://github.com/geospoc/v-mapbox-geocoder/commit/eea8d71))
* No mapboxgl detected in options. Map markers are disabled. Please set options.mapboxgl. ([e5b28e5](https://github.com/geospoc/v-mapbox-geocoder/commit/e5b28e5))
* typo error ([7a99dd0](https://github.com/geospoc/v-mapbox-geocoder/commit/7a99dd0))
* update build ([787bafa](https://github.com/geospoc/v-mapbox-geocoder/commit/787bafa))
* update build ([9cb0838](https://github.com/geospoc/v-mapbox-geocoder/commit/9cb0838))
* update debouce issue caused by vue component ([d748481](https://github.com/geospoc/v-mapbox-geocoder/commit/d748481))


### Features

* add jsconfig for better intellisense 🔌 ([6617fee](https://github.com/geospoc/v-mapbox-geocoder/commit/6617fee))
* **bot:** setup semantic pr 🤖 ([29c97e4](https://github.com/geospoc/v-mapbox-geocoder/commit/29c97e4))
* **ci:** add github action 🏗 ([6034d21](https://github.com/geospoc/v-mapbox-geocoder/commit/6034d21))
* **lint:** add commitlint & husky 🏗 ([8a739ca](https://github.com/geospoc/v-mapbox-geocoder/commit/8a739ca))
* add marker as props ([8ab63b4](https://github.com/geospoc/v-mapbox-geocoder/commit/8ab63b4))



21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2020-current GeoSpoc <developers@geospoc.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Loading