diff --git a/src/appPaths.js b/src/appPaths.js index 030bb12f..fa7c9330 100644 --- a/src/appPaths.js +++ b/src/appPaths.js @@ -30,6 +30,7 @@ const pictures = getUserDirPath('pictures') const screenshots = getUserDirPath('screenshots') const videos = getUserDirPath('videos') const music = getUserDirPath('music') +const oneDrive = getUserDirPath('oneDrive') const userDataRoot = PATH.parse(userData).root.replace(/\\/g, '/') const resources = process.env.NODE_ENV === 'production' @@ -154,6 +155,7 @@ const appPaths = { screenshots, videos, music, + oneDrive, binCompressed, resourcesBin, bin, @@ -174,6 +176,10 @@ function getUserDirPath (dirName) { return pictures } } + else if (dirName === 'oneDrive') { + return env.OneDrive + } + try { return electronRemote.app.getPath(dirName) } diff --git a/src/components/BasicItemCardIterator.vue b/src/components/BasicItemCardIterator.vue index 023e6c6a..665cd2c2 100644 --- a/src/components/BasicItemCardIterator.vue +++ b/src/components/BasicItemCardIterator.vue @@ -80,32 +80,45 @@ Copyright © 2021 - present Aleksey Hoffman. All rights reserved. class="basic-item-card__thumb__inner" v-if="type === 'drive'" > -
+ -
+ {{$utils.getDriveIcon(item).icon}} + -
+
{{item.percentUsed}}%
-
+
diff --git a/src/components/DirItem.vue b/src/components/DirItem.vue index 60f6355e..e7b2df1f 100644 --- a/src/components/DirItem.vue +++ b/src/components/DirItem.vue @@ -149,7 +149,23 @@ Copyright © 2021 - present Aleksey Hoffman. All rights reserved.
{{$utils.prettyBytes(source.stat.size, 1)}} + > + {{$utils.prettyBytes(source.stat.size, 1)}} + + + + Offline item (size on drive is 0) +
@@ -324,6 +340,10 @@ export default { return this.layout ? this.layout : this.navigatorLayout + }, + isOffline () { + let isOfflineFile = this.source.sizeOnDisk === 0 && !this.source.type.includes('directory') + return isOfflineFile } }, methods: { diff --git a/src/components/InfoPanel.vue b/src/components/InfoPanel.vue index 57477834..ede915a8 100644 --- a/src/components/InfoPanel.vue +++ b/src/components/InfoPanel.vue @@ -36,12 +36,12 @@ Copyright © 2021 - present Aleksey Hoffman. All rights reserved.