Skip to content

Commit

Permalink
refactor: replace help links with the github pages instance
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail-iontsev committed Oct 22, 2024
1 parent 62c5641 commit c2dbdf4
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
:icon="mdiHelpCircle"
tooltip="Learn how
to interpret this plot."
@iconClicked="router.push({ name: 'help' })"
@iconClicked="openNewTab(links.getAresDocsLink())"
/>
<ChartActionIcon
v-if="store.getters.getQueryIndex"
Expand Down Expand Up @@ -181,6 +181,7 @@ import DataTable from "primevue/datatable";
import Column from "primevue/column";
import { computed, ref } from "vue";
import ChartHeader from "@/widgets/chart/ui/ChartHeader.vue";
import { openNewTab } from "@/shared/lib/mixins/methods/openNewTab";
const store = useStore();
const route = useRoute();
const router = useRouter();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
:icon="mdiHelpCircle"
tooltip="Learn how
to interpret this plot."
@iconClicked="router.push({ name: 'help' })"
@iconClicked="openNewTab(links.getAresDocsLink())"
/>
<ChartActionIcon
v-if="store.getters.getQueryIndex"
Expand Down Expand Up @@ -178,6 +178,7 @@ import DataTable from "primevue/datatable";
import Panel from "primevue/panel";
import Column from "primevue/column";
import { computed, ref } from "vue";
import { openNewTab } from "@/shared/lib/mixins/methods/openNewTab";
interface Props {
data: [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,8 @@
<div class="flex flex-row gap-2">
<ChartActionIcon
:icon="mdiHelpCircle"
tooltip="Learn how
to interpret this plot."
@iconClicked="router.push({ name: 'help' })"
tooltip="Learn how to interpret this plot."
@iconClicked="openNewTab(links.getAresDocsLink())"
/>
<ChartActionIcon
v-if="store.getters.getQueryIndex"
Expand Down Expand Up @@ -179,6 +178,7 @@ import ChartHeader from "@/widgets/chart/ui/ChartHeader.vue";
import DataTable from "primevue/datatable";
import Column from "primevue/column";
import { computed, ref } from "vue";
import { openNewTab } from "@/shared/lib/mixins/methods/openNewTab";
interface Props {
data: DistributionType[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
<ChartActionIcon
:icon="mdiHelpCircle"
tooltip="Learn how to interpret this plot"
@iconClicked="router.push({ name: 'help' })"
@iconClicked="openNewTab(links.getAresDocsLink())"
/>
<ChartActionIcon
v-if="store.getters.getQueryIndex"
Expand Down Expand Up @@ -174,6 +174,7 @@ import ChartHeader from "@/widgets/chart/ui/ChartHeader.vue";
import DataTable from "primevue/datatable";
import Column from "primevue/column";
import { computed, ref } from "vue";
import { openNewTab } from "@/shared/lib/mixins/methods/openNewTab";
interface Props {
data: DistributionType[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
:icon="mdiHelpCircle"
tooltip="Learn how
to interpret this plot."
@iconClicked="router.push({ name: 'help' })"
@iconClicked="openNewTab(links.getAresDocsLink())"
/>
<ChartActionIcon
v-if="store.getters.getQueryIndex"
Expand Down Expand Up @@ -214,6 +214,7 @@ import { mdiCodeBraces, mdiHelpCircle } from "@mdi/js";
import DataTable from "primevue/datatable";
import Column from "primevue/column";
import ChartHeader from "@/widgets/chart/ui/ChartHeader.vue";
import { openNewTab } from "@/shared/lib/mixins/methods/openNewTab";
const store = useStore();
const router = useRouter();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
:icon="mdiHelpCircle"
tooltip="Learn how
to interpret this plot."
@iconClicked="router.push({ name: 'help' })"
@iconClicked="openNewTab(links.getAresDocsLink())"
/>
<ChartActionIcon
v-if="store.getters.getQueryIndex"
Expand Down Expand Up @@ -174,6 +174,7 @@ import ChartHeader from "@/widgets/chart/ui/ChartHeader.vue";
import DataTable from "primevue/datatable";
import Column from "primevue/column";
import { computed, ref } from "vue";
import { openNewTab } from "@/shared/lib/mixins/methods/openNewTab";
const store = useStore();
const route = useRoute();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
:icon="mdiHelpCircle"
tooltip="Learn how
to interpret this plot."
@iconClicked="router.push({ name: 'help' })"
@iconClicked="openNewTab(links.getAresDocsLink())"
/>
<ChartActionIcon
v-if="store.getters.getQueryIndex"
Expand Down Expand Up @@ -124,6 +124,7 @@ import { mdiCodeBraces, mdiHelpCircle } from "@mdi/js";
import Column from "primevue/column";
import DataTable from "primevue/datatable";
import { computed, ref } from "vue";
import { openNewTab } from "@/shared/lib/mixins/methods/openNewTab";
const store = useStore();
const route = useRoute();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
:icon="mdiHelpCircle"
tooltip="Learn how
to interpret this plot."
@iconClicked="router.push({ name: 'help' })"
@iconClicked="openNewTab(links.getAresDocsLink())"
/>
<ChartActionIcon
v-if="store.getters.getQueryIndex"
Expand Down Expand Up @@ -119,6 +119,7 @@ import ChartHeader from "@/widgets/chart/ui/ChartHeader.vue";
import { computed, ref } from "vue";
import Column from "primevue/column";
import DataTable from "primevue/datatable";
import { openNewTab } from "@/shared/lib/mixins/methods/openNewTab";
const store = useStore();
const route = useRoute();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
:icon="mdiHelpCircle"
tooltip="Learn how
to interpret this plot."
@iconClicked="router.push({ name: 'help' })"
@iconClicked="openNewTab(links.getAresDocsLink())"
/>
<ChartActionIcon
v-if="store.getters.getQueryIndex"
Expand Down Expand Up @@ -119,6 +119,7 @@ import { mdiCodeBraces, mdiHelpCircle } from "@mdi/js";
import { computed, ref } from "vue";
import Column from "primevue/column";
import DataTable from "primevue/datatable";
import { openNewTab } from "@/shared/lib/mixins/methods/openNewTab";
const store = useStore();
const route = useRoute();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<ChartActionIcon
:icon="mdiHelpCircle"
tooltip="Learn how to interpret this plot"
@iconClicked="router.push({ name: 'help' })"
@iconClicked="openNewTab(links.getAresDocsLink())"
/>
<ChartActionIcon
v-if="store.getters.getQueryIndex"
Expand Down Expand Up @@ -115,6 +115,7 @@ import { mdiCodeBraces, mdiHelpCircle } from "@mdi/js";
import Column from "primevue/column";
import DataTable from "primevue/datatable";
import { computed, ref } from "vue";
import { openNewTab } from "@/shared/lib/mixins/methods/openNewTab";
const store = useStore();
const route = useRoute();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
:icon="mdiHelpCircle"
tooltip="Learn how
to interpret this plot."
@iconClicked="router.push({ name: 'help' })"
@iconClicked="openNewTab(links.getAresDocsLink())"
/>
<ChartActionIcon
v-if="store.getters.getQueryIndex"
Expand Down Expand Up @@ -212,6 +212,7 @@ import Column from "primevue/column";
import DataTable from "primevue/datatable";
import ChartHeader from "@/widgets/chart/ui/ChartHeader.vue";
import MultiSelect from "primevue/multiselect";
import { openNewTab } from "@/shared/lib/mixins/methods/openNewTab";
const selectedMeasurementUnits: Ref<string[]> = ref([]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
:icon="mdiHelpCircle"
tooltip="Learn how
to interpret this plot."
@iconClicked="router.push({ name: 'help' })"
@iconClicked="openNewTab(links.getAresDocsLink())"
/>
<ChartActionIcon
v-if="store.getters.getQueryIndex"
Expand Down Expand Up @@ -114,6 +114,7 @@ import ChartHeader from "@/widgets/chart/ui/ChartHeader.vue";
import Column from "primevue/column";
import DataTable from "primevue/datatable";
import { computed, ref } from "vue";
import { openNewTab } from "@/shared/lib/mixins/methods/openNewTab";
const store = useStore();
const route = useRoute();
Expand Down
5 changes: 5 additions & 0 deletions src/shared/config/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ const getNewIssueLink = function (title = "", body = "") {
return `https://github.com/OHDSI/Ares/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=${title}&body=${body}`;
};

const getAresDocsLink = function (): string {
return `https://ohdsi.github.io/Ares/`;
};

export const links = {
getSqlQueryLink,
getDocsLink,
Expand All @@ -30,4 +34,5 @@ export const links = {
getDatavizDatasheetLink,
getDataQualityDashboardLink,
getNewIssueLink,
getAresDocsLink,
};
4 changes: 3 additions & 1 deletion src/widgets/bottomNav/ui/BottomNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</Button>
<Button
severity="secondary"
@click="redirectTo('/help')"
@click="openNewTab(links.getAresDocsLink())"
icon="pi pi-check"
text
>
Expand Down Expand Up @@ -65,6 +65,8 @@ import environment from "@/shared/api/environment";
import SvgIcon from "@jamescoyle/vue-icon";
import { mdiCog, mdiDatabase, mdiHelpCircleOutline, mdiServer } from "@mdi/js";
import { useRouter } from "vue-router";
import { openNewTab } from "@/shared/lib/mixins/methods/openNewTab";
import { links } from "@/shared/config/links";
const webApiEnabled = environment.WEB_API_ENABLED;
Expand Down

0 comments on commit c2dbdf4

Please sign in to comment.