Skip to content

Commit

Permalink
feat(all): remove unnecesary files and upgrade dependcies
Browse files Browse the repository at this point in the history
Also I change all components in the SFC way
  • Loading branch information
diegoazh committed Nov 23, 2021
1 parent d906345 commit 1efc34e
Show file tree
Hide file tree
Showing 130 changed files with 32,581 additions and 50,714 deletions.
File renamed without changes.
2,062 changes: 1,127 additions & 935 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,21 @@
"license": "MIT",
"scripts": {
"postinstall": "lerna bootstrap",
"start:docs": "lerna run gen:api:docs\n lerna run dev",
"start:docs": "lerna run gen:api:docs && lerna run dev",
"build": "lerna run build",
"test": "lerna run test",
"lint": "lerna run lint",
"release": "lerna version --conventional-commits --yes",
"gen:docs": "lerna run gen:api:docs"
"gen:docs": "lerna run gen:api:docs",
"clean": "rimraf ./packages/**/node_modules && rimraf ./packages/**/package-lock.json && rimraf ./package-lock.json && rimraf ./node_modules"
},
"devDependencies": {
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@commitlint/config-lerna-scopes": "^12.1.4",
"husky": "^4.3.8",
"lerna": "^4.0.0"
"lerna": "^4.0.0",
"lint-staged": "^11.0.0",
"rimraf": "^3.0.2"
}
}
39 changes: 39 additions & 0 deletions packages/documentation/docs/.vuepress/components/eg-rectangle.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<template>
<div>
<gmap-map
:center="center"
:zoom="12"
style="width: 100%; height: 500px"
ref="map"
>
<gmap-rectangle
:editable="editable"
:draggable="draggable"
:bounds="bounds"
ref="rectangle"
>
</gmap-rectangle>
</gmap-map>
</div>
</template>

<script>
export default {
name: "eg-rectangle",
data() {
return {
center: { lat: 1.38, lng: 103.8 },
editable: true,
draggable: true,
bounds: {
north: 33.685,
south: 33.671,
east: -116.234,
west: -116.251
}
};
}
};
</script>

<style lang="css" scoped></style>
27 changes: 12 additions & 15 deletions packages/documentation/docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,24 @@ module.exports = {
{
title: 'Components',
collapsable: false,
path: '/guide/autocomplete',
path: '/guide/map',
children: [
['map', 'GmapMap'],
['autocomplete', 'GmapAutocomplete'],
['circle', 'GmapCircle'],
['cluster', 'GmapCluster'],
['drawing-manager', 'GmapDrawingManager'],
['heatmap-layer', 'Heat Map Layer'],
['info-window', 'Info Window'],
['kml-layer', 'Kml layer'],
['map', 'Map component'],
['marker', 'Marker'],
['heatmap-layer', 'GmapHeatmapLayer'],
['info-window', 'GmapInfoWindow'],
['kml-layer', 'GmapKmlLayer'],
['marker', 'GmapMarker'],
['place-input', 'GmapPlaceInput'],
['polygon', 'GmapPolygon'],
['polyline', 'GmapPolyline'],
['rectangle', 'GmapRectangle'],
['street-view-panorama', 'GmapStreetViewPanorama'],
['extra-examples', 'Extra examples'],
['cdn', 'Using a CDN'],
['place-input', 'Place input'],
['place-default', 'Place default'],
['status-bar-information', 'Status bar information'],
['overlay', 'Overlay'],
['polyline', 'Polyline'],
['polygon-simple', 'Poligon simple'],
['polygon-advanced', 'Poligon advanced'],
['resize-bus', 'Resize bus'],
['street-view-panorama', 'Street view panorama'],
]
},
],
Expand Down
91 changes: 86 additions & 5 deletions packages/documentation/docs/code/components/place-input.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,101 @@
---
title: place-input
---
# place-input

# PlaceInput
PlaceInput component

::: tip Tags

**deprecated**: true<br />**see**: [source code](/guide/place-input.html#source-code)<br />**see**: [Map Bounds](https://developers.google.com/maps/documentation/javascript/places-autocomplete#set-the-bounds-on-creation-of-the-autocomplete-object)<br />
:::

## Table of contents
[[toc]]

## Props

### bounds (`object`)
::: tip Tags
**value**: new google.maps.LatLngBounds(...)<br />**see**: [Map Bounds](https://developers.google.com/maps/documentation/javascript/places-autocomplete#set-the-bounds-on-creation-of-the-autocomplete-object)<br />
:::


|type|default|description|
|:-|:-|:-|:-|
|`object`|-|Map bounds this is an LatLngBounds
object builded with|
### defaultPlace (`string`)
::: tip Tags
**value**: string<br />
:::


|type|default|description|
|:-|:-|:-|:-|
|`string`|''|A default value for the html input|
### componentRestrictions (`object`)
::: tip Tags
**value**: `{[key: string]: string}`<br />**see**: [componentRestrictions](https://developers.google.com/maps/documentation/javascript/places-autocomplete#restrict-the-search-to-a-specific-country)<br />
:::


|type|default|description|
|:-|:-|:-|:-|
|`object`|null|Restrict the search to a specific country|
### types (`array`)
::: tip Tags
**value**: string[]<br />**see**: [Map Bounds](https://developers.google.com/maps/documentation/javascript/places-autocomplete#set-the-bounds-on-creation-of-the-autocomplete-object)<br />
:::


|type|default|description|
|:-|:-|:-|:-|
|`array`|[]|Map types this is an array of strings|
### placeholder (`string`)
::: tip Tags
**value**: string<br />
:::


|type|default|description|
|:-|:-|:-|:-|
|`string`|-|A placeholder for the html input|
### className (`string`)
::: tip Tags
**value**: string<br />
:::


|type|default|description|
|:-|:-|:-|:-|
|`string`|-|A html class name for the html input|
### label (`string`)
::: tip Tags
**value**: string<br />
:::


|type|default|description|
|:-|:-|:-|:-|
|`string`|null|A label for the html input|
### selectFirstOnEnter (`boolean`)
::: tip Tags
**value**: boolean<br />
:::


|type|default|description|
|:-|:-|:-|:-|
|`boolean`|false|If true the first element on the list will be selected
when you press enter in the html input.|


## Events

### place_changed (undefined)

undefined

Place change event
#### Properties
| name | type | description
|:-|:-|:-|
|place|`object`|`this.$autocomplete.getPlace()`

89 changes: 89 additions & 0 deletions packages/documentation/docs/code/components/polygon.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
---
title: polygon
---
# GmapPolygon
Polygon component

::: tip Tags
**see**: [source code](/guide/polygon.html#source-code)<br />**see**: [official docs](https://developers.google.com/maps/documentation/javascript/examples/polygon-arrays?hl=es)<br />
:::

## Table of contents
[[toc]]

## Props

### deepWatch (`boolean`)
::: tip Tags
**value**: boolean<br />
:::


|type|default|description|
|:-|:-|:-|:-|
|`boolean`|false|If set true the object will be deep watched|
### draggable (`boolean`)
::: tip Tags
**value**: true, false<br />**see**: [Polygon dragable](https://developers.google.com/maps/documentation/javascript/reference/polygon?hl=es#PolylineOptions.draggable)<br />
:::


|type|default|description|
|:-|:-|:-|:-|
|`boolean`|-|Indicates if the polygon is draggable|
### editable (`boolean`)
::: tip Tags
**value**: true, false<br />**see**: [Polygon editable](https://developers.google.com/maps/documentation/javascript/reference/polygon?hl=es#PolylineOptions.editable)<br />
:::


|type|default|description|
|:-|:-|:-|:-|
|`boolean`|-|Indicates if the polygon is editable|
### options (`object`)
::: tip Tags
**value**: boolean<br />
:::


|type|default|description|
|:-|:-|:-|:-|
|`object`|-|More options that you can pass to the component|
### path (`array`)
::: tip Tags
**value**: Array<br />**see**: [Polygon path](https://developers.google.com/maps/documentation/javascript/reference/polygon?hl=es#PolylineOptions.path)<br />
:::


|type|default|description|
|:-|:-|:-|:-|
|`array`|-|Indicates if the polygon is editable|
### paths (`array`)
::: tip Tags
**value**: Array<br />**see**: [Polygon paths](https://developers.google.com/maps/documentation/javascript/reference/polygon?hl=es#PolygonOptions.paths)<br />
:::


|type|default|description|
|:-|:-|:-|:-|
|`array`|-|Indicates if the polygon is editable|


## Events

### paths_changed (undefined)

An event to detect when a paths changes
#### Properties
| name | type | description
|:-|:-|:-|
|paths|`array`|`this.$polygonObject.getPaths()` |### path_changed (undefined)

### path_changed (undefined)

An event to detect when a path change
#### Properties
| name | type | description
|:-|:-|:-|
|path|`array`|`this.$polygonObject.getPath()`

72 changes: 72 additions & 0 deletions packages/documentation/docs/code/components/polyline.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
title: polyline
---
# GmapPolyline
PolyLine component

::: tip Tags
**see**: [source code](/guide/polyline.html#source-code)<br />**see**: [official docs](https://developers.google.com/maps/documentation/javascript/reference/polygon?hl=es#Polyline)<br />
:::

## Table of contents
[[toc]]

## Props

### deepWatch (`boolean`)
::: tip Tags
**value**: boolean<br />
:::


|type|default|description|
|:-|:-|:-|:-|
|`boolean`|false|If set true the object will be deep watched|
### draggable (`boolean`)
::: tip Tags
**value**: true, false<br />**see**: [Polyline draggable](https://developers.google.com/maps/documentation/javascript/reference/polygon?hl=es#PolylineOptions.draggable)<br />
:::


|type|default|description|
|:-|:-|:-|:-|
|`boolean`|-|Indicates if the polyline is draggable|
### editable (`boolean`)
::: tip Tags
**value**: true, false<br />**see**: [Polyline editable](https://developers.google.com/maps/documentation/javascript/reference/polygon?hl=es#PolylineOptions.editable)<br />
:::


|type|default|description|
|:-|:-|:-|:-|
|`boolean`|-|Indicates if the polygon is editable|
### options (`object`)
::: tip Tags
**value**: boolean<br />
:::


|type|default|description|
|:-|:-|:-|:-|
|`object`|-|More options that you can pass to the component|
### path (`array`)
::: tip Tags
**value**: Array<br />**see**: [Polyline path](https://developers.google.com/maps/documentation/javascript/reference/polygon?hl=es#PolylineOptions.path)<br />
:::


|type|default|description|
|:-|:-|:-|:-|
|`array`|-|Indicates if the polygon is editable|


## Events

### path_changed (undefined)

An event to detect when a path change
#### Properties
| name | type | description
|:-|:-|:-|
|path|`array`|`this.$polygonObject.getPath()`

0 comments on commit 1efc34e

Please sign in to comment.