-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUG] Vite Server Crashing Chrome (#1108)
* Isolated at least one issue to pickup interface * fix(vite-server)!: Vite server working with Chrome. Removed circular dependencies and isolated key structures into separate files. Cleanup still needed. * fix(vite-server)!: Readd panels and modals, fix imports, cleanup. * Formatted * Formatted
- Loading branch information
1 parent
43f9225
commit e008481
Showing
15 changed files
with
55 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
fission/src/ui/panels/configuring/assembly-config/ConfigurationSavedEvent.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** An event to save whatever configuration interface is open when it is closed */ | ||
export class ConfigurationSavedEvent extends Event { | ||
public constructor() { | ||
super("ConfigurationSaved") | ||
|
||
window.dispatchEvent(this) | ||
} | ||
|
||
public static Listen(func: (e: Event) => void) { | ||
window.addEventListener("ConfigurationSaved", func) | ||
} | ||
|
||
public static RemoveListener(func: (e: Event) => void) { | ||
window.removeEventListener("ConfigurationSaved", func) | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
fission/src/ui/panels/configuring/assembly-config/ConfigurationType.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export enum ConfigurationType { | ||
ROBOT, | ||
FIELD, | ||
INPUTS, | ||
} | ||
|
||
let selectedConfigurationType: ConfigurationType = ConfigurationType.ROBOT | ||
|
||
export function setSelectedConfigurationType(type: ConfigurationType) { | ||
selectedConfigurationType = type | ||
} | ||
|
||
export function getConfigurationType() { | ||
return selectedConfigurationType | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ion/src/ui/panels/configuring/assembly-config/interfaces/ConfigureSubsystemsInterface.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../src/ui/panels/configuring/assembly-config/interfaces/inputs/ConfigureInputsInterface.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters