-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#330 frontend: fix interface exports to enable enum exports
- Loading branch information
1 parent
2acedd0
commit c855937
Showing
13 changed files
with
124 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export enum ContinuousVariableName { | ||
SPO2 = "SpO2", | ||
HEART_RATE = "BPM" | ||
} | ||
|
||
export enum ContinuousFunctionName { | ||
LINEAR = "linear", | ||
SIGMOID = "sigmoid", | ||
SIGMOID_DELAYED = "delayed sigmoid", | ||
INCREMENT = "increment", | ||
DECREMENT = "decrement", | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
import {defineStore} from 'pinia' | ||
import type {ActionCheck, CheckLabDevice, CheckMaterial, CheckPersonnel, RequiredActions} from "@/sockets/MessageData" | ||
|
||
export const useActionCheckStore = defineStore('actionCheck', { | ||
state: (): ActionCheck => ({ | ||
actionName: "", | ||
actionName: "", | ||
applicationDuration: 0, | ||
effectDuration: 0, | ||
personnel: [] as CheckPersonnel[], | ||
material: [] as CheckMaterial[], | ||
labDevices: [] as CheckLabDevice[], | ||
requiredActions: {} as RequiredActions, | ||
prohibitiveActions: [] as string[], | ||
effectDuration: 0, | ||
personnel: [] as CheckPersonnel[], | ||
material: [] as CheckMaterial[], | ||
labDevices: [] as CheckLabDevice[], | ||
requiredActions: {} as RequiredActions, | ||
prohibitiveActions: [] as string[], | ||
}), | ||
actions: { | ||
loadActionCheck(actionCheck: ActionCheck) { | ||
this.actionName = actionCheck.actionName | ||
this.applicationDuration = actionCheck.applicationDuration | ||
this.effectDuration = actionCheck.effectDuration | ||
this.personnel = actionCheck.personnel | ||
this.material = actionCheck.material | ||
this.labDevices = actionCheck.labDevices | ||
this.requiredActions = actionCheck.requiredActions | ||
this.prohibitiveActions = actionCheck.prohibitiveActions | ||
} | ||
loadActionCheck(actionCheck: ActionCheck) { | ||
this.actionName = actionCheck.actionName | ||
this.applicationDuration = actionCheck.applicationDuration | ||
this.effectDuration = actionCheck.effectDuration | ||
this.personnel = actionCheck.personnel | ||
this.material = actionCheck.material | ||
this.labDevices = actionCheck.labDevices | ||
this.requiredActions = actionCheck.requiredActions | ||
this.prohibitiveActions = actionCheck.prohibitiveActions | ||
} | ||
} | ||
}) |
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
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
Oops, something went wrong.