Update dependencies and refactor routing: Upgrade Tiptap extensions to version 3.22.2 in package.json and package-lock.json. Enhance router configuration by introducing route names for better maintainability and adding new core routes for home, terms, and privacy policy. Adjust HTML asset references for improved loading efficiency.
This commit is contained in:
2
public/assets/RegisterContent-DMtCOSqN.js
Normal file
2
public/assets/RegisterContent-DMtCOSqN.js
Normal file
@@ -0,0 +1,2 @@
|
||||
import{D as e,E as t,Z as n,l as r,m as i,p as a,s as o,t as s,u as c,w as l,x as u}from"./_plugin-vue_export-helper-CCRG-STz.js";import{a as d,r as f}from"./runtime-dom.esm-bundler-D2hy5fF2.js";import{i as p}from"./router-fJ3nWd5S.js";var m={name:`RegisterComponent`,components:{},data(){return{name:``,email:``,password:``,dialogTitle:``,dialogMessage:``,dialogVisible:!1}},methods:{async register(){try{let e=await p.post(`/auth/register`,{name:this.name,email:this.email,password:this.password});this.showDialog(`Registrierung erfolgreich`,e.data?.message||`Ihr Konto wurde erfolgreich erstellt.`),this.name=``,this.email=``,this.password=``}catch(e){let t=e?.response?.data?.message||e?.message||`Ein unbekannter Fehler ist aufgetreten`;this.showDialog(`Fehler`,t)}},showDialog(e,t){this.dialogTitle=e,this.dialogMessage=t,this.dialogVisible=!0},closeDialog(){this.dialogVisible=!1}}},h={class:`register`},g={key:0,class:`dialog`},_={class:`dialog-content`};function v(s,p,m,v,y,b){let x=l(`router-link`);return u(),c(`div`,h,[p[11]||=o(`h2`,null,`Registrieren`,-1),o(`form`,{onSubmit:p[3]||=d((...e)=>b.register&&b.register(...e),[`prevent`])},[p[5]||=o(`label`,{for:`name`},`Name:`,-1),e(o(`input`,{type:`text`,id:`name`,"onUpdate:modelValue":p[0]||=e=>y.name=e,required:``},null,512),[[f,y.name]]),p[6]||=o(`label`,{for:`email`},`Email-Adresse:`,-1),e(o(`input`,{type:`email`,id:`email`,"onUpdate:modelValue":p[1]||=e=>y.email=e,required:``},null,512),[[f,y.email]]),p[7]||=o(`label`,{for:`password`},`Passwort:`,-1),e(o(`input`,{type:`password`,id:`password`,"onUpdate:modelValue":p[2]||=e=>y.password=e,required:``},null,512),[[f,y.password]]),p[8]||=o(`button`,{type:`submit`},`Registrieren`,-1)],32),o(`p`,null,[i(x,{to:`/login`},{default:t(()=>[...p[9]||=[a(`Login`,-1)]]),_:1})]),o(`p`,null,[i(x,{to:`/forgot-password`},{default:t(()=>[...p[10]||=[a(`Passwort vergessen?`,-1)]]),_:1})]),y.dialogVisible?(u(),c(`div`,g,[o(`div`,_,[o(`h3`,null,n(y.dialogTitle),1),o(`p`,null,n(y.dialogMessage),1),o(`button`,{type:`button`,onClick:p[4]||=(...e)=>b.closeDialog&&b.closeDialog(...e)},`Schließen`)])])):r(``,!0)])}var y=s(m,[[`render`,v],[`__scopeId`,`data-v-70d90412`]]);export{y as default};
|
||||
//# sourceMappingURL=RegisterContent-DMtCOSqN.js.map
|
||||
Reference in New Issue
Block a user