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="M2 4c0-.552.455-1 .992-1h18.016c.548 0 .992.445.992 1v14c0 .552-.455 1-.992 1H2.992A.994.994 0 0 1 2 18V4zm3 16h14v2H5v-2z"/>
</g>
</svg>
| owncloud/web/packages/design-system/src/assets/icons/tv-2-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/tv-2-fill.svg",
"repo_id": "owncloud",
"token_count": 160
} | 750 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M8 3v9a4 4 0 1 0 8 0V3h2v9a6 6 0 1 1-12 0V3h2zM4 20h16v2H4v-2z"/>
</g>
</svg>
| owncloud/web/packages/design-system/src/assets/icons/underline.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/underline.svg",
"repo_id": "owncloud",
"token_count": 134
} | 751 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M4 22a8 8 0 1 1 16 0H4zm9-5.917V20h4.659A6.009 6.009 0 0 0 13 16.083zM11 20v-3.917A6.009 6.009 0 0 0 6.341 20H11zm1-7c-3.315 0-6-2.685-6-6s2.685-6 6-6 6 2.685 6 6-2.685 6-6 6zm0-2c2.21 0 4... | owncloud/web/packages/design-system/src/assets/icons/user-2-line.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/user-2-line.svg",
"repo_id": "owncloud",
"token_count": 243
} | 752 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M4 22a8 8 0 1 1 16 0h-2a6 6 0 1 0-12 0H4zm8-9c-3.315 0-6-2.685-6-6s2.685-6 6-6 6 2.685 6 6-2.685 6-6 6zm0-2c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4z"/>
</g>
</svg>
| owncloud/web/packages/design-system/src/assets/icons/user-line.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/user-line.svg",
"repo_id": "owncloud",
"token_count": 201
} | 753 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M21.543 6.498C22 8.28 22 12 22 12s0 3.72-.457 5.502c-.254.985-.997 1.76-1.938 2.022C17.896 20 12 20 12 20s-5.893 0-7.605-.476c-.945-.266-1.687-1.04-1.938-2.022C2 15.72 2 12 2 12s0-3.72.457... | owncloud/web/packages/design-system/src/assets/icons/youtube-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/youtube-fill.svg",
"repo_id": "owncloud",
"token_count": 276
} | 754 |
import { shallowMount } from 'web-test-helpers'
import Count from './OcAvatarCount.vue'
describe('OcAvatarCount', () => {
it('dynamically calculates font size', () => {
const wrapper = shallowMount(Count, {
props: {
size: 100,
count: 2
}
})
expect((wrapper.element as HTMLElem... | owncloud/web/packages/design-system/src/components/OcAvatarCount/OcAvatarCount.spec.ts/0 | {
"file_path": "owncloud/web/packages/design-system/src/components/OcAvatarCount/OcAvatarCount.spec.ts",
"repo_id": "owncloud",
"token_count": 162
} | 755 |
import { defaultPlugins, shallowMount } from 'web-test-helpers/src'
import OcButton from './OcButton.vue'
describe('OcButton', () => {
it('should display slot html', () => {
const wrapper = getWrapperWithTestSlot()
const slot = wrapper.find('p')
expect(slot).toBeTruthy()
expect(slot.attributes('class... | owncloud/web/packages/design-system/src/components/OcButton/OcButton.spec.ts/0 | {
"file_path": "owncloud/web/packages/design-system/src/components/OcButton/OcButton.spec.ts",
"repo_id": "owncloud",
"token_count": 2111
} | 756 |
import OcGrid from './OcGrid.vue'
import { mount } from 'web-test-helpers'
describe('OcGrid', () => {
function getWrapper(props = {}) {
return mount(OcGrid, {
props: props
})
}
describe('gutter', () => {
it.each(['small', 'medium', 'large', 'collapse'])(
'should set provided gutter value'... | owncloud/web/packages/design-system/src/components/OcGrid/OcGrid.spec.ts/0 | {
"file_path": "owncloud/web/packages/design-system/src/components/OcGrid/OcGrid.spec.ts",
"repo_id": "owncloud",
"token_count": 380
} | 757 |
<template>
<div class="oc-modal-background" aria-labelledby="oc-modal-title">
<focus-trap :active="true" :initial-focus="initialFocusRef">
<div
:id="elementId"
ref="ocModal"
:class="classes"
tabindex="0"
role="dialog"
aria-modal="true"
@keydown.esc="ca... | owncloud/web/packages/design-system/src/components/OcModal/OcModal.vue/0 | {
"file_path": "owncloud/web/packages/design-system/src/components/OcModal/OcModal.vue",
"repo_id": "owncloud",
"token_count": 6465
} | 758 |
import { defaultPlugins, shallowMount } from 'web-test-helpers'
import Recipient from './OcRecipient.vue'
import { Recipient as RecipientType } from './types'
describe('OcRecipient', () => {
/**
* @param {Object} props
* @returns {Wrapper<Vue>}
*/
function getWrapper(props = undefined, slot = undefined) {... | owncloud/web/packages/design-system/src/components/OcRecipient/OcRecipient.spec.ts/0 | {
"file_path": "owncloud/web/packages/design-system/src/components/OcRecipient/OcRecipient.spec.ts",
"repo_id": "owncloud",
"token_count": 1119
} | 759 |
<template>
<table :class="tableClasses">
<slot />
</table>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
/**
* A table component with manually built layout.
*/
export default defineComponent({
name: 'OcTableSimple',
status: 'ready',
release: '2.1.0',
props: {
/**
* Whe... | owncloud/web/packages/design-system/src/components/OcTableSimple/OcTableSimple.vue/0 | {
"file_path": "owncloud/web/packages/design-system/src/components/OcTableSimple/OcTableSimple.vue",
"repo_id": "owncloud",
"token_count": 1014
} | 760 |
import { shallowMount } from 'web-test-helpers'
import Cell from './_OcTableCell.vue'
describe('OcTableCell', () => {
it('Uses correct element', () => {
const wrapper = shallowMount(Cell, {
props: {
type: 'th',
alignH: 'right',
alignV: 'bottom',
width: 'shrink'
},
... | owncloud/web/packages/design-system/src/components/_OcTableCell/OcTableCell.spec.ts/0 | {
"file_path": "owncloud/web/packages/design-system/src/components/_OcTableCell/OcTableCell.spec.ts",
"repo_id": "owncloud",
"token_count": 289
} | 761 |
import {
hexToRgb,
rgbToHex,
calculateShadeColor,
getLuminanace,
getContrastRatio,
generateHashedColorForString,
setDesiredContrastRatio,
cssRgbToHex,
getHexFromCssVar
} from './colors'
describe('hexToRgb', () => {
it('converts hex to rgb', () => {
expect(hexToRgb('#FF0000')).toEqual([255, 0, 0... | owncloud/web/packages/design-system/src/helpers/colors.spec.ts/0 | {
"file_path": "owncloud/web/packages/design-system/src/helpers/colors.spec.ts",
"repo_id": "owncloud",
"token_count": 1197
} | 762 |
// Name: Form
// Description: Styles for forms
//
// Component: `oc-input`
// `oc-select`
// `oc-textarea`
// `oc-radio`
// `oc-checkbox`
//
// ========================================================================
/* stylelint-... | owncloud/web/packages/design-system/src/styles/theme/oc-form.scss/0 | {
"file_path": "owncloud/web/packages/design-system/src/styles/theme/oc-form.scss",
"repo_id": "owncloud",
"token_count": 5470
} | 763 |
---
size:
max-width:
logo:
value: 150px
max-height:
logo:
value: 60px
height:
small:
value: 50px
table-row:
value: 42px
width:
xsmall:
value: 100px
small:
value: 150px
medium:
value: 300px
icon-default:
value: 22px
form-check-default:... | owncloud/web/packages/design-system/src/tokens/ods/size.yaml/0 | {
"file_path": "owncloud/web/packages/design-system/src/tokens/ods/size.yaml",
"repo_id": "owncloud",
"token_count": 208
} | 764 |
{
"name": "@ownclouders/extension-sdk",
"version": "0.0.1-alpha.3",
"description": "ownCloud Web Extension SDK",
"license": "AGPL-3.0",
"main": "index.mjs",
"type": "module",
"private": false,
"author": "ownCloud GmbH <devops@owncloud.com>",
"homepage": "https://github.com/owncloud/web/tree/master/pac... | owncloud/web/packages/extension-sdk/package.json/0 | {
"file_path": "owncloud/web/packages/extension-sdk/package.json",
"repo_id": "owncloud",
"token_count": 312
} | 765 |
<template>
<div id="group-edit-panel" class="oc-mt-xl">
<group-info-box :group="group" />
<form id="group-edit-form" class="oc-background-highlight oc-p-m" autocomplete="off">
<oc-text-input
id="displayName-input"
v-model="editGroup.displayName"
class="oc-mb-s"
:label="$g... | owncloud/web/packages/web-app-admin-settings/src/components/Groups/SideBar/EditPanel.vue/0 | {
"file_path": "owncloud/web/packages/web-app-admin-settings/src/components/Groups/SideBar/EditPanel.vue",
"repo_id": "owncloud",
"token_count": 1929
} | 766 |
<template>
<div id="user-edit-panel" class="oc-mt-xl">
<UserInfoBox :user="user" />
<form id="user-edit-form" class="oc-background-highlight oc-p-m" autocomplete="off">
<div>
<oc-text-input
id="userName-input"
v-model="editUser.onPremisesSamAccountName"
class="oc-mb... | owncloud/web/packages/web-app-admin-settings/src/components/Users/SideBar/EditPanel.vue/0 | {
"file_path": "owncloud/web/packages/web-app-admin-settings/src/components/Users/SideBar/EditPanel.vue",
"repo_id": "owncloud",
"token_count": 6850
} | 767 |
import { computed } from 'vue'
import { useGettext } from 'vue3-gettext'
import { UserAction, useModals, useCapabilityStore } from '@ownclouders/web-pkg'
import LoginModal from '../../../components/Users/LoginModal.vue'
export const useUserActionsEditLogin = () => {
const { dispatchModal } = useModals()
const capa... | owncloud/web/packages/web-app-admin-settings/src/composables/actions/users/useUserActionsEditLogin.ts/0 | {
"file_path": "owncloud/web/packages/web-app-admin-settings/src/composables/actions/users/useUserActionsEditLogin.ts",
"repo_id": "owncloud",
"token_count": 535
} | 768 |
<template>
<div>
<app-template
ref="template"
:breadcrumbs="breadcrumbs"
:side-bar-active-panel="sideBarActivePanel"
:side-bar-available-panels="sideBarAvailablePanels"
:side-bar-panel-context="sideBarPanelContext"
:is-side-bar-open="isSideBarOpen"
:side-bar-loading="side... | owncloud/web/packages/web-app-admin-settings/src/views/Users.vue/0 | {
"file_path": "owncloud/web/packages/web-app-admin-settings/src/views/Users.vue",
"repo_id": "owncloud",
"token_count": 7465
} | 769 |
import SpacesList from '../../../../src/components/Spaces/SpacesList.vue'
import { defaultComponentMocks, defaultPlugins, mount, shallowMount } from 'web-test-helpers'
import { SortDir, eventBus, queryItemAsString } from '@ownclouders/web-pkg'
import { displayPositionedDropdown } from '@ownclouders/web-pkg'
import { Si... | owncloud/web/packages/web-app-admin-settings/tests/unit/components/Spaces/SpacesList.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-app-admin-settings/tests/unit/components/Spaces/SpacesList.spec.ts",
"repo_id": "owncloud",
"token_count": 2740
} | 770 |
import { useGroupActionsDelete } from '../../../../../src/composables/actions/groups/useGroupActionsDelete'
import { mock } from 'vitest-mock-extended'
import { unref } from 'vue'
import { Group } from '@ownclouders/web-client/src/generated'
import { defaultComponentMocks, getComposableWrapper } from 'web-test-helpers'... | owncloud/web/packages/web-app-admin-settings/tests/unit/composables/actions/groups/useGroupActionsDelete.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-app-admin-settings/tests/unit/composables/actions/groups/useGroupActionsDelete.spec.ts",
"repo_id": "owncloud",
"token_count": 1162
} | 771 |
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`Users view > list view > renders initially warning if filters are mandatory 1`] = `
"<div data-v-32efd9c6="">
<main data-v-32efd9c6="" class="oc-flex oc-height-1-1 app-content oc-width-1-1">
<div id="admin-settings-wrapper" class="oc-width-ex... | owncloud/web/packages/web-app-admin-settings/tests/unit/views/__snapshots__/Users.spec.ts.snap/0 | {
"file_path": "owncloud/web/packages/web-app-admin-settings/tests/unit/views/__snapshots__/Users.spec.ts.snap",
"repo_id": "owncloud",
"token_count": 6709
} | 772 |
<template>
<iframe
v-if="appUrl && method === 'GET'"
:src="appUrl"
class="oc-width-1-1 oc-height-1-1"
:title="iFrameTitle"
allowfullscreen
/>
<div v-if="appUrl && method === 'POST' && formParameters" class="oc-height-1-1 oc-width-1-1">
<form :action="appUrl" target="app-iframe" method="pos... | owncloud/web/packages/web-app-external/src/App.vue/0 | {
"file_path": "owncloud/web/packages/web-app-external/src/App.vue",
"repo_id": "owncloud",
"token_count": 2641
} | 773 |
<template>
<div class="oc-text-nowrap oc-text-center">
<p
data-testid="files-list-footer-info"
:data-test-items="items"
:data-test-files="files"
:data-test-folders="folders"
:data-test-spaces="spaces"
:data-test-size="size"
class="oc-text-muted"
>
{{ text }}
... | owncloud/web/packages/web-app-files/src/components/FilesList/ListInfo.vue/0 | {
"file_path": "owncloud/web/packages/web-app-files/src/components/FilesList/ListInfo.vue",
"repo_id": "owncloud",
"token_count": 1932
} | 774 |
<template>
<div
:data-testid="`recipient-autocomplete-item-${item.displayName}`"
class="oc-flex oc-flex-middle oc-py-xs"
:class="collaboratorClass"
>
<avatar-image
v-if="isAnyUserShareType"
class="oc-mr-s"
:width="36"
:userid="item.id"
:user-name="item.displayName"
... | owncloud/web/packages/web-app-files/src/components/SideBar/Shares/Collaborators/InviteCollaborator/AutocompleteItem.vue/0 | {
"file_path": "owncloud/web/packages/web-app-files/src/components/SideBar/Shares/Collaborators/InviteCollaborator/AutocompleteItem.vue",
"repo_id": "owncloud",
"token_count": 947
} | 775 |
<template>
<div>
<context-action-menu :menu-sections="menuSections" :action-options="_actionOptions" />
<input
id="space-image-upload-input"
ref="spaceImageInput"
type="file"
name="file"
multiple
tabindex="-1"
:accept="supportedSpaceImageMimeTypes"
@change="uplo... | owncloud/web/packages/web-app-files/src/components/Spaces/SpaceContextActions.vue/0 | {
"file_path": "owncloud/web/packages/web-app-files/src/components/Spaces/SpaceContextActions.vue",
"repo_id": "owncloud",
"token_count": 2087
} | 776 |
import {
Extension,
useRouter,
useSearch,
useFileActionsShowShares,
useFileActionsCopyQuickLink,
useCapabilityStore
} from '@ownclouders/web-pkg'
import { computed, unref } from 'vue'
import { SDKSearch } from './search'
import { useSideBarPanels } from './composables/extensions/useFileSideBars'
import { us... | owncloud/web/packages/web-app-files/src/extensions.ts/0 | {
"file_path": "owncloud/web/packages/web-app-files/src/extensions.ts",
"repo_id": "owncloud",
"token_count": 599
} | 777 |
export * from './loaderSpace'
export * from './loaderFavorites'
export * from './loaderSharedViaLink'
export * from './loaderSharedWithMe'
export * from './loaderSharedWithOthers'
export * from './loaderTrashbin'
export * from './types'
| owncloud/web/packages/web-app-files/src/services/folder/index.ts/0 | {
"file_path": "owncloud/web/packages/web-app-files/src/services/folder/index.ts",
"repo_id": "owncloud",
"token_count": 75
} | 778 |
<template>
<app-loading-spinner v-if="isLoading" />
<template v-else>
<app-banner :file-id="fileId"></app-banner>
<drive-redirect v-if="!space" :drive-alias-and-item="driveAliasAndItem" />
<generic-trash v-else-if="isTrashRoute" :space="space" :item-id="itemId" />
<generic-space v-else :space="space... | owncloud/web/packages/web-app-files/src/views/spaces/DriveResolver.vue/0 | {
"file_path": "owncloud/web/packages/web-app-files/src/views/spaces/DriveResolver.vue",
"repo_id": "owncloud",
"token_count": 2217
} | 779 |
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`CreateSpace component > should show the "New Space" button 1`] = `
"<button type="button" aria-label="Create a new space" class="oc-button oc-rounded oc-button-m oc-button-justify-content-center oc-button-gap-m oc-button-primary oc-button-primary-f... | owncloud/web/packages/web-app-files/tests/unit/components/AppBar/__snapshots__/CreateSpace.spec.ts.snap/0 | {
"file_path": "owncloud/web/packages/web-app-files/tests/unit/components/AppBar/__snapshots__/CreateSpace.spec.ts.snap",
"repo_id": "owncloud",
"token_count": 196
} | 780 |
import { mock } from 'vitest-mock-extended'
import InviteCollaboratorForm from 'web-app-files/src/components/SideBar/Shares/Collaborators/InviteCollaborator/InviteCollaboratorForm.vue'
import {
defaultComponentMocks,
defaultPlugins,
RouteLocation,
shallowMount
} from 'web-test-helpers'
import { Resource, SpaceR... | owncloud/web/packages/web-app-files/tests/unit/components/SideBar/Shares/Collaborators/InviteCollaborator/InviteCollaboratorForm.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-app-files/tests/unit/components/SideBar/Shares/Collaborators/InviteCollaborator/InviteCollaboratorForm.spec.ts",
"repo_id": "owncloud",
"token_count": 1828
} | 781 |
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`PrivateLinkItem > should render a button 1`] = `
"<button type="button" aria-label="Copy private link to clipboard" class="oc-button oc-rounded oc-button-m oc-button-justify-content-center oc-button-gap-m oc-button-passive oc-button-passive-raw oc-... | owncloud/web/packages/web-app-files/tests/unit/components/SideBar/__snapshots__/PrivateLinkItem.spec.ts.snap/0 | {
"file_path": "owncloud/web/packages/web-app-files/tests/unit/components/SideBar/__snapshots__/PrivateLinkItem.spec.ts.snap",
"repo_id": "owncloud",
"token_count": 540
} | 782 |
import DriveRedirect from '../../../../src/views/spaces/DriveRedirect.vue'
import { mock } from 'vitest-mock-extended'
import {
defaultPlugins,
mount,
defaultComponentMocks,
defaultStubs,
RouteLocation
} from 'web-test-helpers'
describe('DriveRedirect view', () => {
it('redirects to "projects" route if no ... | owncloud/web/packages/web-app-files/tests/unit/views/spaces/DriveRedirect.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-app-files/tests/unit/views/spaces/DriveRedirect.spec.ts",
"repo_id": "owncloud",
"token_count": 348
} | 783 |
{
"name": "web-app-ocm",
"version": "0.0.0",
"description": "OCM",
"license": "AGPL-3.0",
"peerDependencies": {
"@ownclouders/web-client": "workspace:*",
"@ownclouders/web-pkg": "workspace:*",
"axios": "1.6.5",
"email-validator": "^2.0.4",
"fuse.js": "6.6.2",
"lodash-es": "4.17.21",
... | owncloud/web/packages/web-app-ocm/package.json/0 | {
"file_path": "owncloud/web/packages/web-app-ocm/package.json",
"repo_id": "owncloud",
"token_count": 217
} | 784 |
{
"name": "preview",
"version": "0.0.0",
"private": true,
"description": "ownCloud Web Preview",
"license": "AGPL-3.0",
"devDependencies": {
"@panzoom/panzoom": "^4.5.1",
"web-test-helpers": "workspace:*"
},
"peerDependencies": {
"@ownclouders/web-client": "workspace:*",
"@ownclouders/we... | owncloud/web/packages/web-app-preview/package.json/0 | {
"file_path": "owncloud/web/packages/web-app-preview/package.json",
"repo_id": "owncloud",
"token_count": 195
} | 785 |
import { SearchExtension, SearchProvider, useExtensionRegistry } from '@ownclouders/web-pkg'
import { computed, Ref } from 'vue'
export const useAvailableProviders = (): Ref<SearchProvider[]> => {
const extensionRegistry = useExtensionRegistry()
const availableProviders = computed(() => {
return extensionRegi... | owncloud/web/packages/web-app-search/src/composables/useAvailableProviders.ts/0 | {
"file_path": "owncloud/web/packages/web-app-search/src/composables/useAvailableProviders.ts",
"repo_id": "owncloud",
"token_count": 137
} | 786 |
export * from './types'
export * from './webfingerDiscovery'
| owncloud/web/packages/web-app-webfinger/src/discovery/index.ts/0 | {
"file_path": "owncloud/web/packages/web-app-webfinger/src/discovery/index.ts",
"repo_id": "owncloud",
"token_count": 19
} | 787 |
/* 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/common.ts/0 | {
"file_path": "owncloud/web/packages/web-client/src/generated/common.ts",
"repo_id": "owncloud",
"token_count": 1635
} | 788 |
export * from './constants'
export * from './functions'
export * from './permission'
export * from './type'
export * from './types'
| owncloud/web/packages/web-client/src/helpers/share/index.ts/0 | {
"file_path": "owncloud/web/packages/web-client/src/helpers/share/index.ts",
"repo_id": "owncloud",
"token_count": 43
} | 789 |
/**
* A copy of https://github.com/moxystudio/js-proper-url-join/blob/master/src/index.js
* but without the query handling.
*/
const urlRegExp = /^(\w+:\/\/[^/?]+)?(.*?)$/
export interface UrlJoinOptions {
/**
* Add a leading slash.
*
* **Default**: `true`
*/
leadingSlash?: boolean | 'keep' | undef... | owncloud/web/packages/web-client/src/utils/urlJoin.ts/0 | {
"file_path": "owncloud/web/packages/web-client/src/utils/urlJoin.ts",
"repo_id": "owncloud",
"token_count": 921
} | 790 |
import { WebDAV, WebDavOptions } from './types'
import { CopyFilesFactory } from './copyFiles'
import { CreateFolderFactory } from './createFolder'
import { GetFileContentsFactory } from './getFileContents'
import { GetFileInfoFactory } from './getFileInfo'
import { GetFileUrlFactory } from './getFileUrl'
import { GetP... | owncloud/web/packages/web-client/src/webdav/index.ts/0 | {
"file_path": "owncloud/web/packages/web-client/src/webdav/index.ts",
"repo_id": "owncloud",
"token_count": 994
} | 791 |
vi.mock('@microsoft/fetch-event-source', () => ({
fetchEventSource: vi.fn()
}))
import { EventSourceMessage, fetchEventSource } from '@microsoft/fetch-event-source'
import { SSEAdapter, sse, MESSAGE_TYPE, RetriableError } from '../../src/sse'
const url = 'https://owncloud.test/'
describe('SSEAdapter', () => {
let... | owncloud/web/packages/web-client/tests/unit/sse.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-client/tests/unit/sse.spec.ts",
"repo_id": "owncloud",
"token_count": 1251
} | 792 |
<template>
<portal to="app.app-banner">
<div v-if="isAppBannerAvailable" class="app-banner hide-desktop" :hidden="isVisible === false">
<oc-button
variation="brand"
appearance="raw"
class="app-banner-exit"
aria-label="Close"
@click="close"
>
<oc-icon nam... | owncloud/web/packages/web-pkg/src/components/AppBanner.vue/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/components/AppBanner.vue",
"repo_id": "owncloud",
"token_count": 1604
} | 793 |
<template>
<div>
<oc-list class="role-dropdown-list">
<li v-for="(type, i) in availableLinkTypes" :key="`role-dropdown-${i}`">
<oc-button
:id="`files-role-${getLinkId(type)}`"
:ref="(el: any) => (roleRefs[type] = el)"
:class="{
selected: isSelectedLinkType(t... | owncloud/web/packages/web-pkg/src/components/CreateLinkModal.vue/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/components/CreateLinkModal.vue",
"repo_id": "owncloud",
"token_count": 5557
} | 794 |
<template>
<div class="item-filter oc-flex" :class="`item-filter-${filterName}`">
<oc-filter-chip
:filter-label="filterLabel"
:selected-item-names="selectedItems.map((i) => i[displayNameAttribute])"
:close-on-click="closeOnClick"
@clear-filter="clearFilter"
@show-drop="showDrop"
... | owncloud/web/packages/web-pkg/src/components/ItemFilter.vue/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/components/ItemFilter.vue",
"repo_id": "owncloud",
"token_count": 3559
} | 795 |
<template>
<div class="compare-save-dialog oc-width-1-1 oc-flex oc-flex-between oc-flex-middle">
<span v-if="saved" class="state-indicator oc-flex oc-flex-middle">
<oc-icon variation="success" name="checkbox-circle" />
<span v-translate class="changes-saved oc-ml-s">Changes saved</span>
</span>
... | owncloud/web/packages/web-pkg/src/components/SideBar/CompareSaveDialog.vue/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/components/SideBar/CompareSaveDialog.vue",
"repo_id": "owncloud",
"token_count": 1065
} | 796 |
export { default as QuotaModal } from './QuotaModal.vue'
| owncloud/web/packages/web-pkg/src/components/Spaces/index.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/components/Spaces/index.ts",
"repo_id": "owncloud",
"token_count": 21
} | 797 |
import {
isLocationSharesActive,
isLocationSpacesActive,
createLocationShares
} from '../../../router'
import PQueue from 'p-queue'
import { IncomingShareResource } from '@ownclouders/web-client/src/helpers/share'
import { useClientService } from '../../clientService'
import { useLoadingService } from '../../load... | owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsDisableSync.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsDisableSync.ts",
"repo_id": "owncloud",
"token_count": 1376
} | 798 |
import { isLocationTrashActive } from '../../../router'
import { ShareResource, isIncomingShareResource } from '@ownclouders/web-client/src/helpers/share'
import { eventBus } from '../../../services'
import { SideBarEventTopics } from '../../sideBar'
import { computed, unref } from 'vue'
import { useGettext } from 'vue... | owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsShowShares.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsShowShares.ts",
"repo_id": "owncloud",
"token_count": 685
} | 799 |
import { SpaceResource } from '@ownclouders/web-client'
import { computed, unref } from 'vue'
import { SpaceAction, SpaceActionOptions } from '../types'
import { useRoute } from '../../router'
import { useAbility } from '../../ability'
import { useClientService } from '../../clientService'
import { useLoadingService } ... | owncloud/web/packages/web-pkg/src/composables/actions/spaces/useSpaceActionsRestore.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/actions/spaces/useSpaceActionsRestore.ts",
"repo_id": "owncloud",
"token_count": 1781
} | 800 |
import { storeToRefs } from 'pinia'
import { watch, Ref, unref } from 'vue'
import { useEventBus } from '../eventBus'
import { useThemeStore } from '../piniaStores'
import { EventBus } from '../../services'
interface DocumentTitleOptions {
titleSegments: Ref<string[]>
eventBus?: EventBus
}
export function useDocu... | owncloud/web/packages/web-pkg/src/composables/appDefaults/useDocumentTitle.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/appDefaults/useDocumentTitle.ts",
"repo_id": "owncloud",
"token_count": 324
} | 801 |
import { computed } from 'vue'
import { useSpacesStore } from '../piniaStores'
export const useSpacesLoading = () => {
const spacesStore = useSpacesStore()
const areSpacesLoading = computed(
() => !spacesStore.spacesInitialized || spacesStore.spacesLoading
)
return {
areSpacesLoading
}
}
| owncloud/web/packages/web-pkg/src/composables/driveResolver/useSpacesLoading.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/driveResolver/useSpacesLoading.ts",
"repo_id": "owncloud",
"token_count": 100
} | 802 |
import { computed, unref } from 'vue'
import { useAbility } from '../ability'
import { useCapabilityStore } from '../piniaStores'
import { SharingLinkType } from '@ownclouders/web-client/src/generated'
import { useGettext } from 'vue3-gettext'
import { ShareRole } from '@ownclouders/web-client/src/helpers'
export cons... | owncloud/web/packages/web-pkg/src/composables/links/useLinkTypes.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/links/useLinkTypes.ts",
"repo_id": "owncloud",
"token_count": 1306
} | 803 |
import { z } from 'zod'
const CustomTranslationSchema = z.object({
url: z.string()
})
export type CustomTranslation = z.infer<typeof CustomTranslationSchema>
const OAuth2ConfigSchema = z.object({
apiUrl: z.string().optional(),
authUrl: z.string().optional(),
clientId: z.string().optional(),
clientSecret: z... | owncloud/web/packages/web-pkg/src/composables/piniaStores/config/types.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/piniaStores/config/types.ts",
"repo_id": "owncloud",
"token_count": 1688
} | 804 |
import { useService } from '../service'
import { PreviewService } from '../../services/preview'
export const usePreviewService = (): PreviewService => {
return useService('$previewService')
}
| owncloud/web/packages/web-pkg/src/composables/previewService/usePreviewService.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/previewService/usePreviewService.ts",
"repo_id": "owncloud",
"token_count": 53
} | 805 |
export * from './useScrollTo'
| owncloud/web/packages/web-pkg/src/composables/scrollTo/index.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/scrollTo/index.ts",
"repo_id": "owncloud",
"token_count": 10
} | 806 |
import { ref, Ref, computed, unref, isRef, MaybeRef } from 'vue'
import { ReadOnlyRef } from '../../utils'
import { useRouteName, useRouter, useRouteQueryPersisted, QueryValue } from '../router'
import { SortConstants } from './constants'
import get from 'lodash-es/get'
export interface SortableItem {
type?: string
... | owncloud/web/packages/web-pkg/src/composables/sort/useSort.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/sort/useSort.ts",
"repo_id": "owncloud",
"token_count": 2179
} | 807 |
class CacheElement<T> {
public value: T
public expires: number
constructor(value: T, ttl: number) {
this.value = value
this.expires = ttl ? new Date().getTime() + ttl : 0
}
get expired(): boolean {
return this.expires > 0 && this.expires < new Date().getTime()
}
}
interface CacheOptions {
t... | owncloud/web/packages/web-pkg/src/helpers/cache/cache.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/helpers/cache/cache.ts",
"repo_id": "owncloud",
"token_count": 749
} | 808 |
export * from './conflictDialog'
export * from './conflictUtils'
export * from './transfer'
export * from './types'
| owncloud/web/packages/web-pkg/src/helpers/resource/conflictHandling/index.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/helpers/resource/conflictHandling/index.ts",
"repo_id": "owncloud",
"token_count": 37
} | 809 |
/**
* Takes an object from state and creates a copy of it with only the values (no watchers, etc.)
* Editing the copied object does not result in errors due to modifying the state.
* The copied object is still reactive.
* @param {Object} state Object in the state to be copied
* @return {Object} Copied object
*/
e... | owncloud/web/packages/web-pkg/src/helpers/store.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/helpers/store.ts",
"repo_id": "owncloud",
"token_count": 139
} | 810 |
import { RouteComponents } from './router'
import { RouteLocationNamedRaw, RouteRecordRaw } from 'vue-router'
import { $gettext, createLocation, isLocationActiveDirector } from './utils'
type trashTypes = 'files-trash-generic' | 'files-trash-overview'
export const createLocationTrash = (name: trashTypes, location = {... | owncloud/web/packages/web-pkg/src/router/trash.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/router/trash.ts",
"repo_id": "owncloud",
"token_count": 491
} | 811 |
export * from './types'
export * from './uppyService'
| owncloud/web/packages/web-pkg/src/services/uppy/index.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/services/uppy/index.ts",
"repo_id": "owncloud",
"token_count": 18
} | 812 |
import LoadingScreen from '../../../../src/components/AppTemplates/PartialViews/LoadingScreen.vue'
import { defaultPlugins, mount } from 'web-test-helpers'
describe('The external app loading screen component', () => {
test('displays a spinner and a paragraph', () => {
const wrapper = mount(LoadingScreen, {
... | owncloud/web/packages/web-pkg/tests/unit/components/AppTemplates/LoadingScreen.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/components/AppTemplates/LoadingScreen.spec.ts",
"repo_id": "owncloud",
"token_count": 188
} | 813 |
import { shallowMount } from 'web-test-helpers'
import Size from '../../../../src/components/FilesList/ResourceSize.vue'
describe('OcResourceSize', () => {
it('shows a question mark for non-numeric values', () => {
const wrapper = shallowMount(Size, {
props: {
size: 'asdf'
}
})
expe... | owncloud/web/packages/web-pkg/tests/unit/components/FilesList/ResourceSize.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/components/FilesList/ResourceSize.spec.ts",
"repo_id": "owncloud",
"token_count": 636
} | 814 |
import { mock } from 'vitest-mock-extended'
import _ from 'lodash'
import {
defaultPlugins,
mount,
shallowMount,
RouterLinkStub,
defaultComponentMocks,
RouteLocation
} from 'web-test-helpers'
import Pagination from '../../../src/components/Pagination.vue'
const filesPersonalRoute = { name: 'files-personal'... | owncloud/web/packages/web-pkg/tests/unit/components/Pagination.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/components/Pagination.spec.ts",
"repo_id": "owncloud",
"token_count": 884
} | 815 |
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`Details SideBar Panel > displays the details side panel 1`] = `
"<div data-v-c7ea2f9c="" id="oc-space-details-sidebar">
<div data-v-c7ea2f9c="" class="oc-space-details-sidebar-image oc-text-center">
<oc-icon-stub data-v-c7ea2f9c="" name="layo... | owncloud/web/packages/web-pkg/tests/unit/components/sidebar/Spaces/Details/__snapshots__/SpaceDetails.spec.ts.snap/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/components/sidebar/Spaces/Details/__snapshots__/SpaceDetails.spec.ts.snap",
"repo_id": "owncloud",
"token_count": 994
} | 816 |
import { useFileActionsRename } from '../../../../../src/composables/actions'
import {
useMessages,
useModals,
useResourcesStore
} from '../../../../../src/composables/piniaStores'
import { mock, mockDeep } from 'vitest-mock-extended'
import { Resource, SpaceResource } from '@ownclouders/web-client/src/helpers'
i... | owncloud/web/packages/web-pkg/tests/unit/composables/actions/files/useFileActionsRename.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/actions/files/useFileActionsRename.spec.ts",
"repo_id": "owncloud",
"token_count": 2621
} | 817 |
import { unref } from 'vue'
import { SpaceResource } from '@ownclouders/web-client/src'
import { useSpaceActionsShowMembers } from '../../../../../src/composables/actions'
import { getComposableWrapper } from 'web-test-helpers'
describe('showMembers', () => {
describe('isVisible property', () => {
it('should be ... | owncloud/web/packages/web-pkg/tests/unit/composables/actions/spaces/useSpaceActionsShowMembers.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/actions/spaces/useSpaceActionsShowMembers.spec.ts",
"repo_id": "owncloud",
"token_count": 421
} | 818 |
import { useLocalStorage, usePreferredDark } from '@vueuse/core'
import { useThemeStore, WebThemeConfigType } from '../../../../src/composables/piniaStores'
import { mockDeep } from 'vitest-mock-extended'
import { createPinia, setActivePinia } from 'pinia'
import { ref } from 'vue'
vi.mock('@vueuse/core', () => {
re... | owncloud/web/packages/web-pkg/tests/unit/composables/piniaStores/theme.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/piniaStores/theme.spec.ts",
"repo_id": "owncloud",
"token_count": 887
} | 819 |
import { canBeMoved } from '../../../src/helpers/permissions'
describe('permissions helper', () => {
describe('canBeMoved function', () => {
it.each([
{ isReceivedShare: false, isMounted: false, canBeDeleted: true, parentPath: '' },
{ isReceivedShare: false, isMounted: false, canBeDeleted: true, pare... | owncloud/web/packages/web-pkg/tests/unit/helpers/permissions.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/helpers/permissions.spec.ts",
"repo_id": "owncloud",
"token_count": 940
} | 820 |
import { LoadingService } from '../../../src/services/loadingService'
describe('LoadingService', () => {
beforeEach(() => {
vi.useFakeTimers()
})
afterEach(() => {
vi.useRealTimers()
})
it('adds a task and sets it inactive initially', () => {
const service = new LoadingService()
const actio... | owncloud/web/packages/web-pkg/tests/unit/services/loadingService.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/services/loadingService.spec.ts",
"repo_id": "owncloud",
"token_count": 737
} | 821 |
<template>
<oc-notifications :position="notificationPosition">
<oc-notification-message
v-for="item in limitedMessages"
:key="item.id"
:title="item.title"
:message="item.desc"
:status="item.status"
:timeout="item.timeout"
:error-log-content="item.errorLogContent"
@c... | owncloud/web/packages/web-runtime/src/components/MessageBar.vue/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/components/MessageBar.vue",
"repo_id": "owncloud",
"token_count": 422
} | 822 |
import { computed, unref } from 'vue'
import { useHead as _useHead } from '@vueuse/head'
import { getBackendVersion, getWebVersion } from 'web-runtime/src/container/versions'
import { useCapabilityStore, useThemeStore } from '@ownclouders/web-pkg'
import { storeToRefs } from 'pinia'
export const useHead = () => {
co... | owncloud/web/packages/web-runtime/src/composables/head/useHead.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/composables/head/useHead.ts",
"repo_id": "owncloud",
"token_count": 369
} | 823 |
//Please also make language adjustments in packages/web-pkg/src/components/TextEditor.vue
export const supportedLanguages = {
bg: 'български - Bulgarian',
cs: 'Čeština - Czech',
de: 'Deutsch - German',
en: 'English',
es: 'Español - Spanish',
fr: 'Français - French',
it: 'Italiano - Italian',
nl: 'Neder... | owncloud/web/packages/web-runtime/src/defaults/languages.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/defaults/languages.ts",
"repo_id": "owncloud",
"token_count": 201
} | 824 |
<template>
<div class="oc-width-1-1 oc-height-1-1">
<app-loading-spinner v-if="autoRedirect" />
<div v-else class="oc-height-viewport oc-flex oc-flex-column oc-flex-center oc-flex-middle">
<div class="oc-login-card">
<img class="oc-login-logo" :src="logoImg" alt="" :aria-hidden="true" />
... | owncloud/web/packages/web-runtime/src/pages/login.vue/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/pages/login.vue",
"repo_id": "owncloud",
"token_count": 947
} | 825 |
export default [
{
name: 'Personal',
icon: 'folder',
route: {
name: 'files-personal',
path: '/files/list/all'
},
active: true
},
{
name: 'Shares',
icon: 'share-forward',
route: {
name: 'files-shared-with-me',
path: '/files/list/shared-with-me'
},
act... | owncloud/web/packages/web-runtime/tests/__fixtures__/sidebarNavItems.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/tests/__fixtures__/sidebarNavItems.ts",
"repo_id": "owncloud",
"token_count": 236
} | 826 |
import SidebarToggle from '../../../../src/components/Topbar/SideBarToggle.vue'
import { eventBus } from '@ownclouders/web-pkg/src/services'
import { defaultPlugins, mount, defaultComponentMocks } from 'web-test-helpers'
const selectors = {
toggleSidebarBtn: '#files-toggle-sidebar'
}
describe('SidebarToggle compone... | owncloud/web/packages/web-runtime/tests/unit/components/Topbar/SidebarToggle.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/tests/unit/components/Topbar/SidebarToggle.spec.ts",
"repo_id": "owncloud",
"token_count": 452
} | 827 |
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`resolvePublicLink > password required form > should display if password is required 1`] = `
"<form>
<div class="oc-card-header">
<h2><span>This resource is password-protected</span></h2>
</div>
<div class="oc-card-body">
<oc-text-inpu... | owncloud/web/packages/web-runtime/tests/unit/pages/__snapshots__/resolvePublicLink.spec.ts.snap/0 | {
"file_path": "owncloud/web/packages/web-runtime/tests/unit/pages/__snapshots__/resolvePublicLink.spec.ts.snap",
"repo_id": "owncloud",
"token_count": 347
} | 828 |
import DesignSystem from '../../design-system'
import { createGettext } from 'vue3-gettext'
import { h } from 'vue'
import { abilitiesPlugin } from '@casl/vue'
import { createMongoAbility } from '@casl/ability'
import { AbilityRule } from '../../web-client/src/helpers/resource/types'
import { PiniaMockOptions, createMo... | owncloud/web/packages/web-test-helpers/src/defaultPlugins.ts/0 | {
"file_path": "owncloud/web/packages/web-test-helpers/src/defaultPlugins.ts",
"repo_id": "owncloud",
"token_count": 856
} | 829 |
import { pbkdf2 } from '@noble/hashes/pbkdf2'
import { sha512 } from '@noble/hashes/sha512'
export const pbkdf2Sync = (password, salt, c, dkLen) => {
return Buffer.from(pbkdf2(sha512, password, salt, { c, dkLen }))
}
| owncloud/web/polyfills/crypto.js/0 | {
"file_path": "owncloud/web/polyfills/crypto.js",
"repo_id": "owncloud",
"token_count": 95
} | 830 |
/**
*
* waits till the element is enabled, at that stage it is "clickable"
* this function seems to wait longer than waitForElementVisible() and waitForElementNotVisible() for animated elements
* for animated elements waitForElementVisible and waitForElementNotVisible already finish before the animation is finished... | owncloud/web/tests/acceptance/customCommands/waitForElementEnabled.js/0 | {
"file_path": "owncloud/web/tests/acceptance/customCommands/waitForElementEnabled.js",
"repo_id": "owncloud",
"token_count": 382
} | 831 |
# Most of the tests in this file is skipped in OCIS most of the tests set minimum characters for search
# while it can be configured in OCIS too but not in the same manner as oc10
# the skipped tests are listed in issue https://github.com/owncloud/web/issues/7264 for further implementation in playwright
Feature: Autoc... | owncloud/web/tests/acceptance/features/webUISharingAutocompletion/shareAutocompletion.feature/0 | {
"file_path": "owncloud/web/tests/acceptance/features/webUISharingAutocompletion/shareAutocompletion.feature",
"repo_id": "owncloud",
"token_count": 1198
} | 832 |
@files_trashbin-app-required @ocis-reva-issue-112
Feature: Restore deleted files/folders
As a user
I would like to restore files/folders
So that I can recover accidentally deleted files/folders in ownCloud
Background:
Given user "Alice" has been created with default attributes and without skeleton files in... | owncloud/web/tests/acceptance/features/webUITrashbinRestore/trashbinRestore.feature/0 | {
"file_path": "owncloud/web/tests/acceptance/features/webUITrashbinRestore/trashbinRestore.feature",
"repo_id": "owncloud",
"token_count": 3460
} | 833 |
const httpHelper = require('../helpers/httpHelper')
const convert = require('xml-js')
const _ = require('lodash/object')
const { normalize } = require('../helpers/path')
/**
*
* @param {string} userId
* @param {string} element
*/
exports.createDavPath = function (userId, element) {
const replaceEncoded = encodeU... | owncloud/web/tests/acceptance/helpers/webdavHelper.js/0 | {
"file_path": "owncloud/web/tests/acceptance/helpers/webdavHelper.js",
"repo_id": "owncloud",
"token_count": 869
} | 834 |
const { join } = require('../helpers/path')
module.exports = {
url: function () {
return join(this.api.launchUrl, '/account/')
},
commands: {
/**
* like build-in navigate() but also waits for the account display element
* @returns {Promise}
*/
navigateAndWaitTillLoaded: function () {
... | owncloud/web/tests/acceptance/pageObjects/accountPage.js/0 | {
"file_path": "owncloud/web/tests/acceptance/pageObjects/accountPage.js",
"repo_id": "owncloud",
"token_count": 322
} | 835 |
const { join } = require('../helpers/path')
module.exports = {
url: function () {
return join(this.api.launchUrl, '/files/trash/')
},
commands: {
/**
* like build-in navigate() but also waits till for the progressbar to appear and disappear
* @returns {*}
*/
navigateAndWaitTillLoaded: ... | owncloud/web/tests/acceptance/pageObjects/trashbinPage.js/0 | {
"file_path": "owncloud/web/tests/acceptance/pageObjects/trashbinPage.js",
"repo_id": "owncloud",
"token_count": 831
} | 836 |
const { client } = require('nightwatch-api')
const { When, Then } = require('@cucumber/cucumber')
const assert = require('assert')
require('url-search-params-polyfill')
const userSettings = require('../helpers/userSettings')
const sharingHelper = require('../helpers/sharingHelper')
const { SHARE_STATE } = require('../h... | owncloud/web/tests/acceptance/stepDefinitions/sharingContext.js/0 | {
"file_path": "owncloud/web/tests/acceptance/stepDefinitions/sharingContext.js",
"repo_id": "owncloud",
"token_count": 10204
} | 837 |
// borrowed from https://github.com/orieken/playwright-cucumber-starter
// thanks @orieken if you will ever read this
function TypeScriptSnippetSyntax(snippetInterface) {
this.snippetInterface = snippetInterface
}
function addParameters(allParameterNames) {
let prefix = ''
if (allParameterNames.length > 0) {
... | owncloud/web/tests/e2e/cucumber/environment/snippets-syntax.js/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/environment/snippets-syntax.js",
"repo_id": "owncloud",
"token_count": 602
} | 838 |
Feature: share
Background:
Given "Admin" creates following users using API
| id |
| Alice |
| Brian |
And "Brian" logs in
Scenario: folder
# disabling auto accepting to check accepting share
Given "Brian" disables auto-accepting using API
And "Alice" logs in
And "Alice... | owncloud/web/tests/e2e/cucumber/features/shares/share.feature/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/features/shares/share.feature",
"repo_id": "owncloud",
"token_count": 3969
} | 839 |
Feature: Upload
As a user
I want to upload resources
So that I can store them in owncloud
Background:
Given "Admin" logs in
And "Admin" creates following user using API
| id |
| Alice |
And "Alice" logs in
And "Admin" opens the "admin-settings" app
And "Admin" navigates to th... | owncloud/web/tests/e2e/cucumber/features/smoke/upload.feature/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/features/smoke/upload.feature",
"repo_id": "owncloud",
"token_count": 971
} | 840 |
import { DataTable, Then, When } from '@cucumber/cucumber'
import { expect } from '@playwright/test'
import { World } from '../../environment'
import { objects } from '../../../support'
When(
'{string} creates a public link creates a public link of following resource using the sidebar panel',
async function (this:... | owncloud/web/tests/e2e/cucumber/steps/ui/links.ts/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/steps/ui/links.ts",
"repo_id": "owncloud",
"token_count": 2818
} | 841 |
export {
uploadFileInPersonalSpace,
createFolderInsideSpaceBySpaceName,
createFolderInsidePersonalSpace,
getIdOfFileInsideSpace,
uploadFileInsideSpaceBySpaceName,
addMembersToTheProjectSpace,
addTagToResource
} from './spaces'
| owncloud/web/tests/e2e/support/api/davSpaces/index.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/api/davSpaces/index.ts",
"repo_id": "owncloud",
"token_count": 71
} | 842 |
import join from 'join-path'
import { checkResponseStatus, request } from '../http'
import { User } from '../../types'
import { shareRoles } from '../../objects/app-files/share/collaborator'
export const shareTypes: Readonly<{
user: string
group: string
public: string
federated: string
space: string
}> = {
... | owncloud/web/tests/e2e/support/api/share/share.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/api/share/share.ts",
"repo_id": "owncloud",
"token_count": 418
} | 843 |
import { basename } from 'path'
import { expect } from '@playwright/test'
export const uploadLogo = async (path, page): Promise<void> => {
await page.click('#logo-context-btn')
const logoInput = await page.locator('#logo-upload-input')
await logoInput.setInputFiles(path)
await page.locator('.oc-notification-... | owncloud/web/tests/e2e/support/objects/app-admin-settings/general/actions.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/objects/app-admin-settings/general/actions.ts",
"repo_id": "owncloud",
"token_count": 340
} | 844 |
import { Page } from '@playwright/test'
import * as po from './actions'
import { LinksEnvironment } from '../../../environment'
export class Link {
#page: Page
#linksEnvironment: LinksEnvironment
constructor({ page }: { page: Page }) {
this.#page = page
this.#linksEnvironment = new LinksEnvironment()
... | owncloud/web/tests/e2e/support/objects/app-files/link/index.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/objects/app-files/link/index.ts",
"repo_id": "owncloud",
"token_count": 1168
} | 845 |
import { errors, Page } from '@playwright/test'
import util from 'util'
const acceptedShareItem =
'//*[@data-test-resource-name="%s"]/ancestor::tr//span[@data-test-user-name="%s"]'
const itemSelector = '.files-table [data-test-resource-name="%s"]'
const syncEnabled =
'//*[@data-test-resource-name="%s"]//ancestor::... | owncloud/web/tests/e2e/support/objects/app-files/share/utils.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/objects/app-files/share/utils.ts",
"repo_id": "owncloud",
"token_count": 519
} | 846 |
import { Group } from '../types'
export const dummyGroupStore = new Map<string, Group>([
[
'security',
{
id: 'security',
displayName: 'security department'
}
],
[
'sales',
{
id: 'sales',
displayName: 'sales department'
}
],
[
'finance',
{
id: 'fin... | owncloud/web/tests/e2e/support/store/group.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/store/group.ts",
"repo_id": "owncloud",
"token_count": 191
} | 847 |
import { defineConfig } from 'vitest/config'
import vue from '@vitejs/plugin-vue'
import path from 'path'
import { compilerOptions } from '../../../vite.config.common'
const root = path.resolve(__dirname, '../../../')
export default defineConfig({
plugins: [
vue({ template: { compilerOptions } }),
{
n... | owncloud/web/tests/unit/config/vitest.config.ts/0 | {
"file_path": "owncloud/web/tests/unit/config/vitest.config.ts",
"repo_id": "owncloud",
"token_count": 625
} | 848 |
<?php
//全局session_start
session_start();
//全局居设置时区
date_default_timezone_set('Asia/Shanghai');
//全局设置默认字符
header('Content-type:text/html;charset=utf-8');
//定义数据库连接参数
define('DBHOST', 'localhost');//将localhost修改为数据库服务器的地址
define('DBUSER', 'root');//将root修改为连接mysql的用户名
define('DBPW', 'root');//将root修改为连接mysql的密码
define(... | zhuifengshaonianhanlu/pikachu/pkxss/inc/config.inc.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/pkxss/inc/config.inc.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 311
} | 849 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.