Skip to content

Commit

Permalink
chore: cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
venkateshkasani committed Feb 4, 2025
1 parent 2e22581 commit ed9ea1f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,28 +124,17 @@ const name = computed({
}
}
})
const circnameInput = ref<HTMLInputElement | null>(null)
// const circnameInput = ref<HTMLInputElement | null>(null)
const simulatorMobileStore = useSimulatorMobileStore()
watch(() => SimulatorState.circuit_name_clickable, () => {
setTimeout(() => {
if (circnameInput.value && SimulatorState.circuit_name_clickable) {
circnameInput.value.select()
}
}, 100)
})
// watch(() => SimulatorState.circuit_name_clickable, () => {
// setTimeout(() => {
// if (circnameInput.value && SimulatorState.circuit_name_clickable) {
// circnameInput.value.select()
// }
// }, 100)
// })
type SimulatorStateType = {
activeCircuit: {
id: string | number
name: string
}
circuit_list: Array<Object>
dialogBox: {
delete_circuit: boolean
}
circuit_name_clickable: boolean
}
// const circuitId: Ref<string | number> = ref(0)
// const circuitName: Ref<string> = ref('Untitled-Cirucit')
// const ifPersistentShow: Ref<boolean> = ref(false)
Expand Down
7 changes: 1 addition & 6 deletions src/components/helpers/promptComponent/PromptComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
import messageBox from '#/components/MessageBox/messageBox.vue'
import { usePromptStore } from '#/store/promptStore'
import { useState } from '#/store/SimulatorStore/state'
import { createApp, ref } from 'vue'
import App from '#/App.vue'
import { createPinia } from 'pinia'
import { ref } from 'vue'
interface ButtonListType
extends Array<{
Expand Down Expand Up @@ -67,9 +65,6 @@ const promptActivator = async (
return promptInput
}
const app = createApp(App)
const pinia = createPinia()
app.use(pinia)
const projectStore = useState();
export const provideProjectName = async (): Promise<string | Error> => {
Expand Down
1 change: 0 additions & 1 deletion src/simulator/src/circuit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export function switchCircuit(id: string) {
const { circuit_list } = toRefs(simulatorStore)
const { activeCircuit } = toRefs(simulatorStore)
const simulatorMobileStore = toRefs(useSimulatorMobileStore())
console.log("switched",id)

if (layoutModeGet()) {
toggleLayoutMode()
Expand Down

0 comments on commit ed9ea1f

Please sign in to comment.