diff --git a/README.md b/README.md new file mode 100644 index 0000000..d8aec9f --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# Check HTML Links Github Action test repository + +This is the test repository of **[check-html-links-action](https://github.com/jlengrand/check-html-links-action)**. +Check there for documentation and [here](https://github.com/jlengrand/check-html-links-action-test/actions) for latest status. + +I'm using [ptemplate](https://github.com/nethruster/ptemplate) to generate a simple website that is valid and test that links are found and correct. + +This is how the output should look like : + +![console output of action](./console-output.png) + +# Author + +[Julien Lengrand-Lambert](https://twitter.com/jlengrand) + diff --git a/console-output.png b/console-output.png new file mode 100644 index 0000000..44d70f6 Binary files /dev/null and b/console-output.png differ diff --git a/test-site/404.js b/test-site/404.js new file mode 100644 index 0000000..a0dca7a --- /dev/null +++ b/test-site/404.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{48:function(e){e.exports=JSON.parse('{"404":{"back_404":"Go home","text":"Sorry, I can\'t find the page you\'re looking for...","button_text":"Do you want help to return home?"},"home":{"about":"About me","about_alt":"About","work":"My Work","work_alt":"Work","contact":"Contact me","contact_alt":"Contact"},"about":{"find_me":"You\'ll find me on:"},"work":{"no_projects":"Whoops! There\'s nothing here yet!","categories":"Categories","category_all":"All","website":"Visit Website","source":"Source Code"},"contact":{"toast":{"close":"Close"},"form":{"name":"What\'s your name?","email":"What\'s your email?","message":"Please, explain yourself:","validation":{"invalid_name":"Invalid name","invalid_email":"Invalid email","invalid_message":"Invalid message","invalid_grecaptcha":"Invalid gRecaptchaResponse","server_error":"Server reported an error","conection_error":"Connection Error","success":"Message sent successfully"}},"loading":"Loading","send":"Send","sending":"Sending"},"misc":{"back":"Go back"}}')},49:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(8),o=n.n(r),a=n(9),c=n.n(a),i=n(10),u=n.n(i),l=n(11),s=n.n(l),f=n(5),d=n.n(f),p=n(1);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d()(e);if(t){var o=d()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s()(this,n)}}var v=function(e){u()(n,e);var t=m(n);function n(){return o()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.iconColor?{fill:this.props.iconColor}:null;return p.default.createElement("svg",{style:e,viewBox:"0 0 24 24"},p.default.createElement("use",{xlinkHref:"".concat("/","assets/icons.svg#").concat(this.props.iconName)}))}}]),n}(p.default.PureComponent)},71:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return g}));var r=n(8),o=n.n(r),a=n(9),c=n.n(a),i=n(10),u=n.n(i),l=n(11),s=n.n(l),f=n(5),d=n.n(f),p=n(1),m=n(7),v=n(49),h=n(48);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d()(e);if(t){var o=d()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s()(this,n)}}var _=h[404],g=function(e){u()(n,e);var t=y(n);function n(){return o()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return p.default.createElement("div",{className:"pt-content-card__404-container flex flex-dc"},p.default.createElement("div",{className:"pt-content-card__body pt-content-card__body__404 flex flex-dc flex-full-center"},p.default.createElement(v.a,{iconName:"clippy"}),p.default.createElement("p",null,_.text),p.default.createElement(m.b,{to:"/",title:_.back_404},p.default.createElement("div",null,_.button_text))))}}]),n}(p.default.PureComponent)}}]); \ No newline at end of file diff --git a/test-site/about.js b/test-site/about.js new file mode 100644 index 0000000..f8d39d4 --- /dev/null +++ b/test-site/about.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{48:function(e){e.exports=JSON.parse('{"404":{"back_404":"Go home","text":"Sorry, I can\'t find the page you\'re looking for...","button_text":"Do you want help to return home?"},"home":{"about":"About me","about_alt":"About","work":"My Work","work_alt":"Work","contact":"Contact me","contact_alt":"Contact"},"about":{"find_me":"You\'ll find me on:"},"work":{"no_projects":"Whoops! There\'s nothing here yet!","categories":"Categories","category_all":"All","website":"Visit Website","source":"Source Code"},"contact":{"toast":{"close":"Close"},"form":{"name":"What\'s your name?","email":"What\'s your email?","message":"Please, explain yourself:","validation":{"invalid_name":"Invalid name","invalid_email":"Invalid email","invalid_message":"Invalid message","invalid_grecaptcha":"Invalid gRecaptchaResponse","server_error":"Server reported an error","conection_error":"Connection Error","success":"Message sent successfully"}},"loading":"Loading","send":"Send","sending":"Sending"},"misc":{"back":"Go back"}}')},49:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(8),a=n.n(r),o=n(9),c=n.n(o),i=n(10),l=n.n(i),u=n(11),s=n.n(u),f=n(5),m=n.n(f),d=n(1);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return s()(this,n)}}var h=function(e){l()(n,e);var t=p(n);function n(){return a()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.iconColor?{fill:this.props.iconColor}:null;return d.default.createElement("svg",{style:e,viewBox:"0 0 24 24"},d.default.createElement("use",{xlinkHref:"".concat("/","assets/icons.svg#").concat(this.props.iconName)}))}}]),n}(d.default.PureComponent)},50:function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return i}));var r={fullName:"Website Owner",description:"FRONT-END DEVELOPER",avatarPath:"avatar.svg",about:{title:"HEY THERE! \n I'M WEBSITE OWNER",description:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim\n veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \n \n Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis.",findMeOn:[{iconName:"location",text:"Location, Place",url:"",hoverColor:"#546e7a"},{iconName:"twitter",text:"@username",url:"https://twitter.com/username",hoverColor:"#1da1f2"},{iconName:"email",text:"email@email.com",url:"mailto://email@email.com",hoverColor:"#546e7a"},{iconName:"lock",text:"@kuser",url:"https://keybase.io/kuser",hoverColor:"#e9641c"}]},social:[{iconName:"twitter",url:"https://twitter.com/username",text:"I'm on Twitter",hoverColor:"#1da1f2"},{iconName:"telegram",url:"https://t.me/username",text:"I'm on Telegram",hoverColor:"#0088cc"},{iconName:"github",url:"https://github.com/username",text:"I'm on Github",hoverColor:"#000"},{iconName:"email",url:"mailto:email@email.co",text:"Send me an email",hoverColor:"#000"}]},a=[{title:"Project Title #1",img:"",description:"Lorem ipsum dolor sit amet, in nulla hendrerit ius, sed et congue graeci, qui id propriae accusata.",categories:["Sample","Open source","React"],siteUrl:"https://amazing.project.com",sourceCodeUrl:"https://github.com/user/project"},{title:"Project Title #2",img:"https://www.nethruster.com/assets/img/icons/apple-touch-icon.png",description:"Lorem ipsum dolor sit amet, in nulla hendrerit ius, sed et congue graeci, qui id propriae accusata.",categories:["Sample","Freeware","Go"],siteUrl:"https://amazing.project.com"},{title:"Project Title #3",img:"https://www.nethruster.com/assets/img/wareader.svg",description:"Lorem ipsum dolor sit amet, in nulla hendrerit ius, sed et congue graeci, qui id propriae accusata.",categories:["Wat","Linux","LoL"],sourceCodeUrl:"https://github.com/user/:O"}],o="http://localhost:4000",c="6LcBOC8UAAAAAM9YRyBp1RR-1NnwvMU8UDsR63Vu",i="no-work-icon.jpg"},51:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(8),a=n.n(r),o=n(9),c=n.n(o),i=n(10),l=n.n(i),u=n(11),s=n.n(u),f=n(5),m=n.n(f),d=n(1),p=n(7),h=n(49),v=n(48);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return s()(this,n)}}var g=v.misc,y=function(e){l()(n,e);var t=_(n);function n(){return a()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return d.default.createElement("div",{className:"pt-content-card__header pt-content-card__header--nav flex flex-cross-center"},d.default.createElement(p.b,{to:"/",title:g.back},d.default.createElement("div",{className:"pt-content-card__header--nav__icon flex flex-full-center"},d.default.createElement(h.a,{iconName:"arrow-left"}))),d.default.createElement("div",{className:"pt-content-card__header--nav__title flex flex-full-center"},d.default.createElement(h.a,{iconName:this.props.icon}),d.default.createElement("h2",{className:"ta-c"},this.props.title)),this.props.handleDrawerState?d.default.createElement("button",{style:{pointerEvents:this.props.isFiltersOpen?"none":""},className:"pt-content-card__header--nav__icon flex-full-center pointer",onClick:this.props.handleDrawerState},d.default.createElement(h.a,{iconName:"filter"})):null)}}]),n}(d.default.PureComponent)},76:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return w}));var r=n(8),a=n.n(r),o=n(9),c=n.n(o),i=n(10),l=n.n(i),u=n(11),s=n.n(u),f=n(5),m=n.n(f),d=n(1),p=n(51),h=n(49),v=function(e){return e.split("\n").map((function(e,t){return d.default.createElement("span",{key:t},e,d.default.createElement("br",null))}))},_=n(48);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return s()(this,n)}}var y=_.about,x=function(e){l()(n,e);var t=g(n);function n(){return a()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.profile.about,t=e.findMeOn.map((function(e,t){return e.url?d.default.createElement("a",{className:"flex flex-cross-center",key:t,href:e.url,rel:"noopener",target:"_blank",title:e.url},d.default.createElement(h.a,{iconName:e.iconName,iconColor:e.hoverColor})," ",e.text):d.default.createElement("span",{className:"flex flex-cross-center",key:t},d.default.createElement(h.a,{iconName:e.iconName,iconColor:e.hoverColor})," ",e.text)}));return d.default.createElement("div",{className:"pt-content-card__body pt-content-card__body__about flex flex-full-center"},d.default.createElement("div",{className:"pt-content-card__body__about__presentation flex flex-dc flex-full-center"},d.default.createElement("img",{src:"".concat("/","assets/").concat(this.props.profile.avatarPath),alt:"".concat(this.props.profile.fullName,"'s Image")}),d.default.createElement("h1",{className:"ta-c"},v(e.title))),d.default.createElement("div",{className:"pt-content-card__body__about__details flex flex-dc flex-full-center"},d.default.createElement("p",null,v(e.description)),d.default.createElement("h3",null,y.find_me),d.default.createElement("div",{className:"pt-content-card__body__about__details__net-icons flex-sa"},t)))}}]),n}(d.default.PureComponent),b=n(50);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return s()(this,n)}}var N=_.home,w=function(e){l()(n,e);var t=E(n);function n(){return a()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return d.default.createElement("div",{className:"pt-content-card__about-container flex flex-dc"},d.default.createElement(p.a,{icon:"account",title:N.about}),d.default.createElement(x,{profile:b.d}))}}]),n}(d.default.PureComponent)}}]); \ No newline at end of file diff --git a/test-site/android-chrome-192x192.png b/test-site/android-chrome-192x192.png new file mode 100644 index 0000000..90fc125 Binary files /dev/null and b/test-site/android-chrome-192x192.png differ diff --git a/test-site/android-chrome-512x512.png b/test-site/android-chrome-512x512.png new file mode 100644 index 0000000..57f173b Binary files /dev/null and b/test-site/android-chrome-512x512.png differ diff --git a/test-site/apple-touch-icon-precomposed.png b/test-site/apple-touch-icon-precomposed.png new file mode 100644 index 0000000..2d5d4f4 Binary files /dev/null and b/test-site/apple-touch-icon-precomposed.png differ diff --git a/test-site/apple-touch-icon.png b/test-site/apple-touch-icon.png new file mode 100644 index 0000000..cfcb483 Binary files /dev/null and b/test-site/apple-touch-icon.png differ diff --git a/test-site/assets/avatar.svg b/test-site/assets/avatar.svg new file mode 100644 index 0000000..53e56ba --- /dev/null +++ b/test-site/assets/avatar.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/test-site/assets/icons.svg b/test-site/assets/icons.svg new file mode 100644 index 0000000..c6e7290 --- /dev/null +++ b/test-site/assets/icons.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test-site/assets/icons/android-chrome-192x192.png b/test-site/assets/icons/android-chrome-192x192.png new file mode 100644 index 0000000..90fc125 Binary files /dev/null and b/test-site/assets/icons/android-chrome-192x192.png differ diff --git a/test-site/assets/icons/android-chrome-512x512.png b/test-site/assets/icons/android-chrome-512x512.png new file mode 100644 index 0000000..57f173b Binary files /dev/null and b/test-site/assets/icons/android-chrome-512x512.png differ diff --git a/test-site/assets/icons/apple-touch-icon-precomposed.png b/test-site/assets/icons/apple-touch-icon-precomposed.png new file mode 100644 index 0000000..2d5d4f4 Binary files /dev/null and b/test-site/assets/icons/apple-touch-icon-precomposed.png differ diff --git a/test-site/assets/icons/apple-touch-icon.png b/test-site/assets/icons/apple-touch-icon.png new file mode 100644 index 0000000..cfcb483 Binary files /dev/null and b/test-site/assets/icons/apple-touch-icon.png differ diff --git a/test-site/assets/icons/browserconfig.xml b/test-site/assets/icons/browserconfig.xml new file mode 100644 index 0000000..986a353 --- /dev/null +++ b/test-site/assets/icons/browserconfig.xml @@ -0,0 +1,9 @@ + + + + + + #303a45 + + + diff --git a/test-site/assets/icons/favicon-16x16.png b/test-site/assets/icons/favicon-16x16.png new file mode 100644 index 0000000..987ac1d Binary files /dev/null and b/test-site/assets/icons/favicon-16x16.png differ diff --git a/test-site/assets/icons/favicon-32x32.png b/test-site/assets/icons/favicon-32x32.png new file mode 100644 index 0000000..7f99f8d Binary files /dev/null and b/test-site/assets/icons/favicon-32x32.png differ diff --git a/test-site/assets/icons/favicon.ico b/test-site/assets/icons/favicon.ico new file mode 100644 index 0000000..4642fb8 Binary files /dev/null and b/test-site/assets/icons/favicon.ico differ diff --git a/test-site/assets/icons/manifest.json b/test-site/assets/icons/manifest.json new file mode 100644 index 0000000..45f6fc8 --- /dev/null +++ b/test-site/assets/icons/manifest.json @@ -0,0 +1,19 @@ +{ + "name": "Personal Template", + "short_name": "PT", + "icons": [ + { + "src": "/assets/icons/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/assets/icons/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#303a45", + "background_color": "#303a45", + "display": "standalone" +} diff --git a/test-site/assets/icons/meta-img.png b/test-site/assets/icons/meta-img.png new file mode 100644 index 0000000..c2f9f90 Binary files /dev/null and b/test-site/assets/icons/meta-img.png differ diff --git a/test-site/assets/icons/mstile-144x144.png b/test-site/assets/icons/mstile-144x144.png new file mode 100644 index 0000000..ec7d08b Binary files /dev/null and b/test-site/assets/icons/mstile-144x144.png differ diff --git a/test-site/assets/icons/mstile-150x150.png b/test-site/assets/icons/mstile-150x150.png new file mode 100644 index 0000000..1325064 Binary files /dev/null and b/test-site/assets/icons/mstile-150x150.png differ diff --git a/test-site/assets/icons/mstile-310x150.png b/test-site/assets/icons/mstile-310x150.png new file mode 100644 index 0000000..aa5d271 Binary files /dev/null and b/test-site/assets/icons/mstile-310x150.png differ diff --git a/test-site/assets/icons/mstile-310x310.png b/test-site/assets/icons/mstile-310x310.png new file mode 100644 index 0000000..b34dea3 Binary files /dev/null and b/test-site/assets/icons/mstile-310x310.png differ diff --git a/test-site/assets/icons/mstile-70x70.png b/test-site/assets/icons/mstile-70x70.png new file mode 100644 index 0000000..de3dc91 Binary files /dev/null and b/test-site/assets/icons/mstile-70x70.png differ diff --git a/test-site/assets/icons/safari-pinned-tab.svg b/test-site/assets/icons/safari-pinned-tab.svg new file mode 100644 index 0000000..9f7e13a --- /dev/null +++ b/test-site/assets/icons/safari-pinned-tab.svg @@ -0,0 +1,22 @@ + + + + +Created by potrace 1.11, written by Peter Selinger 2001-2013 + + + + + diff --git a/test-site/assets/lang/en_GB.json b/test-site/assets/lang/en_GB.json new file mode 100644 index 0000000..2bd2a94 --- /dev/null +++ b/test-site/assets/lang/en_GB.json @@ -0,0 +1,50 @@ +{ + "home": { + "about": "About me", + "about_alt": "About", + "work": "My Work", + "work_alt": "Work", + "contact": "Contact me", + "contact_alt": "Contact" + }, + "about": { + "find_me": "You'll find me on:" + }, + "work": { + "no_projects": "Whoops! There's nothing here yet!", + "categories": "Categories", + "category_all": "All", + "website": "Visit Website", + "source": "Source Code" + }, + "contact": { + "toast": { + "close": "Close" + }, + "form": { + "name": "What's your name?", + "email": "What's your email?", + "message": "Please, explain yourself:", + "validation": { + "invalid_name": "Invalid name", + "invalid_email": "Invalid email", + "invalid_message": "Invalid message", + "invalid_grecaptcha": "Invalid gRecaptchaResponse", + "server_error": "Server reported an error", + "conection_error": "Connection Error", + "success": "Message sent successfully" + } + }, + "loading": "Loading", + "send": "Send", + "sending": "Sending" + }, + "404": { + "back_404": "Go home", + "text": "Sorry, I can't find the page you're looking for...", + "button_text": "Do you want help to return home?" + }, + "misc": { + "back": "Go back" + } +} diff --git a/test-site/assets/lang/es_ES.json b/test-site/assets/lang/es_ES.json new file mode 100644 index 0000000..e2c0f9e --- /dev/null +++ b/test-site/assets/lang/es_ES.json @@ -0,0 +1,50 @@ +{ + "home": { + "about": "Sobre mi", + "about_alt": "Quién soy", + "work": "Mi trabajo", + "work_alt": "Trabajo", + "contact": "Contacte conmigo", + "contact_alt": "Contacto" + }, + "about": { + "find_me": "Me encontrará en:" + }, + "work": { + "no_projects": "¡Ostras! ¡Aún no hay nada por aquí!", + "categories": "Categorías", + "category_all": "Todo", + "website": "Visitar página", + "source": "Código fuente" + }, + "contact": { + "toast": { + "close": "Cerrar" + }, + "form": { + "name": "¿Cómo se llama?", + "email": "¿Cuál es su correo electrónico?", + "message": "Por favor, escriba su mensaje:", + "validation": { + "invalid_name": "Nombre no válido", + "invalid_email": "Correo electrónico no válido", + "invalid_message": "Mensaje no válido", + "invalid_grecaptcha": "gRecaptchaResponse no válido", + "server_error": "El servidor ha reportado un error", + "conection_error": "Error de conexión", + "success": "Mensaje enviado con éxito" + } + }, + "loading": "Cargando", + "send": "Enviar", + "sending": "Enviando" + }, + "404": { + "back_404": "Ir al inicio", + "text": "Lo siento, no se ha podido encontrar la página que busca...", + "button_text": "¿Quiere que le ayude a volver al inicio?" + }, + "misc": { + "back": "Volver atrás" + } +} diff --git a/test-site/assets/lang/lang.json b/test-site/assets/lang/lang.json new file mode 100644 index 0000000..2bd2a94 --- /dev/null +++ b/test-site/assets/lang/lang.json @@ -0,0 +1,50 @@ +{ + "home": { + "about": "About me", + "about_alt": "About", + "work": "My Work", + "work_alt": "Work", + "contact": "Contact me", + "contact_alt": "Contact" + }, + "about": { + "find_me": "You'll find me on:" + }, + "work": { + "no_projects": "Whoops! There's nothing here yet!", + "categories": "Categories", + "category_all": "All", + "website": "Visit Website", + "source": "Source Code" + }, + "contact": { + "toast": { + "close": "Close" + }, + "form": { + "name": "What's your name?", + "email": "What's your email?", + "message": "Please, explain yourself:", + "validation": { + "invalid_name": "Invalid name", + "invalid_email": "Invalid email", + "invalid_message": "Invalid message", + "invalid_grecaptcha": "Invalid gRecaptchaResponse", + "server_error": "Server reported an error", + "conection_error": "Connection Error", + "success": "Message sent successfully" + } + }, + "loading": "Loading", + "send": "Send", + "sending": "Sending" + }, + "404": { + "back_404": "Go home", + "text": "Sorry, I can't find the page you're looking for...", + "button_text": "Do you want help to return home?" + }, + "misc": { + "back": "Go back" + } +} diff --git a/test-site/assets/lang/pt_BR.json b/test-site/assets/lang/pt_BR.json new file mode 100644 index 0000000..44f1504 --- /dev/null +++ b/test-site/assets/lang/pt_BR.json @@ -0,0 +1,50 @@ +{ + "home": { + "about": "Sobre mim", + "about_alt": "Sobre", + "work": "Meus projetos", + "work_alt": "Projetos", + "contact": "Contato", + "contact_alt": "Contato" + }, + "about": { + "find_me": "Você irá me encontrar aqui:" + }, + "work": { + "no_projects": "Ooops! Não há nada aqui ainda!", + "categories": "Categorias", + "category_all": "Todos", + "website": "Visitar site", + "source": "Código fonte" + }, + "contact": { + "toast": { + "close": "Fechar" + }, + "form": { + "name": "Qual é o seu nome?", + "email": "Qual é o seu e-mail?", + "message": "Por favor, fale mais sobre você:", + "validation": { + "invalid_name": "Nome inválido", + "invalid_email": "E-mail inválido", + "invalid_message": "Mensagem inválida", + "invalid_grecaptcha": "Erro obtido: gRecaptchaResponse", + "server_error": "Servidor relatou um erro", + "conection_error": "Erro de conexão", + "success": "Mensagem enviada com sucesso" + } + }, + "loading": "Loading", + "send": "Send", + "sending": "Sending" + }, + "404": { + "back_404": "Go home", + "text": "Sorry, I can't find the page you're looking for...", + "button_text": "Do you want help to return home?" + }, + "misc": { + "back": "Go back" + } +} diff --git a/test-site/assets/no-work-icon.jpg b/test-site/assets/no-work-icon.jpg new file mode 100644 index 0000000..bff2243 Binary files /dev/null and b/test-site/assets/no-work-icon.jpg differ diff --git a/test-site/avatar.svg b/test-site/avatar.svg new file mode 100644 index 0000000..53e56ba --- /dev/null +++ b/test-site/avatar.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/test-site/browserconfig.xml b/test-site/browserconfig.xml new file mode 100644 index 0000000..986a353 --- /dev/null +++ b/test-site/browserconfig.xml @@ -0,0 +1,9 @@ + + + + + + #303a45 + + + diff --git a/test-site/config.js b/test-site/config.js new file mode 100644 index 0000000..3e35dd6 --- /dev/null +++ b/test-site/config.js @@ -0,0 +1,106 @@ +const profile = { + fullName: 'Website Owner', + description: 'FRONT-END DEVELOPER', + // The basepath is the assets folder + /// the file sould be imported in assets-import.js + avatarPath: 'avatar.svg', + about: { + title: `HEY THERE! + I'M WEBSITE OWNER`, + description: `Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim + veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis.`, + findMeOn: [ + { + iconName: 'location', + text: 'Location, Place', + url: '', + hoverColor: '#546e7a' + }, + { + iconName: 'twitter', + text: '@username', + url: 'https://twitter.com/username', + hoverColor: '#1da1f2' + }, + { + iconName: 'email', + text: 'email@email.com', + url: 'mailto://email@email.com', + hoverColor: '#546e7a' + }, + { + iconName: 'lock', + text: '@kuser', + url: 'https://keybase.io/kuser', + hoverColor: '#e9641c' + } + ] + }, + social: [ + { + iconName: 'twitter', + url: 'https://twitter.com/username', + text: "I'm on Twitter", + hoverColor: '#1da1f2' + }, + { + iconName: 'telegram', + url: 'https://t.me/username', + text: "I'm on Telegram", + hoverColor: '#0088cc' + }, + { + iconName: 'github', + url: 'https://github.com/username', + text: "I'm on Github", + hoverColor: '#000' + }, + { + iconName: 'email', + url: 'mailto:email@email.co', + text: 'Send me an email', + hoverColor: '#000' + } + ] +} + +const projects = [ + { + title: 'Project Title #1', + img: '', + description: 'Lorem ipsum dolor sit amet, in nulla hendrerit ius, sed et congue graeci, qui id propriae accusata.', + categories: ['Sample', 'Open source', 'React'], + siteUrl: 'https://amazing.project.com', + sourceCodeUrl: 'https://github.com/user/project' + }, + { + title: 'Project Title #2', + img: 'https://www.nethruster.com/assets/img/icons/apple-touch-icon.png', + description: 'Lorem ipsum dolor sit amet, in nulla hendrerit ius, sed et congue graeci, qui id propriae accusata.', + categories: ['Sample', 'Freeware', 'Go'], + siteUrl: 'https://amazing.project.com' + }, + { + title: 'Project Title #3', + img: 'https://www.nethruster.com/assets/img/wareader.svg', + description: 'Lorem ipsum dolor sit amet, in nulla hendrerit ius, sed et congue graeci, qui id propriae accusata.', + categories: ['Wat', 'Linux', 'LoL'], + sourceCodeUrl: 'https://github.com/user/:O' + } +] + +const formUrl = 'http://localhost:4000' +const ReCAPTCHAKey = '6LcBOC8UAAAAAM9YRyBp1RR-1NnwvMU8UDsR63Vu' +// The basepath is the assets folder +/// the file sould be imported in assets-import.js +const missingProjectIcon = 'no-work-icon.jpg' + +export { + profile, + projects, + formUrl, + ReCAPTCHAKey, + missingProjectIcon +} diff --git a/test-site/contact.js b/test-site/contact.js new file mode 100644 index 0000000..a94c9bc --- /dev/null +++ b/test-site/contact.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{48:function(t){t.exports=JSON.parse('{"404":{"back_404":"Go home","text":"Sorry, I can\'t find the page you\'re looking for...","button_text":"Do you want help to return home?"},"home":{"about":"About me","about_alt":"About","work":"My Work","work_alt":"Work","contact":"Contact me","contact_alt":"Contact"},"about":{"find_me":"You\'ll find me on:"},"work":{"no_projects":"Whoops! There\'s nothing here yet!","categories":"Categories","category_all":"All","website":"Visit Website","source":"Source Code"},"contact":{"toast":{"close":"Close"},"form":{"name":"What\'s your name?","email":"What\'s your email?","message":"Please, explain yourself:","validation":{"invalid_name":"Invalid name","invalid_email":"Invalid email","invalid_message":"Invalid message","invalid_grecaptcha":"Invalid gRecaptchaResponse","server_error":"Server reported an error","conection_error":"Connection Error","success":"Message sent successfully"}},"loading":"Loading","send":"Send","sending":"Sending"},"misc":{"back":"Go back"}}')},49:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(8),a=n.n(r),o=n(9),i=n.n(o),c=n(10),l=n.n(c),s=n(11),u=n.n(s),f=n(5),d=n.n(f),m=n(1);function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var a=d()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var p=function(t){l()(n,t);var e=h(n);function n(){return a()(this,n),e.apply(this,arguments)}return i()(n,[{key:"render",value:function(){var t=this.props.iconColor?{fill:this.props.iconColor}:null;return m.default.createElement("svg",{style:t,viewBox:"0 0 24 24"},m.default.createElement("use",{xlinkHref:"".concat("/","assets/icons.svg#").concat(this.props.iconName)}))}}]),n}(m.default.PureComponent)},50:function(t,e,n){"use strict";n.d(e,"d",(function(){return r})),n.d(e,"e",(function(){return a})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return c}));var r={fullName:"Website Owner",description:"FRONT-END DEVELOPER",avatarPath:"avatar.svg",about:{title:"HEY THERE! \n I'M WEBSITE OWNER",description:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim\n veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \n \n Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis.",findMeOn:[{iconName:"location",text:"Location, Place",url:"",hoverColor:"#546e7a"},{iconName:"twitter",text:"@username",url:"https://twitter.com/username",hoverColor:"#1da1f2"},{iconName:"email",text:"email@email.com",url:"mailto://email@email.com",hoverColor:"#546e7a"},{iconName:"lock",text:"@kuser",url:"https://keybase.io/kuser",hoverColor:"#e9641c"}]},social:[{iconName:"twitter",url:"https://twitter.com/username",text:"I'm on Twitter",hoverColor:"#1da1f2"},{iconName:"telegram",url:"https://t.me/username",text:"I'm on Telegram",hoverColor:"#0088cc"},{iconName:"github",url:"https://github.com/username",text:"I'm on Github",hoverColor:"#000"},{iconName:"email",url:"mailto:email@email.co",text:"Send me an email",hoverColor:"#000"}]},a=[{title:"Project Title #1",img:"",description:"Lorem ipsum dolor sit amet, in nulla hendrerit ius, sed et congue graeci, qui id propriae accusata.",categories:["Sample","Open source","React"],siteUrl:"https://amazing.project.com",sourceCodeUrl:"https://github.com/user/project"},{title:"Project Title #2",img:"https://www.nethruster.com/assets/img/icons/apple-touch-icon.png",description:"Lorem ipsum dolor sit amet, in nulla hendrerit ius, sed et congue graeci, qui id propriae accusata.",categories:["Sample","Freeware","Go"],siteUrl:"https://amazing.project.com"},{title:"Project Title #3",img:"https://www.nethruster.com/assets/img/wareader.svg",description:"Lorem ipsum dolor sit amet, in nulla hendrerit ius, sed et congue graeci, qui id propriae accusata.",categories:["Wat","Linux","LoL"],sourceCodeUrl:"https://github.com/user/:O"}],o="http://localhost:4000",i="6LcBOC8UAAAAAM9YRyBp1RR-1NnwvMU8UDsR63Vu",c="no-work-icon.jpg"},51:function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var r=n(8),a=n.n(r),o=n(9),i=n.n(o),c=n(10),l=n.n(c),s=n(11),u=n.n(s),f=n(5),d=n.n(f),m=n(1),h=n(7),p=n(49),v=n(48);function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var a=d()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var _=v.misc,g=function(t){l()(n,t);var e=y(n);function n(){return a()(this,n),e.apply(this,arguments)}return i()(n,[{key:"render",value:function(){return m.default.createElement("div",{className:"pt-content-card__header pt-content-card__header--nav flex flex-cross-center"},m.default.createElement(h.b,{to:"/",title:_.back},m.default.createElement("div",{className:"pt-content-card__header--nav__icon flex flex-full-center"},m.default.createElement(p.a,{iconName:"arrow-left"}))),m.default.createElement("div",{className:"pt-content-card__header--nav__title flex flex-full-center"},m.default.createElement(p.a,{iconName:this.props.icon}),m.default.createElement("h2",{className:"ta-c"},this.props.title)),this.props.handleDrawerState?m.default.createElement("button",{style:{pointerEvents:this.props.isFiltersOpen?"none":""},className:"pt-content-card__header--nav__icon flex-full-center pointer",onClick:this.props.handleDrawerState},m.default.createElement(p.a,{iconName:"filter"})):null)}}]),n}(m.default.PureComponent)},53:function(t,e,n){t.exports=n(59)},54:function(t,e){function n(t,e,n,r,a,o,i){try{var c=t[o](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,a)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(a,o){var i=t.apply(e,r);function c(t){n(i,a,o,c,l,"next",t)}function l(t){n(i,a,o,c,l,"throw",t)}c(void 0)}))}}},59:function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function c(t,e,n,r){var a=e&&e.prototype instanceof u?e:u,o=Object.create(a.prototype),i=new b(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return N()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=g(i,n);if(c){if(c===s)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===s)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,i),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var s={};function u(){}function f(){}function d(){}var m={};m[a]=function(){return this};var h=Object.getPrototypeOf,p=h&&h(h(w([])));p&&p!==e&&n.call(p,a)&&(m=p);var v=d.prototype=u.prototype=Object.create(m);function y(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function _(t,e){var r;this._invoke=function(a,o){function i(){return new e((function(r,i){!function r(a,o,i,c){var s=l(t[a],t,o);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(s.arg)}(a,o,r,i)}))}return r=r?r.then(i,i):i()}}function g(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,g(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var r=l(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,s;var a=r.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function b(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function w(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var a=r.arg;E(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:w(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),s}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},60:function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},77:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return G}));var r=n(8),a=n.n(r),o=n(9),i=n.n(o),c=n(10),l=n.n(c),s=n(11),u=n.n(s),f=n(5),d=n.n(f),m=n(1),h=n(51),p=n(53),v=n.n(p),y=n(60),_=n.n(y),g=n(32),x=n.n(g),E=n(54),b=n.n(E),w=n(49),N=n(50),C=n(48),L=C.contact.form.validation;function S(){return(S=b()(v.a.mark((function t(e,n,r,a){var o;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=JSON.stringify({name:e,mail:n,msg:r,"g-recaptcha-response":a}),t.abrupt("return",fetch(N.b,{method:"POST",headers:{"Content-Type":"application/json; charset=UTF-8"},body:o}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var k=function(t,e,n,r){return new Promise((function(a,o){return function(t){return!!t}(t)?function(t){return!(!t||!t.match(/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i))}(e)?function(t){return!!t}(n)?function(t){return!!t}(r)?void function(t,e,n,r){return S.apply(this,arguments)}(t,e,n,r).then((function(t){t.status>=200&&t.status<300?a(String(L.success)):o(String(L.server_error))})).catch((function(t){o(String(L.conection_error))})):o(String(L.invalid_grecaptcha)):o(String(L.invalid_message)):o(String(L.invalid_email)):o(String(L.invalid_name))}))};function R(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var a=d()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var P=C.contact;function O(){return T.apply(this,arguments)}function T(){return(T=b()(v.a.mark((function t(){var e;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(7).then(n.t.bind(null,72,7));case 2:e=t.sent,this.setState({toastify:e});case 4:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function A(){return F.apply(this,arguments)}function F(){return(F=b()(v.a.mark((function t(){var e;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(3).then(n.t.bind(null,73,7));case 2:e=t.sent.default,this.setState({ReCAPTCHA:e});case 4:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}var j=function(t){var e=t.closeToast;return m.default.createElement("span",{className:"toastify-dismiss",onClick:e},P.toast.close)},I=function(t){l()(n,t);var e=R(n);function n(t){var r;return a()(this,n),(r=e.call(this,t)).state={name:"",email:"",message:"",isFormLoading:!1,toastify:{toast:null,ToastContainer:null},ReCAPTCHA:null},r.captcha=null,O.bind(x()(r))(),A.bind(x()(r))(),r.onFormSubmit=r.onFormSubmit.bind(x()(r)),r.onCaptchaChange=r.onCaptchaChange.bind(x()(r)),r.onInputValueChange=r.onInputValueChange.bind(x()(r)),r}return i()(n,[{key:"notify",value:function(t,e){switch(e){case"Success":this.state.toastify.toast.success(t,{closeButton:m.default.createElement(j,null),closeOnClick:!1});break;case"Error":this.state.toastify.toast.error(t,{closeButton:m.default.createElement(j,null),closeOnClick:!1});break;default:this.state.toastify.toast(t,{closeButton:m.default.createElement(j,null),closeOnClick:!1})}}},{key:"onFormSubmit",value:function(t){t.preventDefault(),this.captcha.execute()}},{key:"onCaptchaChange",value:function(t){var e=this;null!==t&&(this.setState({isFormLoading:!0}),k(this.state.name,this.state.email,this.state.message,t).then((function(t){e.notify(t,"Success"),e.captcha.reset(),e.setState({isFormLoading:!1})})).catch((function(t){e.notify(t,"Error"),e.captcha.reset(),e.setState({isFormLoading:!1})})))}},{key:"onInputValueChange",value:function(t){this.setState(_()({},t.target.id,t.target.value)),t.target.value?t.target.nextElementSibling.classList.add("has-content"):t.target.nextElementSibling.classList.remove("has-content")}},{key:"render",value:function(){var t,e=this,n=N.d.social.map((function(t,e){return m.default.createElement("a",{href:t.url,key:e,rel:"noopener",target:"_blank",title:t.iconName},m.default.createElement("div",{className:"pt-content-card__body__contact__social__item flex flex-full-center"},m.default.createElement(w.a,{iconName:t.iconName})," ",t.text))})),r=!this.state.ReCAPTCHA||!this.state.toastify.ToastContainer;return t=r?m.default.createElement("div",{className:"loader-container flex flex-main-center"},P.loading,m.default.createElement("div",{className:"loader"},m.default.createElement("span",null),m.default.createElement("span",null),m.default.createElement("span",null))):this.state.isFormLoading?m.default.createElement("div",{className:"loader-container flex flex-main-center"},P.sending,m.default.createElement("div",{className:"loader"},m.default.createElement("span",null),m.default.createElement("span",null),m.default.createElement("span",null))):m.default.createElement("div",{className:"flex flex-main-center"},P.send),m.default.createElement("div",{className:"pt-content-card__body pt-content-card__body__contact flex"},this.state.ReCAPTCHA&&"ReactSnap"!=navigator.userAgent?m.default.createElement(this.state.ReCAPTCHA,{ref:function(t){e.captcha=t},className:"recaptcha",size:"invisible",sitekey:N.a,onChange:this.onCaptchaChange}):null,this.state.toastify.ToastContainer?m.default.createElement(this.state.toastify.ToastContainer,{position:"bottom-left",autoClose:5e3,type:"default"}):null,N.d.social.length>0&&m.default.createElement("div",{className:"pt-content-card__body__contact__social flex flex-dc flex-full-center"},n),m.default.createElement("div",{className:"pt-content-card__body__contact__form flex flex-main-center"},m.default.createElement("form",{className:"flex flex-dc flex-full-center",onSubmit:this.onFormSubmit},m.default.createElement("div",{className:"pt-content-card__body__contact__form__row flex flex-dc flex-main-center"},m.default.createElement("input",{id:"name",className:"pt-content-card__body__contact__form__input",type:"text",onChange:this.onInputValueChange}),m.default.createElement("label",{htmlFor:"name",className:"pt-content-card__body__contact__form__label"},P.form.name),m.default.createElement("svg",{className:"line",viewBox:"0 0 40 2",preserveAspectRatio:"none"},m.default.createElement("path",{d:"M0 1 L40 1"}),m.default.createElement("path",{d:"M0 1 L40 1",className:"focus"}),m.default.createElement("path",{d:"M0 1 L40 1",className:"error"}),m.default.createElement("path",{d:"M0 1 L40 1",className:"valid"}))),m.default.createElement("div",{className:"pt-content-card__body__contact__form__row flex flex-dc flex-main-center"},m.default.createElement("input",{id:"email",className:"pt-content-card__body__contact__form__input",type:"email",onChange:this.onInputValueChange}),m.default.createElement("label",{htmlFor:"email",className:"pt-content-card__body__contact__form__label"},P.form.email),m.default.createElement("svg",{className:"line",viewBox:"0 0 40 2",preserveAspectRatio:"none"},m.default.createElement("path",{d:"M0 1 L40 1"}),m.default.createElement("path",{d:"M0 1 L40 1",className:"focus"}),m.default.createElement("path",{d:"M0 1 L40 1",className:"error"}),m.default.createElement("path",{d:"M0 1 L40 1",className:"valid"}))),m.default.createElement("div",{className:"pt-content-card__body__contact__form__row flex flex-dc flex-main-center"},m.default.createElement("textarea",{id:"message",className:"pt-content-card__body__contact__form__textarea",rows:"6",onChange:this.onInputValueChange}),m.default.createElement("label",{htmlFor:"message",className:"pt-content-card__body__contact__form__label"},P.form.message),m.default.createElement("svg",{className:"line",viewBox:"0 0 40 2",preserveAspectRatio:"none"},m.default.createElement("path",{d:"M0 1 L40 1"}),m.default.createElement("path",{d:"M0 1 L40 1",className:"focus"}),m.default.createElement("path",{d:"M0 1 L40 1",className:"error"}),m.default.createElement("path",{d:"M0 1 L40 1",className:"valid"}))),m.default.createElement("div",{className:"pt-content-card__body__contact__form__row flex flex-dc flex-main-center"},m.default.createElement("button",{className:"pt-content-card__body__contact__form__send-button flex flex-full-center pointer",disabled:this.state.isFormLoading||r},t)))))}}]),n}(m.default.PureComponent);function M(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var a=d()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var D=C.home,G=function(t){l()(n,t);var e=M(n);function n(){return a()(this,n),e.apply(this,arguments)}return i()(n,[{key:"render",value:function(){return m.default.createElement("div",{className:"pt-content-card__contact-container flex flex-dc"},m.default.createElement(h.a,{icon:"message",title:D.contact}),m.default.createElement(I,null))}}]),n}(m.default.PureComponent)}}]); \ No newline at end of file diff --git a/test-site/en_GB.json b/test-site/en_GB.json new file mode 100644 index 0000000..2bd2a94 --- /dev/null +++ b/test-site/en_GB.json @@ -0,0 +1,50 @@ +{ + "home": { + "about": "About me", + "about_alt": "About", + "work": "My Work", + "work_alt": "Work", + "contact": "Contact me", + "contact_alt": "Contact" + }, + "about": { + "find_me": "You'll find me on:" + }, + "work": { + "no_projects": "Whoops! There's nothing here yet!", + "categories": "Categories", + "category_all": "All", + "website": "Visit Website", + "source": "Source Code" + }, + "contact": { + "toast": { + "close": "Close" + }, + "form": { + "name": "What's your name?", + "email": "What's your email?", + "message": "Please, explain yourself:", + "validation": { + "invalid_name": "Invalid name", + "invalid_email": "Invalid email", + "invalid_message": "Invalid message", + "invalid_grecaptcha": "Invalid gRecaptchaResponse", + "server_error": "Server reported an error", + "conection_error": "Connection Error", + "success": "Message sent successfully" + } + }, + "loading": "Loading", + "send": "Send", + "sending": "Sending" + }, + "404": { + "back_404": "Go home", + "text": "Sorry, I can't find the page you're looking for...", + "button_text": "Do you want help to return home?" + }, + "misc": { + "back": "Go back" + } +} diff --git a/test-site/es_ES.json b/test-site/es_ES.json new file mode 100644 index 0000000..e2c0f9e --- /dev/null +++ b/test-site/es_ES.json @@ -0,0 +1,50 @@ +{ + "home": { + "about": "Sobre mi", + "about_alt": "Quién soy", + "work": "Mi trabajo", + "work_alt": "Trabajo", + "contact": "Contacte conmigo", + "contact_alt": "Contacto" + }, + "about": { + "find_me": "Me encontrará en:" + }, + "work": { + "no_projects": "¡Ostras! ¡Aún no hay nada por aquí!", + "categories": "Categorías", + "category_all": "Todo", + "website": "Visitar página", + "source": "Código fuente" + }, + "contact": { + "toast": { + "close": "Cerrar" + }, + "form": { + "name": "¿Cómo se llama?", + "email": "¿Cuál es su correo electrónico?", + "message": "Por favor, escriba su mensaje:", + "validation": { + "invalid_name": "Nombre no válido", + "invalid_email": "Correo electrónico no válido", + "invalid_message": "Mensaje no válido", + "invalid_grecaptcha": "gRecaptchaResponse no válido", + "server_error": "El servidor ha reportado un error", + "conection_error": "Error de conexión", + "success": "Mensaje enviado con éxito" + } + }, + "loading": "Cargando", + "send": "Enviar", + "sending": "Enviando" + }, + "404": { + "back_404": "Ir al inicio", + "text": "Lo siento, no se ha podido encontrar la página que busca...", + "button_text": "¿Quiere que le ayude a volver al inicio?" + }, + "misc": { + "back": "Volver atrás" + } +} diff --git a/test-site/favicon-16x16.png b/test-site/favicon-16x16.png new file mode 100644 index 0000000..987ac1d Binary files /dev/null and b/test-site/favicon-16x16.png differ diff --git a/test-site/favicon-32x32.png b/test-site/favicon-32x32.png new file mode 100644 index 0000000..7f99f8d Binary files /dev/null and b/test-site/favicon-32x32.png differ diff --git a/test-site/favicon.ico b/test-site/favicon.ico new file mode 100644 index 0000000..4642fb8 Binary files /dev/null and b/test-site/favicon.ico differ diff --git a/test-site/gRecaptcha.js b/test-site/gRecaptcha.js new file mode 100644 index 0000000..c127285 --- /dev/null +++ b/test-site/gRecaptcha.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{73:function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(1),i=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),a="https://www.google.com/recaptcha/api.js?&onload=recaptchaLoaded&render=explicit"+("undefined"!=typeof window&&window.recaptchaOptions&&window.recaptchaOptions.lang?"&hl="+window.recaptchaOptions.lang:""),c=function(){return"undefined"!=typeof window&&void 0!==window.grecaptcha},l=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this));return n.execute=function(){return!(!c()||!n.element||null===n.recaptchaId||"invisible"!==n.props.size||(grecaptcha.execute(n.recaptchaId),0))},n.reset=function(){return!(!c()||!n.element||null===n.recaptchaId||(grecaptcha.reset(n.recaptchaId),0))},n.getResponse=function(){return c()&&n.element&&null!==n.recaptchaId?grecaptcha.getResponse(n.recaptchaId):null},n.handleChange=function(e){n.props.onChange&&n.props.onChange(e)},n.handleExpired=function(){n.props.onExpired&&n.props.onExpired()},n.removeRecaptcha=function(){grecaptcha.reset(n.recaptchaId)},n.renderRecaptcha=function(){n.recaptchaId=grecaptcha.render(n.element,{sitekey:n.props.sitekey,callback:n._handleChange,theme:n.props.theme,type:n.props.type,tabindex:n.props.tabindex,"expired-callback":n._handleExpired,size:n.props.size,stoken:n.props.stoken,badge:n.props.badge})},n.captureRef=function(e){n.element=e},n.initializeRecaptcha=function(){if(c())n.clearTimer(),n.renderRecaptcha();else if(n.isRecaptchaJSLibInjected())n.startTimer();else{var e=document.createElement("script");window.recaptchaLoaded=n.initializeRecaptcha.bind(n),e.src=a,e.async=1,e.defer=1,e.onerror=function(){},document.body.appendChild(e)}},n.isRecaptchaJSLibInjected=function(){return"undefined"!=typeof window&&!(!document.scripts||0===document.scripts.length)&&Object.assign([],document.scripts).filter((function(e){return null!==e.src.match(/((http|https):)?\/\/(www\.)?google\.com\/recaptcha\/(.*)/i)})).length>0},n.startTimer=function(){n.waitingTimer=setTimeout(n._initializeRecaptcha,200)},n.clearTimer=function(){null!==n.waitingTimer&&clearInterval(n.waitingTimer)},n.waitingTimer=null,n.element=null,n.recaptchaId=null,n._captureRef=n.captureRef.bind(n),n._initializeRecaptcha=n.initializeRecaptcha.bind(n),n._handleExpired=n.handleExpired.bind(n),n._handleChange=n.handleChange.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.initializeRecaptcha()},t.prototype.componentWillUnmount=function(){this.clearTimer(),c()&&this.element&&null!==this.recaptchaId&&this.removeRecaptcha(),window.___grecaptcha_cfg.count=0,window.___grecaptcha_cfg.clients={}},t.prototype.render=function(){var e=function(e,t){var n={};for(var r in e)0>t.indexOf(r)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,["sitekey","onChange","theme","type","tabindex","onExpired","size","stoken","grecaptcha","badge"]);return(0,o.h)("div",r({},e,{ref:this._captureRef}))},t}(o.Component);t.default=l,l.propTypes={sitekey:i.default.string.isRequired,theme:i.default.oneOf(["dark","light"]),type:i.default.oneOf(["image","audio"]),tabindex:i.default.number,size:i.default.oneOf(["compact","normal","invisible"]),stoken:i.default.string,badge:i.default.oneOf(["bottomright","bottomleft","inline"]),onChange:i.default.func,onExpired:i.default.func},l.defaultProps={theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"}},function(e,t,n){"use strict";function r(){}function o(e,t){var n,o,i,a,c=I;for(a=arguments.length;a-- >2;)S.push(arguments[a]);for(t&&null!=t.children&&(S.length||S.push(t.children),delete t.children);S.length;)if((o=S.pop())&&void 0!==o.pop)for(a=o.length;a--;)S.push(o[a]);else"boolean"==typeof o&&(o=null),(i="function"!=typeof e)&&(null==o?o="":"number"==typeof o?o+="":"string"!=typeof o&&(i=!1)),i&&n?c[c.length-1]+=o:c===I?c=[o]:c.push(o),n=i;var l=new r;return l.nodeName=e,l.children=c,l.attributes=null==t?void 0:t,l.key=null==t?void 0:t.key,void 0!==P.vnode&&P.vnode(l),l}function i(e,t){for(var n in t)e[n]=t[n];return e}function a(e,t){return o(e.nodeName,i(i({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}function c(e){!e._dirty&&(e._dirty=!0)&&1==U.push(e)&&(P.debounceRendering||j)(l)}function l(){var e,t=U;for(U=[];e=t.pop();)e._dirty&&T(e)}function p(e,t,n){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&u(e,t.nodeName):n||e._componentConstructor===t.nodeName}function u(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function s(e){var t=i({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function f(e){var t=e.parentNode;t&&t.removeChild(e)}function d(e,t,n,r,o){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),r&&r(e);else if("class"!==t||o)if("style"===t){if(r&&"string"!=typeof r&&"string"!=typeof n||(e.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"==typeof r[i]&&!1===L.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,h,a):e.removeEventListener(t,h,a),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e)(function(e,t,n){try{e[t]=n}catch(e){}})(e,t,null==r?"":r),null!=r&&!1!==r||e.removeAttribute(t);else{var c=o&&t!==(t=t.replace(/^xlink\:?/,""));null==r||!1===r?c?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(c?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function h(e){return this._listeners[e.type](P.event&&P.event(e)||e)}function m(){for(var e;e=M.pop();)P.afterMount&&P.afterMount(e),e.componentDidMount&&e.componentDidMount()}function _(e,t,n,r,o,i){z++||(B=null!=o&&void 0!==o.ownerSVGElement,W=null!=e&&!("__preactattr_"in e));var a=v(e,t,n,r,i);return o&&a.parentNode!==o&&o.appendChild(a),--z||(W=!1,i||m()),a}function v(e,t,n,r,o){var i=e,a=B;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),y(e,!0))),i.__preactattr_=!0,i;var c=t.nodeName;if("function"==typeof c)return N(e,t,n,r);if(B="svg"===c||"foreignObject"!==c&&B,c+="",(!e||!u(e,c))&&(i=function(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(c,B),e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),y(e,!0)}var l=i.firstChild,p=i.__preactattr_,s=t.children;if(null==p){p=i.__preactattr_={};for(var f=i.attributes,d=f.length;d--;)p[f[d].name]=f[d].value}return!W&&s&&1===s.length&&"string"==typeof s[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=s[0]&&(l.nodeValue=s[0]):(s&&s.length||null!=l)&&b(i,s,n,r,W||null!=p.dangerouslySetInnerHTML),w(i,t.attributes,p),B=a,i}function b(e,t,n,r,o){var i,a,c,l,u,s=e.childNodes,d=[],h={},m=0,_=0,b=s.length,g=0,w=t?t.length:0;if(0!==b)for(var x=0;b>x;x++){var C=s[x],k=C.__preactattr_;null!=(T=w&&k?C._component?C._component.__key:k.key:null)?(m++,h[T]=C):(k||(void 0!==C.splitText?!o||C.nodeValue.trim():o))&&(d[g++]=C)}if(0!==w)for(x=0;w>x;x++){var T;if(u=null,null!=(T=(l=t[x]).key))m&&void 0!==h[T]&&(u=h[T],h[T]=void 0,m--);else if(!u&&g>_)for(i=_;g>i;i++)if(void 0!==d[i]&&p(a=d[i],l,o)){u=a,d[i]=void 0,i===g-1&&g--,i===_&&_++;break}u=v(u,l,n,r),c=s[x],u&&u!==e&&u!==c&&(null==c?e.appendChild(u):u===c.nextSibling?f(c):e.insertBefore(u,c))}if(m)for(var x in h)void 0!==h[x]&&y(h[x],!1);for(;g>=_;)void 0!==(u=d[g--])&&y(u,!1)}function y(e,t){var n=e._component;n?R(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||f(e),g(e))}function g(e){for(e=e.lastChild;e;){var t=e.previousSibling;y(e,!0),e=t}}function w(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||d(e,r,n[r],n[r]=void 0,B);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||d(e,r,n[r],n[r]=t[r],B)}function x(e,t,n){var r,o=A[e.name];if(e.prototype&&e.prototype.render?(r=new e(t,n),O.call(r,t,n)):((r=new O(t,n)).constructor=e,r.render=C),o)for(var i=o.length;i--;)if(o[i].constructor===e){r.nextBase=o[i].nextBase,o.splice(i,1);break}return r}function C(e,t,n){return this.constructor(e,n)}function k(e,t,n,r,o){e._disable||(e._disable=!0,(e.__ref=t.ref)&&delete t.ref,(e.__key=t.key)&&delete t.key,!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===P.syncComponentUpdates&&e.base?c(e):T(e,1,o)),e.__ref&&e.__ref(e))}function T(e,t,n,r){if(!e._disable){var o,a,c,l=e.props,p=e.state,u=e.context,f=e.prevProps||l,d=e.prevState||p,h=e.prevContext||u,v=e.base,b=e.nextBase,g=v||b,w=e._component,C=!1;if(v&&(e.props=f,e.state=d,e.context=h,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(l,p,u)?C=!0:e.componentWillUpdate&&e.componentWillUpdate(l,p,u),e.props=l,e.state=p,e.context=u),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!C){o=e.render(l,p,u),e.getChildContext&&(u=i(i({},u),e.getChildContext()));var N,O,E=o&&o.nodeName;if("function"==typeof E){var S=s(o);(a=w)&&a.constructor===E&&S.key==a.__key?k(a,S,1,u,!1):(N=a,e._component=a=x(E,S,u),a.nextBase=a.nextBase||b,a._parentComponent=e,k(a,S,0,u,!1),T(a,1,n,!0)),O=a.base}else c=g,(N=w)&&(c=e._component=null),(g||1===t)&&(c&&(c._component=null),O=_(c,o,u,n||!v,g&&g.parentNode,!0));if(g&&O!==g&&a!==w){var I=g.parentNode;I&&O!==I&&(I.replaceChild(O,g),N||(g._component=null,y(g,!1)))}if(N&&R(N),e.base=O,O&&!r){for(var j=e,L=e;L=L._parentComponent;)(j=L).base=O;O._component=j,O._componentConstructor=j.constructor}}if(!v||n?M.unshift(e):C||(e.componentDidUpdate&&e.componentDidUpdate(f,d,h),P.afterUpdate&&P.afterUpdate(e)),null!=e._renderCallbacks)for(;e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);z||r||m()}}function N(e,t,n,r){for(var o=e&&e._component,i=o,a=e,c=o&&e._componentConstructor===t.nodeName,l=c,p=s(t);o&&!l&&(o=o._parentComponent);)l=o.constructor===t.nodeName;return o&&l&&(!r||o._component)?(k(o,p,3,n,r),e=o.base):(i&&!c&&(R(i),e=a=null),o=x(t.nodeName,p,n),e&&!o.nextBase&&(o.nextBase=e,a=null),k(o,p,1,n,r),e=o.base,a&&e!==a&&(a._component=null,y(a,!1))),e}function R(e){P.beforeUnmount&&P.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?R(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),e.nextBase=t,f(t),function(e){var t=e.constructor.name;(A[t]||(A[t]=[])).push(e)}(e),g(t)),e.__ref&&e.__ref(null)}function O(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{}}function E(e,t,n){return _(n,e,{},!1,t,!1)}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"h",(function(){return o})),n.d(t,"createElement",(function(){return o})),n.d(t,"cloneElement",(function(){return a})),n.d(t,"Component",(function(){return O})),n.d(t,"render",(function(){return E})),n.d(t,"rerender",(function(){return l})),n.d(t,"options",(function(){return P}));var P={},S=[],I=[],j="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout,L=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,U=[],M=[],z=0,B=!1,W=!1,A={};i(O.prototype,{setState:function(e,t){var n=this.state;this.prevState||(this.prevState=i({},n)),i(n,"function"==typeof e?e(n,this.props):e),t&&(this._renderCallbacks=this._renderCallbacks||[]).push(t),c(this)},forceUpdate:function(e){e&&(this._renderCallbacks=this._renderCallbacks||[]).push(e),T(this,2)},render:function(){}}),t.default={h:o,createElement:o,cloneElement:a,Component:O,render:E,rerender:l,options:P}},function(e,t,n){e.exports=n(3)()},function(e,t,n){"use strict";var r=n(4),o=n(5),i=n(6);e.exports=function(){function e(e,t,n,r,a,c){c!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},function(e){"use strict";var t=function(){};e.exports=function(e,n,r,o,i,a,c,l){if(t(n),!e){var p;if(void 0===n)p=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,o,i,a,c,l],s=0;(p=Error(n.replace(/%s/g,(function(){return u[s++]})))).name="Invariant Violation"}throw p.framesToPop=1,p}}},function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}])}}]); \ No newline at end of file diff --git a/test-site/home.js b/test-site/home.js new file mode 100644 index 0000000..8f4c616 --- /dev/null +++ b/test-site/home.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{48:function(e){e.exports=JSON.parse('{"404":{"back_404":"Go home","text":"Sorry, I can\'t find the page you\'re looking for...","button_text":"Do you want help to return home?"},"home":{"about":"About me","about_alt":"About","work":"My Work","work_alt":"Work","contact":"Contact me","contact_alt":"Contact"},"about":{"find_me":"You\'ll find me on:"},"work":{"no_projects":"Whoops! There\'s nothing here yet!","categories":"Categories","category_all":"All","website":"Visit Website","source":"Source Code"},"contact":{"toast":{"close":"Close"},"form":{"name":"What\'s your name?","email":"What\'s your email?","message":"Please, explain yourself:","validation":{"invalid_name":"Invalid name","invalid_email":"Invalid email","invalid_message":"Invalid message","invalid_grecaptcha":"Invalid gRecaptchaResponse","server_error":"Server reported an error","conection_error":"Connection Error","success":"Message sent successfully"}},"loading":"Loading","send":"Send","sending":"Sending"},"misc":{"back":"Go back"}}')},49:function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var n=r(8),o=r.n(n),a=r(9),c=r.n(a),i=r(10),l=r.n(i),u=r(11),s=r.n(u),f=r(5),m=r.n(f),d=r(1);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m()(e);if(t){var o=m()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return s()(this,r)}}var h=function(e){l()(r,e);var t=p(r);function r(){return o()(this,r),t.apply(this,arguments)}return c()(r,[{key:"render",value:function(){var e=this.props.iconColor?{fill:this.props.iconColor}:null;return d.default.createElement("svg",{style:e,viewBox:"0 0 24 24"},d.default.createElement("use",{xlinkHref:"".concat("/","assets/icons.svg#").concat(this.props.iconName)}))}}]),r}(d.default.PureComponent)},50:function(e,t,r){"use strict";r.d(t,"d",(function(){return n})),r.d(t,"e",(function(){return o})),r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return c})),r.d(t,"c",(function(){return i}));var n={fullName:"Website Owner",description:"FRONT-END DEVELOPER",avatarPath:"avatar.svg",about:{title:"HEY THERE! \n I'M WEBSITE OWNER",description:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim\n veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \n \n Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis.",findMeOn:[{iconName:"location",text:"Location, Place",url:"",hoverColor:"#546e7a"},{iconName:"twitter",text:"@username",url:"https://twitter.com/username",hoverColor:"#1da1f2"},{iconName:"email",text:"email@email.com",url:"mailto://email@email.com",hoverColor:"#546e7a"},{iconName:"lock",text:"@kuser",url:"https://keybase.io/kuser",hoverColor:"#e9641c"}]},social:[{iconName:"twitter",url:"https://twitter.com/username",text:"I'm on Twitter",hoverColor:"#1da1f2"},{iconName:"telegram",url:"https://t.me/username",text:"I'm on Telegram",hoverColor:"#0088cc"},{iconName:"github",url:"https://github.com/username",text:"I'm on Github",hoverColor:"#000"},{iconName:"email",url:"mailto:email@email.co",text:"Send me an email",hoverColor:"#000"}]},o=[{title:"Project Title #1",img:"",description:"Lorem ipsum dolor sit amet, in nulla hendrerit ius, sed et congue graeci, qui id propriae accusata.",categories:["Sample","Open source","React"],siteUrl:"https://amazing.project.com",sourceCodeUrl:"https://github.com/user/project"},{title:"Project Title #2",img:"https://www.nethruster.com/assets/img/icons/apple-touch-icon.png",description:"Lorem ipsum dolor sit amet, in nulla hendrerit ius, sed et congue graeci, qui id propriae accusata.",categories:["Sample","Freeware","Go"],siteUrl:"https://amazing.project.com"},{title:"Project Title #3",img:"https://www.nethruster.com/assets/img/wareader.svg",description:"Lorem ipsum dolor sit amet, in nulla hendrerit ius, sed et congue graeci, qui id propriae accusata.",categories:["Wat","Linux","LoL"],sourceCodeUrl:"https://github.com/user/:O"}],a="http://localhost:4000",c="6LcBOC8UAAAAAM9YRyBp1RR-1NnwvMU8UDsR63Vu",i="no-work-icon.jpg"},75:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return N}));var n=r(8),o=r.n(n),a=r(9),c=r.n(a),i=r(10),l=r.n(i),u=r(11),s=r.n(u),f=r(5),m=r.n(f),d=r(1),p=r(50);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m()(e);if(t){var o=m()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return s()(this,r)}}var v=function(e){l()(r,e);var t=h(r);function r(){return o()(this,r),t.apply(this,arguments)}return c()(r,[{key:"render",value:function(){return d.default.createElement("div",{className:"pt-content-card__header flex flex-dc flex-main-center"},d.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200",preserveAspectRatio:"none",className:"pt-content-card__header__background"},d.default.createElement("polygon",{points:"0,200 200,0 200,200"})),d.default.createElement("div",{className:"pt-content-card__header__image flex flex-main-center"},d.default.createElement("img",{src:"./assets/".concat(p.d.avatarPath),alt:this.props.profile.fullName})),d.default.createElement("h1",{className:"pt-content-card__header__title-name ta-c"},this.props.profile.fullName),d.default.createElement("p",{className:"pt-content-card__header__title-desc ta-c"},this.props.profile.description))}}]),r}(d.default.PureComponent),g=r(7),_=r(49);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m()(e);if(t){var o=m()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return s()(this,r)}}var x=function(e){l()(r,e);var t=y(r);function r(){return o()(this,r),t.apply(this,arguments)}return c()(r,[{key:"render",value:function(){return d.default.createElement("div",{className:"pt-content-card__body__icons__icon flex flex-dc flex-cross-center"},d.default.createElement(_.a,{iconName:this.props.iconName}),d.default.createElement("p",null,this.props.iconTitle))}}]),r}(d.default.PureComponent);function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m()(e);if(t){var o=m()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return s()(this,r)}}var E=r(48).home,R=function(e){l()(r,e);var t=b(r);function r(){return o()(this,r),t.apply(this,arguments)}return c()(r,[{key:"render",value:function(){var e=this.props.profile.social.map((function(e,t){return d.default.createElement("a",{key:t,className:"pt-content-card__body__social-icons__icon",href:e.url,rel:"noopener",target:"_blank",title:e.text},d.default.createElement(_.a,{iconName:e.iconName,iconColor:e.hoverColor}))}));return d.default.createElement("div",{className:"pt-content-card__body flex flex-dc flex-main-center"},d.default.createElement("div",{className:"pt-content-card__body__icons flex flex-cross-center flex-sa"},d.default.createElement(g.b,{to:"/about",title:E.about},d.default.createElement(x,{iconTitle:E.about_alt,iconName:"account"})),d.default.createElement(g.b,{to:"/work",title:E.work},d.default.createElement(x,{iconTitle:E.work_alt,iconName:"folder"})),d.default.createElement(g.b,{to:"/contact",title:E.contact},d.default.createElement(x,{iconTitle:E.contact_alt,iconName:"message"}))),this.props.profile.social.length>0&&d.default.createElement("div",{className:"pt-content-card__body__social-icons flex flex-full-center"},e))}}]),r}(d.default.PureComponent);function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m()(e);if(t){var o=m()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return s()(this,r)}}var N=function(e){l()(r,e);var t=w(r);function r(){return o()(this,r),t.apply(this,arguments)}return c()(r,[{key:"render",value:function(){return d.default.createElement("div",{className:"pt-content-card__home-container pt-content-card__home-container--home flex flex-dc"},d.default.createElement(v,{profile:p.d}),d.default.createElement(R,{profile:p.d}))}}]),r}(d.default.PureComponent)}}]); \ No newline at end of file diff --git a/test-site/icons.svg b/test-site/icons.svg new file mode 100644 index 0000000..c6e7290 --- /dev/null +++ b/test-site/icons.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test-site/icons/android-chrome-192x192.png b/test-site/icons/android-chrome-192x192.png new file mode 100644 index 0000000..90fc125 Binary files /dev/null and b/test-site/icons/android-chrome-192x192.png differ diff --git a/test-site/icons/android-chrome-512x512.png b/test-site/icons/android-chrome-512x512.png new file mode 100644 index 0000000..57f173b Binary files /dev/null and b/test-site/icons/android-chrome-512x512.png differ diff --git a/test-site/icons/apple-touch-icon-precomposed.png b/test-site/icons/apple-touch-icon-precomposed.png new file mode 100644 index 0000000..2d5d4f4 Binary files /dev/null and b/test-site/icons/apple-touch-icon-precomposed.png differ diff --git a/test-site/icons/apple-touch-icon.png b/test-site/icons/apple-touch-icon.png new file mode 100644 index 0000000..cfcb483 Binary files /dev/null and b/test-site/icons/apple-touch-icon.png differ diff --git a/test-site/icons/browserconfig.xml b/test-site/icons/browserconfig.xml new file mode 100644 index 0000000..986a353 --- /dev/null +++ b/test-site/icons/browserconfig.xml @@ -0,0 +1,9 @@ + + + + + + #303a45 + + + diff --git a/test-site/icons/favicon-16x16.png b/test-site/icons/favicon-16x16.png new file mode 100644 index 0000000..987ac1d Binary files /dev/null and b/test-site/icons/favicon-16x16.png differ diff --git a/test-site/icons/favicon-32x32.png b/test-site/icons/favicon-32x32.png new file mode 100644 index 0000000..7f99f8d Binary files /dev/null and b/test-site/icons/favicon-32x32.png differ diff --git a/test-site/icons/favicon.ico b/test-site/icons/favicon.ico new file mode 100644 index 0000000..4642fb8 Binary files /dev/null and b/test-site/icons/favicon.ico differ diff --git a/test-site/icons/manifest.json b/test-site/icons/manifest.json new file mode 100644 index 0000000..45f6fc8 --- /dev/null +++ b/test-site/icons/manifest.json @@ -0,0 +1,19 @@ +{ + "name": "Personal Template", + "short_name": "PT", + "icons": [ + { + "src": "/assets/icons/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/assets/icons/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#303a45", + "background_color": "#303a45", + "display": "standalone" +} diff --git a/test-site/icons/meta-img.png b/test-site/icons/meta-img.png new file mode 100644 index 0000000..c2f9f90 Binary files /dev/null and b/test-site/icons/meta-img.png differ diff --git a/test-site/icons/mstile-144x144.png b/test-site/icons/mstile-144x144.png new file mode 100644 index 0000000..ec7d08b Binary files /dev/null and b/test-site/icons/mstile-144x144.png differ diff --git a/test-site/icons/mstile-150x150.png b/test-site/icons/mstile-150x150.png new file mode 100644 index 0000000..1325064 Binary files /dev/null and b/test-site/icons/mstile-150x150.png differ diff --git a/test-site/icons/mstile-310x150.png b/test-site/icons/mstile-310x150.png new file mode 100644 index 0000000..aa5d271 Binary files /dev/null and b/test-site/icons/mstile-310x150.png differ diff --git a/test-site/icons/mstile-310x310.png b/test-site/icons/mstile-310x310.png new file mode 100644 index 0000000..b34dea3 Binary files /dev/null and b/test-site/icons/mstile-310x310.png differ diff --git a/test-site/icons/mstile-70x70.png b/test-site/icons/mstile-70x70.png new file mode 100644 index 0000000..de3dc91 Binary files /dev/null and b/test-site/icons/mstile-70x70.png differ diff --git a/test-site/icons/safari-pinned-tab.svg b/test-site/icons/safari-pinned-tab.svg new file mode 100644 index 0000000..9f7e13a --- /dev/null +++ b/test-site/icons/safari-pinned-tab.svg @@ -0,0 +1,22 @@ + + + + +Created by potrace 1.11, written by Peter Selinger 2001-2013 + + + + + diff --git a/test-site/index.html b/test-site/index.html new file mode 100644 index 0000000..faa5b90 --- /dev/null +++ b/test-site/index.html @@ -0,0 +1 @@ +ptemplate
\ No newline at end of file diff --git a/test-site/lang.json b/test-site/lang.json new file mode 100644 index 0000000..2bd2a94 --- /dev/null +++ b/test-site/lang.json @@ -0,0 +1,50 @@ +{ + "home": { + "about": "About me", + "about_alt": "About", + "work": "My Work", + "work_alt": "Work", + "contact": "Contact me", + "contact_alt": "Contact" + }, + "about": { + "find_me": "You'll find me on:" + }, + "work": { + "no_projects": "Whoops! There's nothing here yet!", + "categories": "Categories", + "category_all": "All", + "website": "Visit Website", + "source": "Source Code" + }, + "contact": { + "toast": { + "close": "Close" + }, + "form": { + "name": "What's your name?", + "email": "What's your email?", + "message": "Please, explain yourself:", + "validation": { + "invalid_name": "Invalid name", + "invalid_email": "Invalid email", + "invalid_message": "Invalid message", + "invalid_grecaptcha": "Invalid gRecaptchaResponse", + "server_error": "Server reported an error", + "conection_error": "Connection Error", + "success": "Message sent successfully" + } + }, + "loading": "Loading", + "send": "Send", + "sending": "Sending" + }, + "404": { + "back_404": "Go home", + "text": "Sorry, I can't find the page you're looking for...", + "button_text": "Do you want help to return home?" + }, + "misc": { + "back": "Go back" + } +} diff --git a/test-site/lang/en_GB.json b/test-site/lang/en_GB.json new file mode 100644 index 0000000..2bd2a94 --- /dev/null +++ b/test-site/lang/en_GB.json @@ -0,0 +1,50 @@ +{ + "home": { + "about": "About me", + "about_alt": "About", + "work": "My Work", + "work_alt": "Work", + "contact": "Contact me", + "contact_alt": "Contact" + }, + "about": { + "find_me": "You'll find me on:" + }, + "work": { + "no_projects": "Whoops! There's nothing here yet!", + "categories": "Categories", + "category_all": "All", + "website": "Visit Website", + "source": "Source Code" + }, + "contact": { + "toast": { + "close": "Close" + }, + "form": { + "name": "What's your name?", + "email": "What's your email?", + "message": "Please, explain yourself:", + "validation": { + "invalid_name": "Invalid name", + "invalid_email": "Invalid email", + "invalid_message": "Invalid message", + "invalid_grecaptcha": "Invalid gRecaptchaResponse", + "server_error": "Server reported an error", + "conection_error": "Connection Error", + "success": "Message sent successfully" + } + }, + "loading": "Loading", + "send": "Send", + "sending": "Sending" + }, + "404": { + "back_404": "Go home", + "text": "Sorry, I can't find the page you're looking for...", + "button_text": "Do you want help to return home?" + }, + "misc": { + "back": "Go back" + } +} diff --git a/test-site/lang/es_ES.json b/test-site/lang/es_ES.json new file mode 100644 index 0000000..e2c0f9e --- /dev/null +++ b/test-site/lang/es_ES.json @@ -0,0 +1,50 @@ +{ + "home": { + "about": "Sobre mi", + "about_alt": "Quién soy", + "work": "Mi trabajo", + "work_alt": "Trabajo", + "contact": "Contacte conmigo", + "contact_alt": "Contacto" + }, + "about": { + "find_me": "Me encontrará en:" + }, + "work": { + "no_projects": "¡Ostras! ¡Aún no hay nada por aquí!", + "categories": "Categorías", + "category_all": "Todo", + "website": "Visitar página", + "source": "Código fuente" + }, + "contact": { + "toast": { + "close": "Cerrar" + }, + "form": { + "name": "¿Cómo se llama?", + "email": "¿Cuál es su correo electrónico?", + "message": "Por favor, escriba su mensaje:", + "validation": { + "invalid_name": "Nombre no válido", + "invalid_email": "Correo electrónico no válido", + "invalid_message": "Mensaje no válido", + "invalid_grecaptcha": "gRecaptchaResponse no válido", + "server_error": "El servidor ha reportado un error", + "conection_error": "Error de conexión", + "success": "Mensaje enviado con éxito" + } + }, + "loading": "Cargando", + "send": "Enviar", + "sending": "Enviando" + }, + "404": { + "back_404": "Ir al inicio", + "text": "Lo siento, no se ha podido encontrar la página que busca...", + "button_text": "¿Quiere que le ayude a volver al inicio?" + }, + "misc": { + "back": "Volver atrás" + } +} diff --git a/test-site/lang/lang.json b/test-site/lang/lang.json new file mode 100644 index 0000000..2bd2a94 --- /dev/null +++ b/test-site/lang/lang.json @@ -0,0 +1,50 @@ +{ + "home": { + "about": "About me", + "about_alt": "About", + "work": "My Work", + "work_alt": "Work", + "contact": "Contact me", + "contact_alt": "Contact" + }, + "about": { + "find_me": "You'll find me on:" + }, + "work": { + "no_projects": "Whoops! There's nothing here yet!", + "categories": "Categories", + "category_all": "All", + "website": "Visit Website", + "source": "Source Code" + }, + "contact": { + "toast": { + "close": "Close" + }, + "form": { + "name": "What's your name?", + "email": "What's your email?", + "message": "Please, explain yourself:", + "validation": { + "invalid_name": "Invalid name", + "invalid_email": "Invalid email", + "invalid_message": "Invalid message", + "invalid_grecaptcha": "Invalid gRecaptchaResponse", + "server_error": "Server reported an error", + "conection_error": "Connection Error", + "success": "Message sent successfully" + } + }, + "loading": "Loading", + "send": "Send", + "sending": "Sending" + }, + "404": { + "back_404": "Go home", + "text": "Sorry, I can't find the page you're looking for...", + "button_text": "Do you want help to return home?" + }, + "misc": { + "back": "Go back" + } +} diff --git a/test-site/lang/pt_BR.json b/test-site/lang/pt_BR.json new file mode 100644 index 0000000..44f1504 --- /dev/null +++ b/test-site/lang/pt_BR.json @@ -0,0 +1,50 @@ +{ + "home": { + "about": "Sobre mim", + "about_alt": "Sobre", + "work": "Meus projetos", + "work_alt": "Projetos", + "contact": "Contato", + "contact_alt": "Contato" + }, + "about": { + "find_me": "Você irá me encontrar aqui:" + }, + "work": { + "no_projects": "Ooops! Não há nada aqui ainda!", + "categories": "Categorias", + "category_all": "Todos", + "website": "Visitar site", + "source": "Código fonte" + }, + "contact": { + "toast": { + "close": "Fechar" + }, + "form": { + "name": "Qual é o seu nome?", + "email": "Qual é o seu e-mail?", + "message": "Por favor, fale mais sobre você:", + "validation": { + "invalid_name": "Nome inválido", + "invalid_email": "E-mail inválido", + "invalid_message": "Mensagem inválida", + "invalid_grecaptcha": "Erro obtido: gRecaptchaResponse", + "server_error": "Servidor relatou um erro", + "conection_error": "Erro de conexão", + "success": "Mensagem enviada com sucesso" + } + }, + "loading": "Loading", + "send": "Send", + "sending": "Sending" + }, + "404": { + "back_404": "Go home", + "text": "Sorry, I can't find the page you're looking for...", + "button_text": "Do you want help to return home?" + }, + "misc": { + "back": "Go back" + } +} diff --git a/test-site/main-9371d3.css b/test-site/main-9371d3.css new file mode 100644 index 0000000..6e9be23 --- /dev/null +++ b/test-site/main-9371d3.css @@ -0,0 +1 @@ +/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */*,:after,:before{background-repeat:no-repeat;-webkit-box-sizing:inherit;box-sizing:inherit}:after,:before{text-decoration:inherit;vertical-align:inherit}html{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:sans-serif;line-height:1.5;width:100vw;height:100vh}body{font-weight:400;overflow-x:hidden;color:#4b4b4b;background-color:#e6e9f0;background-image:linear-gradient(45deg,#2c3540,#455260);text-rendering:optimizeLegibility;-webkit-font-feature-settings:"kern";font-feature-settings:"kern";font-family:Roboto,Noto Sans,apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif}#pt-app,body{width:100%;height:100%}#pt-app{position:relative}header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}a{background-color:transparent;-webkit-text-decoration-skip:objects;text-decoration:none;color:currentColor}b,strong{font-weight:inherit;font-weight:bolder}small{font-size:80%}img{border-style:none;max-width:100%}svg:not(:root){overflow:hidden}svg{fill:currentColor;max-width:100%;width:24px;height:auto}button,input,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}button{background:transparent;border:none;padding:0;margin:0;color:currentColor}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[hidden]{display:none}li,ul{list-style:none}h1,h2,h3,h4,li,p,ul{margin:0;padding:0}@-webkit-keyframes comeIn{0%{opacity:0;-webkit-transform:translateY(-10px);transform:translateY(-10px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes comeIn{0%{opacity:0;-webkit-transform:translateY(-10px);transform:translateY(-10px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes comeInToast{0%{opacity:0;-webkit-transform:translateY(25px);transform:translateY(25px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes comeInToast{0%{opacity:0;-webkit-transform:translateY(25px);transform:translateY(25px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes opacitychange{0%,to{opacity:0}60%{opacity:1}}@keyframes opacitychange{0%,to{opacity:0}60%{opacity:1}}.pointer{cursor:pointer}.flex{display:-webkit-box;display:-ms-flexbox;display:flex}.flex-dc{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.flex-full-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.flex-full-center,.flex-main-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.flex-cross-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.flex-sb{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.flex-sa{-ms-flex-pack:distribute;justify-content:space-around}.ta-c{text-align:center}.ta-r{text-align:right}@-webkit-keyframes toastify-bounceInUp{0%{opacity:0;-webkit-transform:translate3d(0,200px,0);transform:translate3d(0,200px,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes toastify-bounceInUp{0%{opacity:0;-webkit-transform:translate3d(0,200px,0);transform:translate3d(0,200px,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes toastify-bounceOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(0,200px,0);transform:translate3d(0,200px,0)}}@keyframes toastify-bounceOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(0,200px,0);transform:translate3d(0,200px,0)}}.toast-enter--bottom-left,.toastify-bounceInUp{-webkit-animation-name:toastify-bounceInUp;animation-name:toastify-bounceInUp}.toast-exit--bottom-left,.toastify-bounceOutDown{-webkit-animation-name:toastify-bounceOutDown;animation-name:toastify-bounceOutDown}.toastify-animated{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.toastify{z-index:999;position:fixed;padding:4px;width:320px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff}.toastify--bottom-left{bottom:8px;left:8px}.toastify__close{padding:0;color:#fff;font-weight:700;font-size:14px;background:transparent;outline:none;border:none;cursor:pointer;opacity:.7;-webkit-transition:.3s ease;transition:.3s ease}.toastify__close:focus,.toastify__close:hover{opacity:1}.toastify-content--default .toastify__close{color:#000;opacity:.3}.toastify-content--default .toastify__close:hover{opacity:1}.toastify-content{position:relative;min-height:48px;padding:8px;border-radius:4px;-webkit-box-shadow:0 1px 10px 0 rgba(0,0,0,.1),0 2px 15px 0 rgba(0,0,0,.05);box-shadow:0 1px 10px 0 rgba(0,0,0,.1),0 2px 15px 0 rgba(0,0,0,.05);background-color:#323232;color:#f1f1f1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;max-height:800px;overflow:hidden;font-family:sans-serif;padding:12px}.toastify-content:not(:last-child){margin-bottom:8px}.toastify__body{margin:auto 0;font-size:.9em}.toastify__progress{display:none}.toastify-dismiss{background-color:hsla(0,0%,100%,.1);padding:4px 8px;border-radius:2px;font-size:.78em;text-transform:uppercase;cursor:pointer;-webkit-transition:background-color .2s;transition:background-color .2s;color:#f1f1f1}.toastify-dismiss:hover{background-color:hsla(0,0%,100%,.2)}.toastify-content--default{background:#323232;color:#f1f1f1}.toastify-content--error{background:#f44336;color:#f1f1f1}.toastify-content--success{background:#00c853;color:#f1f1f1}.loader-container.is-loading{opacity:1;visibility:visible;pointer-events:auto;position:relative}.loader{margin-left:8px}.loader span{display:inline-block;width:4px;height:4px;border-radius:100%;background-color:currentColor}.loader span:not(:last-child){margin-right:4px}.loader span:first-child{-webkit-animation:opacitychange 1s ease-in-out infinite;animation:opacitychange 1s ease-in-out infinite}.loader span:nth-child(2){-webkit-animation:opacitychange 1s ease-in-out .33s infinite;animation:opacitychange 1s ease-in-out .33s infinite}.loader span:nth-child(3){-webkit-animation:opacitychange 1s ease-in-out .66s infinite;animation:opacitychange 1s ease-in-out .66s infinite}.pt-content-card{width:100%;height:100%;max-width:1250px;max-height:650px;border-radius:4px;-webkit-box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23);box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23)}.pt-content-card__header{position:relative;height:300px;background-color:#303a45;color:#eef1f5}.pt-content-card__header__background{position:absolute;fill:#eef1f5;bottom:-1px;width:100%;height:3vw}.pt-content-card__header__image{-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.1s;animation-delay:.1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__header__image img{border-radius:50%;max-height:130px}.pt-content-card__header__title-desc,.pt-content-card__header__title-name{text-transform:uppercase;font-weight:300;-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.2s;animation-delay:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__header__title-desc{opacity:.7}.pt-content-card__header--nav{height:64px;padding:0 16px;-webkit-box-shadow:0 3px 12px rgba(0,0,0,.16),0 3px 12px rgba(0,0,0,.23);box-shadow:0 3px 12px rgba(0,0,0,.16),0 3px 12px rgba(0,0,0,.23);z-index:100}.pt-content-card__header--nav__icon{background-color:hsla(0,0%,100%,.1);border-radius:4px}.pt-content-card__header--nav__icon svg{width:30px}.pt-content-card__header--nav button{display:none}.pt-content-card__header--nav__title{-webkit-box-flex:2;-ms-flex:2;flex:2}.pt-content-card__header--nav__title svg{width:32px;margin-right:8px}.pt-content-card__header--nav__title h2{font-weight:300;text-transform:uppercase}.pt-content-card__body{-webkit-box-flex:1;-ms-flex:1;flex:1;background-color:#eef1f5}.pt-content-card__body__icons{-webkit-box-flex:3;-ms-flex:3;flex:3;color:#263238}.pt-content-card__body__icons p{text-transform:uppercase}.pt-content-card__body__icons svg{width:100px}.pt-content-card__body__icons a:first-child{-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.3s;animation-delay:.3s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__icons a:nth-child(2){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.4s;animation-delay:.4s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__icons a:nth-child(3){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.5s;animation-delay:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__icons a:nth-child(4){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.6s;animation-delay:.6s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__icons a:nth-child(5){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.7s;animation-delay:.7s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__icons a:nth-child(6){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.8s;animation-delay:.8s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__icons a:nth-child(7){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.9s;animation-delay:.9s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__icons a:nth-child(8){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__icons a:nth-child(9){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:1.1s;animation-delay:1.1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__icons a:nth-child(10){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:1.2s;animation-delay:1.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__social-icons{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:32px}.pt-content-card__body__social-icons__icon:first-child{-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.5s;animation-delay:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__social-icons__icon:nth-child(2){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.6s;animation-delay:.6s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__social-icons__icon:nth-child(3){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.7s;animation-delay:.7s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__social-icons__icon:nth-child(4){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.8s;animation-delay:.8s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__social-icons__icon:nth-child(5){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.9s;animation-delay:.9s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__social-icons__icon:nth-child(6){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__social-icons__icon:nth-child(7){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:1.1s;animation-delay:1.1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__social-icons__icon:nth-child(8){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:1.2s;animation-delay:1.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__social-icons__icon:nth-child(9){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:1.3s;animation-delay:1.3s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__social-icons__icon:nth-child(10){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:1.4s;animation-delay:1.4s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__social-icons__icon svg{width:28px;-webkit-transition:fill .2s;transition:fill .2s}.pt-content-card__body__social-icons__icon svg:not(:hover){fill:#263238!important}.pt-content-card__body__social-icons__icon:not(:last-child){margin-right:16px}.pt-content-card__body__about__details,.pt-content-card__body__about__presentation{height:100%;-webkit-box-flex:1;-ms-flex:1;flex:1}.pt-content-card__body__about__presentation{padding:32px;-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.1s;animation-delay:.1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__about__presentation img{max-width:200px;border-radius:50%}.pt-content-card__body__about__presentation h1{font-weight:300;font-size:1.7em;text-transform:uppercase}.pt-content-card__body__about__details p{padding:32px;-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.3s;animation-delay:.3s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__about__details h3{font-weight:400;font-size:1.2em;margin-top:48px}.pt-content-card__body__about__details__net-icons,.pt-content-card__body__about__details h3{-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.4s;animation-delay:.4s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__about__details__net-icons{display:grid;grid-template-columns:auto auto;grid-template-rows:100px;width:100%;padding:24px}.pt-content-card__body__about__details__net-icons a svg{-webkit-transition:fill .2s;transition:fill .2s}.pt-content-card__body__about__details__net-icons a:not(:hover) svg{fill:#546e7a!important}.pt-content-card__body__work-filters{height:100%;-webkit-box-flex:.4;-ms-flex:.4;flex:.4;background-color:#fff;min-width:200px}.pt-content-card__body__work-filters p{font-size:1.2em;height:64px;font-weight:400;padding:32px 32px 0}.pt-content-card__body__work-filters__overlay,.pt-content-card__body__work-filters button{display:none}.pt-content-card__body__work-items{-webkit-box-flex:2;-ms-flex:2;flex:2;height:100%;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:16px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:130px;overflow:auto;-webkit-transition:padding .3s;transition:padding .3s}.pt-content-card__body__work-items__item{background-color:#fff;max-width:485px;height:110px;border-radius:4px;overflow:hidden;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.14);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.14);-webkit-transition:all .3s;transition:all .3s;margin:8px 0;justify-self:center;-webkit-animation:fadeIn;animation:fadeIn;-webkit-animation-duration:.4s;animation-duration:.4s;-webkit-animation-delay:.1s;animation-delay:.1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1;width:100%}.pt-content-card__body__work-items__item:only-child{max-width:none}.pt-content-card__body__work-items__item__image{max-height:100%;max-width:100%;-webkit-box-flex:2;-ms-flex:2;flex:2;min-width:100px;-ms-flex-item-align:center;align-self:center}.pt-content-card__body__work-items__item__image img{padding:8px}.pt-content-card__body__work-items__item__data{padding:8px;-webkit-box-flex:5;-ms-flex:5;flex:5}.pt-content-card__body__work-items__item__data h4{font-weight:400}.pt-content-card__body__work-items__item__data p{font-size:.8em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.pt-content-card__body__work-items__item__data__tags span{font-size:.7em;background-color:rgba(0,0,0,.05);border-radius:8px;padding:3.2px 5.3333333333px}.pt-content-card__body__work-items__item__data__tags span:not(:last-child){margin-right:8px}.pt-content-card__body__work-items__item__buttons{border-left:1px solid rgba(0,0,0,.1);-webkit-box-flex:1;-ms-flex:1;flex:1}.pt-content-card__body__work-items__item__buttons a{width:100px;-webkit-box-flex:1;-ms-flex:1;flex:1;font-size:.8em;-webkit-transition:background-color .3s;transition:background-color .3s}.pt-content-card__body__work-items__item__buttons a:hover{background-color:rgba(0,0,0,.05)}.pt-content-card__body .no-projects-text{font-size:1.6em;text-align:center;color:hsla(0,0%,53%,.8);font-weight:300}.pt-content-card__body .no-projects-text svg{width:32px}.pt-content-card__body__contact__social{min-height:100%;-webkit-box-flex:.6;-ms-flex:.6;flex:.6;background-color:#fff;overflow-y:auto;overflow-x:hidden;min-width:200px}.pt-content-card__body__contact__social a{margin:16px 0}.pt-content-card__body__contact__social a:first-child{-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.1s;animation-delay:.1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__contact__social a:nth-child(2){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.2s;animation-delay:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__contact__social a:nth-child(3){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.3s;animation-delay:.3s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__contact__social a:nth-child(4){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.4s;animation-delay:.4s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__contact__social a:nth-child(5){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.5s;animation-delay:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__contact__social a:nth-child(6){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.6s;animation-delay:.6s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__contact__social a:nth-child(7){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.7s;animation-delay:.7s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__contact__social a:nth-child(8){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.8s;animation-delay:.8s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__contact__social a:nth-child(9){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:.9s;animation-delay:.9s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__contact__social a:nth-child(10){-webkit-animation:comeIn;animation:comeIn;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__contact__social__item{padding:8px 16px;min-width:200px;background-color:#f2f2f2;text-align:center}.pt-content-card__body__contact__social__item svg{width:22px}.pt-content-card__body__contact__form{-webkit-box-flex:2;-ms-flex:2;flex:2;height:100%;width:100%;-ms-flex-item-align:center;align-self:center;-webkit-animation:fadeIn;animation:fadeIn;-webkit-animation-duration:.4s;animation-duration:.4s;-webkit-animation-delay:.1s;animation-delay:.1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;opacity:1}.pt-content-card__body__contact__form form{padding:32px;width:100%}.pt-content-card__body__contact__form__send-button{background-color:#303a45;padding:8px 16px;border-radius:4px;color:#f1f1f1;text-transform:uppercase;font-size:1em;font-weight:300;-ms-flex-item-align:start;align-self:flex-start;min-width:150px}.pt-content-card__body__contact__form__send-button svg{width:17px}.pt-content-card__body__contact__form__send-button[disabled]{background-color:#b0bec5;cursor:not-allowed;color:#fff}.pt-content-card__body__contact__form__row{position:relative;margin:16px 0;max-width:700px;width:100%}.pt-content-card__body__contact__form__row label{width:100%;max-width:20em;position:absolute;top:8px;cursor:text;-webkit-transition:top .2s,color .2s,-webkit-transform .2s;transition:top .2s,color .2s,-webkit-transform .2s;transition:top .2s,transform .2s,color .2s;transition:top .2s,transform .2s,color .2s,-webkit-transform .2s}.pt-content-card__body__contact__form__row input,.pt-content-card__body__contact__form__row textarea{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:block;margin:0;border:none;padding:.5em 0;line-height:1;outline:none;background-color:transparent;width:100%;font-size:.95em}.pt-content-card__body__contact__form__row textarea{resize:vertical;height:auto;max-height:250px}.pt-content-card__body__contact__form__row .line{width:100%;height:2px;stroke:#bfbfbf;stroke-width:2px}.pt-content-card__body__contact__form__row .line .error,.pt-content-card__body__contact__form__row .line .focus,.pt-content-card__body__contact__form__row .line .valid{-webkit-transition:all .25s;transition:all .25s;stroke-dasharray:0,20;stroke-dashoffset:-20}.pt-content-card__body__contact__form__row .line .focus{stroke:#000}.pt-content-card__body__contact__form__row .line .valid,.pt-content-card__body__contact__form__row .validation.valid{stroke:#1daf8d;color:#1daf8d}.pt-content-card__body__contact__form__row .line .error,.pt-content-card__body__contact__form__row .validation.error{stroke:#c00;color:#c00}.pt-content-card__body__contact__form__row input.error~.line .error,.pt-content-card__body__contact__form__row input.valid~.line .valid,.pt-content-card__body__contact__form__row input:focus~.line .focus,.pt-content-card__body__contact__form__row textarea.error~.line .error,.pt-content-card__body__contact__form__row textarea.valid~.line .valid,.pt-content-card__body__contact__form__row textarea:focus~.line .focus{stroke-dasharray:40,0;stroke-dashoffset:0}.pt-content-card__body__contact__form__row input:focus~label,.pt-content-card__body__contact__form__row label.has-content,.pt-content-card__body__contact__form__row textarea:focus~label{top:-16px;-webkit-transform:scale(.8) translateX(-40px);transform:scale(.8) translateX(-40px);color:#bfbfbf}body{margin:0}.view-loading{width:100vw;height:100vh;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:absolute;top:0;left:0}@-webkit-keyframes spinner-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(270deg);transform:rotate(270deg)}}@keyframes spinner-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(270deg);transform:rotate(270deg)}}@-webkit-keyframes spinner-dash{0%{stroke-dashoffset:88px}50%{stroke-dashoffset:22px;-webkit-transform:rotate(135deg);transform:rotate(135deg)}to{stroke-dashoffset:88px;-webkit-transform:rotate(450deg);transform:rotate(450deg)}}@keyframes spinner-dash{0%{stroke-dashoffset:88px}50%{stroke-dashoffset:22px;-webkit-transform:rotate(135deg);transform:rotate(135deg)}to{stroke-dashoffset:88px;-webkit-transform:rotate(450deg);transform:rotate(450deg)}}.spinner{-webkit-transform:translate(0);transform:translate(0)}.spinner>svg{-webkit-animation:spinner-rotate 1.4s linear infinite;animation:spinner-rotate 1.4s linear infinite;width:auto}.spinner circle{stroke-dasharray:88px;stroke-dashoffset:0;-webkit-transform-origin:center;transform-origin:center;-webkit-animation:spinner-dash 1.4s ease-in-out infinite;animation:spinner-dash 1.4s ease-in-out infinite;stroke-width:1;stroke-linecap:round;stroke:#f1f1f1}.md__checkbox{display:inline-block;-webkit-transform:translateZ(0);transform:translateZ(0)}.md__checkbox label{padding:4px 32px;margin:4px 0;border-radius:2px;position:relative}.md__checkbox label:hover{background-color:hsla(0,0%,95%,.8)}.md__checkbox input[type=checkbox]{opacity:0;position:absolute;margin:0;z-index:-1;width:0;height:0;overflow:hidden;left:0;pointer-events:none}.md__checkbox .md__checkbox-material{vertical-align:middle;position:relative;top:3px}.md__checkbox .md__checkbox-material__text{font-weight:300;margin-left:16px;width:100%}.md__checkbox .md__checkbox-material:before{position:absolute;left:8px;top:2px;content:"";background-color:rgba(0,0,0,.5);height:4px;width:4px;border-radius:100%;z-index:1;opacity:0;margin:0}.md__checkbox .md__checkbox-material .md__checkbox-check{position:relative;display:inline-block;width:20px;height:20px;border:2px solid;border-radius:2px;overflow:hidden;z-index:1}.md__checkbox .md__checkbox-material .md__checkbox-check:before{position:absolute;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg);display:block;margin-top:-4px;margin-left:6px;width:0;height:0;-webkit-box-shadow:0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0 inset;box-shadow:0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,inset 0 0 0 0;-webkit-animation:checkbox-off .2s forwards ease-out;animation:checkbox-off .2s forwards ease-out}.md__checkbox input[type=checkbox]:focus+.md__checkbox-material .md__checkbox-check:after{opacity:.2}.md__checkbox input[type=checkbox]:checked+.md__checkbox-material .md__checkbox-check:before{-webkit-box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,20px -12px 0 11px;box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,20px -12px 0 11px;-webkit-animation:checkbox-on .2s forwards ease-out;animation:checkbox-on .2s forwards ease-out}@-webkit-keyframes checkbox-on{0%{-webkit-box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,15px 2px 0 11px;box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,15px 2px 0 11px}50%{-webkit-box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,20px 2px 0 11px;box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,20px 2px 0 11px}to{-webkit-box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,20px -12px 0 11px;box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,20px -12px 0 11px}}@keyframes checkbox-on{0%{-webkit-box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,15px 2px 0 11px;box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,15px 2px 0 11px}50%{-webkit-box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,20px 2px 0 11px;box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,20px 2px 0 11px}to{-webkit-box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,20px -12px 0 11px;box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,20px -12px 0 11px}}@-webkit-keyframes checkbox-off{0%{-webkit-box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,20px -12px 0 11px,0 0 0 0 inset;box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,20px -12px 0 11px,inset 0 0 0 0}25%{-webkit-box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,20px -12px 0 11px,0 0 0 0 inset;box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,20px -12px 0 11px,inset 0 0 0 0}50%{-webkit-transform:rotate(45deg);transform:rotate(45deg);margin-top:-4px;margin-left:6px;width:0;height:0;-webkit-box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,15px 2px 0 11px,0 0 0 0 inset;box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,15px 2px 0 11px,inset 0 0 0 0}51%{-webkit-transform:rotate(0deg);transform:rotate(0deg);margin-top:-2px;margin-left:-2px;width:20px;height:20px;-webkit-box-shadow:0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 10px inset;box-shadow:0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,inset 0 0 0 10px}to{-webkit-transform:rotate(0deg);transform:rotate(0deg);margin-top:-2px;margin-left:-2px;width:20px;height:20px;-webkit-box-shadow:0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0 inset;box-shadow:0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,inset 0 0 0 0}}@keyframes checkbox-off{0%{-webkit-box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,20px -12px 0 11px,0 0 0 0 inset;box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,20px -12px 0 11px,inset 0 0 0 0}25%{-webkit-box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,20px -12px 0 11px,0 0 0 0 inset;box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,20px -12px 0 11px,inset 0 0 0 0}50%{-webkit-transform:rotate(45deg);transform:rotate(45deg);margin-top:-4px;margin-left:6px;width:0;height:0;-webkit-box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,15px 2px 0 11px,0 0 0 0 inset;box-shadow:0 0 0 10px,10px -10px 0 10px,32px 0 0 20px,0 32px 0 20px,-5px 5px 0 10px,15px 2px 0 11px,inset 0 0 0 0}51%{-webkit-transform:rotate(0deg);transform:rotate(0deg);margin-top:-2px;margin-left:-2px;width:20px;height:20px;-webkit-box-shadow:0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 10px inset;box-shadow:0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,inset 0 0 0 10px}to{-webkit-transform:rotate(0deg);transform:rotate(0deg);margin-top:-2px;margin-left:-2px;width:20px;height:20px;-webkit-box-shadow:0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0 inset;box-shadow:0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,0 0 0 0,inset 0 0 0 0}}.pt-content-card__home-container{width:100%;height:100%}.pt-content-card__about-container{width:100%;min-height:100%}.pt-content-card__work-container{width:100%;height:100%}.pt-content-card__contact-container{width:100%;min-height:100%}.pt-content-card__404-container{width:100%;height:100%;color:rgba(90,109,129,.8)}.pt-content-card__404-container p{text-transform:uppercase;font-size:1.3em;font-weight:500;text-align:center;padding:16px}.pt-content-card__404-container .pt-content-card__body__404 div{background-color:#fff;border-radius:4px;padding:8px 32px;margin:32px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.14);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.14);cursor:pointer;-webkit-transition:-webkit-box-shadow .3s ease;transition:-webkit-box-shadow .3s ease;transition:box-shadow .3s ease;transition:box-shadow .3s ease,-webkit-box-shadow .3s ease;color:#656565;text-align:center}.pt-content-card__404-container .pt-content-card__body__404 div:hover{-webkit-box-shadow:0 3px 6px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.14)}.pt-content-card__404-container svg{width:120px}@media(min-width:1250px){.pt-content-card{overflow:hidden}}@media(max-width:1250px){.pt-content-card{max-height:none}.pt-content-card__body__work-items{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.pt-content-card__body__work-items__item{max-width:none}.pt-content-card__body__work-items__item__buttons a{width:100%;min-width:100px}.pt-content-card__body__work-items__item__image{-webkit-box-flex:.7;-ms-flex:.7;flex:.7}}@media(max-width:900px){.pt-content-card__body__contact{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.pt-content-card__body__contact__form,.pt-content-card__body__contact__social{-webkit-box-flex:initial;-ms-flex:initial;flex:initial}.pt-content-card__header--nav{position:fixed;width:100%}.pt-content-card__body__about,.pt-content-card__body__contact,.pt-content-card__body__work{margin-top:64px}.pt-content-card__home-container--home{height:100vh}.toast-notification{width:100%!important;margin:0!important;bottom:0!important}.toast-notification span{display:inline-block!important;width:100vw!important;border-radius:0!important}}@media(max-width:700px){.md__checkbox label{padding:8px 32px}.pt-content-card__header--nav button{display:-webkit-box;display:-ms-flexbox;display:flex}.pt-content-card__body__work-filters{position:fixed;-webkit-transform:translateX(-100vw);transform:translateX(-100vw);pointer-events:none;top:0;left:0;-webkit-box-shadow:0 3px 12px rgba(0,0,0,.16),0 3px 12px rgba(0,0,0,.23);box-shadow:0 3px 12px rgba(0,0,0,.16),0 3px 12px rgba(0,0,0,.23);z-index:210;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.pt-content-card__body__work-filters>p{position:fixed;width:100%}.pt-content-card__body__work-filters button{display:-webkit-box;display:-ms-flexbox;display:flex}.pt-content-card__body__work-filters.filters-open{pointer-events:auto;-webkit-transform:translateX(0);transform:translateX(0)}.pt-content-card__body__work-filters__list{padding:8px 0;margin-top:64px;overflow-y:scroll;height:calc(100% - 58px)}.pt-content-card__body__work-filters__overlay{display:block;position:fixed;background-color:#000;opacity:0;pointer-events:none;width:100vw;height:100vh;top:0;left:0;-webkit-transition:opacity .2s;transition:opacity .2s;z-index:100}.pt-content-card__body__work-filters__overlay.filters-open{pointer-events:auto;opacity:.4}.pt-content-card__body__work-filters p{padding:16px 0;background-color:#303a45;text-align:center;color:#eef1f5}.pt-content-card__about-container{overflow:auto}.pt-content-card__body__about{display:block}.pt-content-card__body__about__presentation{padding-top:48px}}@media(max-width:600px){.pt-content-card__body{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}@media(max-width:500px){.pt-content-card__body__work-items{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;padding:0}.pt-content-card__body__work-items__item{height:auto;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;max-width:none;border-radius:0}.pt-content-card__body__work-items__item:first-child{margin-top:16px}.pt-content-card__body__work-items__item__image{max-width:100px}.pt-content-card__body__work-items__item__buttons{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.pt-content-card__body__work-items__item__buttons a{padding:16px}.pt-content-card__body__work-items__item__data__tags{display:none}.pt-content-card__body__icons__icon{width:72px;margin-top:24px}}@media(max-height:650px){.pt-content-card{max-width:none}}@media(max-height:530px){.pt-content-card__home-container--home{height:auto}}@media only screen and (max-width:480px){.toastify{width:100vw;padding:0}.toastify--bottom-left{left:0;bottom:0;margin:0}.toastify-content{margin-bottom:0;border-radius:0}}@media(max-height:400px){.pt-content-card__body__work-items{display:block}#pt-app{min-height:100%;height:auto}}@media(max-height:470px){.pt-content-card__body__work-items{-ms-flex-wrap:nowrap;flex-wrap:nowrap}} diff --git a/test-site/main.js b/test-site/main.js new file mode 100644 index 0000000..7dfdcf4 --- /dev/null +++ b/test-site/main.js @@ -0,0 +1 @@ +!function(e){function t(t){for(var r,o,i=t[0],a=t[1],c=t[2],u=t[3]||[],s=0,l=[];s=0&&n._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,p){case"idle":(y={})[t]=e[t],h("ready");break;case"ready":S(t);break;case"prepare":case"check":case"dispose":case"apply":(m=m||[]).push(t)}},check:E,apply:T,status:function(e){if(!e)return p;f.push(e)},addStatusHandler:function(e){f.push(e)},removeStatusHandler:function(e){var t=f.indexOf(e);t>=0&&f.splice(t,1)},data:c[t]};return o=void 0,n}var f=[],p="idle";function h(e){p=e;for(var t=0;t0;){var o=r.pop(),i=o.id,a=o.chain;if((l=k[i])&&(!l.hot._selfAccepted||l.hot._selfInvalidated)){if(l.hot._selfDeclined)return{type:"self-declined",chain:a,moduleId:i};if(l.hot._main)return{type:"unaccepted",chain:a,moduleId:i};for(var c=0;c ")),j.type){case"self-declined":n.onDeclined&&n.onDeclined(j),n.ignoreDeclined||(R=new Error("Aborted because of self decline: "+j.moduleId+L));break;case"declined":n.onDeclined&&n.onDeclined(j),n.ignoreDeclined||(R=new Error("Aborted because of declined dependency: "+j.moduleId+" in "+j.parentId+L));break;case"unaccepted":n.onUnaccepted&&n.onUnaccepted(j),n.ignoreUnaccepted||(R=new Error("Aborted because "+f+" is not accepted"+L));break;case"accepted":n.onAccepted&&n.onAccepted(j),T=!0;break;case"disposed":n.onDisposed&&n.onDisposed(j),S=!0;break;default:throw new Error("Unexception type "+j.type)}if(R)return h("abort"),Promise.reject(R);if(T)for(f in w[f]=y[f],d(g,j.outdatedModules),j.outdatedDependencies)Object.prototype.hasOwnProperty.call(j.outdatedDependencies,f)&&(b[f]||(b[f]=[]),d(b[f],j.outdatedDependencies[f]));S&&(d(g,[j.moduleId]),w[f]=O)}var A,M=[];for(i=0;i0;)if(f=I.pop(),l=k[f]){var q={},Y=l.hot._disposeHandlers;for(s=0;s=0&&B.parents.splice(A,1))}}for(f in b)if(Object.prototype.hasOwnProperty.call(b,f)&&(l=k[f]))for(U=b[f],s=0;s=0&&l.children.splice(A,1);h("apply"),void 0!==v&&(a=v,v=void 0);for(f in y=void 0,w)Object.prototype.hasOwnProperty.call(w,f)&&(e[f]=w[f]);var W=null;for(f in b)if(Object.prototype.hasOwnProperty.call(b,f)&&(l=k[f])){U=b[f];var N=[];for(i=0;i may have only one child element"),this.unlisten=r.listen((function(){e.setState({match:e.computeMatch(r.location.pathname)})}))},t.prototype.componentWillReceiveProps=function(e){o()(this.props.history===e.history,"You cannot change ")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?c.default.Children.only(e):null},t}(c.default.Component);h.propTypes={history:s.a.object.isRequired,children:s.a.node},h.contextTypes={router:s.a.object},h.childContextTypes={router:s.a.object.isRequired},t.a=h},function(e,t,n){"use strict";var r=n(24),o=n.n(r),i={},a=0,c=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=i[n]||(i[n]={});if(r[e])return r[e];var c=[],u={re:o()(e,c,t),keys:c};return a<1e4&&(r[e]=u,a++),u};t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof t&&(t={path:t});var n=t,r=n.path,o=void 0===r?"/":r,i=n.exact,a=void 0!==i&&i,u=n.strict,s=void 0!==u&&u,l=n.sensitive,f=void 0!==l&&l,p=c(o,{end:a,strict:s,sensitive:f}),h=p.re,d=p.keys,y=h.exec(e);if(!y)return null;var v=y[0],m=y.slice(1),b=e===v;return a&&!b?null:{path:o,url:"/"===o&&""===v?"/":v,isExact:b,params:d.reduce((function(e,t,n){return e[t.name]=m[n],e}),{})}}},function(e,t,n){"use strict";var r=n(2),o=n.n(r),i=n(3),a=n.n(i),c=n(1),u=n(0),s=n.n(u),l=n(13),f=Object.assign||function(e){for(var t=1;t or withRouter() outside a ");var s=t.route,f=(r||s.location).pathname;return o?Object(l.a)(f,{path:o,strict:i,exact:c,sensitive:u}):s.match},t.prototype.componentWillMount=function(){o()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),o()(!(this.props.component&&this.props.children&&!d(this.props.children)),"You should not use and in the same route; will be ignored"),o()(!(this.props.render&&this.props.children&&!d(this.props.children)),"You should not use and in the same route; will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){o()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),o()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,o=t.render,i=this.context.router,a=i.history,u=i.route,s=i.staticContext,l={match:e,location:this.props.location||u.location,history:a,staticContext:s};return r?e?c.default.createElement(r,l):null:o?e?o(l):null:n?"function"==typeof n?n(l):d(n)?null:c.default.Children.only(n):null},t}(c.default.Component);y.propTypes={computedMatch:s.a.object,path:s.a.string,exact:s.a.bool,strict:s.a.bool,sensitive:s.a.bool,component:s.a.func,render:s.a.func,children:s.a.oneOfType([s.a.func,s.a.node]),location:s.a.object},y.contextTypes={router:s.a.shape({history:s.a.object.isRequired,route:s.a.object.isRequired,staticContext:s.a.object})},y.childContextTypes={router:s.a.object.isRequired},t.a=y},function(e,t,n){"use strict";t.__esModule=!0,t.locationsAreEqual=t.createLocation=void 0;var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],i=t&&t.split("/")||[],a=e&&r(e),c=t&&r(t),u=a||c;if(e&&r(e)?i=n:n.length&&(i.pop(),i=i.concat(n)),!i.length)return"/";var s=void 0;if(i.length){var l=i[i.length-1];s="."===l||".."===l||""===l}else s=!1;for(var f=0,p=i.length;p>=0;p--){var h=i[p];"."===h?o(i,p):".."===h?(o(i,p),f++):f&&(o(i,p),f--)}if(!u)for(;f--;f)i.unshift("..");!u||""===i[0]||i[0]&&r(i[0])||i.unshift("");var d=i.join("/");return s&&"/"!==d.substr(-1)&&(d+="/"),d}},function(e,t,n){"use strict";n.r(t);var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));var o=void 0===t?"undefined":r(t);if(o!==(void 0===n?"undefined":r(n)))return!1;if("object"===o){var i=t.valueOf(),a=n.valueOf();if(i!==t||a!==n)return e(i,a);var c=Object.keys(t),u=Object.keys(n);return c.length===u.length&&c.every((function(r){return e(t[r],n[r])}))}return!1}},function(e,t,n){"use strict";t.__esModule=!0;t.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.getConfirmation=function(e,t){return t(window.confirm(e))},t.supportsHistory=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},t.supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};(0,a.default)(l.canUseDOM,"Browser history needs a DOM");var t=window.history,n=(0,l.supportsHistory)(),f=!(0,l.supportsPopStateOnHashChange)(),h=e.forceRefresh,d=void 0!==h&&h,y=e.getUserConfirmation,v=void 0===y?l.getConfirmation:y,m=e.keyLength,b=void 0===m?6:m,g=e.basename?(0,u.stripTrailingSlash)((0,u.addLeadingSlash)(e.basename)):"",w=function(e){var t=e||{},n=t.key,r=t.state,o=window.location,a=o.pathname+o.search+o.hash;return(0,i.default)(!g||(0,u.hasBasename)(a,g),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+g+'".'),g&&(a=(0,u.stripBasename)(a,g)),(0,c.createLocation)(a,r,n)},O=function(){return Math.random().toString(36).substr(2,b)},x=(0,s.default)(),P=function(e){o(W,e),W.length=t.length,x.notifyListeners(W.location,W.action)},E=function(e){(0,l.isExtraneousPopstateEvent)(e)||T(w(e.state))},j=function(){T(w(p()))},R=!1,T=function(e){if(R)R=!1,P();else{x.confirmTransitionTo(e,"POP",v,(function(t){t?P({action:"POP",location:e}):_(e)}))}},_=function(e){var t=W.location,n=k.indexOf(t.key);-1===n&&(n=0);var r=k.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(R=!0,M(o))},S=w(p()),k=[S.key],C=function(e){return g+(0,u.createPath)(e)},L=function(e,o){(0,i.default)(!("object"===(void 0===e?"undefined":r(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var a=(0,c.createLocation)(e,o,O(),W.location);x.confirmTransitionTo(a,"PUSH",v,(function(e){if(e){var r=C(a),o=a.key,c=a.state;if(n)if(t.pushState({key:o,state:c},null,r),d)window.location.href=r;else{var u=k.indexOf(W.location.key),s=k.slice(0,-1===u?0:u+1);s.push(a.key),k=s,P({action:"PUSH",location:a})}else(0,i.default)(void 0===c,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}}))},A=function(e,o){(0,i.default)(!("object"===(void 0===e?"undefined":r(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var a=(0,c.createLocation)(e,o,O(),W.location);x.confirmTransitionTo(a,"REPLACE",v,(function(e){if(e){var r=C(a),o=a.key,c=a.state;if(n)if(t.replaceState({key:o,state:c},null,r),d)window.location.replace(r);else{var u=k.indexOf(W.location.key);-1!==u&&(k[u]=a.key),P({action:"REPLACE",location:a})}else(0,i.default)(void 0===c,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}}))},M=function(e){t.go(e)},H=function(){return M(-1)},D=function(){return M(1)},U=0,I=function(e){1===(U+=e)?((0,l.addEventListener)(window,"popstate",E),f&&(0,l.addEventListener)(window,"hashchange",j)):0===U&&((0,l.removeEventListener)(window,"popstate",E),f&&(0,l.removeEventListener)(window,"hashchange",j))},q=!1,Y=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=x.setPrompt(e);return q||(I(1),q=!0),function(){return q&&(q=!1,I(-1)),t()}},B=function(e){var t=x.appendListener(e);return I(1),function(){I(-1),t()}},W={length:t.length,action:"POP",location:S,createHref:C,push:L,replace:A,go:M,goBack:H,goForward:D,block:Y,listen:B};return W}},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t=0?t:0)+"#"+e)};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.default)(s.canUseDOM,"Hash history needs a DOM");var t=window.history,n=(0,s.supportsGoWithoutReloadUsingHash)(),l=e.getUserConfirmation,y=void 0===l?s.getConfirmation:l,v=e.hashType,m=void 0===v?"slash":v,b=e.basename?(0,c.stripTrailingSlash)((0,c.addLeadingSlash)(e.basename)):"",g=f[m],w=g.encodePath,O=g.decodePath,x=function(){var e=O(p());return(0,o.default)(!b||(0,c.hasBasename)(e,b),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+b+'".'),b&&(e=(0,c.stripBasename)(e,b)),(0,a.createLocation)(e)},P=(0,u.default)(),E=function(e){r($,e),$.length=t.length,P.notifyListeners($.location,$.action)},j=!1,R=null,T=function(){var e=p(),t=w(e);if(e!==t)d(t);else{var n=x(),r=$.location;if(!j&&(0,a.locationsAreEqual)(r,n))return;if(R===(0,c.createPath)(n))return;R=null,_(n)}},_=function(e){if(j)j=!1,E();else{P.confirmTransitionTo(e,"POP",y,(function(t){t?E({action:"POP",location:e}):S(e)}))}},S=function(e){var t=$.location,n=A.lastIndexOf((0,c.createPath)(t));-1===n&&(n=0);var r=A.lastIndexOf((0,c.createPath)(e));-1===r&&(r=0);var o=n-r;o&&(j=!0,U(o))},k=p(),C=w(k);k!==C&&d(C);var L=x(),A=[(0,c.createPath)(L)],M=function(e){return"#"+w(b+(0,c.createPath)(e))},H=function(e,t){(0,o.default)(void 0===t,"Hash history cannot push state; it is ignored");var n=(0,a.createLocation)(e,void 0,void 0,$.location);P.confirmTransitionTo(n,"PUSH",y,(function(e){if(e){var t=(0,c.createPath)(n),r=w(b+t);if(p()!==r){R=t,h(r);var i=A.lastIndexOf((0,c.createPath)($.location)),a=A.slice(0,-1===i?0:i+1);a.push(t),A=a,E({action:"PUSH",location:n})}else(0,o.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),E()}}))},D=function(e,t){(0,o.default)(void 0===t,"Hash history cannot replace state; it is ignored");var n=(0,a.createLocation)(e,void 0,void 0,$.location);P.confirmTransitionTo(n,"REPLACE",y,(function(e){if(e){var t=(0,c.createPath)(n),r=w(b+t);p()!==r&&(R=t,d(r));var o=A.indexOf((0,c.createPath)($.location));-1!==o&&(A[o]=t),E({action:"REPLACE",location:n})}}))},U=function(e){(0,o.default)(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},I=function(){return U(-1)},q=function(){return U(1)},Y=0,B=function(e){1===(Y+=e)?(0,s.addEventListener)(window,"hashchange",T):0===Y&&(0,s.removeEventListener)(window,"hashchange",T)},W=!1,N=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=P.setPrompt(e);return W||(B(1),W=!0),function(){return W&&(W=!1,B(-1)),t()}},F=function(e){var t=P.appendListener(e);return B(1),function(){B(-1),t()}},$={length:t.length,action:"POP",location:L,createHref:M,push:H,replace:D,go:U,goBack:I,goForward:q,block:N,listen:F};return $}},function(e,t,n){"use strict";var r=n(2),o=n.n(r),i=n(1),a=n(0),c=n.n(a),u=n(23),s=n.n(u),l=n(12);function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){function t(){var n,r;f(this,t);for(var o=arguments.length,i=Array(o),a=0;a ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return i.default.createElement(l.a,{history:this.history,children:this.props.children})},t}(i.default.Component);h.propTypes={initialEntries:c.a.array,initialIndex:c.a.number,getUserConfirmation:c.a.func,keyLength:c.a.number,children:c.a.node},t.a=h},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,s=void 0===n?["/"]:n,f=e.initialIndex,p=void 0===f?0:f,h=e.keyLength,d=void 0===h?6:h,y=(0,u.default)(),v=function(e){o(S,e),S.length=S.entries.length,y.notifyListeners(S.location,S.action)},m=function(){return Math.random().toString(36).substr(2,d)},b=l(p,0,s.length-1),g=s.map((function(e){return"string"==typeof e?(0,c.createLocation)(e,void 0,m()):(0,c.createLocation)(e,void 0,e.key||m())})),w=a.createPath,O=function(e,n){(0,i.default)(!("object"===(void 0===e?"undefined":r(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o=(0,c.createLocation)(e,n,m(),S.location);y.confirmTransitionTo(o,"PUSH",t,(function(e){if(e){var t=S.index+1,n=S.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),v({action:"PUSH",location:o,index:t,entries:n})}}))},x=function(e,n){(0,i.default)(!("object"===(void 0===e?"undefined":r(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o=(0,c.createLocation)(e,n,m(),S.location);y.confirmTransitionTo(o,"REPLACE",t,(function(e){e&&(S.entries[S.index]=o,v({action:"REPLACE",location:o}))}))},P=function(e){var n=l(S.index+e,0,S.entries.length-1),r=S.entries[n];y.confirmTransitionTo(r,"POP",t,(function(e){e?v({action:"POP",location:r,index:n}):v()}))},E=function(){return P(-1)},j=function(){return P(1)},R=function(e){var t=S.index+e;return t>=0&&t0&&void 0!==arguments[0]&&arguments[0];return y.setPrompt(e)},_=function(e){return y.appendListener(e)},S={length:g.length,action:"POP",location:g[b],index:b,entries:g,createHref:w,push:O,replace:x,go:P,goBack:E,goForward:j,canGo:R,block:T,listen:_};return S}},function(e,t,n){var r=n(40);e.exports=h,e.exports.parse=i,e.exports.compile=function(e,t){return c(i(e,t))},e.exports.tokensToFunction=c,e.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,c="",l=t&&t.delimiter||"/";null!=(n=o.exec(e));){var f=n[0],p=n[1],h=n.index;if(c+=e.slice(a,h),a=h+f.length,p)c+=p[1];else{var d=e[a],y=n[2],v=n[3],m=n[4],b=n[5],g=n[6],w=n[7];c&&(r.push(c),c="");var O=null!=y&&null!=d&&d!==y,x="+"===g||"*"===g,P="?"===g||"*"===g,E=n[2]||l,j=m||b;r.push({name:v||i++,prefix:y||"",delimiter:E,optional:P,repeat:x,partial:O,asterisk:!!w,pattern:j?s(j):w?".*":"[^"+u(E)+"]+?"})}}return a outside a "),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(r.default.Component);l.propTypes={when:i.a.bool,message:i.a.oneOfType([i.a.func,i.a.string]).isRequired},l.defaultProps={when:!0},l.contextTypes={router:i.a.shape({history:i.a.shape({block:i.a.func.isRequired}).isRequired}).isRequired},t.a=l},function(e,t,n){"use strict";var r=n(2),o=n.n(r),i=n(3),a=n.n(i),c=n(1),u=n(0),s=n.n(u),l=n(6),f=n(12),p=Object.assign||function(e){for(var t=1;t",e)}},w=function(){},O=function(e){function t(){var n,r;h(this,t);for(var o=arguments.length,i=Array(o),a=0;a ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,n=(e.context,e.location),r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["basename","context","location"]),o={createHref:this.createHref,action:"POP",location:v(t,m(n)),push:this.handlePush,replace:this.handleReplace,go:g("go"),goBack:g("goBack"),goForward:g("goForward"),listen:this.handleListen,block:this.handleBlock};return c.default.createElement(f.a,p({},r,{history:o}))},t}(c.default.Component);O.propTypes={basename:s.a.string,context:s.a.object.isRequired,location:s.a.oneOfType([s.a.string,s.a.object])},O.defaultProps={basename:"",location:"/"},O.childContextTypes={router:s.a.object.isRequired},t.a=O},function(e,t,n){"use strict";var r=n(1),o=n(0),i=n.n(o),a=n(2),c=n.n(a),u=n(3),s=n.n(u),l=n(13);function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){function t(){return f(this,t),p(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){s()(this.context.router,"You should not use outside a ")},t.prototype.componentWillReceiveProps=function(e){c()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),c()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,o=void 0,i=void 0;return r.default.Children.forEach(t,(function(t){if(r.default.isValidElement(t)){var a=t.props,c=a.path,u=a.exact,s=a.strict,f=a.sensitive,p=a.from,h=c||p;null==o&&(i=t,o=h?Object(l.a)(n.pathname,{path:h,exact:u,strict:s,sensitive:f}):e.match)}})),o?r.default.cloneElement(i,{location:n,computedMatch:o}):null},t}(r.default.Component);h.contextTypes={router:i.a.shape({route:i.a.object.isRequired}).isRequired},h.propTypes={children:i.a.node,location:i.a.object},t.a=h},function(e,t,n){"use strict";var r=n(1),o=n(0),i=n.n(o),a=n(29),c=n.n(a),u=n(14),s=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["wrappedComponentRef"]);return r.default.createElement(u.a,{render:function(t){return r.default.createElement(e,s({},o,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:i.a.func},c()(t,e)}},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,a=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,s=Object.getPrototypeOf,l=s&&s(Object);e.exports=function e(t,n,f){if("string"!=typeof n){if(l){var p=s(n);p&&p!==l&&e(t,p,f)}var h=a(n);c&&(h=h.concat(c(n)));for(var d=0;d outside a "),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=h(e.to),n=h(this.props.to);d(t,n)?c()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},t.prototype.perform=function(){var e=this.context.router.history,t=this.props,n=t.push,r=t.to;n?e.push(r):e.replace(r)},t.prototype.render=function(){return null},t}(r.default.Component);m.propTypes={push:i.a.bool,from:i.a.string,to:i.a.oneOfType([i.a.string,i.a.object]).isRequired},m.defaultProps={push:!1},m.contextTypes={router:i.a.shape({history:i.a.shape({push:i.a.func.isRequired,replace:i.a.func.isRequired}).isRequired,staticContext:i.a.object}).isRequired};t.a=m},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,s=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?s=u.concat(s):f=-1,s.length&&h())}function h(){if(!l){var e=c(p);l=!0;for(var t=s.length;t;){for(u=s,s=[];++f1)for(var n=1;n + + + +Created by potrace 1.11, written by Peter Selinger 2001-2013 + + + + + diff --git a/test-site/vendor.js b/test-site/vendor.js new file mode 100644 index 0000000..8d6892d --- /dev/null +++ b/test-site/vendor.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{1:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"version",(function(){return a})),n.d(t,"DOM",(function(){return O})),n.d(t,"Children",(function(){return x})),n.d(t,"render",(function(){return b})),n.d(t,"createClass",(function(){return B})),n.d(t,"createFactory",(function(){return P})),n.d(t,"createElement",(function(){return T})),n.d(t,"cloneElement",(function(){return E})),n.d(t,"isValidElement",(function(){return U})),n.d(t,"findDOMNode",(function(){return D})),n.d(t,"unmountComponentAtNode",(function(){return C})),n.d(t,"Component",(function(){return K})),n.d(t,"PureComponent",(function(){return G})),n.d(t,"unstable_renderSubtreeIntoContainer",(function(){return g})),n.d(t,"__spread",(function(){return M}));var r=n(0),o=n.n(r);n.d(t,"PropTypes",(function(){return o.a}));var i=n(4),a="15.1.0",c="a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script section select small source span strong style sub summary sup table tbody td textarea tfoot th thead time title tr track u ul var video wbr circle clipPath defs ellipse g image line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan".split(" "),l="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,s="undefined"!=typeof Symbol?Symbol.for("__preactCompatWrapper"):"__preactCompatWrapper",p={constructor:1,render:1,shouldComponentUpdate:1,componentWillReceiveProps:1,componentWillUpdate:1,componentDidUpdate:1,componentWillMount:1,componentDidMount:1,componentWillUnmount:1,componentDidUnmount:1},u=/^(?:accent|alignment|arabic|baseline|cap|clip|color|fill|flood|font|glyph|horiz|marker|overline|paint|stop|strikethrough|stroke|text|underline|unicode|units|v|vector|vert|word|writing|x)[A-Z]/,f={},d=void 0===e||!e.env||!1;function h(){return null}var y=Object(i.c)("a",null).constructor;y.prototype.$$typeof=l,y.prototype.preactCompatUpgraded=!1,y.prototype.preactCompatNormalized=!1,Object.defineProperty(y.prototype,"type",{get:function(){return this.nodeName},set:function(e){this.nodeName=e},configurable:!0}),Object.defineProperty(y.prototype,"props",{get:function(){return this.attributes},set:function(e){this.attributes=e},configurable:!0});var m=i.d.event;i.d.event=function(e){return m&&(e=m(e)),e.persist=Object,e.nativeEvent=e,e};var v=i.d.vnode;function b(e,t,n){var r=t&&t._preactCompatRendered&&t._preactCompatRendered.base;r&&r.parentNode!==t&&(r=null),!r&&t&&(r=t.firstElementChild);for(var o=t.childNodes.length;o--;)t.childNodes[o]!==r&&t.removeChild(t.childNodes[o]);var a=Object(i.e)(e,t,r);return t&&(t._preactCompatRendered=a&&(a._component||{base:a})),"function"==typeof n&&n(),a&&a._component||a}i.d.vnode=function(e){if(!e.preactCompatUpgraded){e.preactCompatUpgraded=!0;var t=e.nodeName,n=e.attributes=M({},e.attributes);"function"==typeof t?(!0===t[s]||t.prototype&&"isReactComponent"in t.prototype)&&(e.children&&""===String(e.children)&&(e.children=void 0),e.children&&(n.children=e.children),e.preactCompatNormalized||R(e),function(e){var t=e.nodeName,n=e.attributes;e.attributes={},t.defaultProps&&M(e.attributes,t.defaultProps);n&&M(e.attributes,n)}(e)):(e.children&&""===String(e.children)&&(e.children=void 0),e.children&&(n.children=e.children),n.defaultValue&&(n.value||0===n.value||(n.value=n.defaultValue),delete n.defaultValue),function(e,t){var n,r,o;if(t){for(o in t)if(n=u.test(o))break;if(n)for(o in r=e.attributes={},t)t.hasOwnProperty(o)&&(r[u.test(o)?o.replace(/([A-Z0-9])/,"-$1").toLowerCase():o]=t[o])}}(e,n))}v&&v(e)};var _=function(){};function g(e,t,n,r){var o=b(Object(i.c)(_,{context:e.context},t),n),a=o._component||o.base;return r&&r.call(a,o),a}function C(e){var t=e._preactCompatRendered&&e._preactCompatRendered.base;return!(!t||t.parentNode!==e)&&(Object(i.e)(Object(i.c)(h),e,t),!0)}_.prototype.getChildContext=function(){return this.props.context},_.prototype.render=function(e){return e.children[0]};var N,w=[],x={map:function(e,t,n){return null==e?null:(e=x.toArray(e),n&&n!==e&&(t=t.bind(n)),e.map(t))},forEach:function(e,t,n){if(null==e)return null;e=x.toArray(e),n&&n!==e&&(t=t.bind(n)),e.forEach(t)},count:function(e){return e&&e.length||0},only:function(e){if(1!==(e=x.toArray(e)).length)throw new Error("Children.only() expects only one child.");return e[0]},toArray:function(e){return null==e?[]:w.concat(e)}};function P(e){return T.bind(null,e)}for(var O={},k=c.length;k--;)O[c[k]]=P(c[k]);function j(e,t){for(var n=t||0;n0;)n[r]=arguments[r+2];if(!U(e))return e;var o=e.attributes||e.props,a=Object(i.c)(e.nodeName||e.type,o,e.children||o&&o.children),c=[a,t];return n&&n.length?c.push(n):t&&t.children&&c.push(t.children),R(i.b.apply(void 0,c))}function U(e){return e&&(e instanceof y||e.$$typeof===l)}var A={configurable:!0,get:function(){return this.class},set:function(e){this.class=e}};function M(e,t){for(var n=arguments,r=1,o=void 0;r2;)i.push(arguments[s]);for(t&&null!=t.children&&(i.length||i.push(t.children),delete t.children);i.length;)if((c=i.pop())&&void 0!==c.pop)for(s=c.length;s--;)i.push(c[s]);else"boolean"==typeof c&&(c=null),(l="function"!=typeof e)&&(null==c?c="":"number"==typeof c?c=String(c):"string"!=typeof c&&(l=!1)),l&&n?p[p.length-1]+=c:p===a?p=[c]:p.push(c),n=l;var u=new r;return u.nodeName=e,u.children=p,u.attributes=null==t?void 0:t,u.key=null==t?void 0:t.key,void 0!==o.vnode&&o.vnode(u),u}function l(e,t){for(var n in t)e[n]=t[n];return e}var s="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function p(e,t){return c(e.nodeName,l(l({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}var u=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,f=[];function d(e){!e._dirty&&(e._dirty=!0)&&1==f.push(e)&&(o.debounceRendering||s)(h)}function h(){var e,t=f;for(f=[];e=t.pop();)e._dirty&&A(e)}function y(e,t,n){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&m(e,t.nodeName):n||e._componentConstructor===t.nodeName}function m(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function v(e){var t=l({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function b(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,n,r,o){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),r&&r(e);else if("class"!==t||o)if("style"===t){if(r&&"string"!=typeof r&&"string"!=typeof n||(e.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"==typeof r[i]&&!1===u.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,g,a):e.removeEventListener(t,g,a),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e)!function(e,t,n){try{e[t]=n}catch(e){}}(e,t,null==r?"":r),null!=r&&!1!==r||e.removeAttribute(t);else{var c=o&&t!==(t=t.replace(/^xlink\:?/,""));null==r||!1===r?c?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(c?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function g(e){return this._listeners[e.type](o.event&&o.event(e)||e)}var C=[],N=0,w=!1,x=!1;function P(){for(var e;e=C.pop();)o.afterMount&&o.afterMount(e),e.componentDidMount&&e.componentDidMount()}function O(e,t,n,r,o,i){N++||(w=null!=o&&void 0!==o.ownerSVGElement,x=null!=e&&!("__preactattr_"in e));var a=k(e,t,n,r,i);return o&&a.parentNode!==o&&o.appendChild(a),--N||(x=!1,i||P()),a}function k(e,t,n,r,o){var i=e,a=w;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),j(e,!0))),i.__preactattr_=!0,i;var c,l,s=t.nodeName;if("function"==typeof s)return function(e,t,n,r){var o=e&&e._component,i=o,a=e,c=o&&e._componentConstructor===t.nodeName,l=c,s=v(t);for(;o&&!l&&(o=o._parentComponent);)l=o.constructor===t.nodeName;o&&l&&(!r||o._component)?(U(o,s,3,n,r),e=o.base):(i&&!c&&(M(i),e=a=null),o=R(t.nodeName,s,n),e&&!o.nextBase&&(o.nextBase=e,a=null),U(o,s,1,n,r),e=o.base,a&&e!==a&&(a._component=null,j(a,!1)));return e}(e,t,n,r);if(w="svg"===s||"foreignObject"!==s&&w,s=String(s),(!e||!m(e,s))&&(c=s,(l=w?document.createElementNS("http://www.w3.org/2000/svg",c):document.createElement(c)).normalizedNodeName=c,i=l,e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),j(e,!0)}var p=i.firstChild,u=i.__preactattr_,f=t.children;if(null==u){u=i.__preactattr_={};for(var d=i.attributes,h=d.length;h--;)u[d[h].name]=d[h].value}return!x&&f&&1===f.length&&"string"==typeof f[0]&&null!=p&&void 0!==p.splitText&&null==p.nextSibling?p.nodeValue!=f[0]&&(p.nodeValue=f[0]):(f&&f.length||null!=p)&&function(e,t,n,r,o){var i,a,c,l,s,p=e.childNodes,u=[],f={},d=0,h=0,m=p.length,v=0,_=t?t.length:0;if(0!==m)for(var g=0;g ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return i.default.createElement(p,{history:this.history,children:this.props.children})},t}(i.default.Component);d.propTypes={basename:c.a.string,forceRefresh:c.a.bool,getUserConfirmation:c.a.func,keyLength:c.a.number,children:c.a.node};var h=d,y=n(21),m=n.n(y);function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var _=function(e){function t(){var n,r;v(this,t);for(var o=arguments.length,i=Array(o),a=0;a ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return i.default.createElement(p,{history:this.history,children:this.props.children})},t}(i.default.Component);_.propTypes={basename:c.a.string,getUserConfirmation:c.a.func,hashType:c.a.oneOf(["hashbang","noslash","slash"]),children:c.a.node};var g=n(3),C=n.n(g),N=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["replace","to","innerRef"]);C()(this.context.router,"You should not use outside a ");var o=this.context.router.history.createHref("string"==typeof t?{pathname:t}:t);return i.default.createElement("a",N({},r,{onClick:this.handleClick,href:o,ref:n}))},t}(i.default.Component);O.propTypes={onClick:c.a.func,target:c.a.string,replace:c.a.bool,to:c.a.oneOfType([c.a.string,c.a.object]).isRequired,innerRef:c.a.oneOfType([c.a.string,c.a.func])},O.defaultProps={replace:!1},O.contextTypes={router:c.a.shape({history:c.a.shape({push:c.a.func.isRequired,replace:c.a.func.isRequired,createHref:c.a.func.isRequired}).isRequired}).isRequired};var k=O,j=(n(22).a,n(14).a),S=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","ariaCurrent"]);return i.default.createElement(j,{path:"object"===(void 0===t?"undefined":T(t))?t.pathname:t,exact:n,strict:r,location:o,children:function(e){var n=e.location,r=e.match,o=!!(p?p(r,n):r);return i.default.createElement(k,S({to:t,className:o?[c,a].filter((function(e){return e})).join(" "):c,style:o?S({},s,l):s,"aria-current":o&&u},f))}})};R.propTypes={to:k.propTypes.to,exact:c.a.bool,strict:c.a.bool,location:c.a.object,activeClassName:c.a.string,className:c.a.string,activeStyle:c.a.object,style:c.a.object,isActive:c.a.func,ariaCurrent:c.a.oneOf(["page","step","location","true"])},R.defaultProps={activeClassName:"active",ariaCurrent:"true"};n(25).a,n(31).a,n(26).a;var E=n(27).a;n(13).a,n(28).a}}]); \ No newline at end of file diff --git a/test-site/vendors~toastify.js b/test-site/vendors~toastify.js new file mode 100644 index 0000000..a04954d --- /dev/null +++ b/test-site/vendors~toastify.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{52:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={POSITION:{TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},TYPE:{INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},ACTION:{SHOW:"SHOW_TOAST",CLEAR:"CLEAR_TOAST",MOUNTED:"CONTAINER_MOUNTED"}}},55:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=[];return Object.keys(t).forEach((function(n){return e.push(t[n])})),e}},56:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.falseOrElement=e.falseOrNumber=void 0,e.typeOf=r,e.isValidDelay=i;var o=n(1);function r(t){return Object.prototype.toString.call(t).slice(8,-1)}function i(t){return"Number"===r(t)&&!isNaN(t)&&t>0}function s(t){return t.isRequired=function(e,n,o){if(void 0===e[n])return new Error("The prop "+n+" is marked as required in \n "+o+", but its value is undefined.");t(e,n,o)},t}e.falseOrNumber=s((function(t,e,n){var o=t[e];return!1===o||i(o)?null:new Error(n+" expect "+e+" \n to be a valid Number > 0 or equal to false. "+o+" given.")})),e.falseOrElement=s((function(t,e,n){var r=t[e];return!1===r||(0,o.isValidElement)(r)?null:new Error(n+" expect "+e+" \n to be a valid react element or equal to false. "+r+" given.")}))},57:function(t,e,n){"use strict";function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:null;return this.eventList.delete(t)},emit:function(t){for(var e=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i Event is not registered. Did you forgot to bind the event ?"),!1)}};e.default=r},61:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=Object.assign||function(t){for(var e=1;e0}},{key:"getContainerProps",value:function(t,e){var n={className:"toastify toastify--"+t,style:e?{pointerEvents:"none"}:{}};return null!==this.props.className&&(n.className=n.className+" "+this.props.className),null!==this.props.style&&(n.style=r({},this.props.style,n.style)),n}},{key:"renderToast",value:function(){var t=this,e={};return(this.props.newestOnTop?Object.keys(this.collection).reverse():Object.keys(this.collection)).forEach((function(n){var o=t.collection[n];e[o.position]||(e[o.position]=[]),-1!==t.state.toast.indexOf(parseInt(n,10))?e[o.position].push(o.content):(e[o.position].push(null),delete t.collection[n])})),Object.keys(e).map((function(n){var o=1===e[n].length&&null===e[n][0];return a.default.createElement(l.default,r({},t.getContainerProps(n,o),{key:"container-"+n}),e[n])}))}},{key:"render",value:function(){return a.default.createElement("div",null,this.renderToast())}}]),e}(s.Component);b.propTypes={position:u.default.oneOf((0,y.default)(d.default.POSITION)),autoClose:m.falseOrNumber,closeButton:m.falseOrElement,hideProgressBar:u.default.bool,pauseOnHover:u.default.bool,closeOnClick:u.default.bool,newestOnTop:u.default.bool,className:u.default.string,style:u.default.object,toastClassName:u.default.string,bodyClassName:u.default.string,progressClassName:u.default.string,transition:u.default.func},b.defaultProps={position:d.default.POSITION.TOP_RIGHT,transition:p.default,autoClose:5e3,hideProgressBar:!1,closeButton:a.default.createElement(f.default,null),pauseOnHover:!0,closeOnClick:!0,newestOnTop:!1,className:null,style:null,toastClassName:"",bodyClassName:"",progressClassName:""},e.default=b},62:function(t,e,n){"use strict";e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:this.props;return null!=n[e]?n[e]:t.props[e]},e.prototype.componentDidMount=function(){this.appeared=!0},e.prototype.componentWillReceiveProps=function(t){var e=this,n=this.state.children,o=(0,a.getChildMapping)(t.children),r=(0,a.mergeChildMappings)(n,o);Object.keys(r).forEach((function(s){var a=r[s];if((0,i.isValidElement)(a)){var u=function(t){e.handleExited(a.key,t,a.props.onExited)},l=s in n,c=s in o,f=n[s],p=(0,i.isValidElement)(f)&&!f.props.in;!c||l&&!p?c||!l||p?c&&l&&(0,i.isValidElement)(f)&&(r[s]=(0,i.cloneElement)(a,{onExited:u,in:f.props.in,exit:e.getProp(a,"exit",t),enter:e.getProp(a,"enter",t)})):r[s]=(0,i.cloneElement)(a,{in:!1}):r[s]=(0,i.cloneElement)(a,{onExited:u,in:!0,exit:e.getProp(a,"exit",t),enter:e.getProp(a,"enter",t)})}})),this.setState({children:r})},e.prototype.render=function(){var t=this.props,e=t.component,n=t.childFactory,o=function(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}(t,["component","childFactory"]),r=this.state.children;return delete o.appear,delete o.enter,delete o.exit,s.default.createElement(e,o,l(r).map(n))},e}(s.default.Component));c.childContextTypes={transitionGroup:r.default.object.isRequired},c.propTypes={},c.defaultProps={component:"div",childFactory:function(t){return t}},e.default=c,t.exports=e.default},63:function(t,e,n){"use strict";e.__esModule=!0,e.getChildMapping=function(t,e){var n=Object.create(null);t&&o.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return e&&(0,o.isValidElement)(t)?e(t):t}(t)}));return n},e.mergeChildMappings=function(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var o=Object.create(null),r=[];for(var i in t)i in e?r.length&&(o[i]=r,r=[]):r.push(i);var s=void 0,a={};for(var u in e){if(o[u])for(s=0;s=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}(t,["children","position"]);return r.default.createElement(i.default,o({},s,{timeout:750,onEnter:function(t){t.classList.add("toast-enter--"+n),t.classList.add("toastify-animated")},onExit:function(t){t.classList.remove("toast-enter--"+n),t.classList.remove("toastify-animated"),t.classList.add("toast-exit--"+n),t.classList.add("toastify-animated")}}),e)}},68:function(t,e,n){"use strict";e.__esModule=!0,e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(0)),r=s(n(1)),i=s(n(1));n(69);function s(t){return t&&t.__esModule?t:{default:t}}var a=e.UNMOUNTED="unmounted",u=e.EXITED="exited",l=e.ENTERING="entering",c=e.ENTERED="entered",f=e.EXITING="exiting",p=function(t){function e(n,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,o)),i=o.transitionGroup,s=i&&!i.isMounting?n.enter:n.appear,f=void 0;return r.nextStatus=null,n.in?s?(f=u,r.nextStatus=l):f=c:f=n.unmountOnExit||n.mountOnEnter?a:u,r.state={status:f},r.nextCallback=null,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getChildContext=function(){return{transitionGroup:null}},e.prototype.componentDidMount=function(){this.updateStatus(!0)},e.prototype.componentWillReceiveProps=function(t){var e=(this.pendingState||this.state).status;t.in?(e===a&&this.setState({status:u}),e!==l&&e!==c&&(this.nextStatus=l)):e!==l&&e!==c||(this.nextStatus=f)},e.prototype.componentDidUpdate=function(){this.updateStatus()},e.prototype.componentWillUnmount=function(){this.cancelNextCallback()},e.prototype.getTimeouts=function(){var t=this.props.timeout,e=void 0,n=void 0,o=void 0;return e=n=o=t,null!=t&&"number"!=typeof t&&(e=t.exit,n=t.enter,o=t.appear),{exit:e,enter:n,appear:o}},e.prototype.updateStatus=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.nextStatus;if(null!==e){this.nextStatus=null,this.cancelNextCallback();var n=i.default.findDOMNode(this);e===l?this.performEnter(n,t):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:a})},e.prototype.performEnter=function(t,e){var n=this,o=this.props.enter,r=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,i=this.getTimeouts();e||o?(this.props.onEnter(t,r),this.safeSetState({status:l},(function(){n.props.onEntering(t,r),n.onTransitionEnd(t,i.enter,(function(){n.safeSetState({status:c},(function(){n.props.onEntered(t,r)}))}))}))):this.safeSetState({status:c},(function(){n.props.onEntered(t)}))},e.prototype.performExit=function(t){var e=this,n=this.props.exit,o=this.getTimeouts();n?(this.props.onExit(t),this.safeSetState({status:f},(function(){e.props.onExiting(t),e.onTransitionEnd(t,o.exit,(function(){e.safeSetState({status:u},(function(){e.props.onExited(t)}))}))}))):this.safeSetState({status:u},(function(){e.props.onExited(t)}))},e.prototype.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},e.prototype.safeSetState=function(t,e){var n=this;this.pendingState=t,e=this.setNextCallback(e),this.setState(t,(function(){n.pendingState=null,e()}))},e.prototype.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,e.nextCallback=null,t(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},e.prototype.onTransitionEnd=function(t,e,n){this.setNextCallback(n),t?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},e.prototype.render=function(){var t=this.state.status;if(t===a)return null;var e=this.props,n=e.children,o=function(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}(e,["children"]);if(delete o.in,delete o.mountOnEnter,delete o.unmountOnExit,delete o.appear,delete o.enter,delete o.exit,delete o.timeout,delete o.addEndListener,delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,"function"==typeof n)return n(t,o);var i=r.default.Children.only(n);return r.default.cloneElement(i,o)},e}(r.default.Component);function d(){}p.contextTypes={transitionGroup:o.object},p.childContextTypes={transitionGroup:function(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:d,onEntering:d,onEntered:d,onExit:d,onExiting:d,onExited:d},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4,e.default=p},69:function(t,e,n){"use strict";e.__esModule=!0,e.classNamesShape=e.timeoutsShape=void 0,e.transitionTimeout=function(t){var e="transition"+t+"Timeout",n="transition"+t;return function(t){if(t[n]){if(null==t[e])return new Error(e+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof t[e])return new Error(e+" must be a number (in milliseconds)")}return null}};var o,r=n(0),i=(o=r)&&o.__esModule?o:{default:o};e.timeoutsShape=i.default.oneOfType([i.default.number,i.default.shape({enter:i.default.number,exit:i.default.number}).isRequired]),e.classNamesShape=i.default.oneOfType([i.default.string,i.default.shape({enter:i.default.string,exit:i.default.string,active:i.default.string}),i.default.shape({enter:i.default.string,enterActive:i.default.string,exit:i.default.string,exitActive:i.default.string})])},70:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:null;return r.default.emit(l.CLEAR,t)},isActive:function(){return!1}},{POSITION:a,TYPE:u});r.default.on(l.MOUNTED,(function(t){f=t,m.isActive=function(t){return f.isToastActive(t)},p.forEach((function(t){r.default.emit(t.action,t.content,t.options)})),p=[]})),e.default=m},72:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toast=e.ToastContainer=void 0;var o=i(n(61)),r=i(n(70));function i(t){return t&&t.__esModule?t:{default:t}}e.ToastContainer=o.default,e.toast=r.default}}]); \ No newline at end of file diff --git a/test-site/vendors~work.js b/test-site/vendors~work.js new file mode 100644 index 0000000..c5c856a --- /dev/null +++ b/test-site/vendors~work.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{58:function(t,e,o){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var o={};return e.m=t,e.c=o,e.i=function(t){return t},e.d=function(t,o,n){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=6)}([function(t,e,o){function n(t){return l(t.duration,Date.now()-t.mouseDown)}function r(t){return t.mouseUp>0?Date.now()-t.mouseUp:0}function i(t){var e=t.duration,o=t.radius,i=.85*a(n(t),0,o,e),u=.15*a(r(t),0,o,e),l=.02*o*s(Date.now()/e);return c(0,i+u+l)}var a=o(7),u=Math.sqrt(2),s=Math.cos,c=Math.max,l=Math.min;t.exports={getMaxRadius:function(t,e,o){return l(.5*c(t,e),o)},getBlotOpacity:function(t,e){return a(r(t),e,-e,t.duration)},getBlotOuterOpacity:function(t,e){return l(this.getBlotOpacity(t,e),a(n(t),0,.3,3*t.duration))},getBlotShiftX:function(t,e,o){return l(1,i(t)/e*2/u)*(o/2-t.x)},getBlotShiftY:function(t,e,o){return l(1,i(t)/e*2/u)*(o/2-t.y)},getBlotScale:function(t){return i(t)/t.radius}}},function(t,e){t.exports={borderRadius:"inherit",height:"100%",left:0,position:"absolute",top:0,width:"100%"}},function(t,e){var o=!1;"undefined"!=typeof window&&(o="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),t.exports=o},function(t,e){t.exports=function(t){return(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}},function(t,e,o){var n=o(0),r=function(t){var e=t.mouseUp,o=t.duration;return!e||Date.now()-e=0;o--)if(!e[o].mouseUp)return e[o].mouseUp=t}};return a}},function(t,e){t.exports=o(1)},function(t,e,o){function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var i=Object.assign||function(t){for(var e=1;e0&&m.default.createElement(b,{filters:this.state.filters,handleFilterChange:this.handleFilterChange,handleAllFilterChange:this.handleAllFilterChange,isFiltersOpen:this.props.isFiltersOpen,handleDrawerState:this.props.handleDrawerState}),m.default.createElement("div",{className:"pt-content-card__body__work-filters__overlay ".concat(this.props.isFiltersOpen?"filters-open":""),onClick:this.props.handleDrawerState}),m.default.createElement("div",{className:"pt-content-card__body__work-items",style:e},this.getFilteredWorkItems()))}}]),r}(m.default.PureComponent);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h()(e);if(t){var a=h()(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return d()(this,r)}}var W=w.home,P=function(e){u()(r,e);var t=j(r);function r(e){var n;return a()(this,r),(n=t.call(this,e)).state={isFiltersOpen:!1},n.handleDrawerState=n.handleDrawerState.bind(c()(n)),n.handleWindowResize=n.handleWindowResize.bind(c()(n)),n}return o()(r,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.handleWindowResize)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleWindowResize)}},{key:"handleWindowResize",value:function(e){window.innerWidth<=700&&this.setState({isFiltersOpen:!1})}},{key:"handleDrawerState",value:function(){this.setState({isFiltersOpen:!this.state.isFiltersOpen})}},{key:"render",value:function(){return m.default.createElement("div",{className:"pt-content-card__work-container flex flex-dc"},m.default.createElement(v.a,{icon:"folder",title:W.work,handleDrawerState:this.handleDrawerState,isFiltersOpen:this.state.isFiltersOpen}),m.default.createElement(O,{handleDrawerState:this.handleDrawerState,isFiltersOpen:this.state.isFiltersOpen}))}}]),r}(m.default.PureComponent)}}]); \ No newline at end of file