sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
2fbe03130d13cf7365661f7eaa70a4d649d21272f841dc8e9ae77ce175630c2a | TypeScript | 2,501 | 85 | import { computed, type ComputedRef, type Ref, ref } from "vue";
/**
* Options for configuring pagination
*/
export interface UsePaginationOptions {
/** Number of items per page (default: 24) */
itemsPerPage?: number;
}
/**
* Return type for the usePagination composable
*/
export interface UsePaginationRe... |
78c9420e7c9c6c80499cc2cfe9cbc6508a6dd44d8c51cb09a7d43bec77fc3b82 | TypeScript | 2,501 | 71 | import { getFakeRegisteredUser } from "@tests/test-data";
import { getLocalVue, nth } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { createPinia } from "pinia";
import { describe, expect, it } from "vitest";
import { useServerMock } fr... |
e5c351c08629fb1fac713dbf76be46fdd9f10ce4e7fa065090babe6af9728dcd | TypeScript | 2,508 | 71 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { describe, expect, it } from "vitest";
import Multiselect from "vue-multiselect";
import UploadSelect from "./UploadSelect.vue";
const localVue = getLocalVue();
const OPTIONS = ["csfasta", "fasta", "fastq"].map((id)... |
97de0d16166cc63e0f8f8e7750e1a12962839202c23634027489e1e5749348e7 | TypeScript | 2,509 | 67 | import type { IconDefinition } from "@fortawesome/fontawesome-svg-core";
import type { ExportParams } from "@/components/Common/models/exportRecordModel";
import { BIO_COMPUTE_OBJ_EXPORT_PLUGIN } from "./BioComputeObject/BioComputeObjectExportPlugin";
import { DEFAULT_FILE_EXPORT_PLUGIN } from "./DefaultFileExportPlu... |
0bc24d729798b47060c559c409e88333960f1ec1a93e0120952c0a8cdf319124 | TypeScript | 2,511 | 78 | import { type components, GalaxyApi, type GalaxyApiPaths } from "@/api";
import { rethrowSimple } from "@/utils/simple-error";
export type ArchivedHistorySummary = components["schemas"]["ArchivedHistorySummary"];
export type ArchivedHistoryDetailed = components["schemas"]["ArchivedHistoryDetailed"];
export type AnyArc... |
87951687041a93df6ced772cc2233365ce6de50d442aa10dd94e6f7c7f8acd91 | TypeScript | 2,511 | 79 | import axios from "axios";
import type { ToolFormConfig } from "@/api/tools";
import type { FormData } from "@/components/Form/composables/useFormState";
import { getAppRoot } from "@/onload/loadConfig";
import { rethrowSimple } from "@/utils/simple-error";
export interface UpdateToolFormDataOptions {
offset: num... |
d08842953e050949be7c6edca23d3b00cb5594fd37516cc92e2a0e9b1c2903dc | TypeScript | 2,515 | 69 | import { defineStore } from "pinia";
import { type components, GalaxyApi } from "@/api";
import { errorMessageAsString } from "@/utils/simple-error";
import { canUpgrade, findTemplate, getLatestVersion, getLatestVersionMap } from "./configTemplatesUtil";
type FileSourceTemplateSummary = components["schemas"]["FileSo... |
948f089d791c5c25284d77a37c2fb01bed5bb3522478c04b7911b1e529337f3b | TypeScript | 2,516 | 59 | import type { RouteRecordRaw } from "vue-router";
import LibrariesList from "@/components/Libraries/LibrariesList.vue";
import LibraryFolder from "@/components/Libraries/LibraryFolder/LibraryFolder.vue";
import LibraryDataset from "@/components/Libraries/LibraryFolder/LibraryFolderDataset/LibraryDataset.vue";
import L... |
6d4a943b6f4839381b518c065e951f29e4d2075437a54ebf5538721900653b0e | TypeScript | 2,526 | 72 | import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { useServerMock } from "@/api/client/__mocks__";
import { type AdminExtension, useAdminExtensionsStore } from "./adminExtensionsStore";
const EXTENSIONS: AdminExtension[] = [
{
id: "... |
6d1b5bea8a4d74debab522a9cf037fd4261a9ecff01bc62bd57f122b6b913e68 | TypeScript | 2,531 | 69 | import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import { describe, expect, it } from "vitest";
import { type QuotaUsage, toQuotaUsage } from "./model";
import QuotaUsageSummary from "./QuotaUsageSummary.vue";
const localVue = getLocalVue(true);
const QUOTA_1_BYTE... |
a00120e82b4136e893142288b2920a38431abb7808cde7918f916733b66edba5 | TypeScript | 2,532 | 63 | import { describe, expect, it } from "vitest";
import { ExportRecordModel } from "./exportRecordModel";
import {
EXPECTED_EXPIRATION_DATE,
EXPIRED_STS_DOWNLOAD_RESPONSE,
FAILED_DOWNLOAD_RESPONSE,
FILE_SOURCE_STORE_RESPONSE,
RECENT_STS_DOWNLOAD_RESPONSE,
} from "./testData/exportData";
describe("Ex... |
9085d32079e401646cbb514e8df7c3d8b5e1bf0e8713fba5f7dbb050ccc9a71b | TypeScript | 2,536 | 73 | import { computed, ref } from "vue";
import { type DatasetExtraFiles, getCompositeDatasetLink } from "@/api/datasets";
import { useDatasetExtraFilesStore } from "@/stores/datasetExtraFilesStore";
export interface PathDestination {
datasetContent: DatasetExtraFiles;
isDirectory: boolean;
filepath?: string;... |
05286ee5f5f94fa3a86dbe17acc3465311e6eb108534495b1d1652d17b8c037e | TypeScript | 2,538 | 78 | import { describe, expect, it, vi } from "vitest";
import { pollUntil } from "./pollUntil";
describe("pollUntil", () => {
it("should return immediately when condition is met on first call", async () => {
const fn = vi.fn().mockResolvedValue("done");
const result = await pollUntil({
fn,... |
cd98d48b5f87d242fd607cdadb3b2a2d3233fa14d65f0d7dfda91c3b405017a3 | TypeScript | 2,547 | 71 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, injectTestRouter } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { setActivePinia } from "pinia";
import { describe, expect, it, vi } from "vitest";
import type { HistorySummary } from "@/api";
import { useServer... |
a0323b9d395aea796f1a068cc93b6c315bc09e3305521bad524ec615071c2ed9 | TypeScript | 2,548 | 69 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it } from "vitest";
import { JobStateSummary } from "./JobStateSummary";
import CollectionProgress from "./CollectionProgress.vue";
const localVue = get... |
8eca819fcd1ef18762c0ac86415c26879e84b671a69ab44d92b14a2ffc28ea48 | TypeScript | 2,551 | 68 | 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 WorkflowCard from "./WorkflowCard.vue";
import WorkflowCardList from "./WorkflowCardList.vue";
import Wo... |
6dc48136c575fe93fee3b8bf76195ee51af45eb269a39889be8e8777d03a7d7f | TypeScript | 2,553 | 103 | import type { components } from "@/api/schema";
import { bytesToString } from "@/utils/utils";
export const DEFAULT_QUOTA_SOURCE_LABEL = "Default";
export type UserQuotaUsageData = components["schemas"]["UserQuotaUsage"];
/**
* Contains information about quota usage for a particular ObjectStore.
*/
export interfac... |
241b51556d6573ad232d1952890bb8ea71b09abed5b28df3af64a79c969939a7 | TypeScript | 2,556 | 84 | import { type components, GalaxyApi } from "@/api";
import { rethrowSimple } from "@/utils/simple-error";
export type VisualizationSummary = components["schemas"]["VisualizationSummary"];
/** Attributes the visualizations index can be sorted by. */
export type VisualizationSortByLiteral = "create_time" | "title" | "u... |
ed0ef28fa1fedc1427f3d5a8c722fd86ca88b50a8ccc3e62fae2e546d92450f6 | TypeScript | 2,561 | 88 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import type { VisualizationSpec } from "vega-embed";
import { beforeEach, describe, expect, it, vi } from "vitest";
import VegaWrapper from "./VegaWrapper.vue";
const localVue = ge... |
9a08074d83a349184b9b00a1401461ec766606401cbb317aff9ed433f26b8edb | TypeScript | 2,563 | 82 | // Matomo page-view tracking for the webapp.
//
// The webapp is a single-page app, so Matomo's stock snippet would only see
// the first load. We send the first page view ourselves, then one per
// pathname change by listening to the router. Query strings are left out of
// the tracked URL on purpose: they carry filte... |
85a8b99c950ec59837fe86b1f11a2a1057ce0a1d068b8c38bfd3f439e55e1cd6 | TypeScript | 2,564 | 69 | /** Accepted workflow file extensions */
export const WORKFLOW_FILE_EXTENSIONS = [".ga", ".gxwf.yml", ".gxwf.yaml", ".yml", ".yaml"] as const;
/** Human-readable list of accepted formats for file inputs */
export const WORKFLOW_FILE_ACCEPT = ".ga, .yml, .yaml";
/**
* Check if a filename has a valid workflow file ext... |
72cefa6dc4470fac9fad5be29dfc932c73be0e4544b9af0b8127791d2c8d9b80 | TypeScript | 2,569 | 77 | import { defineStore } from "pinia";
import { computed, ref } from "vue";
import type { DatatypeVisualization } from "@/api/datatypeVisualizations";
import { fetchDatatypeVisualizations, getPreferredVisualization } from "@/api/datatypeVisualizations";
export const useDatatypeVisualizationsStore = defineStore("datatyp... |
3116c4137dc1922204a770dcb34a532d27feeb6d0c008b80953d8ef500aabc40 | TypeScript | 2,570 | 74 | import type { UnwrapNestedRefs } from "vue";
import { filterOptions } from "./filterOptions";
import type { SelectOption, SelectValue, UseSelectManyOptions, UseSelectManyReturn } from "./selectMany";
export function main(options: UnwrapNestedRefs<UseSelectManyOptions>): UnwrapNestedRefs<UseSelectManyReturn> {
con... |
ab4861b3b453088324497e071fb8096abe02a8be7198c35d643cca33b593727a | TypeScript | 2,582 | 89 | import type { FetchDataResponse } from "@/api/tools";
import type { UploadedDataset } from "./uploadItemTypes";
interface UploadResponseData {
id: string;
name?: string;
label?: string;
hid?: number;
src?: string;
}
function isUploadResponseData(value: unknown): value is UploadResponseData {
... |
cc96bcad2aa0d2cc3bc9d953bd17f6a49260453af6457487621dcfd341f96fca | TypeScript | 2,594 | 67 | import type { RouteLocationNormalized, RouteLocationRaw } from "vue-router";
import { getGalaxyInstance } from "@/app";
import type { UploadMethod } from "@/components/Panels/Upload/types";
import { getUploadMethod } from "@/components/Panels/Upload/uploadMethodRegistry";
import { useUserStore } from "@/stores/userSto... |
ce1ee62a5e755a814e8b7391e584c868d856100e71a163ac99fec9469b0c7437 | TypeScript | 2,606 | 79 | /**
* Cancellation registry for in-progress uploads.
*
* Maintains module-level maps of `AbortController` instances keyed by
* upload item ID and batch ID so that any component can cancel an
* upload or batch without holding a direct reference to the controller.
*
* Standalone items each get their own controller... |
2fe6956798f89869170dc91741561d1fbd2e324e01e90a919fe6ac89feff57a9 | TypeScript | 2,610 | 72 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import AreaHighlight from "./AreaHighlight.vue";
const localVue = getLocalVue();
describe("AreaHighlight", () => {
beforeEach(() => {
vi.... |
ddfe54e8c4f427541390381205d0f5e5bce8f7bede74b2f273245ca329eed0cf | TypeScript | 2,610 | 82 | export type FilterField<O> = keyof O | string[];
export interface SearchIndexEntry<O> {
item: O;
/** Lower-cased string values of the searched fields. */
values: string[];
}
const EXACT = 0;
const PREFIX = 1;
const CONTAINS = 2;
const NO_MATCH = 3;
function fieldValue<O extends object>(obj: O, field: Fil... |
b0bb733e1d4fb4e8ffa96178fd709c6ea76ca86e0d77ed578b45dc03cf2039aa | TypeScript | 2,611 | 66 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { describe, expect, it, vi } from "vitest";
import { type AdminExtension, useAdminExtensionsStore } from "@/stores/adminExtensionsStore";
import AdminExtensionItem ... |
cfeb0445f45a87da661f9e924bf1ab218220877fe700fd5ffe738efbae558de4 | TypeScript | 2,616 | 73 | import { storeToRefs } from "pinia";
import { computed, type ComputedRef, type Ref, ref, watch } from "vue";
import type { UserConcreteObjectStoreModel } from "@/api";
import { useObjectStoreStore } from "@/stores/objectStoreStore";
import { useUserStore } from "@/stores/userStore";
interface TargetObjectStoreSelecti... |
fcc1b5886146216e0695c20a75b56c391e3d5f75f9796dc94cc1f5c6bd2bfe67 | TypeScript | 2,620 | 49 | import type { HDCADetailed } from "@/api";
import type { components } from "@/api/schema";
import type { MAPPING_TARGETS } from "@/components/RuleBuilder/rule-definitions";
export type RulesCreatingWhat = "datasets" | "collections";
export type RulesSourceFrom = "remote_files" | "pasted_table" | "dataset_as_table" | "... |
cbfd0e50700f67d5800efe9f0f095641b8491c666b9d4ef0fb8680ef44f40eb9 | TypeScript | 2,623 | 76 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { describe, expect, test, vi } from "vitest";
import { nextTick } from "vue";
import { useUserStore } from "@/stores/userStore";
import Tool from "./Tool.vue";
con... |
78208f946dde1d8c9ec48e7c3db8ccb0488c0e1fb29b27e40313649381f6243b | TypeScript | 2,624 | 63 | import { describe, expect, it } from "vitest";
import { buildSearchIndex, type FilterField, rankSearchIndex } from "./filterFunction";
const EXTENSIONS = ["csfasta", "fasta", "fasta.gz", "fastq", "fastqsanger", "qual454", "tabular", "tsv", "vcf"].map(
(id) => ({ id, text: id }),
);
function runFilter<O extends o... |
f4235811729ac263ed9eb7b647f5d0f0c29f835f7ef255b0850c755d2b21e75f | TypeScript | 2,624 | 72 | import type { IconDefinition } from "@fortawesome/fontawesome-svg-core";
import {
faBook,
faBug,
faFileContract,
faGraduationCap,
faHistory,
faMagic,
faPlus,
faQuestionCircle,
faRobot,
faRoute,
faSitemap,
faTools,
} from "@fortawesome/free-solid-svg-icons";
import { AGEN... |
2f797d98153a8ca6c46124ba91593b3ce64e1fc8f0ad2301143b7d1d3c68da2b | TypeScript | 2,636 | 91 | import { describe, expect, it } from "vitest";
import { shallowRef } from "vue";
import { type FocusAdjacency, useFocusedNodes } from "./useFocusedNodes";
/** Build an adjacency from a flat list of [source, target] edges. */
function adjacencyFor<T>(edges: [T, T][]): FocusAdjacency<T> {
return {
upstream(... |
b5c9461f9adcce55ab5668d88c53078709ed570695b702b3cf94944b6a7de15b | TypeScript | 2,648 | 76 | import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it } from "vitest";
import type { DatasetStorageDetails } from "@/api";
import { useServerMock } from "@/api/client/__mocks__";
import DatasetStor... |
2a49922be106a75c99e0101d69331c87a5001b2c87de15d00f5e2e446faf08e0 | TypeScript | 2,653 | 80 | import {
autoUpdate,
computePosition,
type ComputePositionConfig,
type MiddlewareData,
type Placement,
} from "@floating-ui/dom";
import { type MaybeRefOrGetter, toValue } from "@vueuse/core";
import { onScopeDispose, ref, shallowRef, watch } from "vue";
/**
* Keeps a floating element positioned a... |
8cb66f72db69158099b609d5bb1144e3040547a5af944fb9b1c9d73d19baf2c6 | TypeScript | 2,657 | 68 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { describe, expect, it } from "vitest";
import ProposalDiffView from "./ProposalDiffView.vue";
const localVue = getLocalVue();
const OLD = "# Title\nOld line 1\nOld line 2";
const NEW = "# Title\nNew line 1\nNew line... |
ec5dc5113852102667c5b9eb5f8d8bb807c3c8b1db4fb71a395ab81cc03310a5 | TypeScript | 2,665 | 70 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { describe, expect, it } from "vitest";
import SectionPatchView from "./SectionPatchView.vue";
const localVue = getLocalVue();
const OLD = "# Intro\nOld intro text\n# Methods\nOld methods text\n# Results\nOld results... |
c6d6c14dae1b01949fbec710439b65c89fc361fc3c958aefd84556bba2f500bb | TypeScript | 2,670 | 79 | /** Call `fn`, turning a synchronous throw into a rejected promise. */
function callAsync<T>(fn: () => Promise<T>): Promise<T> {
try {
return fn();
} catch (error) {
return Promise.reject(error);
}
}
/**
* Call `fn` once and share its promise with concurrent and later callers.
* A rejecti... |
f1722c3328e3b2994a5a08cef8b6e077e1a7ac5e5b271a5a9185cdd54cfefd3d | TypeScript | 2,689 | 80 | 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 FromFile from "./FromFile.vue";
import FromUrl from "./FromUrl.vue";
let lastPostRequest: Map<string, ... |
b0a3b9581984c8205cfbf1e38273454f6154f5684c0b90846b1687dffbccbfab | TypeScript | 2,690 | 99 | /**
* Read-only class for dataset states in a collection.
* Similar to JobStateSummary but for dataset states.
*/
import { NON_TERMINAL_DATASET_STATES } from "@/api/datasets";
export interface HDCAWithDatasetStates {
elements_states?: Record<string, number>;
elements_deleted?: number;
elements_purged?: ... |
d1287b296da0410246740811e63c83c85f9cdab5f8f0d47e8d79ca937e1b4b6e | TypeScript | 2,696 | 65 | import { mount } from "@vue/test-utils";
import { afterEach, beforeEach, describe, expect, it } from "vitest";
import { nextTick } from "vue";
import { ConfirmDialog as confirmService, setConfirmDialogComponentRef } from "@/composables/confirmDialog";
import ConfirmDialogComponent from "./ConfirmDialog.vue";
describ... |
f5710bc789f23a19a26ed570b3add1b67c4c0dd91f5485acd7a248e640c8b0bb | TypeScript | 2,699 | 71 | import { beforeEach, describe, expect, it, vi } from "vitest";
import type { HistoryGraphNode, HistoryGraphNodeData } from "./historyGraphMapper";
import { historyNodeColor } from "./historyNodeColor";
function node(data: Partial<HistoryGraphNodeData>): HistoryGraphNode {
return {
id: "x",
x: 0,
... |
defffcb951c6dd80ebf719661c0cc86c47b3ca0159254e54263ba717f3b69a5b | TypeScript | 2,707 | 80 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type VueWrapper } from "@vue/test-utils";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { type ComponentPublicInstance, nextTick } from "vue";
import ChangesIndicator from "./ChangesIndicator.vue";
const localVue =... |
aa75a2e26c23c17f2bd7aa21adbd62cc609b43158512685e67d5822cbd04de30 | TypeScript | 2,711 | 65 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { describe, expect, it } from "vitest";
import navigation from "@/utils/navigation/navigation.yml";
import WhichWorkbookCollectionType from "./WhichWorkbookCollectionType.vue";
const localVue = getLocalVue();
functi... |
1533f6939f7bec844f4dc62abd23d77522e31328f2707f307a80009b2b23294d | TypeScript | 2,716 | 72 | import { beforeEach, describe, expect, it, vi } from "vitest";
import { createMemoryHistory, createRouter } from "vue-router";
import { getGalaxyInstance } from "@/app";
import { Toast } from "@/composables/toast";
import { pushIgnoringNavCancel } from "./windowAwareNavigation";
/**
* A real `NavigationFailure` car... |
48745599cc30bb0cc81c1c6fefc051fcca055d7883e7f0b20558252a9d4e0ee7 | TypeScript | 2,722 | 83 | import { createTestingPinia } from "@pinia/testing";
import { getFakeRegisteredUser } from "@tests/test-data";
import { beforeEach, describe, expect, it, vi } from "vitest";
import type { AnonymousUser, AnyUser } from "@/api";
import { useConfigStore } from "@/stores/configurationStore";
import { useUserStore } from "... |
6ccfdd105628044c5c9c9d4a8f31759ed1f333a3680db83806b9217bd2c5b954 | TypeScript | 2,723 | 86 | import { advanceToJustBeforeTooltipHoverDelay, advanceTooltipHoverDelay } from "@tests/vitest/tooltipTestUtils";
import { mount } from "@vue/test-utils";
import { afterEach, beforeEach, describe, expect, test, vi } from "vitest";
import { ref } from "vue";
import { DEFAULT_TOOLTIP_HOVER_DELAY_MS } from "@/utils/toolti... |
779c7c82765bed1b68ee0650c71d89ae1f636df8ca7ad1a657744f8b92581fdd | TypeScript | 2,727 | 76 | import axios from "axios";
import { Toast } from "@/composables/toast";
import { withPrefix } from "@/utils/redirect";
import { errorMessageAsString } from "@/utils/simple-error";
import { wait } from "@/utils/utils";
/**
* Data needed to send a BioCompute Object to a BCODB server.
*/
export interface BcoDatabaseEx... |
e2fccfb7b615bd3c8f1733cc12174d39ab4ad48938550be7506b0bb85222c5ad | TypeScript | 2,738 | 79 | import { describe, expect, it } from "vitest";
import {
makeLibraryItem,
makeLocalFileItem,
makePastedItem,
makeRemoteFilesItem,
makeUrlItem,
} from "@/composables/upload/testHelpers/uploadFixtures";
import type { NewUploadItem } from "@/composables/upload/uploadItemTypes";
import { validateUpload... |
821aeb5d603dfecdf62c1ed6d4ea35f3678adad34b3b0c70e6bb41b26201e2e2 | TypeScript | 2,751 | 92 | import type { SizeProp } from "@fortawesome/fontawesome-svg-core";
import type { IconDefinition } from "@fortawesome/free-solid-svg-icons";
import type { BootstrapSize, BootstrapVariant } from "@/components/Common";
/** Card badge display styles */
export type CardBadgeType = "pill" | "badge";
/** Title sizes for he... |
9266600dcd61a040b89481a3e9b30f7225f9f0bbb4ae121de5babb6e7b93b479 | TypeScript | 2,787 | 79 | import { defineStore } from "pinia";
import { computed, ref } from "vue";
import type { UserConcreteObjectStoreModel } from "@/api";
import { getSelectableObjectStores } from "@/api/objectStores";
import { errorMessageAsString } from "@/utils/simple-error";
export const useObjectStoreStore = defineStore("objectStoreS... |
8d9d1f0904df941a886dddec2949d3a83e3de964f1b7d3d88ef8db25fa9cb8d6 | TypeScript | 2,808 | 72 | import { faFilter, faUnlockAlt, faUser, type IconDefinition } from "font-awesome-6";
import { storeToRefs } from "pinia";
import { isRegisteredUser } from "@/api";
import { useConfig } from "@/composables/config";
import { useUserStore } from "@/stores/userStore";
import localize from "@/utils/localization";
export t... |
17d3f414dba30bc8f722b816feb433df1840d03a66e09c6a7318ec68eaf462dd | TypeScript | 2,821 | 90 | import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
import { initMatomo, trackEvent } from "@/utils/matomo";
function fakeRouter(pathname: string) {
let listener: ((s: { location: { pathname: string } }) => void) | null =
null;
return {
state: { location: { pathname } },
... |
d22b10179d044a2535f16f6aa8abaae227608a69b3fdbe0120ab5eaa7958f97a | TypeScript | 2,831 | 83 | import type { WorkflowConnectionStore } from "@/stores/workflowConnectionStore";
import { getTerminalId } from "@/stores/workflowConnectionStore";
import type { Connection, InputTerminal } from "@/stores/workflowStoreTypes";
export interface CompactRename {
from: string;
to: string;
}
export interface Compact... |
8a710a5c71ca8b8338b3a456803b22eb17e18f4b7e79d5bac9f4e5d57e96f67b | TypeScript | 2,836 | 76 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type VueWrapper } from "@vue/test-utils";
import { afterEach, beforeEach, describe, expect, it } from "vitest";
import SaveChangesModal from "./SaveChangesModal.vue";
import GButton from "@/components/BaseComponents/GButton.vue";
import GModal from "... |
f6033b331438882291fb5d16247f8f12f08fd34bfdf5432ac283090684ed0ee6 | TypeScript | 2,837 | 85 | import { describe, it, expect, vi, afterEach } from "vitest";
import {
buildAccountUrl,
buildLoginUrl,
buildLogoutUrl,
redirectToAccount,
redirectToLogin,
redirectToLogout,
} from "@/api/auth";
afterEach(() => {
vi.unstubAllEnvs();
vi.restoreAllMocks();
});
describe("buildLoginUrl", ()... |
cef10e1b3926da0e4fecdf255f790da9fe88ee7de7df7efdfe6934e155cb2677 | TypeScript | 2,839 | 75 | import ELK, { type ElkExtendedEdge, type ElkNode } from "elkjs/lib/elk.bundled";
import { computeControlPoints } from "@/utils/connectionPath";
import type { GraphEdge, GraphLayout, GraphNode } from "./types";
const elk = new ELK();
/**
* Position a graph with ELK (layered, left-to-right) and route its edges as
*... |
d32d98c41086d029e1d79768075121742394613bbdfffdbb6b1146c5b7effc13 | TypeScript | 2,857 | 97 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { setActivePinia } from "pinia";
import { describe, expect, it, vi } from "vitest";
import type { HistorySummary } from "... |
baf8b29e13eedeb3506829c82ee48fd121d90e33ddf551d6032d867399aa2e9e | TypeScript | 2,878 | 80 | import { createTestingPinia } from "@pinia/testing";
import { mount } from "@vue/test-utils";
import { HttpResponse } from "msw";
import { setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { defineComponent, ref } from "vue";
import { useServerMock } from "@/api/clien... |
9bdb5c28c4e6afab5b748583af67660a16ee77eb3307d4a7d21b2cea39c6dc2a | TypeScript | 2,882 | 84 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import { setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { setMockConfig } from "@/composables/__mocks__/config"... |
0ff736eef74c3a28f6fb9bcf6507adf996d517dce7d23f20f7c2dcabc4f0faad | TypeScript | 2,883 | 61 | /// <reference types="vite/client" />
import { describe, expect, it } from "vitest";
/**
* The package ships raw source, so every consumer compiles these files with its
* own stack: the Galaxy client on Vue 3 under @vue/compat with vue-router 5, the
* Tool Shed frontend on plain Vue 3 with vue-router 4.
*
* An im... |
3557e02ef0212a18fadee5f69db6223b25499b843390808f190ca6eedfe16a4c | TypeScript | 2,886 | 75 | import { type Ref, ref } from "vue";
import { GalaxyApi } from "@/api";
import { rethrowSimple } from "@/utils/simple-error";
export interface DetailedDatatypes {
extension: string;
description?: string | null;
descriptionUrl?: string | null;
edamFormat?: string | null;
edamFormatLabel?: string | ... |
084f45adb7b374e800147166ab0d023e74a723b1e068610238cd7720a3e99776 | TypeScript | 2,892 | 74 | import { mount, type VueWrapper } from "@vue/test-utils";
import { afterEach, describe, expect, it } from "vitest";
import GrantViewer from "./GrantViewer.vue";
import OrganizationViewer from "./OrganizationViewer.vue";
import PersonViewer from "./PersonViewer.vue";
import GPopover from "@/components/BaseComponents/GP... |
fbcd6863acf5036b6de7cec7dd0212eedbb9fa2a7f50e6883f0d0bb81e900aa5 | TypeScript | 2,892 | 74 | import { describe, expect, it } from "vitest";
import { computePickValueCompaction } from "./pickValueCompact";
describe("computePickValueCompaction", () => {
it("no renames when disconnecting last of 3", () => {
const connections = {
input_0: { id: 1, output_name: "out" },
input_1... |
7cb5e431981392167005e4947cf56d6df7a64499f2cefa3873139dd38c408c8e | TypeScript | 2,893 | 85 | import { defineStore } from "pinia";
import { computed, ref } from "vue";
import { fetchAllBroadcasts } from "@/api/notifications.broadcast";
import type { components } from "@/api/schema";
import { useUserLocalStorage } from "@/composables/userLocalStorage";
import { mergeObjectListsById } from "@/utils/utils";
expo... |
b5a69d572f69262448389a93e140ad867e252f9e75b9b66e32dbc9a2d2c69ca3 | TypeScript | 2,906 | 88 | import { describe, it, expect } from "vitest";
import { ProjectSchema, ExperimentSchema } from "@/api/schemas";
describe("ProjectSchema", () => {
// Backend speaks snake_case; the rest of the app expects camelCase.
// The transform is the contract between the two — regressions here
// surface as "no graphs... |
5663f087ea89734fc3510f4045157378d79a3633c37f0babb54d50d96ede8f14 | TypeScript | 2,909 | 77 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import PasteLinksUpload from "./PasteLinksUpload.vue";
vi.mock("@/composables/upload/uploadDefaults");
cons... |
df7d39ec71f482a431d52c3d03cd9c1b18409429d7ba673eecae8fd516b6c7ab | TypeScript | 2,917 | 69 | import type { CommandPaletteProvider, PaletteContext } from "../types";
import { type ParsedPaletteQuery, parsePaletteQuery, rankPaletteItems } from "../utilities";
import { actionsProvider } from "./actions";
import { datasetsProvider } from "./datasets";
import { historiesProvider } from "./histories";
import { inter... |
2671ae488f9acbb6dbf3856d9ef1587cefbd01d8052c03ae6ca080c95efb0c61 | TypeScript | 2,927 | 100 | import { GalaxyApi } from "@/api";
import { errorMessageAsString, rethrowSimple } from "@/utils/simple-error";
import { type CleanableItem, CleanableSummary, CleanupResult, PaginationOptions } from "./Cleanup/model";
export async function fetchDiscardedDatasetsSummary(): Promise<CleanableSummary> {
const { data, ... |
a9ceb73a0e7f6e509e912b049418ecf4c424ae02c5e46b50d2734131b8067e0b | TypeScript | 2,931 | 76 | import { computed, type Ref, ref, watch } from "vue";
import { GalaxyApi } from "@/api";
import type { FileSourceTemplateSummary } from "@/api/fileSources";
import type { DynamicOptions } from "@/components/ConfigTemplates/formUtil";
import { errorMessageAsString } from "@/utils/simple-error";
/** Fetch server-suppli... |
c73488fdc7780884ca0c4452c5292f43e2a119155a19b33f681caa14fb11442b | TypeScript | 2,935 | 79 | import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import ToolSourceDisplay from "./ToolSourceDisplay.vue";
const { mockEditor, mockModel, mockMonaco } = vi.hoisted(() => {
const mockModel = {};
const mockEditor =... |
8e1c63f33cb5ce22d852f7128ccc609861c93297e9b5acd2a6bb7906477f4023 | TypeScript | 2,948 | 111 | import { faEye } from "@fortawesome/free-solid-svg-icons";
import { useEventBus } from "@vueuse/core";
import { loadVisualizations, type VisualizationSortByLiteral } from "@/api/visualizations";
import Filtering, { contains, expandNameTag, type ValidFilter } from "@/utils/filtering";
import type { FieldArray, GridCon... |
c61986f0e601a6d345541b3f35dbe58ee66f6d8b83464770e42c1de19717e22b | TypeScript | 2,956 | 75 | import type { UploadOptionVisibility } from "@/components/Panels/Upload/shared/uploadOptionVisibility";
export type UploadOptionKey = "spaceToTab" | "toPosixLines" | "deferred" | "autoDecompress";
export interface UploadOptionDefinition {
key: UploadOptionKey;
visibilityKey: keyof UploadOptionVisibility;
... |
f5b4b4ca65f99b985f75d38e7e85859dc57d86c0487d5775bf330a88b2c7ad99 | TypeScript | 2,958 | 79 | import type { Invocation } from "@/components/Markdown/Editor/types";
import { parseInput, parseOutput } from "./parseInvocation";
// Pattern to match inline Galaxy directives: ${galaxy directive_name(args)}
const INLINE_DIRECTIVE_PATTERN = /\$\{galaxy\s+(\w+)\s*\((.*?)\)\s*\}/g;
// Pattern to extract key=value pair... |
c28832e00f8e57011e4eb3473a2dc40ac09f36fde6cefcb62f82b1707f2ea4db | TypeScript | 2,970 | 70 | import { ref } from "vue";
import localize from "@/utils/localization";
import {
cleanupDatasets,
cleanupHistories,
fetchArchivedHistories,
fetchArchivedHistoriesSummary,
fetchDiscardedDatasets,
fetchDiscardedDatasetsSummary,
fetchDiscardedHistories,
fetchDiscardedHistoriesSummary,
} f... |
30c9566fa1ae6b342112e7cb817c04e61da762df66c4f368307590ee6e6b7a1f | TypeScript | 2,971 | 90 | /**
* Launch bootstrap modals with Vue components, for use with the collection assembly modals.
* i.e. With selected..... create dataset collection, create paired collection, etc.
*/
import type { HDASummary, HistoryItemSummary } from "@/api";
import type { CollectionType } from "@/api/datasetCollections";
import {... |
60ddef383a57db14d55d76c2001be3556e1f230b090c43cbeefdedc6af226af6 | TypeScript | 2,971 | 93 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { setActivePinia } from "pinia";
import { describe, expect, it, vi } from "vitest";
import type { UserConcreteObjectStore... |
c819cb02ea69368200187fb0fe0768babc5b5e8e1684f245560dd1c3246cc6ea | TypeScript | 2,976 | 119 | import { faEye, faPlus } from "@fortawesome/free-solid-svg-icons";
import { useEventBus } from "@vueuse/core";
import { loadPages, type PageSortBy } from "@/api/pages";
import { GRID_LABELS } from "@/components/Page/constants";
import Filtering, { contains, equals, toBool, type ValidFilter } from "@/utils/filtering";
... |
11533676f1715034b1f3059b9c23910489375915598b59e38f204315ec1dfdb6 | TypeScript | 2,982 | 73 | import { describe, expect, it } from "vitest";
import type { StepJobSummary } from "@/api/invocations";
import { getStepTitle, isTerminal, numTerminal } from "./util";
describe("getStepTitle", () => {
it("uses label when provided, regardless of type", () => {
expect(getStepTitle(0, "tool", "My Label")).t... |
3aa142b931b85fd5ba952e845afddab898a3c0499811d3fb3747fa5a29cbfd4a | TypeScript | 2,982 | 107 | import type { UploadCollectionConfig } from "@/composables/upload/collectionTypes";
import type {
LibraryDatasetUploadItem,
LocalFileUploadItem,
PastedContentUploadItem,
RemoteFileUploadItem,
UrlUploadItem,
} from "@/composables/upload/uploadItemTypes";
export function makePastedItem(overrides: Par... |
b85a0fd91a8c0bb5fd8521abef42ec2532729b16e6576c311e4646eabb10ec6f | TypeScript | 2,983 | 96 | import { z } from "zod";
import { fetchApi } from "./client";
import {
Emission,
EmissionsTimeSeries,
RunMetadata,
RunMetadataSchema,
RunReport,
} from "./schemas";
export async function getRunMetadata(
runId: string,
): Promise<RunMetadata | null> {
try {
return await fetchApi(`/ru... |
de160b7c19116417cb189b89fc99c39e8d98f609971c5017af9094544f4727d0 | TypeScript | 2,989 | 90 | import { computed, type ComputedRef, type Ref, ref, unref } from "vue";
import { useEventStore } from "@/stores/eventStore";
export function useSidebarSelection<T>(items: Ref<T[]> | ComputedRef<T[]>, getId: (item: T) => string) {
const selectionMode = ref(false);
const selectedIds = ref(new Set<string>());
... |
662f71b65a3413ca9d529e3633a2102f14c142335ecb8cf9b88dacdb300f2b6b | TypeScript | 3,000 | 92 | import type { CollectionElementIdentifiers } from "@/api";
import {
COMMON_FILTERS,
DEFAULT_FILTER,
guessInitialFilterType,
guessNameForPair,
} from "@/components/Collections/pairing";
import type { SupportedCollectionType } from "./collectionTypes";
interface CollectionUploadItem {
name: string;
... |
29bf52d24d209e20eb4dc1dd1ca7ff256ff41c88da265c14776e9391e557f94b | TypeScript | 3,011 | 75 | import { createTestingPinia } from "@pinia/testing";
import { getFakeRegisteredUser } from "@tests/test-data";
import { getLocalVue, withPlugins } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it, vi } from "vitest";
... |
07358235826c29baa5f1d69d9b294d5b733d582a3ee8dacbf23fbb4b4e6c1ff1 | TypeScript | 3,012 | 81 | import KNOWN_COLLECTION_TYPES_DATA from "./knownCollectionTypes.yml";
/** Where a collection type is being chosen: for a workflow input, or for a collection to build. */
export type CollectionTypeContext = "workflow_input" | "builder";
/** Names a collection and its elements, e.g. "a list with 4 pairs". */
export int... |
66c2b4ed2826eff56cf5529bae71898cda7a3f2278c790d14af7ca81dcff731c | TypeScript | 3,013 | 111 | import { type Ref, ref, watch } from "vue";
import { assertDefined } from "@/utils/assertions";
import type { SelectOption } from "./worker/selectMany";
/**
* Handles logic required for highlighting options
* @param options Array of select options to handle highlighting for
*/
export function useHighlight(options... |
f716d10a2b831bc0f1e38ca3ce8535f525ee338e9d4c4c7619e391e5ced60065 | TypeScript | 3,022 | 85 | import { defineStore, storeToRefs } from "pinia";
import { computed, ref, watch } from "vue";
import { GalaxyApi, isRegisteredUser, type UnprivilegedToolResponse } from "@/api";
import { useToast } from "@/composables/toast";
import { useUserStore } from "@/stores/userStore";
import { errorMessageAsString } from "@/ut... |
08abff59098d48ab6581be3c2ca109ca71e4059b60c5399d1fe3505692f59886 | TypeScript | 3,023 | 92 | 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 { useServerMock } from "@/api/client/__mocks__";
import type { UserFileSourceModel } from "@/api/fileSou... |
abf28a185b7f2c4024fb99fe7dad2a667b8f7c5d3556aabb3f6503d278f1a379 | TypeScript | 3,034 | 87 | /**
* Composable for sorting the staged items of an upload table.
*
* The upload request, collection elements and pairing are all built from the
* items array, so sorting reorders that array instead of letting the table sort
* a copy for display. Bind `tableSortProps` and `tableSortEvents` on GTable; this
* turns... |
3e631b25f69688669ab3a2bccfec3ce03cb075e11772b91e990d1e72c302dd5d | TypeScript | 3,084 | 98 | import { computed, type Ref, ref, watch } from "vue";
import { ERROR_STATES, TERMINAL_STATES } from "@/api/jobs";
import { type FetchDataPayload, fetchDatasetsToJobId, fetchJobErrorMessage } from "@/api/tools";
import { useJobDetails } from "@/composables/jobDetails";
import { useResourceWatcher } from "@/composables/... |
715badafaa72d67bd363f8dae3ed639242f18efebcbd2a7183c7db7d0fb7e2fc | TypeScript | 3,089 | 95 | import { select } from "d3-selection";
import { type D3ZoomEvent, zoom, zoomIdentity } from "d3-zoom";
import { type Ref, ref, watch } from "vue";
import type { Vector, WorkflowTransform } from "@/utils/geometry";
export interface XYPosition {
x: number;
y: number;
}
// if element is draggable it may impleme... |
db4dd0f6fd187cb30027754060d367070c28cea2dfdaa22787e6dbcd260c48ca | TypeScript | 3,102 | 98 | import { resolveMock } from "./handlers";
export function isMockMode(): boolean {
const flag = import.meta.env.VITE_USE_MOCK_DATA;
return flag === "true" || flag === "1";
}
let installed = false;
export function installMockFetch(): void {
if (installed || typeof window === "undefined") return;
if (!i... |
f465fdc9da1d60bbd36207d23c688449713d5c38ea8dde1334ff4e2202b16611 | TypeScript | 3,102 | 101 | import type { AxiosResponse } from "axios";
import { computed, type Ref, ref } from "vue";
import { useToast } from "@/composables/toast";
import { errorMessageAsString } from "@/utils/simple-error";
interface InputOption {
roleName: string;
roleValue: number;
}
export interface Input {
value: number[];
... |
0a9be85ea66afa7bc6924ef2ef575738172dd795ea03eef45e99148fcb5e0c2b | TypeScript | 3,109 | 70 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { describe, expect, it } from "vitest";
import { type QuotaUsage, toQuotaUsage } from "./model";
import QuotaUsageBar from "./QuotaUsageBar.vue";
const localVue = getLocalVue();
const NON_DEFAULT_QUOTA_USAGE: QuotaU... |
e4a66a408e5aced4dfaa6c8fe2d2b26b6321611123821294671224342466cdfd | TypeScript | 3,111 | 98 | /**
* @license
* Copyright 2024 The Model Explorer Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... |
1caf3a7331e0ce406cf344dd1796fcb0fab521f5b6b4ba968f912777b1743f49 | TypeScript | 3,115 | 100 | import type { DatatypesMapperModel } from "@/components/Datatypes/model";
import WorkflowIcons from "@/components/Workflow/icons";
export interface UpgradeMessage {
stepIndex: string;
name: string;
details: string[];
iconType: string;
label: string;
}
// Subworkflow steps nest their inner steps' m... |
0f8076e35cf97ad35698158849080916bc4a54e37b21f8ce2754e58f2c4a6ae6 | TypeScript | 3,118 | 102 | import { storeToRefs } from "pinia";
import { computed, onMounted, type Ref, watch } from "vue";
import type { UploadMethod } from "@/components/Panels/Upload/types";
import type { PasteContentItem } from "@/components/Panels/Upload/types/uploadItem";
import type { StagedUploadItem } from "@/stores/uploadStagingStore"... |
cb10238c5816016fbd8cba80fb5ff7378cd039b5f9255e5734ff1e09ada927b8 | TypeScript | 3,122 | 83 | import type { ColDef, ValueSetterParams } from "ag-grid-community";
import { Toast } from "@/composables/toast";
import { useUploadConfigurations } from "@/composables/uploadConfigurations";
export function enforceColumnUniqueness(colDef: ColDef) {
colDef.valueSetter = (params: ValueSetterParams) => {
con... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.