Commit a92a10e1 authored by quentin.vrel's avatar quentin.vrel

build test

parent 1d8bf9cf
.DS_Store
node_modules
/dist
#/dist
# local env files
......
#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50}#nav{padding:30px}#nav a{font-weight:700;color:#2c3e50}#nav a.router-link-exact-active{color:#42b983}html{background-color:#000};.vue-user-ribon--wrap{display:flex;right:0;position:absolute}.vue-user-ribon--wrap *{align-self:center;margin:5px}.vue-user-ribon--wrap strong{margin:0}p{color:#fff}.home{display:flex;flex-direction:column}
\ No newline at end of file
<svg width="53" height="48" viewBox="0 0 53 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M31.9998 2.66669H34.4998C34.4998 1.28598 33.3805 0.166687 31.9998 0.166687V2.66669ZM31.9998 45.3333V47.8333C33.3805 47.8333 34.4998 46.7141 34.4998 45.3333H31.9998ZM2.6665 45.3333H0.166504C0.166504 46.7141 1.28579 47.8333 2.6665 47.8333L2.6665 45.3333ZM2.6665 2.66669V0.166687C1.28579 0.166687 0.166504 1.28598 0.166504 2.66669L2.6665 2.66669ZM25.3333 21.5C23.9525 21.5 22.8333 22.6193 22.8333 24C22.8333 25.3807 23.9525 26.5 25.3333 26.5V21.5ZM49.3332 24L51.101 25.7678L52.8688 24L51.101 22.2322L49.3332 24ZM39.5655 30.2322C38.5892 31.2085 38.5892 32.7915 39.5655 33.7678C40.5418 34.7441 42.1247 34.7441 43.101 33.7678L39.5655 30.2322ZM43.101 14.2322C42.1247 13.2559 40.5418 13.2559 39.5655 14.2322C38.5892 15.2085 38.5892 16.7915 39.5655 17.7678L43.101 14.2322ZM29.4998 2.66669V45.3333H34.4998V2.66669H29.4998ZM31.9998 42.8333H2.6665V47.8333H31.9998V42.8333ZM5.1665 45.3333V2.66669H0.166504V45.3333H5.1665ZM2.6665 5.16669H31.9998V0.166687H2.6665V5.16669ZM25.3333 26.5H49.3332V21.5H25.3333V26.5ZM43.101 33.7678L51.101 25.7678L47.5655 22.2322L39.5655 30.2322L43.101 33.7678ZM51.101 22.2322L43.101 14.2322L39.5655 17.7678L47.5655 25.7678L51.101 22.2322Z" fill="#CCCCCC"/>
</svg>
\ No newline at end of file
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>frontend</title><link href="/js/about.c6955b34.js" rel="prefetch"><link href="/css/app.780c45f7.css" rel="preload" as="style"><link href="/js/app.b85903d7.js" rel="preload" as="script"><link href="/js/chunk-vendors.0925a24c.js" rel="preload" as="script"><link href="/css/app.780c45f7.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but frontend doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.0925a24c.js"></script><script src="/js/app.b85903d7.js"></script></body></html>
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["about"],{"722f":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},s=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"about"},[n("h1",[t._v("This is an about page")])])}],u=n("da2b"),c={},i=Object(u["a"])(c,a,s,!1,null,null,null);e["default"]=i.exports}}]);
//# sourceMappingURL=about.c6955b34.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///C:/Users/quent/Documents/CDAW/projet-cdaw/frontend/src/views/About.vue?c4da","webpack:///C:/Users/quent/Documents/CDAW/projet-cdaw/frontend/src/views/About.vue"],"names":["render","_vm","this","_h","$createElement","_self","_c","_m","staticRenderFns","staticClass","_v","script","component"],"mappings":"gHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAsBH,EAAII,MAAMC,GAAO,OAAOL,EAAIM,GAAG,IACnGC,EAAkB,CAAC,WAAa,IAAIP,EAAIC,KAASC,EAAGF,EAAIG,eAAmBE,EAAGL,EAAII,MAAMC,IAAIH,EAAG,OAAOG,EAAG,MAAM,CAACG,YAAY,SAAS,CAACH,EAAG,KAAK,CAACL,EAAIS,GAAG,+B,YCAtJC,EAAS,GAKTC,EAAY,eACdD,EACAX,EACAQ,GACA,EACA,KACA,KACA,MAIa,aAAAI,E","file":"js/about.c6955b34.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _vm._m(0)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"about\"},[_c('h1',[_vm._v(\"This is an about page\")])])}]\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./About.vue?vue&type=template&id=3d1d883e&\"\nvar script = {}\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
\ No newline at end of file
(function(t){function e(e){for(var r,i,s=e[0],u=e[1],c=e[2],l=0,f=[];l<s.length;l++)i=s[l],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&f.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(t[r]=u[r]);p&&p(e);while(f.length)f.shift()();return a.push.apply(a,c||[]),n()}function n(){for(var t,e=0;e<a.length;e++){for(var n=a[e],r=!0,i=1;i<n.length;i++){var u=n[i];0!==o[u]&&(r=!1)}r&&(a.splice(e--,1),t=s(s.s=n[0]))}return t}var r={},o={app:0},a=[];function i(t){return s.p+"js/"+({about:"about"}[t]||t)+"."+{about:"c6955b34"}[t]+".js"}function s(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.e=function(t){var e=[],n=o[t];if(0!==n)if(n)e.push(n[2]);else{var r=new Promise((function(e,r){n=o[t]=[e,r]}));e.push(n[2]=r);var a,u=document.createElement("script");u.charset="utf-8",u.timeout=120,s.nc&&u.setAttribute("nonce",s.nc),u.src=i(t);var c=new Error;a=function(e){u.onerror=u.onload=null,clearTimeout(l);var n=o[t];if(0!==n){if(n){var r=e&&("load"===e.type?"missing":e.type),a=e&&e.target&&e.target.src;c.message="Loading chunk "+t+" failed.\n("+r+": "+a+")",c.name="ChunkLoadError",c.type=r,c.request=a,n[1](c)}o[t]=void 0}};var l=setTimeout((function(){a({type:"timeout",target:u})}),12e4);u.onerror=u.onload=a,document.head.appendChild(u)}return Promise.all(e)},s.m=t,s.c=r,s.d=function(t,e,n){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},s.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)s.d(n,r,function(e){return t[e]}.bind(null,r));return n},s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="/",s.oe=function(t){throw console.error(t),t};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],c=u.push.bind(u);u.push=e,u=u.slice();for(var l=0;l<u.length;l++)e(u[l]);var p=c;a.push([0,"chunk-vendors"]),n()})({0:function(t,e,n){t.exports=n("e4f7")},2643:function(t,e,n){},"461a":function(t,e,n){},a1ee:function(t,e,n){"use strict";n("461a")},aa3d:function(t,e,n){},b747:function(t,e,n){"use strict";n("2643")},e4f7:function(t,e,n){"use strict";n.r(e);var r=n("187b"),o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},a=[],i=(n("fa77"),n("da2b")),s={},u=Object(i["a"])(s,o,a,!1,null,null,null),c=u.exports,l=(n("8b36"),n("3844")),p=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"home"},[n("user-ribbon",{attrs:{username:"Josie Péritel",pathToImage:"avatar/criquette.jpg"}})],1)},f=[],h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-user-ribon--wrap",attrs:{"aria-hidden":"true"}},[n("p",[t._v("Vous êtres connecté "),n("strong",[t._v(t._s(t.username))]),t._v(".")]),n("avatar",{attrs:{username:this.username,src:this.pathToImage}}),n("img",{attrs:{src:"icons/logout.svg",height:"40"}})],1)},d=[],m=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{style:t.style,attrs:{"aria-hidden":"true"}},[this.isImage?n("img",{staticStyle:{display:"none"},attrs:{src:this.src}}):t._e(),n("span",{directives:[{name:"show",rawName:"v-show",value:!this.isImage,expression:"!this.isImage"}]},[t._v(t._s(t.userInitial))])])},g=[],b=(n("e6a8"),n("fcc8"),n("7d6b"),n("d9ef"),n("4587"),n("6f08"),n("493d"),n("6762"),function(t){for(var e=t.split(/[ -]/),n="",r=0;r<e.length;r++)n+=e[r].charAt(0);return n.length>3&&-1!==n.search(/[A-Z]/)&&(n=n.replace(/[a-z]+/g,"")),n=n.substr(0,3).toUpperCase(),n}),v={name:"avatar",props:{username:{type:String},inline:{type:Boolean},size:{type:Number,default:50},src:{type:String},rounded:{type:Boolean,default:!0},lighten:{type:Number,default:80},parser:{type:Function,default:b,validator:function(t){return"string"===typeof t("John",b)}}},data:function(){return{backgroundColor:"#CCCCCC",imgError:!1}},mounted:function(){this.isImage||this.$emit("avatar-initials",this.username,this.userInitial)},computed:{background:function(){return this.isImage?"":this.backgroundColor||this.randomBackgroundColor(this.username.length,this.backgroundColors)},isImage:function(){return console.log("caca"),!this.imgError&&Boolean(this.src)},style:function(){var t={display:"flex",width:"".concat(this.size,"px"),height:"".concat(this.size,"px"),borderRadius:this.rounded?"50%":0,lineHeight:"".concat(this.size+Math.floor(this.size/20),"px"),fontWeight:"bold",alignItems:"center",justifyContent:"center",textAlign:"center",userSelect:"none"},e={background:"transparent url('".concat(this.src,"') no-repeat scroll 0% 0% / ").concat(this.size,"px ").concat(this.size,"px content-box border-box")},n={backgroundColor:this.background,font:"".concat(Math.floor(this.size/2.5),"px/").concat(this.size,"px Helvetica, Arial, sans-serif"),color:this.fontColor},r=this.isImage?e:n;return Object.assign(t,r),t},userInitial:function(){if(!this.isImage){var t=this.initials||this.parser(this.username,b);return t}return""}},methods:{initial:b,onImgError:function(){this.imgError=!0},randomBackgroundColor:function(t,e){return e[t%e.length]},lightenColor:function(t,e){var n=!1;"#"===t[0]&&(t=t.slice(1),n=!0);var r=parseInt(t,16),o=(r>>16)+e;o>255?o=255:o<0&&(o=0);var a=(r>>8&255)+e;a>255?a=255:a<0&&(a=0);var i=(255&r)+e;return i>255?i=255:i<0&&(i=0),(n?"#":"")+(i|a<<8|o<<16).toString(16)}}},y=v,x=Object(i["a"])(y,m,g,!1,null,null,null),w=x.exports,_={name:"Home",props:{username:{type:String},pathToImage:{type:String}},components:{Avatar:w}},C=_,j=(n("a1ee"),Object(i["a"])(C,h,d,!1,null,null,null)),I=j.exports,O={name:"Home",components:{UserRibbon:I}},k=O,S=(n("b747"),Object(i["a"])(k,p,f,!1,null,null,null)),E=S.exports;r["a"].use(l["a"]);var z=[{path:"/",name:"Home",component:E},{path:"/about",name:"About",component:function(){return n.e("about").then(n.bind(null,"722f"))}}],P=new l["a"]({routes:z}),T=P;r["a"].config.productionTip=!1,new r["a"]({router:T,render:function(t){return t(c)}}).$mount("#app")},fa77:function(t,e,n){"use strict";n("aa3d")}});
//# sourceMappingURL=app.b85903d7.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///C:/Users/quent/Documents/CDAW/projet-cdaw/frontend/src/components/UserRibbon.vue?0e2f","webpack:///C:/Users/quent/Documents/CDAW/projet-cdaw/frontend/src/views/Home.vue?574a","webpack:///C:/Users/quent/Documents/CDAW/projet-cdaw/frontend/src/App.vue?f5cb","webpack:///C:/Users/quent/Documents/CDAW/projet-cdaw/frontend/src/App.vue","webpack:///C:/Users/quent/Documents/CDAW/projet-cdaw/frontend/src/views/Home.vue?c031","webpack:///C:/Users/quent/Documents/CDAW/projet-cdaw/frontend/src/components/UserRibbon.vue?e95d","webpack:///C:/Users/quent/Documents/CDAW/projet-cdaw/frontend/src/components/Avatar.vue?40cf","webpack:///C:/Users/quent/Documents/CDAW/projet-cdaw/frontend/src/components/Avatar.vue","webpack:///C:/Users/quent/Documents/CDAW/projet-cdaw/frontend/src/components/Avatar.vue?e607","webpack:///C:/Users/quent/Documents/CDAW/projet-cdaw/frontend/src/components/Avatar.vue?1bb4","webpack:///C:/Users/quent/Documents/CDAW/projet-cdaw/frontend/src/components/UserRibbon.vue","webpack:///C:/Users/quent/Documents/CDAW/projet-cdaw/frontend/src/components/UserRibbon.vue?a1a0","webpack:///C:/Users/quent/Documents/CDAW/projet-cdaw/frontend/src/components/UserRibbon.vue?e4c0","webpack:///C:/Users/quent/Documents/CDAW/projet-cdaw/frontend/src/views/Home.vue","webpack:///C:/Users/quent/Documents/CDAW/projet-cdaw/frontend/src/views/Home.vue?d9fd","webpack:///C:/Users/quent/Documents/CDAW/projet-cdaw/frontend/src/views/Home.vue?a0fa","webpack:///C:/Users/quent/Documents/CDAW/projet-cdaw/frontend/src/router/index.js","webpack:///C:/Users/quent/Documents/CDAW/projet-cdaw/frontend/src/main.js","webpack:///C:/Users/quent/Documents/CDAW/projet-cdaw/frontend/src/App.vue?d560"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","jsonpScriptSrc","p","exports","module","l","e","promises","installedChunkData","promise","Promise","resolve","reject","onScriptComplete","script","document","createElement","charset","timeout","nc","setAttribute","src","error","Error","event","onerror","onload","clearTimeout","chunk","errorType","type","realSrc","target","message","name","request","undefined","setTimeout","head","appendChild","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","err","console","jsonpArray","window","oldJsonpFunction","slice","_vm","this","_h","$createElement","_c","_self","attrs","staticRenderFns","component","staticClass","_v","_s","username","pathToImage","style","staticStyle","_e","directives","rawName","isImage","expression","userInitial","parts","initials","charAt","search","replace","substr","toUpperCase","props","String","inline","Boolean","size","Number","default","rounded","lighten","parser","Function","getInitials","validator","backgroundColor","imgError","mounted","$emit","computed","background","randomBackgroundColor","backgroundColors","log","display","width","height","borderRadius","lineHeight","fontWeight","alignItems","justifyContent","textAlign","userSelect","font","color","fontColor","assign","backgroundAndFontStyle","methods","initial","onImgError","colors","seed","lightenColor","usePound","hex","num","parseInt","amt","b","g","components","Avatar","UserRibbon","Vue","use","VueRouter","routes","path","Home","router","config","productionTip","render","h","App","$mount"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAG/Be,GAAqBA,EAAoBhB,GAE5C,MAAMO,EAASC,OACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAA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AR,8CACQ,OAAOI,EAET,MAAO,KAIX2C,QAAS,CACPC,QAAS3B,EAET4B,WAHJ,WAIMnE,KAAK0C,UAAW,GAGlBK,sBAPJ,SAOA,KACM,OAAOqB,EAAOC,EAAO,EAA3B,SAGIC,aAXJ,SAWA,KAEM,IAAIC,GAAW,EAEA,MAAXC,EAAI,KACNA,EAAMA,EAAI1E,MAAM,GAChByE,GAAW,GAGb,IAAIE,EAAMC,SAASF,EAAK,IACpB9F,GAAK+F,GAAO,IAAME,EAElBjG,EAAI,IAAKA,EAAI,IACvB,WAEM,IAAIkG,GAAK,GAAf,SAEUA,EAAI,IAAKA,EAAI,IACvB,WAEM,IAAIC,GAAW,IAANJ,GAAkBE,EAK3B,OAHIE,EAAI,IAAKA,EAAI,IACvB,YAEcN,EAAW,IAAM,KAAOM,EAAI,GAA1C,yBCpKgV,ICO5U,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,KACA,MAIa,I,QCLf,GACElH,KAAM,OACNiE,MAAO,CACLjB,SAAU,CACRpD,KAAMsE,QAGRjB,YAAa,CACXrD,KAAMsE,SAGViD,WAAY,CACVC,OAAJ,ICzBoV,ICQhV,G,UAAY,eACd,EACA,EACA,GACA,EACA,KACA,KACA,OAIa,I,QCTf,GACEpH,KAAM,OACNmH,WAAY,CACVE,WAAJ,ICb8U,ICQ1U,G,UAAY,eACd,EACA,EACA,GACA,EACA,KACA,KACA,OAIa,I,QCffC,OAAIC,IAAIC,QAER,IAAMC,EAAS,CACb,CACEC,KAAM,IACN1H,KAAM,OACN4C,UAAW+E,GAEb,CACED,KAAM,SACN1H,KAAM,QAIN4C,UAAW,kBAAM,0CAIfgF,EAAS,IAAIJ,OAAU,CAC3BC,WAGaG,ICtBfN,OAAIO,OAAOC,eAAgB,EAE3B,IAAIR,OAAI,CACNM,SACAG,OAAQ,SAAAC,GAAC,OAAIA,EAAEC,MACdC,OAAO,S,kCCTV","file":"js/app.b85903d7.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"js/\" + ({\"about\":\"about\"}[chunkId]||chunkId) + \".\" + {\"about\":\"c6955b34\"}[chunkId] + \".js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UserRibbon.vue?vue&type=style&index=0&lang=css&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Home.vue?vue&type=style&index=0&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('router-view')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=502061e0&\"\nvar script = {}\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"home\"},[_c('user-ribbon',{attrs:{\"username\":\"Josie Péritel\",\"pathToImage\":\"avatar/criquette.jpg\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"vue-user-ribon--wrap\",attrs:{\"aria-hidden\":\"true\"}},[_c('p',[_vm._v(\"Vous êtres connecté \"),_c('strong',[_vm._v(_vm._s(_vm.username))]),_vm._v(\".\")]),_c('avatar',{attrs:{\"username\":this.username,\"src\":this.pathToImage}}),_c('img',{attrs:{\"src\":\"icons/logout.svg\",\"height\":\"40\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{style:(_vm.style),attrs:{\"aria-hidden\":\"true\"}},[(this.isImage)?_c('img',{staticStyle:{\"display\":\"none\"},attrs:{\"src\":this.src}}):_vm._e(),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!this.isImage),expression:\"!this.isImage\"}]},[_vm._v(_vm._s(_vm.userInitial))])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div :style=\"style\" aria-hidden=\"true\">\r\n <!-- this img is not displayed; it is used to detect failure-to-load of div background image -->\r\n <img v-if=\"this.isImage\" style=\"display: none\" :src=\"this.src\"/>\r\n <span v-show=\"!this.isImage\">{{ userInitial }}</span>\r\n </div>\r\n</template>\r\n\r\n\r\n<script>\r\nconst getInitials = (username) => {\r\n let parts = username.split(/[ -]/)\r\n let initials = ''\r\n\r\n for (var i = 0; i < parts.length; i++) {\r\n initials += parts[i].charAt(0)\r\n }\r\n\r\n if (initials.length > 3 && initials.search(/[A-Z]/) !== -1) {\r\n initials = initials.replace(/[a-z]+/g, '')\r\n }\r\n\r\n initials = initials.substr(0, 3).toUpperCase()\r\n\r\n return initials\r\n}\r\n\r\nexport default {\r\n name: 'avatar',\r\n props: {\r\n username: {\r\n type: String\r\n },\r\n inline: {\r\n type: Boolean\r\n },\r\n size: {\r\n type: Number,\r\n default: 50\r\n },\r\n src: {\r\n type: String\r\n },\r\n rounded: {\r\n type: Boolean,\r\n default: true\r\n },\r\n lighten: {\r\n type: Number,\r\n default: 80\r\n },\r\n parser: {\r\n type: Function,\r\n default: getInitials,\r\n validator: (parser) => typeof parser('John', getInitials) === 'string'\r\n }\r\n },\r\n\r\n data () {\r\n return {\r\n backgroundColor: \r\n '#CCCCCC',\r\n imgError: false\r\n }\r\n },\r\n\r\n mounted () {\r\n if (!this.isImage) {\r\n this.$emit('avatar-initials', this.username, this.userInitial)\r\n }\r\n },\r\n\r\n computed: {\r\n background () {\r\n if (!this.isImage) {\r\n return this.backgroundColor || this.randomBackgroundColor(this.username.length, this.backgroundColors)\r\n }\r\n else {\r\n return \"\";\r\n }\r\n },\r\n isImage () {\r\n console.log(\"caca\");\r\n return !this.imgError && Boolean(this.src)\r\n },\r\n\r\n style () {\r\n const style = {\r\n display: 'flex',\r\n width: `${this.size}px`,\r\n height: `${this.size}px`,\r\n borderRadius: this.rounded ? '50%' : 0,\r\n lineHeight: `${(this.size + Math.floor(this.size / 20))}px`,\r\n fontWeight: 'bold',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n textAlign: 'center',\r\n userSelect: 'none'\r\n }\r\n\r\n const imgBackgroundAndFontStyle = {\r\n background: `transparent url('${this.src}') no-repeat scroll 0% 0% / ${this.size}px ${this.size}px content-box border-box`\r\n }\r\n\r\n const initialBackgroundAndFontStyle = {\r\n backgroundColor: this.background,\r\n font: `${Math.floor(this.size / 2.5)}px/${this.size}px Helvetica, Arial, sans-serif`,\r\n color: this.fontColor\r\n }\r\n\r\n const backgroundAndFontStyle = (this.isImage)\r\n ? imgBackgroundAndFontStyle\r\n : initialBackgroundAndFontStyle\r\n\r\n Object.assign(style, backgroundAndFontStyle)\r\n\r\n return style\r\n },\r\n\r\n userInitial () {\r\n if (!this.isImage) {\r\n const initials = this.initials || this.parser(this.username, getInitials)\r\n return initials\r\n }\r\n return ''\r\n }\r\n },\r\n\r\n methods: {\r\n initial: getInitials,\r\n\r\n onImgError () {\r\n this.imgError = true\r\n },\r\n\r\n randomBackgroundColor (seed, colors) {\r\n return colors[seed % (colors.length)]\r\n },\r\n\r\n lightenColor (hex, amt) {\r\n // From https://css-tricks.com/snippets/javascript/lighten-darken-color/\r\n var usePound = false\r\n\r\n if (hex[0] === '#') {\r\n hex = hex.slice(1)\r\n usePound = true\r\n }\r\n\r\n var num = parseInt(hex, 16)\r\n var r = (num >> 16) + amt\r\n\r\n if (r > 255) r = 255\r\n else if (r < 0) r = 0\r\n\r\n var b = ((num >> 8) & 0x00FF) + amt\r\n\r\n if (b > 255) b = 255\r\n else if (b < 0) b = 0\r\n\r\n var g = (num & 0x0000FF) + amt\r\n\r\n if (g > 255) g = 255\r\n else if (g < 0) g = 0\r\n\r\n return (usePound ? '#' : '') + (g | (b << 8) | (r << 16)).toString(16)\r\n }\r\n }\r\n}\r\n</script>\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Avatar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Avatar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Avatar.vue?vue&type=template&id=5200e418&\"\nimport script from \"./Avatar.vue?vue&type=script&lang=js&\"\nexport * from \"./Avatar.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","<template>\r\n <div class=\"vue-user-ribon--wrap\" aria-hidden=\"true\">\r\n <p>Vous êtres connecté <strong>{{username}}</strong>.</p>\r\n <avatar :username=\"this.username\" :src=\"this.pathToImage\"/>\r\n <img src=\"icons/logout.svg\" height=\"40\"/>\r\n </div>\r\n</template>\r\n\r\n\r\n<script>\r\n// @ is an alias to /src\r\nimport Avatar from '@/components/Avatar.vue'\r\n\r\nexport default {\r\n name: 'Home',\r\n props: {\r\n username: {\r\n type: String\r\n },\r\n \r\n pathToImage: {\r\n type: String\r\n }\r\n },\r\n components: {\r\n Avatar\r\n }\r\n}\r\n</script>\r\n\r\n<style>\r\n.vue-user-ribon--wrap{\r\n display: flex;\r\n right: 0;\r\n position: absolute;\r\n}\r\n\r\n.vue-user-ribon--wrap *{\r\n align-self: center;\r\n margin: 5px;\r\n}\r\n.vue-user-ribon--wrap strong{\r\n margin: 0;\r\n}\r\np{\r\n \r\n color: white;\r\n}\r\n</style>","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UserRibbon.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UserRibbon.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./UserRibbon.vue?vue&type=template&id=6c1b3f3c&\"\nimport script from \"./UserRibbon.vue?vue&type=script&lang=js&\"\nexport * from \"./UserRibbon.vue?vue&type=script&lang=js&\"\nimport style0 from \"./UserRibbon.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","<template>\n <div class=\"home\">\n <user-ribbon username=\"Josie Péritel\" pathToImage=\"avatar/criquette.jpg\"/>\n </div>\n</template>\n\n<script>\n// @ is an alias to /src\nimport UserRibbon from '@/components/UserRibbon.vue'\n\nexport default {\n name: 'Home',\n components: {\n UserRibbon\n }\n}\n</script>\n\n<style>\n.home{\n display: flex;\n flex-direction: column;\n}\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Home.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Home.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Home.vue?vue&type=template&id=3fa455be&\"\nimport script from \"./Home.vue?vue&type=script&lang=js&\"\nexport * from \"./Home.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Home.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Vue from 'vue'\nimport VueRouter from 'vue-router'\nimport Home from '../views/Home.vue'\n\nVue.use(VueRouter)\n\nconst routes = [\n {\n path: '/',\n name: 'Home',\n component: Home\n },\n {\n path: '/about',\n name: 'About',\n // route level code-splitting\n // this generates a separate chunk (about.[hash].js) for this route\n // which is lazy-loaded when the route is visited.\n component: () => import(/* webpackChunkName: \"about\" */ '../views/About.vue')\n }\n]\n\nconst router = new VueRouter({\n routes\n})\n\nexport default router\n","import Vue from 'vue'\r\nimport App from './App.vue'\r\nimport router from './router'\r\n\r\nVue.config.productionTip = false\r\n\r\nnew Vue({\r\n router,\r\n render: h => h(App)\r\n}).$mount('#app')\r\n","export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=css&\""],"sourceRoot":""}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment