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="M12 3c4.284 0 8.22 1.497 11.31 3.996L12 21 .69 6.997C3.78 4.497 7.714 3 12 3zm0 2c-3.028 0-5.923.842-8.42 2.392l3.178 3.935C8.316 10.481 10.102 10 12 10c1.898 0 3.683.48 5.241 1.327L20.42 ... | owncloud/web/packages/design-system/src/assets/icons/signal-wifi-2-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/signal-wifi-2-fill.svg",
"repo_id": "owncloud",
"token_count": 215
} | 761 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M13.96 6.504l2.829-2.828a1 1 0 0 1 1.414 0l2.121 2.121a1 1 0 0 1 0 1.414l-2.828 2.829 1.767 1.768-1.414 1.414-7.07-7.071 1.413-1.414 1.768 1.767zM10.778 8.98l4.243 4.243L7.243 21H3v-4.243l... | owncloud/web/packages/design-system/src/assets/icons/sip-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/sip-fill.svg",
"repo_id": "owncloud",
"token_count": 213
} | 762 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M6.027 17.43A8.003 8.003 0 0 1 9 2a8.003 8.003 0 0 1 7.458 5.099A5.5 5.5 0 0 1 18 17.978a6 6 0 0 0-11.973-.549zM13 16.267l1.964-1.134 1 1.732L14 18l1.964 1.134-1 1.732L13 19.732V22h-2v-2.2... | owncloud/web/packages/design-system/src/assets/icons/snowy-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/snowy-fill.svg",
"repo_id": "owncloud",
"token_count": 253
} | 763 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path fill-rule="nonzero" d="M17.5 2.5L23 12l-5.5 9.5h-11L1 12l5.5-9.5h11zm-1.153 2H7.653L3.311 12l4.342 7.5h8.694l4.342-7.5-4.342-7.5zM11 15h2v2h-2v-2zm0-8h2v6h-2V7z"/>
</g>
</svg>
| owncloud/web/packages/design-system/src/assets/icons/spam-line.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/spam-line.svg",
"repo_id": "owncloud",
"token_count": 201
} | 764 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M12 17l-5.878 3.59 1.598-6.7-5.23-4.48 6.865-.55L12 2.5l2.645 6.36 6.866.55-5.231 4.48 1.598 6.7L12 17zm0-2.344l2.817 1.72-.766-3.21 2.507-2.147-3.29-.264L12 7.708l-1.268 3.047-3.29.264 2.... | owncloud/web/packages/design-system/src/assets/icons/star-s-line.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/star-s-line.svg",
"repo_id": "owncloud",
"token_count": 226
} | 765 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M8 5h3v9H8v3H6v-3H3V5h3V2h2v3zM5 7v5h4V7H5zm13 3h3v9h-3v3h-2v-3h-3v-9h3V7h2v3zm-3 2v5h4v-5h-4z"/>
</g>
</svg>
| owncloud/web/packages/design-system/src/assets/icons/stock-line.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/stock-line.svg",
"repo_id": "owncloud",
"token_count": 177
} | 766 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M5.596 4L10.5 9.928 15.404 4H18l-6.202 7.497L18 18.994V19h-2.59l-4.91-5.934L5.59 19H3v-.006l6.202-7.497L3 4h2.596zM21.55 16.58a.8.8 0 1 0-1.32-.36l-1.155.33A2.001 2.001 0 0 1 21 14a2 2 0 0... | owncloud/web/packages/design-system/src/assets/icons/subscript.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/subscript.svg",
"repo_id": "owncloud",
"token_count": 240
} | 767 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M6.341 14A6 6 0 1 1 12 18v-4H6.341zM6 20h9v2H6v-2zm-5-9h3v2H1v-2zm1 5h8v2H2v-2zm9-15h2v3h-2V1zM3.515 4.929l1.414-1.414L7.05 5.636 5.636 7.05 3.515 4.93zM16.95 18.364l1.414-1.414 2.121 2.12... | owncloud/web/packages/design-system/src/assets/icons/sun-foggy-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/sun-foggy-fill.svg",
"repo_id": "owncloud",
"token_count": 291
} | 768 |
<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="M12 3v18H7.6A4.6 4.6 0 0 1 3 16.4V7.6A4.6 4.6 0 0 1 7.6 3H12zm-2 2H7.6A2.6 2.6 0 0 0 5 7.6v8.8A2.6 2.6 0 0 0 7.6 19H10V5zm-2.5 5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zM14... | owncloud/web/packages/design-system/src/assets/icons/switch-line.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/switch-line.svg",
"repo_id": "owncloud",
"token_count": 296
} | 769 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M15 21H9V10h6v11zm2 0V10h5v10a1 1 0 0 1-1 1h-4zM7 21H3a1 1 0 0 1-1-1V10h5v11zM22 8H2V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v4z"/>
</g>
</svg>
| owncloud/web/packages/design-system/src/assets/icons/table-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/table-fill.svg",
"repo_id": "owncloud",
"token_count": 173
} | 770 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M12 11a5 5 0 0 1 5 5v6H7v-6a5 5 0 0 1 5-5zm-6.712 3.006a6.983 6.983 0 0 0-.28 1.65L5 16v6H2v-4.5a3.5 3.5 0 0 1 3.119-3.48l.17-.014zm13.424 0A3.501 3.501 0 0 1 22 17.5V22h-3v-6c0-.693-.1-1.... | owncloud/web/packages/design-system/src/assets/icons/team-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/team-fill.svg",
"repo_id": "owncloud",
"token_count": 298
} | 771 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5h-2zM9 5a2 2 0 1 0 0 4V5zm8 12v-2.5l4 3.5-4 3.5V19H5v-2h12z"/>
</g>
</svg>
| owncloud/web/packages/design-system/src/assets/icons/text-direction-l.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/text-direction-l.svg",
"repo_id": "owncloud",
"token_count": 167
} | 772 |
<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="M5 5v14h14V5H5zm0-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm3 4h2a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm6 0h2a1 1 0 ... | owncloud/web/packages/design-system/src/assets/icons/trello-line.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/trello-line.svg",
"repo_id": "owncloud",
"token_count": 253
} | 773 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M17.654 1.7l-2.782 2.533a9.137 9.137 0 0 1 3.49 1.973c3.512 3.2 3.512 8.388 0 11.588-2.592 2.36-6.598 3.862-12.016 4.506l2.782-2.533a9.137 9.137 0 0 1-3.49-1.973c-3.512-3.2-3.533-8.369 0-1... | owncloud/web/packages/design-system/src/assets/icons/typhoon-line.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/typhoon-line.svg",
"repo_id": "owncloud",
"token_count": 388
} | 774 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M7 20.981a6.5 6.5 0 0 1-2.936-12 8.001 8.001 0 0 1 15.872 0 6.5 6.5 0 0 1-2.936 12V21H7v-.019zM13 13h3l-4-5-4 5h3v4h2v-4z"/>
</g>
</svg>
| owncloud/web/packages/design-system/src/assets/icons/upload-cloud-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/upload-cloud-fill.svg",
"repo_id": "owncloud",
"token_count": 171
} | 775 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M12 14v8H4a8 8 0 0 1 8-8zm0-1c-3.315 0-6-2.685-6-6s2.685-6 6-6 6 2.685 6 6-2.685 6-6 6zm2.595 5.812a3.51 3.51 0 0 1 0-1.623l-.992-.573 1-1.732.992.573A3.496 3.496 0 0 1 17 14.645V13.5h2v1.... | owncloud/web/packages/design-system/src/assets/icons/user-settings-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/user-settings-fill.svg",
"repo_id": "owncloud",
"token_count": 355
} | 776 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M2 19h20v2H2v-2zM2 5l5 3 5-6 5 6 5-3v12H2V5z"/>
</g>
</svg>
| owncloud/web/packages/design-system/src/assets/icons/vip-crown-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/vip-crown-fill.svg",
"repo_id": "owncloud",
"token_count": 122
} | 777 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M5.889 16H2a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h3.889l5.294-4.332a.5.5 0 0 1 .817.387v15.89a.5.5 0 0 1-.817.387L5.89 16zm14.525-4l3.536 3.536-1.414 1.414L19 13.414l-3.536 3.536-1.414-1.414L17.58... | owncloud/web/packages/design-system/src/assets/icons/volume-mute-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/volume-mute-fill.svg",
"repo_id": "owncloud",
"token_count": 249
} | 778 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M2 9h19a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V9zm1-6h15v4H2V4a1 1 0 0 1 1-1zm12 11v2h3v-2h-3z"/>
</g>
</svg>
| owncloud/web/packages/design-system/src/assets/icons/wallet-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/wallet-fill.svg",
"repo_id": "owncloud",
"token_count": 163
} | 779 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0H24V24H0z"/>
<path d="M8 10.341v2.194C6.804 13.227 6 14.52 6 16c0 2.21 1.79 4 4 4 1.48 0 2.773-.804 3.465-2h2.193c-.823 2.33-3.046 4-5.658 4-3.314 0-6-2.686-6-6 0-2.613 1.67-4.835 4-5.659zM12 17c-1.657 0-3-1.34... | owncloud/web/packages/design-system/src/assets/icons/wheelchair-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/wheelchair-fill.svg",
"repo_id": "owncloud",
"token_count": 327
} | 780 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M11 15.934A7.501 7.501 0 0 1 12 1a7.5 7.5 0 0 1 1 14.934V18h5v2h-5v4h-2v-4H6v-2h5v-2.066z"/>
</g>
</svg>
| owncloud/web/packages/design-system/src/assets/icons/women-fill.svg/0 | {
"file_path": "owncloud/web/packages/design-system/src/assets/icons/women-fill.svg",
"repo_id": "owncloud",
"token_count": 152
} | 781 |
import { shallowMount } from 'web-test-helpers'
import Avatars from './OcAvatars.vue'
const items = [
{
id: 'bob',
username: 'bob',
displayName: 'Bob',
avatar:
'https://images.unsplash.com/photo-1610216705422-caa3fcb6d158?ixid=MXwxMjA3fDB8MHxzZWFyY2h8MTB8fGZhY2V8ZW58MHwyfDB8&ixlib=rb-1.2.1&auto... | owncloud/web/packages/design-system/src/components/OcAvatars/OcAvatars.spec.ts/0 | {
"file_path": "owncloud/web/packages/design-system/src/components/OcAvatars/OcAvatars.spec.ts",
"repo_id": "owncloud",
"token_count": 1193
} | 782 |
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`OcDrop > tippy > renders tippy 1`] = `
<div>
<p
aria-describedby="tippy-10"
aria-expanded="true"
id="trigger"
>
trigger
</p>
<div
data-tippy-root=""
id="tippy-10"
style="z-index: 9999; visibility: visible; positi... | owncloud/web/packages/design-system/src/components/OcDrop/__snapshots__/OcDrop.spec.ts.snap/0 | {
"file_path": "owncloud/web/packages/design-system/src/components/OcDrop/__snapshots__/OcDrop.spec.ts.snap",
"repo_id": "owncloud",
"token_count": 1814
} | 783 |
<template>
<oc-drop
ref="drop"
class="oc-width-1-1 oc-info-drop"
:drop-id="dropId"
:toggle="toggle"
:mode="mode"
close-on-click
>
<div class="info-drop-content">
<div v-if="title" class="oc-flex oc-flex-between info-header oc-border-b oc-pb-s">
<h4 class="oc-m-rm info-title... | owncloud/web/packages/design-system/src/components/OcInfoDrop/OcInfoDrop.vue/0 | {
"file_path": "owncloud/web/packages/design-system/src/components/OcInfoDrop/OcInfoDrop.vue",
"repo_id": "owncloud",
"token_count": 2249
} | 784 |
<template>
<nav class="oc-pagination" :aria-label="$gettext('Pagination')">
<ol class="oc-pagination-list">
<li v-if="isPrevPageAvailable" class="oc-pagination-list-item">
<router-link
class="oc-pagination-list-item-prev"
:aria-label="$gettext('Go to the previous page')"
... | owncloud/web/packages/design-system/src/components/OcPagination/OcPagination.vue/0 | {
"file_path": "owncloud/web/packages/design-system/src/components/OcPagination/OcPagination.vue",
"repo_id": "owncloud",
"token_count": 3093
} | 785 |
<template>
<div class="oc-status-indicators">
<template v-for="indicator in indicators">
<oc-button
v-if="hasHandler(indicator)"
:id="indicator.id"
:key="indicator.id"
v-oc-tooltip="$gettext(indicator.label)"
class="oc-status-indicators-indicator oc-ml-xs"
:ar... | owncloud/web/packages/design-system/src/components/OcStatusIndicators/OcStatusIndicators.vue/0 | {
"file_path": "owncloud/web/packages/design-system/src/components/OcStatusIndicators/OcStatusIndicators.vue",
"repo_id": "owncloud",
"token_count": 1935
} | 786 |
<template>
<div class="all-tokens">
<table>
<caption class="oc-invisible-sr">
{{
$gettext('A list of all defined design tokens')
}}
</caption>
<thead>
<tr>
<th>{{ $gettext('Token Name') }}</th>
<th>{{ $gettext('Value') }}</th>
<th>{... | owncloud/web/packages/design-system/src/components/_DocsAllTokens/_DocsAllTokens.vue/0 | {
"file_path": "owncloud/web/packages/design-system/src/components/_DocsAllTokens/_DocsAllTokens.vue",
"repo_id": "owncloud",
"token_count": 1663
} | 787 |
<template>
<div>
<oc-search-bar
:value="query"
:is-filter="true"
:button-hidden="true"
label="Filter icons by name"
class="oc-mb"
@input="updateQuery"
/>
<div class="oc-mb oc-px">
<strong>Displaying {{ filteredIcons.length }} out of {{ icons.length }} icons</stron... | owncloud/web/packages/design-system/src/components/_docsIconList/_DocsIconList.vue/0 | {
"file_path": "owncloud/web/packages/design-system/src/components/_docsIconList/_DocsIconList.vue",
"repo_id": "owncloud",
"token_count": 1879
} | 788 |
$transition-duration-short: 200ms;
$directions: (
"t": "top",
"r": "right",
"b": "bottom",
"l": "left",
"x": ("right", "left"),
"y": ("top", "bottom")
);
$sizes: (
"xs": $oc-space-xsmall,
"s": $oc-space-small,
"m": $oc-space-medium,
"l": $oc-space-large,
"xl": $oc-space-xlarge,
"xxl": $oc-space-... | owncloud/web/packages/design-system/src/styles/theme/_variables.scss/0 | {
"file_path": "owncloud/web/packages/design-system/src/styles/theme/_variables.scss",
"repo_id": "owncloud",
"token_count": 326
} | 789 |
.tippy-box {
.tippy-content {
word-wrap: break-word;
}
}
| owncloud/web/packages/design-system/src/styles/theme/tooltip.scss/0 | {
"file_path": "owncloud/web/packages/design-system/src/styles/theme/tooltip.scss",
"repo_id": "owncloud",
"token_count": 32
} | 790 |
import { defineConfig, devices } from '@playwright/test'
export default defineConfig({
testDir: './',
testMatch: /.*\.spec\.ts/,
fullyParallel: true,
forbidOnly: process.env.CI === 'true',
retries: process.env.CI === 'true' ? 2 : 0,
workers: process.env.CI === 'true' ? 1 : undefined,
reporter: 'html',
... | owncloud/web/packages/design-system/tests/e2e/playwright.config.ts/0 | {
"file_path": "owncloud/web/packages/design-system/tests/e2e/playwright.config.ts",
"repo_id": "owncloud",
"token_count": 503
} | 791 |
<template>
<div>
<h2 class="oc-py-s" v-text="$gettext('Appearance')" />
<div>
<div class="oc-flex oc-flex-middle">
<h3 v-text="$gettext('Logo')" />
<oc-button
v-if="menuItems.length"
:id="`logo-context-btn`"
v-oc-tooltip="$gettext('Show context menu')"
... | owncloud/web/packages/web-app-admin-settings/src/components/General/AppearanceSection.vue/0 | {
"file_path": "owncloud/web/packages/web-app-admin-settings/src/components/General/AppearanceSection.vue",
"repo_id": "owncloud",
"token_count": 1345
} | 792 |
<template>
<group-select
:selected-groups="selectedOptions"
:group-options="groups"
@selected-option-change="changeSelectedGroupOption"
/>
</template>
<script lang="ts">
import { defineComponent, PropType, ref, unref, watch } from 'vue'
import { useGettext } from 'vue3-gettext'
import { Group, User } f... | owncloud/web/packages/web-app-admin-settings/src/components/Users/AddToGroupsModal.vue/0 | {
"file_path": "owncloud/web/packages/web-app-admin-settings/src/components/Users/AddToGroupsModal.vue",
"repo_id": "owncloud",
"token_count": 1900
} | 793 |
import { eventBus } from '@ownclouders/web-pkg'
import { SideBarEventTopics } from '@ownclouders/web-pkg'
import { useGettext } from 'vue3-gettext'
import { computed } from 'vue'
import { GroupAction } from '@ownclouders/web-pkg'
export const useGroupActionsEdit = () => {
const { $gettext } = useGettext()
const a... | owncloud/web/packages/web-app-admin-settings/src/composables/actions/groups/useGroupActionsEdit.ts/0 | {
"file_path": "owncloud/web/packages/web-app-admin-settings/src/composables/actions/groups/useGroupActionsEdit.ts",
"repo_id": "owncloud",
"token_count": 295
} | 794 |
import { defineStore } from 'pinia'
import { ref, unref } from 'vue'
import { SpaceResource } from '@ownclouders/web-client'
export const useSpaceSettingsStore = defineStore('spaceSettings', () => {
const spaces = ref<SpaceResource[]>([])
const selectedSpaces = ref<SpaceResource[]>([])
const setSpaces = (data: ... | owncloud/web/packages/web-app-admin-settings/src/composables/stores/spaceSettings.ts/0 | {
"file_path": "owncloud/web/packages/web-app-admin-settings/src/composables/stores/spaceSettings.ts",
"repo_id": "owncloud",
"token_count": 447
} | 795 |
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`MembersPanel > should display an empty result if no matching members found 1`] = `
"<div class="oc-ml-s">
<oc-text-input-stub id="oc-textinput-3" type="text" clearbuttonenabled="false" clearbuttonaccessiblelabel="" disabled="false" label="Filter ... | owncloud/web/packages/web-app-admin-settings/tests/unit/components/Groups/SideBar/__snapshots__/MembersPanel.spec.ts.snap/0 | {
"file_path": "owncloud/web/packages/web-app-admin-settings/tests/unit/components/Groups/SideBar/__snapshots__/MembersPanel.spec.ts.snap",
"repo_id": "owncloud",
"token_count": 492
} | 796 |
import { navItems, routes } from '../../src/index'
import { Ability } from '@ownclouders/web-client/src/helpers/resource/types'
import { mock } from 'vitest-mock-extended'
const getAbilityMock = (hasPermission) => mock<Ability>({ can: () => hasPermission })
describe('admin settings index', () => {
describe('navItem... | owncloud/web/packages/web-app-admin-settings/tests/unit/index.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-app-admin-settings/tests/unit/index.spec.ts",
"repo_id": "owncloud",
"token_count": 2360
} | 797 |
<template>
<div class="epub-reader oc-flex">
<oc-list class="epub-reader-chapters-list oc-pl-s oc-visible@l">
<li
v-for="chapter in chapters"
:key="chapter.id"
class="epub-reader-chapters-list-item oc-py-s"
:class="{ active: currentChapter.id === chapter.id }"
>
... | owncloud/web/packages/web-app-epub-reader/src/App.vue/0 | {
"file_path": "owncloud/web/packages/web-app-epub-reader/src/App.vue",
"repo_id": "owncloud",
"token_count": 4186
} | 798 |
import Uppy, { UppyFile } from '@uppy/core'
import BasePlugin from '@uppy/core/lib/BasePlugin.js'
import { filesize } from 'filesize'
import { basename, dirname, join } from 'path'
import * as uuid from 'uuid'
import { Language } from 'vue3-gettext'
import { Ref, unref } from 'vue'
import { RouteLocationNormalizedLoade... | owncloud/web/packages/web-app-files/src/HandleUpload.ts/0 | {
"file_path": "owncloud/web/packages/web-app-files/src/HandleUpload.ts",
"repo_id": "owncloud",
"token_count": 5543
} | 799 |
<template>
<div>
<input
id="space-image-upload-input"
ref="spaceImageInput"
type="file"
name="file"
tabindex="-1"
:accept="supportedSpaceImageMimeTypes"
@change="uploadImageSpace"
/>
<oc-list id="oc-spaces-actions-sidebar" class-name="oc-mt-s">
<action-menu-... | owncloud/web/packages/web-app-files/src/components/SideBar/Actions/SpaceActions.vue/0 | {
"file_path": "owncloud/web/packages/web-app-files/src/components/SideBar/Actions/SpaceActions.vue",
"repo_id": "owncloud",
"token_count": 1414
} | 800 |
<template>
<div class="link-details oc-flex oc-flex-between oc-flex-middle">
<div v-if="isModifiable">
<link-role-dropdown
:model-value="currentLinkType"
:available-link-type-options="availableLinkTypeOptions"
drop-offset="0"
@update:model-value="updateSelectedType"
/>
... | owncloud/web/packages/web-app-files/src/components/SideBar/Shares/Links/DetailsAndEdit.vue/0 | {
"file_path": "owncloud/web/packages/web-app-files/src/components/SideBar/Shares/Links/DetailsAndEdit.vue",
"repo_id": "owncloud",
"token_count": 8185
} | 801 |
export * from './useKeyboardTableNavigation'
export * from './useKeyboardTableMouseActions'
export * from './useKeyboardTableActions'
export * from './useKeyboardTableSpaceActions'
| owncloud/web/packages/web-app-files/src/composables/keyboardActions/index.ts/0 | {
"file_path": "owncloud/web/packages/web-app-files/src/composables/keyboardActions/index.ts",
"repo_id": "owncloud",
"token_count": 54
} | 802 |
export * from './avatarUrl'
| owncloud/web/packages/web-app-files/src/helpers/user/index.ts/0 | {
"file_path": "owncloud/web/packages/web-app-files/src/helpers/user/index.ts",
"repo_id": "owncloud",
"token_count": 10
} | 803 |
import { SDKSearch } from '../search'
export default class Registry {
static sdkSearch: SDKSearch
}
| owncloud/web/packages/web-app-files/src/services/registry.ts/0 | {
"file_path": "owncloud/web/packages/web-app-files/src/services/registry.ts",
"repo_id": "owncloud",
"token_count": 29
} | 804 |
import Uppy, { UppyFile, State, UIPlugin } from '@uppy/core'
import { HandleUpload } from '../../src/HandleUpload'
import { mock, mockDeep } from 'vitest-mock-extended'
import { Resource, SpaceResource } from '@ownclouders/web-client/src'
import { RouteLocationNormalizedLoaded } from 'vue-router'
import { ref, unref } ... | owncloud/web/packages/web-app-files/tests/unit/HandleUpload.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-app-files/tests/unit/HandleUpload.spec.ts",
"repo_id": "owncloud",
"token_count": 5042
} | 805 |
import { merge } from 'lodash-es'
import { shallowMount } from '@vue/test-utils'
import List from 'web-app-files/src/components/Search/List.vue'
import { useResourcesViewDefaults } from 'web-app-files/src/composables'
import { useResourcesViewDefaultsMock } from 'web-app-files/tests/mocks/useResourcesViewDefaultsMock'
... | owncloud/web/packages/web-app-files/tests/unit/components/Search/List.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-app-files/tests/unit/components/Search/List.spec.ts",
"repo_id": "owncloud",
"token_count": 3780
} | 806 |
import { LinkShare } from '@ownclouders/web-client/src/helpers'
import { useMessages } from '@ownclouders/web-pkg'
import NameAndCopy from 'web-app-files/src/components/SideBar/Shares/Links/NameAndCopy.vue'
import { defaultPlugins, mount } from 'web-test-helpers'
const linkShare = {
displayName: 'Example link',
we... | owncloud/web/packages/web-app-files/tests/unit/components/SideBar/Shares/Links/NameAndCopy.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-app-files/tests/unit/components/SideBar/Shares/Links/NameAndCopy.spec.ts",
"repo_id": "owncloud",
"token_count": 700
} | 807 |
import { createPinia, setActivePinia } from 'pinia'
import { navItems } from '../../src/index'
import { useSpacesStore } from '@ownclouders/web-pkg'
import { SpaceResource } from '@ownclouders/web-client'
import { mock } from 'vitest-mock-extended'
describe('Web app files', () => {
beforeEach(() => {
setActivePi... | owncloud/web/packages/web-app-files/tests/unit/index.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-app-files/tests/unit/index.spec.ts",
"repo_id": "owncloud",
"token_count": 466
} | 808 |
[main]
host = https://www.transifex.com
[o:owncloud-org:p:owncloud-web:r:pdf-viewer]
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-pdf-viewer/l10n/.tx/config/0 | {
"file_path": "owncloud/web/packages/web-app-pdf-viewer/l10n/.tx/config",
"repo_id": "owncloud",
"token_count": 86
} | 809 |
import App from '../../src/App.vue'
import { nextTick, ref } from 'vue'
import { defaultComponentMocks, defaultPlugins, shallowMount } from 'web-test-helpers'
import { useAppDefaultsMock } from 'web-test-helpers/src/mocks/useAppDefaultsMock'
import { FileContext, useAppDefaults } from '@ownclouders/web-pkg'
import { mo... | owncloud/web/packages/web-app-preview/tests/unit/app.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-app-preview/tests/unit/app.spec.ts",
"repo_id": "owncloud",
"token_count": 1292
} | 810 |
<template>
<div
class="oc-text-editor oc-width-1-1 oc-height-1-1"
:class="{ 'oc-text-editor-readonly': isReadOnly }"
>
<text-editor-component
:resource="resource"
:application-config="applicationConfig"
:current-content="currentContent"
:is-read-only="isReadOnly"
@update:cu... | owncloud/web/packages/web-app-text-editor/src/App.vue/0 | {
"file_path": "owncloud/web/packages/web-app-text-editor/src/App.vue",
"repo_id": "owncloud",
"token_count": 603
} | 811 |
export * from './functions'
| owncloud/web/packages/web-client/src/helpers/publicLink/index.ts/0 | {
"file_path": "owncloud/web/packages/web-client/src/helpers/publicLink/index.ts",
"repo_id": "owncloud",
"token_count": 9
} | 812 |
import { AxiosInstance } from 'axios'
import { graph, Graph } from './graph'
import { ocs, OCS } from './ocs'
import { User } from './generated'
import { Ref } from 'vue'
export type { Graph } from './graph'
export type { OCS } from './ocs'
export * as errors from './errors'
export * as helpers from './helpers'
expor... | owncloud/web/packages/web-client/src/index.ts/0 | {
"file_path": "owncloud/web/packages/web-client/src/index.ts",
"repo_id": "owncloud",
"token_count": 230
} | 813 |
import { FolderResource, SpaceResource } from '../helpers'
import { GetFileInfoFactory } from './getFileInfo'
import { urlJoin } from '../utils'
import { DAV } from './client/dav'
import { WebDavOptions } from './types'
import { buildAuthHeader } from './client'
import { unref } from 'vue'
export const CreateFolderFac... | owncloud/web/packages/web-client/src/webdav/createFolder.ts/0 | {
"file_path": "owncloud/web/packages/web-client/src/webdav/createFolder.ts",
"repo_id": "owncloud",
"token_count": 307
} | 814 |
import { Resource, buildResource } from '../helpers'
import { WebDavOptions } from './types'
import { DavProperties, DavProperty, DavPropertyValue } from './constants'
import { DAV, buildAuthHeader } from './client'
import { unref } from 'vue'
export interface SearchResource extends Resource {
highlights: string
}
... | owncloud/web/packages/web-client/src/webdav/search.ts/0 | {
"file_path": "owncloud/web/packages/web-client/src/webdav/search.ts",
"repo_id": "owncloud",
"token_count": 453
} | 815 |
import { App, ComponentCustomProperties, Ref } from 'vue'
import { RouteLocationRaw, Router, RouteRecordRaw } from 'vue-router'
import { Extension } from '../composables/piniaStores'
import { IconFillType } from '../helpers'
import { Resource, SpaceResource } from '@ownclouders/web-client'
export interface AppReadyHoo... | owncloud/web/packages/web-pkg/src/apps/types.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/apps/types.ts",
"repo_id": "owncloud",
"token_count": 834
} | 816 |
import { Resource } from '@ownclouders/web-client'
import { AppConfigObject } from '../../apps/types'
import { Ref } from 'vue'
export interface AppWrapperSlotArgs {
applicationConfig: AppConfigObject
resource: Resource
currentContent: Ref<string>
isDirty: boolean
isReadOnly: boolean
url: string
}
| owncloud/web/packages/web-pkg/src/components/AppTemplates/types.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/components/AppTemplates/types.ts",
"repo_id": "owncloud",
"token_count": 94
} | 817 |
<template>
<oc-table
v-bind="$attrs"
id="files-space-table"
:class="[
hoverableQuickActions && 'hoverable-quick-actions',
{
condensed: viewMode === FolderViewModeConstants.name.condensedTable,
'files-table': resourceType === 'file',
'files-table-squashed': resourceType ... | owncloud/web/packages/web-pkg/src/components/FilesList/ResourceTable.vue/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/components/FilesList/ResourceTable.vue",
"repo_id": "owncloud",
"token_count": 17194
} | 818 |
<template>
<oc-pagination
v-if="pages > 1"
:pages="pages"
:current-page="currentPage"
:max-displayed="3"
:current-route="$route"
class="files-pagination oc-flex oc-flex-center oc-my-s"
/>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
... | owncloud/web/packages/web-pkg/src/components/Pagination.vue/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/components/Pagination.vue",
"repo_id": "owncloud",
"token_count": 281
} | 819 |
<template>
<div class="oc-mt-xl">
<div class="oc-flex space-info oc-text-center">
<oc-icon name="layout-grid" size="xxlarge" />
<p v-translate>Select a space to view details</p>
</div>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
... | owncloud/web/packages/web-pkg/src/components/SideBar/Spaces/SpaceNoSelection.vue/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/components/SideBar/Spaces/SpaceNoSelection.vue",
"repo_id": "owncloud",
"token_count": 174
} | 820 |
import { LinkShare, isIncomingShareResource } from '@ownclouders/web-client/src/helpers/share'
import { computed, unref } from 'vue'
import { useClientService } from '../../clientService'
import { useGettext } from 'vue3-gettext'
import { FileAction, FileActionOptions } from '../types'
import { useCanShare } from '../.... | owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsCopyQuicklink.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsCopyQuicklink.ts",
"repo_id": "owncloud",
"token_count": 1222
} | 821 |
import {
isLocationCommonActive,
isLocationPublicActive,
isLocationSpacesActive
} from '../../../router'
import { computed, unref } from 'vue'
import { useGettext } from 'vue3-gettext'
import { useGetMatchingSpace } from '../../spaces'
import { useClientService } from '../../clientService'
import { useLoadingServ... | owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsPaste.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsPaste.ts",
"repo_id": "owncloud",
"token_count": 1768
} | 822 |
import { SpaceResource } from '@ownclouders/web-client'
import { computed, unref } from 'vue'
import { SpaceAction, SpaceActionOptions } from '../types'
import { useGettext } from 'vue3-gettext'
import { useRoute, useRouter } from '../../router'
import { useAbility } from '../../ability'
import { useClientService } fro... | owncloud/web/packages/web-pkg/src/composables/actions/spaces/useSpaceActionsDisable.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/actions/spaces/useSpaceActionsDisable.ts",
"repo_id": "owncloud",
"token_count": 1763
} | 823 |
import { computed, Ref } from 'vue'
import type { AppConfigObject } from '../../apps'
import { AppsStore } from '../piniaStores'
export interface AppConfigOptions {
appsStore: AppsStore
applicationId: string
}
export interface AppConfigResult {
applicationConfig: Ref<AppConfigObject>
}
export function useAppCo... | owncloud/web/packages/web-pkg/src/composables/appDefaults/useAppConfig.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/appDefaults/useAppConfig.ts",
"repo_id": "owncloud",
"token_count": 150
} | 824 |
import { ClientService } from '../../services'
import { useService } from '../service'
export const useClientService = (): ClientService => {
return useService('$clientService')
}
| owncloud/web/packages/web-pkg/src/composables/clientService/useClientService.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/clientService/useClientService.ts",
"repo_id": "owncloud",
"token_count": 49
} | 825 |
export * from './useFolderLink'
| owncloud/web/packages/web-pkg/src/composables/folderLink/index.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/folderLink/index.ts",
"repo_id": "owncloud",
"token_count": 10
} | 826 |
import { useService } from '../service'
import { PasswordPolicyService } from '../../services/passwordPolicy'
export const usePasswordPolicyService = (): PasswordPolicyService => {
return useService('$passwordPolicyService')
}
| owncloud/web/packages/web-pkg/src/composables/passwordPolicyService/usePasswordPolicyService.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/passwordPolicyService/usePasswordPolicyService.ts",
"repo_id": "owncloud",
"token_count": 56
} | 827 |
import { defineStore } from 'pinia'
import { computed, ref, unref } from 'vue'
import { Graph, SpaceResource } from '@ownclouders/web-client'
import {
GraphShareRoleIdMap,
buildSpace,
extractStorageId,
getGraphItemId,
isPersonalSpaceResource,
isProjectSpaceResource
} from '@ownclouders/web-client/src/helper... | owncloud/web/packages/web-pkg/src/composables/piniaStores/spaces.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/piniaStores/spaces.ts",
"repo_id": "owncloud",
"token_count": 2758
} | 828 |
import { Ref } from 'vue'
import { useRouter } from './useRouter'
import { RouteLocationNormalizedLoaded } from 'vue-router'
export const useRoute = (): Ref<RouteLocationNormalizedLoaded> => {
return useRouter().currentRoute
}
| owncloud/web/packages/web-pkg/src/composables/router/useRoute.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/router/useRoute.ts",
"repo_id": "owncloud",
"token_count": 73
} | 829 |
export * from './useCanShare'
| owncloud/web/packages/web-pkg/src/composables/shares/index.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/shares/index.ts",
"repo_id": "owncloud",
"token_count": 10
} | 830 |
import { onMounted, ref, unref } from 'vue'
export const useTileSize = () => {
const themeVarToPixels = (value: string) => {
if (!value.endsWith('rem') && !value.endsWith('px')) {
return 0
}
if (value.endsWith('rem')) {
const rem = parseInt(value.replace('rem', '').trim())
const fontSiz... | owncloud/web/packages/web-pkg/src/composables/viewMode/useTileSize.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/viewMode/useTileSize.ts",
"repo_id": "owncloud",
"token_count": 443
} | 831 |
export const defaultFuseOptions = {
ignoreLocation: true,
threshold: 0,
useExtendedSearch: true
}
| owncloud/web/packages/web-pkg/src/helpers/fuse.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/helpers/fuse.ts",
"repo_id": "owncloud",
"token_count": 32
} | 832 |
import { Router } from 'vue-router'
export const buildUrl = (router: Router, pathname) => {
const base = document.querySelector('base')
const isHistoryMode = !!base
const baseUrl = new URL(window.location.href.split('#')[0])
baseUrl.search = ''
if (isHistoryMode) {
// in history mode we can't determine ... | owncloud/web/packages/web-pkg/src/helpers/router/buildUrl.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/helpers/router/buildUrl.ts",
"repo_id": "owncloud",
"token_count": 417
} | 833 |
import { RouteComponents } from './router'
import { RouteLocationNamedRaw, RouteRecordRaw } from 'vue-router'
import { createLocation, $gettext, isLocationActiveDirector } from './utils'
type commonTypes = 'files-common-favorites' | 'files-common-search'
export const createLocationCommon = (name: commonTypes, locatio... | owncloud/web/packages/web-pkg/src/router/common.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/router/common.ts",
"repo_id": "owncloud",
"token_count": 668
} | 834 |
import * as uuid from 'uuid'
import { eventBus } from './eventBus'
import { debounce } from 'lodash-es'
export enum LoadingEventTopics {
add = 'loading-service.add',
remove = 'loading-service.remove',
setProgress = 'loading-service.set-progress'
}
export interface LoadingTaskState {
total: number
current: n... | owncloud/web/packages/web-pkg/src/services/loadingService.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/services/loadingService.ts",
"repo_id": "owncloud",
"token_count": 923
} | 835 |
import isPlainObject from 'lodash-es/isPlainObject'
export const objectKeys = (obj: Record<string, unknown>): string[] => {
const paths = []
const walk = (o, p = '') =>
Object.keys(o).forEach((key) => {
if (isPlainObject(o[key])) {
walk(o[key], `${p}${key}.`)
} else {
paths.push(`$... | owncloud/web/packages/web-pkg/src/utils/objectKeys.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/utils/objectKeys.ts",
"repo_id": "owncloud",
"token_count": 172
} | 836 |
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`ContextMenuQuickAction component > renders component 1`] = `
"<button type="button" aria-label="Show context menu" class="oc-button oc-rounded oc-button-m oc-button-justify-content-center oc-button-gap-m oc-button-passive oc-button-passive-raw" id=... | owncloud/web/packages/web-pkg/tests/unit/components/ContextActions/__snapshots__/ContextMenuQuickAction.spec.ts.snap/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/components/ContextActions/__snapshots__/ContextMenuQuickAction.spec.ts.snap",
"repo_id": "owncloud",
"token_count": 246
} | 837 |
import ItemFilterInline from '../../../../src/components/Filters/ItemFilterInline.vue'
import { InlineFilterOption } from '../../../../src/components/Filters/types'
import {
defaultComponentMocks,
defaultPlugins,
mount,
PartialComponentProps
} from 'web-test-helpers'
import { queryItemAsString } from '../../../... | owncloud/web/packages/web-pkg/tests/unit/components/Filters/ItemFilterInline.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/components/Filters/ItemFilterInline.spec.ts",
"repo_id": "owncloud",
"token_count": 1074
} | 838 |
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`ItemFilter > can use a custom attribute as display name 1`] = `
"<div class="item-filter oc-flex item-filter-users">
<div class="oc-filter-chip oc-flex"><button type="button" class="oc-button oc-rounded oc-button-m oc-button-justify-content-cente... | owncloud/web/packages/web-pkg/tests/unit/components/__snapshots__/ItemFilter.spec.ts.snap/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/components/__snapshots__/ItemFilter.spec.ts.snap",
"repo_id": "owncloud",
"token_count": 2536
} | 839 |
import { mock } from 'vitest-mock-extended'
import { nextTick, unref } from 'vue'
import { useFileActionsCreateNewFolder } from '../../../../../src/composables/actions'
import {
useMessages,
useModals,
useResourcesStore
} from '../../../../../src/composables/piniaStores'
import { SpaceResource } from '@ownclouder... | owncloud/web/packages/web-pkg/tests/unit/composables/actions/files/useFileActionsCreateNewFolder.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/actions/files/useFileActionsCreateNewFolder.spec.ts",
"repo_id": "owncloud",
"token_count": 1718
} | 840 |
import { useSpaceActionsEditDescription } from '../../../../../src/composables/actions'
import { useMessages, useModals } from '../../../../../src/composables/piniaStores'
import {
defaultComponentMocks,
mockAxiosResolve,
RouteLocation,
getComposableWrapper
} from 'web-test-helpers'
import { mock } from 'vitest... | owncloud/web/packages/web-pkg/tests/unit/composables/actions/spaces/useSpaceActionsEditDescription.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/actions/spaces/useSpaceActionsEditDescription.spec.ts",
"repo_id": "owncloud",
"token_count": 1111
} | 841 |
import { unref } from 'vue'
import { useLinkTypes } from '../../../../src/composables/links/useLinkTypes'
import { defaultComponentMocks, getComposableWrapper } from 'web-test-helpers'
import { SharingLinkType } from '@ownclouders/web-client/src/generated'
import { AbilityRule } from '@ownclouders/web-client/src/helper... | owncloud/web/packages/web-pkg/tests/unit/composables/links/useLinkTypes.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/links/useLinkTypes.spec.ts",
"repo_id": "owncloud",
"token_count": 2291
} | 842 |
import { RouteLocation } from 'web-test-helpers/src'
import { breadcrumbsFromPath, concatBreadcrumbs } from '../../../src/helpers/breadcrumbs'
describe('builds an array of breadcrumbitems', () => {
it('from a path', () => {
const breadCrumbs = breadcrumbsFromPath(
{ path: '/files/spaces/personal/home/test'... | owncloud/web/packages/web-pkg/tests/unit/helpers/breadcrumbs.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/helpers/breadcrumbs.spec.ts",
"repo_id": "owncloud",
"token_count": 432
} | 843 |
import { HttpClient } from '../../../src/http'
import { z } from 'zod'
import { mock, mockDeep } from 'vitest-mock-extended'
import axios, { AxiosInstance } from 'axios'
const schema = z.object({
someProperty: z.string()
})
type Schema = z.infer<typeof schema>
describe('HttpClient', () => {
const mockAxios = moc... | owncloud/web/packages/web-pkg/tests/unit/http/client.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/http/client.spec.ts",
"repo_id": "owncloud",
"token_count": 1522
} | 844 |
# On OSX the PATH variable isn't exported unless "SHELL" is also set, see: http://stackoverflow.com/a/25506676
SHELL = /bin/bash
NODE_MODULES = ../node_modules
NODE_BINDIR = $(NODE_MODULES)/.bin
export PATH := $(NODE_BINDIR):$(PATH)
# Where to find apps (it can be multiple paths).
APPS = $(shell find ../.. -maxdepth 1... | owncloud/web/packages/web-runtime/l10n/Makefile/0 | {
"file_path": "owncloud/web/packages/web-runtime/l10n/Makefile",
"repo_id": "owncloud",
"token_count": 1169
} | 845 |
<template>
<oc-button
id="oc-notifications-bell"
v-oc-tooltip="notificationsLabel"
appearance="raw-inverse"
variation="brand"
:aria-label="notificationsLabel"
>
<oc-icon
class="oc-cursor-pointer oc-flex oc-flex-middle"
name="notification-3"
fill-type="line"
/>
<span... | owncloud/web/packages/web-runtime/src/components/Topbar/NotificationBell.vue/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/components/Topbar/NotificationBell.vue",
"repo_id": "owncloud",
"token_count": 977
} | 846 |
import { registerClient } from '../services/clientRegistration'
import { buildApplication, NextApplication } from './application'
import { RouteLocationRaw, Router, RouteRecordNormalized } from 'vue-router'
import { App, computed, watch } from 'vue'
import { loadTheme } from '../helpers/theme'
import { createGettext, G... | owncloud/web/packages/web-runtime/src/container/bootstrap.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/container/bootstrap.ts",
"repo_id": "owncloud",
"token_count": 6421
} | 847 |
import { DesignSystem as designSystem, pages, translations, supportedLanguages } from './defaults'
import { router } from './router'
import { PortalTarget } from '@ownclouders/web-pkg'
import { createHead } from '@vueuse/head'
import { abilitiesPlugin } from '@casl/vue'
import { createMongoAbility } from '@casl/ability... | owncloud/web/packages/web-runtime/src/index.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/index.ts",
"repo_id": "owncloud",
"token_count": 2838
} | 848 |
import {
extractPublicLinkToken,
isIdpContextRequired,
isPublicLinkContextRequired,
isUserContextRequired
} from './index'
import { Router, RouteLocation } from 'vue-router'
import {
contextRouteNameKey,
queryItemAsString,
useAuthStore,
useEmbedMode
} from '@ownclouders/web-pkg'
import { authService } f... | owncloud/web/packages/web-runtime/src/router/setupAuthGuard.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/router/setupAuthGuard.ts",
"repo_id": "owncloud",
"token_count": 971
} | 849 |
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`OcSidebarNav > renders navItems into a list 1`] = `
"<div id="web-nav-sidebar" class="oc-app-navigation-expanded"><button type="button" aria-label="Toggle sidebar" class="oc-button oc-rounded oc-button-m oc-button-justify-content-center oc-button-g... | owncloud/web/packages/web-runtime/tests/unit/components/SidebarNav/__snapshots__/SidebarNav.spec.ts.snap/0 | {
"file_path": "owncloud/web/packages/web-runtime/tests/unit/components/SidebarNav/__snapshots__/SidebarNav.spec.ts.snap",
"repo_id": "owncloud",
"token_count": 543
} | 850 |
import UploadInfo from '../../../src/components/UploadInfo.vue'
import { defaultPlugins, shallowMount, defaultComponentMocks } from 'web-test-helpers'
import { ResourceListItem } from '@ownclouders/web-pkg'
import { nextTick } from 'vue'
const selectors = {
overlay: '#upload-info',
title: '.upload-info-title p',
... | owncloud/web/packages/web-runtime/tests/unit/components/UploadInfo.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/tests/unit/components/UploadInfo.spec.ts",
"repo_id": "owncloud",
"token_count": 2987
} | 851 |
import { mock } from 'vitest-mock-extended'
import { useExtensionRegistry } from '../../../web-pkg'
export const useExtensionRegistryMock = (
options: Partial<ReturnType<typeof useExtensionRegistry>> = {}
): ReturnType<typeof useExtensionRegistry> => {
return {
...mock<ReturnType<typeof useExtensionRegistry>>(... | owncloud/web/packages/web-test-helpers/src/mocks/useExtensionRegistryMock.ts/0 | {
"file_path": "owncloud/web/packages/web-test-helpers/src/mocks/useExtensionRegistryMock.ts",
"repo_id": "owncloud",
"token_count": 141
} | 852 |
/**
* setValue by sending the keys one, by one
* running federation tests on chrome browser has a problem with sendKeys and drops incomplete string when sending a
* whole string to the web modal dialogs
*
* @export
* @param {string} selector
* @param {string} inputValue
* @returns
*/
exports.command = function... | owncloud/web/tests/acceptance/customCommands/setValueBySingleKeys.js/0 | {
"file_path": "owncloud/web/tests/acceptance/customCommands/setValueBySingleKeys.js",
"repo_id": "owncloud",
"token_count": 268
} | 853 |
@openIdLogin @ocis-konnectd-issue-26
Feature: login users
As a user
I want to be able to log into my account
So that I have access to my files
As an admin
I want only authorised users to log in
So that unauthorised access is impossible
Background:
Given user "Alice" has been created with default att... | owncloud/web/tests/acceptance/features/webUILogin/openidLogin.feature/0 | {
"file_path": "owncloud/web/tests/acceptance/features/webUILogin/openidLogin.feature",
"repo_id": "owncloud",
"token_count": 507
} | 854 |
@mailhog @public_link_share-feature-required
Feature: Share by public link with different roles
As a user
I want to share files through a publicly accessible link with different roles
So that users who do not have an account on my ownCloud server can access them
As an admin
I want to limit the ability of a u... | owncloud/web/tests/acceptance/features/webUISharingPublicDifferentRoles/shareByPublicLinkDifferentRoles.feature/0 | {
"file_path": "owncloud/web/tests/acceptance/features/webUISharingPublicDifferentRoles/shareByPublicLinkDifferentRoles.feature",
"repo_id": "owncloud",
"token_count": 6126
} | 855 |
const _ = require('lodash')
/**
* Deep diff between two object, using lodash
* For more details check this link https://gist.github.com/Yimiprod/7ee176597fef230d1451
* @param {Object} object Object compared
* @param {Object} base Object to compare with
* @return {Object} Return a new object who represe... | owncloud/web/tests/acceptance/helpers/objects.js/0 | {
"file_path": "owncloud/web/tests/acceptance/helpers/objects.js",
"repo_id": "owncloud",
"token_count": 239
} | 856 |
module.exports = {
commands: {
/**
* @enum {string}
* @readonly
*/
FileAction: Object.freeze({
acceptShare: 'acceptShare',
download: 'download',
declineShare: 'declineShare',
delete: 'delete',
favorite: 'favorite',
unmarkFavorite: 'unmarkFavorite',
rest... | owncloud/web/tests/acceptance/pageObjects/FilesPageElement/fileActionsMenu.js/0 | {
"file_path": "owncloud/web/tests/acceptance/pageObjects/FilesPageElement/fileActionsMenu.js",
"repo_id": "owncloud",
"token_count": 2997
} | 857 |
module.exports = {
commands: {
getUserProfileAvatar: async function () {
let userInfo
await this.waitForElementVisible('@userProfileAvatar').api.element(
'@userProfileAvatar',
(result) => {
this.api.elementIdText(result.value.ELEMENT, (text) => {
userInfo = text.v... | owncloud/web/tests/acceptance/pageObjects/profilePage.js/0 | {
"file_path": "owncloud/web/tests/acceptance/pageObjects/profilePage.js",
"repo_id": "owncloud",
"token_count": 303
} | 858 |
const { client } = require('nightwatch-api')
const { Given, Then, When } = require('@cucumber/cucumber')
const loginHelper = require('../helpers/loginHelper')
const assert = require('assert')
Given(/^the user has browsed to the login page$/, () => {
return client.page.loginPage().navigate()
})
When('the user clicks... | owncloud/web/tests/acceptance/stepDefinitions/loginContext.js/0 | {
"file_path": "owncloud/web/tests/acceptance/stepDefinitions/loginContext.js",
"repo_id": "owncloud",
"token_count": 1239
} | 859 |
Feature: Kindergarten can use web to organize a day
As a kindergarten operator named Alice
I want to manage all file related operations by using ownCloud WEB
So that i'm sure all parents are informed and have the latest information in a easy and secure way
Background:
Given "Admin" creates following users... | owncloud/web/tests/e2e/cucumber/features/journeys/kindergarten.feature/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/features/journeys/kindergarten.feature",
"repo_id": "owncloud",
"token_count": 3514
} | 860 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.