From bf8ee7eae92645c40143a2cbd8a43c2f2a647c02 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Tue, 19 May 2020 11:17:51 +0100 Subject: [PATCH] baseurl defaulted to localhost --- dist/build/bundle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/build/bundle.js b/dist/build/bundle.js index 4772206..affe1f0 100644 --- a/dist/build/bundle.js +++ b/dist/build/bundle.js @@ -1 +1 @@ -var app=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function o(t){t.forEach(e)}function r(t){return"function"==typeof t}function s(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function c(e,n,o){e.$$.on_destroy.push(function(e,...n){if(null==e)return t;const o=e.subscribe(...n);return o.unsubscribe?()=>o.unsubscribe():o}(n,o))}function a(t,e){t.appendChild(e)}function l(t,e,n){t.insertBefore(e,n||null)}function i(t){t.parentNode.removeChild(t)}function u(t){return document.createElement(t)}function f(t){return document.createTextNode(t)}function d(){return f(" ")}function p(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function h(t,e){e=""+e,t.data!==e&&(t.data=e)}let m;function g(t){m=t}const y=[],b=[],$=[],v=[],x=Promise.resolve();let _=!1;function w(t){$.push(t)}let j=!1;const k=new Set;function C(){if(!j){j=!0;do{for(let t=0;t{S.delete(t),o&&(n&&t.d(1),o())}),t.o(e)}}function O(t){t&&t.c()}function A(t,n,s){const{fragment:c,on_mount:a,on_destroy:l,after_update:i}=t.$$;c&&c.m(n,s),w(()=>{const n=a.map(e).filter(r);l?l.push(...n):o(n),t.$$.on_mount=[]}),i.forEach(w)}function T(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function q(t,e){-1===t.$$.dirty[0]&&(y.push(t),_||(_=!0,x.then(C)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const r=o.length?o[0]:n;return p.ctx&&a(p.ctx[t],p.ctx[t]=r)&&(p.bound[t]&&p.bound[t](r),h&&q(e,t)),n}):[],p.update(),h=!0,o(p.before_update),p.fragment=!!c&&c(p.ctx),r.target){if(r.hydrate){const t=function(t){return Array.from(t.childNodes)}(r.target);p.fragment&&p.fragment.l(t),t.forEach(i)}else p.fragment&&p.fragment.c();r.intro&&L(e.$$.fragment),A(e,r.target,r.anchor),C()}g(f)}class D{$destroy(){T(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(){}}function P(e){let n;return{c(){n=u("menu"),n.innerHTML="

Jobs

\n
\n\n ",p(n,"class","svelte-ssrzvc")},m(t,e){l(t,n,e)},p:t,i:t,o:t,d(t){t&&i(n)}}}class R extends D{constructor(t){super(),E(this,t,null,P,s,{})}}const H=[];function z(e,n=t){let o;const r=[];function c(t){if(s(e,t)&&(e=t,o)){const t=!H.length;for(let t=0;t{const t=r.indexOf(l);-1!==t&&r.splice(t,1),0===r.length&&(o(),o=null)}}}}var M=function t(e){function n(t){return function(e,n){return s(e,Object.assign({method:t},n))}}function o(t){return function(e,n,o){return s(e,Object.assign({method:t,data:n},o))}}function r(t,e,n){if(Array.isArray(t))return t.concat(e);if(e&&"object"==typeof e){var o,s={};if(t)for(o in t)s[n?o.toLowerCase():o]=t[o];for(o in e){var c=n?o.toLowerCase():o;"headers"===c&&(n=!0),s[c]=o in s?r(s[c],e[o],n):e[o]}return s}return e}function s(t,n){"string"!=typeof t&&(t=(n=t).url);var o=r(e,n||{}),s=o.data;if(o.transformRequest)for(var c=0;c{const e=JSON.parse(t.data);B.set(e)}).catch(t=>{console.error("getJobList",t)})},loadJobDetail(t){if(console.log("loadJobDetail: "+t),t){const e=`${I.jobs}/${t}`;M.get(e).then(t=>{const e=JSON.parse(t.data);U.set(e)}).catch(t=>{console.error("loadJobDetail",t)})}}};function G(t,e,n){const o=t.slice();return o[2]=e[n],o[4]=n,o}function K(t){let e,n,o,s,c,m,g,y,b,$,v,x,_,w,j=t[2].title+"",k=t[2].site+"",C=t[2].company+"",J=t[2].date+"";return{c(){e=u("tr"),n=u("td"),o=f(j),s=d(),c=u("td"),m=f(k),g=d(),y=u("td"),b=f(C),$=d(),v=u("td"),x=f(J),_=d(),p(e,"class","dataRow")},m(i,u,f){var d,p,h,j;l(i,e,u),a(e,n),a(n,o),a(e,s),a(e,c),a(c,m),a(e,g),a(e,y),a(y,b),a(e,$),a(e,v),a(v,x),a(e,_),f&&w(),p="click",h=function(){r(t[1](t[2]._id))&&t[1](t[2]._id).apply(this,arguments)},(d=e).addEventListener(p,h,j),w=()=>d.removeEventListener(p,h,j)},p(e,n){t=e,1&n&&j!==(j=t[2].title+"")&&h(o,j),1&n&&k!==(k=t[2].site+"")&&h(m,k),1&n&&C!==(C=t[2].company+"")&&h(b,C),1&n&&J!==(J=t[2].date+"")&&h(x,J)},d(t){t&&i(e),w()}}}function Q(e){let n,o,r,s,c,f=e[0],h=[];for(let t=0;t\n Title\n \n \n Site\n \n \n Company\n \n \n Date\n ',s=d(),c=u("tbody");for(let t=0;tn(0,o=t));return[o,t=>{F.loadJobDetail(t)}]}class W extends D{constructor(t){super(),E(this,t,V,Q,s,{})}}function X(t){let e,n,o,r,s,c,m,g,y,b,$,v,x,_,w,j,k,C,J,S,L,N,O,A,T,q,E,D,P,R,H,z,M,I,B,U,F=t[1].title+"",G=t[1].company+"",K=t[1].location+"",Q=t[1].salary+"",V=t[1].date+"",W=t[1].site+"",X=t[1].summary+"";return{c(){e=u("div"),n=u("div"),o=u("div"),r=u("div"),s=f(F),c=d(),m=u("div"),g=u("div"),y=f("Company: "),b=u("span"),$=f(G),v=d(),x=u("div"),_=f("Location: "),w=u("span"),j=f(K),k=d(),C=u("div"),J=u("div"),S=f("Salary: "),L=u("span"),N=f(Q),O=d(),A=u("div"),T=f("Scraped: "),q=u("span"),E=f(V),D=d(),P=u("div"),R=f("Site: "),H=u("a"),z=f(W),I=d(),B=u("blockquote"),U=f(X),p(r,"class","col-12 text-primary lead"),p(o,"class","row svelte-1rxym9d"),p(b,"class","text-primary"),p(g,"class","col-6"),p(w,"class","text-primary"),p(x,"class","col-6"),p(m,"class","row svelte-1rxym9d"),p(L,"class","text-primary"),p(J,"class","col-1-3rd"),p(q,"class","text-primary"),p(A,"class","col-1-3rd"),p(H,"href",M=t[1].url),p(H,"class","text-capitalize"),p(H,"target","_blank"),p(P,"class","col-1-3rd"),p(C,"class","row svelte-1rxym9d"),p(n,"class","detailHead bg-light svelte-1rxym9d"),p(e,"class","detail svelte-1rxym9d")},m(t,i){l(t,e,i),a(e,n),a(n,o),a(o,r),a(r,s),a(n,c),a(n,m),a(m,g),a(g,y),a(g,b),a(b,$),a(m,v),a(m,x),a(x,_),a(x,w),a(w,j),a(n,k),a(n,C),a(C,J),a(J,S),a(J,L),a(L,N),a(C,O),a(C,A),a(A,T),a(A,q),a(q,E),a(C,D),a(C,P),a(P,R),a(P,H),a(H,z),a(e,I),a(e,B),a(B,U)},p(t,e){2&e&&F!==(F=t[1].title+"")&&h(s,F),2&e&&G!==(G=t[1].company+"")&&h($,G),2&e&&K!==(K=t[1].location+"")&&h(j,K),2&e&&Q!==(Q=t[1].salary+"")&&h(N,Q),2&e&&V!==(V=t[1].date+"")&&h(E,V),2&e&&W!==(W=t[1].site+"")&&h(z,W),2&e&&M!==(M=t[1].url)&&p(H,"href",M),2&e&&X!==(X=t[1].summary+"")&&h(U,X)},d(t){t&&i(e)}}}function Y(e){let n,o=e[0]&&X(e);return{c(){o&&o.c(),n=f("")},m(t,e){o&&o.m(t,e),l(t,n,e)},p(t,[e]){t[0]?o?o.p(t,e):(o=X(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:t,o:t,d(t){o&&o.d(t),t&&i(n)}}}function Z(t,e,n){let o;c(t,U,t=>n(1,o=t));let r=!1;return U.subscribe(t=>{n(0,r=!function(t){for(const e in t)if(t.hasOwnProperty(e))return!1;return!0}(t))}),[r,o]}class tt extends D{constructor(t){super(),E(this,t,Z,Y,s,{})}}function et(e){let n,o,r,s,c,f,h;const m=new R({}),g=new W({}),y=new tt({});return{c(){n=u("main"),o=u("div"),r=u("div"),O(m.$$.fragment),s=d(),c=u("div"),O(g.$$.fragment),f=d(),O(y.$$.fragment),p(r,"class","col-2"),p(c,"class","col-10"),p(o,"class","grid view")},m(t,e){l(t,n,e),a(n,o),a(o,r),A(m,r,null),a(o,s),a(o,c),A(g,c,null),a(c,f),A(y,c,null),h=!0},p:t,i(t){h||(L(m.$$.fragment,t),L(g.$$.fragment,t),L(y.$$.fragment,t),h=!0)},o(t){N(m.$$.fragment,t),N(g.$$.fragment,t),N(y.$$.fragment,t),h=!1},d(t){t&&i(n),T(m),T(g),T(y)}}}const nt=new class extends D{constructor(t){super(),E(this,t,null,et,s,{})}}({target:document.body});return F.getJobList(),nt}(); +var app=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function o(t){t.forEach(e)}function r(t){return"function"==typeof t}function s(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function c(e,n,o){e.$$.on_destroy.push(function(e,...n){if(null==e)return t;const o=e.subscribe(...n);return o.unsubscribe?()=>o.unsubscribe():o}(n,o))}function a(t,e){t.appendChild(e)}function l(t,e,n){t.insertBefore(e,n||null)}function i(t){t.parentNode.removeChild(t)}function u(t){return document.createElement(t)}function f(t){return document.createTextNode(t)}function d(){return f(" ")}function p(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function h(t,e){e=""+e,t.data!==e&&(t.data=e)}let m;function g(t){m=t}const y=[],b=[],$=[],v=[],x=Promise.resolve();let _=!1;function w(t){$.push(t)}let j=!1;const k=new Set;function C(){if(!j){j=!0;do{for(let t=0;t{S.delete(t),o&&(n&&t.d(1),o())}),t.o(e)}}function O(t){t&&t.c()}function A(t,n,s){const{fragment:c,on_mount:a,on_destroy:l,after_update:i}=t.$$;c&&c.m(n,s),w(()=>{const n=a.map(e).filter(r);l?l.push(...n):o(n),t.$$.on_mount=[]}),i.forEach(w)}function T(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function q(t,e){-1===t.$$.dirty[0]&&(y.push(t),_||(_=!0,x.then(C)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const r=o.length?o[0]:n;return p.ctx&&a(p.ctx[t],p.ctx[t]=r)&&(p.bound[t]&&p.bound[t](r),h&&q(e,t)),n}):[],p.update(),h=!0,o(p.before_update),p.fragment=!!c&&c(p.ctx),r.target){if(r.hydrate){const t=function(t){return Array.from(t.childNodes)}(r.target);p.fragment&&p.fragment.l(t),t.forEach(i)}else p.fragment&&p.fragment.c();r.intro&&L(e.$$.fragment),A(e,r.target,r.anchor),C()}g(f)}class D{$destroy(){T(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(){}}function P(e){let n;return{c(){n=u("menu"),n.innerHTML="

Jobs

\n
\n\n ",p(n,"class","svelte-ssrzvc")},m(t,e){l(t,n,e)},p:t,i:t,o:t,d(t){t&&i(n)}}}class R extends D{constructor(t){super(),E(this,t,null,P,s,{})}}const H=[];function z(e,n=t){let o;const r=[];function c(t){if(s(e,t)&&(e=t,o)){const t=!H.length;for(let t=0;t{const t=r.indexOf(l);-1!==t&&r.splice(t,1),0===r.length&&(o(),o=null)}}}}var M=function t(e){function n(t){return function(e,n){return s(e,Object.assign({method:t},n))}}function o(t){return function(e,n,o){return s(e,Object.assign({method:t,data:n},o))}}function r(t,e,n){if(Array.isArray(t))return t.concat(e);if(e&&"object"==typeof e){var o,s={};if(t)for(o in t)s[n?o.toLowerCase():o]=t[o];for(o in e){var c=n?o.toLowerCase():o;"headers"===c&&(n=!0),s[c]=o in s?r(s[c],e[o],n):e[o]}return s}return e}function s(t,n){"string"!=typeof t&&(t=(n=t).url);var o=r(e,n||{}),s=o.data;if(o.transformRequest)for(var c=0;c{const e=JSON.parse(t.data);B.set(e)}).catch(t=>{console.error("getJobList",t)})},loadJobDetail(t){if(console.log("loadJobDetail: "+t),t){const e=`${I.jobs}/${t}`;M.get(e).then(t=>{const e=JSON.parse(t.data);U.set(e)}).catch(t=>{console.error("loadJobDetail",t)})}}};function G(t,e,n){const o=t.slice();return o[2]=e[n],o[4]=n,o}function K(t){let e,n,o,s,c,m,g,y,b,$,v,x,_,w,j=t[2].title+"",k=t[2].site+"",C=t[2].company+"",J=t[2].date+"";return{c(){e=u("tr"),n=u("td"),o=f(j),s=d(),c=u("td"),m=f(k),g=d(),y=u("td"),b=f(C),$=d(),v=u("td"),x=f(J),_=d(),p(e,"class","dataRow")},m(i,u,f){var d,p,h,j;l(i,e,u),a(e,n),a(n,o),a(e,s),a(e,c),a(c,m),a(e,g),a(e,y),a(y,b),a(e,$),a(e,v),a(v,x),a(e,_),f&&w(),p="click",h=function(){r(t[1](t[2]._id))&&t[1](t[2]._id).apply(this,arguments)},(d=e).addEventListener(p,h,j),w=()=>d.removeEventListener(p,h,j)},p(e,n){t=e,1&n&&j!==(j=t[2].title+"")&&h(o,j),1&n&&k!==(k=t[2].site+"")&&h(m,k),1&n&&C!==(C=t[2].company+"")&&h(b,C),1&n&&J!==(J=t[2].date+"")&&h(x,J)},d(t){t&&i(e),w()}}}function Q(e){let n,o,r,s,c,f=e[0],h=[];for(let t=0;t\n Title\n \n \n Site\n \n \n Company\n \n \n Date\n ',s=d(),c=u("tbody");for(let t=0;tn(0,o=t));return[o,t=>{F.loadJobDetail(t)}]}class W extends D{constructor(t){super(),E(this,t,V,Q,s,{})}}function X(t){let e,n,o,r,s,c,m,g,y,b,$,v,x,_,w,j,k,C,J,S,L,N,O,A,T,q,E,D,P,R,H,z,M,I,B,U,F=t[1].title+"",G=t[1].company+"",K=t[1].location+"",Q=t[1].salary+"",V=t[1].date+"",W=t[1].site+"",X=t[1].summary+"";return{c(){e=u("div"),n=u("div"),o=u("div"),r=u("div"),s=f(F),c=d(),m=u("div"),g=u("div"),y=f("Company: "),b=u("span"),$=f(G),v=d(),x=u("div"),_=f("Location: "),w=u("span"),j=f(K),k=d(),C=u("div"),J=u("div"),S=f("Salary: "),L=u("span"),N=f(Q),O=d(),A=u("div"),T=f("Scraped: "),q=u("span"),E=f(V),D=d(),P=u("div"),R=f("Site: "),H=u("a"),z=f(W),I=d(),B=u("blockquote"),U=f(X),p(r,"class","col-12 text-primary lead"),p(o,"class","row svelte-1rxym9d"),p(b,"class","text-primary"),p(g,"class","col-6"),p(w,"class","text-primary"),p(x,"class","col-6"),p(m,"class","row svelte-1rxym9d"),p(L,"class","text-primary"),p(J,"class","col-1-3rd"),p(q,"class","text-primary"),p(A,"class","col-1-3rd"),p(H,"href",M=t[1].url),p(H,"class","text-capitalize"),p(H,"target","_blank"),p(P,"class","col-1-3rd"),p(C,"class","row svelte-1rxym9d"),p(n,"class","detailHead bg-light svelte-1rxym9d"),p(e,"class","detail svelte-1rxym9d")},m(t,i){l(t,e,i),a(e,n),a(n,o),a(o,r),a(r,s),a(n,c),a(n,m),a(m,g),a(g,y),a(g,b),a(b,$),a(m,v),a(m,x),a(x,_),a(x,w),a(w,j),a(n,k),a(n,C),a(C,J),a(J,S),a(J,L),a(L,N),a(C,O),a(C,A),a(A,T),a(A,q),a(q,E),a(C,D),a(C,P),a(P,R),a(P,H),a(H,z),a(e,I),a(e,B),a(B,U)},p(t,e){2&e&&F!==(F=t[1].title+"")&&h(s,F),2&e&&G!==(G=t[1].company+"")&&h($,G),2&e&&K!==(K=t[1].location+"")&&h(j,K),2&e&&Q!==(Q=t[1].salary+"")&&h(N,Q),2&e&&V!==(V=t[1].date+"")&&h(E,V),2&e&&W!==(W=t[1].site+"")&&h(z,W),2&e&&M!==(M=t[1].url)&&p(H,"href",M),2&e&&X!==(X=t[1].summary+"")&&h(U,X)},d(t){t&&i(e)}}}function Y(e){let n,o=e[0]&&X(e);return{c(){o&&o.c(),n=f("")},m(t,e){o&&o.m(t,e),l(t,n,e)},p(t,[e]){t[0]?o?o.p(t,e):(o=X(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:t,o:t,d(t){o&&o.d(t),t&&i(n)}}}function Z(t,e,n){let o;c(t,U,t=>n(1,o=t));let r=!1;return U.subscribe(t=>{n(0,r=!function(t){for(const e in t)if(t.hasOwnProperty(e))return!1;return!0}(t))}),[r,o]}class tt extends D{constructor(t){super(),E(this,t,Z,Y,s,{})}}function et(e){let n,o,r,s,c,f,h;const m=new R({}),g=new W({}),y=new tt({});return{c(){n=u("main"),o=u("div"),r=u("div"),O(m.$$.fragment),s=d(),c=u("div"),O(g.$$.fragment),f=d(),O(y.$$.fragment),p(r,"class","col-2"),p(c,"class","col-10"),p(o,"class","grid view")},m(t,e){l(t,n,e),a(n,o),a(o,r),A(m,r,null),a(o,s),a(o,c),A(g,c,null),a(c,f),A(y,c,null),h=!0},p:t,i(t){h||(L(m.$$.fragment,t),L(g.$$.fragment,t),L(y.$$.fragment,t),h=!0)},o(t){N(m.$$.fragment,t),N(g.$$.fragment,t),N(y.$$.fragment,t),h=!1},d(t){t&&i(n),T(m),T(g),T(y)}}}const nt=new class extends D{constructor(t){super(),E(this,t,null,et,s,{})}}({target:document.body});return F.getJobList(),nt}();