Updates
This commit is contained in:
parent
73de278c1f
commit
35fab61e84
@ -1 +1 @@
|
||||
hgCuuxNPs7UC1FUl37eUz
|
||||
0Tj60KlCbOC34qhw2O05f
|
@ -5,8 +5,8 @@
|
||||
"devFiles": [],
|
||||
"ampDevFiles": [],
|
||||
"lowPriorityFiles": [
|
||||
"static/hgCuuxNPs7UC1FUl37eUz/_buildManifest.js",
|
||||
"static/hgCuuxNPs7UC1FUl37eUz/_ssgManifest.js"
|
||||
"static/0Tj60KlCbOC34qhw2O05f/_buildManifest.js",
|
||||
"static/0Tj60KlCbOC34qhw2O05f/_ssgManifest.js"
|
||||
],
|
||||
"rootMainFiles": [],
|
||||
"rootMainFilesTree": {},
|
||||
@ -326,7 +326,7 @@
|
||||
"static/chunks/8261-3c3582fc434ee275.js",
|
||||
"static/chunks/7391-b72414be460cf0f0.js",
|
||||
"static/chunks/2480-c3f2e7fac796ce00.js",
|
||||
"static/chunks/pages/admin/[user_id]/media/[...folder]-b6fc88b5ef4a287f.js"
|
||||
"static/chunks/pages/admin/[user_id]/media/[...folder]-c8df7e4d1118eb40.js"
|
||||
],
|
||||
"/admin/[user_id]/schema": [
|
||||
"static/chunks/webpack-5381863dc66a9c32.js",
|
||||
@ -334,7 +334,7 @@
|
||||
"static/chunks/main-96e9b4333635008a.js",
|
||||
"static/chunks/6428-c106bf6efb539d8c.js",
|
||||
"static/chunks/7391-b72414be460cf0f0.js",
|
||||
"static/chunks/pages/admin/[user_id]/schema-f2ab2c689d728d2f.js"
|
||||
"static/chunks/pages/admin/[user_id]/schema-2ab99d8d3c163b57.js"
|
||||
],
|
||||
"/admin/[user_id]/settings": [
|
||||
"static/chunks/webpack-5381863dc66a9c32.js",
|
||||
@ -440,7 +440,7 @@
|
||||
"static/chunks/webpack-5381863dc66a9c32.js",
|
||||
"static/chunks/framework-5f43af1a76a0211a.js",
|
||||
"static/chunks/main-96e9b4333635008a.js",
|
||||
"static/chunks/pages/logout-60a2b37f5fe2427f.js"
|
||||
"static/chunks/pages/logout-455304f72b658ce6.js"
|
||||
],
|
||||
"/privacy": [
|
||||
"static/chunks/webpack-5381863dc66a9c32.js",
|
||||
|
6
dsql-app/.local_dist/cache/config.json
vendored
6
dsql-app/.local_dist/cache/config.json
vendored
@ -1,7 +1,7 @@
|
||||
{
|
||||
"telemetry": {
|
||||
"notifiedAt": "1736805883021",
|
||||
"anonymousId": "49bed3310da3f78629308b7d192d3275e7d0a317b608e638a53482ac5820e028",
|
||||
"salt": "ef2ada937f7809305361c630d44d5e11"
|
||||
"notifiedAt": "1736834967502",
|
||||
"anonymousId": "81a5b0144a43bcba952282cb450612c3d8420f6ba32d0c3df29ff7001a2e5845",
|
||||
"salt": "60f2a39e9fd9192cc5af1ae6d4c3c490"
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
{"version":4,"routes":{},"dynamicRoutes":{"/docs/[page]/[sub-page]":{"routeRegex":"^/docs/([^/]+?)/([^/]+?)(?:/)?$","dataRoute":"/_next/data/hgCuuxNPs7UC1FUl37eUz/docs/[page]/[sub-page].json","fallback":false,"dataRouteRegex":"^/_next/data/hgCuuxNPs7UC1FUl37eUz/docs/([^/]+?)/([^/]+?)\\.json$","allowHeader":["host","x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/[page]":{"routeRegex":"^/docs/([^/]+?)(?:/)?$","dataRoute":"/_next/data/hgCuuxNPs7UC1FUl37eUz/docs/[page].json","fallback":false,"dataRouteRegex":"^/_next/data/hgCuuxNPs7UC1FUl37eUz/docs/([^/]+?)\\.json$","allowHeader":["host","x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]}},"notFoundRoutes":[],"preview":{"previewModeId":"48093749f7bbdbc81ca1d1bd504a24f7","previewModeSigningKey":"cdc84c9b71f4dc402395594608de6a634e0d57ab70745aeeb71e85645139ca43","previewModeEncryptionKey":"e07327ceb5bcc80a664c033296c492896a144be1dc89bcf57b9867d53ee05680"}}
|
||||
{"version":4,"routes":{},"dynamicRoutes":{"/docs/[page]/[sub-page]":{"routeRegex":"^/docs/([^/]+?)/([^/]+?)(?:/)?$","dataRoute":"/_next/data/0Tj60KlCbOC34qhw2O05f/docs/[page]/[sub-page].json","fallback":false,"dataRouteRegex":"^/_next/data/0Tj60KlCbOC34qhw2O05f/docs/([^/]+?)/([^/]+?)\\.json$","allowHeader":["host","x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/[page]":{"routeRegex":"^/docs/([^/]+?)(?:/)?$","dataRoute":"/_next/data/0Tj60KlCbOC34qhw2O05f/docs/[page].json","fallback":false,"dataRouteRegex":"^/_next/data/0Tj60KlCbOC34qhw2O05f/docs/([^/]+?)\\.json$","allowHeader":["host","x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]}},"notFoundRoutes":[],"preview":{"previewModeId":"e4e08fe8d87ec98f2cb4be4892d229b3","previewModeSigningKey":"5e4fccaeede2c336a7bb947d9847d0847406ef527db2d89988cec7f6febee8ab","previewModeEncryptionKey":"df6638791c87ab94bad30cee1a03e257627bd0b2eed2a441c9de6e1b02059ad0"}}
|
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
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 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2025 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/40a7197d287e4ac0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/40a7197d287e4ac0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-5381863dc66a9c32.js" defer=""></script><script src="/_next/static/chunks/framework-5f43af1a76a0211a.js" defer=""></script><script src="/_next/static/chunks/main-96e9b4333635008a.js" defer=""></script><script src="/_next/static/chunks/pages/_app-f20525907c2f070a.js" defer=""></script><script src="/_next/static/chunks/pages/404-386ef30594132ecb.js" defer=""></script><script src="/_next/static/hgCuuxNPs7UC1FUl37eUz/_buildManifest.js" defer=""></script><script src="/_next/static/hgCuuxNPs7UC1FUl37eUz/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/404","query":{},"buildId":"hgCuuxNPs7UC1FUl37eUz","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2025 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/40a7197d287e4ac0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/40a7197d287e4ac0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-5381863dc66a9c32.js" defer=""></script><script src="/_next/static/chunks/framework-5f43af1a76a0211a.js" defer=""></script><script src="/_next/static/chunks/main-96e9b4333635008a.js" defer=""></script><script src="/_next/static/chunks/pages/_app-f20525907c2f070a.js" defer=""></script><script src="/_next/static/chunks/pages/404-386ef30594132ecb.js" defer=""></script><script src="/_next/static/0Tj60KlCbOC34qhw2O05f/_buildManifest.js" defer=""></script><script src="/_next/static/0Tj60KlCbOC34qhw2O05f/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/404","query":{},"buildId":"0Tj60KlCbOC34qhw2O05f","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
@ -1 +1 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2025 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/40a7197d287e4ac0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/40a7197d287e4ac0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-5381863dc66a9c32.js" defer=""></script><script src="/_next/static/chunks/framework-5f43af1a76a0211a.js" defer=""></script><script src="/_next/static/chunks/main-96e9b4333635008a.js" defer=""></script><script src="/_next/static/chunks/pages/_app-f20525907c2f070a.js" defer=""></script><script src="/_next/static/chunks/pages/500-81f6b715960091f2.js" defer=""></script><script src="/_next/static/hgCuuxNPs7UC1FUl37eUz/_buildManifest.js" defer=""></script><script src="/_next/static/hgCuuxNPs7UC1FUl37eUz/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/500","query":{},"buildId":"hgCuuxNPs7UC1FUl37eUz","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2025 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/40a7197d287e4ac0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/40a7197d287e4ac0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-5381863dc66a9c32.js" defer=""></script><script src="/_next/static/chunks/framework-5f43af1a76a0211a.js" defer=""></script><script src="/_next/static/chunks/main-96e9b4333635008a.js" defer=""></script><script src="/_next/static/chunks/pages/_app-f20525907c2f070a.js" defer=""></script><script src="/_next/static/chunks/pages/500-81f6b715960091f2.js" defer=""></script><script src="/_next/static/0Tj60KlCbOC34qhw2O05f/_buildManifest.js" defer=""></script><script src="/_next/static/0Tj60KlCbOC34qhw2O05f/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/500","query":{},"buildId":"0Tj60KlCbOC34qhw2O05f","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
@ -1 +1 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2025 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/40a7197d287e4ac0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/40a7197d287e4ac0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-5381863dc66a9c32.js" defer=""></script><script src="/_next/static/chunks/framework-5f43af1a76a0211a.js" defer=""></script><script src="/_next/static/chunks/main-96e9b4333635008a.js" defer=""></script><script src="/_next/static/chunks/pages/_app-f20525907c2f070a.js" defer=""></script><script src="/_next/static/chunks/3298-73758aefe44233a6.js" defer=""></script><script src="/_next/static/chunks/pages/about-69331c972566352a.js" defer=""></script><script src="/_next/static/hgCuuxNPs7UC1FUl37eUz/_buildManifest.js" defer=""></script><script src="/_next/static/hgCuuxNPs7UC1FUl37eUz/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/about","query":{},"buildId":"hgCuuxNPs7UC1FUl37eUz","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2025 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/40a7197d287e4ac0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/40a7197d287e4ac0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-5381863dc66a9c32.js" defer=""></script><script src="/_next/static/chunks/framework-5f43af1a76a0211a.js" defer=""></script><script src="/_next/static/chunks/main-96e9b4333635008a.js" defer=""></script><script src="/_next/static/chunks/pages/_app-f20525907c2f070a.js" defer=""></script><script src="/_next/static/chunks/3298-73758aefe44233a6.js" defer=""></script><script src="/_next/static/chunks/pages/about-69331c972566352a.js" defer=""></script><script src="/_next/static/0Tj60KlCbOC34qhw2O05f/_buildManifest.js" defer=""></script><script src="/_next/static/0Tj60KlCbOC34qhw2O05f/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/about","query":{},"buildId":"0Tj60KlCbOC34qhw2O05f","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
"use strict";(()=>{var e={};e.id=531,e.ids=[531],e.modules={65102:(e,t,s)=>{s.r(t),s.d(t,{config:()=>m,default:()=>o,getServerSideProps:()=>x,getStaticPaths:()=>u,getStaticProps:()=>c,reportWebVitals:()=>p,routeModule:()=>y,unstable_getServerProps:()=>j,unstable_getServerSideProps:()=>S,unstable_getStaticParams:()=>g,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>h});var a=s(63865),r=s(9455),i=s(30671),n=s(5583),d=s(19796),l=s(3530);let o=(0,i.M)(l,"default"),c=(0,i.M)(l,"getStaticProps"),u=(0,i.M)(l,"getStaticPaths"),x=(0,i.M)(l,"getServerSideProps"),m=(0,i.M)(l,"config"),p=(0,i.M)(l,"reportWebVitals"),h=(0,i.M)(l,"unstable_getStaticProps"),b=(0,i.M)(l,"unstable_getStaticPaths"),g=(0,i.M)(l,"unstable_getStaticParams"),j=(0,i.M)(l,"unstable_getServerProps"),S=(0,i.M)(l,"unstable_getServerSideProps"),y=new a.PagesRouteModule({definition:{kind:r.A.PAGES,page:"/admin/[user_id]",pathname:"/admin/[user_id]",bundlePath:"",filename:""},components:{App:d.default,Document:n.default},userland:l})},71192:(e,t,s)=>{s.d(t,{A:()=>j});var a=s(8732),r=s(82015),i=s.n(r),n=s(3530),d=s(53926),l=s(66485),o=s(56331);function c(){let{databases:e,setTargetDatabase:t,user:s}=i().useContext(n.DashboardContext);return(0,a.jsx)(i().Fragment,{children:(0,a.jsx)(o.A,{databases:e,setTargetDatabase:t,title:"Recently added Databases",more:!0,user:s})})}var u=s(67274),x=s(34637),m=s(93213),p=s(83158);let h=(0,s(82544).A)("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);function b({icon:e,metric:t,count:s,url:r}){return(0,a.jsxs)("a",{href:r,className:"card col w-full",children:[(0,a.jsx)("div",{className:"absolute top-4 right-4",children:e}),(0,a.jsxs)("div",{className:"content-block",children:[(0,a.jsx)("span",{className:"metric text-slate-800 dark:text-white",children:s}),(0,a.jsx)("span",{className:"text-sm text-slate-600 dark:text-slate-400",children:t})]})]})}function g(){let{databases:e,setTargetDatabase:t,metrics:s,user:r}=i().useContext(n.DashboardContext);return(0,a.jsx)("section",{className:"p-0",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 w-full gap-6 items-stretch",children:[(0,a.jsx)(b,{metric:"Databases Created",count:s?.dbCount||0,icon:(0,a.jsx)(x.A,{size:20,className:"text-secondary2"}),url:`/admin/${r?.id}/databases`}),(0,a.jsx)(b,{metric:"Tables Created",count:s?.tablesCount||0,icon:(0,a.jsx)(m.A,{size:20,className:"text-primary"})}),(0,a.jsx)(b,{metric:"Media Added",count:s?.mediaCount||0,icon:(0,a.jsx)(p.A,{size:20,className:"text-slate-500"}),url:`/admin/${r?.id}/media`}),(0,a.jsx)(b,{metric:"API Keys",count:s?.apiKeysCount||0,icon:(0,a.jsx)(h,{size:20,className:"text-slate-900 dark:text-white"}),url:`/admin/${r?.id}/api-keys`})]})})}function j(){let{databases:e,user:t}=i().useContext(n.DashboardContext);return(0,a.jsxs)(i().Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0",children:[(0,a.jsx)("h1",{className:"text-3xl m-0",children:"Dashboard"}),(0,a.jsx)(d.A,{user:t})]}),t?.verification_status?.toString().match(/1/)?(0,a.jsxs)(i().Fragment,{children:[(0,a.jsx)(g,{}),(0,a.jsx)(c,{}),(0,a.jsx)(u.A,{user:t})]}):(0,a.jsx)(l.A,{})]})}},93213:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},3530:(e,t,s)=>{s.r(t),s.d(t,{DashboardContext:()=>u,default:()=>x,getServerSideProps:()=>m});var a=s(8732),r=s(82015),i=s.n(r),n=s(25562),d=s(92702),l=s(71192),o=s(70355),c=s(71934);let u=i().createContext({});function x({user:e,databases:t,metrics:s}){let r=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[d,c]=i().useState();return(0,a.jsx)(n.A,{head:r,user:e,children:(0,a.jsxs)(u.Provider,{value:{user:e,databases:t,targetDatabase:d,setTargetDatabase:c,metrics:s},children:[(0,a.jsx)(l.A,{}),(0,a.jsx)(o.A,{targetDatabase:d})]})})}async function m({req:e,res:t,query:s}){let a=await (0,d.default)(e,t);if(!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,c.A)("SELECT * FROM user_databases WHERE user_id=? ORDER BY id DESC LIMIT 3",[a.id]),i=await (0,c.A)(`
|
||||
"use strict";(()=>{var e={};e.id=531,e.ids=[531],e.modules={65102:(e,t,s)=>{s.r(t),s.d(t,{config:()=>m,default:()=>o,getServerSideProps:()=>x,getStaticPaths:()=>u,getStaticProps:()=>c,reportWebVitals:()=>p,routeModule:()=>y,unstable_getServerProps:()=>j,unstable_getServerSideProps:()=>S,unstable_getStaticParams:()=>g,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>h});var a=s(63865),r=s(9455),i=s(30671),n=s(5583),d=s(19796),l=s(3530);let o=(0,i.M)(l,"default"),c=(0,i.M)(l,"getStaticProps"),u=(0,i.M)(l,"getStaticPaths"),x=(0,i.M)(l,"getServerSideProps"),m=(0,i.M)(l,"config"),p=(0,i.M)(l,"reportWebVitals"),h=(0,i.M)(l,"unstable_getStaticProps"),b=(0,i.M)(l,"unstable_getStaticPaths"),g=(0,i.M)(l,"unstable_getStaticParams"),j=(0,i.M)(l,"unstable_getServerProps"),S=(0,i.M)(l,"unstable_getServerSideProps"),y=new a.PagesRouteModule({definition:{kind:r.A.PAGES,page:"/admin/[user_id]",pathname:"/admin/[user_id]",bundlePath:"",filename:""},components:{App:d.default,Document:n.default},userland:l})},71192:(e,t,s)=>{s.d(t,{A:()=>j});var a=s(8732),r=s(82015),i=s.n(r),n=s(3530),d=s(53926),l=s(66485),o=s(56331);function c(){let{databases:e,setTargetDatabase:t,user:s}=i().useContext(n.DashboardContext);return(0,a.jsx)(i().Fragment,{children:(0,a.jsx)(o.A,{databases:e,setTargetDatabase:t,title:"Recently added Databases",more:!0,user:s})})}var u=s(67274),x=s(34637),m=s(93213),p=s(83158);let h=(0,s(82544).A)("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);function b({icon:e,metric:t,count:s,url:r}){return(0,a.jsxs)("a",{href:r,className:"card col w-full",children:[(0,a.jsx)("div",{className:"absolute top-4 right-4",children:e}),(0,a.jsxs)("div",{className:"content-block",children:[(0,a.jsx)("span",{className:"metric text-slate-800 dark:text-white",children:s}),(0,a.jsx)("span",{className:"text-sm text-slate-600 dark:text-slate-400",children:t})]})]})}function g(){let{databases:e,setTargetDatabase:t,metrics:s,user:r}=i().useContext(n.DashboardContext);return(0,a.jsx)("section",{className:"p-0",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 w-full gap-6 items-stretch",children:[(0,a.jsx)(b,{metric:"Databases Created",count:s?.dbCount||0,icon:(0,a.jsx)(x.A,{size:20,className:"text-secondary2"}),url:`/admin/${r?.id}/databases`}),(0,a.jsx)(b,{metric:"Tables Created",count:s?.tablesCount||0,icon:(0,a.jsx)(m.A,{size:20,className:"text-primary"})}),(0,a.jsx)(b,{metric:"Media Added",count:s?.mediaCount||0,icon:(0,a.jsx)(p.A,{size:20,className:"text-slate-500"}),url:`/admin/${r?.id}/media`}),(0,a.jsx)(b,{metric:"API Keys",count:s?.apiKeysCount||0,icon:(0,a.jsx)(h,{size:20,className:"text-slate-900 dark:text-white"}),url:`/admin/${r?.id}/api-keys`})]})})}function j(){let{databases:e,user:t}=i().useContext(n.DashboardContext);return(0,a.jsxs)(i().Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0",children:[(0,a.jsx)("h1",{className:"text-3xl m-0",children:"Dashboard"}),(0,a.jsx)(d.A,{user:t})]}),t?.verification_status?.toString().match(/1/)?(0,a.jsxs)(i().Fragment,{children:[(0,a.jsx)(g,{}),(0,a.jsx)(c,{}),(0,a.jsx)(u.A,{user:t})]}):(0,a.jsx)(l.A,{})]})}},93213:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},3530:(e,t,s)=>{s.r(t),s.d(t,{DashboardContext:()=>u,default:()=>x,getServerSideProps:()=>m});var a=s(8732),r=s(82015),i=s.n(r),n=s(25562),d=s(92702),l=s(71192),o=s(70355),c=s(71934);let u=i().createContext({});function x({user:e,databases:t,metrics:s}){let r=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[d,c]=i().useState();return(0,a.jsx)(n.A,{head:r,user:e,children:(0,a.jsxs)(u.Provider,{value:{user:e,databases:t,targetDatabase:d,setTargetDatabase:c,metrics:s},children:[(0,a.jsx)(l.A,{}),(0,a.jsx)(o.A,{targetDatabase:d})]})})}async function m({req:e,res:t,query:s}){let a=await (0,d.A)(e,t);if(!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,c.A)("SELECT * FROM user_databases WHERE user_id=? ORDER BY id DESC LIMIT 3",[a.id]),i=await (0,c.A)(`
|
||||
SELECT (
|
||||
SELECT COUNT(id) FROM user_databases WHERE user_id=?
|
||||
) AS dbCount,
|
||||
|
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=2564,e.ids=[2564],e.modules={25316:(e,t,a)=>{a.r(t),a.d(t,{config:()=>w,default:()=>M,getServerSideProps:()=>D,getStaticPaths:()=>A,getStaticProps:()=>q,reportWebVitals:()=>E,routeModule:()=>W,unstable_getServerProps:()=>N,unstable_getServerSideProps:()=>R,unstable_getStaticParams:()=>F,unstable_getStaticPaths:()=>y,unstable_getStaticProps:()=>C});var s={};a.r(s),a.d(s,{DatabasesContext:()=>P,default:()=>v,getServerSideProps:()=>_});var r=a(63865),i=a(9455),n=a(30671),d=a(5583),u=a(19796),l=a(8732),o=a(82015),c=a.n(o),p=a(25562),x=a(92702),m=a(53926),g=a(66485),b=a(56331),S=a(67274);function f(){let{databases:e,setTargetDatabase:t,user:a}=c().useContext(P);return(0,l.jsxs)(c().Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsx)("h1",{className:"text-3xl m-0",children:"Databases"}),(0,l.jsxs)("a",{href:`/admin/${a?.id}/databases/add-database`,className:"button flex items-center gap-2",children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add Database"})]})]}),(0,l.jsx)(m.A,{user:a})]}),a?.verification_status?.toString().match(/1/)?(0,l.jsxs)(c().Fragment,{children:[(0,l.jsx)(b.A,{databases:e,setTargetDatabase:t,user:a}),(0,l.jsx)(S.A,{user:a})]}):(0,l.jsx)(g.A,{})]})}var h=a(70355),j=a(71934);let P=c().createContext({});function v({user:e,databases:t}){let a=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"Databases | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[s,r]=c().useState();return(0,l.jsx)(P.Provider,{value:{user:e,databases:t,targetDatabase:s,setTargetDatabase:r},children:(0,l.jsxs)(c().Fragment,{children:[(0,l.jsx)(p.A,{head:a,user:e,children:(0,l.jsx)(f,{})}),(0,l.jsx)(h.A,{targetDatabase:s})]})})}async function _({req:e,res:t,query:a}){let s=await (0,x.default)(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,j.A)("SELECT * FROM user_databases WHERE user_id=? ORDER BY id DESC",[s.id]);return{props:{user:s,databases:r}}}let M=(0,n.M)(s,"default"),q=(0,n.M)(s,"getStaticProps"),A=(0,n.M)(s,"getStaticPaths"),D=(0,n.M)(s,"getServerSideProps"),w=(0,n.M)(s,"config"),E=(0,n.M)(s,"reportWebVitals"),C=(0,n.M)(s,"unstable_getStaticProps"),y=(0,n.M)(s,"unstable_getStaticPaths"),F=(0,n.M)(s,"unstable_getStaticParams"),N=(0,n.M)(s,"unstable_getServerProps"),R=(0,n.M)(s,"unstable_getServerSideProps"),W=new r.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases",pathname:"/admin/[user_id]/databases",bundlePath:"",filename:""},components:{App:u.default,Document:d.default},userland:s})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),s=t.X(0,[883,9821,9796,5392,6160],()=>a(25316));module.exports=s})();
|
||||
"use strict";(()=>{var e={};e.id=2564,e.ids=[2564],e.modules={25316:(e,t,a)=>{a.r(t),a.d(t,{config:()=>w,default:()=>M,getServerSideProps:()=>D,getStaticPaths:()=>A,getStaticProps:()=>q,reportWebVitals:()=>E,routeModule:()=>W,unstable_getServerProps:()=>N,unstable_getServerSideProps:()=>R,unstable_getStaticParams:()=>F,unstable_getStaticPaths:()=>y,unstable_getStaticProps:()=>C});var s={};a.r(s),a.d(s,{DatabasesContext:()=>P,default:()=>v,getServerSideProps:()=>_});var r=a(63865),i=a(9455),n=a(30671),d=a(5583),u=a(19796),l=a(8732),o=a(82015),c=a.n(o),p=a(25562),x=a(92702),m=a(53926),g=a(66485),b=a(56331),S=a(67274);function h(){let{databases:e,setTargetDatabase:t,user:a}=c().useContext(P);return(0,l.jsxs)(c().Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsx)("h1",{className:"text-3xl m-0",children:"Databases"}),(0,l.jsxs)("a",{href:`/admin/${a?.id}/databases/add-database`,className:"button flex items-center gap-2",children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add Database"})]})]}),(0,l.jsx)(m.A,{user:a})]}),a?.verification_status?.toString().match(/1/)?(0,l.jsxs)(c().Fragment,{children:[(0,l.jsx)(b.A,{databases:e,setTargetDatabase:t,user:a}),(0,l.jsx)(S.A,{user:a})]}):(0,l.jsx)(g.A,{})]})}var f=a(70355),j=a(71934);let P=c().createContext({});function v({user:e,databases:t}){let a=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"Databases | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[s,r]=c().useState();return(0,l.jsx)(P.Provider,{value:{user:e,databases:t,targetDatabase:s,setTargetDatabase:r},children:(0,l.jsxs)(c().Fragment,{children:[(0,l.jsx)(p.A,{head:a,user:e,children:(0,l.jsx)(h,{})}),(0,l.jsx)(f.A,{targetDatabase:s})]})})}async function _({req:e,res:t,query:a}){let s=await (0,x.A)(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,j.A)("SELECT * FROM user_databases WHERE user_id=? ORDER BY id DESC",[s.id]);return{props:{user:s,databases:r}}}let M=(0,n.M)(s,"default"),q=(0,n.M)(s,"getStaticProps"),A=(0,n.M)(s,"getStaticPaths"),D=(0,n.M)(s,"getServerSideProps"),w=(0,n.M)(s,"config"),E=(0,n.M)(s,"reportWebVitals"),C=(0,n.M)(s,"unstable_getStaticProps"),y=(0,n.M)(s,"unstable_getStaticPaths"),F=(0,n.M)(s,"unstable_getStaticParams"),N=(0,n.M)(s,"unstable_getServerProps"),R=(0,n.M)(s,"unstable_getServerSideProps"),W=new r.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases",pathname:"/admin/[user_id]/databases",bundlePath:"",filename:""},components:{App:u.default,Document:d.default},userland:s})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),s=t.X(0,[883,9821,9796,5392,6160],()=>a(25316));module.exports=s})();
|
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
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
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
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
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,4 +1,4 @@
|
||||
"use strict";(()=>{var e={};e.id=9718,e.ids=[9718],e.modules={72952:(e,t,r)=>{r.r(t),r.d(t,{config:()=>w,default:()=>P,getServerSideProps:()=>N,getStaticPaths:()=>D,getStaticProps:()=>q,reportWebVitals:()=>R,routeModule:()=>H,unstable_getServerProps:()=>I,unstable_getServerSideProps:()=>O,unstable_getStaticParams:()=>F,unstable_getStaticPaths:()=>C,unstable_getStaticProps:()=>$});var a={};r.r(a),r.d(a,{AddDatabaseContext:()=>v,default:()=>E,getServerSideProps:()=>M});var s=r(63865),n=r(9455),i=r(30671),l=r(5583),d=r(19796),o=r(8732),u=r(82015),c=r.n(u),m=r(25562),p=r(92702),g=r(19134),x=r(59023),f=r(53926),b=r(16757),S=r(61347),h=r(89088);function A(){let{user:e,dbImage:t,setDbImage:r,query:a}=c().useContext(v);if(!e)return(0,o.jsx)(c().Fragment,{});let[s,n]=c().useState(null),[i,l]=c().useState(!1);return(0,o.jsx)("section",{className:"card",children:(0,o.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch",children:[i&&(0,o.jsx)(b.A,{}),(0,o.jsxs)("div",{className:"flex-col items-start",children:[(0,o.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"New Database Information"}),e&&t&&r&&(0,o.jsx)(S.A,{user:e,dbImage:t,setDbImage:r,setLoading:l,query:a})]}),e&&t&&r&&(0,o.jsx)(h.A,{user:e,dbImage:t,setDbImage:r})]})})}function j(){let{query:e,duplicateDb:t,user:r}=c().useContext(v),a=e?.duplicate?(0,o.jsxs)("span",{children:["Duplicate"," ",(0,o.jsx)("a",{href:`/admin/${r?.id}/databases/${t?.db_slug}`,target:"_blank",children:t?.db_name})," ","Database"]}):"Add A New Database";return(0,o.jsxs)(c().Fragment,{children:[(0,o.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,o.jsxs)("div",{className:"flex-wrap",children:[(0,o.jsx)(x.A,{}),(0,o.jsx)("h1",{className:"text-3xl m-0",children:a})]}),(0,o.jsx)(f.A,{user:r})]}),(0,o.jsx)(A,{})]})}var _=r(37195),y=r(71934);let v=c().createContext({});function E({user:e,databases:t,query:r,duplicateDb:a}){let s=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:"Add Database | Datasquirel"}),(0,o.jsx)("meta",{name:"description",content:"Add a database"})]}),[n,i]=c().useState("/images/database-placeholder.png");return(0,o.jsx)(v.Provider,{value:{user:e,databases:t,dbImage:n,setDbImage:i,query:r,duplicateDb:a},children:(0,o.jsxs)(c().Fragment,{children:[(0,o.jsx)(m.A,{head:s,user:e,children:(0,o.jsx)(j,{})}),(0,o.jsx)(_.A,{setDbImage:i})]})})}async function M({req:e,res:t,query:r}){let a=await (0,p.default)(e,t);if(!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};if(!a?.verification_status?.toString()?.match(/1/))return{redirect:{destination:"/admin",permanent:!1}};let s=await (0,g.A)(`SELECT SCHEMA_NAME AS dbFullName FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME LIKE 'user_${a.id}%'`),n={};if(r.duplicate){let e=await (0,y.A)(`SELECT * FROM user_databases WHERE db_full_name='${r.duplicate}'`);e&&e[0]&&(n=e[0])}return{props:{user:a,databases:s,query:r,duplicateDb:n}}}let P=(0,i.M)(a,"default"),q=(0,i.M)(a,"getStaticProps"),D=(0,i.M)(a,"getStaticPaths"),N=(0,i.M)(a,"getServerSideProps"),w=(0,i.M)(a,"config"),R=(0,i.M)(a,"reportWebVitals"),$=(0,i.M)(a,"unstable_getStaticProps"),C=(0,i.M)(a,"unstable_getStaticPaths"),F=(0,i.M)(a,"unstable_getStaticParams"),I=(0,i.M)(a,"unstable_getServerProps"),O=(0,i.M)(a,"unstable_getServerSideProps"),H=new s.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/admin/[user_id]/databases/add-database",pathname:"/admin/[user_id]/databases/add-database",bundlePath:"",filename:""},components:{App:d.default,Document:l.default},userland:a})},59023:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(8732),s=r(23293);function n(){return(0,a.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,a.jsx)(s.A,{})})}r(82015)},19134:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(29021),s=r.n(a),n=r(77047);async function i(e){let t;"production".match(/dev/)&&s().appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{t=await function(...e){let t=global.DSQL_DB_CONN;try{return new Promise((r,a)=>{t.query(...e).then(e=>{t.end(),r(JSON.parse(JSON.stringify(e)))}).catch(e=>{t.end(),r({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}(e)}catch(e){(0,n.A)({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return t||null}},77047:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(29021),s=r.n(a);async function n({user:e,message:t,component:r,noMail:a,req:n}){let i=new Date,l=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],t=n.headers["x-real-ip"],r=n.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=r||a||t||n.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR ===========================
|
||||
"use strict";(()=>{var e={};e.id=9718,e.ids=[9718],e.modules={72952:(e,t,r)=>{r.r(t),r.d(t,{config:()=>w,default:()=>P,getServerSideProps:()=>N,getStaticPaths:()=>D,getStaticProps:()=>q,reportWebVitals:()=>R,routeModule:()=>H,unstable_getServerProps:()=>I,unstable_getServerSideProps:()=>O,unstable_getStaticParams:()=>F,unstable_getStaticPaths:()=>C,unstable_getStaticProps:()=>$});var a={};r.r(a),r.d(a,{AddDatabaseContext:()=>v,default:()=>E,getServerSideProps:()=>M});var s=r(63865),n=r(9455),i=r(30671),l=r(5583),d=r(19796),o=r(8732),u=r(82015),c=r.n(u),m=r(25562),p=r(92702),g=r(19134),x=r(59023),f=r(53926),b=r(16757),S=r(61347),h=r(89088);function A(){let{user:e,dbImage:t,setDbImage:r,query:a}=c().useContext(v);if(!e)return(0,o.jsx)(c().Fragment,{});let[s,n]=c().useState(null),[i,l]=c().useState(!1);return(0,o.jsx)("section",{className:"card",children:(0,o.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch",children:[i&&(0,o.jsx)(b.A,{}),(0,o.jsxs)("div",{className:"flex-col items-start",children:[(0,o.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"New Database Information"}),e&&t&&r&&(0,o.jsx)(S.A,{user:e,dbImage:t,setDbImage:r,setLoading:l,query:a})]}),e&&t&&r&&(0,o.jsx)(h.A,{user:e,dbImage:t,setDbImage:r})]})})}function j(){let{query:e,duplicateDb:t,user:r}=c().useContext(v),a=e?.duplicate?(0,o.jsxs)("span",{children:["Duplicate"," ",(0,o.jsx)("a",{href:`/admin/${r?.id}/databases/${t?.db_slug}`,target:"_blank",children:t?.db_name})," ","Database"]}):"Add A New Database";return(0,o.jsxs)(c().Fragment,{children:[(0,o.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,o.jsxs)("div",{className:"flex-wrap",children:[(0,o.jsx)(x.A,{}),(0,o.jsx)("h1",{className:"text-3xl m-0",children:a})]}),(0,o.jsx)(f.A,{user:r})]}),(0,o.jsx)(A,{})]})}var _=r(37195),y=r(71934);let v=c().createContext({});function E({user:e,databases:t,query:r,duplicateDb:a}){let s=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:"Add Database | Datasquirel"}),(0,o.jsx)("meta",{name:"description",content:"Add a database"})]}),[n,i]=c().useState("/images/database-placeholder.png");return(0,o.jsx)(v.Provider,{value:{user:e,databases:t,dbImage:n,setDbImage:i,query:r,duplicateDb:a},children:(0,o.jsxs)(c().Fragment,{children:[(0,o.jsx)(m.A,{head:s,user:e,children:(0,o.jsx)(j,{})}),(0,o.jsx)(_.A,{setDbImage:i})]})})}async function M({req:e,res:t,query:r}){let a=await (0,p.A)(e,t);if(!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};if(!a?.verification_status?.toString()?.match(/1/))return{redirect:{destination:"/admin",permanent:!1}};let s=await (0,g.A)(`SELECT SCHEMA_NAME AS dbFullName FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME LIKE 'user_${a.id}%'`),n={};if(r.duplicate){let e=await (0,y.A)(`SELECT * FROM user_databases WHERE db_full_name='${r.duplicate}'`);e&&e[0]&&(n=e[0])}return{props:{user:a,databases:s,query:r,duplicateDb:n}}}let P=(0,i.M)(a,"default"),q=(0,i.M)(a,"getStaticProps"),D=(0,i.M)(a,"getStaticPaths"),N=(0,i.M)(a,"getServerSideProps"),w=(0,i.M)(a,"config"),R=(0,i.M)(a,"reportWebVitals"),$=(0,i.M)(a,"unstable_getStaticProps"),C=(0,i.M)(a,"unstable_getStaticPaths"),F=(0,i.M)(a,"unstable_getStaticParams"),I=(0,i.M)(a,"unstable_getServerProps"),O=(0,i.M)(a,"unstable_getServerSideProps"),H=new s.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/admin/[user_id]/databases/add-database",pathname:"/admin/[user_id]/databases/add-database",bundlePath:"",filename:""},components:{App:d.default,Document:l.default},userland:a})},59023:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(8732),s=r(23293);function n(){return(0,a.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,a.jsx)(s.A,{})})}r(82015)},19134:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(29021),s=r.n(a),n=r(77047);async function i(e){let t;"production".match(/dev/)&&s().appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{t=await function(...e){let t=global.DSQL_DB_CONN;try{return new Promise((r,a)=>{t.query(...e).then(e=>{t.end(),r(JSON.parse(JSON.stringify(e)))}).catch(e=>{t.end(),r({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}(e)}catch(e){(0,n.A)({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return t||null}},77047:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(29021),s=r.n(a);async function n({user:e,message:t,component:r,noMail:a,req:n}){let i=new Date,l=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],t=n.headers["x-real-ip"],r=n.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=r||a||t||n.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR ===========================
|
||||
Error Message: ${t}
|
||||
Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=`
|
||||
User Id: ${e?.id}
|
||||
|
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
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
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
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2025 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/40a7197d287e4ac0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/40a7197d287e4ac0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-5381863dc66a9c32.js" defer=""></script><script src="/_next/static/chunks/framework-5f43af1a76a0211a.js" defer=""></script><script src="/_next/static/chunks/main-96e9b4333635008a.js" defer=""></script><script src="/_next/static/chunks/pages/_app-f20525907c2f070a.js" defer=""></script><script src="/_next/static/chunks/pages/blog-8c70d46c8352664e.js" defer=""></script><script src="/_next/static/hgCuuxNPs7UC1FUl37eUz/_buildManifest.js" defer=""></script><script src="/_next/static/hgCuuxNPs7UC1FUl37eUz/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/blog","query":{},"buildId":"hgCuuxNPs7UC1FUl37eUz","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2025 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/40a7197d287e4ac0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/40a7197d287e4ac0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-5381863dc66a9c32.js" defer=""></script><script src="/_next/static/chunks/framework-5f43af1a76a0211a.js" defer=""></script><script src="/_next/static/chunks/main-96e9b4333635008a.js" defer=""></script><script src="/_next/static/chunks/pages/_app-f20525907c2f070a.js" defer=""></script><script src="/_next/static/chunks/pages/blog-8c70d46c8352664e.js" defer=""></script><script src="/_next/static/0Tj60KlCbOC34qhw2O05f/_buildManifest.js" defer=""></script><script src="/_next/static/0Tj60KlCbOC34qhw2O05f/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/blog","query":{},"buildId":"0Tj60KlCbOC34qhw2O05f","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
@ -1 +1 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2025 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/40a7197d287e4ac0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/40a7197d287e4ac0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-5381863dc66a9c32.js" defer=""></script><script src="/_next/static/chunks/framework-5f43af1a76a0211a.js" defer=""></script><script src="/_next/static/chunks/main-96e9b4333635008a.js" defer=""></script><script src="/_next/static/chunks/pages/_app-f20525907c2f070a.js" defer=""></script><script src="/_next/static/chunks/pages/contact-f2a4f3c2e97b25fb.js" defer=""></script><script src="/_next/static/hgCuuxNPs7UC1FUl37eUz/_buildManifest.js" defer=""></script><script src="/_next/static/hgCuuxNPs7UC1FUl37eUz/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/contact","query":{},"buildId":"hgCuuxNPs7UC1FUl37eUz","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2025 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/40a7197d287e4ac0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/40a7197d287e4ac0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-5381863dc66a9c32.js" defer=""></script><script src="/_next/static/chunks/framework-5f43af1a76a0211a.js" defer=""></script><script src="/_next/static/chunks/main-96e9b4333635008a.js" defer=""></script><script src="/_next/static/chunks/pages/_app-f20525907c2f070a.js" defer=""></script><script src="/_next/static/chunks/pages/contact-f2a4f3c2e97b25fb.js" defer=""></script><script src="/_next/static/0Tj60KlCbOC34qhw2O05f/_buildManifest.js" defer=""></script><script src="/_next/static/0Tj60KlCbOC34qhw2O05f/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/contact","query":{},"buildId":"0Tj60KlCbOC34qhw2O05f","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2025 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/40a7197d287e4ac0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/40a7197d287e4ac0.css" data-n-g=""/><link rel="preload" href="/_next/static/css/60c48dd4b3301227.css" as="style"/><link rel="stylesheet" href="/_next/static/css/60c48dd4b3301227.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-5381863dc66a9c32.js" defer=""></script><script src="/_next/static/chunks/framework-5f43af1a76a0211a.js" defer=""></script><script src="/_next/static/chunks/main-96e9b4333635008a.js" defer=""></script><script src="/_next/static/chunks/pages/_app-f20525907c2f070a.js" defer=""></script><script src="/_next/static/chunks/3298-73758aefe44233a6.js" defer=""></script><script src="/_next/static/chunks/pages/index-d8f75819eb449ffc.js" defer=""></script><script src="/_next/static/hgCuuxNPs7UC1FUl37eUz/_buildManifest.js" defer=""></script><script src="/_next/static/hgCuuxNPs7UC1FUl37eUz/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"hgCuuxNPs7UC1FUl37eUz","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2025 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/40a7197d287e4ac0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/40a7197d287e4ac0.css" data-n-g=""/><link rel="preload" href="/_next/static/css/60c48dd4b3301227.css" as="style"/><link rel="stylesheet" href="/_next/static/css/60c48dd4b3301227.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-5381863dc66a9c32.js" defer=""></script><script src="/_next/static/chunks/framework-5f43af1a76a0211a.js" defer=""></script><script src="/_next/static/chunks/main-96e9b4333635008a.js" defer=""></script><script src="/_next/static/chunks/pages/_app-f20525907c2f070a.js" defer=""></script><script src="/_next/static/chunks/3298-73758aefe44233a6.js" defer=""></script><script src="/_next/static/chunks/pages/index-d8f75819eb449ffc.js" defer=""></script><script src="/_next/static/0Tj60KlCbOC34qhw2O05f/_buildManifest.js" defer=""></script><script src="/_next/static/0Tj60KlCbOC34qhw2O05f/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"0Tj60KlCbOC34qhw2O05f","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
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 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2025 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/40a7197d287e4ac0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/40a7197d287e4ac0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-5381863dc66a9c32.js" defer=""></script><script src="/_next/static/chunks/framework-5f43af1a76a0211a.js" defer=""></script><script src="/_next/static/chunks/main-96e9b4333635008a.js" defer=""></script><script src="/_next/static/chunks/pages/_app-f20525907c2f070a.js" defer=""></script><script src="/_next/static/chunks/pages/redirect-28627072d73850c2.js" defer=""></script><script src="/_next/static/hgCuuxNPs7UC1FUl37eUz/_buildManifest.js" defer=""></script><script src="/_next/static/hgCuuxNPs7UC1FUl37eUz/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div class="flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100"><div class="flex flex-col items-center justify-center gap-4 px-6 py-20 bg-white rounded shadow-sm max-w-2xl w-full"><img src="/images/logo-icon-alt-2.webp" alt="Datasquirel Logo" width="60"/><div class="w-10 h-10 flex flex-col items-center justify-center"><div class=" top-0 left-0 w-full h-full flex items-center justify-center gap-4 bg-white/80 dark:bg-slate-800/80 z-50 absolute" style="position:relative;z-index:20000"><span class="general_loader" style="width:25px;height:25px;min-width:25px;border-width:4px"></span></div></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/redirect","query":{},"buildId":"hgCuuxNPs7UC1FUl37eUz","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2025 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/40a7197d287e4ac0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/40a7197d287e4ac0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-5381863dc66a9c32.js" defer=""></script><script src="/_next/static/chunks/framework-5f43af1a76a0211a.js" defer=""></script><script src="/_next/static/chunks/main-96e9b4333635008a.js" defer=""></script><script src="/_next/static/chunks/pages/_app-f20525907c2f070a.js" defer=""></script><script src="/_next/static/chunks/pages/redirect-28627072d73850c2.js" defer=""></script><script src="/_next/static/0Tj60KlCbOC34qhw2O05f/_buildManifest.js" defer=""></script><script src="/_next/static/0Tj60KlCbOC34qhw2O05f/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div class="flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100"><div class="flex flex-col items-center justify-center gap-4 px-6 py-20 bg-white rounded shadow-sm max-w-2xl w-full"><img src="/images/logo-icon-alt-2.webp" alt="Datasquirel Logo" width="60"/><div class="w-10 h-10 flex flex-col items-center justify-center"><div class=" top-0 left-0 w-full h-full flex items-center justify-center gap-4 bg-white/80 dark:bg-slate-800/80 z-50 absolute" style="position:relative;z-index:20000"><span class="general_loader" style="width:25px;height:25px;min-width:25px;border-width:4px"></span></div></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/redirect","query":{},"buildId":"0Tj60KlCbOC34qhw2O05f","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
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
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 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[431],{2444:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/media/[...folder]",function(){return t(9478)}])},5844:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var r=t(4848),l=t(7216);function i(){return(0,r.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,r.jsx)(l.A,{})})}t(6540)},7220:(e,s,t)=>{"use strict";t.d(s,{A:()=>r});let r=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9478:(e,s,t)=>{"use strict";t.r(s),t.d(s,{MediaContext:()=>v,__N_SSP:()=>g,default:()=>_});var r=t(4848),l=t(6540),i=t(8181),a=t(3142),n=t(1828),d=t(1923),o=t(6217),c=t(5844),u=t(3647),x=t(5655),j=t(18),h=t(5094),p=t(900),m=t(7220);function f(e){var s;let{media:t,setTargetMedia:i,user:a,folders:n,query:d,staticHost:o,folder:f}=l.useContext(v);return(0,r.jsxs)(l.Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(c.A,{}),(0,r.jsx)(m.A,{size:20}),(0,r.jsx)("h1",{className:"text-3xl m-0",children:d.folder[d.folder.length-1]})]}),(0,r.jsxs)(p.A,{children:[(0,r.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,x.PB)("choose-media-type-popoup")},children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add Media"})]}),(0,r.jsxs)("button",{className:"flex items-center gap-2 outlined gray",onClick:e=>{(0,x.PB)("add-folder-popoup",e=>{var s;null==e||null===(s=e.querySelector("input"))||void 0===s||s.focus()})},children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add Folder"})]})]})]}),(0,r.jsx)(u.A,{user:a})]}),(null==a?void 0:null===(s=a.verification_status)||void 0===s?void 0:s.toString().match(/1/))?(0,r.jsxs)(l.Fragment,{children:[(0,r.jsx)(h.A,{media:t,setTargetMedia:i,folders:n,folder:f,staticHost:o,user:a}),t&&t[0]&&(0,r.jsxs)("a",{className:"border-dotted border-slate-400 border-2 px-4 py-3 w-full rounded flex items-center hover:border-primary/50 gap-2 cursor-pointer justify-center",onClick:e=>{(0,x.PB)("choose-media-type-popoup")},children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{className:"",children:"Add Media"})]})]}):(0,r.jsx)(j.A,{})]})}var w=t(431),N=t(1720),A=t(1710),y=t(9200),g=!0;let v=l.createContext({});function _(e){let{user:s,media:t,folders:c,query:u,staticHost:x,folderNameFull:j}=e,h=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[p,m]=l.useState(null),[g,_]=l.useState(null),[b,k]=l.useState(null),[C,M]=l.useState(!1),[F,S]=l.useState(null);return(0,r.jsx)(v.Provider,{value:{user:s,media:t,targetMedia:F,setTargetMedia:S,folders:c,query:u,staticHost:x,folder:j},children:(0,r.jsxs)(l.Fragment,{children:[(0,r.jsxs)(i.A,{head:h,user:s,children:[C&&(0,r.jsx)(A.A,{screen:!0,title:"Processing Files ..."}),(0,r.jsx)(f,{}),(0,r.jsx)(a.A,{setNewMedia:m,setLoading:M}),(0,r.jsx)(w.A,{setNewFile:_,setLoading:M}),(0,r.jsx)(y.A,{setNewVideo:k,setLoading:M})]}),(0,r.jsx)(n.A,{newMedia:p,setNewMedia:m,newFile:g,setNewFile:_,folder:j,newVideo:b,setNewVideo:k}),(0,r.jsx)(d.A,{targetMedia:F,staticHost:x,setTargetMedia:S,media:t}),(0,r.jsx)(o.A,{folder:j}),(0,r.jsx)(N.A,{user:s})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[8261,7391,2480,636,6593,8792],()=>s(2444)),_N_E=e.O()}]);
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[431],{2444:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/media/[...folder]",function(){return t(7097)}])},5844:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var r=t(4848),l=t(7216);function i(){return(0,r.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,r.jsx)(l.A,{})})}t(6540)},7220:(e,s,t)=>{"use strict";t.d(s,{A:()=>r});let r=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7097:(e,s,t)=>{"use strict";t.r(s),t.d(s,{MediaContext:()=>v,__N_SSP:()=>g,default:()=>_});var r=t(4848),l=t(6540),i=t(8181),a=t(3142),n=t(1828),d=t(1923),o=t(6217),c=t(5844),u=t(3647),x=t(5655),j=t(18),h=t(5094),p=t(900),m=t(7220);function f(e){var s;let{media:t,setTargetMedia:i,user:a,folders:n,query:d,staticHost:o,folder:f}=l.useContext(v);return(0,r.jsxs)(l.Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(c.A,{}),(0,r.jsx)(m.A,{size:20}),(0,r.jsx)("h1",{className:"text-3xl m-0",children:d.folder[d.folder.length-1]})]}),(0,r.jsxs)(p.A,{children:[(0,r.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,x.PB)("choose-media-type-popoup")},children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add Media"})]}),(0,r.jsxs)("button",{className:"flex items-center gap-2 outlined gray",onClick:e=>{(0,x.PB)("add-folder-popoup",e=>{var s;null==e||null===(s=e.querySelector("input"))||void 0===s||s.focus()})},children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add Folder"})]})]})]}),(0,r.jsx)(u.A,{user:a})]}),(null==a?void 0:null===(s=a.verification_status)||void 0===s?void 0:s.toString().match(/1/))?(0,r.jsxs)(l.Fragment,{children:[(0,r.jsx)(h.A,{media:t,setTargetMedia:i,folders:n,folder:f,staticHost:o,user:a}),t&&t[0]&&(0,r.jsxs)("a",{className:"border-dotted border-slate-400 border-2 px-4 py-3 w-full rounded flex items-center hover:border-primary/50 gap-2 cursor-pointer justify-center",onClick:e=>{(0,x.PB)("choose-media-type-popoup")},children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{className:"",children:"Add Media"})]})]}):(0,r.jsx)(j.A,{})]})}var w=t(431),N=t(1720),A=t(1710),y=t(9200),g=!0;let v=l.createContext({});function _(e){let{user:s,media:t,folders:c,query:u,staticHost:x,folderNameFull:j}=e,h=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[p,m]=l.useState(null),[g,_]=l.useState(null),[b,k]=l.useState(null),[C,M]=l.useState(!1),[F,S]=l.useState(null);return(0,r.jsx)(v.Provider,{value:{user:s,media:t,targetMedia:F,setTargetMedia:S,folders:c,query:u,staticHost:x,folder:j},children:(0,r.jsxs)(l.Fragment,{children:[(0,r.jsxs)(i.A,{head:h,user:s,children:[C&&(0,r.jsx)(A.A,{screen:!0,title:"Processing Files ..."}),(0,r.jsx)(f,{}),(0,r.jsx)(a.A,{setNewMedia:m,setLoading:M}),(0,r.jsx)(w.A,{setNewFile:_,setLoading:M}),(0,r.jsx)(y.A,{setNewVideo:k,setLoading:M})]}),(0,r.jsx)(n.A,{newMedia:p,setNewMedia:m,newFile:g,setNewFile:_,folder:j,newVideo:b,setNewVideo:k}),(0,r.jsx)(d.A,{targetMedia:F,staticHost:x,setTargetMedia:S,media:t}),(0,r.jsx)(o.A,{folder:j}),(0,r.jsx)(N.A,{user:s})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[8261,7391,2480,636,6593,8792],()=>s(2444)),_N_E=e.O()}]);
|
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7122],{5692:(e,o,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/logout",function(){return t(732)}])},8639:(e,o,t)=>{"use strict";async function i(){try{let e=await caches.keys();e[0]&&await Promise.all(e.map(e=>caches.delete(e)))}catch(e){console.log("Error in clearing cache =>",e.message)}}t.d(o,{A:()=>i})},732:(e,o,t)=>{"use strict";t.r(o),t.d(o,{__N_SSP:()=>d,default:()=>g});var i=t(4848),n=t(6540),s=t(3368),l=t.n(s),a=t(9020),c=t(8639),r=t(1710),d=!0;function g(e){let{user:o,query:t}=e,s=(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)("title",{children:"Loging Out | Datasquirel"}),(0,i.jsx)("meta",{name:"description",content:"Login you out"}),(0,i.jsx)("script",{src:"https://accounts.google.com/gsi/client"}),(0,i.jsx)("script",{src:"https://connect.facebook.net/en_US/sdk.js",crossOrigin:"anonymous"})]});return n.useEffect(()=>{localStorage.removeItem("user"),localStorage.removeItem("csrf")},[]),n.useEffect(()=>{function e(){var e,i;return(null==t?void 0:t.invite)&&(null==t?void 0:t.login)?window.location.href="/login"+window.location.search:(null==t?void 0:t.login)||(null===(e=localStorage.getItem("logoutParadigm"))||void 0===e?void 0:e.match(/reset/))?window.location.href="/login":void((null==o?void 0:null===(i=o.social_platform)||void 0===i?void 0:i.match(/google/))&&localStorage.setItem("google_prompt_skipped","logout"),window.location.pathname="/")}(0,a.A)("/api/logoutUser").then(async t=>{await (0,c.A)();let i=await navigator.serviceWorker.getRegistrations();for(let e=0;e<i.length;e++){let o=i[e];await o.unregister()}let n=window.FB,s=window.google;try{n.init({appId:"",cookie:!0,xfbml:!0,version:"v13.0"}),n.getLoginStatus(t=>{if(t.authResponse)n.logout(()=>{e()});else{var i;s.accounts.id.initialize({client_id:""}),(null==o?void 0:null===(i=o.social_platform)||void 0===i?void 0:i.match(/google/))&&o.social_id?(s.accounts.id.revoke(),s.accounts.id.revoke(o.social_id,o=>{console.log(o.error),e()})):e()}})}catch(e){(0,a.A)("/api/admin/clientError",{method:"post",body:{component:"logout-page-component/lines-111-142",message:e.message,user:o}})}})},[]),(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)(l(),{children:s}),(0,i.jsx)("main",{className:"w-screen h-screen flex items-center justify-center p-4 md:p-8",children:(0,i.jsxs)("div",{className:"card max-w-md flex-col items-center bg-white p-6 rounded border border-slate-200 border-solid",children:[(0,i.jsxs)("a",{href:"/",className:"flex items-center gap-2",children:[(0,i.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37}),(0,i.jsx)("span",{className:"font-bold text-2xl",children:"Datasquirel"})]}),(0,i.jsx)("h3",{className:"text-lg m-0 mt-4 text-slate-400",children:"Logging out"}),(0,i.jsx)(r.A,{position:"relative",width:"20px"})]})})]})}}},e=>{var o=o=>e(e.s=o);e.O(0,[636,6593,8792],()=>o(5692)),_N_E=e.O()}]);
|
@ -1 +0,0 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7122],{5692:(e,o,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/logout",function(){return t(732)}])},8639:(e,o,t)=>{"use strict";async function i(){try{let e=await caches.keys();e[0]&&await Promise.all(e.map(e=>caches.delete(e)))}catch(e){console.log("Error in clearing cache =>",e.message)}}t.d(o,{A:()=>i})},732:(e,o,t)=>{"use strict";t.r(o),t.d(o,{__N_SSP:()=>d,default:()=>g});var i=t(4848),s=t(6540),n=t(3368),l=t.n(n),a=t(9020),c=t(8639),r=t(1710),d=!0;function g(e){let{user:o,query:t}=e,n=(0,i.jsxs)(s.Fragment,{children:[(0,i.jsx)("title",{children:"Loging Out | Datasquirel"}),(0,i.jsx)("meta",{name:"description",content:"Login you out"}),(0,i.jsx)("script",{src:"https://accounts.google.com/gsi/client"}),(0,i.jsx)("script",{src:"https://connect.facebook.net/en_US/sdk.js",crossOrigin:"anonymous"})]});return s.useEffect(()=>{localStorage.setItem("user","{}"),localStorage.removeItem("csrf")},[]),s.useEffect(()=>{function e(){var e,i;return(null==t?void 0:t.invite)&&(null==t?void 0:t.login)?window.location.href="/login"+window.location.search:(null==t?void 0:t.login)||(null===(e=localStorage.getItem("logoutParadigm"))||void 0===e?void 0:e.match(/reset/))?window.location.href="/login":void((null==o?void 0:null===(i=o.social_platform)||void 0===i?void 0:i.match(/google/))&&localStorage.setItem("google_prompt_skipped","logout"),window.location.pathname="/")}(0,a.A)("/api/logoutUser").then(async t=>{await (0,c.A)();let i=await navigator.serviceWorker.getRegistrations();for(let e=0;e<i.length;e++){let o=i[e];await o.unregister()}let s=window.FB,n=window.google;try{s.init({appId:"",cookie:!0,xfbml:!0,version:"v13.0"}),s.getLoginStatus(t=>{if(t.authResponse)s.logout(()=>{e()});else{var i;n.accounts.id.initialize({client_id:""}),(null==o?void 0:null===(i=o.social_platform)||void 0===i?void 0:i.match(/google/))&&o.social_id?(n.accounts.id.revoke(),n.accounts.id.revoke(o.social_id,o=>{console.log(o.error),e()})):e()}})}catch(e){(0,a.A)("/api/admin/clientError",{method:"post",body:{component:"logout-page-component/lines-111-142",message:e.message,user:o}})}})},[]),(0,i.jsxs)(s.Fragment,{children:[(0,i.jsx)(l(),{children:n}),(0,i.jsx)("main",{className:"w-screen h-screen flex items-center justify-center p-4 md:p-8",children:(0,i.jsxs)("div",{className:"card max-w-md flex-col items-center bg-white p-6 rounded border border-slate-200 border-solid",children:[(0,i.jsxs)("a",{href:"/",className:"flex items-center gap-2",children:[(0,i.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37}),(0,i.jsx)("span",{className:"font-bold text-2xl",children:"Datasquirel"})]}),(0,i.jsx)("h3",{className:"text-lg m-0 mt-4 text-slate-400",children:"Logging out"}),(0,i.jsx)(r.A,{position:"relative",width:"20px"})]})})]})}}},e=>{var o=o=>e(e.s=o);e.O(0,[636,6593,8792],()=>o(5692)),_N_E=e.O()}]);
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
import fs from "fs";
|
||||
import serverError from "./serverError";
|
||||
import NO_DB_HANDLER from "@/package-shared/utils/backend/global-db/NO_DB_HANDLER";
|
||||
import NO_DB_HANDLER from "../../utils/backend/global-db/NO_DB_HANDLER";
|
||||
|
||||
/**
|
||||
* # No Database DB Handler
|
||||
|
Loading…
Reference in New Issue
Block a user