sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
933ec0488b28650cf08cda0625b0b92e31f9d2b1f0193e4db18b5379089a2f39 | TypeScript | 3,974 | 112 | import { beforeEach, describe, expect, it } from "vitest";
import type { ObjectStoreTemplateType } from "@/api/objectStores";
import type { ObjectStoreTemplateSummaries } from "@/api/objectStores.templates";
import { useObjectStoreTemplatesStore } from "@/stores/objectStoreTemplatesStore";
import { setupTestPinia } f... |
332879806e10a26e48cc10592575fc686c8189ec42eff7377b8167069dd8fb55 | TypeScript | 3,982 | 110 | import { http as rawHttp, HttpResponse } from "msw";
import { setupServer } from "msw/node";
import { createOpenApiHttp } from "openapi-msw";
import { afterAll, afterEach, beforeAll } from "vitest";
import type { GalaxyApiPaths } from "@/api/schema";
import { REQUEST_ID_HEADER } from "@/api/staleCacheRetry";
export {... |
652add6dfa6536fa41437b5815ee86b16c66ed4cdadbde6c79333d8dcbeb35ed | TypeScript | 3,982 | 96 | import { createTestRouter } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it, vi } from "vitest";
import { Toast } from "@/composables/toast";
import Home from "./Home.vue";
vi.mock("@/composables/toast", () => {
cons... |
44d42068eb944b168f17cfd9ce6a90593da9b8049b33a203bca8f8bee273daca | TypeScript | 3,989 | 117 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { type CleanableItem, CleanableSummary, type CleanupOperation, CleanupResult } from "./model";
import CleanupO... |
2f145f1f7e43d620794c8e63b19e32944cb36952662f14ef61e92f4a0aed8ca3 | TypeScript | 3,991 | 99 | import { readFileSync } from "fs";
import { resolve } from "path";
import { describe, expect, it } from "vitest";
/**
* The galaxy-ui package ships its token contract as tokens.css for external
* consumers, while the client declares the same values (plus app-level extras)
* in custom_theme_variables.scss. Every tok... |
e963f988d9e2c466ea59c7d417a0cbcda55322871cb32e55b806447d0e6bc640 | TypeScript | 3,993 | 126 | import type { components } from "@/api/schema";
import { bytesToString } from "@/utils/utils";
import type { CleanableItem } from "./CleanupOperation";
export type StorageItemsCleanupResult = components["schemas"]["StorageItemsCleanupResult"];
/**
* Associates the name of an item with the error message when failed.... |
ad42b471564aade3a5c8bfb5f57686d5ab5c79da1fcd217c536e3f7ce7ad9be6 | TypeScript | 4,010 | 88 | import { beforeEach, describe, expect, it, vi } from "vitest";
import { createMemoryHistory, createRouter } from "vue-router";
import { getGalaxyInstance } from "@/app";
import LoginRoutes from "./login-routes";
vi.mock("@/app");
const LANDING_PATH = "/tool_landings/1234-5678?public=true";
function setUser(id: str... |
689df6e26c07e2ce24ea5eeced5267f29dffe98bc352bb8195953c0c5c8c04b8 | TypeScript | 4,019 | 101 | import type { Invocation } from "@/components/Markdown/Editor/types";
import { getRequiredObject } from "./requirements";
interface ParsedAttributes {
history_id?: string;
history_target_id?: string;
history_dataset_id?: string;
history_dataset_collection_id?: string;
input?: string;
invocatio... |
c50507443fd84563d26f008aaccfd5c44a58580260824650b390bca837323eda | TypeScript | 4,028 | 109 | import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { nextTick, ref } from "vue";
import { testDatatypesMapper } from "@/components/Datatypes/test_... |
aa01ec4fde1923e5c2b62e7ae16d9131fb68781a5ddc264beb4fb032f9533b7e | TypeScript | 4,032 | 137 | // TODO: consider moving these types and logic to ro-crate-zip-explorer
import type { ROCrateEntity, ROCrateImmutableView } from "ro-crate-zip-explorer";
interface Conforms {
id: string;
name: string;
version: string;
}
interface Person {
id: string;
name: string;
email?: string;
identifie... |
013bb9dd64fd603a873c92b51727904731d367aa064a63e036da7e143b402c35 | TypeScript | 4,035 | 113 | /**
* Utilities for handling tool versioning and lineage
*/
import type { Tool } from "@/stores/toolStore";
/** Matches segments that look like a version (e.g. "1.13", "2.4.2+galaxy0", "4.3+T.galaxy1"). */
const VERSION_SEGMENT_REGEX = /^\d+(\.\d+)*[-+.\w]*$/;
/**
* Extracts the base tool ID from a versioned tool... |
586883ecc0a99d28386af9cb20708bfaba86a8adac3013bf6701a27419052fb3 | TypeScript | 4,040 | 144 | import { GalaxyApi } from "@/api";
import { purgeDataset, undeleteDataset } from "@/api/datasets";
import { rethrowSimple } from "@/utils/simple-error";
export interface ItemSizeSummary {
id: string;
name: string;
size: number;
deleted: boolean;
archived: boolean;
}
interface PurgeableItemSizeSumm... |
c1ab095beb93c80eb990ee2d6a70a7a0c389b5eb0093881de1b8f8d8dfa3b474 | TypeScript | 4,067 | 111 | import { describe, expect, it } from "vitest";
import { useServerMock } from "@/api/client/__mocks__";
import { copyDatasets, copyHistoryItems } from "./datasets";
const { server, http } = useServerMock();
describe("copyDatasets", () => {
it("copies all dataset ids to the target history", async () => {
... |
a35785da2c7fe370cdb31c1a6528adf9110f9f4de661d83edd35a1500b8c55c4 | TypeScript | 4,074 | 116 | export class ActionSkippedError extends Error {
constructor(message = "Action skipped") {
super(message);
this.name = "ActionSkippedError";
}
}
interface QueuedAction<T extends (arg: any, signal?: AbortSignal) => Promise<R>, R> {
action: T;
arg: Parameters<T>[0];
resolve: (value: R ... |
34df56d57185b9b2f3efbe31218e85e380f6589db055ecdc2f352e20f463c62c | TypeScript | 4,081 | 119 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import type { Hist... |
7c62845d74ee771ac997d58da3e9f51d78c31a8f8056f14b0951adb424ee8938 | TypeScript | 4,089 | 102 | import { getLocalVue, nth } from "@tests/vitest/helpers";
import { shallowMount, type VueWrapper } from "@vue/test-utils";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import FormCollectionType from "./FormCollectionType.vue";
import FormColumnDefinitions from "./FormColumnDefinitions.vue"... |
b599ff89e92fc7a7f709ed9a93edf796acb65b89c6df0c30185e0b4099fb6791 | TypeScript | 4,143 | 111 | import { getFakeRegisteredUser } from "@tests/test-data";
import { describe, expect, it } from "vitest";
import {
type AnonymousUser,
type AnyHistory,
type HistorySummary,
type HistorySummaryExtended,
isRegisteredUser,
userOwnsHistory,
} from ".";
const REGISTERED_USER_ID = "fake-user-id";
con... |
84eb28a966a040e28691d2e6d43b9613d1fcb8a2ff038ea2ca3ade30310771d8 | TypeScript | 4,150 | 103 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it } from "vitest";
import { type CleanableItem, CleanupResult } from "./model";
import CleanupResultDialog from "./CleanupResultDialog.vue";
const loca... |
a4dfa70d949e8bf64ab0aff059ce069f9f335ce1c0a47d5363368ba988168404 | TypeScript | 4,154 | 111 | import axios from "axios";
import { http, HttpResponse } from "msw";
import { afterEach, describe, expect, it, vi } from "vitest";
import { useServerMock } from "@/api/client/__mocks__";
import {
ApiError,
apiErrorFromResponse,
errorMessageAsString,
rethrowSimpleWithStatus,
RETRY_BACKOFF_CAP_MS,
... |
5f4876f21a4f1a3c321b3c9e28829d82e7072ef6a463566a7c2b48486a17f6ff | TypeScript | 4,187 | 121 | import "@tests/vitest/mockHelpPopovers";
import { getFakeRegisteredUser } from "@tests/test-data";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it } from "vitest";
import { useServerMock } from "@/a... |
1a09db315babd94801201752a7389a0f119b45cdc92a31b39b323ae302c8b1e1 | TypeScript | 4,189 | 125 | import { createPopper, type Placement } from "@popperjs/core";
import { onMounted, onUnmounted, type Ref, ref, watch } from "vue";
import {
DEFAULT_TOOLTIP_HOVER_DELAY_MS,
INTERACTIVE_POPOVER_CLOSE_DELAY_MS,
useDelayedAction,
} from "@/utils/tooltipTiming";
export type Trigger = "click" | "hover" | "none"... |
60e1d09d005e9759f1f67cb35e6c4cc147f21ea62046edde204773e8d8a1b0f3 | TypeScript | 4,191 | 123 | import { liveRegionKey } from "@galaxyproject/galaxy-ui";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { defineComponent, h, inject } from "vue";
import GAlert from "./GAlert.vue";
const l... |
dce3c81cae2ca14dff2ecb01eac8dbe4a4c0774f483393eb84275565cd2e7af3 | TypeScript | 4,194 | 114 | import { deferred } from "@tests/vitest/deferred";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { Toast } from "@/composables/toast";
import { useSerialTagSaves } from "./serialTagSaves";
vi.mock("@/composables/toast");
/** Tag saves of one card, ... |
70e9ab0b255edef2dee47044717e279ce2b09a62894b7f97da96d78b245bb1e9 | TypeScript | 4,233 | 103 | /**
* Re-exports of specific types from the Galaxy OpenAPI schema.
*/
import { type components, type GalaxyApiPaths } from "./schema";
// We only need the types, not the code that depends on Galaxy's implementation
export type { components, GalaxyApiPaths };
// Re-export specific types
export type HistorySummary =... |
fd3fc0104672d011cd2b0394e97e82ea7b848478843da702ba31649887403c5f | TypeScript | 4,237 | 114 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, suppressLucideVue2Deprecation } from "@tests/vitest/helpers";
import { mount, type VueWrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import ... |
36d2f58f87b286a6f72772f817d23c4becd3f2e9a0a589afebad09dcaceab96c | TypeScript | 4,246 | 80 | // @galaxyproject/galaxy-ui public barrel. Internal package with no library build: the main
// Galaxy client consumes it through a Vite source alias, and the Tool Shed frontend through a
// file: dependency. See README.md.
export { type CheckboxGroupOption } from "./components/checkboxGroupContext";
export {
type ... |
478b0f44cbccbb8f7e86753618aa625327e3dcbb59c9777998de25ee7b74b25f | TypeScript | 4,259 | 110 | import { beforeEach, describe, expect, it, vi } from "vitest";
import { HttpResponse, useServerMock } from "@/api/client/__mocks__";
const { server, http } = useServerMock();
const DATATYPES = [
{ extension: "txt", description: "Text", description_url: null, composite_files: null, upload_warning: null },
{ e... |
a1a1481fcca1561b19d16dbec1a772dba2ece67cdb442b13b82df9970976c8ae | TypeScript | 4,262 | 138 | // utilities for populating the rule builder from parsed "fetch workbook"s.
import type {
ColumnMappingType,
ParsedFetchWorkbook,
ParsedFetchWorkbookColumn,
RawRowData,
RuleBuilderMapping,
RulesCreatingWhat,
} from "./types";
export function hasData(parsedWorkbook: ParsedFetchWorkbook): boolean... |
c088d07037827e32e8c4fc8ffd495b73fbd231ea3341142524371f170b2116b1 | TypeScript | 4,266 | 105 | import { faDesktop, faLaptopCode } from "@fortawesome/free-solid-svg-icons";
import { useEntryPointStore } from "@/stores/entryPointStore";
import { useInteractiveToolsStore } from "@/stores/interactiveToolsStore";
import { type Tool, useToolStore } from "@/stores/toolStore";
import { filterLatestToolVersions } from "... |
8ab4177cf5523eedc208738f3e11800c1d03b28c0a5f656e60a149ea9e0e393b | TypeScript | 4,267 | 119 | import type { components } from "@/api/schema";
import type { ToolFormConfig } from "@/api/tools";
import type { FormData } from "@/components/Form/composables/useFormState";
import { rethrowSimple } from "@/utils/simple-error";
import { GalaxyApi } from "./client";
export type JobDestinationParams = components["sche... |
41d95351cc532329818bad9f9a62ba1cbac236c83e32f01227cbcc8b22bfa800 | TypeScript | 4,268 | 125 | import { faBurn } from "@fortawesome/free-solid-svg-icons";
import { onMounted, ref } from "vue";
import { useConfirmDialog } from "@/composables/confirmDialog";
import { useToast } from "@/composables/toast";
import localize from "@/utils/localization";
import { errorMessageAsString } from "@/utils/simple-error";
im... |
05ef3f7f66933240e6bc7931e921ef13d3ebc6266fddffbd15970da5cfeb56e8 | TypeScript | 4,286 | 119 | import { getAppRoot } from "@/onload/loadConfig";
// Simple redirect, only here to make testing easier
export function redirectToUrl(url: string) {
window.location.assign(url);
}
// separated purely to make testing easier
export function reloadPage() {
window.location.reload();
}
const slashCleanup = /(?<!:)... |
6f6384b1bee9143e565c402e2cc6593a909765b925496d1fb0e5e7e4cdb9e2af | TypeScript | 4,290 | 125 | import { storeToRefs } from "pinia";
import { computed, ref, watch } from "vue";
import type { CompositeFileInfo } from "@/api/datatypes";
import { AUTO_EXTENSION, DEFAULT_EXTENSION, getUploadDatatypes, getUploadDbKeys } from "@/components/Upload/utils";
import { Toast } from "@/composables/toast";
import { useDatatyp... |
7bc18655a2442581d94f6326c8ad27d5946a70f69483b13880c75deafc0833f7 | TypeScript | 4,299 | 108 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { getContainerResolutionToolbox, resolveContainersWithInstall } from "../AdminServices";
import ContainerIndex... |
1eca8604313646c2ac28d78422a94403bb727f35d68fb868729ffbc838a0edc9 | TypeScript | 4,307 | 108 | import type { components } from "@/api/schema";
export type StorageOperationRunState = components["schemas"]["StorageOperationRunState"];
export type StorageOperationRunSummary = components["schemas"]["StorageOperationRunSummary"];
export type DatasetStorageOperationFailureReasonCode =
components["schemas"]["Datas... |
83505f9e24e7f6d13e00addfaff1e3f142c57c75cf2ab89a18a9afd5acc6b172 | TypeScript | 4,309 | 101 | import flushPromises from "flush-promises";
import { createPinia, setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { HttpResponse, useServerMock } from "@/api/client/__mocks__";
import { useHistoryStore } from "@/stores/historyStore";
import { useWorkflowS... |
1d59e59388299c0dcac4f44271ef0474597fc4513741f44a88025e16f738bcb0 | TypeScript | 4,310 | 102 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { describe, expect, it } from "vitest";
import FormNumber from "./FormNumber.vue";
import FormText from "./FormText.vue";
import FormValueList from "./FormValueList.vue";
const localVue = getLocalVue();
function moun... |
4530b4e12aee1151482a698ab81c8e61502685fa9c271cd12c452a82ff5fda02 | TypeScript | 4,311 | 109 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it, vi } from "vitest";
import { useServerMock } from "@/api/client/__mocks__";
import { sanitizeHtml } from "@/directives/sanitizeHtml";
import GalaxyWi... |
28cbfad4f7f91644aa298247195bacb156f42ad70c003a11b2302fe20348aa69 | TypeScript | 4,314 | 111 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, injectTestRouter, nth } from "@tests/vitest/helpers";
import { mount, type VueWrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { HttpResponse, us... |
8a8b194253dadb24abb443eba1ae3f00e8b7380b1c68ac0e1e479a7d2a3ab4d5 | TypeScript | 4,318 | 100 | import { mount } from "@vue/test-utils";
import { beforeEach, describe, expect, test, vi } from "vitest";
import { defineComponent, nextTick } from "vue";
import { sanitizeHtml } from "./sanitizeHtml";
// The directive is registered globally by the test setup, with sanitizeHtml
// replaced by a pass-through spy; here... |
969711b234c681b87aab59b772fa75922e788080ab0a745a130324bebf6ef973 | TypeScript | 4,333 | 136 | import axios from "axios";
import { withPrefix } from "@/utils/redirect";
import { rethrowSimple } from "@/utils/simple-error";
export type OIDCConfigEntry = {
icon?: string;
label?: string;
custom_button_text?: string;
end_user_registration_endpoint?: string;
profile_url?: string;
};
/** Shape o... |
a5212206bc767d8cc5a62840f6465b9c8aa7517a31d70866c0872c511d158d78 | TypeScript | 4,337 | 145 | import type { SizeProp } from "@fortawesome/fontawesome-svg-core";
import type { IconDefinition } from "@fortawesome/free-solid-svg-icons";
import type { ColorVariant } from "./componentVariants";
/** Bootstrap-style variants and sizes, as the table's actions and badges have always taken them */
export type Bootstrap... |
129d310a82dbad7a3a9b101594c0461512d08226479a10bc9ba4f6761846a227 | TypeScript | 4,343 | 113 | import { faUser } from "@fortawesome/free-solid-svg-icons";
import { faCopy, faUsers } from "font-awesome-6";
import type { Ref } from "vue";
import type { AnyHistoryEntry, PublishedHistory, SharedHistory } from "@/api/histories";
import { currentUserOwnsHistory, isArchivedHistory, isPublishedHistory, isSharedHistory ... |
d55a5aeedfebea86fbc4310736240784b6497d5bc6a4c859d5adc05d2b65f3e6 | TypeScript | 4,360 | 102 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { describe, expect, it } from "vitest";
import ColumnSelector from "./ColumnSelector.vue";
import SelectBasic from "./SelectBasic.vue";
const localVue = getLocalVue();
const COL_HEADERS = ["A", "B", "C"];
interface ... |
5ebd1ccc6619d62a20924db236827ceb354783e0b72f403a727b347cf82b854b | TypeScript | 4,368 | 104 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, nth } from "@tests/vitest/helpers";
import { mount, type VueWrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { useServerMock } from "@/api/client... |
ebd03f5c8513aeee1ae2aca239e4d39d5373817e587f712196befaeab9dbfe14 | TypeScript | 4,386 | 148 | import { defineComponent, h, reactive } from "vue";
import type { DataOption } from "@/components/Form/Elements/FormData/types";
import type {
DatasetUploadMethod,
UploadedDataset,
UploadModalConfig,
UploadModalResolvers,
UploadModalResult,
} from "@/components/Panels/Upload/uploadModalTypes";
impo... |
b9855593930e8cc02d1f5dbf4a56c2d676b5b59ea78b9b5786ed0851d08d252a | TypeScript | 4,395 | 97 | import { defineStore } from "pinia";
import { computed, ref } from "vue";
import { getToolKey } from "@/api/tools";
import type { ServiceCredentialsDefinition, ServiceCredentialsIdentifier } from "@/api/userCredentials";
/**
* Pinia store for managing service credentials definitions for tools.
* Handles storage and... |
e1c87c1f8327446bd4af7cdd68f321cb66fa534c8042c37abeb9bed2db9ab025 | TypeScript | 4,421 | 109 | import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import axios from "axios";
import { beforeEach, describe, expect, it, vi } from "vitest";
import TabularChunkedView from "./TabularChunkedView.vue";
vi.mock("axios");
vi.mock("@/onload/loadConfig", () => ({
getApp... |
43a5d039d3988333deab50a67412cf74f4473d0eb5c3ad0a4f6cab2fb6df909b | TypeScript | 4,437 | 155 | /**
* Shared type definitions for upload method item types.
* These types represent the internal state of items in each upload method component
* before they are converted to upload queue items.
*/
import type { FetchDatasetHash } from "@/api/tools";
/**
* Base properties shared by all upload method items
*/
ex... |
e6b640f15327f61ae46470a402b9796acd9924f1c15b603a0f50b121135a1487 | TypeScript | 4,464 | 114 | import { createTestingPinia } from "@pinia/testing";
import { getFakeRegisteredUser } from "@tests/test-data";
import { deferred } from "@tests/vitest/deferred";
import { createTestRouter, getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
im... |
736ce33f0fd3e70b2b4dd5cadb10604f0d8888aa918d9a27b5ca05e53e9ba0c9 | TypeScript | 4,472 | 129 | import { faBell, faInfoCircle, faMapSigns, faPuzzlePiece, faUserCog } from "@fortawesome/free-solid-svg-icons";
import { defaultActivities, isActivityAvailable } from "@/stores/activitySetup";
import { useActivityStore } from "@/stores/activityStore";
import type { CommandPaletteProvider, PaletteContext, PaletteItem,... |
3112e276e774ece1c399ff16c63222ffab9c57ec3c791d8c651424912b7bdc2b | TypeScript | 4,501 | 102 | import { getLocalVue, suppressBootstrapVueWarnings, withPlugins } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { isDate } from "date-fns";
import flushPromises from "flush-promises";
import { createPinia, setActivePinia } from "pinia";
import { describe, expect, it, vi } from "vitest";
... |
caf8c911215c82380e3d13e5cdd79e5f26a4364fcca840b76b98d021347b9bca | TypeScript | 4,509 | 125 | import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { type NewStep, useWorkflowStepStore } from "@/stores/workflowStepStore";
import { useWorkflowSearchStore } from "./workflowSearchStore";
const WORKFLOW_ID = "mock-workflow";
const toolStep: Ne... |
78ee5d55a62d61859de937fa16aa4b0bdd5d53143c79057fc167e37331cd2bfb | TypeScript | 4,521 | 120 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type VueWrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { useServerMock } from "@/api/client/__mocks__";
import GroupForm from "./GroupForm.vue";
imp... |
149712af5f1d068f8b615364636383c93eba26136dbbc0a9083f27fd365fdb72 | TypeScript | 4,546 | 125 | import type { Middleware } from "openapi-fetch";
import { parseRetryAfterMs, retryBackoffMs } from "@/utils/simple-error";
interface RateLimitConfig {
/** Maximum requests per window */
maxRequests?: number;
/** Time the requestwindow lasts in milliseconds */
windowMs?: number;
/** Base delay befo... |
92a7e3ae61ebd6e48f587bf7b4c2ff45e77e63e315bca84f5f1996fe49934586 | TypeScript | 4,560 | 133 | import type { Rect } from "@floating-ui/dom";
export type Point = [number, number];
// Room for hand jitter where the pointer left the trigger; kept small, as it widens the area beside the trigger.
const EXIT_PADDING = 3;
function corners({ x, y, width, height }: Rect): Point[] {
return [
[x, y],
... |
7ac9c0856fe2af66a7c24cc562b4a08821bc1604f6b4129aff68d84be82c950d | TypeScript | 4,570 | 133 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type VueWrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { useServerMock } from "@/api/client/__mocks__";
import ResetUserPasswordForm from "./ResetUs... |
e2f4123516c84310134ad158942fda11c7ff6ca49a9cb22609db07980d64fbb3 | TypeScript | 4,584 | 139 | import type { IconDefinition } from "@fortawesome/fontawesome-svg-core";
import { onUnmounted, type Ref, ref } from "vue";
import type { ComponentColor, ComponentSize } from "@/components/BaseComponents/componentVariants";
import type ConfirmDialogComponent from "@/components/ConfirmDialog.vue";
/**
* Bootstrap Vue ... |
f82733b07c848077c3fa803267ed0172faea3b350aeaa0705c09bdb46f5863cc | TypeScript | 4,584 | 102 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, withPlugins } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { defi... |
4c83cbb3b7aa5f1e81c45e8b8b55eda46e779f73c17183d23d4a2143bb616ba8 | TypeScript | 4,681 | 164 | import { faArrowLeft, faEye, faPlay } from "@fortawesome/free-solid-svg-icons";
import { useEventBus } from "@vueuse/core";
import { GalaxyApi } from "@/api";
import type { WorkflowInvocation } from "@/api/invocations";
import type { StoredWorkflowDetailed } from "@/api/workflows";
import { useHistoryStore } from "@/s... |
dd3020a4ccc220cb09eefd9f049182c45cd9b60685e326d6ccd3154e0ab20bdd | TypeScript | 4,689 | 127 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, withPlugins } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import type ... |
17f3bab3adddd2d341578ae48be80ede1a0c8ca7cffc09b26d3e14dcf2ddd459 | TypeScript | 4,690 | 105 | import { describe, expect, it, test, vi } from "vitest";
import { getAppRoot } from "@/onload/loadConfig";
import { safeLoginRedirect, safeRedirectPath, withPrefix } from "./redirect";
vi.mock("@/onload/loadConfig");
test("route prefix changes", async () => {
vi.mocked(getAppRoot).mockReturnValue("/prefix");
... |
de2a83c656fd112f0a32ec180e8b5ad098396269117e3a5e836df202c01e8640 | TypeScript | 4,699 | 106 | import { describe, expect, it } from "vitest";
import { isValidCollectionTypeStr } from "@/components/Workflow/Editor/modules/collectionTypeDescription";
import {
COLLECTION_TYPE_SHORT_LABELS,
describeKnownCollectionType,
findKnownCollectionType,
findKnownCollectionTypes,
KNOWN_COLLECTION_TYPE_GRO... |
31c5b008cc1a11d7d2daeeac5b6e61aa06806795a016710772944c003e2c98e9 | TypeScript | 4,700 | 127 | import type {
MessageNotification,
NewSharedItemNotificationContentItemType,
NotificationVariants,
SharedItemNotification,
ToolInstallationRequestNotification,
UserNotification,
} from "@/api/notifications";
export function generateRandomItemType() {
const itemTypes = ["history", "workflow"... |
3645ea5098ddaf3fe0f7a43aaa56ceafc30747cb0a1f9dc6e76e2f048c28a5a8 | TypeScript | 4,714 | 128 | import { defineStore } from "pinia";
import { computed, ref } from "vue";
import { type HDASummary, isHDA } from "@/api";
import { loadDatasets } from "@/api/datasets";
import { errorMessageAsString } from "@/utils/simple-error";
/** Number of dataset summaries fetched when hydrating the "latest" list. */
const DEFAU... |
ce5225deb19ee0b0f7d0f1f20d8cdf916e0286a706969d1b3ec72c7950ea42ad | TypeScript | 4,719 | 138 | import { type MaybeRefOrGetter, toValue } from "@vueuse/core";
import { computed, type Ref, ref, unref } from "vue";
import { useRetryGate } from "@/composables/retryGate";
import { LastQueue } from "@/utils/lastQueue";
/**
* Parameters for fetching an item from the server.
*
* Minimally, this should include an id... |
61bc146c132238f96ee1f794b252c8e4faedb288a07e96124372ee17faf0c04a | TypeScript | 4,742 | 135 | import type { ExportObjectRequestMetadata, ExportObjectResultMetadata, ObjectExportTaskResponse } from "@/api";
import { ExportRecordModel } from "@/components/Common/models/exportRecordModel";
const PAST_EXPORT_DATE = new Date("11 November 2022 14:48 UTC").toISOString();
const RECENT_EXPORT_DATE = new Date().toISOStr... |
e40219d078c87fb69b9b43027f352dc5fc712878ac8bc7d078b3149a49954f17 | TypeScript | 4,746 | 114 | import { getLocalVue, nth } from "@tests/vitest/helpers";
import { mount, type VueWrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it } from "vitest";
import { type CleanableItem, CleanableSummary, type CleanupOperation, CleanupResult } from "./model";
import Re... |
6e4953765501ce6d28719113b253c38932a5f7478f1218817bdc6a40ca711b60 | TypeScript | 4,757 | 130 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, injectTestRouter } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { http, HttpResponse } from "msw";
import { afterEach, beforeEach, describe, expect, it, vi } from "vite... |
127676a251cdfc93a130a6b5c4f372fcf594f54eeaf3ba8daa181cd866071fed | TypeScript | 4,762 | 107 | import { faChartBar } from "@fortawesome/free-solid-svg-icons";
import type { VisualizationSummary } from "@/api/visualizations";
import { useVisualizationStore } from "@/stores/visualizationStore";
import { shortDateLabel } from "@/utils/dates";
import type { CommandPaletteProvider, PaletteItem, ScopedSection } from... |
9b76603ab831511e0884889c232b6fb489f1b1352c222f02a0db8df73d370630 | TypeScript | 4,795 | 114 | import { mount } from "@vue/test-utils";
import { describe, expect, it, vi } from "vitest";
import { defineComponent, h, ref } from "vue";
import GFormInput from "./GFormInput.vue";
function mountWithModel(initial: string | null) {
const text = ref(initial);
const Parent = defineComponent({
setup() {
... |
7506930631beafde68fedabe3aeb2bba88bb2b386eb41cbf336041d1d7b66a5e | TypeScript | 4,796 | 155 | import { faEdit, faPlus, faTrash, faTrashRestore } from "@fortawesome/free-solid-svg-icons";
import { useEventBus } from "@vueuse/core";
import axios from "axios";
import { GalaxyApi } from "@/api";
import Filtering, { contains, equals, toBool, type ValidFilter } from "@/utils/filtering";
import _l from "@/utils/local... |
f0f6b52d0228478b4539635b331ded9c11cf754d79a937efe99dceb9ec3be14a | TypeScript | 4,796 | 136 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, suppressDebugConsole } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest... |
b8a25b6e79b9986203b72ef8b884b929555082b777650d6c901dba56e17dccba | TypeScript | 4,807 | 124 | import flushPromises from "flush-promises";
import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { ref, unref } from "vue";
import type { RegisteredUser } from "@/api";
import { useServerMock } from "@/api/client/__mocks__";
import type { AnyHistory... |
bd0e5b9713c2c96a64d47eaa6b48e47c88172a03386086b83882d6561cb2534f | TypeScript | 4,808 | 91 | import { createTestingPinia } from "@pinia/testing";
import { createTestRouter, getLocalVue, nth } from "@tests/vitest/helpers";
import { setupMockHistoryBreadcrumbs } from "@tests/vitest/mockHistoryBreadcrumbs";
import { mount, type VueWrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
impor... |
6281532f6d1632fa094772500a3fee44edfd6bbbe8f0aa055d6a8b6b984aed15 | TypeScript | 4,838 | 130 | import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { ref } from "vue";
import { useServerMock } from "@/api/client/__mocks__";
import { useHistoryGraphData } from "./useHistoryGraphData";
const { server, http } = useServerMock();
interface CapturedCall ... |
ff95d5b85ce97bad5c079f1a75c20fabb1dbedf115e3e4251ef0b71c2f38c098 | TypeScript | 4,844 | 124 | import { storeToRefs } from "pinia";
import { computed, type ComputedRef, type Ref } from "vue";
import type { Tool } from "@/stores/toolStore";
import { useUserStore } from "@/stores/userStore";
import { usePersistentToggle } from "./persistentToggle";
function extractBaseToolId(toolId: string, tool: Tool | undefin... |
c1894351d5aaf235e1982c4556440dd767f40c255b5663c9d8130ce05fdcf06f | TypeScript | 4,846 | 135 | import {
GalaxyApi,
type HDCADetailed,
type SampleSheetColumnDefinition,
type SampleSheetColumnDefinitions,
} from "@/api";
import { createWorkbook, createWorkbookForCollection, type SampleSheetCollectionType } from "@/api/datasetCollections";
import { stripExtension } from "@/components/Collections/com... |
e972dfce8a9d05cebf47dda4ee2c0c019bbfab771fa78e1b89b891bdd25b2dde | TypeScript | 4,854 | 145 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import type { Pinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { ref... |
5ff4fc4903f63da8a200244dc3fd1b9473cd3c9d7fce9675f0f8a026a3827be3 | TypeScript | 4,864 | 127 | import "@/components/Form/Elements/FormSelectMany/worker/__mocks__/selectMany";
import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, withPlugins } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { setActivePinia } from "pin... |
e8e40e915a120f33a37962d7f221e443c3cd0d32c7a7c8d4081de3ebe91beffd | TypeScript | 4,873 | 165 | import { faArrowLeft, faPlay } from "@fortawesome/free-solid-svg-icons";
import { useEventBus } from "@vueuse/core";
import { GalaxyApi } from "@/api";
import type { WorkflowInvocation } from "@/api/invocations";
import type { StoredWorkflowDetailed } from "@/api/workflows";
import { useUserStore } from "@/stores/user... |
11ef0a6835bbc750c1f5930971f5c0f1b72bf9d03c867e575ab74d2bb745c7b0 | TypeScript | 4,883 | 128 | import { getFakeRegisteredUser } from "@tests/test-data";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { createPinia } from "pinia";
import { describe, expect, it, vi } from "vitest";
import { HttpResponse, useServerMoc... |
73945df7aa514e58f0eb415db4136073688eef29acfbd4d133208b55bb0f0cc5 | TypeScript | 4,886 | 101 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type VueWrapper } from "@vue/test-utils";
import { afterEach, describe, expect, it } from "vitest";
import { nextTick } from "vue";
import Multiselect from "vue-multiselect";
// Exercise Galaxy's dependency patch against the actual multiselect, witho... |
6ba9d9035464076237548c56ce221b531165bed0a8a8caf7cbe353fff3b061ce | TypeScript | 4,900 | 121 | /**
* Fetches history items from the API and stores them by `historyId`.
* A computed getter returns items for the given `historyId` and
* `filterText`.
*/
import { reverse } from "lodash";
import { defineStore } from "pinia";
import { computed, ref } from "vue";
import type { HistoryItemSummary } from "@/api";
i... |
3350a9938ab96f300b786c5935b6241af14daa31300db5ca62f793531f6b5a5e | TypeScript | 4,905 | 139 | import { computed, type Ref, ref, unref, watch } from "vue";
import type { CollectionElementIdentifiers, CreateNewCollectionPayload, HistoryItemSummary } from "@/api";
import type RuleCollectionBuilder from "@/components/RuleCollectionBuilder.vue";
import STATES from "@/utils/datasetStates";
import localize from "@/ut... |
ffbfe0123d10b07c7fd12b2d77766562fdc3e33b1d055d520138b444abe4e076 | TypeScript | 4,910 | 160 | import type { components, HistoryItemSummary } from "@/api";
import { GalaxyApi } from "@/api";
import { createHistoryDatasetCollectionInstanceSimple } from "@/api/datasetCollections";
import type {
HistoryReference,
StorageOperationExecutePolicy,
StorageOperationExecuteResponse,
StorageOperationPreview... |
6a7a548ab9b2a2ef2811a83bc77f05c1bad59134840d678ca23102663bad9c3c | TypeScript | 4,921 | 118 | import { GalaxyApi } from "@/api";
import { fetchJobOutputs, type JobResponse, submitJobRequest, type SubmitToolJobParams } from "@/api/jobs";
import type { ToolRequestDetailedModel } from "@/api/tools";
import { buildNestedState } from "@/components/Form/utilities";
import { pollUntil } from "@/composables/pollUntil";... |
500a6b2a7837de8f30d0030134a9b1ddbdbe7ec2d8acfdd63adb39057a7eb573 | TypeScript | 4,923 | 130 | import type { languages } from "monaco-editor/esm/vs/editor/editor.api";
// The actual IMonarchLanguageBracket shape doesn't work at runtime ...
const brackets = [
["{", "}", "delimiter.curly"],
["$(", ")", "delimiter.parenthesis"],
["[", "]", "delimiter.square"],
["(", ")", "delimiter.parenthesis"],
... |
2a7fb0ba859095f39b8e438c71c7c73747392996e0c9355f5fa286b832ad6e56 | TypeScript | 4,929 | 133 | import { faLayerGroup, faList, faSpinner, faUser, faUsers } from "@fortawesome/free-solid-svg-icons";
import { storeToRefs } from "pinia";
import { computed, type Ref } from "vue";
import { useRouter } from "vue-router";
import type { WorkflowSummary } from "@/api/workflows";
import type { CardBadge } from "@/componen... |
d83dcf83440796bbfbf9e614421d0630a32ba7250d3725e5a60ec99bf417f55f | TypeScript | 4,964 | 104 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, withPlugins } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { setActivePinia } from "pinia";
import { describe, expect, it, vi } from "vitest";
import { useServerMock } from "@/api/client/__mocks__";
import { use... |
18e9a0def141fb3540b279e28b5ff9f9d9a97c1097984ab83b3f74944201207e | TypeScript | 4,990 | 122 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { describe, expect, it, vi } from "vitest";
import { createMemoryHistory, createRouter } from "vue-router";
import GLink from "./GLink.vue";
const localVue = getLocalVue(true);
const RouteStub = { render: () => null ... |
7438556c527df4f3d4197fdbcc2d5caa63d0e2dc45b6cc6f4f05bf88d07c9713 | TypeScript | 5,002 | 115 | import { suppressExpectedErrorMessages } from "@tests/vitest/helpers";
import flushPromises from "flush-promises";
import { http, HttpResponse } from "msw";
import { createPinia, setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { useServerMock } from "@/ap... |
ff7cb91f9432571a80f5a99eadd2749eaf9d8154b3abc18eca74297c250b4cc4 | TypeScript | 5,002 | 119 | import axios, { type AxiosAdapter, type InternalAxiosRequestConfig } from "axios";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { installStaleCacheRetryInterceptor, isForeignHtmlResponse } from "./staleCacheRetry";
const HTML = "<!doctype html><html><body>failover</body></html>";
c... |
b9a81bd92883897015892cbfac2584017b5ade9f359180ff79fdb4c420020180 | TypeScript | 5,014 | 160 | import type { IconDefinition } from "@fortawesome/fontawesome-svg-core";
import type { UploadCollectionConfig } from "@/composables/upload/collectionTypes";
import type { NewUploadItem } from "@/composables/upload/uploadItemTypes";
import type { ApiUploadItem } from "@/utils/upload";
export type UploadMethod =
| ... |
08beec41dd01e5d442ffc1054119e1e1ba0fb6cd44d15b3d8fdf8fbb21a05036 | TypeScript | 5,015 | 146 | import { faStar as farStar } from "@fortawesome/free-regular-svg-icons";
import { faExternalLinkAlt, faLink, faStar as fasStar, faWrench } from "@fortawesome/free-solid-svg-icons";
import { storeToRefs } from "pinia";
import { computed, ref } from "vue";
import { getFullAppUrl } from "@/app/utils";
import type { CardA... |
bcd6d4ef67e9b89577f0d0529394d0243a4227599be8214cbbfa373f33238489 | TypeScript | 5,015 | 156 | import { curveCatmullRom, line } from "d3";
import * as commentColors from "@/components/Workflow/Editor/Comments/colors";
import type { GraphStep } from "@/composables/useInvocationGraph";
import type {
FrameWorkflowComment,
FreehandWorkflowComment,
MarkdownWorkflowComment,
TextWorkflowComment,
} from... |
b07ff2229924524960bb4f4ae7e8dcc04a4a6b49597295eaf8f126b30c1e0461 | TypeScript | 5,017 | 133 | import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { reactive } from "vue";
import { getWorkflowInfo } from "@/api/workflows";
import WorkflowEditor from ... |
071c4abc8b93597169cf56e726f69354e3b68931b6394ad719509f0c7d5dcf66 | TypeScript | 5,019 | 113 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, withPlugins } from "@tests/vitest/helpers";
import { mount, type VueWrapper } from "@vue/test-utils";
import { afterEach, describe, expect, it, vi } from "vitest";
import { nextTick } from "vue";
import { useServerMock } from "@/api/client/__mo... |
a450dde17f1a99af97b9c82fdd809e12dc4991110fcfac8e119a7449420abe3c | TypeScript | 5,019 | 123 | import { deferred } from "@tests/vitest/deferred";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { reactive } from "vue";
import type { RegisteredUser } from... |
08275631808ffa30c37cadd79e3f161cf310370d9a61b160a1adeb285ee815b2 | TypeScript | 5,020 | 171 | import { faPlus, faRedo } from "@fortawesome/free-solid-svg-icons";
import { useEventBus } from "@vueuse/core";
import { GalaxyApi } from "@/api";
import type { WorkflowInvocation } from "@/api/invocations";
import type { StoredWorkflowDetailed } from "@/api/workflows";
import { useHistoryStore } from "@/stores/histor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.