diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-06-12 10:23:00 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-06-12 10:26:53 +0200 |
commit | 62667914a0fb679f2a300934867ca24fbe6d44b6 (patch) | |
tree | d5131af12a0cac40054619667a32e6c25fd52bfd /settings/src | |
parent | cc78e17d5f50d734c3db71ff13589bd7ff4376bc (diff) | |
download | nextcloud-server-62667914a0fb679f2a300934867ca24fbe6d44b6.tar.gz nextcloud-server-62667914a0fb679f2a300934867ca24fbe6d44b6.zip |
Copyright fix, changed vue settings output name and fixes template name
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'settings/src')
-rw-r--r-- | settings/src/App.vue | 22 | ||||
-rw-r--r-- | settings/src/components/appNavigation.vue | 24 | ||||
-rw-r--r-- | settings/src/components/appNavigation/navigationItem.vue | 21 | ||||
-rw-r--r-- | settings/src/components/popoverMenu.vue | 22 | ||||
-rw-r--r-- | settings/src/components/popoverMenu/popoverItem.vue | 24 | ||||
-rw-r--r-- | settings/src/components/userList.vue | 22 | ||||
-rw-r--r-- | settings/src/components/userList/userRow.vue | 22 | ||||
-rw-r--r-- | settings/src/main.js | 22 | ||||
-rw-r--r-- | settings/src/router.js | 29 | ||||
-rw-r--r-- | settings/src/store/api.js | 22 | ||||
-rw-r--r-- | settings/src/store/index.js | 23 | ||||
-rw-r--r-- | settings/src/store/oc.js | 22 | ||||
-rw-r--r-- | settings/src/store/settings.js | 22 | ||||
-rw-r--r-- | settings/src/store/users.js | 22 | ||||
-rw-r--r-- | settings/src/views/Users.vue | 22 |
15 files changed, 336 insertions, 5 deletions
diff --git a/settings/src/App.vue b/settings/src/App.vue index 4e1708bed4f..c7c32ba9d63 100644 --- a/settings/src/App.vue +++ b/settings/src/App.vue @@ -1,3 +1,25 @@ +<!-- + - @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com> + - + - @author John Molakvoæ <skjnldsv@protonmail.com> + - + - @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 <http://www.gnu.org/licenses/>. + - + --> + <template> <router-view></router-view> </template> diff --git a/settings/src/components/appNavigation.vue b/settings/src/components/appNavigation.vue index bab69194372..52a70786a9a 100644 --- a/settings/src/components/appNavigation.vue +++ b/settings/src/components/appNavigation.vue @@ -1,3 +1,25 @@ +<!-- + - @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com> + - + - @author John Molakvoæ <skjnldsv@protonmail.com> + - + - @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 <http://www.gnu.org/licenses/>. + - + --> + <template> <div id="app-navigation" :class="{'icon-loading': menu.loading}"> <div class="app-navigation-new" v-if="menu.new"> @@ -28,5 +50,5 @@ export default { components: { navigationItem } -} +}; </script> diff --git a/settings/src/components/appNavigation/navigationItem.vue b/settings/src/components/appNavigation/navigationItem.vue index 80584517b99..becbb5ded12 100644 --- a/settings/src/components/appNavigation/navigationItem.vue +++ b/settings/src/components/appNavigation/navigationItem.vue @@ -1,3 +1,24 @@ +<!-- + - @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com> + - + - @author John Molakvoæ <skjnldsv@protonmail.com> + - + - @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 <http://www.gnu.org/licenses/>. + - + --> <template> <nav-element :id="item.id" v-bind="navElement(item)" :class="[{'icon-loading-small': item.loading, 'open': item.opened, 'collapsible': item.collapsible&&item.children&&item.children.length>0 }, item.classes]"> diff --git a/settings/src/components/popoverMenu.vue b/settings/src/components/popoverMenu.vue index 92f62c5090d..dd9a29cc9fe 100644 --- a/settings/src/components/popoverMenu.vue +++ b/settings/src/components/popoverMenu.vue @@ -1,3 +1,25 @@ +<!-- + - @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com> + - + - @author John Molakvoæ <skjnldsv@protonmail.com> + - + - @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 <http://www.gnu.org/licenses/>. + - + --> + <template> <ul> <popover-item v-for="(item, key) in menu" :item="item" :key="key" /> diff --git a/settings/src/components/popoverMenu/popoverItem.vue b/settings/src/components/popoverMenu/popoverItem.vue index 710aff80aa6..dc4008a7e51 100644 --- a/settings/src/components/popoverMenu/popoverItem.vue +++ b/settings/src/components/popoverMenu/popoverItem.vue @@ -1,3 +1,25 @@ +<!-- + - @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com> + - + - @author John Molakvoæ <skjnldsv@protonmail.com> + - + - @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 <http://www.gnu.org/licenses/>. + - + --> + <template> <li> <!-- If item.href is set, a link will be directly used --> @@ -24,5 +46,5 @@ <script> export default { props: ['item'] -} +}; </script> diff --git a/settings/src/components/userList.vue b/settings/src/components/userList.vue index 1deadc38cff..a2d470745f9 100644 --- a/settings/src/components/userList.vue +++ b/settings/src/components/userList.vue @@ -1,3 +1,25 @@ +<!-- + - @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com> + - + - @author John Molakvoæ <skjnldsv@protonmail.com> + - + - @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 <http://www.gnu.org/licenses/>. + - + --> + <template> <div id="app-content" class="user-list-grid" v-on:scroll.passive="onScroll"> <div class="row" id="grid-header" :class="{'sticky': scrolled && !showConfig.showNewUserForm}"> diff --git a/settings/src/components/userList/userRow.vue b/settings/src/components/userList/userRow.vue index 9b1a164ce49..19d35e8d814 100644 --- a/settings/src/components/userList/userRow.vue +++ b/settings/src/components/userList/userRow.vue @@ -1,3 +1,25 @@ +<!-- + - @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com> + - + - @author John Molakvoæ <skjnldsv@protonmail.com> + - + - @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 <http://www.gnu.org/licenses/>. + - + --> + <template> <!-- Obfuscated user: Logged in user does not have permissions to see all of the data --> <div class="row" v-if="Object.keys(user).length ===1"> diff --git a/settings/src/main.js b/settings/src/main.js index c853635609e..93d8774e2fe 100644 --- a/settings/src/main.js +++ b/settings/src/main.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com> + * + * @author John Molakvoæ <skjnldsv@protonmail.com> + * + * @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 <http://www.gnu.org/licenses/>. + * + */ + import Vue from 'vue'; import { sync } from 'vuex-router-sync'; import App from './App.vue'; diff --git a/settings/src/router.js b/settings/src/router.js index bfcff91e992..90e3c27cca6 100644 --- a/settings/src/router.js +++ b/settings/src/router.js @@ -1,4 +1,27 @@ -import Vue from 'vue'; +/* + * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com> + * + * @author John Molakvoæ <skjnldsv@protonmail.com> + * @author Julius Härtl <jus@bitgrid.net> + * + * @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 <http://www.gnu.org/licenses/>. + * + */ + + import Vue from 'vue'; import Router from 'vue-router'; import Users from './views/Users'; import Apps from './views/Apps'; @@ -9,8 +32,8 @@ Vue.use(Router); * This is the list of routes where the vuejs app will * take over php to provide data * You need to forward the php routing (routes.php) to - * /settings/main.php, where the vue-router will ensure - * the proper route. + * the settings-vue template, where the vue-router will + * ensure the proper route. * ⚠️ Routes needs to match the php routes. */ diff --git a/settings/src/store/api.js b/settings/src/store/api.js index 7501a7bb4cc..8fc4dfde3e6 100644 --- a/settings/src/store/api.js +++ b/settings/src/store/api.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com> + * + * @author John Molakvoæ <skjnldsv@protonmail.com> + * + * @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 <http://www.gnu.org/licenses/>. + * + */ + import axios from 'axios'; const requestToken = document.getElementsByTagName('head')[0].getAttribute('data-requesttoken'); diff --git a/settings/src/store/index.js b/settings/src/store/index.js index 00f3ad809ad..00bcd67db39 100644 --- a/settings/src/store/index.js +++ b/settings/src/store/index.js @@ -1,3 +1,26 @@ +/* + * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com> + * + * @author John Molakvoæ <skjnldsv@protonmail.com> + * @author Julius Härtl <jus@bitgrid.net> + * + * @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 <http://www.gnu.org/licenses/>. + * + */ + import Vue from 'vue'; import Vuex from 'vuex'; import users from './users'; diff --git a/settings/src/store/oc.js b/settings/src/store/oc.js index 4bb82075e8a..afa13fe6b18 100644 --- a/settings/src/store/oc.js +++ b/settings/src/store/oc.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com> + * + * @author John Molakvoæ <skjnldsv@protonmail.com> + * + * @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 <http://www.gnu.org/licenses/>. + * + */ + import api from './api'; const state = {}; diff --git a/settings/src/store/settings.js b/settings/src/store/settings.js index 0ba827467a1..5f0bcfa60aa 100644 --- a/settings/src/store/settings.js +++ b/settings/src/store/settings.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com> + * + * @author John Molakvoæ <skjnldsv@protonmail.com> + * + * @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 <http://www.gnu.org/licenses/>. + * + */ + import api from './api'; const state = { diff --git a/settings/src/store/users.js b/settings/src/store/users.js index c1d81480541..142bc222b8b 100644 --- a/settings/src/store/users.js +++ b/settings/src/store/users.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com> + * + * @author John Molakvoæ <skjnldsv@protonmail.com> + * + * @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 <http://www.gnu.org/licenses/>. + * + */ + import api from './api'; const orderGroups = function(groups, orderBy) { diff --git a/settings/src/views/Users.vue b/settings/src/views/Users.vue index 8c59532c34e..605d71730d7 100644 --- a/settings/src/views/Users.vue +++ b/settings/src/views/Users.vue @@ -1,3 +1,25 @@ +<!-- + - @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com> + - + - @author John Molakvoæ <skjnldsv@protonmail.com> + - + - @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 <http://www.gnu.org/licenses/>. + - + --> + <template> <div id="app"> <app-navigation :menu="menu"> |