Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
47770de
feat: add pagination
LukasHirt Jun 9, 2021
210320d
tests: setup integration tests
LukasHirt Jun 11, 2021
bee9cc2
tests: add pagination tests
LukasHirt Jun 14, 2021
50c8cb4
chore: add integration tests to CI
LukasHirt Jun 14, 2021
5e79b76
chore: output integration tests coverage to custom folder
LukasHirt Jun 14, 2021
3c5313b
style: add title to iframe
LukasHirt Jun 14, 2021
a91603d
tests: move all unit tests into unit folders
LukasHirt Jun 14, 2021
2a12171
deps: update ODS to 7.3.0
LukasHirt Jun 15, 2021
106978c
fix: do not define vuex twice
LukasHirt Jun 15, 2021
88a071f
chore: add changelog
LukasHirt Jun 15, 2021
2276f62
Updated side bar VRT baselines
Talank Jun 16, 2021
bb65aac
feat: center list footers
LukasHirt Jun 16, 2021
d0f2cfc
Add latest sideBar baseline img (oCIS)
pascalwengerter Jun 16, 2021
553b7a7
Change lists footer
kulmann Jun 16, 2021
e92a7d6
Fix linter & SharedWithMe unit tests
pascalwengerter Jun 16, 2021
80acf2a
Fix files base set for search
kulmann Jun 17, 2021
e52e0ac
Move spec files into correct folder structure for unit tests
kulmann Jun 17, 2021
52e381f
Switch page size back to 100
kulmann Jun 17, 2021
4ea2961
Rename paginationLength to pages
kulmann Jun 17, 2021
2025f87
style: rename currentPageIndex const
LukasHirt Jun 17, 2021
356b7d8
Fix selector for files and folders counts
kulmann Jun 17, 2021
92e601f
Fix folder count data-test attribute
pascalwengerter Jun 17, 2021
0c1a32d
deps: bump ODS to 7.4.0
LukasHirt Jun 17, 2021
f15e32c
feat: reset page in search
LukasHirt Jun 17, 2021
f95a5cb
fix: do not decode item
LukasHirt Jun 17, 2021
80104b0
Change list info text
kulmann Jun 17, 2021
d40fc06
Convert footer list info to p tag
kulmann Jun 17, 2021
5b43472
tests: do not encode item
LukasHirt Jun 17, 2021
2c45e5d
Fix unit test
kulmann Jun 17, 2021
e77e40b
Fix sharing sidebar test selectors
pascalwengerter Jun 17, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ def unitTests(ctx):
return [{
"kind": "pipeline",
"type": "docker",
"name": "unit-tests",
"name": "unit-and-integration-tests",
"workspace": {
"base": "/var/www/owncloud",
"path": config["app"],
Expand All @@ -955,13 +955,21 @@ def unitTests(ctx):
buildWeb() +
[
{
"name": "tests",
"name": "unit-tests",
"image": "owncloudci/nodejs:14",
"pull": "always",
"commands": [
"yarn test:unit",
],
},
{
"name": "integration-tests",
"image": "owncloudci/nodejs:14",
"pull": "always",
"commands": [
"yarn test:integration",
],
},
{
"name": "sonarcloud",
"image": "sonarsource/sonar-scanner-cli:latest",
Expand Down
44 changes: 44 additions & 0 deletions __fixtures__/deletedFiles.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
export default [
{
name: '/trash-bin/alice',
type: 'dir',
fileInfo: {
'{DAV:}resourcetype': ['{DAV:}collection']
},
tusSupport: null
},
{
name: '/trash-bin/alice/3871',
type: 'dir',
fileInfo: {
'{http://owncloud.org/ns}trashbin-original-filename': 'Documents',
'{http://owncloud.org/ns}trashbin-original-location': 'Documents',
'{http://owncloud.org/ns}trashbin-delete-datetime': 'Mon, 14 Jun 2021 12:15:33 GMT',
'{DAV:}resourcetype': ['{DAV:}collection']
},
tusSupport: null
},
{
name: '/trash-bin/alice/3873',
type: 'dir',
fileInfo: {
'{http://owncloud.org/ns}trashbin-original-filename': 'Photos',
'{http://owncloud.org/ns}trashbin-original-location': 'Photos',
'{http://owncloud.org/ns}trashbin-delete-datetime': 'Mon, 14 Jun 2021 12:15:33 GMT',
'{DAV:}resourcetype': ['{DAV:}collection']
},
tusSupport: null
},
{
name: '/trash-bin/alice/3852',
type: 'file',
fileInfo: {
'{http://owncloud.org/ns}trashbin-original-filename': 'ownCloud Manual.pdf',
'{http://owncloud.org/ns}trashbin-original-location': 'ownCloud Manual.pdf',
'{http://owncloud.org/ns}trashbin-delete-datetime': 'Wed, 09 Jun 2021 12:13:46 GMT',
'{DAV:}getcontentlength': '0',
'{DAV:}resourcetype': ''
},
tusSupport: null
}
]
58 changes: 58 additions & 0 deletions __fixtures__/favoriteFiles.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
export default [
{
name: '/Documents',
type: 'dir',
fileInfo: {
'{http://owncloud.org/ns}permissions': 'RDNVCK',
'{http://owncloud.org/ns}favorite': '1',
'{http://owncloud.org/ns}fileid': '3867',
'{http://owncloud.org/ns}owner-id': 'alice',
'{http://owncloud.org/ns}owner-display-name': 'alice',
'{http://owncloud.org/ns}share-types': '',
'{http://owncloud.org/ns}privatelink': 'http://host.docker.internal:8080/f/3867',
'{http://owncloud.org/ns}size': '36227',
'{DAV:}getlastmodified': 'Mon, 14 Jun 2021 09:41:16 GMT',
'{DAV:}getetag': '"60c7243c2e7f1"',
'{DAV:}resourcetype': ['{DAV:}collection']
},
tusSupport: null
},
{
name: '/Photos',
type: 'dir',
fileInfo: {
'{http://owncloud.org/ns}permissions': 'RDNVCK',
'{http://owncloud.org/ns}favorite': '1',
'{http://owncloud.org/ns}fileid': '3863',
'{http://owncloud.org/ns}owner-id': 'alice',
'{http://owncloud.org/ns}owner-display-name': 'alice',
'{http://owncloud.org/ns}share-types': '',
'{http://owncloud.org/ns}privatelink': 'http://host.docker.internal:8080/f/3863',
'{http://owncloud.org/ns}size': '1011464',
'{DAV:}getlastmodified': 'Mon, 14 Jun 2021 09:41:15 GMT',
'{DAV:}getetag': '"60c7243befd5d"',
'{DAV:}resourcetype': ['{DAV:}collection']
},
tusSupport: null
},
{
name: '/ownCloud Manual.pdf',
type: 'file',
fileInfo: {
'{http://owncloud.org/ns}permissions': 'RDNVW',
'{http://owncloud.org/ns}favorite': '1',
'{http://owncloud.org/ns}fileid': '3862',
'{http://owncloud.org/ns}owner-id': 'alice',
'{http://owncloud.org/ns}owner-display-name': 'alice',
'{http://owncloud.org/ns}share-types': '',
'{http://owncloud.org/ns}privatelink': 'http://host.docker.internal:8080/f/3862',
'{DAV:}getcontentlength': '6498656',
'{http://owncloud.org/ns}size': '6498656',
'{DAV:}getlastmodified': 'Mon, 14 Jun 2021 09:41:15 GMT',
'{DAV:}getetag': '"1f0ac81c04bc55c5d52a59f510c785fd"',
'{DAV:}resourcetype': '',
'{http://owncloud.org/ns}downloadURL': ''
},
tusSupport: null
}
]
78 changes: 78 additions & 0 deletions __fixtures__/files.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
export default {
'/': [
{
name: '',
type: 'dir',
fileInfo: {
'{http://owncloud.org/ns}permissions': 'RDNVCK',
'{http://owncloud.org/ns}favorite': '0',
'{http://owncloud.org/ns}fileid': '3861',
'{http://owncloud.org/ns}owner-id': 'alice',
'{http://owncloud.org/ns}owner-display-name': 'alice',
'{http://owncloud.org/ns}share-types': '',
'{http://owncloud.org/ns}privatelink': 'http://host.docker.internal:8080/f/3861',
'{http://owncloud.org/ns}size': '7546347',
'{DAV:}getlastmodified': 'Mon, 14 Jun 2021 09:41:16 GMT',
'{DAV:}getetag': '"60c7243c2e7f1"',
'{DAV:}resourcetype': ['{DAV:}collection']
},
tusSupport: null
},
{
name: '/Documents',
type: 'dir',
fileInfo: {
'{http://owncloud.org/ns}permissions': 'RDNVCK',
'{http://owncloud.org/ns}favorite': '0',
'{http://owncloud.org/ns}fileid': '3867',
'{http://owncloud.org/ns}owner-id': 'alice',
'{http://owncloud.org/ns}owner-display-name': 'alice',
'{http://owncloud.org/ns}share-types': '',
'{http://owncloud.org/ns}privatelink': 'http://host.docker.internal:8080/f/3867',
'{http://owncloud.org/ns}size': '36227',
'{DAV:}getlastmodified': 'Mon, 14 Jun 2021 09:41:16 GMT',
'{DAV:}getetag': '"60c7243c2e7f1"',
'{DAV:}resourcetype': ['{DAV:}collection']
},
tusSupport: null
},
{
name: '/Photos',
type: 'dir',
fileInfo: {
'{http://owncloud.org/ns}permissions': 'RDNVCK',
'{http://owncloud.org/ns}favorite': '0',
'{http://owncloud.org/ns}fileid': '3863',
'{http://owncloud.org/ns}owner-id': 'alice',
'{http://owncloud.org/ns}owner-display-name': 'alice',
'{http://owncloud.org/ns}share-types': '',
'{http://owncloud.org/ns}privatelink': 'http://host.docker.internal:8080/f/3863',
'{http://owncloud.org/ns}size': '1011464',
'{DAV:}getlastmodified': 'Mon, 14 Jun 2021 09:41:15 GMT',
'{DAV:}getetag': '"60c7243befd5d"',
'{DAV:}resourcetype': ['{DAV:}collection']
},
tusSupport: null
},
{
name: '/ownCloud Manual.pdf',
type: 'file',
fileInfo: {
'{http://owncloud.org/ns}permissions': 'RDNVW',
'{http://owncloud.org/ns}favorite': '0',
'{http://owncloud.org/ns}fileid': '3862',
'{http://owncloud.org/ns}owner-id': 'alice',
'{http://owncloud.org/ns}owner-display-name': 'alice',
'{http://owncloud.org/ns}share-types': '',
'{http://owncloud.org/ns}privatelink': 'http://host.docker.internal:8080/f/3862',
'{DAV:}getcontentlength': '6498656',
'{http://owncloud.org/ns}size': '6498656',
'{DAV:}getlastmodified': 'Mon, 14 Jun 2021 09:41:15 GMT',
'{DAV:}getetag': '"1f0ac81c04bc55c5d52a59f510c785fd"',
'{DAV:}resourcetype': '',
'{http://owncloud.org/ns}downloadURL': ''
},
tusSupport: null
}
]
}
66 changes: 66 additions & 0 deletions __fixtures__/publicFiles.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
export default {
link: [
{
name: '/link',
type: 'dir',
fileInfo: {
'{http://owncloud.org/ns}permissions': '',
'{DAV:}resourcetype': ['{DAV:}collection'],
'{http://owncloud.org/ns}public-link-item-type': 'folder',
'{http://owncloud.org/ns}public-link-permission': '1',
'{http://owncloud.org/ns}public-link-share-datetime': 'Wed, 09 Jun 2021 12:44:17 GMT',
'{http://owncloud.org/ns}public-link-share-owner': 'admin'
},
tusSupport: null,
getProperty: function(prop) {
return this.fileInfo[prop]
}
},
{
name: '/link/Documents',
type: 'dir',
fileInfo: {
'{http://owncloud.org/ns}permissions': '',
'{http://owncloud.org/ns}fileid': '3874',
'{http://owncloud.org/ns}owner-id': 'admin',
'{http://owncloud.org/ns}owner-display-name': 'admin',
'{http://owncloud.org/ns}size': '0',
'{DAV:}getlastmodified': 'Mon, 14 Jun 2021 12:59:12 GMT',
'{DAV:}resourcetype': ['{DAV:}collection']
},
tusSupport: null
},
{
name: '/link/Photos',
type: 'dir',
fileInfo: {
'{http://owncloud.org/ns}permissions': '',
'{http://owncloud.org/ns}fileid': '3875',
'{http://owncloud.org/ns}owner-id': 'admin',
'{http://owncloud.org/ns}owner-display-name': 'admin',
'{http://owncloud.org/ns}size': '0',
'{DAV:}getlastmodified': 'Mon, 14 Jun 2021 12:59:12 GMT',
'{DAV:}resourcetype': ['{DAV:}collection']
},
tusSupport: null
},
{
name: '/link/ownCloud Manual.pdf',
type: 'file',
fileInfo: {
'{http://owncloud.org/ns}permissions': '',
'{http://owncloud.org/ns}fileid': '3012',
'{http://owncloud.org/ns}owner-id': 'admin',
'{http://owncloud.org/ns}owner-display-name': 'admin',
'{DAV:}getcontentlength': '0',
'{http://owncloud.org/ns}size': '0',
'{DAV:}getlastmodified': 'Mon, 10 May 2021 11:15:05 GMT',
'{DAV:}getetag': '"c5383f85b730ac10a5817efbc469bcb2"',
'{DAV:}resourcetype': '',
'{http://owncloud.org/ns}downloadURL':
'http://host.docker.internal:8080/remote.php/dav/public-files/link/ownCloud Manual.pdf'
},
tusSupport: null
}
]
}
Loading