From 5393e0e326ce5c8b155a350560a714a810400884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Mon, 8 Apr 2019 15:02:41 +0200 Subject: [PATCH] Implement sidebar component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- src/components/AppSidebar/AppSidebar.vue | 444 +++++++++++++++++- .../AppSidebarTab/AppSidebarTab.vue | 71 +++ src/components/AppSidebarTab/index.js | 24 + src/components/index.js | 2 + 4 files changed, 517 insertions(+), 24 deletions(-) create mode 100644 src/components/AppSidebarTab/AppSidebarTab.vue create mode 100644 src/components/AppSidebarTab/index.js diff --git a/src/components/AppSidebar/AppSidebar.vue b/src/components/AppSidebar/AppSidebar.vue index cd964bfce4..20e3394253 100644 --- a/src/components/AppSidebar/AppSidebar.vue +++ b/src/components/AppSidebar/AppSidebar.vue @@ -1,31 +1,427 @@ + - @copyright Copyright (c) 2019 John Molakvoæ + - + - @author John Molakvoæ + - + - @license GNU AGPL version 3 or any later version + - + - This program is free software: you can redistribute it and/or modify + - it under the terms of the GNU Affero General Public License as + - published by the Free Software Foundation, either version 3 of the + - License, or (at your option) any later version. + - + - This program is distributed in the hope that it will be useful, + - but WITHOUT ANY WARRANTY; without even the implied warranty of + - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + - GNU Affero General Public License for more details. + - + - You should have received a copy of the GNU Affero General Public License + - along with this program. If not, see . + - + --> + + + + + diff --git a/src/components/AppSidebarTab/AppSidebarTab.vue b/src/components/AppSidebarTab/AppSidebarTab.vue new file mode 100644 index 0000000000..cae3c5f304 --- /dev/null +++ b/src/components/AppSidebarTab/AppSidebarTab.vue @@ -0,0 +1,71 @@ + + + + + + + + diff --git a/src/components/AppSidebarTab/index.js b/src/components/AppSidebarTab/index.js new file mode 100644 index 0000000000..3def814d37 --- /dev/null +++ b/src/components/AppSidebarTab/index.js @@ -0,0 +1,24 @@ +/** + * @copyright Copyright (c) 2019 John Molakvoæ + * + * @author John Molakvoæ + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +import AppSidebarTab from './AppSidebarTab' + +export default AppSidebarTab +export { AppSidebarTab } diff --git a/src/components/index.js b/src/components/index.js index cc2fd64472..c1ab3abc20 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -28,6 +28,7 @@ import AppNavigationNew from './AppNavigationNew' import AppNavigationSettings from './AppNavigationSettings' import AppNavigationSpacer from './AppNavigationSpacer' import AppSidebar from './AppSidebar' +import AppSidebarTab from './AppSidebarTab' import Avatar from './Avatar' import Content from './Content' import DatetimePicker from './DatetimePicker' @@ -44,6 +45,7 @@ export { AppNavigationSettings, AppNavigationSpacer, AppSidebar, + AppSidebarTab, Avatar, Content, DatetimePicker,