Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring oc-table-files component and refactor views #4627

Merged
merged 216 commits into from
Mar 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
216 commits
Select commit Hold shift + click to select a range
4738e53
Add AllFiles view
LukasHirt Jan 19, 2021
1492118
Refactor files app
LukasHirt Jan 20, 2021
fdc678b
Attatch indicators
LukasHirt Jan 21, 2021
0ba3066
Fix indicators
LukasHirt Jan 21, 2021
5882ce6
Move FilesApp root component to src
LukasHirt Feb 9, 2021
0f8a67c
Separate pages to views
LukasHirt Feb 9, 2021
705ccbd
Make sidebar sticky
LukasHirt Feb 9, 2021
620e8ce
Display icon in the sidebar
LukasHirt Feb 9, 2021
19b897a
Switch to sticky position
LukasHirt Feb 9, 2021
a389738
Fix breadcrumbs
LukasHirt Feb 9, 2021
9ae3edc
Display favorites view
LukasHirt Feb 9, 2021
c0696aa
Add route names
LukasHirt Feb 10, 2021
83fee3e
Add shared with me view
LukasHirt Feb 10, 2021
e26fa16
Add shared with others view
LukasHirt Feb 10, 2021
eb7ce75
Add trashbin view
LukasHirt Feb 11, 2021
bcdc9bc
Add tables loader
LukasHirt Feb 12, 2021
f2deb1c
Add empty folder message
LukasHirt Feb 12, 2021
c341a75
Fix breadcrumbs
LukasHirt Feb 12, 2021
8376351
Auto-prefix routes name
LukasHirt Feb 12, 2021
00b03bf
Create public files view
LukasHirt Feb 15, 2021
00fdc29
Move public link resolution page to views
LukasHirt Feb 15, 2021
138a492
Load public files
LukasHirt Feb 15, 2021
5114375
Add no content message and loader
LukasHirt Feb 15, 2021
82fea47
Fix layout
LukasHirt Feb 15, 2021
20a01f6
Fix folder creation
LukasHirt Feb 15, 2021
7b40a9e
Fix file creation
LukasHirt Feb 15, 2021
c81a714
Fix lint
LukasHirt Feb 16, 2021
f75ab2a
Add selection model to all files
LukasHirt Feb 16, 2021
655b99a
Fix container selector
LukasHirt Feb 17, 2021
b0df652
Separate batch actions into own component
LukasHirt Feb 17, 2021
c50e0ea
Add batch actions methods
LukasHirt Feb 17, 2021
de4d75d
Fix trashbin actions
LukasHirt Feb 17, 2021
156c058
Separate selected resources info into own component
LukasHirt Feb 17, 2021
dd784cb
Add checks for actions
LukasHirt Feb 17, 2021
707a438
Fix copy action
LukasHirt Feb 17, 2021
fa33b6f
Fix move action
LukasHirt Feb 17, 2021
1ec6dbc
Disable resource being moved
LukasHirt Feb 17, 2021
df5522c
Fix error with routes
LukasHirt Feb 17, 2021
f99eb3b
Rename AllFiles to Personal
kulmann Feb 17, 2021
6dd44dc
Introduce ids for the different files tables
kulmann Feb 17, 2021
66bf1e7
Fix batch actions and add selection model for all files list views
kulmann Feb 17, 2021
a7b4511
Use correct helpers to load actions
LukasHirt Feb 17, 2021
cd140ae
Scroll to resource
LukasHirt Feb 18, 2021
46f9ac4
Check for empty list via prop
LukasHirt Feb 18, 2021
5ad9a3c
Remove state data key
LukasHirt Feb 18, 2021
1bb9358
Fix dropzone
LukasHirt Feb 18, 2021
ad450fe
Fix shared with others view
LukasHirt Feb 18, 2021
d4cd6a1
Hide columns on smaller resolution
LukasHirt Feb 18, 2021
bb1f0c3
Fix authentication in public links
LukasHirt Feb 18, 2021
7adff59
Dynamically move table header
LukasHirt Feb 18, 2021
ded72ca
Adjust header position during upload
LukasHirt Feb 18, 2021
96a5515
Add inProgress getter
LukasHirt Feb 18, 2021
0e1b677
Introduce ids for empty list messages
kulmann Feb 18, 2021
29a85a5
Adjust test selectors
kulmann Feb 18, 2021
598b50f
Display links in shared with column
LukasHirt Feb 19, 2021
78ce736
Add not found message
LukasHirt Feb 19, 2021
445d682
Fix test selectors
kulmann Feb 19, 2021
85b49f8
Fix files app redirects
kulmann Feb 20, 2021
a3d82ec
Fix more test selectors and rename filesPage to personalPage in tests
kulmann Feb 20, 2021
b9882d7
Fix linting in tests
kulmann Feb 22, 2021
ae83c0e
Fix last remaining filesPage occurrence
kulmann Feb 22, 2021
859de48
Pass targetRoute object
LukasHirt Feb 22, 2021
849f611
Fix location picker breadcrumbs
LukasHirt Feb 22, 2021
55b82c9
Fix move
LukasHirt Feb 22, 2021
cf3fa96
Fix navigation in public links
LukasHirt Feb 22, 2021
5c8de85
Fix public link breadcrumbs
LukasHirt Feb 22, 2021
25d347b
Add indicator handlers
LukasHirt Feb 22, 2021
c4ada89
Display previews in personal view
LukasHirt Feb 22, 2021
6772566
Add previews to favorites
LukasHirt Feb 22, 2021
7804f39
Fix routes
LukasHirt Feb 22, 2021
ae7718c
Add previews to shared with pages
LukasHirt Feb 22, 2021
94471d6
Clear files lists when entering
LukasHirt Feb 22, 2021
4fe122f
Display quota
LukasHirt Feb 23, 2021
0108cde
Load quota on folder load
LukasHirt Feb 23, 2021
7ad1673
Load quota after delete
LukasHirt Feb 23, 2021
ecbf637
Fix currentFolder in favorites
LukasHirt Feb 23, 2021
5463cba
Load previews after upload
LukasHirt Feb 23, 2021
90e6ec2
Fix trashbin actions
LukasHirt Feb 23, 2021
c8e5f53
Add table footer
LukasHirt Feb 23, 2021
497d2a7
Use correct dimensions
LukasHirt Feb 23, 2021
e7ebaa0
Hide quick actions on mobiles
LukasHirt Feb 23, 2021
14e5ddf
Bring back hidden titles
LukasHirt Feb 24, 2021
815a1d8
Fix file item selectors
kulmann Feb 24, 2021
ecf3b5a
Update ODS to 3.0.0
LukasHirt Feb 24, 2021
f4abd35
Fix lint error
LukasHirt Feb 24, 2021
03f71c9
Fix default file action
LukasHirt Feb 24, 2021
1c2eefb
Fix media viewer
LukasHirt Feb 24, 2021
d8c1723
Fix private link
LukasHirt Feb 24, 2021
35e6a2a
Fix preview tests
LukasHirt Feb 24, 2021
26764a9
Update ODS to 3.1.0
LukasHirt Feb 24, 2021
3f59bb1
Fix test selectors
kulmann Feb 25, 2021
38d1bd4
Get rid of custom scroll logic in tests
kulmann Feb 26, 2021
112a394
Bring back files drop
LukasHirt Feb 28, 2021
ca53527
Adjust dropzone position
LukasHirt Feb 28, 2021
e81f447
Dynamic header position
LukasHirt Mar 1, 2021
789cd61
Fix dynamic position of the header
LukasHirt Mar 1, 2021
6e38e7e
Load previews in public list
LukasHirt Mar 1, 2021
be4902e
Use correct paths
LukasHirt Mar 1, 2021
471c1c0
Fix favorites path
LukasHirt Mar 1, 2021
dae5aa4
Introduce computed prop for whether or not the top bar is visible
kulmann Mar 1, 2021
a25b583
Enforce lower case extensions on resource comparisons
kulmann Mar 1, 2021
79a1133
Adjust shared with me page selectors
LukasHirt Mar 1, 2021
3f0fec6
Fix accepting/declining of shares
LukasHirt Mar 1, 2021
a03b2be
Fix resource names in share tests
LukasHirt Mar 1, 2021
295a613
Fix scrolling of sidebar
LukasHirt Mar 2, 2021
3a9284b
Use path.basename instead of custom code for resource name
kulmann Mar 2, 2021
0810e5a
Streamline resources helper
kulmann Mar 2, 2021
1c3d578
Introduce checks for preventing preview loading
kulmann Mar 2, 2021
415c217
Remove media viewer from expected failures
LukasHirt Mar 2, 2021
0e9b446
Add changelog for file extensions bugfix
kulmann Mar 2, 2021
dcffb3a
Bring back file scrolling
LukasHirt Mar 2, 2021
b775489
Fix scrolling in files lists
kulmann Mar 2, 2021
b8287a2
Fix more tests and bring back a selector that was deleted by mistake
kulmann Mar 3, 2021
525a9b0
Move scrolling to resource into mixin
kulmann Mar 3, 2021
2e2192b
Move table header positioning into mixin
kulmann Mar 3, 2021
ca2b867
Change scrolling in tests
kulmann Mar 3, 2021
d526dad
Fix test step regarding loaded files list
kulmann Mar 4, 2021
83883ed
Add sort to expected failures until we have reimplemented sorting
kulmann Mar 4, 2021
690c501
Fix trashbin resources
kulmann Mar 5, 2021
7c634fc
Fix test selectors
kulmann Mar 10, 2021
1582fd4
Allow duplicate file targets in shared with me page
kulmann Mar 10, 2021
f959b7a
Refresh accepted/declined resource in shared with me list
kulmann Mar 10, 2021
96e6c74
Revert "Fix test selectors"
kulmann Mar 10, 2021
0ce4e9c
Cleaning up
kulmann Mar 10, 2021
17445dc
Fix more tests
kulmann Mar 10, 2021
48c0b8e
Fix renaming tests
kulmann Mar 11, 2021
86b3fad
Fix scrolling in tests
kulmann Mar 11, 2021
14acebb
update ODS to 3.2.0 and refactor small helpers into mixins
kulmann Mar 12, 2021
4973670
Fix return location for location picker
kulmann Mar 12, 2021
2cfd773
Fix location picker
kulmann Mar 12, 2021
7d70662
Display paths on favorites page
kulmann Mar 13, 2021
75aee6d
Fix private views to isPublic: false
kulmann Mar 13, 2021
c770cd7
Rename isListRoute to isPersonalRoute
kulmann Mar 13, 2021
747cb98
Fix sharing tests to now accept/decline share by correct sharer
kulmann Mar 13, 2021
03e01c6
Add sort scenarios to expected failures for now
kulmann Mar 15, 2021
d68df1b
Fix reading collaborators in tests
kulmann Mar 15, 2021
29a3def
Fix sticky header in location picker
kulmann Mar 15, 2021
58f8441
Fix reading share status in tests
kulmann Mar 15, 2021
f9ded8e
Fix page name in tests
kulmann Mar 16, 2021
d1f726c
Fix draw-io routing and nav items
kulmann Mar 17, 2021
d0f399b
Upgrade ODS to 3.2.1
kulmann Mar 17, 2021
f969318
Fix targetRoute for oc-table-files
kulmann Mar 17, 2021
b4f1587
Don't enforce `file` as resource type in tests if not required
kulmann Mar 17, 2021
61b7b78
Fix location picker tests regarding cancelling
kulmann Mar 17, 2021
c8dca1e
Fix default element type for file rows in tests
kulmann Mar 17, 2021
c0df5ad
Fix mutation mapping in location picker
kulmann Mar 17, 2021
cf9ee36
Start location picker in current folder from batch actions
kulmann Mar 17, 2021
0e3ab91
Clear selected and highlighted file(s) upon clearing current list
kulmann Mar 17, 2021
9ba2098
Fix delete and rename tests
kulmann Mar 18, 2021
a1e7ba2
Fix copy/move tests for disabled paste button
kulmann Mar 18, 2021
52e4f48
Fix selector for sharer names
kulmann Mar 18, 2021
c7fde86
Fix reading sharee names on sharedWithMe page in tests
kulmann Mar 19, 2021
7830909
Multiple fixes
kulmann Mar 19, 2021
6bb12d2
reload indicators when adding/removing shares
kulmann Mar 20, 2021
85a31ee
Highlight file on quick action selection
kulmann Mar 20, 2021
956754e
Load indicators on file upload
kulmann Mar 20, 2021
88349e7
Tests: wait until files list visible again after cancelling copy/move
kulmann Mar 20, 2021
20fec8e
Make resource thumbnail selector more robust
kulmann Mar 21, 2021
b60add2
Reintroduce the "homeFolder" option
kulmann Mar 21, 2021
40a216a
Tests: fix file condition to be a folder condition
kulmann Mar 21, 2021
cd2e6a4
Reintroduce the option to disable previews
kulmann Mar 22, 2021
08bb729
Theme public link page
LukasHirt Mar 22, 2021
43a5fd5
Theme missing config page
LukasHirt Mar 22, 2021
9933fd1
Fix grouping of shares on shared with others page
kulmann Mar 22, 2021
77a41f9
Redirect to resolution page when anauhorized
LukasHirt Mar 22, 2021
f049d2c
Redirect to files drop
LukasHirt Mar 22, 2021
7dacf40
Upgrade ODS to 3.2.2
kulmann Mar 22, 2021
3a77a5a
Remove hardcoded file id on rename
kulmann Mar 22, 2021
6d60999
tests: get rid of ajax counters in some actions
kulmann Mar 23, 2021
e995181
Fix test about moving where we need to navigate up first
kulmann Mar 23, 2021
2075d4b
Streamline ajax call counter handling
kulmann Mar 23, 2021
169737f
Do not set default link name in tests
LukasHirt Mar 23, 2021
2ada8a0
Display token when name is not defined
LukasHirt Mar 23, 2021
4e90278
Breadcrumb issue is fixed, adapting test accordingly
kulmann Mar 23, 2021
e51f7d6
Use correct redirect
LukasHirt Mar 23, 2021
e093900
Check for anyAfterLoading
LukasHirt Mar 23, 2021
5a12719
Add sharing notification test to expected failures as regression
kulmann Mar 23, 2021
4d837b9
Fix loading previews in subfolders with special chars
kulmann Mar 23, 2021
8563f7a
Fix oc-avatar selector on shared with me page
kulmann Mar 23, 2021
43f1777
Fix order of test steps
kulmann Mar 23, 2021
fa78188
Don't show share indicators and quick actions on shared with pages
kulmann Mar 23, 2021
ea38c78
Add download url to resource
kulmann Mar 23, 2021
19a117d
Make linter happy
kulmann Mar 23, 2021
7692861
Use downloadURL for previews
LukasHirt Mar 24, 2021
ca78ba0
Adjust links in people column test
LukasHirt Mar 24, 2021
5d8e71f
Bring back check for present any
LukasHirt Mar 24, 2021
a757e96
Load previews after upload
LukasHirt Mar 24, 2021
388d6a6
Enable screenshots after failures
LukasHirt Mar 24, 2021
aa8b6da
Update chromedriver
LukasHirt Mar 24, 2021
c0d0a2d
Do not wait for loaded after login
LukasHirt Mar 24, 2021
3e6071c
Update expected failures
kulmann Mar 24, 2021
08b01c9
Hide navigation on route change
LukasHirt Mar 25, 2021
4dd6aad
Merge remote-tracking branch 'origin/master' into use-oc-table
kulmann Mar 25, 2021
1f2bef3
Configure expected failures file for iPhone and XGA resolution, and a…
jasson99 Mar 25, 2021
6cff414
new expected failures
jasson99 Mar 25, 2021
9aa2720
Remove checks for specific files
LukasHirt Mar 25, 2021
3774fe4
Limit concurrent delete to 3
LukasHirt Mar 25, 2021
6665848
added skip & issue tag for scenario describing file list view error i…
kiranparajuli589 Mar 25, 2021
cea425f
Bring back limit
LukasHirt Mar 25, 2021
d0677db
Repeat delete if file is locked
LukasHirt Mar 25, 2021
97a77b5
add skip tag to sharingPublic test @issue-4858
saw-jan Mar 25, 2021
7fa3836
Updated topBar baseline image so that it matches the latest
SwikritiT Mar 25, 2021
31bbca7
add failing publiclink test to epxected-failures
saw-jan Mar 25, 2021
b1defc6
always_save_diff_screenshot fixed
SwikritiT Mar 25, 2021
11d86c7
Wait for notification to be visible before checking it's content
kulmann Mar 25, 2021
7dc0b37
added skip & issue tag for renameFiles test that fails randomly
Talank Mar 25, 2021
1c2320d
add failing sharingPublic test to expected-failures
saw-jan Mar 25, 2021
0df3190
adjust line number changes of sharingPublic feature
jasson99 Mar 25, 2021
4c1fecf
add failing shareBasic tests with ocis to expected-failure
saw-jan Mar 25, 2021
b20015f
fix line numbers in expected-failures
saw-jan Mar 25, 2021
321b68b
updated expected failures and skip tag
kiranparajuli589 Mar 25, 2021
b67f0ef
adjusted expected failure by removing passing sharing test on ocis
Talank Mar 25, 2021
20eac70
Add changelog
kulmann Mar 25, 2021
85e33e6
Add expected failure for ocis
kulmann Mar 25, 2021
74b076c
expected failure file adjusted for sharing test related to issue-web …
Talank Mar 25, 2021
0165230
Adjust ocis expected failure file
Talank Mar 25, 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
3 changes: 3 additions & 0 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ config = {
'WEB_UI_CONFIG': '/var/www/owncloud/web/dist/config.json'
},
'visualTesting': True,
'screenShots': True
},
'webUIFederation': {
'suites': {
Expand Down Expand Up @@ -170,6 +171,7 @@ config = {
]
},
'extraEnvironment': {
'EXPECTED_FAILURES_FILE': '/var/www/owncloud/web/tests/acceptance/expected-failures-XGA-with-oc10-server-oauth2-login.md',
'SCREEN_RESOLUTION': '768x1024'
},
'filterTags': '@smokeTest and not @skipOnXGAPortraitResolution and not @skip and not @skipOnOC10'
Expand Down Expand Up @@ -231,6 +233,7 @@ config = {
]
},
'extraEnvironment': {
'EXPECTED_FAILURES_FILE': '/var/www/owncloud/web/tests/acceptance/expected-failures-Iphone-oc10-server-oauth2-login.md',
'SCREEN_RESOLUTION': '375x812'
},
'filterTags': '@smokeTest and not @skipOnIphoneResolution and not @skip and not @skipOnOC10'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Open mediaviewer for upper case file extensions

We fixed a bug where the mediaviewer didn't open for files which had an uppercase (or mixed case) file extension.

https://github.com/owncloud/web/issues/4647
https://github.com/owncloud/web/pull/4627
5 changes: 5 additions & 0 deletions changelog/unreleased/change-new-files-list
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Change: New files list

We integrated the new oc-table-files component from our design system. This includes breaking changes in how we load resources in our files app. We refactored our files app codebase into views, so that only subcomponents live in the components directory.

https://github.com/owncloud/web/pull/4627
1 change: 0 additions & 1 deletion nightwatch.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const SCREENSHOTS = !!process.env.SCREENSHOTS

const VISUAL_TEST = !!process.env.VISUAL_TEST
const UPDATE_VRT_SCREENSHOTS = !!process.env.UPDATE_VRT_SCREENSHOTS

function generateScreenshotFilePath(nightwatchClient, basePath, imagePath) {
return path.join(process.cwd(), basePath, imagePath)
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.6.3",
"chromedriver": "^87.0.0",
"chromedriver": "^89.0.0",
"core-js": "3",
"cucumber": ">=6.0.5",
"cucumber-pretty": ">=6.0.0",
Expand Down
15 changes: 11 additions & 4 deletions packages/web-app-draw-io/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import App from './App.vue'

const routes = [
{
name: 'draw-io-edit',
name: 'edit',
path: '/edit/:filePath',
components: {
fullscreen: App
Expand All @@ -27,17 +27,24 @@ const appInfo = {
}
},
routes: [
'files-list',
'files-personal',
'files-favorites',
'files-shared-with-others',
'files-shared-with-me',
'public-files'
'files-public-list'
]
},
{
extension: 'vsdx',
newTab: true,
routeName: 'draw-io-edit'
routeName: 'draw-io-edit',
routes: [
'files-personal',
'files-favorites',
'files-shared-with-others',
'files-shared-with-me',
'files-public-list'
]
}
]
}
Expand Down
203 changes: 203 additions & 0 deletions packages/web-app-files/src/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
<template>
<div id="files" class="uk-flex uk-height-1-1">
<div
ref="filesListWrapper"
tabindex="-1"
class="files-list-wrapper uk-width-expand"
:class="{ 'uk-visible@m': _sidebarOpen }"
@dragover="$_ocApp_dragOver"
>
<app-bar id="files-app-bar" :style="{ top: $_topBarVisible ? '60px' : '0' }" />
<upload-progress
v-show="$_uploadProgressVisible"
id="files-upload-progress"
class="oc-p-s uk-background-muted"
/>
<router-view id="files-view" />
</div>
<sidebar
v-if="_sidebarOpen"
id="files-sidebar"
class="uk-width-1-1 uk-width-1-2@m uk-width-1-3@xl"
@reset="setHighlightedFile(null)"
/>
</div>
</template>
<script>
import Mixins from './mixins'
import MixinRoutes from './mixins/routes'
import { mapActions, mapGetters, mapMutations } from 'vuex'
import Sidebar from './components/Sidebar.vue'
import AppBar from './components/AppBar.vue'
import UploadProgress from './components/UploadProgress.vue'

export default {
components: {
Sidebar,
AppBar,
UploadProgress
},
mixins: [Mixins, MixinRoutes],
data() {
return {
createFolder: false,
fileUploadName: '',
fileUploadProgress: 0,
upload: false,
fileName: '',
selected: [],
breadcrumbs: []
}
},
computed: {
...mapGetters('Files', ['dropzone', 'highlightedFile', 'inProgress']),

_sidebarOpen() {
return this.highlightedFile !== null
},

$_topBarVisible() {
return !this.publicPage() && !this.$route.meta.verbose
},

$_uploadProgressVisible() {
return this.inProgress.length > 0
}
},
watch: {
$route() {
this.setHighlightedFile(null)
this.resetFileSelection()
}
},
created() {
this.$root.$on('upload-end', () => {
this.delayForScreenreader(() => this.$refs.filesListWrapper.focus())
})
},

beforeDestroy() {
this.SET_SIDEBAR_FOOTER_CONTENT_COMPONENT(null)
},

methods: {
...mapActions('Files', ['dragOver', 'setHighlightedFile', 'resetFileSelection']),
...mapActions(['showMessage']),
...mapMutations('Files', ['SET_APP_SIDEBAR_EXPANDED_ACCORDION']),
...mapMutations(['SET_SIDEBAR_FOOTER_CONTENT_COMPONENT']),

trace() {
console.info('trace', arguments)
},

openSideBar(file, sideBarName) {
this.setHighlightedFile(file)
this.SET_APP_SIDEBAR_EXPANDED_ACCORDION(sideBarName)
},

$_ocApp_dragOver() {
this.dragOver(true)
},

$_ocAppSideBar_onReload() {
this.$refs.filesList.$_ocFilesFolder_getFolder()
}
}
}
</script>

<style lang="scss" scoped>
.files-list-wrapper {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: max-content max-content 1fr;
gap: 0 0;
grid-template-areas:
'header'
'upload'
'main';

&:focus {
outline: none;
}
}

#files-sidebar {
position: sticky;
top: 60px;
max-height: calc(100vh - 60px);
}

#files-app-bar {
position: sticky;
height: auto;
z-index: 1;
grid-area: header;
}

#files-view {
grid-area: main;
}

#files-upload-progress {
grid-area: upload;
}
</style>

<style lang="scss">
// Hide files table columns
.files-table {
.oc-table-header-cell-mdate,
.oc-table-data-cell-mdate,
.oc-table-header-cell-sdate,
.oc-table-data-cell-sdate,
.oc-table-header-cell-ddate,
.oc-table-data-cell-ddate,
.oc-table-header-cell-size,
.oc-table-data-cell-size,
.oc-table-header-cell-sharedWith,
.oc-table-data-cell-sharedWith,
.oc-table-header-cell-owner,
.oc-table-data-cell-owner,
.oc-table-header-cell-status,
.oc-table-data-cell-status {
display: none;

@media only screen and (min-width: 640px) {
display: table-cell;
}
}

.oc-table-header-cell-owner,
.oc-table-data-cell-owner {
display: none;

@media only screen and (min-width: 960px) {
display: table-cell;
}
}

&-squashed {
.oc-table-header-cell-mdate,
.oc-table-data-cell-mdate,
.oc-table-header-cell-sdate,
.oc-table-data-cell-sdate,
.oc-table-header-cell-ddate,
.oc-table-data-cell-ddate,
.oc-table-header-cell-size,
.oc-table-data-cell-size,
.oc-table-header-cell-sharedWith,
.oc-table-data-cell-sharedWith,
.oc-table-header-cell-owner,
.oc-table-data-cell-owner,
.oc-table-header-cell-status,
.oc-table-data-cell-status {
display: none;

@media only screen and (min-width: 1600px) {
display: table-cell;
}
}
}
}
</style>
Loading