Welcome to mirror list, hosted at ThFree Co, Russian Federation.

editor-guest.js « js - github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 13aea88f5f396c45759a80186812b873132a3916 (plain)
1
2
"use strict";(self.webpackChunktext=self.webpackChunktext||[]).push([["editor-guest"],{24256:(e,n,t)=>{t.d(n,{Z:()=>r});var a=t(87537),s=t.n(a),i=t(23645),o=t.n(i)()(s());o.push([e.id,"form.guest-name-dialog[data-v-08efae4a]{display:flex;align-items:center;padding:6px}form.guest-name-dialog[data-v-08efae4a] img{margin:0 !important}form.guest-name-dialog input[type=text][data-v-08efae4a]{flex-grow:1}form.guest-name-dialog label[data-v-08efae4a]{padding-right:3px;height:32px}","",{version:3,sources:["webpack://./src/components/GuestNameDialog.vue"],names:[],mappings:"AAwFA,wCACC,YAAA,CACA,kBAAA,CACA,WAAA,CAEA,4CACC,mBAAA,CAGD,yDACC,WAAA,CAED,8CACC,iBAAA,CACA,WAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nform.guest-name-dialog {\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: 6px;\n\n\t&::v-deep img {\n\t\tmargin: 0 !important;\n\t}\n\n\tinput[type=text] {\n\t\tflex-grow: 1;\n\t}\n\tlabel {\n\t\tpadding-right: 3px;\n\t\theight: 32px;\n\t}\n}\n"],sourceRoot:""}]);const r=o},50169:(e,n,t)=>{t.r(n),t.d(n,{default:()=>y});var a=t(15168),s=t.n(a),i=t(28017),o=t.n(i),r=t(79753),u=t(13721);const m={name:"GuestNameDialog",components:{Avatar:o()},directives:{tooltip:s()},mixins:[u.BG],data:function(){return{guestName:"",guestNameBuffered:""}},computed:{avatarUrl:function(){var e=(0,r.generateUrl)("/avatar/guest/{user}/{size}",{user:this.guestNameBuffered,size:32});return window.location.protocol+"//"+window.location.host+e}},beforeMount:function(){this.guestName=this.$syncService.session.guestName,this.updateBufferedGuestName()},methods:{setGuestName:function(){var e=this,n=this.$syncService.session.guestName;this.$syncService.updateSession(this.guestName).then((function(){localStorage.setItem("nick",e.guestName),e.updateBufferedGuestName()})).catch((function(t){e.guestName=n}))},updateBufferedGuestName:function(){this.guestNameBuffered=this.guestName}}};var l=t(93379),g=t.n(l),d=t(7795),c=t.n(d),p=t(90569),f=t.n(p),A=t(3565),v=t.n(A),h=t(19216),C=t.n(h),N=t(44589),x=t.n(N),w=t(24256),b={};b.styleTagTransform=x(),b.setAttributes=v(),b.insert=f().bind(null,"head"),b.domAPI=c(),b.insertStyleElement=C();g()(w.Z,b);w.Z&&w.Z.locals&&w.Z.locals;const y=(0,t(51900).Z)(m,(function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("form",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.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(n){return n.preventDefault(),e.setGuestName()}}},[t("label",[t("Avatar",{attrs:{url:e.avatarUrl,"disable-tooltip":!0,size:32}})],1),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.guestName,expression:"guestName"}],attrs:{type:"text","aria-label":e.t("text","Edit guest name")},domProps:{value:e.guestName},on:{input:function(n){n.target.composing||(e.guestName=n.target.value)}}}),e._v(" "),t("input",{staticClass:"icon-confirm",attrs:{type:"submit","aria-label":e.t("text","Save guest name"),value:""}})])}),[],!1,null,"08efae4a",null).exports}}]);
//# sourceMappingURL=editor-guest.js.map?v=dcc0b5208a6ad41707e7