This commit is contained in:
Benjamin Toby
2025-01-14 16:27:08 +01:00
parent 1564c2811a
commit 81cf010cb5
485 changed files with 1432 additions and 1297 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
"use strict";(()=>{var e={};e.id=151,e.ids=[151],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},96762:(e,n)=>{Object.defineProperty(n,"M",{enumerable:!0,get:function(){return function e(n,t){return t in n?n[t]:"then"in n&&"function"==typeof n.then?n.then(n=>e(n,t)):"function"==typeof n&&"default"===t?n:void 0}}})},13196:(e,n,t)=>{t.r(n),t.d(n,{config:()=>c,default:()=>s,routeModule:()=>d});var r={};t.r(r),t.d(r,{default:()=>u});var i=t(89947),a=t(2706),o=t(96762),l=t(48786);async function u(e,n){if("GET"!==e.method)return n.json({msg:"Failed!"});e.query?.email?.toString()?.match(/^\S+$/)||n.json({email:null});let t=await (0,l.A)("SELECT email FROM users WHERE email=?",[e.query.email]);t&&t[0]?n.json({email:t}):n.json({email:null})}let s=(0,o.M)(r,"default"),c=(0,o.M)(r,"config"),d=new i.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/social-login/utils/checkEmail",pathname:"/api/social-login/utils/checkEmail",bundlePath:"",filename:""},userland:r})},48786:(e,n,t)=>{t.d(n,{A:()=>r});async function r(...e){let n=global.DSQL_DB_CONN;try{if(!n)throw Error("No Connection provided to DB_HANDLER function!");let t=await n.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await n?.end()}}},2706:(e,n)=>{Object.defineProperty(n,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,n,t)=>{e.exports=t(75600)}};var n=require("../../../../webpack-api-runtime.js");n.C(e);var t=n(n.s=13196);module.exports=t})();
"use strict";(()=>{var e={};e.id=151,e.ids=[151],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},13196:(e,r,n)=>{n.r(r),n.d(r,{config:()=>c,default:()=>u,routeModule:()=>l});var s={};n.r(s),n.d(s,{default:()=>_});var o=n(89947),t=n(2706),i=n(96762),a=n(48786);async function _(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});e.query?.email?.toString()?.match(/^\S+$/)||r.json({email:null});let n=await (0,a.A)("SELECT email FROM users WHERE email=?",[e.query.email]);n&&n[0]?r.json({email:n}):r.json({email:null})}let u=(0,i.M)(s,"default"),c=(0,i.M)(s,"config"),l=new o.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/social-login/utils/checkEmail",pathname:"/api/social-login/utils/checkEmail",bundlePath:"",filename:""},userland:s})},48786:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(7447);async function o(...e){let r=(0,s.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let n=await r.query(...e);return JSON.parse(JSON.stringify(n))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,n)=>{n.d(r,{A:()=>t});var s=n(9973),o=n.n(s);function t(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=13196);module.exports=n})();
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
"use strict";(()=>{var e={};e.id=7007,e.ids=[7007],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},96762:(e,n)=>{Object.defineProperty(n,"M",{enumerable:!0,get:function(){return function e(n,t){return t in n?n[t]:"then"in n&&"function"==typeof n.then?n.then(n=>e(n,t)):"function"==typeof n&&"default"===t?n:void 0}}})},22070:(e,n,t)=>{t.r(n),t.d(n,{config:()=>c,default:()=>s,routeModule:()=>d});var i={};t.r(i),t.d(i,{default:()=>l});var r=t(89947),o=t(2706),a=t(96762),u=t(48786);async function l(e,n){if("GET"!==e.method)return n.json({msg:"Failed!"});let{social_id:t,social_platform:i}=e.query,r=await (0,u.A)("SELECT social_id FROM users WHERE social_id=? AND social_platform=?",[t,i]);t&&t[0]?n.json({social_id:r}):n.json({social_id:null})}let s=(0,a.M)(i,"default"),c=(0,a.M)(i,"config"),d=new r.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/social-login/utils/checkSocialId",pathname:"/api/social-login/utils/checkSocialId",bundlePath:"",filename:""},userland:i})},48786:(e,n,t)=>{t.d(n,{A:()=>i});async function i(...e){let n=global.DSQL_DB_CONN;try{if(!n)throw Error("No Connection provided to DB_HANDLER function!");let t=await n.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await n?.end()}}},2706:(e,n)=>{Object.defineProperty(n,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,n,t)=>{e.exports=t(75600)}};var n=require("../../../../webpack-api-runtime.js");n.C(e);var t=n(n.s=22070);module.exports=t})();
"use strict";(()=>{var e={};e.id=7007,e.ids=[7007],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,o){return o in r?r[o]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,o)):"function"==typeof r&&"default"===o?r:void 0}}})},22070:(e,r,o)=>{o.r(r),o.d(r,{config:()=>u,default:()=>c,routeModule:()=>D});var s={};o.r(s),o.d(s,{default:()=>a});var n=o(89947),t=o(2706),i=o(96762),_=o(48786);async function a(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let{social_id:o,social_platform:s}=e.query,n=await (0,_.A)("SELECT social_id FROM users WHERE social_id=? AND social_platform=?",[o,s]);o&&o[0]?r.json({social_id:n}):r.json({social_id:null})}let c=(0,i.M)(s,"default"),u=(0,i.M)(s,"config"),D=new n.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/social-login/utils/checkSocialId",pathname:"/api/social-login/utils/checkSocialId",bundlePath:"",filename:""},userland:s})},48786:(e,r,o)=>{o.d(r,{A:()=>n});var s=o(7447);async function n(...e){let r=(0,s.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let o=await r.query(...e);return JSON.parse(JSON.stringify(o))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,o)=>{o.d(r,{A:()=>t});var s=o(9973),n=o.n(s);function t(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return o}});var o=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,o)=>{e.exports=o(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var o=r(r.s=22070);module.exports=o})();
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
"use strict";(()=>{var e={};e.id=3589,e.ids=[3589],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,n){return n in t?t[n]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,n)):"function"==typeof t&&"default"===n?t:void 0}}})},74059:(e,t,n)=>{n.r(t),n.d(t,{config:()=>d,default:()=>s,routeModule:()=>c});var r={};n.r(r),n.d(r,{default:()=>u});var i=n(89947),o=n(2706),a=n(96762),l=n(48786);async function u(e,t){if("GET"!==e.method)return t.json({msg:"Failed!"});let{social_id:n,social_platform:r}=e.query,i=await (0,l.A)("SELECT email FROM users WHERE social_id=? AND social_platform=?",[n,r]);i&&i[0]?t.json({email:i[0].email}):t.json({email:null})}let s=(0,a.M)(r,"default"),d=(0,a.M)(r,"config"),c=new i.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/social-login/utils/getEmailFromSocialId",pathname:"/api/social-login/utils/getEmailFromSocialId",bundlePath:"",filename:""},userland:r})},48786:(e,t,n)=>{n.d(t,{A:()=>r});async function r(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let n=await t.query(...e);return JSON.parse(JSON.stringify(n))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},2706:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,t,n)=>{e.exports=n(75600)}};var t=require("../../../../webpack-api-runtime.js");t.C(e);var n=t(t.s=74059);module.exports=n})();
"use strict";(()=>{var e={};e.id=3589,e.ids=[3589],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,o){return o in r?r[o]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,o)):"function"==typeof r&&"default"===o?r:void 0}}})},74059:(e,r,o)=>{o.r(r),o.d(r,{config:()=>c,default:()=>u,routeModule:()=>D});var s={};o.r(s),o.d(s,{default:()=>_});var n=o(89947),t=o(2706),i=o(96762),a=o(48786);async function _(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let{social_id:o,social_platform:s}=e.query,n=await (0,a.A)("SELECT email FROM users WHERE social_id=? AND social_platform=?",[o,s]);n&&n[0]?r.json({email:n[0].email}):r.json({email:null})}let u=(0,i.M)(s,"default"),c=(0,i.M)(s,"config"),D=new n.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/social-login/utils/getEmailFromSocialId",pathname:"/api/social-login/utils/getEmailFromSocialId",bundlePath:"",filename:""},userland:s})},48786:(e,r,o)=>{o.d(r,{A:()=>n});var s=o(7447);async function n(...e){let r=(0,s.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let o=await r.query(...e);return JSON.parse(JSON.stringify(o))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,o)=>{o.d(r,{A:()=>t});var s=o(9973),n=o.n(s);function t(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return o}});var o=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,o)=>{e.exports=o(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var o=r(r.s=74059);module.exports=o})();
File diff suppressed because one or more lines are too long