Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion js/firstrunwizard-settings.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -994,5 +994,5 @@ Language-Team: Zulu (South Africa) (https://app.transifex.com/nextcloud/teams/64
Content-Type: text/plain; charset=UTF-8
Language: zu_ZA
Plural-Forms: nplurals=2; plural=(n != 1);
`]},Undo:{msgid:"Undo",comments:{reference:"lib/toast.ts:223"},msgstr:[""]}}}}}].map(e=>go.addTranslation(e.locale,e.json));const Fs=go.build();Fs.ngettext.bind(Fs),Fs.gettext.bind(Fs);gu().setApp("@nextcloud/dialogs").detectLogLevel().build();const l3="off",m3="polite",d3="assertive";var fn=(e=>(e[e.OFF=l3]="OFF",e[e.POLITE=m3]="POLITE",e[e.ASSERTIVE=d3]="ASSERTIVE",e))(fn||{});const c3=7e3;function g3(e,t){if(t={timeout:c3,isHTML:!1,type:void 0,selector:void 0,onRemove:()=>{},onClick:void 0,close:!0,...t},typeof e=="string"&&!t.isHTML){const i=document.createElement("div");i.innerHTML=e,e=i.innerText}let a=t.type??"";typeof t.onClick=="function"&&(a+=" toast-with-click ");const s=e instanceof Node;let n=fn.POLITE;t.ariaLive?n=t.ariaLive:(t.type==="toast-error"||t.type==="toast-undo")&&(n=fn.ASSERTIVE);const r=u3({[s?"node":"text"]:e,duration:t.timeout,callback:t.onRemove,onClick:t.onClick,close:t.close,gravity:"top",selector:t.selector,position:"right",backgroundColor:"",className:"dialogs "+a,escapeMarkup:!t.isHTML,ariaLive:n});return r.showToast(),r}function h3(e,t){return g3(e,{...t,type:"toast-success"})}const f3=Ze({__name:"SettingsServer",setup(e){const t=hu(),a=te(Qn),s=te(0);function n(){try{window.navigator.clipboard.writeText(t),h3(Nt("firstrunwizard","URL copied")),s.value&&window.clearTimeout(s.value),a.value=fu,s.value=window.setTimeout(()=>{a.value=Qn},3e3)}catch{window.prompt(Nt("firstrunwizard","Could not copy the URL, please copy manually"),t)}}return(r,i)=>(E(),Ae(f(wn),{name:f(Nt)("firstrunwizard","Server address"),description:f(Nt)("firstrunwizard","Use this link to connect your apps and desktop client to this server:")},{default:ke(()=>[tt(f(Cl),{id:"endpoint-url",class:De(r.$style.input),label:f(Nt)("firstrunwizard","Server address"),"show-trailing-button":"",readonly:"",value:f(t),onTrailingButtonClick:n},{"trailing-button-icon":ke(()=>[tt(f(Sa),{path:a.value},null,8,["path"])]),_:1},8,["class","label","value"])]),_:1},8,["name","description"]))}}),p3="_input_ybjc8_2",v3={input:p3},y3={$style:v3},w3=pn(f3,[["__cssModules",y3]]),C3=Ze({__name:"PersonalSettings",setup(e){return(t,a)=>(E(),j(Me,null,[tt(Ju),tt(ju),tt(w3)],64))}}),x3=pu(C3);x3.mount("#firstrunwizard-settings");
`]},Undo:{msgid:"Undo",comments:{reference:"lib/toast.ts:223"},msgstr:[""]}}}}}].map(e=>go.addTranslation(e.locale,e.json));const Fs=go.build();Fs.ngettext.bind(Fs),Fs.gettext.bind(Fs);gu().setApp("@nextcloud/dialogs").detectLogLevel().build();const l3="off",m3="polite",d3="assertive";var fn=(e=>(e[e.OFF=l3]="OFF",e[e.POLITE=m3]="POLITE",e[e.ASSERTIVE=d3]="ASSERTIVE",e))(fn||{});const c3=7e3;function g3(e,t){if(t={timeout:c3,isHTML:!1,type:void 0,selector:void 0,onRemove:()=>{},onClick:void 0,close:!0,...t},typeof e=="string"&&!t.isHTML){const i=document.createElement("div");i.innerHTML=e,e=i.innerText}let a=t.type??"";typeof t.onClick=="function"&&(a+=" toast-with-click ");const s=e instanceof Node;let n=fn.POLITE;t.ariaLive?n=t.ariaLive:(t.type==="toast-error"||t.type==="toast-undo")&&(n=fn.ASSERTIVE);const r=u3({[s?"node":"text"]:e,duration:t.timeout,callback:t.onRemove,onClick:t.onClick,close:t.close,gravity:"top",selector:t.selector,position:"right",backgroundColor:"",className:"dialogs "+a,escapeMarkup:!t.isHTML,ariaLive:n});return r.showToast(),r}function h3(e,t){return g3(e,{...t,type:"toast-success"})}const f3=Ze({__name:"SettingsServer",setup(e){const t=hu(),a=te(Qn),s=te(0);function n(){try{window.navigator.clipboard.writeText(t),h3(Nt("firstrunwizard","URL copied")),s.value&&window.clearTimeout(s.value),a.value=fu,s.value=window.setTimeout(()=>{a.value=Qn},3e3)}catch{window.prompt(Nt("firstrunwizard","Could not copy the URL, please copy manually"),t)}}return(r,i)=>(E(),Ae(f(wn),{name:f(Nt)("firstrunwizard","Server address"),description:f(Nt)("firstrunwizard","Use this link to connect your apps and desktop client to this server:")},{default:ke(()=>[tt(f(Cl),{id:"endpoint-url",class:De(r.$style.input),label:f(Nt)("firstrunwizard","Server address"),"show-trailing-button":"",readonly:"","model-value":f(t),onTrailingButtonClick:n},{"trailing-button-icon":ke(()=>[tt(f(Sa),{path:a.value},null,8,["path"])]),_:1},8,["class","label","model-value"])]),_:1},8,["name","description"]))}}),p3="_input_ybjc8_2",v3={input:p3},y3={$style:v3},w3=pn(f3,[["__cssModules",y3]]),C3=Ze({__name:"PersonalSettings",setup(e){return(t,a)=>(E(),j(Me,null,[tt(Ju),tt(ju),tt(w3)],64))}}),x3=pu(C3);x3.mount("#firstrunwizard-settings");
//# sourceMappingURL=firstrunwizard-settings.mjs.map
2 changes: 1 addition & 1 deletion js/firstrunwizard-settings.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/settings/SettingsServer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
:label="t('firstrunwizard', 'Server address')"
show-trailing-button
readonly
:value="url"
:model-value="url"
@trailing-button-click="onCopyContent">
<template #trailing-button-icon>
<NcIconSvgWrapper :path="copyIcon" />
Expand Down