-
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.
Composition API Migration for moving towards real-time collaboration (#…
…186) * First steps of work in progress to migrate towards using the composition API and applying a store to manage the view. * work in progress for revising tests for composition API and first pass for composition api with an analysisStore and view * Fixed issues discovered during system testing with the first pass of the store migration * first draft of testing done; cut time down in half but its still taking too long at around 300 something ms * Finished cleaning up unit tests for the migrated toast code, and updated VueJS' version to be able to use useTempalteRef * Renaming the RosalutionToast to ToastDialog to correspond with the other dialog components * Secured the specific endpoints by requiring an authenticated user to access them * Updated system test to force click in the situation the menu visibility isn't opened correctly by the test * Fixed the 'AS' characters for the dockerfiles and fixing the accidental change as an option * Fixed issue Rabab found in review; where the store was not switching to representing a different analysis when loading a different analysis.
- Loading branch information
1 parent
1131f69
commit bc739b6
Showing
27 changed files
with
1,485 additions
and
1,162 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
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,5 +1,3 @@ | ||
version: '3.5' | ||
|
||
services: | ||
reverse-proxy: | ||
image: traefik | ||
|
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import {ref} from 'vue'; | ||
import {StatusType, getWorkflowStatusIcon} from '@/config.js'; | ||
|
||
|
||
/** | ||
* Builds an actionMenu that can be used for the main header | ||
* @return {Object} {actionChoices, builder} to return the actions to render and the builder to update the choices | ||
*/ | ||
export function useActionMenu() { | ||
const actionChoices = ref([]); | ||
|
||
const builder = { | ||
addWorkflowActions: (latest, operation) => { | ||
if ( latest in StatusType ) { | ||
for ( const [text, nextEvent, nextStatus] of StatusType[latest].transitions) { | ||
builder.addMenuAction(text, getWorkflowStatusIcon(nextStatus), () => { | ||
operation(nextEvent); | ||
}); | ||
} | ||
} | ||
}, | ||
addMenuAction: (text, icon, operation) => { | ||
actionChoices.value.push({ | ||
icon: icon, | ||
text: text, | ||
operation: operation, | ||
}); | ||
}, | ||
addDivider: () => { | ||
actionChoices.value.push({divider: true}); | ||
}, | ||
clear: () => { | ||
actionChoices.value = []; | ||
}, | ||
}; | ||
|
||
return {actionChoices, builder}; | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.