Skip to content

Commit 05742c0

Browse files
skjnldsvjuliusknorr
authored andcommitted
Migrate to @nextcloud/vue 1.x.x
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
1 parent a6a224e commit 05742c0

File tree

68 files changed

+1915
-1887
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1915
-1887
lines changed

apps/files/js/dist/personal-settings.js

Lines changed: 66 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/files/js/dist/personal-settings.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/files/js/dist/sidebar.js

Lines changed: 41 additions & 83 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/files/js/dist/sidebar.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/files/src/components/LegacyTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
:active-tab="activeTab" />
2727
</template>
2828
<script>
29-
import AppSidebarTab from 'nextcloud-vue/dist/Components/AppSidebarTab'
29+
import AppSidebarTab from '@nextcloud/vue/dist/Components/AppSidebarTab'
3030
3131
export default {
3232
name: 'LegacyTab',

apps/files/src/components/TransferOwnershipDialogue.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ import axios from '@nextcloud/axios'
7070
import debounce from 'debounce'
7171
import { generateOcsUrl } from '@nextcloud/router'
7272
import { getFilePickerBuilder } from '@nextcloud/dialogs'
73-
import { Multiselect } from 'nextcloud-vue/dist/Components/Multiselect'
73+
import { Multiselect } from '@nextcloud/vue/dist/Components/Multiselect'
7474
import Vue from 'vue'
7575
7676
import logger from '../logger'

apps/files/src/views/Sidebar.vue

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373
<script>
7474
import $ from 'jquery'
7575
import axios from '@nextcloud/axios'
76-
import AppSidebar from 'nextcloud-vue/dist/Components/AppSidebar'
77-
import ActionButton from 'nextcloud-vue/dist/Components/ActionButton'
76+
import AppSidebar from '@nextcloud/vue/dist/Components/AppSidebar'
77+
import ActionButton from '@nextcloud/vue/dist/Components/ActionButton'
7878
import FileInfo from '../services/FileInfo'
7979
import LegacyTab from '../components/LegacyTab'
8080
import LegacyView from '../components/LegacyView'
@@ -240,6 +240,35 @@ export default {
240240
},
241241
},
242242
243+
watch: {
244+
// update the sidebar data
245+
async file(curr, prev) {
246+
this.resetData()
247+
if (curr && curr.trim() !== '') {
248+
try {
249+
this.fileInfo = await FileInfo(this.davPath)
250+
// adding this as fallback because other apps expect it
251+
this.fileInfo.dir = this.file.split('/').slice(0, -1).join('/')
252+
253+
// DEPRECATED legacy views
254+
// TODO: remove
255+
this.views.forEach(view => {
256+
view.setFileInfo(this.fileInfo)
257+
})
258+
259+
this.$nextTick(() => {
260+
if (this.$refs.sidebar) {
261+
this.$refs.sidebar.updateTabs()
262+
}
263+
})
264+
} catch (error) {
265+
this.error = t('files', 'Error while loading the file data')
266+
console.error('Error while loading the file data', error)
267+
}
268+
}
269+
},
270+
},
271+
243272
methods: {
244273
/**
245274
* Can this tab be displayed ?

apps/files_sharing/js/dist/additionalScripts.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/files_sharing/js/dist/additionalScripts.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/files_sharing/js/dist/collaboration.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)