diff --git a/lib/Controller/OtherController.php b/lib/Controller/OtherController.php index 9ad2d464..bee050c6 100644 --- a/lib/Controller/OtherController.php +++ b/lib/Controller/OtherController.php @@ -25,7 +25,6 @@ namespace OCA\Memories\Controller; use OCA\Memories\AppInfo\Application; use OCP\AppFramework\Http; -use OCP\AppFramework\Http\ContentSecurityPolicy; use OCP\AppFramework\Http\JSONResponse; use OCP\AppFramework\Http\StreamResponse; diff --git a/src/App.vue b/src/App.vue index 8ba24320..74d08e92 100644 --- a/src/App.vue +++ b/src/App.vue @@ -23,9 +23,12 @@ @@ -39,6 +42,8 @@ + + @@ -50,8 +55,6 @@ import NcAppContent from "@nextcloud/vue/dist/Components/NcAppContent"; import NcAppNavigation from "@nextcloud/vue/dist/Components/NcAppNavigation"; const NcAppNavigationItem = () => import("@nextcloud/vue/dist/Components/NcAppNavigationItem"); -const NcAppNavigationSettings = () => - import("@nextcloud/vue/dist/Components/NcAppNavigationSettings"); import { generateUrl } from "@nextcloud/router"; import { translate as t } from "@nextcloud/l10n"; @@ -72,6 +75,7 @@ import PeopleIcon from "vue-material-design-icons/AccountBoxMultiple.vue"; import MarkerIcon from "vue-material-design-icons/MapMarker.vue"; import TagsIcon from "vue-material-design-icons/Tag.vue"; import MapIcon from "vue-material-design-icons/Map.vue"; +import CogIcon from "vue-material-design-icons/Cog.vue"; export default defineComponent({ name: "App", @@ -80,7 +84,6 @@ export default defineComponent({ NcAppContent, NcAppNavigation, NcAppNavigationItem, - NcAppNavigationSettings, Timeline, Settings, @@ -97,11 +100,13 @@ export default defineComponent({ MarkerIcon, TagsIcon, MapIcon, + CogIcon, }, data: () => ({ navItems: [], metadataComponent: null as any, + settingsOpen: false, }), computed: { @@ -324,6 +329,10 @@ export default defineComponent({ tokenInput.value = token; }, + + showSettings() { + this.settingsOpen = true; + }, }, }); diff --git a/src/components/Settings.vue b/src/components/Settings.vue index 6acba4dc..517d962a 100644 --- a/src/components/Settings.vue +++ b/src/components/Settings.vue @@ -22,37 +22,54 @@