-
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.
fix(vite-server)!: Vite server working with Chrome.
Removed circular dependencies and isolated key structures into separate files. Cleanup still needed.
- Loading branch information
1 parent
e6617c5
commit d83d091
Showing
13 changed files
with
83 additions
and
83 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
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) | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
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,16 @@ | ||
// eslint-disable-next-line react-refresh/only-export-components | ||
export enum ConfigurationType { | ||
ROBOT, | ||
FIELD, | ||
INPUTS, | ||
} | ||
|
||
let selectedConfigurationType: ConfigurationType = ConfigurationType.ROBOT | ||
// eslint-disable-next-line react-refresh/only-export-components | ||
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