Skip to content

Commit

Permalink
Merge pull request #17399 from jmchilton/typescript_markdown_dialog
Browse files Browse the repository at this point in the history
Refactor MarkdownDialog.vue to ts+composition.
  • Loading branch information
davelopez authored Feb 6, 2024
2 parents 9c3a020 + 741650d commit e5dc724
Show file tree
Hide file tree
Showing 6 changed files with 216 additions and 221 deletions.
1 change: 1 addition & 0 deletions client/src/api/histories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export const deleteHistories = fetcher.path("/api/histories/batch/delete").metho
export const undeleteHistory = fetcher.path("/api/histories/deleted/{history_id}/undelete").method("post").create();
export const undeleteHistories = fetcher.path("/api/histories/batch/undelete").method("put").create();
export const historiesQuery = fetcher.path("/api/histories/query").method("get").create();
export const publishedHistoriesFetcher = fetcher.path("/api/histories/published").method("get").create();
4 changes: 3 additions & 1 deletion client/src/api/invocations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import axios from "axios";

import { getAppRoot } from "@/onload";

import { ApiResponse } from "./schema";
import { ApiResponse, fetcher } from "./schema";

export const invocationsFetcher = fetcher.path("/api/invocations").method("get").create();

// TODO: Replace these interfaces with real schema models after https://github.com/galaxyproject/galaxy/pull/16707 is merged
export interface WorkflowInvocation {
Expand Down
2 changes: 2 additions & 0 deletions client/src/api/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ export const jobLockStatus = fetcher.path("/api/job_lock").method("get").create(
export const jobLockUpdate = fetcher.path("/api/job_lock").method("put").create();

export const fetchJobDestinationParams = fetcher.path("/api/jobs/{job_id}/destination_params").method("get").create();

export const jobsFetcher = fetcher.path("/api/jobs").method("get").create();
3 changes: 3 additions & 0 deletions client/src/api/workflows.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { fetcher } from "@/api/schema";

export const workflowsFetcher = fetcher.path("/api/workflows").method("get").create();
Loading

0 comments on commit e5dc724

Please sign in to comment.