Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
60fa929
fix(oxlint): complete oxlint addition.
MaxNumerique Mar 2, 2026
500ca3e
Apply prepare changes
MaxNumerique Mar 2, 2026
6b4d140
$emit, script to top
MaxNumerique Mar 3, 2026
c469631
Merge branch 'fix/oxlint2' of https://github.com/Geode-solutions/Open…
MaxNumerique Mar 3, 2026
2c377d8
Apply prepare changes
MaxNumerique Mar 3, 2026
b4fd4eb
import fs
MaxNumerique Mar 3, 2026
93d1bfd
Merge branch 'fix/oxlint2' of https://github.com/Geode-solutions/Open…
MaxNumerique Mar 3, 2026
ea00bb8
flags
MaxNumerique Mar 3, 2026
c713b5e
Apply prepare changes
MaxNumerique Mar 3, 2026
c318c75
flags
MaxNumerique Mar 3, 2026
bf960a5
Merge branch 'fix/oxlint2' of https://github.com/Geode-solutions/Open…
MaxNumerique Mar 3, 2026
522c84a
Apply prepare changes
MaxNumerique Mar 3, 2026
0021d61
emits
MaxNumerique Mar 3, 2026
394856a
Merge branch 'fix/oxlint2' of https://github.com/Geode-solutions/Open…
MaxNumerique Mar 3, 2026
1ecb57c
Apply prepare changes
MaxNumerique Mar 3, 2026
47f7d17
seup
MaxNumerique Mar 3, 2026
6b93ff6
Merge branch 'fix/oxlint2' of https://github.com/Geode-solutions/Open…
MaxNumerique Mar 3, 2026
f2e0312
trigger
MaxNumerique Mar 4, 2026
20b1ed1
vi.mock(import())
MaxNumerique Mar 4, 2026
748a17d
Apply prepare changes
MaxNumerique Mar 4, 2026
fd1b05b
trig
MaxNumerique Mar 4, 2026
6b8353c
Merge branch 'fix/oxlint2' of https://github.com/Geode-solutions/Open…
MaxNumerique Mar 4, 2026
fc7a814
Apply prepare changes
MaxNumerique Mar 4, 2026
7024db8
__dirname
MaxNumerique Mar 4, 2026
5962f0b
Merge branch 'fix/oxlint2' of https://github.com/Geode-solutions/Open…
MaxNumerique Mar 4, 2026
c10cbae
Merge branch 'next' of https://github.com/Geode-solutions/OpenGeodeWe…
MaxNumerique Mar 4, 2026
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
2 changes: 1 addition & 1 deletion app/components/DeleteDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
item: {
type: Object,
default: null,
default: undefined,
},
selectedCount: {
type: Number,
Expand Down
13 changes: 8 additions & 5 deletions app/components/DragAndDrop.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<script setup>
import GlassCard from "@ogw_front/components/GlassCard"

const props = defineProps({
const { multiple, accept, loading, showExtensions } = defineProps({
multiple: { type: Boolean, default: false },
accept: { type: String, default: "" },
loading: { type: Boolean, default: false },
showExtensions: { type: Boolean, default: true },
idleText: { type: String, default: "Click or Drag & Drop files" },
dropText: { type: String, default: "Drop to upload" },
loadingText: { type: String, default: "Uploading..." },
})

const emit = defineEmits(["files-selected"])
Expand Down Expand Up @@ -83,7 +80,13 @@
class="text-h6 font-weight-bold justify-center pa-0 mb-1 text-white"
style="transition: color 0.3s ease"
>
{{ loading ? loadingText : isDragging ? dropText : idleText }}
{{
loading
? "Uploading..."
: isDragging
? "Drop to upload"
: "Click or Drag & Drop files"
}}
</v-card-title>

<v-card-subtitle v-if="showExtensions" class="text-body-2 pa-0">
Expand Down
8 changes: 4 additions & 4 deletions app/components/GlassCard.vue
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<script setup>
import { computed, useAttrs } from "vue"
defineProps({
const { variant, rounded, padding, theme } = defineProps({
variant: {
type: String,
default: "panel",
validator: (v) => ["panel", "ui"].includes(v),
validator: (valid) => ["panel", "ui"].includes(valid),
},
rounded: { type: String, default: "xl" },
padding: { type: String, default: "pa-6" },
theme: { type: String, default: null },
theme: { type: String, default: undefined },
})

const attrs = useAttrs()
const isInteractive = computed(() => !!attrs.onClick)
const isInteractive = computed(() => Boolean(attrs.onClick))
</script>

<template>
Expand Down
6 changes: 1 addition & 5 deletions app/components/HybridRenderingView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@
timeout = setTimeout(later, wait)
}
}

function get_x_y(event) {
emit("click", event)
}
</script>

<template>
Expand All @@ -58,7 +54,7 @@
class="pa-0"
ref="viewer"
style="height: 100%; overflow: hidden; position: relative; z-index: 0"
@click="get_x_y"
@click="emit('click', $event)"
@keydown.esc="viewerStore.toggle_picking_mode(false)"
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/components/Launcher.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup>
import Loading from "@ogw_front/components/Loading"
import Recaptcha from "@ogw_front/components/Recaptcha"
import Status from "@ogw_front/utils/status"
import { Status } from "@ogw_front/utils/status"
import { useInfraStore } from "@ogw_front/stores/infra"

const infraStore = useInfraStore()
Expand Down
2 changes: 1 addition & 1 deletion app/components/ObjectSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
.map((obj) => obj[key].object_priority)
.filter((priority) => priority !== undefined && priority !== null)
final_object[key] = { is_loadable: Math.min(...load_scores) }
if (priorities.length) {
if (priorities.length > 0) {
final_object[key].object_priority = Math.max(...priorities)
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/components/PackagesVersions.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup>
import Status from "@ogw_front/utils/status"
import { Status } from "@ogw_front/utils/status"
import { useGeodeStore } from "@ogw_front/stores/geode"
const { schema } = defineProps({
Expand Down
2 changes: 1 addition & 1 deletion app/components/RemoteRenderingView.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup>
import { useElementSize, useWindowSize } from "@vueuse/core"
import Status from "@ogw_front/utils/status"
import { Status } from "@ogw_front/utils/status"
import ViewToolbar from "@ogw_front/components/ViewToolbar"
import { useViewerStore } from "@ogw_front/stores/viewer"
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
Expand Down
4 changes: 2 additions & 2 deletions app/components/Screenshot.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup>
import fileDownload from "js-file-download"
import GlassCard from "@ogw_front/components/GlassCard"
import fileDownload from "js-file-download"
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"

import { useViewerStore } from "@ogw_front/stores/viewer"
Expand Down Expand Up @@ -29,7 +29,7 @@
include_background: include_background.value,
},
{
response_function: async (response) => {
response_function: (response) => {
fileDownload(
response.blob,
`${filename.value}.${output_extension.value}`,
Expand Down
26 changes: 10 additions & 16 deletions app/components/SearchBar.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
<script setup>
const { modelValue, label } = defineProps({
modelValue: { type: String, default: "" },
label: { type: String, default: "Search..." },
})

const emit = defineEmits(["update:modelValue"])
</script>

<template>
<v-text-field
:model-value="modelValue"
@update:model-value="$emit('update:modelValue', $event)"
@update:model-value="emit('update:modelValue', $event)"
prepend-inner-icon="mdi-magnify"
:label="label"
variant="outlined"
Expand All @@ -17,18 +26,3 @@
</template>
</v-text-field>
</template>

<script setup>
defineProps({
modelValue: {
type: String,
default: "",
},
label: {
type: String,
default: "Search...",
},
})

defineEmits(["update:modelValue"])
</script>
4 changes: 3 additions & 1 deletion app/components/Step.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
step_index: { type: Number, required: true },
})

const emit = defineEmits(["reset_values"])

const stepper_tree = inject("stepper_tree")
const { current_step_index, steps } = toRefs(stepper_tree)

Expand Down Expand Up @@ -98,7 +100,7 @@
@increment_step="increment_step"
@decrement_step="decrement_step"
@update_values="update_values_event"
@reset_values="$emit('reset_values')"
@reset_values="emit('reset_values')"
/>
</v-card-text>
</v-stepper-vertical-item>
Expand Down
2 changes: 1 addition & 1 deletion app/components/Viewer/ContextMenuItem.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup>
import GlassCard from "@ogw_front/components/GlassCard"
import { useTheme } from "vuetify"
import { useMenuStore } from "@ogw_front/stores/menu"
import { useTheme } from "vuetify"

const CARD_WIDTH = 320
const CARD_HEIGHT = 500
Expand Down
6 changes: 1 addition & 5 deletions app/components/Viewer/Options/AttributeColorBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
const minimum = defineModel("minimum", { type: Number })
const maximum = defineModel("maximum", { type: Number })
const colorMap = defineModel("colorMap", { type: String })

function reset() {
emit("reset")
}
</script>

<template>
Expand All @@ -33,7 +29,7 @@
icon="mdi-arrow-left-right"
size="x-small"
variant="text"
@click="reset"
@click="emit('reset')"
v-tooltip="'Reset range'"
/>
</v-col>
Expand Down
8 changes: 2 additions & 6 deletions app/components/Viewer/Options/ColorMapList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,10 @@
if (!preset || !preset.RGBPoints) {
return
}

const ctx = canvas.getContext("2d")
const { height, width } = canvas
const lut = vtkColorTransferFunction()
const rgbPoints = preset.RGBPoints

for (let pointIdx = 0; pointIdx < rgbPoints.length; pointIdx += 4) {
lut.addRGBPoint(
rgbPoints[pointIdx],
Expand All @@ -69,15 +67,13 @@
rgbPoints[pointIdx + THREE],
)
}

const table = lut.getUint8Table(
rgbPoints[0],
rgbPoints.at(-LAST_POINT_OFFSET),
width,
true,
)
const imageData = ctx.createImageData(width, height)

for (let xCoord = 0; xCoord < width; xCoord += 1) {
const alpha = table[xCoord * 4 + THREE],
blue = table[xCoord * 4 + 2],
Expand Down Expand Up @@ -180,7 +176,7 @@
<v-list-item
v-for="(child, cIdx) in item.Children"
:key="cIdx"
@click="$emit('select', child)"
@click="emit('select', child)"
class="px-2 mb-1"
rounded="md"
>
Expand All @@ -202,7 +198,7 @@

<v-list-item
v-else
@click="$emit('select', item)"
@click="emit('select', item)"
class="px-2 mb-1"
rounded="md"
>
Expand Down
6 changes: 3 additions & 3 deletions app/components/Viewer/Options/ColorMapPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@
watch([lutCanvas, selectedPresetName, () => min, () => max], drawLutCanvas)
watch(
() => modelValue,
(nv) => {
if (nv !== selectedPresetName.value) {
selectedPresetName.value = nv
(newValue) => {
if (newValue !== selectedPresetName.value) {
selectedPresetName.value = newValue
}
},
)
Expand Down
4 changes: 2 additions & 2 deletions app/components/Viewer/Options/TextureItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
}

async function files_uploaded_event(value) {
if (value.length) {
if (value.length > 0) {
await geodeStore.request(
back_schemas.opengeodeweb_back.save_viewable_file,
{
Expand All @@ -48,7 +48,7 @@
},
},
{
response_function: async (response) => {
response_function: (response) => {
texture_id.value = response.id
},
},
Expand Down
8 changes: 4 additions & 4 deletions app/components/Viewer/Options/TexturesSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
const internal_textures = ref([])

onMounted(() => {
if (textures.value !== null) {
internal_textures.value = textures.value
} else {
if (textures.value === null) {
internal_textures.value = [{ id: "", texture_name: "" }]
} else {
internal_textures.value = textures.value
}

Check failure on line 17 in app/components/Viewer/Options/TexturesSelector.vue

View workflow job for this annotation

GitHub Actions / test / oxlint

eslint-plugin-unicorn(prefer-ternary)

Prefer ternary expressions over simple `if-else` statements.
})

function update_value_event($event, index) {
Expand All @@ -22,7 +22,7 @@
const filtered = internal_textures.value.filter(
(texture) => texture.texture_name !== "" && texture.id !== "",
)
if (filtered.length !== 0) {
if (filtered.length > 0) {
textures.value = filtered
}
}
Expand Down
8 changes: 2 additions & 6 deletions app/components/Viewer/Tree/ObjectTree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
const treeviewStore = useTreeviewStore()
const emit = defineEmits(["show-menu"])

function handleTreeMenu({ event, itemId }) {
emit("show-menu", { event, itemId })
}

function onResizeStart(event) {
const startWidth = treeviewStore.panelWidth
const startX = event.clientX
Expand Down Expand Up @@ -60,11 +56,11 @@
<v-col>
<ViewerTreeObject
v-if="!treeviewStore.isAdditionnalTreeDisplayed"
@show-menu="handleTreeMenu"
@show-menu="emit('show-menu', $event)"
/>
<ViewerTreeComponent
v-else
@show-menu="handleTreeMenu"
@show-menu="emit('show-menu', $event)"
:id="treeviewStore.model_id"
/>
</v-col>
Expand Down
8 changes: 4 additions & 4 deletions app/components/ZScaling.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
const { width } = defineProps({
width: { type: Number, default: 400 },
})

const emit = defineEmits(["close"])
</script>
<template>
<GlassCard
Expand Down Expand Up @@ -50,10 +52,8 @@

<template #actions>
<v-card-actions class="justify-center pb-4">
<v-btn variant="text" color="white" @click="$emit('close')"
>Close</v-btn
>
<v-btn variant="outlined" color="white" @click="$emit('close')"
<v-btn variant="text" color="white" @click="emit('close')">Close</v-btn>
<v-btn variant="outlined" color="white" @click="emit('close')"
>Apply</v-btn
>
</v-card-actions>
Expand Down
2 changes: 0 additions & 2 deletions app/composables/project_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,3 @@ export function useProjectManager() {

return { exportProject, importProjectFile }
}

export default useProjectManager
2 changes: 0 additions & 2 deletions app/composables/run_function_when_microservices_connected.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@ export function run_function_when_microservices_connected(function_to_run) {
})
}
}

export default run_function_when_microservices_connected
Loading
Loading