317 lines
20 KiB
JavaScript
317 lines
20 KiB
JavaScript
(window["webpackJsonpSettings"] = window["webpackJsonpSettings"] || []).push([["editor-guest"],{
|
|
|
|
/***/ "./apps/text/src/components/GuestNameDialog.vue":
|
|
/*!******************************************************!*\
|
|
!*** ./apps/text/src/components/GuestNameDialog.vue ***!
|
|
\******************************************************/
|
|
/*! exports provided: default */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _GuestNameDialog_vue_vue_type_template_id_0eec23a0_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./GuestNameDialog.vue?vue&type=template&id=0eec23a0&scoped=true& */ "./apps/text/src/components/GuestNameDialog.vue?vue&type=template&id=0eec23a0&scoped=true&");
|
|
/* harmony import */ var _GuestNameDialog_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./GuestNameDialog.vue?vue&type=script&lang=js& */ "./apps/text/src/components/GuestNameDialog.vue?vue&type=script&lang=js&");
|
|
/* empty/unused harmony star reexport *//* harmony import */ var _GuestNameDialog_vue_vue_type_style_index_0_id_0eec23a0_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss& */ "./apps/text/src/components/GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss&");
|
|
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* normalize component */
|
|
|
|
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
|
_GuestNameDialog_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
_GuestNameDialog_vue_vue_type_template_id_0eec23a0_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
|
_GuestNameDialog_vue_vue_type_template_id_0eec23a0_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
|
false,
|
|
null,
|
|
"0eec23a0",
|
|
null
|
|
|
|
)
|
|
|
|
/* hot reload */
|
|
if (false) { var api; }
|
|
component.options.__file = "apps/text/src/components/GuestNameDialog.vue"
|
|
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./apps/text/src/components/GuestNameDialog.vue?vue&type=script&lang=js&":
|
|
/*!*******************************************************************************!*\
|
|
!*** ./apps/text/src/components/GuestNameDialog.vue?vue&type=script&lang=js& ***!
|
|
\*******************************************************************************/
|
|
/*! exports provided: default */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_GuestNameDialog_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib!../../../../node_modules/vue-loader/lib??vue-loader-options!./GuestNameDialog.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/GuestNameDialog.vue?vue&type=script&lang=js&");
|
|
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_GuestNameDialog_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./apps/text/src/components/GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss&":
|
|
/*!****************************************************************************************************************!*\
|
|
!*** ./apps/text/src/components/GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss& ***!
|
|
\****************************************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_GuestNameDialog_vue_vue_type_style_index_0_id_0eec23a0_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-style-loader!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib??vue-loader-options!./GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss& */ "./node_modules/vue-style-loader/index.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss&");
|
|
/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_GuestNameDialog_vue_vue_type_style_index_0_id_0eec23a0_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_GuestNameDialog_vue_vue_type_style_index_0_id_0eec23a0_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_GuestNameDialog_vue_vue_type_style_index_0_id_0eec23a0_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_GuestNameDialog_vue_vue_type_style_index_0_id_0eec23a0_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
/* harmony default export */ __webpack_exports__["default"] = (_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_GuestNameDialog_vue_vue_type_style_index_0_id_0eec23a0_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./apps/text/src/components/GuestNameDialog.vue?vue&type=template&id=0eec23a0&scoped=true&":
|
|
/*!*************************************************************************************************!*\
|
|
!*** ./apps/text/src/components/GuestNameDialog.vue?vue&type=template&id=0eec23a0&scoped=true& ***!
|
|
\*************************************************************************************************/
|
|
/*! exports provided: render, staticRenderFns */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_GuestNameDialog_vue_vue_type_template_id_0eec23a0_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./GuestNameDialog.vue?vue&type=template&id=0eec23a0&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/GuestNameDialog.vue?vue&type=template&id=0eec23a0&scoped=true&");
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_GuestNameDialog_vue_vue_type_template_id_0eec23a0_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_GuestNameDialog_vue_vue_type_template_id_0eec23a0_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/GuestNameDialog.vue?vue&type=script&lang=js&":
|
|
/*!*****************************************************************************************************************************************************************!*\
|
|
!*** ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./apps/text/src/components/GuestNameDialog.vue?vue&type=script&lang=js& ***!
|
|
\*****************************************************************************************************************************************************************/
|
|
/*! exports provided: default */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _nextcloud_vue_dist_Directives_Tooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @nextcloud/vue/dist/Directives/Tooltip */ "./node_modules/@nextcloud/vue/dist/Directives/Tooltip.js");
|
|
/* harmony import */ var _nextcloud_vue_dist_Directives_Tooltip__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_nextcloud_vue_dist_Directives_Tooltip__WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony import */ var _nextcloud_vue_dist_Components_Avatar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @nextcloud/vue/dist/Components/Avatar */ "./node_modules/@nextcloud/vue/dist/Components/Avatar.js");
|
|
/* harmony import */ var _nextcloud_vue_dist_Components_Avatar__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_nextcloud_vue_dist_Components_Avatar__WEBPACK_IMPORTED_MODULE_1__);
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
name: 'GuestNameDialog',
|
|
components: {
|
|
Avatar: _nextcloud_vue_dist_Components_Avatar__WEBPACK_IMPORTED_MODULE_1___default.a
|
|
},
|
|
directives: {
|
|
tooltip: _nextcloud_vue_dist_Directives_Tooltip__WEBPACK_IMPORTED_MODULE_0___default.a
|
|
},
|
|
props: {
|
|
syncService: {
|
|
type: Object,
|
|
default: null
|
|
}
|
|
},
|
|
data: function data() {
|
|
return {
|
|
guestName: '',
|
|
guestNameBuffered: ''
|
|
};
|
|
},
|
|
computed: {
|
|
avatarUrl: function avatarUrl() {
|
|
var size = 32;
|
|
var avatarUrl = OC.generateUrl('/avatar/guest/{user}/{size}', {
|
|
user: this.guestNameBuffered,
|
|
size: size
|
|
});
|
|
return window.location.protocol + '//' + window.location.host + avatarUrl;
|
|
}
|
|
},
|
|
beforeMount: function beforeMount() {
|
|
this.guestName = this.syncService.session.guestName;
|
|
this.updateBufferedGuestName();
|
|
},
|
|
methods: {
|
|
setGuestName: function setGuestName() {
|
|
var _this = this;
|
|
|
|
var previousGuestName = this.syncService.session.guestName;
|
|
this.syncService.updateSession(this.guestName).then(function () {
|
|
localStorage.setItem('nick', _this.guestName);
|
|
|
|
_this.updateBufferedGuestName();
|
|
}).catch(function (e) {
|
|
_this.guestName = previousGuestName;
|
|
});
|
|
},
|
|
updateBufferedGuestName: function updateBufferedGuestName() {
|
|
this.guestNameBuffered = this.guestName;
|
|
}
|
|
}
|
|
});
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss&":
|
|
/*!********************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./apps/text/src/components/GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss& ***!
|
|
\********************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// Imports
|
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
|
|
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
// Module
|
|
exports.push([module.i, "form.guest-name-dialog[data-v-0eec23a0] {\n display: flex;\n max-width: 200px;\n margin: auto;\n margin-top: -2px;\n padding: 3px;\n}\nform.guest-name-dialog[data-v-0eec23a0] img {\n margin: 0 !important;\n}\nform.guest-name-dialog input[type=text][data-v-0eec23a0] {\n flex-grow: 1;\n}\nform.guest-name-dialog label[data-v-0eec23a0] {\n padding: 3px;\n height: 32px;\n}\n", ""]);
|
|
// Exports
|
|
module.exports = exports;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/GuestNameDialog.vue?vue&type=template&id=0eec23a0&scoped=true&":
|
|
/*!*******************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./apps/text/src/components/GuestNameDialog.vue?vue&type=template&id=0eec23a0&scoped=true& ***!
|
|
\*******************************************************************************************************************************************************************************************************************************/
|
|
/*! exports provided: render, staticRenderFns */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
|
var render = function() {
|
|
var _vm = this
|
|
var _h = _vm.$createElement
|
|
var _c = _vm._self._c || _h
|
|
return _c(
|
|
"form",
|
|
{
|
|
directives: [
|
|
{
|
|
name: "tooltip",
|
|
rawName: "v-tooltip",
|
|
value: _vm.t(
|
|
"text",
|
|
"Enter your name so other users can see who is editing"
|
|
),
|
|
expression:
|
|
"t('text', 'Enter your name so other users can see who is editing')"
|
|
}
|
|
],
|
|
staticClass: "guest-name-dialog",
|
|
on: {
|
|
submit: function($event) {
|
|
$event.preventDefault()
|
|
return _vm.setGuestName()
|
|
}
|
|
}
|
|
},
|
|
[
|
|
_c(
|
|
"label",
|
|
[
|
|
_c("Avatar", {
|
|
attrs: { url: _vm.avatarUrl, "disable-tooltip": true, size: 32 }
|
|
})
|
|
],
|
|
1
|
|
),
|
|
_vm._v(" "),
|
|
_c("input", {
|
|
directives: [
|
|
{
|
|
name: "model",
|
|
rawName: "v-model",
|
|
value: _vm.guestName,
|
|
expression: "guestName"
|
|
}
|
|
],
|
|
attrs: { type: "text", "aria-label": _vm.t("text", "Edit guest name") },
|
|
domProps: { value: _vm.guestName },
|
|
on: {
|
|
input: function($event) {
|
|
if ($event.target.composing) {
|
|
return
|
|
}
|
|
_vm.guestName = $event.target.value
|
|
}
|
|
}
|
|
}),
|
|
_vm._v(" "),
|
|
_c("input", {
|
|
staticClass: "icon-confirm",
|
|
attrs: {
|
|
type: "submit",
|
|
"aria-label": _vm.t("text", "Save guest name")
|
|
}
|
|
})
|
|
]
|
|
)
|
|
}
|
|
var staticRenderFns = []
|
|
render._withStripped = true
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/vue-style-loader/index.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss&":
|
|
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./node_modules/vue-style-loader!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./apps/text/src/components/GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss& ***!
|
|
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
|
|
// load the styles
|
|
var content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib??vue-loader-options!./GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss& */ "./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss&");
|
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
if(content.locals) module.exports = content.locals;
|
|
// add the styles to the DOM
|
|
var add = __webpack_require__(/*! ../../../../node_modules/vue-style-loader/lib/addStylesClient.js */ "./node_modules/vue-style-loader/lib/addStylesClient.js").default
|
|
var update = add("842bd5d8", content, false, {});
|
|
// Hot Module Replacement
|
|
if(false) {}
|
|
|
|
/***/ })
|
|
|
|
}]);
|
|
//# sourceMappingURL=vue-editor-guest.js.map?v=33f8317f810f63e13a76
|