text
stringlengths
1
2.83M
id
stringlengths
16
152
metadata
dict
__index_level_0__
int64
0
949
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <g> <path fill="none" d="M0 0h24v24H0z"/> <path d="M18 20.002V15h2v7.002H4V15h2v5.002h12zM7.5 18v-2h9v2h-9zm.077-4.38l.347-1.97 8.864 1.563-.348 1.97-8.863-1.563zm1.634-5.504l1-1.732 7.794 4.5-1 1.732-7.794-4.5zm3.417-4.613l1.532-1.286 5.7...
owncloud/web/packages/design-system/src/assets/icons/stack-overflow-line.svg/0
{ "file_path": "owncloud/web/packages/design-system/src/assets/icons/stack-overflow-line.svg", "repo_id": "owncloud", "token_count": 245 }
782
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <g> <path fill="none" d="M0 0h24v24H0z"/> <path d="M8 8v8h8V8H8zM6 7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V7z"/> </g> </svg>
owncloud/web/packages/design-system/src/assets/icons/stop-mini-line.svg/0
{ "file_path": "owncloud/web/packages/design-system/src/assets/icons/stop-mini-line.svg", "repo_id": "owncloud", "token_count": 148 }
783
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <g> <path fill="none" d="M0 0h24v24H0z"/> <path d="M21 18a2 2 0 0 1-2 2h-1.8l1.8 1.5v.5H5v-.5L6.8 20H5a2 2 0 0 1-2-2V7a4 4 0 0 1 4-4h6v8h8v7zm-2-5H5v5h14v-5zM7.5 14a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm9 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0...
owncloud/web/packages/design-system/src/assets/icons/subway-wifi-line.svg/0
{ "file_path": "owncloud/web/packages/design-system/src/assets/icons/subway-wifi-line.svg", "repo_id": "owncloud", "token_count": 437 }
784
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <g> <path fill="none" d="M0 0H24V24H0z"/> <path d="M12.485 3.121l7.758 1.94c.445.11.757.51.757.97V7h1c1.1 0 2 .9 2 2v3c0 1.657-1.343 3-3 3h-.421c-.535 1.35-1.552 2.486-2.896 3.158l-4.789 2.395c-.563.281-1.225.281-1.788 0l-4.79-2.395C4.974 ...
owncloud/web/packages/design-system/src/assets/icons/surgical-mask-line.svg/0
{ "file_path": "owncloud/web/packages/design-system/src/assets/icons/surgical-mask-line.svg", "repo_id": "owncloud", "token_count": 409 }
785
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <g> <path fill="none" d="M0 0h24v24H0z"/> <path d="M8 10.255V5a4 4 0 1 1 8 0v5.255a7 7 0 1 1-8 0zm3 1.871A4.002 4.002 0 0 0 12 20a4 4 0 0 0 1-7.874V5h-2v7.126z"/> </g> </svg>
owncloud/web/packages/design-system/src/assets/icons/temp-hot-fill.svg/0
{ "file_path": "owncloud/web/packages/design-system/src/assets/icons/temp-hot-fill.svg", "repo_id": "owncloud", "token_count": 157 }
786
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <g> <path fill="none" d="M0 0h24v24H0z"/> <path d="M6.382 5.968A8.962 8.962 0 0 1 12 4c2.125 0 4.078.736 5.618 1.968l1.453-1.453 1.414 1.414-1.453 1.453a9 9 0 1 1-14.064 0L3.515 5.93l1.414-1.414 1.453 1.453zM13 12V7.495L8 14h3v4.5l5-6.5h-3...
owncloud/web/packages/design-system/src/assets/icons/timer-flash-fill.svg/0
{ "file_path": "owncloud/web/packages/design-system/src/assets/icons/timer-flash-fill.svg", "repo_id": "owncloud", "token_count": 219 }
787
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <g> <path fill="none" d="M0 0h24v24H0z"/> <path d="M17.2 20l1.8 1.5v.5H5v-.5L6.8 20H5a2 2 0 0 1-2-2V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4v11a2 2 0 0 1-2 2h-1.8zM7 5a2 2 0 0 0-2 2v11h14V7a2 2 0 0 0-2-2H7zm5 12a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM6 7h12...
owncloud/web/packages/design-system/src/assets/icons/train-line.svg/0
{ "file_path": "owncloud/web/packages/design-system/src/assets/icons/train-line.svg", "repo_id": "owncloud", "token_count": 226 }
788
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <g> <path fill="none" d="M0 0h24v24H0z"/> <path d="M8 8c1.075 0 3.497-.673 3.497-4.5V2h1.5v6H18v2h-5.003v2.91C13 15.39 13 16.595 13 17c-.002 2.208 1.615 3.4 4.785 3.4V22h-2.242c-2.402.002-4.546-2.035-4.546-4.545V10H7V8h1z"/> </g> </svg...
owncloud/web/packages/design-system/src/assets/icons/tumblr-line.svg/0
{ "file_path": "owncloud/web/packages/design-system/src/assets/icons/tumblr-line.svg", "repo_id": "owncloud", "token_count": 197 }
789
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <g> <path fill="none" d="M0 0h24v24H0z"/> <path fill-rule="nonzero" d="M13 2.05c5.053.501 9 4.765 9 9.95v1h-9v6a2 2 0 1 0 4 0v-1h2v1a4 4 0 1 1-8 0v-6H2v-1c0-5.185 3.947-9.449 9-9.95V2a1 1 0 0 1 2 0v.05zM19.938 11a8.001 8.001 0 0 0-15.876 0...
owncloud/web/packages/design-system/src/assets/icons/umbrella-line.svg/0
{ "file_path": "owncloud/web/packages/design-system/src/assets/icons/umbrella-line.svg", "repo_id": "owncloud", "token_count": 215 }
790
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <g> <path fill="none" d="M0 0h24v24H0z"/> <path d="M11 14.062V20h2v-5.938c3.946.492 7 3.858 7 7.938H4a8.001 8.001 0 0 1 7-7.938zM12 13c-3.315 0-6-2.685-6-6s2.685-6 6-6 6 2.685 6 6-2.685 6-6 6z"/> </g> </svg>
owncloud/web/packages/design-system/src/assets/icons/user-2-fill.svg/0
{ "file_path": "owncloud/web/packages/design-system/src/assets/icons/user-2-fill.svg", "repo_id": "owncloud", "token_count": 183 }
791
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <g> <path fill="none" d="M0 0h24v24H0z"/> <path fill-rule="nonzero" d="M17.841 15.659l.176.177.178-.177a2.25 2.25 0 0 1 3.182 3.182l-3.36 3.359-3.358-3.359a2.25 2.25 0 0 1 3.182-3.182zM12 14v2a6 6 0 0 0-6 6H4a8 8 0 0 1 7.75-7.996L12 14zm0-...
owncloud/web/packages/design-system/src/assets/icons/user-heart-line.svg/0
{ "file_path": "owncloud/web/packages/design-system/src/assets/icons/user-heart-line.svg", "repo_id": "owncloud", "token_count": 307 }
792
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <g> <path fill="none" d="M0 0h24v24H0z"/> <path d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zM7 12a5 5 0 0 0 10 0h-2a3 3 0 0 1-6 0H7z"/> </g> </svg>
owncloud/web/packages/design-system/src/assets/icons/user-smile-fill.svg/0
{ "file_path": "owncloud/web/packages/design-system/src/assets/icons/user-smile-fill.svg", "repo_id": "owncloud", "token_count": 151 }
793
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <g> <path fill="none" d="M0 0h24v24H0z"/> <path d="M19.39 3.161l1.413 1.414-2.475 2.475 2.475 2.475L18.328 12l2.475 2.476-2.475 2.475 2.475 2.475-1.414 1.414-3.889-3.89 2.475-2.474L15.5 12l2.475-2.475L15.5 7.05l3.89-3.889zm-6.503.578a.5.5 ...
owncloud/web/packages/design-system/src/assets/icons/volume-vibrate-fill.svg/0
{ "file_path": "owncloud/web/packages/design-system/src/assets/icons/volume-vibrate-fill.svg", "repo_id": "owncloud", "token_count": 282 }
794
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <g> <path fill="none" d="M0 0h24v24H0z"/> <path d="M20.444 3.5L13.81 14.99 17.857 22h-2.31l-4.045-7.009H11.5L18.134 3.5h2.31zM8.31 7l2.422 4.196-.002.001L7.67 16.5H5.361l3.06-5.305L6.002 7H8.31z"/> </g> </svg>
owncloud/web/packages/design-system/src/assets/icons/xing-line.svg/0
{ "file_path": "owncloud/web/packages/design-system/src/assets/icons/xing-line.svg", "repo_id": "owncloud", "token_count": 182 }
795
export const extractInitials = (userName) => { return userName .split(/[ -]/) .map((part) => part.replace(/[^\p{L}\p{Nd}]/giu, '')) .filter(Boolean) .map((part) => part.charAt(0)) .slice(0, 3) .join('') .toUpperCase() }
owncloud/web/packages/design-system/src/components/OcAvatar/extractInitials.ts/0
{ "file_path": "owncloud/web/packages/design-system/src/components/OcAvatar/extractInitials.ts", "repo_id": "owncloud", "token_count": 123 }
796
import { RouteLocationRaw } from 'vue-router' export interface BreadcrumbItem { id?: string text: string to?: RouteLocationRaw allowContextActions?: boolean onClick?: () => void isTruncationPlaceholder?: boolean isStaticNav?: boolean }
owncloud/web/packages/design-system/src/components/OcBreadcrumb/types.ts/0
{ "file_path": "owncloud/web/packages/design-system/src/components/OcBreadcrumb/types.ts", "repo_id": "owncloud", "token_count": 76 }
797
<template> <div class="oc-filter-chip oc-flex" :class="{ 'oc-filter-chip-toggle': isToggle, 'oc-filter-chip-raw': raw }" > <oc-button :id="id" class="oc-filter-chip-button oc-pill" :class="{ 'oc-filter-chip-button-selected': filterActive }" appearance="raw" @click="isToggle...
owncloud/web/packages/design-system/src/components/OcFilterChip/OcFilterChip.vue/0
{ "file_path": "owncloud/web/packages/design-system/src/components/OcFilterChip/OcFilterChip.vue", "repo_id": "owncloud", "token_count": 2087 }
798
import { shallowMount } from 'web-test-helpers' import Modal from './OcModal.vue' const defaultProps = { title: 'Example title', message: 'Example message' } const inputProps = { title: 'Create new folder', hasInput: true, inputValue: 'New folder', inputLabel: 'Folder name' } describe('OcModal', () => { ...
owncloud/web/packages/design-system/src/components/OcModal/OcModal.spec.ts/0
{ "file_path": "owncloud/web/packages/design-system/src/components/OcModal/OcModal.spec.ts", "repo_id": "owncloud", "token_count": 732 }
799
<template> <span> <input :id="id" v-model="model" type="radio" name="radio" :class="classes" :aria-checked="option === modelValue" :value="option" :disabled="disabled" /> <label :for="id" :class="labelClasses" v-text="label" /> </span> </template> <script...
owncloud/web/packages/design-system/src/components/OcRadio/OcRadio.vue/0
{ "file_path": "owncloud/web/packages/design-system/src/components/OcRadio/OcRadio.vue", "repo_id": "owncloud", "token_count": 1943 }
800
import { shallowMount } from 'web-test-helpers' import Table from './OcTableSimple.vue' describe('OcTableSimple', () => { it('adds hover', () => { const wrapper = shallowMount(Table, { props: { hover: true } }) expect(wrapper.classes()).toContain('oc-table-simple-hover') }) })
owncloud/web/packages/design-system/src/components/OcTableSimple/OcTableSimple.spec.ts/0
{ "file_path": "owncloud/web/packages/design-system/src/components/OcTableSimple/OcTableSimple.spec.ts", "repo_id": "owncloud", "token_count": 127 }
801
<template> <tbody> <slot /> </tbody> </template> <script lang="ts"> import { defineComponent } from 'vue' export default defineComponent({ name: 'OcTbody', status: 'ready', release: '2.1.0' }) </script>
owncloud/web/packages/design-system/src/components/_OcTableBody/_OcTableBody.vue/0
{ "file_path": "owncloud/web/packages/design-system/src/components/_OcTableBody/_OcTableBody.vue", "repo_id": "owncloud", "token_count": 85 }
802
export { default as OcTooltip } from './OcTooltip'
owncloud/web/packages/design-system/src/directives/index.ts/0
{ "file_path": "owncloud/web/packages/design-system/src/directives/index.ts", "repo_id": "owncloud", "token_count": 18 }
803
// Ported from UiKit until we change UI frameworks /* ======================================================================== Component: Flex ========================================================================== */ .oc-flex { display: flex; } .oc-flex-inline { display: inline-flex; } /* * Remove pseudo e...
owncloud/web/packages/design-system/src/styles/theme/oc-flex.scss/0
{ "file_path": "owncloud/web/packages/design-system/src/styles/theme/oc-flex.scss", "repo_id": "owncloud", "token_count": 1633 }
804
--- font: family: value: 'Inter, sans-serif' size: default: value: 0.875rem xsmall: value: 0.72rem small: value: 0.86rem medium: value: 1rem large: value: 1.14rem xlarge: value: 1.29rem weight: default: value: '400' thin: value: '...
owncloud/web/packages/design-system/src/tokens/ods/font.yaml/0
{ "file_path": "owncloud/web/packages/design-system/src/tokens/ods/font.yaml", "repo_id": "owncloud", "token_count": 315 }
805
// ATTENTION: this is a .mjs (instead of a .ts) file on purpose, // because we don't want to transpile it before publishing // c.f. https://github.com/vitejs/vite/issues/5370 import { mergeConfig, searchForWorkspaceRoot } from 'vite' import { join } from 'path' import { cwd } from 'process' import { readFileSync } fro...
owncloud/web/packages/extension-sdk/index.mjs/0
{ "file_path": "owncloud/web/packages/extension-sdk/index.mjs", "repo_id": "owncloud", "token_count": 1439 }
806
<template> <div class="oc-mt-xl"> <div v-if="noGroups" class="oc-flex group-info oc-text-center"> <oc-icon name="group-2" size="xxlarge" /> <p v-translate>Select a group to view details</p> </div> <div v-if="multipleGroups" class="oc-flex group-info"> <oc-icon name="group-2" size="xxlarg...
owncloud/web/packages/web-app-admin-settings/src/components/Groups/SideBar/DetailsPanel.vue/0
{ "file_path": "owncloud/web/packages/web-app-admin-settings/src/components/Groups/SideBar/DetailsPanel.vue", "repo_id": "owncloud", "token_count": 763 }
807
<template> <div class="oc-mt-xl"> <div v-if="noUsers" class="oc-flex user-info oc-text-center"> <oc-icon name="user" size="xxlarge" /> <p v-translate>Select a user to view details</p> </div> <div v-if="multipleUsers" class="oc-flex group-info"> <oc-icon name="group" size="xxlarge" /> ...
owncloud/web/packages/web-app-admin-settings/src/components/Users/SideBar/DetailsPanel.vue/0
{ "file_path": "owncloud/web/packages/web-app-admin-settings/src/components/Users/SideBar/DetailsPanel.vue", "repo_id": "owncloud", "token_count": 2195 }
808
import { eventBus } from '@ownclouders/web-pkg' import { SideBarEventTopics } from '@ownclouders/web-pkg' import { useGettext } from 'vue3-gettext' import { computed } from 'vue' import { UserAction } from '@ownclouders/web-pkg' export const useUserActionsEdit = () => { const { $gettext } = useGettext() const act...
owncloud/web/packages/web-app-admin-settings/src/composables/actions/users/useUserActionsEdit.ts/0
{ "file_path": "owncloud/web/packages/web-app-admin-settings/src/composables/actions/users/useUserActionsEdit.ts", "repo_id": "owncloud", "token_count": 280 }
809
<template> <div> <app-template ref="template" :loading="loadResourcesTask.isRunning || !loadResourcesTask.last" :breadcrumbs="breadcrumbs" :side-bar-active-panel="sideBarActivePanel" :side-bar-available-panels="sideBarAvailablePanels" :side-bar-panel-context="sideBarPanelContex...
owncloud/web/packages/web-app-admin-settings/src/views/Spaces.vue/0
{ "file_path": "owncloud/web/packages/web-app-admin-settings/src/views/Spaces.vue", "repo_id": "owncloud", "token_count": 3311 }
810
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`MembersRoleSection > should render all members accordingly 1`] = ` "<ul class="oc-list"> <li class="oc-flex oc-flex-middle oc-mb-s" data-testid="space-members-list"> <oc-avatar-stub src="" username="einstein" accessiblelabel="" width="36" cla...
owncloud/web/packages/web-app-admin-settings/tests/unit/components/Spaces/SideBar/__snapshots__/MembersRoleSection.spec.ts.snap/0
{ "file_path": "owncloud/web/packages/web-app-admin-settings/tests/unit/components/Spaces/SideBar/__snapshots__/MembersRoleSection.spec.ts.snap", "repo_id": "owncloud", "token_count": 274 }
811
import { useModals } from '@ownclouders/web-pkg' import { useGroupActionsCreateGroup } from '../../../../../src/composables/actions/groups/useGroupActionsCreateGroup' import { unref } from 'vue' import { getComposableWrapper } from 'web-test-helpers' describe('useGroupActionsCreateGroup', () => { describe('method "h...
owncloud/web/packages/web-app-admin-settings/tests/unit/composables/actions/groups/useGroupActionsCreateGroup.spec.ts/0
{ "file_path": "owncloud/web/packages/web-app-admin-settings/tests/unit/composables/actions/groups/useGroupActionsCreateGroup.spec.ts", "repo_id": "owncloud", "token_count": 334 }
812
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`Spaces view > loading states > should render spaces list after loading has been finished 1`] = ` "<div> <main class="oc-flex oc-height-1-1 app-content oc-width-1-1"> <div id="admin-settings-wrapper" class="oc-width-expand oc-height-1-1 oc-pos...
owncloud/web/packages/web-app-admin-settings/tests/unit/views/__snapshots__/Spaces.spec.ts.snap/0
{ "file_path": "owncloud/web/packages/web-app-admin-settings/tests/unit/views/__snapshots__/Spaces.spec.ts.snap", "repo_id": "owncloud", "token_count": 601 }
813
{ "name": "external", "version": "0.0.0", "private": true, "description": "ownCloud web integration of the reva app provider", "license": "AGPL-3.0", "devDependencies": { "web-test-helpers": "workspace:*" }, "peerDependencies": { "@ownclouders/web-client": "workspace:*", "@ownclouders/web-pk...
owncloud/web/packages/web-app-external/package.json/0
{ "file_path": "owncloud/web/packages/web-app-external/package.json", "repo_id": "owncloud", "token_count": 208 }
814
<template> <span class="oc-flex oc-flex-middle"> <div v-oc-tooltip="dropButtonTooltip"> <oc-button :id="editShareBtnId" class="collaborator-edit-dropdown-options-btn" appearance="raw" :disabled="isLocked" > <oc-icon name="more-2" /> </oc-button> </div>...
owncloud/web/packages/web-app-files/src/components/SideBar/Shares/Collaborators/EditDropdown.vue/0
{ "file_path": "owncloud/web/packages/web-app-files/src/components/SideBar/Shares/Collaborators/EditDropdown.vue", "repo_id": "owncloud", "token_count": 4668 }
815
<template> <div id="oc-file-versions-sidebar" class="-oc-mt-s"> <oc-loader v-if="areVersionsLoading" /> <ul v-else-if="versions.length" class="oc-m-rm oc-position-relative"> <li class="spacer oc-pb-l" aria-hidden="true"></li> <li v-for="(item, index) in versions" :key="index" ...
owncloud/web/packages/web-app-files/src/components/SideBar/Versions/FileVersions.vue/0
{ "file_path": "owncloud/web/packages/web-app-files/src/components/SideBar/Versions/FileVersions.vue", "repo_id": "owncloud", "token_count": 3057 }
816
import { nextTick, computed, unref, Ref } from 'vue' import { folderService } from '../../services/folder' import { fileList } from '../../helpers/ui' import { usePagination, useSort, SortDir, SortField, useRouteName, useResourcesStore } from '@ownclouders/web-pkg' import { useSideBar } from '@ownclouders/w...
owncloud/web/packages/web-app-files/src/composables/resourcesViewDefaults/useResourcesViewDefaults.ts/0
{ "file_path": "owncloud/web/packages/web-app-files/src/composables/resourcesViewDefaults/useResourcesViewDefaults.ts", "repo_id": "owncloud", "token_count": 1370 }
817
import { Router } from 'vue-router' import { useTask } from 'vue-concurrency' import { useRouter, useClientService, useUserStore, UserStore, SpacesStore, useSpacesStore, CapabilityStore, useCapabilityStore, useConfigStore, ConfigStore, ResourcesStore, useResourcesStore, SharesStore, useShare...
owncloud/web/packages/web-app-files/src/services/folder.ts/0
{ "file_path": "owncloud/web/packages/web-app-files/src/services/folder.ts", "repo_id": "owncloud", "token_count": 836 }
818
<template> <div class="oc-flex oc-width-1-1"> <app-loading-spinner /> </div> </template> <script lang="ts"> import { computed, defineComponent, unref } from 'vue' import { useRoute, useRouter, useSpacesStore } from '@ownclouders/web-pkg' import { AppLoadingSpinner } from '@ownclouders/web-pkg' import { urlJoin...
owncloud/web/packages/web-app-files/src/views/spaces/DriveRedirect.vue/0
{ "file_path": "owncloud/web/packages/web-app-files/src/views/spaces/DriveRedirect.vue", "repo_id": "owncloud", "token_count": 718 }
819
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`CreateAndUpload component > action buttons > should show and be enabled if file creation is possible 1`] = ` "<div class="create-and-upload-actions oc-flex-inline oc-mr-s"><span><button type="button" aria-label="Create new files or folders" class="...
owncloud/web/packages/web-app-files/tests/unit/components/AppBar/__snapshots__/CreateAndUpload.spec.ts.snap/0
{ "file_path": "owncloud/web/packages/web-app-files/tests/unit/components/AppBar/__snapshots__/CreateAndUpload.spec.ts.snap", "repo_id": "owncloud", "token_count": 3473 }
820
import ExpirationDatepicker from 'web-app-files/src/components/SideBar/Shares/Collaborators/InviteCollaborator/ExpirationDatepicker.vue' import { ShareTypes } from '@ownclouders/web-client/src/helpers/share' import merge from 'lodash-es/merge' import { DateTime } from 'luxon' import { defaultPlugins, mount } from 'web-...
owncloud/web/packages/web-app-files/tests/unit/components/SideBar/Shares/Collaborators/InviteCollaborator/ExpirationDatepicker.spec.ts/0
{ "file_path": "owncloud/web/packages/web-app-files/tests/unit/components/SideBar/Shares/Collaborators/InviteCollaborator/ExpirationDatepicker.spec.ts", "repo_id": "owncloud", "token_count": 2645 }
821
import { DateTime } from 'luxon' import FileVersions from 'web-app-files/src/components/SideBar/Versions/FileVersions.vue' import { defaultComponentMocks, defaultStubs } from 'web-test-helpers' import { mock, mockDeep } from 'vitest-mock-extended' import { Resource } from '@ownclouders/web-client' import { ShareResourc...
owncloud/web/packages/web-app-files/tests/unit/components/SideBar/Versions/FileVersions.spec.ts/0
{ "file_path": "owncloud/web/packages/web-app-files/tests/unit/components/SideBar/Versions/FileVersions.spec.ts", "repo_id": "owncloud", "token_count": 3187 }
822
import SharedWithOthers from '../../../../src/views/shares/SharedWithOthers.vue' import { useResourcesViewDefaults } from 'web-app-files/src/composables' import { useResourcesViewDefaultsMock } from 'web-app-files/tests/mocks/useResourcesViewDefaultsMock' import { ref } from 'vue' import { defaultStubs, RouteLocation }...
owncloud/web/packages/web-app-files/tests/unit/views/shares/SharedWithOthers.spec.ts/0
{ "file_path": "owncloud/web/packages/web-app-files/tests/unit/views/shares/SharedWithOthers.spec.ts", "repo_id": "owncloud", "token_count": 1449 }
823
export * from './useAvailableProviders'
owncloud/web/packages/web-app-search/src/composables/index.ts/0
{ "file_path": "owncloud/web/packages/web-app-search/src/composables/index.ts", "repo_id": "owncloud", "token_count": 11 }
824
{ "name": "web-app-webfinger", "version": "0.0.0", "private": true, "description": "ownCloud webfinger resolver", "license": "AGPL-3.0", "devDependencies": { "web-test-helpers": "workspace:*" }, "peerDependencies": { "@ownclouders/web-client": "workspace:*", "@ownclouders/web-pkg": "workspac...
owncloud/web/packages/web-app-webfinger/package.json/0
{ "file_path": "owncloud/web/packages/web-app-webfinger/package.json", "repo_id": "owncloud", "token_count": 184 }
825
/* tslint:disable */ /* eslint-disable */ /** * Libre Graph API * Libre Graph is a free API for cloud collaboration inspired by the MS Graph API. * * The version of the OpenAPI document: v1.0.4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-gen...
owncloud/web/packages/web-client/src/generated/base.ts/0
{ "file_path": "owncloud/web/packages/web-client/src/generated/base.ts", "repo_id": "owncloud", "token_count": 545 }
826
import { extractDomSelector, extractExtensionFromFile, extractStorageId } from '../resource' import { ShareTypes } from './type' import { buildWebDavSpacesPath } from '../space' import { DriveItem, Identity, Permission, UnifiedRoleDefinition, User } from '../../generated' import { CollaboratorShare, GraphSharePermi...
owncloud/web/packages/web-client/src/helpers/share/functionsNG.ts/0
{ "file_path": "owncloud/web/packages/web-client/src/helpers/share/functionsNG.ts", "repo_id": "owncloud", "token_count": 3100 }
827
export * from './encodePath' export * from './urlJoin'
owncloud/web/packages/web-client/src/utils/index.ts/0
{ "file_path": "owncloud/web/packages/web-client/src/utils/index.ts", "repo_id": "owncloud", "token_count": 19 }
828
import { SpaceResource } from '../helpers' import { urlJoin } from '../utils' import { DAV } from './client' import { WebDavOptions } from './types' // eslint-disable-next-line @typescript-eslint/no-unused-vars export const GetPublicFileUrlFactory = (dav: DAV, options: WebDavOptions) => { return { getPublicFileU...
owncloud/web/packages/web-client/src/webdav/getPublicFileUrl.ts/0
{ "file_path": "owncloud/web/packages/web-client/src/webdav/getPublicFileUrl.ts", "repo_id": "owncloud", "token_count": 159 }
829
import { buildSpace, ProjectSpaceResource } from '../../../../src/helpers/space' import { mock } from 'vitest-mock-extended' import { Ability } from '@ownclouders/web-client/src/helpers/resource/types' import { Drive, User } from '@ownclouders/web-client/src/generated' describe('buildSpace', () => { const id = '1' ...
owncloud/web/packages/web-client/tests/unit/helpers/space/functions.spec.ts/0
{ "file_path": "owncloud/web/packages/web-client/tests/unit/helpers/space/functions.spec.ts", "repo_id": "owncloud", "token_count": 3419 }
830
export * from './composables'
owncloud/web/packages/web-pkg/src/cern/index.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/cern/index.ts", "repo_id": "owncloud", "token_count": 10 }
831
export { default as ActionMenuItem } from './ActionMenuItem.vue' export { default as ContextActionMenu } from './ContextActionMenu.vue' export { default as ContextMenuQuickAction } from './ContextMenuQuickAction.vue'
owncloud/web/packages/web-pkg/src/components/ContextActions/index.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/components/ContextActions/index.ts", "repo_id": "owncloud", "token_count": 59 }
832
export type InlineFilterOption = { name: string label: string }
owncloud/web/packages/web-pkg/src/components/Filters/types.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/components/Filters/types.ts", "repo_id": "owncloud", "token_count": 21 }
833
<template> <div class="oc-location-search oc-position-small oc-position-center-right oc-mt-rm" @click.stop> <div v-if="currentSelection"> <oc-filter-chip :is-toggle="false" :is-toggle-active="false" :filter-label="currentSelectionTitle" :selected-item-names="[]" class...
owncloud/web/packages/web-pkg/src/components/SearchBarFilter.vue/0
{ "file_path": "owncloud/web/packages/web-pkg/src/components/SearchBarFilter.vue", "repo_id": "owncloud", "token_count": 1844 }
834
<template> <quota-select id="quota-select-batch-action-form" :label="$gettext('Quota')" :total-quota="selectedOption" :max-quota="maxQuota" @selected-option-change="changeSelectedQuotaOption" /> <div v-if="warningMessage" class="oc-mt-s"> <span class="oc-text-input-warning" v-text="warning...
owncloud/web/packages/web-pkg/src/components/Spaces/QuotaModal.vue/0
{ "file_path": "owncloud/web/packages/web-pkg/src/components/Spaces/QuotaModal.vue", "repo_id": "owncloud", "token_count": 2394 }
835
import { useFileActionsDeleteResources } from '../helpers' import { isLocationPublicActive, isLocationSpacesActive, isLocationTrashActive, isLocationCommonActive } from '../../../router' import { isProjectSpaceResource } from '@ownclouders/web-client/src/helpers' import { useRouter } from '../../router' import ...
owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsDelete.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsDelete.ts", "repo_id": "owncloud", "token_count": 1408 }
836
import { isLocationTrashActive } from '../../../router' import { eventBus } from '../../../services/eventBus' import { SideBarEventTopics } from '../../sideBar' import { computed, unref } from 'vue' import { useGettext } from 'vue3-gettext' import { useIsFilesAppActive } from '../helpers' import { useRouter } from '../...
owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsShowDetails.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsShowDetails.ts", "repo_id": "owncloud", "token_count": 549 }
837
import { unref, computed } from 'vue' import { useGettext } from 'vue3-gettext' import { useSpaceHelpers } from '../../spaces' import { useClientService } from '../../clientService' import { useAbility } from '../../ability' import { useRoute } from '../../router' import { SpaceAction, SpaceActionOptions } from '../typ...
owncloud/web/packages/web-pkg/src/composables/actions/spaces/useSpaceActionsRename.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/composables/actions/spaces/useSpaceActionsRename.ts", "repo_id": "owncloud", "token_count": 969 }
838
import { Ref, ref, unref } from 'vue' import { RouteLocation, Router, RouteParams } from 'vue-router' import { MaybeRef } from '../../utils' import { FileContext } from './types' import { LocationQuery } from '../router' import { Resource } from '@ownclouders/web-client' import { useFileRouteReplace } from '../router/...
owncloud/web/packages/web-pkg/src/composables/appDefaults/useAppNavigation.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/composables/appDefaults/useAppNavigation.ts", "repo_id": "owncloud", "token_count": 1048 }
839
import { computed, Ref, ref, unref, watch } from 'vue' import { buildShareSpaceResource, SpaceResource } from '@ownclouders/web-client/src/helpers' import { useRouteQuery } from '../router' import { useSpacesLoading } from './useSpacesLoading' import { queryItemAsString } from '../appDefaults' import { urlJoin } from '...
owncloud/web/packages/web-pkg/src/composables/driveResolver/useDriveResolver.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/composables/driveResolver/useDriveResolver.ts", "repo_id": "owncloud", "token_count": 2062 }
840
import { computed } from 'vue' import { getExpirationRules } from '../../helpers' import { useGettext } from 'vue3-gettext' import { useCapabilityStore } from '../piniaStores' export const useExpirationRules = () => { const capabilityStore = useCapabilityStore() const { current: currentLanguage } = useGettext() ...
owncloud/web/packages/web-pkg/src/composables/links/useExpirationRules.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/composables/links/useExpirationRules.ts", "repo_id": "owncloud", "token_count": 125 }
841
export * from './config' export * from './types'
owncloud/web/packages/web-pkg/src/composables/piniaStores/config/index.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/composables/piniaStores/config/index.ts", "repo_id": "owncloud", "token_count": 16 }
842
export * from './usePreviewService'
owncloud/web/packages/web-pkg/src/composables/previewService/index.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/composables/previewService/index.ts", "repo_id": "owncloud", "token_count": 10 }
843
import { Router } from 'vue-router' import { useService } from '../service' export const useRouter = (): Router => { return useService('$router') }
owncloud/web/packages/web-pkg/src/composables/router/useRouter.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/composables/router/useRouter.ts", "repo_id": "owncloud", "token_count": 49 }
844
export * from './useSort' export * from './constants'
owncloud/web/packages/web-pkg/src/composables/sort/index.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/composables/sort/index.ts", "repo_id": "owncloud", "token_count": 18 }
845
import { eventBus } from '../services' import { RouteLocation } from 'vue-router' import omit from 'lodash-es/omit' import { BreadcrumbItem } from 'design-system/src/components/OcBreadcrumb/types' import { v4 as uuidv4 } from 'uuid' export const breadcrumbsFromPath = ( currentRoute: RouteLocation, resourcePath: st...
owncloud/web/packages/web-pkg/src/helpers/breadcrumbs.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/helpers/breadcrumbs.ts", "repo_id": "owncloud", "token_count": 552 }
846
import { dirname } from 'path' import { extractNameWithoutExtension, Resource, SpaceResource } from '@ownclouders/web-client/src/helpers' export const resolveFileNameDuplicate = ( name: string, extension: string, existingResources: Resource[], iteration = 1 ) => { let potentialName if (!extension) { ...
owncloud/web/packages/web-pkg/src/helpers/resource/conflictHandling/conflictUtils.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/helpers/resource/conflictHandling/conflictUtils.ts", "repo_id": "owncloud", "token_count": 312 }
847
import { ShareTypes } from '@ownclouders/web-client/src/helpers/share' import { eventBus } from '../services' import { SideBarEventTopics } from '../composables/sideBar' import { createLocationShares } from '../router' import { Resource } from '@ownclouders/web-client' import { AncestorMetaData } from '../types' // du...
owncloud/web/packages/web-pkg/src/helpers/statusIndicators.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/helpers/statusIndicators.ts", "repo_id": "owncloud", "token_count": 1335 }
848
import { RouteLocationNamedRaw, RouteRecordRaw } from 'vue-router' import { RouteComponents } from './router' import { createLocation, isLocationActiveDirector, $gettext } from './utils' type spaceTypes = 'files-spaces-projects' | 'files-spaces-generic' export const createLocationSpaces = (name: spaceTypes, location ...
owncloud/web/packages/web-pkg/src/router/spaces.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/router/spaces.ts", "repo_id": "owncloud", "token_count": 574 }
849
import { Resource, SpaceResource } from '@ownclouders/web-client' import { z } from 'zod' export const ProcessorType = z.enum(['fit', 'resize', 'fill', 'thumbnail']) export type ProcessorType = z.infer<typeof ProcessorType> export interface BuildQueryStringOptions { preview?: number scalingup?: number a?: numb...
owncloud/web/packages/web-pkg/src/services/preview/types.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/services/preview/types.ts", "repo_id": "owncloud", "token_count": 156 }
850
import ErrorScreen from '../../../../src/components/AppTemplates/PartialViews/ErrorScreen.vue' import { defaultPlugins, mount } from 'web-test-helpers' describe('The external app error screen component', () => { test('displays an icon and a paragraph', () => { const wrapper = mount(ErrorScreen, { props: { ...
owncloud/web/packages/web-pkg/tests/unit/components/AppTemplates/ErrorScreen.spec.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/components/AppTemplates/ErrorScreen.spec.ts", "repo_id": "owncloud", "token_count": 219 }
851
import { shallowMount } from 'web-test-helpers' import Name from '../../../../src/components/FilesList/ResourceName.vue' const fullPath = 'images/nature/forest.jpg' const name = 'forest.jpg' const extension = 'jpg' const type = 'file' describe('OcResourceName', () => { it("doesn't add extension to hidden folder", ...
owncloud/web/packages/web-pkg/tests/unit/components/FilesList/ResourceName.spec.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/components/FilesList/ResourceName.spec.ts", "repo_id": "owncloud", "token_count": 1409 }
852
import NoContentMessage from '../../../src/components/NoContentMessage.vue' import { defaultPlugins, shallowMount } from 'web-test-helpers' describe('NoContentMessage', () => { describe('icon prop', () => { it('should render the provided icon', () => { const { wrapper } = getWrapper() const iconEl =...
owncloud/web/packages/web-pkg/tests/unit/components/NoContentMessage.spec.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/components/NoContentMessage.spec.ts", "repo_id": "owncloud", "token_count": 695 }
853
import SpaceDetailsMultiple from '../../../../../../src/components/SideBar/Spaces/Details/SpaceDetailsMultiple.vue' import { defaultPlugins, shallowMount } from 'web-test-helpers' const spaceMock = { type: 'space', name: ' space', id: '1', mdate: 'Wed, 21 Oct 2015 07:28:00 GMT', spaceQuota: { used: 100, ...
owncloud/web/packages/web-pkg/tests/unit/components/sidebar/Spaces/Details/SpaceDetailsMultiple.spec.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/components/sidebar/Spaces/Details/SpaceDetailsMultiple.spec.ts", "repo_id": "owncloud", "token_count": 304 }
854
import { mock } from 'vitest-mock-extended' import { ref, unref } from 'vue' import { defaultComponentMocks, RouteLocation, getComposableWrapper } from 'web-test-helpers' import { useFileActionsOpenShortcut, useRoute } from '../../../../../src' import { Resource } from '@ownclouders/web-client' import { GetFileContents...
owncloud/web/packages/web-pkg/tests/unit/composables/actions/files/useFileActionsOpenShortcut.spec.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/actions/files/useFileActionsOpenShortcut.spec.ts", "repo_id": "owncloud", "token_count": 1966 }
855
import { useSpaceActionsSetIcon } from '../../../../../src/composables/actions/spaces/useSpaceActionsSetIcon' import { useMessages, useModals } from '../../../../../src/composables/piniaStores' import { defaultComponentMocks, mockAxiosResolve, RouteLocation, getComposableWrapper } from 'web-test-helpers' import...
owncloud/web/packages/web-pkg/tests/unit/composables/actions/spaces/useSpaceActionsSetIcon.spec.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/actions/spaces/useSpaceActionsSetIcon.spec.ts", "repo_id": "owncloud", "token_count": 1857 }
856
import { getComposableWrapper, mockAxiosResolve } from 'web-test-helpers' import { useSpacesStore, sortSpaceMembers } from '../../../../src/composables/piniaStores' import { createPinia, setActivePinia } from 'pinia' import { mock, mockDeep } from 'vitest-mock-extended' import { CollaboratorShare, GraphShareRoleIdM...
owncloud/web/packages/web-pkg/tests/unit/composables/piniaStores/spaces.spec.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/piniaStores/spaces.spec.ts", "repo_id": "owncloud", "token_count": 4094 }
857
import { getParentPaths } from '../../../src/helpers/path' describe('build an array of parent paths from a provided path', () => { it('should return an empty array on an empty path', () => { const paths = getParentPaths('', false) expect(paths).toHaveLength(0) }) it('should return an empty array on "/" ...
owncloud/web/packages/web-pkg/tests/unit/helpers/path.spec.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/helpers/path.spec.ts", "repo_id": "owncloud", "token_count": 635 }
858
import { EventBus } from '../../../src/services/eventBus' describe('EventBus', () => { it('can handle load', () => { const bus = new EventBus() let val for (let i = 0; i < 1000; i++) { bus.subscribe(`evt.${i}`, (v) => (val = v)) } for (let i = 0; i < 1000; i++) { const msg = `msg - ...
owncloud/web/packages/web-pkg/tests/unit/services/eventBus.spec.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/services/eventBus.spec.ts", "repo_id": "owncloud", "token_count": 564 }
859
<template> <oc-text-input v-model="currentPassword" :label="$gettext('Current password')" type="password" :fix-message-line="true" /> <oc-text-input v-model="newPassword" :label="$gettext('New password')" type="password" :fix-message-line="true" @change="validatePasswordConfirm...
owncloud/web/packages/web-runtime/src/components/EditPasswordModal.vue/0
{ "file_path": "owncloud/web/packages/web-runtime/src/components/EditPasswordModal.vue", "repo_id": "owncloud", "token_count": 1130 }
860
export * from './useHead'
owncloud/web/packages/web-runtime/src/composables/head/index.ts/0
{ "file_path": "owncloud/web/packages/web-runtime/src/composables/head/index.ts", "repo_id": "owncloud", "token_count": 9 }
861
/** * typescript breaks in current setup when importing json, investigate and fix * as workaround export it from a js file */ import CoreTranslations from '../../l10n/translations.json' import ClientTranslations from '@ownclouders/web-client/l10n/translations.json' // FIXME: import PkgTranslations from '../../../web...
owncloud/web/packages/web-runtime/src/defaults/json.ts/0
{ "file_path": "owncloud/web/packages/web-runtime/src/defaults/json.ts", "repo_id": "owncloud", "token_count": 168 }
862
<template> <app-loading-spinner v-if="isLoading" /> <main v-else id="account" class="oc-height-1-1 oc-m"> <h1 id="account-page-title" class="oc-page-title oc-m-rm oc-invisible-sr">{{ pageTitle }}</h1> <div v-if="showAccountSection"> <div class="oc-flex oc-flex-between oc-flex-bottom oc-width-1-1"> ...
owncloud/web/packages/web-runtime/src/pages/account.vue/0
{ "file_path": "owncloud/web/packages/web-runtime/src/pages/account.vue", "repo_id": "owncloud", "token_count": 7079 }
863
import { buildUrl, OpenIdConnectConfig } from '@ownclouders/web-pkg' import { v4 as uuidV4 } from 'uuid' import { router } from 'web-runtime/src/router' async function get(url) { return await fetch(url, { headers: { 'X-Request-ID': uuidV4() } }) .then((res) => { return res.json() }) .catch((err) =>...
owncloud/web/packages/web-runtime/src/services/clientRegistration.ts/0
{ "file_path": "owncloud/web/packages/web-runtime/src/services/clientRegistration.ts", "repo_id": "owncloud", "token_count": 604 }
864
import Notifications from 'web-runtime/src/components/Topbar/Notifications.vue' import { Notification } from 'web-runtime/src/helpers/notifications' import { mock } from 'vitest-mock-extended' import { defaultComponentMocks, defaultPlugins, shallowMount } from 'web-test-helpers' import { SpaceResource } from '@owncloud...
owncloud/web/packages/web-runtime/tests/unit/components/Topbar/Notifications.spec.ts/0
{ "file_path": "owncloud/web/packages/web-runtime/tests/unit/components/Topbar/Notifications.spec.ts", "repo_id": "owncloud", "token_count": 3444 }
865
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`account page > account information section > displays basic user information 1`] = ` "<dl data-v-f2ac0579="" class="account-page-info oc-flex oc-flex-wrap"> <div data-v-f2ac0579="" class="account-page-info-username oc-mb oc-width-1-2@s"> <dt ...
owncloud/web/packages/web-runtime/tests/unit/pages/__snapshots__/account.spec.ts.snap/0
{ "file_path": "owncloud/web/packages/web-runtime/tests/unit/pages/__snapshots__/account.spec.ts.snap", "repo_id": "owncloud", "token_count": 1616 }
866
{ "name": "web-test-helpers", "private": true, "main": "src/index.ts", "peerDependencies": { "@casl/ability": "^6.3.3", "@casl/vue": "^2.2.1", "axios": "1.6.5", "pinia": "2.1.7", "vue-router": "4.2.5", "vue3-gettext": "2.4.0" }, "devDependencies": { "@pinia/testing": "^0.1.3" }...
owncloud/web/packages/web-test-helpers/package.json/0
{ "file_path": "owncloud/web/packages/web-test-helpers/package.json", "repo_id": "owncloud", "token_count": 182 }
867
prefer-workspace-packages: true packages: - 'packages/*' - 'tests/*'
owncloud/web/pnpm-workspace.yaml/0
{ "file_path": "owncloud/web/pnpm-workspace.yaml", "repo_id": "owncloud", "token_count": 27 }
868
/** * waits till a css property equals the given value * @param selector * @param locateStrategy 'css selector' or 'xpath' * @param property the CSS property * @param value the status to wail till * @param timeout defaults to this.globals.waitForConditionTimeout * @returns {exports} */ module.exports.command =...
owncloud/web/tests/acceptance/customCommands/waitForCSSPropertyEquals.js/0
{ "file_path": "owncloud/web/tests/acceptance/customCommands/waitForCSSPropertyEquals.js", "repo_id": "owncloud", "token_count": 243 }
869
Feature: rename folders As a user I want to rename folders So that I can organise my data structure Background: Given user "Alice" has been created with default attributes and without skeleton files in the server And user "Alice" has created folder "simple-folder" in the server And user "Alice" has...
owncloud/web/tests/acceptance/features/webUIRenameFolders/renameFolders.feature/0
{ "file_path": "owncloud/web/tests/acceptance/features/webUIRenameFolders/renameFolders.feature", "repo_id": "owncloud", "token_count": 2452 }
870
@files_trashbin-app-required Feature: files and folders exist in the trashbin after being deleted As a user I want deleted files and folders to be available in the trashbin So that I can recover data easily Background: Given user "Alice" has been created with default attributes and without skeleton files i...
owncloud/web/tests/acceptance/features/webUITrashbinFilesFolders/trashbinFilesFolders.feature/0
{ "file_path": "owncloud/web/tests/acceptance/features/webUITrashbinFilesFolders/trashbinFilesFolders.feature", "repo_id": "owncloud", "token_count": 750 }
871
const fetch = require('node-fetch') const { client } = require('nightwatch-api') const { BACKENDS } = require('./backendHelper') const passwords = { admin: process.env.ADMIN_PASSWORD || 'admin', regular: process.env.REGULAR_USER_PASSWORD || '123456', alt1: process.env.ALT1_USER_PASSWORD || '1234', alt2: proce...
owncloud/web/tests/acceptance/helpers/userSettings.js/0
{ "file_path": "owncloud/web/tests/acceptance/helpers/userSettings.js", "repo_id": "owncloud", "token_count": 2140 }
872
module.exports = { commands: { /** * @returns {Promise<number>} */ getVersionsCount: async function () { let count = 0 await this.api.elements('@versionsList', function (result) { count = result.value.length }) return count }, /** * @returns {*} */ ...
owncloud/web/tests/acceptance/pageObjects/FilesPageElement/versionsDialog.js/0
{ "file_path": "owncloud/web/tests/acceptance/pageObjects/FilesPageElement/versionsDialog.js", "repo_id": "owncloud", "token_count": 394 }
873
const { client } = require('nightwatch-api') const filesList = client.page.FilesPageElement.filesList() const filesActionsMenu = client.page.FilesPageElement.fileActionsMenu() const saveButtonSelector = '#app-save-action' module.exports = { commands: { /** * gets inner text from given html element * ...
owncloud/web/tests/acceptance/pageObjects/textEditorPage.js/0
{ "file_path": "owncloud/web/tests/acceptance/pageObjects/textEditorPage.js", "repo_id": "owncloud", "token_count": 1742 }
874
const { client } = require('nightwatch-api') const { When, Then } = require('@cucumber/cucumber') require('url-search-params-polyfill') const sharingHelper = require('../helpers/sharingHelper') const assert = require('assert') const loginHelper = require('../helpers/loginHelper') let lastLinkShare = null When( 'the ...
owncloud/web/tests/acceptance/stepDefinitions/publicLinkContext.js/0
{ "file_path": "owncloud/web/tests/acceptance/stepDefinitions/publicLinkContext.js", "repo_id": "owncloud", "token_count": 3523 }
875
import { Browser } from '@playwright/test' export const state: { browser: Browser } = { browser: undefined }
owncloud/web/tests/e2e/cucumber/environment/shared.ts/0
{ "file_path": "owncloud/web/tests/e2e/cucumber/environment/shared.ts", "repo_id": "owncloud", "token_count": 36 }
876
Feature: link Background: Given "Admin" creates following user using API | id | | Alice | Scenario: public link When "Alice" logs in And "Alice" creates the following folders in personal space using API | name | | folderPublic | And "Alice" creates the following...
owncloud/web/tests/e2e/cucumber/features/shares/link.feature/0
{ "file_path": "owncloud/web/tests/e2e/cucumber/features/shares/link.feature", "repo_id": "owncloud", "token_count": 4123 }
877
Feature: Trashbin delete As a user I want to delete files and folders from the trashbin So that I can control my trashbin space and which files are kept in that space Background: Given "Admin" creates following user using API | id | | Alice | | Brian | And "Alice" logs in Scena...
owncloud/web/tests/e2e/cucumber/features/smoke/trashbinDelete.feature/0
{ "file_path": "owncloud/web/tests/e2e/cucumber/features/smoke/trashbinDelete.feature", "repo_id": "owncloud", "token_count": 1295 }
878
import { When } from '@cucumber/cucumber' import { World } from '../../environment' import { objects } from '../../../support' When( '{string} navigates to the project spaces management page', async function (this: World, stepUser: string): Promise<void> { const { page } = this.actorsEnvironment.getActor({ key...
owncloud/web/tests/e2e/cucumber/steps/ui/application.ts/0
{ "file_path": "owncloud/web/tests/e2e/cucumber/steps/ui/application.ts", "repo_id": "owncloud", "token_count": 316 }
879
#!/usr/bin/env bash SCRIPT_PATH=$(dirname "$0") SCRIPT_PATH=$(cd "${SCRIPT_PATH_REL}" && pwd) # absolute path FEATURES_DIR="${SCRIPT_PATH}/cucumber/features" PROJECT_ROOT=$(cd "$SCRIPT_PATH/../../" && pwd) SCRIPT_PATH_REL=${SCRIPT_PATH//"$PROJECT_ROOT/"/} E2E_COMMAND="pnpm test:e2e:cucumber" # run command defined in ...
owncloud/web/tests/e2e/run-e2e.sh/0
{ "file_path": "owncloud/web/tests/e2e/run-e2e.sh", "repo_id": "owncloud", "token_count": 2956 }
880
export { createShare } from './share'
owncloud/web/tests/e2e/support/api/share/index.ts/0
{ "file_path": "owncloud/web/tests/e2e/support/api/share/index.ts", "repo_id": "owncloud", "token_count": 11 }
881