Skip to content

Commit 3410247

Browse files
committed
docs(style): format with prettier
1 parent 12f5541 commit 3410247

File tree

95 files changed

+155
-144
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+155
-144
lines changed

.vscode/extensions.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
{
2-
"recommendations": [
3-
"Vue.volar",
4-
"vitest.explorer",
5-
"esbenp.prettier-vscode"
6-
]
7-
}
2+
"recommendations": ["Vue.volar", "vitest.explorer", "esbenp.prettier-vscode"]
3+
}

.vscode/settings.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"editor.defaultFormatter": "esbenp.prettier-vscode",
33
"editor.formatOnSave": true,
4-
"editor.codeActionsOnSave": [
5-
"source.fixAll.format",
6-
"source.fixAll.eslint"
7-
]
8-
}
4+
"editor.codeActionsOnSave": ["source.fixAll.format", "source.fixAll.eslint"]
5+
}

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ docker compose run screenshot-update
9292

9393
Please note, when recording screenshots locally the may differ from the platform (linux) in CI.
9494
This results in:
95+
9596
- a: a different file name
9697
- b: a slightly different screenshot
9798

docs/componentsguide/animations.plugin.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
1-
21
### Plugin usage
32

43
This component is part of the `Animations` plugin.
54
**If not installed [globally](/get-started#usage-as-plugin)**, you need to import and `use` the plugin in your `main.ts` or use the explicit component import (see section below).
65

76
::: details Import and use the `Animations` plugin
7+
88
```ts {8,13} [main.ts]
99
import { createApp } from "vue";
1010
import App from "./App.vue";
1111

12-
import { // [!code focus:6]
12+
import {
13+
// [!code focus:6]
1314
Map,
1415
Layers,
1516
Sources,
16-
Animations
17-
} from 'vue3-openlayers';
17+
Animations,
18+
} from "vue3-openlayers";
1819

1920
const app = createApp(App);
2021
// ...
2122
app.use(Animations); // [!code focus]
2223
// ...
2324
```
25+
2426
:::
2527

2628
### Explicit import

docs/componentsguide/animations/drop/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import DropAnimation from "@demos/DropAnimation.vue"
2121
## Usage
2222

2323
| Plugin Usage | Explicit Import |
24-
|-----------------------|:------------------------------:|
24+
| --------------------- | :----------------------------: |
2525
| `<ol-animation-drop>` | `<Animations.OlAnimationDrop>` |
2626

2727
::: code-group

docs/componentsguide/animations/fade/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import FadeAnimation from "@demos/FadeAnimation.vue"
2121
## Usage
2222

2323
| Plugin Usage | Explicit Import |
24-
|-----------------------|:------------------------------:|
24+
| --------------------- | :----------------------------: |
2525
| `<ol-animation-fade>` | `<Animations.OlAnimationFade>` |
2626

2727
::: code-group

docs/componentsguide/animations/path/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import FlowLineDemo from "@demos/FlowLineDemo.vue"
2020
## Usage
2121

2222
| Plugin Usage | Explicit Import |
23-
|-----------------------|:------------------------------:|
23+
| --------------------- | :----------------------------: |
2424
| `<ol-animation-path>` | `<Animations.OlAnimationPath>` |
2525

2626
::: code-group

docs/componentsguide/animations/shake/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import ShakeAnimation from "@demos/ShakeAnimation.vue"
2121
## Usage
2222

2323
| Plugin Usage | Explicit Import |
24-
|------------------------|:-------------------------------:|
24+
| ---------------------- | :-----------------------------: |
2525
| `<ol-animation-shake>` | `<Animations.OlAnimationShake>` |
2626

2727
::: code-group

docs/componentsguide/animations/slide/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import SlideAnimation from "@demos/SlideAnimation.vue"
2121
## Usage
2222

2323
| Plugin Usage | Explicit Import |
24-
|------------------------|:-------------------------------:|
24+
| ---------------------- | :-----------------------------: |
2525
| `<ol-animation-slide>` | `<Animations.OlAnimationSlide>` |
2626

2727
::: code-group

docs/componentsguide/animations/teleport/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import TeleportAnimation from "@demos/TeleportAnimation.vue"
2121
## Usage
2222

2323
| Plugin Usage | Explicit Import |
24-
|---------------------------|:----------------------------------:|
24+
| ------------------------- | :--------------------------------: |
2525
| `<ol-animation-teleport>` | `<Animations.OlAnimationTeleport>` |
2626

2727
::: code-group

docs/componentsguide/animations/zoom/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import ZoomAnimation from "@demos/ZoomAnimation.vue"
2121
## Usage
2222

2323
| Plugin Usage | Explicit Import |
24-
|-----------------------|:------------------------------:|
24+
| --------------------- | :----------------------------: |
2525
| `<ol-animation-zoom>` | `<Animations.OlAnimationZoom>` |
2626

2727
::: code-group

docs/componentsguide/feature/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import GeomPoint from "@demos/GeomPoint.vue"
2121
## Usage
2222

2323
| Plugin Usage | Explicit Import |
24-
|----------------|:-----------------:|
24+
| -------------- | :---------------: |
2525
| `<ol-feature>` | `<Map.OlFeature>` |
2626

2727
<ClientOnly>

docs/componentsguide/geolocation/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import GeoLocationDemo from "@demos/GeoLocationDemo.vue"
2525
## Usage
2626

2727
| Plugin Usage | Explicit Import |
28-
|--------------------|:---------------------:|
28+
| ------------------ | :-------------------: |
2929
| `<ol-geolocation>` | `<Map.OlGeolocation>` |
3030

3131
::: code-group

docs/componentsguide/geometries.plugin.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
1-
21
### Plugin usage
32

43
This component is part of the `Geometries` plugin.
54
**If not installed [globally](/get-started#usage-as-plugin)**, you need to import and `use` the plugin in your `main.ts` or use the explicit component import (see section below).
65

76
::: details Import and use the `Geometries` plugin
7+
88
```ts {8,13} [main.ts]
99
import { createApp } from "vue";
1010
import App from "./App.vue";
1111

12-
import { // [!code focus:6]
12+
import {
13+
// [!code focus:6]
1314
Map,
1415
Layers,
1516
Sources,
16-
Geometries
17-
} from 'vue3-openlayers';
17+
Geometries,
18+
} from "vue3-openlayers";
1819

1920
const app = createApp(App);
2021
// ...
2122
app.use(Geometries); // [!code focus]
2223
// ...
2324
```
25+
2426
:::
2527

2628
### Explicit import

docs/componentsguide/geometries/geomcircle/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import CircleDemo from "@demos/CircleDemo.vue"
2121
## Usage
2222

2323
| Plugin Usage | Explicit Import |
24-
|--------------------|:---------------------------:|
24+
| ------------------ | :-------------------------: |
2525
| `<ol-geom-circle>` | `<Geometries.OlGeomCircle>` |
2626

2727
::: code-group

docs/componentsguide/geometries/geomlinestring/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import LineString from "@demos/LineString.vue"
2020
## Usage
2121

2222
| Plugin Usage | Explicit Import |
23-
|-------------------------|:-------------------------------:|
23+
| ----------------------- | :-----------------------------: |
2424
| `<ol-geom-line-string>` | `<Geometries.OlGeomLineString>` |
2525

2626
::: code-group

docs/componentsguide/geometries/geommultilinestring/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import MultiLineString from "@demos/MultiLineString.vue"
2020
## Usage
2121

2222
| Plugin Usage | Explicit Import |
23-
|-------------------------------|:------------------------------------:|
23+
| ----------------------------- | :----------------------------------: |
2424
| `<ol-geom-multi-line-string>` | `<Geometries.OlGeomMultiLineString>` |
2525

2626
::: code-group

docs/componentsguide/geometries/geommultipoint/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import MultiPoint from "@demos/MultiPoint.vue"
2020
## Usage
2121

2222
| Plugin Usage | Explicit Import |
23-
|-------------------------|:-------------------------------:|
23+
| ----------------------- | :-----------------------------: |
2424
| `<ol-geom-multi-point>` | `<Geometries.OlGeomMultiPoint>` |
2525

2626
::: code-group

docs/componentsguide/geometries/geommultipolygon/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import MultiPolygon from "@demos/MultiPolygon.vue"
2020
## Usage
2121

2222
| Plugin Usage | Explicit Import |
23-
|---------------------------|:---------------------------------:|
23+
| ------------------------- | :-------------------------------: |
2424
| `<ol-geom-multi-polygon>` | `<Geometries.OlGeomMultiPolygon>` |
2525

2626
::: code-group

docs/componentsguide/geometries/geompoint/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import GeomPoint from "@demos/GeomPoint.vue"
2121
## Usage
2222

2323
| Plugin Usage | Explicit Import |
24-
|-------------------|:--------------------------:|
24+
| ----------------- | :------------------------: |
2525
| `<ol-geom-point>` | `<Geometries.OlGeomPoint>` |
2626

2727
::: code-group

docs/componentsguide/geometries/geompolygon/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import PolygonDemo from "@demos/PolygonDemo.vue"
2323
## Usage
2424

2525
| Plugin Usage | Explicit Import |
26-
|---------------------|:----------------------------:|
26+
| ------------------- | :--------------------------: |
2727
| `<ol-geom-polygon>` | `<Geometries.OlGeomPolygon>` |
2828

2929
::: code-group

docs/componentsguide/interactions.plugin.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
1-
21
### Plugin usage
32

43
This component is part of the `Interactions` plugin.
54
**If not installed [globally](/get-started#usage-as-plugin)**, you need to import and `use` the plugin in your `main.ts` or use the explicit component import (see section below).
65

76
::: details Import and use the `Interactions` plugin
7+
88
```ts {8,13} [main.ts]
99
import { createApp } from "vue";
1010
import App from "./App.vue";
1111

12-
import { // [!code focus:6]
12+
import {
13+
// [!code focus:6]
1314
Map,
1415
Layers,
1516
Sources,
16-
Interactions
17-
} from 'vue3-openlayers';
17+
Interactions,
18+
} from "vue3-openlayers";
1819

1920
const app = createApp(App);
2021
// ...
2122
app.use(Interactions); // [!code focus]
2223
// ...
2324
```
25+
2426
:::
2527

2628
### Explicit import

docs/componentsguide/interactions/clusterselect/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import AnimatedClusterDemo from "@demos/AnimatedClusterDemo.vue"
2323
## Usage
2424

2525
| Plugin Usage | Explicit Import |
26-
|----------------------------------|:-------------------------------------------:|
26+
| -------------------------------- | :-----------------------------------------: |
2727
| `<ol-interaction-clusterselect>` | `<Interactions.OlInteractionClusterselect>` |
2828

2929
::: code-group

docs/componentsguide/interactions/dragbox/index.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import VectorSourceDemo1 from "@demos/VectorSourceDemo1.vue"
2222
## Usage
2323

2424
| Plugin Usage | Explicit Import |
25-
|----------------------------|:-------------------------------------:|
25+
| -------------------------- | :-----------------------------------: |
2626
| `<ol-interaction-dragbox>` | `<Interactions.OlInteractionDragbox>` |
2727

2828
::: code-group
@@ -83,4 +83,3 @@ onMounted(() => {
8383
});
8484
</script>
8585
```
86-

docs/componentsguide/interactions/dragrotate/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import DragRotateDemo from "@demos/DragRotateDemo.vue"
2121
## Usage
2222

2323
| Plugin Usage | Explicit Import |
24-
|-------------------------------|:----------------------------------------:|
24+
| ----------------------------- | :--------------------------------------: |
2525
| `<ol-interaction-dragrotate>` | `<Interactions.OlInteractionDragrotate>` |
2626

2727
::: code-group

docs/componentsguide/interactions/dragrotatezoom/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import DragRotateZoomDemo from "@demos/DragRotateZoomDemo.vue"
2121
## Usage
2222

2323
| Plugin Usage | Explicit Import |
24-
|-----------------------------------|:--------------------------------------------:|
24+
| --------------------------------- | :------------------------------------------: |
2525
| `<ol-interaction-dragrotatezoom>` | `<Interactions.OlInteractionDragrotatezoom>` |
2626

2727
::: code-group

docs/componentsguide/interactions/draw/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import DrawMeasureDemo from "@demos/DrawMeasureDemo.vue"
2020
## Usage
2121

2222
| Plugin Usage | Explicit Import |
23-
|-------------------------|:----------------------------------:|
23+
| ----------------------- | :--------------------------------: |
2424
| `<ol-interaction-draw>` | `<Interactions.OlInteractionDraw>` |
2525

2626
### Example 1: Draw Features

docs/componentsguide/interactions/link/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import ViewDemo from "@demos/ViewDemo.vue"
2424
## Usage
2525

2626
| Plugin Usage | Explicit Import |
27-
|-------------------------|:----------------------------------:|
27+
| ----------------------- | :--------------------------------: |
2828
| `<ol-interaction-link>` | `<Interactions.OlInteractionLink>` |
2929

3030
::: code-group

docs/componentsguide/interactions/modify/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import SnapModifyDemo from "@demos/SnapModifyDemo.vue"
2121
## Usage
2222

2323
| Plugin Usage | Explicit Import |
24-
|---------------------------|:------------------------------------:|
24+
| ------------------------- | :----------------------------------: |
2525
| `<ol-interaction-modify>` | `<Interactions.OlInteractionModify>` |
2626

2727
::: code-group

docs/componentsguide/interactions/select/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import SelectDemo from "@demos/SelectDemo.vue"
2121
## Usage
2222

2323
| Plugin Usage | Explicit Import |
24-
|---------------------------|:------------------------------------:|
24+
| ------------------------- | :----------------------------------: |
2525
| `<ol-interaction-select>` | `<Interactions.OlInteractionSelect>` |
2626

2727
::: code-group

docs/componentsguide/interactions/snap/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import SnapModifyDemo from "@demos/SnapModifyDemo.vue"
2121
## Usage
2222

2323
| Plugin Usage | Explicit Import |
24-
|-------------------------|:----------------------------------:|
24+
| ----------------------- | :--------------------------------: |
2525
| `<ol-interaction-snap>` | `<Interactions.OlInteractionSnap>` |
2626

2727
::: code-group

docs/componentsguide/interactions/transform/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import TransformDemo from "@demos/TransformDemo.vue"
2121
## Usage
2222

2323
| Plugin Usage | Explicit Import |
24-
|------------------------------|:---------------------------------------:|
24+
| ---------------------------- | :-------------------------------------: |
2525
| `<ol-interaction-transform>` | `<Interactions.OlInteractionTransform>` |
2626

2727
::: code-group

0 commit comments

Comments
 (0)