-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
inital restore of helpmode from previous branch. functioning switch a…
…nd functioning text box
- Loading branch information
1 parent
be09082
commit f62ec0a
Showing
10 changed files
with
3,000 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<script setup lang="ts"> | ||
import { computed } from "vue"; | ||
import { useHelpModeStatusStore } from "@/stores/helpmode/helpModeStatusStore"; | ||
const tooltip = "Enable/Disable Help Mode"; | ||
const statusStore = useHelpModeStatusStore(); | ||
const enabledStatus = computed({ | ||
get() { | ||
return statusStore.helpmodestatus; | ||
}, | ||
set(value: boolean) { | ||
statusStore.setHelpModeStatus(value); | ||
}, | ||
}); | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<b-form-checkbox v-model="enabledStatus" class="no-highlight" switch :title="tooltip"> </b-form-checkbox> | ||
</div> | ||
</template> |
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,37 @@ | ||
<script setup="ts"> | ||
import MarkdownIt from "markdown-it"; | ||
import { computed } from "vue"; | ||
import { useHelpModeTextStore } from "@/stores/helpmode/helpModeTextStore"; | ||
const md = MarkdownIt(); | ||
const helpInfo = useHelpModeTextStore(); | ||
const helpText = computed({ | ||
get() { | ||
return md.render(helpInfo.helpmodetext); | ||
}, | ||
}); | ||
</script> | ||
|
||
<template> | ||
<div class="helptext unified-panel-body d-flex justify-content-between"> | ||
<div class="helpModeContainer" v-html="helpText"></div> | ||
</div> | ||
</template> | ||
|
||
<style> | ||
.helptext { | ||
position: fixed; | ||
top: 70%; | ||
left: 80%; | ||
width: 20% !important; | ||
height: 30% !important; | ||
z-index: 9999; | ||
background-color: aliceblue; | ||
border-color: black; | ||
border-radius: 5px; | ||
border-width: 2px; | ||
border: solid; | ||
opacity: 90%; | ||
} | ||
</style> |
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,15 @@ | ||
import { defineStore } from "pinia"; | ||
|
||
export const useHelpModeStatusStore = defineStore("helpModeStatusStore", { | ||
state: () => { | ||
return { | ||
helpmodestatus: false, | ||
}; | ||
}, | ||
|
||
actions: { | ||
setHelpModeStatus(status) { | ||
this.helpmodestatus = status; | ||
}, | ||
}, | ||
}); |
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,22 @@ | ||
import { defineStore } from "pinia"; | ||
|
||
import config from "./helpTextConfig.yml"; | ||
|
||
export const useHelpModeTextStore = defineStore("helpModeText", { | ||
state: () => { | ||
return { | ||
helpmodetext: "Welcome to Galaxy Help Mode!", | ||
}; | ||
}, | ||
|
||
actions: { | ||
addHelpModeText(text) { | ||
const file_path = config[text]; | ||
fetch("https://raw.githubusercontent.com/assuntad23/galaxy-help-markdown/main/" + file_path) | ||
.then((response) => response.text()) | ||
.then((text) => { | ||
this.helpmodetext = text; | ||
}); | ||
}, | ||
}, | ||
}); |
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,20 @@ | ||
quotaMeterHelpString: This is your Quota storage meter. It is an indication of how much storage you are using. To learn more about Quota Storage, check out this GTN tutorial. | ||
unix_terms: | ||
exitCodeHelpString: Some text about exit codes. | ||
stdoutHelpString: Some text about stdout. | ||
stderrHelpString: Some text about stderr. | ||
commandLineHelpString: Some text about command line. | ||
tracebackHelpString: Some text about traceback. | ||
|
||
galaxy_terms: | ||
historyIDHelpString: Some text about history ID. | ||
historyContentIDHelpString: Some text about history content ID. | ||
historyDatasetCollectionAssociationHelpString: Some text about history dataset collection association. | ||
historyDatasetAssociationHelpString: Some text about history dataset association. | ||
datasetHelpString: Some text about dataset. | ||
invocationHelpString: Some text about invocation. | ||
datatypeHelpString: Some text about datatype. | ||
dbkeyHelpString: Some text about dbkey. | ||
jobStatesHelpString: Some text about job states. | ||
|
||
tool_form_base: tools/tool_form_base.md |
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.