generated from thinkode/modelRepository
fixed tooltip
This commit is contained in:
@@ -9,9 +9,28 @@
|
||||
import Show from './components/Show/Show.svelte';
|
||||
import GeneralConsole from './components/Console/GeneralConsole.svelte';
|
||||
import RoundIconButton from './components/General/RoundIconButton.svelte';
|
||||
import { currentProject, needProjectSave } from './stores';
|
||||
import { currentProject, needProjectSave, peripherals } from './stores';
|
||||
import { SaveProject } from '../wailsjs/go/main/App.js';
|
||||
import { construct_svelte_component } from 'svelte/internal';
|
||||
import { construct_svelte_component } from 'svelte/internal';
|
||||
import { EventsOn } from '../wailsjs/runtime'
|
||||
import { GetPeripherals } from "../wailsjs/go/main/App";
|
||||
|
||||
// When the list of hardware changed, update the store
|
||||
EventsOn('PERIPHERAL_ARRIVAL', function(peripheralInfo){
|
||||
console.log("Hardware has been added to the system");
|
||||
console.log(peripheralInfo)
|
||||
$peripherals = [...$peripherals, peripheralInfo];
|
||||
})
|
||||
|
||||
EventsOn('PERIPHERAL_REMOVAL', function(peripheralInfo){
|
||||
console.log("Hardware has been removed from the system");
|
||||
console.log(peripheralInfo)
|
||||
$peripherals = $peripherals.filter(item => JSON.stringify(item) !== JSON.stringify(peripheralInfo))
|
||||
console.log($peripherals)
|
||||
|
||||
// $peripherals = devicesList
|
||||
// console.log(devicesList)
|
||||
})
|
||||
|
||||
let selectedMenu = "settings"
|
||||
// When the navigation menu changed, update the selected menu
|
||||
@@ -50,6 +69,9 @@
|
||||
SaveFile: "",
|
||||
});
|
||||
|
||||
// Request the list of peripherals
|
||||
GetPeripherals()
|
||||
|
||||
</script>
|
||||
|
||||
<header>
|
||||
|
||||
Reference in New Issue
Block a user