diff --git a/package-lock.json b/package-lock.json index 6211af027..b8536d41e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "markdown-it": "^13.0.2", "markdown-it-task-checkbox": "^1.0.6", "vue": "^2.7.15", - "vue-fragment": "1.6.0", + "vue-fragment": "^1.5.1", "vue-material-design-icons": "^5.2.0", "vue-observe-visibility": "^1.0.0", "vue-router": "^3.5.3", @@ -16962,9 +16962,9 @@ } }, "node_modules/vue-fragment": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/vue-fragment/-/vue-fragment-1.6.0.tgz", - "integrity": "sha512-a5T8ZZZK/EQzgVShEl374HbobUJ0a7v12BzOzS6Z/wd/5EE/5SffcyHC+7bf9hP3L7Yc0hhY/GhMdwFQ25O/8A==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/vue-fragment/-/vue-fragment-1.5.1.tgz", + "integrity": "sha512-ig6eES6TcMBbANW71ylB+AJgRN+Zksb3f50AxjGpAk6hMzqmeuD80qeh4LJP0jVw2dMBMjgRUfIkrvxygoRgtQ==", "peerDependencies": { "vue": "^2.5.16" } @@ -30317,9 +30317,9 @@ "requires": {} }, "vue-fragment": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/vue-fragment/-/vue-fragment-1.6.0.tgz", - "integrity": "sha512-a5T8ZZZK/EQzgVShEl374HbobUJ0a7v12BzOzS6Z/wd/5EE/5SffcyHC+7bf9hP3L7Yc0hhY/GhMdwFQ25O/8A==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/vue-fragment/-/vue-fragment-1.5.1.tgz", + "integrity": "sha512-ig6eES6TcMBbANW71ylB+AJgRN+Zksb3f50AxjGpAk6hMzqmeuD80qeh4LJP0jVw2dMBMjgRUfIkrvxygoRgtQ==", "requires": {} }, "vue-hot-reload-api": { diff --git a/package.json b/package.json index 6516d6370..3ebb94023 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "markdown-it": "^13.0.2", "markdown-it-task-checkbox": "^1.0.6", "vue": "^2.7.15", - "vue-fragment": "1.6.0", + "vue-fragment": "^1.5.1", "vue-material-design-icons": "^5.2.0", "vue-observe-visibility": "^1.0.0", "vue-router": "^3.5.3", @@ -46,4 +46,4 @@ "extends @nextcloud/browserslist-config" ], "version": "4.8.1" -} \ No newline at end of file +} diff --git a/src/App.vue b/src/App.vue index 4db4bc665..c81128615 100644 --- a/src/App.vue +++ b/src/App.vue @@ -37,8 +37,6 @@ - - diff --git a/src/components/NoteItem.vue b/src/components/NoteItem.vue index 56ab9cb48..dff039458 100644 --- a/src/components/NoteItem.vue +++ b/src/components/NoteItem.vue @@ -3,6 +3,7 @@ :title="title" :active="isSelected" :to="{ name: 'note', params: { noteId: note.id.toString() } }" + @update:menuOpen="onMenuChange" @click="onNoteSelected(note.id)" > diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue deleted file mode 100644 index 7c65daeee..000000000 --- a/src/components/Sidebar.vue +++ /dev/null @@ -1,280 +0,0 @@ - - - diff --git a/src/router.js b/src/router.js index 1e63d22d6..1986d935a 100644 --- a/src/router.js +++ b/src/router.js @@ -5,7 +5,6 @@ import { generateUrl } from '@nextcloud/router' import Loading from './components/Loading.vue' import Welcome from './components/Welcome.vue' import NotesView from './components/NotesView.vue' -import Sidebar from './components/Sidebar.vue' Vue.use(Router) @@ -29,11 +28,9 @@ export default new Router({ name: 'note', components: { default: NotesView, - sidebar: Sidebar, }, props: { default: true, - sidebar: true, }, }, ], diff --git a/src/store/app.js b/src/store/app.js index f7efb464a..95490d05a 100644 --- a/src/store/app.js +++ b/src/store/app.js @@ -5,7 +5,6 @@ const state = { isSaving: false, isManualSave: false, documentTitle: null, - sidebarOpen: false, searchText: '', } @@ -33,10 +32,6 @@ const mutations = { state.documentTitle = title }, - setSidebarOpen(state, open) { - state.sidebarOpen = open - }, - updateSearchText(state, searchText) { state.searchText = searchText },