Skip to content

Commit

Permalink
core: frontend: Update img assets to /public location
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso committed Jan 16, 2024
1 parent 81bb26b commit ae24572
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions core/frontend/src/App.vue
Expand Up @@ -338,8 +338,8 @@
<script lang="ts">
import Vue from 'vue'
import blueos_blue from '@/assets/img/blueos-logo-blue.svg'
import blueos_white from '@/assets/img/blueos-logo-white.svg'
import blueos_blue from '/assets/img/blueos-logo-blue.svg'
import blueos_white from '/assets/img/blueos-logo-white.svg'
import Wizard from '@/components/wizard/Wizard.vue'
import settings from '@/libs/settings'
import helper from '@/store/helper'
Expand Down
6 changes: 3 additions & 3 deletions core/frontend/src/components/app/VehicleBanner.vue
Expand Up @@ -4,8 +4,8 @@
<image-picker
size="35px"
directory="/userdata/images/vehicle"
readonly-directory="/vehicles/images"
:default-image="require('@/assets/vehicles/images/unknown.svg')"
readonly-directory="/src/assets/vehicles/images/"
default-image="/src/assets/vehicles/images/unknown.svg"
:image="vehicle_image"
@image-selected="save_vehicle_image"
/>
Expand Down Expand Up @@ -34,7 +34,7 @@
<image-picker
size="35px"
directory="/userdata/images/logo"
:default-image="require('@/assets/img/blue-robotics-logo.svg')"
default-image="/assets/img/blue-robotics-logo.svg"
:image="logo_image"
@image-selected="save_logo"
/>
Expand Down
6 changes: 3 additions & 3 deletions core/frontend/src/components/common/DevicePathHelper.vue
Expand Up @@ -35,9 +35,9 @@
import { v4 as uuid } from 'uuid'
import Vue from 'vue'
import navigator_image from '@/assets/img/devicePathHelper/navigator.svg'
import raspberry_pi3_image from '@/assets/img/devicePathHelper/rpi3b.svg'
import raspberry_pi4_image from '@/assets/img/devicePathHelper/rpi4b.svg'
import navigator_image from '/assets/img/devicePathHelper/navigator.svg'
import raspberry_pi3_image from '/assets/img/devicePathHelper/rpi3b.svg'
import raspberry_pi4_image from '/assets/img/devicePathHelper/rpi4b.svg'
import system_information from '@/store/system-information'
import { Dictionary } from '@/types/common'
Expand Down
2 changes: 1 addition & 1 deletion core/frontend/src/components/common/SpinningLogo.vue
Expand Up @@ -4,7 +4,7 @@
:aspect-ratio="1 / 1"
class="lds-dual-ring"
:width="size"
:src="require('@/assets/img/blue-robotics-logo.svg')"
src="/assets/img/blue-robotics-logo.svg"
/>
<span class="text-subtitle-2">{{ subtitle }}</span>
</v-container>
Expand Down
Expand Up @@ -13,13 +13,13 @@
<v-img
v-if="ping.ping_type === 'Ping1D'"
v-tooltip="toText(ping)"
:src="require('@/assets/img/ping/Ping1D.gif')"
src="/assets/img/ping/Ping1D.gif"
width="50px"
/>
<v-img
v-if="ping.ping_type === 'Ping360'"
v-tooltip="toText(ping)"
:src="require('@/assets/img/ping/Ping360.gif')"
src="/assets/img/ping/Ping360.gif"
width="50px"
/>
</a>
Expand Down
4 changes: 2 additions & 2 deletions core/frontend/src/components/wizard/Wizard.vue
Expand Up @@ -430,7 +430,7 @@ export default Vue.extend({
setupBoat() {
this.vehicle_type = Vehicle.Rover
this.vehicle_name = 'BlueBoat'
this.vehicle_image = '/vehicles/images/bb120.png'
this.vehicle_image = '/src/assets/vehicles/images/bb120.png'
this.step_number += 1
this.vehicle_configuration_pages = [
Expand Down Expand Up @@ -478,7 +478,7 @@ export default Vue.extend({
setupROV() {
this.vehicle_type = Vehicle.Sub
this.vehicle_name = 'BlueROV'
this.vehicle_image = '/vehicles/images/bluerov2.png'
this.vehicle_image = '/src/assets/vehicles/images/bluerov2.png'
this.step_number += 1
this.vehicle_configuration_pages = [
Expand Down
6 changes: 3 additions & 3 deletions core/frontend/src/views/Autopilot.vue
Expand Up @@ -101,9 +101,9 @@
<script lang="ts">
import Vue from 'vue'
import ArduPilotBanner from '@/assets/img/banners/ArduPilot.svg'
import OpenPilotBanner from '@/assets/img/banners/OpenPilot.svg'
import PX4Banner from '@/assets/img/banners/PX4.svg'
import ArduPilotBanner from '/assets/img/banners/ArduPilot.svg'
import OpenPilotBanner from '/assets/img/banners/OpenPilot.svg'
import PX4Banner from '/assets/img/banners/PX4.svg'
import * as AutopilotManager from '@/components/autopilot/AutopilotManagerUpdater'
import {
fetchAvailableBoards, fetchCurrentBoard, fetchFirmwareInfo, fetchVehicleType,
Expand Down

0 comments on commit ae24572

Please sign in to comment.