Skip to content

Commit 90679c7

Browse files
feat(prettier): install & run
1 parent e196a59 commit 90679c7

30 files changed

+557
-369
lines changed

.github/workflows/CD.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Publish Package to npmjs
22
on:
33
push:
4-
branches: [ next, master ]
4+
branches: [next, master]
55

66
jobs:
77
build:
@@ -13,4 +13,4 @@ jobs:
1313
id: semantic
1414
env:
1515
GITHUB_TOKEN: ${{ github.token }}
16-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
16+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 2,
4+
"semi": false,
5+
"singleQuote": true
6+
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# OpenGeodeWeb-Front
2+
23
OpenSource Vue/Vuetify framework for web applications

assets/geode_objects.js

Lines changed: 84 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -21,90 +21,90 @@ import triangulated_surface3d from '@/assets/img/geode_objects/triangulated_surf
2121
import vertex_set from '@/assets/img/geode_objects/vertex_set.svg'
2222

2323
const geode_objects = {
24-
BRep: {
25-
tooltip: 'BRep',
26-
image: brep,
27-
},
28-
CrossSection: {
29-
tooltip: 'CrossSection',
30-
image: cross_section,
31-
},
32-
EdgedCurve2D: {
33-
tooltip: 'EdgedCurve2D',
34-
image: edged_curve2d,
35-
},
36-
EdgedCurve3D: {
37-
tooltip: 'EdgedCurve3D',
38-
image: edged_curve3d,
39-
},
40-
Graph: {
41-
tooltip: 'Graph',
42-
image: edged_curve,
43-
},
44-
HybridSolid3D: {
45-
tooltip: "HybridSolid3D",
46-
image: hybrid_solid,
47-
},
48-
PointSet2D: {
49-
tooltip: 'PointSet2D',
50-
image: point_set2d,
51-
},
52-
PointSet3D: {
53-
tooltip: 'PointSet3D',
54-
image: point_set3d,
55-
},
56-
PolygonalSurface2D: {
57-
tooltip: 'PolygonalSurface2D',
58-
image: polygonal_surface2d,
59-
},
60-
PolygonalSurface3D: {
61-
tooltip: 'PolygonalSurface3D',
62-
image: polygonal_surface3d,
63-
},
64-
PolyhedralSolid3D: {
65-
tooltip: 'PolyhedralSolid3D',
66-
image: polyhedral_solid,
67-
},
68-
RasterImage2D: {
69-
tooltip: 'RasterImage2D',
70-
image: raster_image2d,
71-
},
72-
RasterImage3D: {
73-
tooltip: 'RasterImage3D',
74-
image: raster_image3d,
75-
},
76-
RegularGrid2D: {
77-
tooltip: 'RegularGrid2D',
78-
image: regular_grid2d,
79-
},
80-
RegularGrid3D: {
81-
tooltip: 'RegularGrid3D',
82-
image: regular_grid3d,
83-
},
84-
Section: {
85-
tooltip: 'Section',
86-
image: section,
87-
},
88-
StructuralModel: {
89-
tooltip: 'StructuralModel',
90-
image: structural_model,
91-
},
92-
TetrahedralSolid3D: {
93-
tooltip: 'TetrahedralSolid3D',
94-
image: tetrahedral_solid,
95-
},
96-
TriangulatedSurface2D: {
97-
tooltip: 'TriangulatedSurface2D',
98-
image: triangulated_surface2d,
99-
},
100-
TriangulatedSurface3D: {
101-
tooltip: 'TriangulatedSurface3D',
102-
image: triangulated_surface3d,
103-
},
104-
VertexSet: {
105-
tooltip: 'VertexSet',
106-
image: vertex_set,
107-
}
24+
BRep: {
25+
tooltip: 'BRep',
26+
image: brep,
27+
},
28+
CrossSection: {
29+
tooltip: 'CrossSection',
30+
image: cross_section,
31+
},
32+
EdgedCurve2D: {
33+
tooltip: 'EdgedCurve2D',
34+
image: edged_curve2d,
35+
},
36+
EdgedCurve3D: {
37+
tooltip: 'EdgedCurve3D',
38+
image: edged_curve3d,
39+
},
40+
Graph: {
41+
tooltip: 'Graph',
42+
image: edged_curve,
43+
},
44+
HybridSolid3D: {
45+
tooltip: 'HybridSolid3D',
46+
image: hybrid_solid,
47+
},
48+
PointSet2D: {
49+
tooltip: 'PointSet2D',
50+
image: point_set2d,
51+
},
52+
PointSet3D: {
53+
tooltip: 'PointSet3D',
54+
image: point_set3d,
55+
},
56+
PolygonalSurface2D: {
57+
tooltip: 'PolygonalSurface2D',
58+
image: polygonal_surface2d,
59+
},
60+
PolygonalSurface3D: {
61+
tooltip: 'PolygonalSurface3D',
62+
image: polygonal_surface3d,
63+
},
64+
PolyhedralSolid3D: {
65+
tooltip: 'PolyhedralSolid3D',
66+
image: polyhedral_solid,
67+
},
68+
RasterImage2D: {
69+
tooltip: 'RasterImage2D',
70+
image: raster_image2d,
71+
},
72+
RasterImage3D: {
73+
tooltip: 'RasterImage3D',
74+
image: raster_image3d,
75+
},
76+
RegularGrid2D: {
77+
tooltip: 'RegularGrid2D',
78+
image: regular_grid2d,
79+
},
80+
RegularGrid3D: {
81+
tooltip: 'RegularGrid3D',
82+
image: regular_grid3d,
83+
},
84+
Section: {
85+
tooltip: 'Section',
86+
image: section,
87+
},
88+
StructuralModel: {
89+
tooltip: 'StructuralModel',
90+
image: structural_model,
91+
},
92+
TetrahedralSolid3D: {
93+
tooltip: 'TetrahedralSolid3D',
94+
image: tetrahedral_solid,
95+
},
96+
TriangulatedSurface2D: {
97+
tooltip: 'TriangulatedSurface2D',
98+
image: triangulated_surface2d,
99+
},
100+
TriangulatedSurface3D: {
101+
tooltip: 'TriangulatedSurface3D',
102+
image: triangulated_surface3d,
103+
},
104+
VertexSet: {
105+
tooltip: 'VertexSet',
106+
image: vertex_set,
107+
},
108108
}
109109

110110
export default geode_objects

components/CrsSelector.vue

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,26 @@
11
<template>
2-
<v-text-field v-model="search" append-icon="mdi-magnify" label="Search" single-line hide-details></v-text-field>
3-
<v-data-table v-model="selected_crs" :v-model:items-per-page="10" :headers="headers" :items="crs_list" item-value="code"
4-
class="elevation-1" density='compact' fixed-header select-strategy='single' show-select :search="search"
5-
:loading="data_table_loading" loading-text="Loading... Please wait"></v-data-table>
2+
<v-text-field
3+
v-model="search"
4+
append-icon="mdi-magnify"
5+
label="Search"
6+
single-line
7+
hide-details
8+
></v-text-field>
9+
<v-data-table
10+
v-model="selected_crs"
11+
:v-model:items-per-page="10"
12+
:headers="headers"
13+
:items="crs_list"
14+
item-value="code"
15+
class="elevation-1"
16+
density="compact"
17+
fixed-header
18+
select-strategy="single"
19+
show-select
20+
:search="search"
21+
:loading="data_table_loading"
22+
loading-text="Loading... Please wait"
23+
></v-data-table>
624
</template>
725

826
<script setup>
@@ -46,14 +64,20 @@ async function get_crs_table() {
4664
let params = new FormData()
4765
params.append('geode_object', geode_object)
4866
toggle_loading()
49-
await api_fetch(`${route_prefix}/geographic_coordinate_systems`, { method: 'POST', body: params },
67+
await api_fetch(
68+
`${route_prefix}/geographic_coordinate_systems`,
69+
{ method: 'POST', body: params },
5070
{
51-
'request_error_function': () => { toggle_loading() },
52-
'response_function': (response) => {
71+
request_error_function: () => {
72+
toggle_loading()
73+
},
74+
response_function: (response) => {
5375
toggle_loading()
5476
crs_list.value = response._data.crs_list
5577
},
56-
'response_error_function': () => { toggle_loading() }
78+
response_error_function: () => {
79+
toggle_loading()
80+
},
5781
}
5882
)
5983
}
@@ -64,15 +88,12 @@ const headers = [
6488
align: 'start',
6589
sortable: true,
6690
key: 'authority',
67-
6891
},
6992
{ title: 'Code', align: 'end', key: 'code' },
70-
{ title: 'Name', align: 'end', key: 'name' }
93+
{ title: 'Name', align: 'end', key: 'name' },
7194
]
7295
73-
7496
onMounted(() => {
7597
get_crs_table()
7698
})
77-
78-
</script>
99+
</script>

components/Errors/Banner.vue

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<template>
2-
<v-banner v-if="server_error" elevation="2" style="background-color: grey; z-index:100;" position="fixed">
2+
<v-banner
3+
v-if="server_error"
4+
elevation="2"
5+
style="background-color: grey; z-index: 100"
6+
position="fixed"
7+
>
38
<v-row>
49
<v-col cols="auto" class="white--text text-center">
510
<v-tooltip location="end">
@@ -13,18 +18,23 @@
1318
</template>
1419
</v-tooltip>
1520
</v-col>
16-
<v-col cols="auto" class="text-white font-weight-bold">Server timed out due to inactivity,
17-
please reload this page
18-
or click here:
21+
<v-col cols="auto" class="text-white font-weight-bold"
22+
>Server timed out due to inactivity, please reload this page or click
23+
here:
1924
</v-col>
2025
<v-col cols="auto" align-items="center">
21-
<v-btn @click="reload()" color="grey" density='compact'>
22-
Reload
23-
</v-btn>
26+
<v-btn @click="reload()" color="grey" density="compact"> Reload </v-btn>
2427
</v-col>
2528
<v-spacer />
2629
<v-col cols="auto">
27-
<v-btn icon flat size="20" @click="errors_store.delete_server_error()" color="grey" class=".align-center">
30+
<v-btn
31+
icon
32+
flat
33+
size="20"
34+
@click="errors_store.delete_server_error()"
35+
color="grey"
36+
class=".align-center"
37+
>
2838
<v-icon icon="mdi-close" size="20" color="white" />
2939
</v-btn>
3040
</v-col>
@@ -36,7 +46,7 @@
3646
const errors_store = use_errors_store()
3747
const { server_error } = storeToRefs(errors_store)
3848
39-
function reload () {
49+
function reload() {
4050
window.location.reload()
4151
}
4252
</script>
@@ -45,4 +55,4 @@ function reload () {
4555
.v-btn {
4656
text-transform: unset !important;
4757
}
48-
</style>
58+
</style>

components/Errors/Snackers.vue

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
<template>
2-
<v-snackbar :style="{ 'margin-bottom': calc_margin(index) }" v-for="(error, index) in errors" :key="index"
3-
v-model="show" color="error" location="bottom right" transition="slide-x-reverse-transition" max-width="30%"
4-
height="20px">
2+
<v-snackbar
3+
:style="{ 'margin-bottom': calc_margin(index) }"
4+
v-for="(error, index) in errors"
5+
:key="index"
6+
v-model="show"
7+
color="error"
8+
location="bottom right"
9+
transition="slide-x-reverse-transition"
10+
max-width="30%"
11+
height="20px"
12+
>
513
<v-row dense class="flex-nowrap">
614
<v-col cols="auto">
715
<v-tooltip location="left">
816
<span>
917
error: {{ error.code }} {{ error.name }}<br />
1018
ressource: {{ error.route }}
11-
<br>
19+
<br />
1220
</span>
1321
<template #activator="{ props }">
1422
<v-icon v-bind="props" color="white" class="justify-right">
@@ -21,7 +29,7 @@
2129
<v-tooltip location="top">
2230
<span>
2331
{{ error.description }}
24-
<br>
32+
<br />
2533
</span>
2634
<template #activator="{ props }">
2735
<div v-bind="props">
@@ -32,7 +40,13 @@
3240
</v-col>
3341
<v-spacer />
3442
<v-col cols="auto">
35-
<v-btn icon flat size="20" @click="errors_store.delete_error(index)" color="error">
43+
<v-btn
44+
icon
45+
flat
46+
size="20"
47+
@click="errors_store.delete_error(index)"
48+
color="error"
49+
>
3650
<v-icon icon="mdi-close" size="20" color="white" />
3751
</v-btn>
3852
</v-col>
@@ -46,8 +60,8 @@ const { errors } = storeToRefs(errors_store)
4660
4761
const show = true
4862
49-
function calc_margin (index) {
50-
return (index * 60) + 8 + 'px'
63+
function calc_margin(index) {
64+
return index * 60 + 8 + 'px'
5165
}
5266
</script>
5367

0 commit comments

Comments
 (0)