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/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2018-11-29 10:44:59 +00:00
|
|
|
import serverData from './serverData'
|
2018-11-12 20:12:28 +00:00
|
|
|
export default {
|
2018-11-29 10:44:59 +00:00
|
|
|
mixins: [
|
|
|
|
serverData
|
|
|
|
],
|
2018-11-12 20:12:28 +00:00
|
|
|
computed: {
|
|
|
|
currentUser: function() {
|
|
|
|
return OC.getCurrentUser()
|
|
|
|
},
|
|
|
|
socialId: function() {
|
2018-11-29 10:44:59 +00:00
|
|
|
const url = document.createElement('a')
|
|
|
|
url.setAttribute('href', this.serverData.cloudAddress)
|
|
|
|
return '@' + OC.getCurrentUser().uid + '@' + url.hostname
|
2018-11-21 12:13:21 +00:00
|
|
|
}
|
2018-11-12 20:12:28 +00:00
|
|
|
}
|
2018-11-21 12:13:21 +00:00
|
|
|
}
|