diff --git a/404.html b/404.html index ff973d8..300772d 100644 --- a/404.html +++ b/404.html @@ -18,12 +18,12 @@ - - + +
diff --git a/assets/Acronym-S9nuEXx6.js b/assets/Acronym-CKQtJQOa.js similarity index 50% rename from assets/Acronym-S9nuEXx6.js rename to assets/Acronym-CKQtJQOa.js index f464680..b26af4e 100644 --- a/assets/Acronym-S9nuEXx6.js +++ b/assets/Acronym-CKQtJQOa.js @@ -1,8 +1,2 @@ -import{d as h,r as u,f as w,_ as f,c as p,a as t,w as g,v as x,g as A,t as b,h as T,o as m}from"./index-WLjNhXIC.js";const C={class:"tw-flex-col-center gap-4"},k=t("h1",{class:"mt-4 tw-h1"},"Acronym Generator",-1),B={class:"flex gap-4"},D={class:"tw-flex-col-center gap-4"},I={class:"capitalize"},P=h({__name:"Acronym",setup(M){const a=u(""),n=u(!1),s=u("");let c,l="";async function y(){await navigator.clipboard.writeText(l)}function i(){if(!a.value)return;const e=a.value.trim().replace(/ /g,""),o=/^[a-zA-Z]+$/.test(e);switch(!0){case e.length<1:n.value=!1,s.value="There can not be spaces in the input.";return;case!o:n.value=!1,s.value="You can only input letters A-Z.";default:l=_(e),n.value=!0,s.value=l}}function _(e){return e.toLowerCase().split("").reduce((o,d)=>{const v=Math.floor(Math.random()*c[d].length);return`${o} ${c[d][v]}`},"")}return w(async()=>{try{const{default:e}=await f(()=>import("./acronymWords-EBNY6PqB.js"),__vite__mapDeps([]));c=e}catch{console.error("You need to update your browser.")}}),(e,r)=>(m(),p("div",C,[k,t("div",B,[g(t("input",{"onUpdate:modelValue":r[0]||(r[0]=o=>a.value=o),class:"tw-input",placeholder:"Type a word here",onKeyup:A(i,["enter"])},null,544),[[x,a.value]]),t("button",{class:"tw-button w-24",onClick:i}," Generate ")]),t("div",D,[t("div",I,b(s.value),1),n.value?(m(),p("button",{key:0,class:"tw-button w-24",onClick:y}," Copy ")):T("",!0)])]))}});export{P as default}; -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = [] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -//# sourceMappingURL=Acronym-S9nuEXx6.js.map +import{d as h,r as u,f as w,_ as f,c as p,a as t,w as g,v as x,g as A,t as b,h as T,o as m}from"./index-CN8joU6i.js";const C={class:"tw-flex-col-center gap-4"},k=t("h1",{class:"mt-4 tw-h1"},"Acronym Generator",-1),B={class:"flex gap-4"},D={class:"tw-flex-col-center gap-4"},I={class:"capitalize"},P=h({__name:"Acronym",setup(M){const a=u(""),n=u(!1),s=u("");let c,l="";async function y(){await navigator.clipboard.writeText(l)}function i(){if(!a.value)return;const e=a.value.trim().replace(/ /g,""),o=/^[a-zA-Z]+$/.test(e);switch(!0){case e.length<1:n.value=!1,s.value="There can not be spaces in the input.";return;case!o:n.value=!1,s.value="You can only input letters A-Z.";default:l=_(e),n.value=!0,s.value=l}}function _(e){return e.toLowerCase().split("").reduce((o,d)=>{const v=Math.floor(Math.random()*c[d].length);return`${o} ${c[d][v]}`},"")}return w(async()=>{try{const{default:e}=await f(()=>import("./acronymWords-D3CdaOjA.js"),[]);c=e}catch{console.error("You need to update your browser.")}}),(e,r)=>(m(),p("div",C,[k,t("div",B,[g(t("input",{"onUpdate:modelValue":r[0]||(r[0]=o=>a.value=o),class:"tw-input",placeholder:"Type a word here",onKeyup:A(i,["enter"])},null,544),[[x,a.value]]),t("button",{class:"tw-button w-24",onClick:i}," Generate ")]),t("div",D,[t("div",I,b(s.value),1),n.value?(m(),p("button",{key:0,class:"tw-button w-24",onClick:y}," Copy ")):T("",!0)])]))}});export{P as default}; +//# sourceMappingURL=Acronym-CKQtJQOa.js.map diff --git a/assets/Acronym-CKQtJQOa.js.map b/assets/Acronym-CKQtJQOa.js.map new file mode 100644 index 0000000..7e6e420 --- /dev/null +++ b/assets/Acronym-CKQtJQOa.js.map @@ -0,0 +1 @@ +{"version":3,"mappings":"wUAIM,MAAAA,EAAeC,EAAI,EAAE,EACrBC,EAAaD,EAAI,EAAK,EACtBE,EAAgBF,EAAI,EAAE,EAGxB,IAAAG,EACAC,EAAc,GAElB,eAAeC,GAAc,CACtB,gBAAU,UAAU,UAAUD,CAAW,CAChD,CAEA,SAASE,GAAuB,CAC3B,IAACP,EAAa,MACjB,OAGD,MAAMQ,EAAgBR,EAAa,MAAM,KAAO,UAAQ,KAAM,EAAE,EAE1DS,EADmB,cACoB,KAAKD,CAAa,EAE/D,OAAQ,GAAM,CACb,KAAKA,EAAc,OAAS,EAC3BN,EAAW,MAAQ,GACnBC,EAAc,MAAQ,wCACtB,OAED,IAAK,CAACM,EACLP,EAAW,MAAQ,GACnBC,EAAc,MAAQ,kCAEvB,QACCE,EAAcK,EAA4BF,CAAa,EACvDN,EAAW,MAAQ,GACnBC,EAAc,MAAQE,CACxB,CACD,CAEA,SAASK,EAA4BC,EAAiB,CAGrD,OAFwBA,EAAQ,YAAY,EAAE,MAAM,EAAE,EAE/B,OACtB,CAACC,EAAuBC,IAA0B,CACjD,MAAMC,EAAc,KAAK,MACxB,KAAK,OAAW,EAAAV,EAAMS,CAAa,EAAE,QAEtC,MAAO,GAAGD,CAAa,IAAIR,EAAMS,CAAa,EAAEC,CAAW,CAAC,EAC7D,EACA,GAEF,CAEA,OAAAC,EAAU,SAAY,CACjB,IACH,KAAM,CAAE,QAASC,CAAiB,QAAAC,EAAA,IAAM,OACvC,4BACD,MACQb,EAAAY,OACO,CACf,QAAQ,MAAM,kCAAkC,CACjD,EACA","names":["acronymInput","ref","showButton","textToDisplay","words","acronymText","copyAcronym","acronymButtonPressed","massagedInput","containsOnlyLetters","getWordsFromProvidedAcronym","acronym","previousValue","currentLetter","randomIndex","onMounted","acronymWords","__vitePreload"],"ignoreList":[],"sources":["../../src/pages/Acronym.vue"],"sourcesContent":["\n\n\n\t\n\t\t\t\t\tHello, I'm Daniel Turčić (He/ They) and I'm a Software Engineer who\n\t\t\t\t\tcurrently works at Squarespace. I mostly do Frontend development and\n\t\t\t\t\treally enjoy (Java/Type)Script, Vue, and Node.\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\tI'm {{ myCurrentAge }}, a Vegetarian, and listen to an insane amount\n\t\t\t\t\tof music (check the music page of this site).\n\t\t\t\t
\n\t\t\t\n\t\t\t\t\tHello, I'm Daniel Turčić (He/ They) and I'm a Software Engineer who\n\t\t\t\t\tcurrently works at Squarespace. I mostly do Frontend development and\n\t\t\t\t\treally enjoy (Java/Type)Script, Vue, and Node.\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\tI'm {{ myCurrentAge }}, a Vegetarian, and listen to an insane amount\n\t\t\t\t\tof music (check the music page of this site).\n\t\t\t\t
\n\t\t\t