2023-01-19 16:18:11 +00:00
|
|
|
/**
|
2018-11-12 20:12:28 +00:00
|
|
|
* @copyright Copyright (c) 2018 Julius Härtl <jus@bitgrid.net>
|
|
|
|
*
|
|
|
|
* @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/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2023-01-19 16:18:11 +00:00
|
|
|
import { getCurrentUser } from '@nextcloud/auth'
|
|
|
|
|
2022-10-27 13:07:12 +00:00
|
|
|
import serverData from './serverData.js'
|
2023-01-19 16:18:11 +00:00
|
|
|
|
2018-11-12 20:12:28 +00:00
|
|
|
export default {
|
2018-11-29 10:44:59 +00:00
|
|
|
mixins: [
|
2022-10-27 13:07:12 +00:00
|
|
|
serverData,
|
2018-11-29 10:44:59 +00:00
|
|
|
],
|
2018-11-12 20:12:28 +00:00
|
|
|
computed: {
|
2018-12-05 08:48:02 +00:00
|
|
|
currentUser() {
|
2023-01-19 16:18:11 +00:00
|
|
|
return getCurrentUser()
|
2018-11-12 20:12:28 +00:00
|
|
|
},
|
2018-12-05 08:48:02 +00:00
|
|
|
socialId() {
|
|
|
|
return '@' + this.cloudId
|
|
|
|
},
|
|
|
|
cloudId() {
|
2018-12-21 16:33:29 +00:00
|
|
|
return this.currentUser.uid + '@' + this.hostname
|
2022-10-27 13:07:12 +00:00
|
|
|
},
|
|
|
|
},
|
2018-11-21 12:13:21 +00:00
|
|
|
}
|