-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-pages-authorize-index-jsx-a68941675a8ae8dba769.js
2 lines (2 loc) · 2.35 KB
/
component---src-pages-authorize-index-jsx-a68941675a8ae8dba769.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{aFtW:function(t,e,n){"use strict";function r(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=t[Symbol.iterator]()).next.bind(n)}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return a}));var a=function(t){for(var e,n={},i=r(t=(t=t.replace(/^\?/,"")).split("&"));!(e=i()).done;){var a=e.value.split("=");n[a[0]]=a[1]}return n}},kW5p:function(t,e,n){"use strict";n.r(e);var r=n("k1TG"),i=n("8o2o"),a=n("q1tI"),o=n.n(a),c=n("Wbzz"),u=n("Tgqd"),l=n("I204"),s=n("yVse"),b=n("sfvf"),f=n("aFtW"),d=n("qKvR"),p={name:"70qvj9",styles:"display:flex;align-items:center;"},h=function(t){var e=t.children,n=Object(i.a)(t,["children"]);return Object(d.a)("button",Object(r.a)({css:p},n),e)},m=function(){var t="https://github.com/login/oauth/authorize?scope=user:email&client_id=2b386ad80c5eea753c6b";if(Object(b.a)()){var e=f.a(window.location.search);e.path&&(t+="&redirect_uri="+encodeURI(window.location.origin+"/authorize/github?path="+e.path)),window.location.href=t}},y={name:"xi606m",styles:"text-align:center;"},g={name:"kbnfbs",styles:"height:42px;margin-bottom:25px;display:flex;align-items:center;justify-content:center;width:100%;"},v={name:"lvyu5j",styles:"margin-right:10px;"};e.default=function(){return o.a.useEffect((function(){}),[]),Object(d.a)("div",{css:y},Object(d.a)(l.a,{title:"Authorize",description:"Login to Glee to start using it."}),Object(d.a)(c.a,{to:"/",css:g},Object(d.a)(s.a,{width:"100%"})),Object(d.a)("div",null,Object(d.a)(h,{onClick:m},Object(d.a)(u.d,{css:v}),Object(d.a)("div",null,"Login with GitHub"))))}}}]);
//# sourceMappingURL=component---src-pages-authorize-index-jsx-a68941675a8ae8dba769.js.map