Skip to content

Commit

Permalink
Add copyrights in src/
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Apr 26, 2024
1 parent 35f77c8 commit da449d5
Show file tree
Hide file tree
Showing 66 changed files with 270 additions and 18 deletions.
20 changes: 2 additions & 18 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
<!--
- @copyright Copyright (c) 2019 Marco Ambrosini <marcoambrosini@icloud.com>
-
- @author Marco Ambrosini <[email protected]>
-
- @license AGPL-3.0-or-later
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as
- published by the Free Software Foundation, either version 3 of the
- License, or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU Affero General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- SPDX-FileCopyrightText: Copyright Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->

<template>
Expand Down
4 changes: 4 additions & 0 deletions src/__mocks__/router.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import VueRouter from 'vue-router'

const Stub = {
Expand Down
4 changes: 4 additions & 0 deletions src/__mocks__/tabbable.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
// https://github.com/focus-trap/tabbable#testing-in-jsdom
const lib = jest.requireActual('tabbable')

Expand Down
4 changes: 4 additions & 0 deletions src/__mocks__/webdav.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
// eslint-disable-next-line n/no-unpublished-import
import { createClient } from 'webdav'

Expand Down
5 changes: 5 additions & 0 deletions src/assets/missingMaterialDesignIcons/MenuPeople.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
- SPDX-FileCopyrightText: Copyright Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->

<template>
<span :aria-hidden="!title"
:aria-label="title"
Expand Down
4 changes: 4 additions & 0 deletions src/components/AvatarWrapper/AvatarWrapper.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { shallowMount } from '@vue/test-utils'
import { cloneDeep } from 'lodash'
import Vuex from 'vuex'
Expand Down
4 changes: 4 additions & 0 deletions src/components/CallView/shared/VideoBottomBar.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createLocalVue, shallowMount } from '@vue/test-utils'
import { cloneDeep } from 'lodash'
import Vuex, { Store } from 'vuex'
Expand Down
5 changes: 5 additions & 0 deletions src/components/EmptyView.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
- SPDX-FileCopyrightText: Copyright Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->

<template>
<NcEmptyContent class="empty-view" :name="name" :description="description">
<template #icon>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createLocalVue, shallowMount, mount } from '@vue/test-utils'
import flushPromises from 'flush-promises' // TODO fix after migration to @vue/test-utils v2.0.0
import { cloneDeep } from 'lodash'
Expand Down
4 changes: 4 additions & 0 deletions src/components/LeftSidebar/LeftSidebar.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createLocalVue, mount } from '@vue/test-utils'
import flushPromises from 'flush-promises' // TODO fix after migration to @vue/test-utils v2.0.0
import { cloneDeep } from 'lodash'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createLocalVue, shallowMount } from '@vue/test-utils'
import flushPromises from 'flush-promises' // TODO fix after migration to @vue/test-utils v2.0.0
import { cloneDeep } from 'lodash'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createLocalVue, shallowMount } from '@vue/test-utils'
import { cloneDeep } from 'lodash'
import { createPinia, setActivePinia } from 'pinia'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createLocalVue, shallowMount } from '@vue/test-utils'
import { cloneDeep } from 'lodash'
import { createPinia, setActivePinia } from 'pinia'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createLocalVue, shallowMount } from '@vue/test-utils'
import { cloneDeep } from 'lodash'
import { setActivePinia, createPinia } from 'pinia'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createLocalVue, shallowMount } from '@vue/test-utils'
import { cloneDeep } from 'lodash'
import { createPinia, setActivePinia } from 'pinia'
Expand Down
4 changes: 4 additions & 0 deletions src/components/MessagesList/MessagesList.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createLocalVue, shallowMount } from '@vue/test-utils'
import { cloneDeep } from 'lodash'
import Vuex from 'vuex'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
- SPDX-FileCopyrightText: Copyright Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->

<template>
<!-- Series of buttons at the top of the tab, these affect all
breakout rooms -->
Expand Down
4 changes: 4 additions & 0 deletions src/components/RightSidebar/Participants/Participant.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createLocalVue, shallowMount } from '@vue/test-utils'
import { cloneDeep } from 'lodash'
import Vuex from 'vuex'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createLocalVue, mount } from '@vue/test-utils'
import { cloneDeep } from 'lodash'
import Vuex from 'vuex'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { SHARED_ITEM } from '../../../constants.js'

export const sharedItemsOrder = [SHARED_ITEM.TYPES.MEDIA,
Expand Down
4 changes: 4 additions & 0 deletions src/components/RoomSelector.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { shallowMount } from '@vue/test-utils'
import flushPromises from 'flush-promises'

Expand Down
4 changes: 4 additions & 0 deletions src/services/__tests__/mediaDevicePreferences.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import {
getFirstAvailableMediaDevice,
listMediaDevices,
Expand Down
4 changes: 4 additions & 0 deletions src/services/__tests__/messagesService.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import axios from '@nextcloud/axios'
import { generateOcsUrl } from '@nextcloud/router'

Expand Down
4 changes: 4 additions & 0 deletions src/services/conversationsService.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import axios from '@nextcloud/axios'
import { generateOcsUrl } from '@nextcloud/router'

Expand Down
4 changes: 4 additions & 0 deletions src/services/filesSharingServices.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import axios from '@nextcloud/axios'
import { generateOcsUrl } from '@nextcloud/router'

Expand Down
4 changes: 4 additions & 0 deletions src/store/actorStore.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createLocalVue } from '@vue/test-utils'
import { cloneDeep } from 'lodash'
import Vuex from 'vuex'
Expand Down
4 changes: 4 additions & 0 deletions src/store/callViewStore.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createLocalVue } from '@vue/test-utils'
import { cloneDeep } from 'lodash'
import Vuex from 'vuex'
Expand Down
4 changes: 4 additions & 0 deletions src/store/conversationsStore.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createLocalVue } from '@vue/test-utils'
import flushPromises from 'flush-promises'
import { cloneDeep } from 'lodash'
Expand Down
4 changes: 4 additions & 0 deletions src/store/fileUploadStore.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createLocalVue } from '@vue/test-utils'
import mockConsole from 'jest-mock-console'
import { cloneDeep } from 'lodash'
Expand Down
4 changes: 4 additions & 0 deletions src/store/messagesStore.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createLocalVue } from '@vue/test-utils'
import flushPromises from 'flush-promises'
import { cloneDeep } from 'lodash'
Expand Down
4 changes: 4 additions & 0 deletions src/store/participantsStore.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createLocalVue } from '@vue/test-utils'
import Hex from 'crypto-js/enc-hex.js'
import SHA1 from 'crypto-js/sha1.js'
Expand Down
4 changes: 4 additions & 0 deletions src/store/sidebarStore.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createLocalVue } from '@vue/test-utils'
import { cloneDeep } from 'lodash'
import Vuex from 'vuex'
Expand Down
4 changes: 4 additions & 0 deletions src/stores/__tests__/bots.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { setActivePinia, createPinia } from 'pinia'

import {
Expand Down
4 changes: 4 additions & 0 deletions src/stores/__tests__/chatExtras.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { setActivePinia, createPinia } from 'pinia'

import BrowserStorage from '../../services/BrowserStorage.js'
Expand Down
4 changes: 4 additions & 0 deletions src/stores/__tests__/federation.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { setActivePinia, createPinia } from 'pinia'

import { getShares, acceptShare, rejectShare } from '../../services/federationService.ts'
Expand Down
4 changes: 4 additions & 0 deletions src/stores/__tests__/guestName.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createPinia, setActivePinia } from 'pinia'

import { setGuestUserName } from '../../services/participantsService.js'
Expand Down
4 changes: 4 additions & 0 deletions src/stores/__tests__/integrations.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { setActivePinia, createPinia } from 'pinia'

import { useIntegrationsStore } from '../integrations.js'
Expand Down
4 changes: 4 additions & 0 deletions src/stores/__tests__/reactions.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createLocalVue } from '@vue/test-utils'
import { setActivePinia, createPinia } from 'pinia'
import Vuex from 'vuex'
Expand Down
4 changes: 4 additions & 0 deletions src/stores/__tests__/settings.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { setActivePinia, createPinia } from 'pinia'

import { loadState } from '@nextcloud/initial-state'
Expand Down
4 changes: 4 additions & 0 deletions src/stores/__tests__/sharedItems.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { setActivePinia, createPinia } from 'pinia'

import { sharedItemsOrder } from '../../components/RightSidebar/SharedItems/sharedItemsConstants.js'
Expand Down
4 changes: 4 additions & 0 deletions src/stores/__tests__/talkHash.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import mockConsole from 'jest-mock-console'
import { createPinia, setActivePinia } from 'pinia'

Expand Down
4 changes: 4 additions & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import type { components, operations } from './openapi/openapi-full.ts'

// General
Expand Down
4 changes: 4 additions & 0 deletions src/utils/__tests__/fileUpload.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import {
getFileExtension,
getFileSuffix,
Expand Down
4 changes: 4 additions & 0 deletions src/utils/__tests__/formattedTime.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { formattedTime, futureRelativeTime } from '../formattedTime.ts'

const TIME = (61 * 60 + 5) * 1000 // 1 hour, 1 minute, 5 seconds in ms
Expand Down
4 changes: 4 additions & 0 deletions src/utils/__tests__/getItemTypeFromMessage.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { SHARED_ITEM } from '../../constants.js'
import { getItemTypeFromMessage } from '../getItemTypeFromMessage.ts'

Expand Down
4 changes: 4 additions & 0 deletions src/utils/__tests__/handleUrl.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { showError, showSuccess } from '@nextcloud/dialogs'

import {
Expand Down
4 changes: 4 additions & 0 deletions src/utils/__tests__/readableNumber.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: Copyright Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { readableNumber, stringChop } from '../readableNumber.ts'

describe('readableNumber', () => {
Expand Down
Loading

0 comments on commit da449d5

Please sign in to comment.