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="M15 3c.552 0 1 .448 1 1v2h5c.552 0 1 .448 1 1v13c0 .552-.448 1-1 1H3c-.552 0-1-.448-1-1V7c0-.552.448-1 1-1h5V4c0-.552.448-1 1-1h6zm1 5H8v11h8V8zM4 8v11h2V8H4zm10-3h-4v1h4V5zm4 3v11h2V8h-2z... | owncloud/web/packages/design-system/src/assets/icons/suitcase-line.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/suitcase-line.svg",
"repo_id": "owncloud",
"token_count": 221
} | 780 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M4 5v14h16V5H4zM3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm12 4l3.5 3-3.5 3v-2h-4V9h4V7zM9 17l-3.5-3L9 11v2h4v2H9v2z"/>
</g>
</svg>
| owncloud/web/packages/design-system/src/assets/icons/swap-box-line.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/swap-box-line.svg",
"repo_id": "owncloud",
"token_count": 198
} | 781 |
<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="M14.515 5l2.606-2.607a1 1 0 0 1 1.415 0l4.242 4.243a1 1 0 0 1 0 1.414L19 11.828V21a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9.172L1.222 8.05a1 1 0 0 1 0-1.414l4.242-4.243a1 1 0 0... | owncloud/web/packages/design-system/src/assets/icons/t-shirt-line.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/t-shirt-line.svg",
"repo_id": "owncloud",
"token_count": 270
} | 782 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M22 12v9a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1H5v1a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-9l2.48-5.788A2 2 0 0 1 6.32 5H9V3h6v2h2.681a2 2 0 0 1 1.838 1.212L22 12zM4.176 12h15.648l-2.143-5H6.32l-2.143 ... | owncloud/web/packages/design-system/src/assets/icons/taxi-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/taxi-fill.svg",
"repo_id": "owncloud",
"token_count": 279
} | 783 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M20 10H4v9h16v-9zM3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm2 3v2h2V6H5zm4 0v2h2V6H9zm-4 5h3v5H5v-5z"/>
</g>
</svg>
| owncloud/web/packages/design-system/src/assets/icons/terminal-window-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/terminal-window-fill.svg",
"repo_id": "owncloud",
"token_count": 187
} | 784 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M8 7a5 5 0 1 0 0 10h8a5 5 0 0 0 0-10H8zm0-2h8a7 7 0 0 1 0 14H8A7 7 0 0 1 8 5zm0 10a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"/>
</g>
</svg>
| owncloud/web/packages/design-system/src/assets/icons/toggle-line.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/toggle-line.svg",
"repo_id": "owncloud",
"token_count": 158
} | 785 |
<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="M8.95 8.537A7.5 7.5 0 1 1 7.537 9.95L4.662 7.075 2.186 9.55.772 8.136l6.364-6.364L8.55 3.186 6.075 5.661l2.876 2.876zM13.5 20a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11z"/>
... | owncloud/web/packages/design-system/src/assets/icons/travesti-line.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/travesti-line.svg",
"repo_id": "owncloud",
"token_count": 197
} | 786 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M4.3 3H21v11.7l-4.7 4.7h-3.9l-2.5 2.4H7v-2.4H3V6.2L4.3 3zM5 17.4h4v2.4h.095l2.5-2.4h3.877L19 13.872V5H5v12.4zM15 8h2v4.7h-2V8zm0 0h2v4.7h-2V8zm-5 0h2v4.7h-2V8z"/>
</g>
</svg>
| owncloud/web/packages/design-system/src/assets/icons/twitch-line.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/twitch-line.svg",
"repo_id": "owncloud",
"token_count": 227
} | 787 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M4 19h16v-7h2v8a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-8h2v7zM14 9v6h-4V9H5l7-7 7 7h-5z"/>
</g>
</svg>
| owncloud/web/packages/design-system/src/assets/icons/upload-2-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/upload-2-fill.svg",
"repo_id": "owncloud",
"token_count": 151
} | 788 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M7.39 16.539a8 8 0 1 1 9.221 0l2.083 4.76a.5.5 0 0 1-.459.701H5.765a.5.5 0 0 1-.459-.7l2.083-4.761zm.729-5.569a4.002 4.002 0 0 0 7.762 0l-1.94-.485a2 2 0 0 1-3.882 0l-1.94.485z"/>
</g>... | owncloud/web/packages/design-system/src/assets/icons/user-5-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/user-5-fill.svg",
"repo_id": "owncloud",
"token_count": 199
} | 789 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M14 14.252V22H4a8 8 0 0 1 10-7.748zM12 13c-3.315 0-6-2.685-6-6s2.685-6 6-6 6 2.685 6 6-2.685 6-6 6zm7.418 4h3.586v2h-3.586l1.829 1.828-1.414 1.415L15.59 18l4.243-4.243 1.414 1.415L19.418 1... | owncloud/web/packages/design-system/src/assets/icons/user-received-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/user-received-fill.svg",
"repo_id": "owncloud",
"token_count": 209
} | 790 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M1 22a8 8 0 1 1 16 0H1zm8-9c-3.315 0-6-2.685-6-6s2.685-6 6-6 6 2.685 6 6-2.685 6-6 6zm9.246-9.816A9.97 9.97 0 0 1 19 7a9.97 9.97 0 0 1-.754 3.816l-1.677-1.22A7.99 7.99 0 0 0 17 7a7.99 7.99... | owncloud/web/packages/design-system/src/assets/icons/user-voice-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/user-voice-fill.svg",
"repo_id": "owncloud",
"token_count": 319
} | 791 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M5 7h2v10H5V7zm-4 3h2v4H1v-4zm8-8h2v18H9V2zm4 2h2v18h-2V4zm4 3h2v10h-2V7zm4 3h2v4h-2v-4z"/>
</g>
</svg>
| owncloud/web/packages/design-system/src/assets/icons/voiceprint-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/voiceprint-fill.svg",
"repo_id": "owncloud",
"token_count": 167
} | 792 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M22 8h-9a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h9v4a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v4zm-7 3h3v2h-3v-2z"/>
</g>
</svg>
| owncloud/web/packages/design-system/src/assets/icons/wallet-2-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/wallet-2-fill.svg",
"repo_id": "owncloud",
"token_count": 177
} | 793 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M10.5 17H4v-2h6.5a3.5 3.5 0 1 1-3.278 4.73l1.873-.703A1.5 1.5 0 1 0 10.5 17zM5 11h13.5a3.5 3.5 0 1 1-3.278 4.73l1.873-.703A1.5 1.5 0 1 0 18.5 13H5a3 3 0 0 1 0-6h8.5a1.5 1.5 0 1 0-1.405-2.0... | owncloud/web/packages/design-system/src/assets/icons/windy-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/windy-fill.svg",
"repo_id": "owncloud",
"token_count": 265
} | 794 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M12.344 17.963l-1.688 1.074-2.131-3.35c-.44 1.402-1.172 2.665-2.139 3.825-.402.483-.82.918-1.301 1.375-.155.147-.775.717-.878.82l-1.414-1.414c.139-.139.787-.735.915-.856.43-.408.795-.79 1.... | owncloud/web/packages/design-system/src/assets/icons/zhihu-line.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/zhihu-line.svg",
"repo_id": "owncloud",
"token_count": 392
} | 795 |
<template>
<oc-avatar-item
:width="width"
:icon-size="iconSize"
icon="global"
icon-fill-type="line"
icon-color="#D78841"
:name="name"
:accessible-label="accessibleLabel"
/>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import OcAvatarItem from '../OcAvatarItem/OcA... | owncloud/web/packages/design-system/src/components/OcAvatarGuest/OcAvatarGuest.vue/0 | {
"file_path": "owncloud/web/packages/design-system/src/components/OcAvatarGuest/OcAvatarGuest.vue",
"repo_id": "owncloud",
"token_count": 552
} | 796 |
import Datepicker from './OcDatepicker.vue'
import { mount } from 'web-test-helpers'
describe('OcDatePicker', () => {
it('renders default scoped slot', () => {
const slotDefault = "<button id='default-slot'>Open datepicker</button>"
const wrapper = mount(Datepicker, {
slots: { default: slotDefault },
... | owncloud/web/packages/design-system/src/components/OcDatepicker/OcDatepicker.spec.ts/0 | {
"file_path": "owncloud/web/packages/design-system/src/components/OcDatepicker/OcDatepicker.spec.ts",
"repo_id": "owncloud",
"token_count": 188
} | 797 |
<template>
<component
:is="type"
:class="[
{ 'oc-button-reset': type === 'button' },
'oc-icon',
sizeClass(size),
variationClass(variation)
]"
>
<inline-svg
:src="nameWithFillType"
:transform-source="transformSvgElement"
:aria-hidden="accessibleLabel === '' ?... | owncloud/web/packages/design-system/src/components/OcIcon/OcIcon.vue/0 | {
"file_path": "owncloud/web/packages/design-system/src/components/OcIcon/OcIcon.vue",
"repo_id": "owncloud",
"token_count": 4571
} | 798 |
<template>
<div class="oc-notification oc-mb-s" :class="classes">
<slot />
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
/**
* Notifications are used to inform users about errors, warnings and as confirmations for their actions. They will automatically disappear after a certain ... | owncloud/web/packages/design-system/src/components/OcNotifications/OcNotifications.vue/0 | {
"file_path": "owncloud/web/packages/design-system/src/components/OcNotifications/OcNotifications.vue",
"repo_id": "owncloud",
"token_count": 2256
} | 799 |
import { defaultPlugins, mount } from 'web-test-helpers'
import OcSelect from './OcSelect.vue'
const selectors = {
ocSelect: '.oc-select',
selectedOptions: '.vs__selected-options .vs__selected',
deselectBtn: '.vs__selected-options .vs__deselect',
deselectLockIcon: '.vs__deselect-lock',
clearBtn: '.vs__clear'... | owncloud/web/packages/design-system/src/components/OcSelect/OcSelect.spec.ts/0 | {
"file_path": "owncloud/web/packages/design-system/src/components/OcSelect/OcSelect.spec.ts",
"repo_id": "owncloud",
"token_count": 1522
} | 800 |
<template>
<div :class="$attrs.class">
<label class="oc-label" :for="id" v-text="label" />
<div class="oc-position-relative">
<oc-icon
v-if="readOnly"
name="lock"
size="small"
class="oc-mt-s oc-ml-s oc-position-absolute"
/>
<component
:is="inputCompone... | owncloud/web/packages/design-system/src/components/OcTextInput/OcTextInput.vue/0 | {
"file_path": "owncloud/web/packages/design-system/src/components/OcTextInput/OcTextInput.vue",
"repo_id": "owncloud",
"token_count": 5740
} | 801 |
<template>
<tfoot>
<slot />
</tfoot>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
name: 'OcTfoot',
status: 'ready',
release: '2.1.0'
})
</script>
| owncloud/web/packages/design-system/src/components/_OcTableFooter/_OcTableFooter.vue/0 | {
"file_path": "owncloud/web/packages/design-system/src/components/_OcTableFooter/_OcTableFooter.vue",
"repo_id": "owncloud",
"token_count": 85
} | 802 |
import { createApp, defineComponent } from 'vue'
import DesignSystem from './index'
const options = {
tokens: {
breakpoints: {
'xsmall-max': '50px'
},
colorPalette: {
'background-default': '#ef23ab',
'swatch-brand-default': '#00FFFF'
},
fontSizes: {
default: '1.358rem'
... | owncloud/web/packages/design-system/src/index.spec.ts/0 | {
"file_path": "owncloud/web/packages/design-system/src/index.spec.ts",
"repo_id": "owncloud",
"token_count": 694
} | 803 |
$directives: ("m": "margin", "p": "padding");
@each $directiveKey, $directiveValue in $directives {
.oc-#{$directiveKey} {
#{$directiveValue}: $oc-space-medium !important;
@each $directionKey, $directionValues in $directions {
&#{$directionKey} {
@each $direction in $directionValues {
... | owncloud/web/packages/design-system/src/styles/theme/oc-spacing.scss/0 | {
"file_path": "owncloud/web/packages/design-system/src/styles/theme/oc-spacing.scss",
"repo_id": "owncloud",
"token_count": 427
} | 804 |
const sizeClassMappings = {
xxxsmall: 'xxxs',
xxsmall: 'xxs',
xsmall: 'xs',
small: 's',
medium: 'm',
large: 'l',
xlarge: 'xl',
xxlarge: 'xxl',
xxxlarge: 'xxxl',
remove: 'rm'
}
export function getSizeClass(size) {
return sizeClassMappings[size]
}
| owncloud/web/packages/design-system/src/utils/sizeClasses.ts/0 | {
"file_path": "owncloud/web/packages/design-system/src/utils/sizeClasses.ts",
"repo_id": "owncloud",
"token_count": 116
} | 805 |
[main]
host = https://www.transifex.com
[o:owncloud-org:p:owncloud-web:r:admin-settings]
file_filter = locale/<lang>/LC_MESSAGES/app.po
minimum_perc = 0
source_file = template.pot
source_lang = en
type = PO
| owncloud/web/packages/web-app-admin-settings/l10n/.tx/config/0 | {
"file_path": "owncloud/web/packages/web-app-admin-settings/l10n/.tx/config",
"repo_id": "owncloud",
"token_count": 85
} | 806 |
<template>
<div>
<oc-list id="oc-spaces-actions-sidebar" class-name="oc-mt-s">
<action-menu-item
v-for="(action, index) in actions"
:key="`action-${index}`"
class="oc-rounded"
:action="action"
:action-options="actionOptions"
/>
</oc-list>
</div>
</template... | owncloud/web/packages/web-app-admin-settings/src/components/Spaces/SideBar/ActionsPanel.vue/0 | {
"file_path": "owncloud/web/packages/web-app-admin-settings/src/components/Spaces/SideBar/ActionsPanel.vue",
"repo_id": "owncloud",
"token_count": 804
} | 807 |
import { supportedLogoMimeTypes } from '../../../defaults'
import { computed, VNodeRef, unref } from 'vue'
import { Action, useMessages } from '@ownclouders/web-pkg'
import { useAbility, useClientService, useRouter } from '@ownclouders/web-pkg'
import { useGettext } from 'vue3-gettext'
export const useGeneralActionsUp... | owncloud/web/packages/web-app-admin-settings/src/composables/actions/general/useGeneralActionsUploadLogo.ts/0 | {
"file_path": "owncloud/web/packages/web-app-admin-settings/src/composables/actions/general/useGeneralActionsUploadLogo.ts",
"repo_id": "owncloud",
"token_count": 766
} | 808 |
import { onBeforeUnmount, onMounted, unref, Ref } from 'vue'
import { eventBus } from '@ownclouders/web-pkg'
import { KeyboardActions } from '@ownclouders/web-pkg'
import { findIndex, find } from 'lodash-es'
import { Resource } from '@ownclouders/web-client'
import { Item } from '@ownclouders/web-client/src/helpers'
e... | owncloud/web/packages/web-app-admin-settings/src/composables/keyboardActions/useKeyboardTableMouseActions.ts/0 | {
"file_path": "owncloud/web/packages/web-app-admin-settings/src/composables/keyboardActions/useKeyboardTableMouseActions.ts",
"repo_id": "owncloud",
"token_count": 1070
} | 809 |
import DetailsPanel from '../../../../../src/components/Groups/SideBar/DetailsPanel.vue'
import { defaultPlugins, mount } from 'web-test-helpers'
describe('DetailsPanel', () => {
describe('computed method "group"', () => {
it('should be set if only one group is given', () => {
const { wrapper } = getWrappe... | owncloud/web/packages/web-app-admin-settings/tests/unit/components/Groups/SideBar/DetailsPanel.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-app-admin-settings/tests/unit/components/Groups/SideBar/DetailsPanel.spec.ts",
"repo_id": "owncloud",
"token_count": 1071
} | 810 |
import LoginModal from '../../../../src/components/Users/LoginModal.vue'
import {
defaultComponentMocks,
defaultPlugins,
mockAxiosResolve,
shallowMount
} from 'web-test-helpers'
import { mock } from 'vitest-mock-extended'
import { User } from '@ownclouders/web-client/src/generated'
import { Modal, useMessages }... | owncloud/web/packages/web-app-admin-settings/tests/unit/components/Users/LoginModal.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-app-admin-settings/tests/unit/components/Users/LoginModal.spec.ts",
"repo_id": "owncloud",
"token_count": 1327
} | 811 |
import { useUserActionsEdit } from '../../../../../src/composables/actions/users/useUserActionsEdit'
import { mock } from 'vitest-mock-extended'
import { unref } from 'vue'
import { User } from '@ownclouders/web-client/src/generated'
import { getComposableWrapper } from 'web-test-helpers'
describe('useUserActionsEdit'... | owncloud/web/packages/web-app-admin-settings/tests/unit/composables/actions/users/useUserActionsEdit.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-app-admin-settings/tests/unit/composables/actions/users/useUserActionsEdit.spec.ts",
"repo_id": "owncloud",
"token_count": 403
} | 812 |
import { Resource } from '@ownclouders/web-client/src'
import { AppWrapperRoute, defineWebApplication, useUserStore } from '@ownclouders/web-pkg'
import translations from '../l10n/translations.json'
import App from './App.vue'
import { useGettext } from 'vue3-gettext'
const applicationId = 'draw-io'
export default de... | owncloud/web/packages/web-app-draw-io/src/index.ts/0 | {
"file_path": "owncloud/web/packages/web-app-draw-io/src/index.ts",
"repo_id": "owncloud",
"token_count": 799
} | 813 |
[main]
host = https://www.transifex.com
[o:owncloud-org:p:owncloud-web:r:files]
file_filter = locale/<lang>/LC_MESSAGES/app.po
minimum_perc = 0
source_file = template.pot
source_lang = en
type = PO
| owncloud/web/packages/web-app-files/l10n/.tx/config/0 | {
"file_path": "owncloud/web/packages/web-app-files/l10n/.tx/config",
"repo_id": "owncloud",
"token_count": 83
} | 814 |
<template>
<oc-text-input
:model-value="password"
:label="$gettext('Password')"
type="password"
:password-policy="inputPasswordPolicy"
:generate-password-method="inputGeneratePasswordMethod"
:fix-message-line="true"
:placeholder="link.hasPassword ? '●●●●●●●●' : null"
:error-message="er... | owncloud/web/packages/web-app-files/src/components/Modals/SetLinkPasswordModal.vue/0 | {
"file_path": "owncloud/web/packages/web-app-files/src/components/Modals/SetLinkPasswordModal.vue",
"repo_id": "owncloud",
"token_count": 1080
} | 815 |
<template>
<span v-if="selectedRole" class="oc-flex oc-flex-middle">
<span v-if="availableRoles.length === 1">
<oc-icon v-if="showIcon" :name="selectedRole.icon" class="oc-mr-s" />
<span v-text="inviteLabel" />
</span>
<div v-else v-oc-tooltip="dropButtonTooltip">
<oc-button
:id=... | owncloud/web/packages/web-app-files/src/components/SideBar/Shares/Collaborators/RoleDropdown.vue/0 | {
"file_path": "owncloud/web/packages/web-app-files/src/components/SideBar/Shares/Collaborators/RoleDropdown.vue",
"repo_id": "owncloud",
"token_count": 3869
} | 816 |
import { computed, unref, VNodeRef } from 'vue'
import { SpaceResource } from '@ownclouders/web-client/src'
import { Drive } from '@ownclouders/web-client/src/generated'
import {
useClientService,
useLoadingService,
usePreviewService,
useUserStore,
useMessages,
useSpacesStore
} from '@ownclouders/web-pkg'
i... | owncloud/web/packages/web-app-files/src/composables/actions/spaces/useSpaceActionsUploadImage.ts/0 | {
"file_path": "owncloud/web/packages/web-app-files/src/composables/actions/spaces/useSpaceActionsUploadImage.ts",
"repo_id": "owncloud",
"token_count": 1749
} | 817 |
function _chunkify(t) {
// Adapted from http://my.opera.com/GreyWyvern/blog/show.dml/1671288
const tz = []
let x = 0
let y = -1
let n: number | boolean = 0
let c
while (x < t.length) {
c = t.charAt(x)
// only include the dot in strings
const m = (!n && c === '.') || (c >= '0' && c <= '9')
... | owncloud/web/packages/web-app-files/src/helpers/textUtils.ts/0 | {
"file_path": "owncloud/web/packages/web-app-files/src/helpers/textUtils.ts",
"repo_id": "owncloud",
"token_count": 640
} | 818 |
import { FolderLoader, FolderLoaderTask, TaskContext } from '../folder'
import { Router } from 'vue-router'
import { useTask } from 'vue-concurrency'
import { isLocationPublicActive, isLocationSpacesActive } from '@ownclouders/web-pkg'
import {
isPersonalSpaceResource,
isPublicSpaceResource,
isShareSpaceResource,... | owncloud/web/packages/web-app-files/src/services/folder/loaderSpace.ts/0 | {
"file_path": "owncloud/web/packages/web-app-files/src/services/folder/loaderSpace.ts",
"repo_id": "owncloud",
"token_count": 1375
} | 819 |
import { useBreadcrumbsFromPath } from '@ownclouders/web-pkg'
export const useBreadcrumbsFromPathMock = (
options: Partial<ReturnType<typeof useBreadcrumbsFromPath>> = {}
): ReturnType<typeof useBreadcrumbsFromPath> => {
return {
breadcrumbsFromPath: vi.fn(() => []),
concatBreadcrumbs: vi.fn((...args) => a... | owncloud/web/packages/web-app-files/tests/mocks/useBreadcrumbsFromPathMock.ts/0 | {
"file_path": "owncloud/web/packages/web-app-files/tests/mocks/useBreadcrumbsFromPathMock.ts",
"repo_id": "owncloud",
"token_count": 129
} | 820 |
import { ActionExtension, useEmbedMode } from '@ownclouders/web-pkg'
import QuickActions from '../../../../src/components/FilesList/QuickActions.vue'
import { defaultComponentMocks, defaultPlugins, shallowMount } from 'web-test-helpers'
import { useExtensionRegistry } from '@ownclouders/web-pkg'
import { mock } from 'v... | owncloud/web/packages/web-app-files/tests/unit/components/FilesList/QuickActions.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-app-files/tests/unit/components/FilesList/QuickActions.spec.ts",
"repo_id": "owncloud",
"token_count": 1314
} | 821 |
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`Collaborator ListItem component > share inheritance indicators > show when sharedParentRoute is given 1`] = `
"<div data-v-ccf14be2="" data-testid="collaborator-user-item-einstein" class="files-collaborators-collaborator oc-py-xs">
<div data-v-cc... | owncloud/web/packages/web-app-files/tests/unit/components/SideBar/Shares/Collaborators/__snapshots__/ListItem.spec.ts.snap/0 | {
"file_path": "owncloud/web/packages/web-app-files/tests/unit/components/SideBar/Shares/Collaborators/__snapshots__/ListItem.spec.ts.snap",
"repo_id": "owncloud",
"token_count": 1090
} | 822 |
import { mock, mockDeep } from 'vitest-mock-extended'
import { Language } from 'vue3-gettext'
import { ResourceConflict } from 'web-app-files/src/helpers/resource'
import { ResolveStrategy, UppyResource, useResourcesStore } from '@ownclouders/web-pkg'
import { Resource } from '@ownclouders/web-client/src/helpers'
impor... | owncloud/web/packages/web-app-files/tests/unit/helpers/resource/actions/upload.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-app-files/tests/unit/helpers/resource/actions/upload.spec.ts",
"repo_id": "owncloud",
"token_count": 1823
} | 823 |
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`Projects view > different files view states > lists all available project spaces 1`] = `
"<div class="oc-flex oc-width-1-1">
<div data-v-39c970be="" class="files-view-wrapper oc-width-expand">
<div data-v-39c970be="" id="files-view">
<a... | owncloud/web/packages/web-app-files/tests/unit/views/spaces/__snapshots__/Projects.spec.ts.snap/0 | {
"file_path": "owncloud/web/packages/web-app-files/tests/unit/views/spaces/__snapshots__/Projects.spec.ts.snap",
"repo_id": "owncloud",
"token_count": 682
} | 824 |
<template>
<div class="sciencemesh">
<div class="oc-flex oc-flex-column sciencemesh-wrapper">
<div class="oc-flex sciencemesh-top">
<div id="sciencemesh-invite" class="oc-width-1-2">
<outgoing-invitations />
</div>
<div id="sciencemesh-accept-invites" class="oc-width-1-2">
... | owncloud/web/packages/web-app-ocm/src/views/App.vue/0 | {
"file_path": "owncloud/web/packages/web-app-ocm/src/views/App.vue",
"repo_id": "owncloud",
"token_count": 1901
} | 825 |
<template>
<video
ref="video"
:key="`media-video-${file.id}`"
controls
preload="preload"
:autoplay="isAutoPlayEnabled"
>
<source :src="file.url" :type="file.mimeType" />
</video>
</template>
<script lang="ts">
import { defineComponent, onBeforeUnmount, onMounted, PropType, ref } from 'vue'... | owncloud/web/packages/web-app-preview/src/components/Sources/MediaVideo.vue/0 | {
"file_path": "owncloud/web/packages/web-app-preview/src/components/Sources/MediaVideo.vue",
"repo_id": "owncloud",
"token_count": 467
} | 826 |
import List from '../../../src/views/List.vue'
import { defaultComponentMocks, mount } from 'web-test-helpers'
import { useAvailableProviders } from '../../../src/composables'
import { ref } from 'vue'
import { SearchProvider, queryItemAsString } from '@ownclouders/web-pkg'
import { mock } from 'vitest-mock-extended'
... | owncloud/web/packages/web-app-search/tests/unit/views/List.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-app-search/tests/unit/views/List.spec.ts",
"repo_id": "owncloud",
"token_count": 523
} | 827 |
[main]
host = https://www.transifex.com
[o:owncloud-org:p:owncloud-web:r:client]
file_filter = locale/<lang>/LC_MESSAGES/app.po
minimum_perc = 0
source_file = template.pot
source_lang = en
type = PO
| owncloud/web/packages/web-client/l10n/.tx/config/0 | {
"file_path": "owncloud/web/packages/web-client/l10n/.tx/config",
"repo_id": "owncloud",
"token_count": 83
} | 828 |
export const call = function* <T>(p: Promise<T>): Generator<Promise<T>, T, T> {
return yield p
}
| owncloud/web/packages/web-client/src/helpers/call.ts/0 | {
"file_path": "owncloud/web/packages/web-client/src/helpers/call.ts",
"repo_id": "owncloud",
"token_count": 36
} | 829 |
export * from './functions'
export * from './types'
| owncloud/web/packages/web-client/src/helpers/space/index.ts/0 | {
"file_path": "owncloud/web/packages/web-client/src/helpers/space/index.ts",
"repo_id": "owncloud",
"token_count": 17
} | 830 |
import { parseXML } from 'webdav'
import { XMLParser } from 'fast-xml-parser'
import { prepareFileFromProps } from 'webdav/dist/node/tools/dav'
import { WebDavResponseResource, WebDavResponseTusSupport } from '../../helpers'
import { urlJoin } from '../../utils'
export const parseTusHeaders = (headers: Headers) => {
... | owncloud/web/packages/web-client/src/webdav/client/parsers.ts/0 | {
"file_path": "owncloud/web/packages/web-client/src/webdav/client/parsers.ts",
"repo_id": "owncloud",
"token_count": 795
} | 831 |
import { SpaceResource, isShareSpaceResource, SHARE_JAIL_ID } from '../helpers'
import { WebDavOptions } from './types'
import { DAV, buildAuthHeader } from './client'
import { unref } from 'vue'
export const MoveFilesFactory = (dav: DAV, { accessToken }: WebDavOptions) => {
return {
moveFiles(
sourceSpace... | owncloud/web/packages/web-client/src/webdav/moveFiles.ts/0 | {
"file_path": "owncloud/web/packages/web-client/src/webdav/moveFiles.ts",
"repo_id": "owncloud",
"token_count": 435
} | 832 |
[main]
host = https://www.transifex.com
[o:owncloud-org:p:owncloud-web:r:pkg]
file_filter = locale/<lang>/LC_MESSAGES/app.po
minimum_perc = 0
source_file = template.pot
source_lang = en
type = PO
| owncloud/web/packages/web-pkg/l10n/.tx/config/0 | {
"file_path": "owncloud/web/packages/web-pkg/l10n/.tx/config",
"repo_id": "owncloud",
"token_count": 83
} | 833 |
import { defineComponent, h } from 'vue'
import AppWrapper from './AppWrapper.vue'
import { AppWrapperSlotArgs } from './types'
import { FileContentOptions, UrlForResourceOptions } from '../../composables'
import { Resource } from '@ownclouders/web-client/src'
export function AppWrapperRoute(
fileEditor: ReturnType<... | owncloud/web/packages/web-pkg/src/components/AppTemplates/AppWrapperRoute.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/components/AppTemplates/AppWrapperRoute.ts",
"repo_id": "owncloud",
"token_count": 335
} | 834 |
<template>
<component
:is="componentType"
v-bind="componentProps"
v-if="isResourceClickable"
:target="linkTargetBlank"
:aria-describedby="opensInNewWindowDescriptionId"
:draggable="false"
@dragstart.prevent.stop
@click="emitClick"
>
<slot :opens-in-new-window-description-id="open... | owncloud/web/packages/web-pkg/src/components/FilesList/ResourceLink.vue/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/components/FilesList/ResourceLink.vue",
"repo_id": "owncloud",
"token_count": 882
} | 835 |
<template>
<span class="oc-display-inline-block oc-mb-m" v-text="message" />
<div class="oc-my-m">
<oc-checkbox
v-if="conflictCount > 1"
v-model="checkboxValue"
size="medium"
:label="checkboxLabel"
:aria-label="checkboxLabel"
/>
</div>
<div class="oc-flex oc-flex-right oc-f... | owncloud/web/packages/web-pkg/src/components/Modals/ResourceConflictModal.vue/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/components/Modals/ResourceConflictModal.vue",
"repo_id": "owncloud",
"token_count": 1704
} | 836 |
<template>
<div id="oc-space-details-sidebar">
<div class="oc-space-details-sidebar-image oc-text-center">
<oc-spinner v-if="loadImageTask.isRunning" />
<div v-else-if="spaceImage" class="oc-position-relative">
<img :src="spaceImage" alt="" class="oc-mb-s" />
</div>
<oc-icon
... | owncloud/web/packages/web-pkg/src/components/SideBar/Spaces/Details/SpaceDetails.vue/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/components/SideBar/Spaces/Details/SpaceDetails.vue",
"repo_id": "owncloud",
"token_count": 3573
} | 837 |
import { useAbility as _useAbility } from '@casl/vue'
import { Ability } from '@ownclouders/web-client/src/helpers/resource/types'
export const useAbility = () => _useAbility<Ability>()
| owncloud/web/packages/web-pkg/src/composables/ability/useAbility.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/ability/useAbility.ts",
"repo_id": "owncloud",
"token_count": 60
} | 838 |
import { computed, unref } from 'vue'
import { isLocationCommonActive, isLocationSpacesActive } from '../../../router'
import { useGettext } from 'vue3-gettext'
import { FileAction, FileActionOptions, useIsFilesAppActive } from '../../actions'
import { useRouter } from '../../router'
import { useClientService } from '.... | owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsFavorite.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsFavorite.ts",
"repo_id": "owncloud",
"token_count": 904
} | 839 |
import { computed } from 'vue'
export const useIsSearchActive = () =>
computed(() => !!document.getElementById('files-global-search-options'))
| owncloud/web/packages/web-pkg/src/composables/actions/helpers/useIsSearchActive.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/actions/helpers/useIsSearchActive.ts",
"repo_id": "owncloud",
"token_count": 43
} | 840 |
import { useFileActions } from './files'
import { Resource, SpaceResource } from '@ownclouders/web-client'
export function useOpenWithDefaultApp() {
const { getDefaultEditorAction } = useFileActions()
const openWithDefaultApp = ({
space,
resource
}: {
space: SpaceResource
resource: Resource
})... | owncloud/web/packages/web-pkg/src/composables/actions/useOpenWithDefaultApp.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/actions/useOpenWithDefaultApp.ts",
"repo_id": "owncloud",
"token_count": 232
} | 841 |
import { useClientService } from '../clientService'
import type { Router, RouteLocationNormalizedLoaded } from 'vue-router'
import type { Method, AxiosRequestConfig, AxiosResponse } from 'axios'
import { ClientService } from '../../services'
import { AuthStore, useAuthStore } from '../piniaStores'
interface RequestOpt... | owncloud/web/packages/web-pkg/src/composables/authContext/useRequest.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/authContext/useRequest.ts",
"repo_id": "owncloud",
"token_count": 504
} | 842 |
export * from './useFileListHeaderPosition'
| owncloud/web/packages/web-pkg/src/composables/fileListHeaderPosition/index.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/fileListHeaderPosition/index.ts",
"repo_id": "owncloud",
"token_count": 12
} | 843 |
export abstract class PaginationConstants {
static readonly perPageDefault: string = '100'
static readonly perPageQueryName: string = 'items-per-page'
static readonly options = ['20', '50', '100', '250', '500']
}
| owncloud/web/packages/web-pkg/src/composables/pagination/constants.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/pagination/constants.ts",
"repo_id": "owncloud",
"token_count": 66
} | 844 |
import { defineStore } from 'pinia'
import { Ref, computed, ref, unref } from 'vue'
import {
extractStorageId,
isMountPointSpaceResource,
isProjectSpaceResource,
SpaceResource,
type Resource
} from '@ownclouders/web-client/src/helpers'
import { getIndicators, getParentPaths } from '../../helpers'
import { Anc... | owncloud/web/packages/web-pkg/src/composables/piniaStores/resources.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/piniaStores/resources.ts",
"repo_id": "owncloud",
"token_count": 3290
} | 845 |
import { RouteMeta } from 'vue-router'
type Dictionary<T> = { [key: string]: T }
export type QueryValue = string | (string | null)[]
export type LocationQuery = Dictionary<QueryValue>
export type ParamValue = string
export const authContextValues = ['anonymous', 'user', 'idp', 'publicLink', 'hybrid'] as const
expor... | owncloud/web/packages/web-pkg/src/composables/router/types.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/router/types.ts",
"repo_id": "owncloud",
"token_count": 148
} | 846 |
export * from './useSelectedResources'
| owncloud/web/packages/web-pkg/src/composables/selection/index.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/selection/index.ts",
"repo_id": "owncloud",
"token_count": 11
} | 847 |
export * from './useUpload'
| owncloud/web/packages/web-pkg/src/composables/upload/index.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/upload/index.ts",
"repo_id": "owncloud",
"token_count": 9
} | 848 |
export const triggerDownloadWithFilename = (url: string, name: string) => {
const a = document.createElement('a')
a.style.display = 'none'
document.body.appendChild(a)
a.href = url
// use download attribute to set desired file name
a.setAttribute('download', name)
// trigger the download by simulating cli... | owncloud/web/packages/web-pkg/src/helpers/download.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/helpers/download.ts",
"repo_id": "owncloud",
"token_count": 115
} | 849 |
export * from './sameResource'
export * from './conflictHandling'
export * from './filter'
export * from './icon'
export * from './isResourceTxtFileAlmostEmpty'
export * from './renameResource'
| owncloud/web/packages/web-pkg/src/helpers/resource/index.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/helpers/resource/index.ts",
"repo_id": "owncloud",
"token_count": 60
} | 850 |
export * from './client'
| owncloud/web/packages/web-pkg/src/http/index.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/http/index.ts",
"repo_id": "owncloud",
"token_count": 8
} | 851 |
import { HttpClient as _HttpClient } from '../../http'
import { client, Graph, OCS } from '@ownclouders/web-client'
import { Auth, AuthParameters } from './auth'
import axios, { AxiosInstance } from 'axios'
import { v4 as uuidV4 } from 'uuid'
import { WebDAV } from '@ownclouders/web-client/src/webdav'
import { Language... | owncloud/web/packages/web-pkg/src/services/client/client.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/services/client/client.ts",
"repo_id": "owncloud",
"token_count": 1794
} | 852 |
import { IconFillType } from '../helpers/resource'
import { Component } from 'vue'
export type FolderView = {
name: string
label: string
icon: {
name: string
fillType: IconFillType
}
isScrollable?: boolean
component: Component
componentAttrs?: () => Record<string, unknown>
}
| owncloud/web/packages/web-pkg/src/ui/types.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/ui/types.ts",
"repo_id": "owncloud",
"token_count": 96
} | 853 |
import ActionMenuItem from '../../../../src/components/ContextActions/ActionMenuItem.vue'
import { defaultPlugins, mount, shallowMount } from 'web-test-helpers'
const selectors = {
handler: '[data-testid="action-handler"]',
icon: '[data-testid="action-icon"]',
img: '[data-testid="action-img"]',
label: '[data-t... | owncloud/web/packages/web-pkg/tests/unit/components/ContextActions/ActionMenuItem.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/components/ContextActions/ActionMenuItem.spec.ts",
"repo_id": "owncloud",
"token_count": 1463
} | 854 |
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`OcResource > displays parent folder name default if calculated name is empty 1`] = `
"<div class="oc-resource oc-text-overflow"><button type="button" class="oc-button oc-rounded oc-button-m oc-button-justify-content-left oc-button-gap-undefined oc-... | owncloud/web/packages/web-pkg/tests/unit/components/FilesList/__snapshots__/ResourceListItem.spec.ts.snap/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/components/FilesList/__snapshots__/ResourceListItem.spec.ts.snap",
"repo_id": "owncloud",
"token_count": 525
} | 855 |
import { OcProgress } from 'design-system/src/components'
import { SpaceQuota } from '../../../src/components'
import { defaultPlugins, shallowMount } from 'web-test-helpers'
describe('SpaceQuota component', () => {
it('renders the space storage quota label', () => {
const { wrapper } = getWrapper({ total: 10, u... | owncloud/web/packages/web-pkg/tests/unit/components/SpaceQuota.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/components/SpaceQuota.spec.ts",
"repo_id": "owncloud",
"token_count": 460
} | 856 |
import { mock } from 'vitest-mock-extended'
import { unref } from 'vue'
import { Resource } from '@ownclouders/web-client'
import { defaultComponentMocks, RouteLocation, getComposableWrapper } from 'web-test-helpers'
import { useFileActionsCopy } from '../../../../../src/composables/actions/files'
import { useClipboard... | owncloud/web/packages/web-pkg/tests/unit/composables/actions/files/useFileActionsCopy.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/actions/files/useFileActionsCopy.spec.ts",
"repo_id": "owncloud",
"token_count": 967
} | 857 |
import { useFileActionsDeleteResources } from '../../../../../src/composables/actions'
import { mockDeep } from 'vitest-mock-extended'
import { FolderResource, SpaceResource } from '@ownclouders/web-client/src/helpers'
import { defaultComponentMocks, getComposableWrapper } from 'web-test-helpers'
import { nextTick } fr... | owncloud/web/packages/web-pkg/tests/unit/composables/actions/helpers/useFileActionsDeleteResources.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/actions/helpers/useFileActionsDeleteResources.spec.ts",
"repo_id": "owncloud",
"token_count": 955
} | 858 |
import { defineComponent } from 'vue'
import { useFileListHeaderPosition } from '../../../../../src/composables/fileListHeaderPosition'
import { defaultPlugins, mount } from 'web-test-helpers'
export const createWrapper = () =>
mount(
defineComponent({
setup() {
const { y, refresh } = useFileListHe... | owncloud/web/packages/web-pkg/tests/unit/composables/fileListHeaderPosition/spec/index.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/fileListHeaderPosition/spec/index.ts",
"repo_id": "owncloud",
"token_count": 416
} | 859 |
import { ref, unref } from 'vue'
import { SortDir, SortOptions, useSort } from '../../../../src/composables'
import { Resource } from '@ownclouders/web-client/src/helpers/resource'
import { getComposableWrapper } from 'web-test-helpers'
describe('useSort', () => {
it('should be valid', () => {
expect(useSort).to... | owncloud/web/packages/web-pkg/tests/unit/composables/sort/useSort.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/sort/useSort.spec.ts",
"repo_id": "owncloud",
"token_count": 1460
} | 860 |
import { isSameResource } from '../../../../src'
describe('isSameResource', () => {
test('evaluates to false if one of the resources is nullish', () => {
expect(isSameResource(null, null)).toBe(false)
expect(isSameResource(undefined, undefined)).toBe(false)
expect(isSameResource(null, { id: '1', path: ''... | owncloud/web/packages/web-pkg/tests/unit/helpers/resource/sameResource.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/helpers/resource/sameResource.spec.ts",
"repo_id": "owncloud",
"token_count": 388
} | 861 |
import { urlJoin } from '@ownclouders/web-client/src/utils'
describe('proper-url-join', () => {
it.each([
[['http://foobar.com'], 'http://foobar.com'],
[['http://foobar.com/'], 'http://foobar.com'],
[['/', ''], '/'],
[['/', 'foo'], '/foo'],
[['/', 'foo/'], '/foo'],
[['foo/'], '/foo'],
[['... | owncloud/web/packages/web-pkg/tests/unit/utils/urlJoin.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/utils/urlJoin.spec.ts",
"repo_id": "owncloud",
"token_count": 333
} | 862 |
<template>
<button class="skip-button" @click="skipToTarget"><slot /></button>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
props: {
/*
* The element to focus and to skip to
*/
target: {
type: String,
required: true
}
},
... | owncloud/web/packages/web-runtime/src/components/SkipTo.vue/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/components/SkipTo.vue",
"repo_id": "owncloud",
"token_count": 388
} | 863 |
import { RouteRecordRaw, Router } from 'vue-router'
import clone from 'lodash-es/clone'
import { RuntimeApi } from './types'
import { ApiError, ExtensionRegistry, SidebarNavExtension } from '@ownclouders/web-pkg'
import { isEqual, isObject, isArray, merge } from 'lodash-es'
import { App, Component, computed, h } from '... | owncloud/web/packages/web-runtime/src/container/api.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/container/api.ts",
"repo_id": "owncloud",
"token_count": 1871
} | 864 |
import { RouteLocationNamedRaw } from 'vue-router'
export interface Notification {
notification_id: string
app: string
user: string
datetime: string
subject: string
message?: string
messageRich?: string
messageRichParameters?: any
object_type?: string
object_id?: string
link?: string
computedMe... | owncloud/web/packages/web-runtime/src/helpers/notifications.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/helpers/notifications.ts",
"repo_id": "owncloud",
"token_count": 106
} | 865 |
<template>
<div
class="oc-link-resolve oc-height-viewport oc-flex oc-flex-column oc-flex-center oc-flex-middle"
>
<div class="oc-card oc-text-center oc-width-large">
<template v-if="isLoading">
<div class="oc-card-header">
<h2 key="public-link-loading">
<span v-text="$get... | owncloud/web/packages/web-runtime/src/pages/resolvePublicLink.vue/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/pages/resolvePublicLink.vue",
"repo_id": "owncloud",
"token_count": 4673
} | 866 |
import MobileNav from '../../../src/components/MobileNav.vue'
import { defaultPlugins, defaultComponentMocks, mount } from 'web-test-helpers'
import { mock } from 'vitest-mock-extended'
import { NavItem } from 'web-runtime/src/helpers/navItems'
const selectors = {
mobileNavBtn: '#mobile-nav-button',
mobileNavItem:... | owncloud/web/packages/web-runtime/tests/unit/components/MobileNav.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/tests/unit/components/MobileNav.spec.ts",
"repo_id": "owncloud",
"token_count": 450
} | 867 |
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`NotificationBell > should match snapshot 1`] = `
"<button data-v-25fb4be0="" type="button" aria-label="Notifications" class="oc-button oc-rounded oc-button-m oc-button-justify-content-center oc-button-gap-m oc-button-brand oc-button-brand-raw-inver... | owncloud/web/packages/web-runtime/tests/unit/components/Topbar/__snapshots__/NotificationBell.spec.ts.snap/0 | {
"file_path": "owncloud/web/packages/web-runtime/tests/unit/components/Topbar/__snapshots__/NotificationBell.spec.ts.snap",
"repo_id": "owncloud",
"token_count": 217
} | 868 |
import ResolvePublicLink from '../../../src/pages/resolvePublicLink.vue'
import { defaultPlugins, defaultComponentMocks, shallowMount, nextTicks } from 'web-test-helpers'
import { mockDeep } from 'vitest-mock-extended'
import { CapabilityStore, ClientService } from '@ownclouders/web-pkg'
import { Resource } from '@ownc... | owncloud/web/packages/web-runtime/tests/unit/pages/resolvePublicLink.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/tests/unit/pages/resolvePublicLink.spec.ts",
"repo_id": "owncloud",
"token_count": 1334
} | 869 |
export const defaultStubs = {
'app-bar': true,
'app-top-bar': true,
'context-actions': true,
'drive-redirect': true,
'generic-space': true,
'generic-trash': true,
'oc-loader': true,
'oc-pagination': true,
'oc-select': true,
'oc-spinner': true,
'oc-textarea': true,
'oc-tiles': false,
'resource-... | owncloud/web/packages/web-test-helpers/src/mocks/defaultStubs.ts/0 | {
"file_path": "owncloud/web/packages/web-test-helpers/src/mocks/defaultStubs.ts",
"repo_id": "owncloud",
"token_count": 215
} | 870 |
exports.command = function clickElementAt(selector, x, y, mouseButton = 0) {
return this.moveToElement(selector, x, y).mouseButtonClick(mouseButton)
}
| owncloud/web/tests/acceptance/customCommands/clickElementAt.js/0 | {
"file_path": "owncloud/web/tests/acceptance/customCommands/clickElementAt.js",
"repo_id": "owncloud",
"token_count": 49
} | 871 |
Feature: create folders
As a user
I want to create 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 logged in using the webUI
And the user has reloaded the current p... | owncloud/web/tests/acceptance/features/webUICreateFilesFolders/createFolders.feature/0 | {
"file_path": "owncloud/web/tests/acceptance/features/webUICreateFilesFolders/createFolders.feature",
"repo_id": "owncloud",
"token_count": 1018
} | 872 |
@disablePreviews
Feature: Sharing files and folders with internal users
As a user
I want to share files and folders with other users
So that those users can access the files and folders
Background:
Given the administrator has set the default folder for received shares to "Shares" in the server
And thes... | owncloud/web/tests/acceptance/features/webUISharingInternalUsersSharingIndicator/shareWithUsers.feature/0 | {
"file_path": "owncloud/web/tests/acceptance/features/webUISharingInternalUsersSharingIndicator/shareWithUsers.feature",
"repo_id": "owncloud",
"token_count": 1919
} | 873 |
const _ = require('lodash')
const { client } = require('nightwatch-api')
const { passwords } = require('./userSettings')
/**
* Gets the password for the un-initialized users and replaces the password accordingly
*
* @param {string} input
* @returns {string}
*/
exports.replaceInlineCode = function (input) {
con... | owncloud/web/tests/acceptance/helpers/codify.js/0 | {
"file_path": "owncloud/web/tests/acceptance/helpers/codify.js",
"repo_id": "owncloud",
"token_count": 273
} | 874 |
/* eslint-disable no-unused-expressions */
const _ = require('lodash')
const timeoutHelper = require('../../helpers/timeoutHelper')
const xpathHelper = require('../../helpers/xpath')
const util = require('util')
module.exports = {
commands: {
isThumbnailVisible: function (previewSize, item) {
if (previewSi... | owncloud/web/tests/acceptance/pageObjects/FilesPageElement/appSideBar.js/0 | {
"file_path": "owncloud/web/tests/acceptance/pageObjects/FilesPageElement/appSideBar.js",
"repo_id": "owncloud",
"token_count": 4314
} | 875 |
const { join } = require('../helpers/path')
module.exports = {
url: function () {
return join(this.api.launchUrl, '/login')
},
elements: {
body: 'body',
authenticateButton: {
selector: "//button//span[text()='Login' or text()='Log in']",
locateStrategy: 'xpath'
}
},
commands: [
... | owncloud/web/tests/acceptance/pageObjects/loginPage.js/0 | {
"file_path": "owncloud/web/tests/acceptance/pageObjects/loginPage.js",
"repo_id": "owncloud",
"token_count": 231
} | 876 |
const { client } = require('nightwatch-api')
const { When } = require('@cucumber/cucumber')
When('the user browses to the account page', function () {
return client.page.accountPage().navigateAndWaitTillLoaded()
})
| owncloud/web/tests/acceptance/stepDefinitions/accountContext.js/0 | {
"file_path": "owncloud/web/tests/acceptance/stepDefinitions/accountContext.js",
"repo_id": "owncloud",
"token_count": 67
} | 877 |
#!/bin/bash
source .drone.env
ocis_cache=$(mc find s3/$CACHE_BUCKET/ocis-build/$OCIS_COMMITID/ocis 2>&1 | grep 'Object does not exist')
if [[ "$ocis_cache" != "" ]]
then
echo "$OCIS_COMMITID doesn't exist"
exit 0
fi
exit 78
| owncloud/web/tests/drone/check-oCIS-cache.sh/0 | {
"file_path": "owncloud/web/tests/drone/check-oCIS-cache.sh",
"repo_id": "owncloud",
"token_count": 104
} | 878 |
Feature: users management
Scenario: user login can be managed in the admin settings
Given "Admin" logs in
And "Admin" creates following user using API
| id |
| Alice |
And "Admin" opens the "admin-settings" app
And "Admin" navigates to the users management page
And "Admin" forbids ... | owncloud/web/tests/e2e/cucumber/features/admin-settings/users.feature/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/features/admin-settings/users.feature",
"repo_id": "owncloud",
"token_count": 2524
} | 879 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.