Updates
This commit is contained in:
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 +0,0 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2564],{19107:(_,n,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases",function(){return s(98471)}])}},_=>{var n=n=>_(_.s=n);_.O(0,[9799,8866,7538,636,6593,8792],()=>n(19107)),_N_E=_.O()}]);
|
||||
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2564],{9107:(_,n,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases",function(){return s(8471)}])}},_=>{var n=n=>_(_.s=n);_.O(0,[9799,3616,636,6593,8792],()=>n(9107)),_N_E=_.O()}]);
|
||||
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
-1
@@ -1 +0,0 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9718],{80370:(e,a,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/add-database",function(){return n(87810)}])},99862:(e,a,n)=>{"use strict";n.d(a,{A:()=>t});var l=n(74848);n(96540);var s=n(86625);function t(){return(0,l.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,l.jsx)(s.A,{color:"inherit",className:"opacity-50 text-black",fontSize:"small"})})}},45165:(e,a,n)=>{"use strict";n.d(a,{Ay:()=>c,PB:()=>i,fs:()=>o});var l=n(74848),s=n(76897),t=n(96540);function c(e){let{children:a,title:n,data:c,fullPage:i,wrapperClasses:d,closePopupDispatch:r,wrapperStyle:u,noContainer:p}=e;return i?(0,l.jsxs)("div",{className:"popup-bg overflow-hidden "+(d||""),"data-popupid":n||null,style:u,children:[p?(0,l.jsx)(t.Fragment,{children:a}):(0,l.jsx)("div",{className:"relative w-full h-full z-50","data-data":c?JSON.stringify(c):"",children:a}),(0,l.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{o(),r&&r()},children:(0,l.jsx)(s.A,{color:"white",size:20})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),r&&r()}})]}):(0,l.jsxs)("div",{className:"popup-bg","data-popupid":n||null,children:[p?(0,l.jsx)(t.Fragment,{children:a}):(0,l.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":c?JSON.stringify(c):"",children:[a,(0,l.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{o(),r&&r()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})})]}),p&&(0,l.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{o(),r&&r()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),r&&r()}})]})}function i(e,a){let n=document.querySelector("[data-popupid='".concat(e,"']"));n&&(n.style.display="flex",a&&a(n))}function o(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e&&e()}},94909:(e,a,n)=>{"use strict";n.d(a,{A:()=>l});let l=(0,n(95737).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])}},e=>{var a=a=>e(e.s=a);e.O(0,[1570,9799,5414,5160,3293,636,6593,8792],()=>a(80370)),_N_E=e.O()}]);
|
||||
+1
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9718],{370:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/add-database",function(){return a(7810)}])},9862:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(4848),l=a(7216);function n(){return(0,s.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,s.jsx)(l.A,{})})}a(6540)},5165:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>r,PB:()=>o,fs:()=>i});var s=a(4848),l=a(6897),n=a(6540);function r(e){let{children:t,title:a,data:r,fullPage:o,wrapperClasses:d,closePopupDispatch:c,wrapperStyle:u,noContainer:p}=e;return o?(0,s.jsxs)("div",{className:"popup-bg overflow-hidden "+(d||""),"data-popupid":a||null,style:u,children:[p?(0,s.jsx)(n.Fragment,{children:t}):(0,s.jsx)("div",{className:"relative w-full h-full z-50","data-data":r?JSON.stringify(r):"",children:t}),(0,s.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{i(),c&&c()},children:(0,s.jsx)(l.A,{color:"white",size:20})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{i(),c&&c()}})]}):(0,s.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[p?(0,s.jsx)(n.Fragment,{children:t}):(0,s.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":r?JSON.stringify(r):"",children:[t,(0,s.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{i(),c&&c()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})})]}),p&&(0,s.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{i(),c&&c()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{i(),c&&c()}})]})}function o(e,t){let a=document.querySelector("[data-popupid='".concat(e,"']"));a&&(a.style.display="flex",t&&t(a))}function i(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e&&e()}},557:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(4848),l=a(6540);function n(e){let{children:t,column:a,className:n}=e,r=l.useRef();return l.useEffect(()=>{try{let e=r.current.childNodes,t=Array.from(e);if((null==t?void 0:t.length)===1)return;t.forEach((e,s)=>{let l=e;if(l.classList.contains("dropdown-wrapper")){let t=Array.from(e.childNodes).filter(e=>{var t;return(null==e?void 0:null===(t=e.nodeName)||void 0===t?void 0:t.match(/button/i))||e.classList.contains("button")});t&&t[0]&&(l=t[0])}s<t.length-1&&(l.style[a?"borderBottomRightRadius":"borderTopRightRadius"]=0,l.style[a?"borderBottomLeftRadius":"borderBottomRightRadius"]=0),s>0&&(l.style[a?"borderTop":"borderLeft"]="none",l.style[a?"borderTopRightRadius":"borderTopLeftRadius"]=0,l.style[a?"borderTopLeftRadius":"borderBottomLeftRadius"]=0)})}catch(e){console.log(e.message)}},[]),(0,s.jsx)("div",{className:"items-stretch gap-0"+(a?" flex-col":" flex-wrap xl:flex-nowrap")+(n?" "+n:""),ref:r,children:t})}},4909:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])}},e=>{var t=t=>e(e.s=t);e.O(0,[1570,9799,5414,5160,6052,636,6593,8792],()=>t(370)),_N_E=e.O()}]);
|
||||
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9326],{4299:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/media",function(){return t(6636)}])},6636:(e,s,t)=>{"use strict";t.r(s),t.d(s,{MediaContext:()=>g,__N_SSP:()=>_,default:()=>A});var a=t(4848),i=t(6540),l=t(1187),r=t(4709),n=t(5165),d=t(5624),o=t(7651),c=t(557);function u(e){var s;let{media:t,setTargetMedia:l,user:u,folders:x,staticHost:j}=i.useContext(g);return(0,a.jsxs)(i.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,a.jsx)("h1",{className:"text-3xl m-0",children:"Media"}),(0,a.jsxs)(c.A,{children:[(0,a.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,n.PB)("choose-media-type-popoup")},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add Media"})]}),(0,a.jsxs)("button",{className:"flex items-center gap-2 outlined gray",onClick:e=>{(0,n.PB)("add-folder-popoup")},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add Folder"})]})]})]}),(0,a.jsx)(r.A,{user:u})]}),(null==u?void 0:null===(s=u.verification_status)||void 0===s?void 0:s.toString().match(/1/))?(0,a.jsxs)(i.Fragment,{children:[(0,a.jsx)(o.A,{media:t,setTargetMedia:l,folders:x,staticHost:j,user:u}),t&&t[0]&&(0,a.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,n.PB)("choose-media-type-popoup")},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{className:"",children:"Add Media"})]})]}):(0,a.jsx)(d.A,{})]})}var x=t(7764),j=t(6093),p=t(4003),m=t(5531),h=t(1493),N=t(5001),w=t(620),f=t(2154),_=!0;let g=i.createContext({});function A(e){let{user:s,media:t,folders:r,staticHost:n}=e,d=(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"})]}),[o,c]=i.useState(null),[_,A]=i.useState(null),[b,v]=i.useState(null),[y,M]=i.useState(!1),[C,F]=i.useState(null);return(0,a.jsx)(l.A,{head:d,user:s,children:(0,a.jsxs)(g.Provider,{value:{user:s,media:t,targetMedia:C,setTargetMedia:F,folders:r,staticHost:n},children:[y&&(0,a.jsx)(w.A,{screen:!0,title:"Processing Files ..."}),(0,a.jsx)(u,{}),(0,a.jsx)(x.A,{setNewMedia:c,setLoading:M}),(0,a.jsx)(h.A,{setNewFile:A,setLoading:M}),(0,a.jsx)(f.A,{setNewVideo:v,setLoading:M}),(0,a.jsx)(j.A,{newMedia:o,setNewMedia:c,newFile:_,setNewFile:A,newVideo:b,setNewVideo:v}),(0,a.jsx)(p.A,{targetMedia:C,setTargetMedia:F,staticHost:n,media:t}),(0,a.jsx)(m.A,{}),(0,a.jsx)(N.A,{user:s})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[9799,5256,636,6593,8792],()=>s(4299)),_N_E=e.O()}]);
|
||||
@@ -1 +0,0 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9326],{54299:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/media",function(){return t(26636)}])},26636:(e,s,t)=>{"use strict";t.r(s),t.d(s,{MediaContext:()=>g,__N_SSP:()=>_,default:()=>A});var a=t(74848),i=t(96540),l=t(51187),r=t(4709),n=t(45165),d=t(55624),o=t(53301),c=t(60557);function u(e){var s;let{media:t,setTargetMedia:l,user:u,folders:x,staticHost:j}=i.useContext(g);return(0,a.jsxs)(i.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,a.jsx)("h1",{className:"text-3xl m-0",children:"Media"}),(0,a.jsxs)(c.A,{children:[(0,a.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,n.PB)("choose-media-type-popoup")},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add Media"})]}),(0,a.jsxs)("button",{className:"flex items-center gap-2 outlined gray",onClick:e=>{(0,n.PB)("add-folder-popoup")},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add Folder"})]})]})]}),(0,a.jsx)(r.A,{user:u})]}),(null==u?void 0:null===(s=u.verification_status)||void 0===s?void 0:s.toString().match(/1/))?(0,a.jsxs)(i.Fragment,{children:[(0,a.jsx)(o.A,{media:t,setTargetMedia:l,folders:x,staticHost:j,user:u}),t&&t[0]&&(0,a.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,n.PB)("choose-media-type-popoup")},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{className:"",children:"Add Media"})]})]}):(0,a.jsx)(d.A,{})]})}var x=t(67764),j=t(45332),p=t(84003),m=t(5531),h=t(11493),N=t(65001),w=t(620),f=t(22154),_=!0;let g=i.createContext({});function A(e){let{user:s,media:t,folders:r,staticHost:n}=e,d=(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"})]}),[o,c]=i.useState(null),[_,A]=i.useState(null),[b,v]=i.useState(null),[y,M]=i.useState(!1),[C,F]=i.useState(null);return(0,a.jsx)(l.A,{head:d,user:s,children:(0,a.jsxs)(g.Provider,{value:{user:s,media:t,targetMedia:C,setTargetMedia:F,folders:r,staticHost:n},children:[y&&(0,a.jsx)(w.A,{screen:!0,title:"Processing Files ..."}),(0,a.jsx)(u,{}),(0,a.jsx)(x.A,{setNewMedia:c,setLoading:M}),(0,a.jsx)(h.A,{setNewFile:A,setLoading:M}),(0,a.jsx)(f.A,{setNewVideo:v,setLoading:M}),(0,a.jsx)(j.A,{newMedia:o,setNewMedia:c,newFile:_,setNewFile:A,newVideo:b,setNewVideo:v}),(0,a.jsx)(p.A,{targetMedia:C,setTargetMedia:F,staticHost:n,media:t}),(0,a.jsx)(m.A,{}),(0,a.jsx)(N.A,{user:s})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[9799,4750,636,6593,8792],()=>s(54299)),_N_E=e.O()}]);
|
||||
+1
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[431],{9186:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/media/[...folder]",function(){return t(2691)}])},9862:(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"}]])},2691:(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(1187),a=t(7764),d=t(6093),n=t(4003),o=t(5531),c=t(9862),u=t(4709),x=t(5165),j=t(5624),h=t(7651),p=t(557),m=t(7220);function f(e){var s;let{media:t,setTargetMedia:i,user:a,folders:d,query:n,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:n.folder[n.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:d,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(1493),N=t(5001),A=t(620),y=t(2154),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),[S,F]=l.useState(null);return(0,r.jsx)(i.A,{head:h,user:s,children:(0,r.jsxs)(v.Provider,{value:{user:s,media:t,targetMedia:S,setTargetMedia:F,folders:c,query:u,staticHost:x,folder:j},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)(d.A,{newMedia:p,setNewMedia:m,newFile:g,setNewFile:_,folder:j,newVideo:b,setNewVideo:k}),(0,r.jsx)(n.A,{targetMedia:S,staticHost:x,setTargetMedia:F,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,[9799,5256,636,6593,8792],()=>s(9186)),_N_E=e.O()}]);
|
||||
-1
@@ -1 +0,0 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[431],{99186:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/media/[...folder]",function(){return t(52691)}])},99862:(e,s,t)=>{"use strict";t.d(s,{A:()=>r});var a=t(74848);t(96540);var l=t(86625);function r(){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)(l.A,{color:"inherit",className:"opacity-50 text-black",fontSize:"small"})})}},86625:(e,s,t)=>{"use strict";var a=t(24994);s.A=void 0;var l=a(t(44888)),r=t(74848);s.A=(0,l.default)((0,r.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded")},52691:(e,s,t)=>{"use strict";t.r(s),t.d(s,{MediaContext:()=>y,__N_SSP:()=>g,default:()=>_});var a=t(74848),l=t(96540),r=t(51187),i=t(67764),n=t(45332),d=t(84003),o=t(5531),c=t(99862),u=t(4709),x=t(45165),j=t(55624),p=t(53301),h=t(60557),m=t(96228);function f(e){var s;let{media:t,setTargetMedia:r,user:i,folders:n,query:d,staticHost:o,folder:f}=l.useContext(y);return(0,a.jsxs)(l.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(c.A,{}),(0,a.jsx)(m.A,{className:"opacity-40"}),(0,a.jsx)("h1",{className:"text-3xl m-0",children:d.folder[d.folder.length-1]})]}),(0,a.jsxs)(h.A,{children:[(0,a.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,x.PB)("choose-media-type-popoup")},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add Media"})]}),(0,a.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,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add Folder"})]})]})]}),(0,a.jsx)(u.A,{user:i})]}),(null==i?void 0:null===(s=i.verification_status)||void 0===s?void 0:s.toString().match(/1/))?(0,a.jsxs)(l.Fragment,{children:[(0,a.jsx)(p.A,{media:t,setTargetMedia:r,folders:n,folder:f,staticHost:o,user:i}),t&&t[0]&&(0,a.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,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{className:"",children:"Add Media"})]})]}):(0,a.jsx)(j.A,{})]})}var N=t(11493),w=t(65001),A=t(620),v=t(22154),g=!0;let y=l.createContext({});function _(e){let{user:s,media:t,folders:c,query:u,staticHost:x,folderNameFull:j}=e,p=(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"})]}),[h,m]=l.useState(null),[g,_]=l.useState(null),[b,k]=l.useState(null),[M,S]=l.useState(!1),[C,F]=l.useState(null);return(0,a.jsx)(r.A,{head:p,user:s,children:(0,a.jsxs)(y.Provider,{value:{user:s,media:t,targetMedia:C,setTargetMedia:F,folders:c,query:u,staticHost:x,folder:j},children:[M&&(0,a.jsx)(A.A,{screen:!0,title:"Processing Files ..."}),(0,a.jsx)(f,{}),(0,a.jsx)(i.A,{setNewMedia:m,setLoading:S}),(0,a.jsx)(N.A,{setNewFile:_,setLoading:S}),(0,a.jsx)(v.A,{setNewVideo:k,setLoading:S}),(0,a.jsx)(n.A,{newMedia:h,setNewMedia:m,newFile:g,setNewFile:_,folder:j,newVideo:b,setNewVideo:k}),(0,a.jsx)(d.A,{targetMedia:C,staticHost:x,setTargetMedia:F,media:t}),(0,a.jsx)(o.A,{folder:j}),(0,a.jsx)(w.A,{user:s})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[9799,4750,636,6593,8792],()=>s(99186)),_N_E=e.O()}]);
|
||||
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
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
@@ -1 +0,0 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3681],{63367:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/users/databases",function(){return a(34222)}])},99862:(e,s,a)=>{"use strict";a.d(s,{A:()=>r});var l=a(74848);a(96540);var t=a(86625);function r(){return(0,l.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,l.jsx)(t.A,{color:"inherit",className:"opacity-50 text-black",fontSize:"small"})})}},45165:(e,s,a)=>{"use strict";a.d(s,{Ay:()=>n,PB:()=>c,fs:()=>i});var l=a(74848),t=a(76897),r=a(96540);function n(e){let{children:s,title:a,data:n,fullPage:c,wrapperClasses:d,closePopupDispatch:o,wrapperStyle:u,noContainer:p}=e;return c?(0,l.jsxs)("div",{className:"popup-bg overflow-hidden "+(d||""),"data-popupid":a||null,style:u,children:[p?(0,l.jsx)(r.Fragment,{children:s}):(0,l.jsx)("div",{className:"relative w-full h-full z-50","data-data":n?JSON.stringify(n):"",children:s}),(0,l.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{i(),o&&o()},children:(0,l.jsx)(t.A,{color:"white",size:20})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{i(),o&&o()}})]}):(0,l.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[p?(0,l.jsx)(r.Fragment,{children:s}):(0,l.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":n?JSON.stringify(n):"",children:[s,(0,l.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{i(),o&&o()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})})]}),p&&(0,l.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{i(),o&&o()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{i(),o&&o()}})]})}function c(e,s){let a=document.querySelector("[data-popupid='".concat(e,"']"));a&&(a.style.display="flex",s&&s(a))}function i(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e&&e()}},86625:(e,s,a)=>{"use strict";var l=a(24994);s.A=void 0;var t=l(a(44888)),r=a(74848);s.A=(0,t.default)((0,r.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded")},94909:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(95737).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},34222:(e,s,a)=>{"use strict";a.r(s),a.d(s,{AllDatabasesUsersContext:()=>p,__N_SSP:()=>u,default:()=>x});var l=a(74848),t=a(96540),r=a(51187),n=a(80443),c=a(4709);function i(e){let{databases:s,user:a}=e;return(0,l.jsx)(t.Fragment,{children:(0,l.jsxs)("section",{className:"p-4 items-start gap-4 overflow-visible",children:[(0,l.jsx)("h2",{className:"text-xl m-0",children:"Database Users"}),(0,l.jsx)("div",{className:"flex flex-wrap gap-6",children:s&&s[0]?s.map((e,s)=>(0,l.jsxs)("a",{href:"/admin/".concat(null==a?void 0:a.id,"/users/databases/").concat(e.db_slug),className:"border border-slate-200 border-solid rounded px-6 py-4 hover:border-primary flex items-center gap-2",children:[(0,l.jsx)("img",{src:e.db_image,className:"w-8 h-8 rounded-full object-cover",alt:""}),e.db_name]},s+1)):(0,l.jsx)("span",{children:"No Databases Yet"})})]})})}var d=a(99862);function o(e){let{databases:s,user:a}=t.useContext(p);return(0,l.jsxs)(t.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.jsxs)("div",{children:[(0,l.jsx)(d.A,{}),(0,l.jsx)("h1",{className:"text-3xl m-0",children:"All Databases Users"})]}),(0,l.jsxs)("a",{href:"/admin/".concat(null==a?void 0:a.id,"/users/add-user"),className:"flex items-center gap-2 whitespace-normal button",children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New User"})]})]}),(0,l.jsx)(c.A,{user:a})]}),(0,l.jsx)(i,{databases:s,user:a})]})}var u=!0;let p=t.createContext({});function x(e){let{user:s,users:a,databases:c}=e,i=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"Users | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[d,u]=t.useState(null),[x,m]=t.useState(null);return(0,l.jsx)(r.A,{head:i,user:s,children:(0,l.jsxs)(p.Provider,{value:{user:s,users:a,targetUser:x,setTargetUser:m,databases:c},children:[(0,l.jsx)(o,{}),(0,l.jsx)(n.A,{targetUser:x,user:s,setTargetUser:m})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[9799,6946,636,6593,8792],()=>s(63367)),_N_E=e.O()}]);
|
||||
+1
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3681],{3367:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/users/databases",function(){return a(4222)}])},9862:(e,s,a)=>{"use strict";a.d(s,{A:()=>n});var l=a(4848),t=a(7216);function n(){return(0,l.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,l.jsx)(t.A,{})})}a(6540)},5165:(e,s,a)=>{"use strict";a.d(s,{Ay:()=>r,PB:()=>c,fs:()=>i});var l=a(4848),t=a(6897),n=a(6540);function r(e){let{children:s,title:a,data:r,fullPage:c,wrapperClasses:d,closePopupDispatch:o,wrapperStyle:u,noContainer:p}=e;return c?(0,l.jsxs)("div",{className:"popup-bg overflow-hidden "+(d||""),"data-popupid":a||null,style:u,children:[p?(0,l.jsx)(n.Fragment,{children:s}):(0,l.jsx)("div",{className:"relative w-full h-full z-50","data-data":r?JSON.stringify(r):"",children:s}),(0,l.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{i(),o&&o()},children:(0,l.jsx)(t.A,{color:"white",size:20})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{i(),o&&o()}})]}):(0,l.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[p?(0,l.jsx)(n.Fragment,{children:s}):(0,l.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":r?JSON.stringify(r):"",children:[s,(0,l.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{i(),o&&o()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})})]}),p&&(0,l.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{i(),o&&o()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{i(),o&&o()}})]})}function c(e,s){let a=document.querySelector("[data-popupid='".concat(e,"']"));a&&(a.style.display="flex",s&&s(a))}function i(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e&&e()}},4909:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(5737).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},4222:(e,s,a)=>{"use strict";a.r(s),a.d(s,{AllDatabasesUsersContext:()=>p,__N_SSP:()=>u,default:()=>x});var l=a(4848),t=a(6540),n=a(1187),r=a(443),c=a(4709);function i(e){let{databases:s,user:a}=e;return(0,l.jsx)(t.Fragment,{children:(0,l.jsxs)("section",{className:"p-4 items-start gap-4 overflow-visible",children:[(0,l.jsx)("h2",{className:"text-xl m-0",children:"Database Users"}),(0,l.jsx)("div",{className:"flex flex-wrap gap-6",children:s&&s[0]?s.map((e,s)=>(0,l.jsxs)("a",{href:"/admin/".concat(null==a?void 0:a.id,"/users/databases/").concat(e.db_slug),className:"border border-slate-200 border-solid rounded px-6 py-4 hover:border-primary flex items-center gap-2",children:[(0,l.jsx)("img",{src:e.db_image,className:"w-8 h-8 rounded-full object-cover",alt:""}),e.db_name]},s+1)):(0,l.jsx)("span",{children:"No Databases Yet"})})]})})}var d=a(9862);function o(e){let{databases:s,user:a}=t.useContext(p);return(0,l.jsxs)(t.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.jsxs)("div",{children:[(0,l.jsx)(d.A,{}),(0,l.jsx)("h1",{className:"text-3xl m-0",children:"All Databases Users"})]}),(0,l.jsxs)("a",{href:"/admin/".concat(null==a?void 0:a.id,"/users/add-user"),className:"flex items-center gap-2 whitespace-normal button",children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New User"})]})]}),(0,l.jsx)(c.A,{user:a})]}),(0,l.jsx)(i,{databases:s,user:a})]})}var u=!0;let p=t.createContext({});function x(e){let{user:s,users:a,databases:c}=e,i=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"Users | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[d,u]=t.useState(null),[x,m]=t.useState(null);return(0,l.jsx)(n.A,{head:i,user:s,children:(0,l.jsxs)(p.Provider,{value:{user:s,users:a,targetUser:x,setTargetUser:m,databases:c},children:[(0,l.jsx)(o,{}),(0,l.jsx)(r.A,{targetUser:x,user:s,setTargetUser:m})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[9799,3857,636,6593,8792],()=>s(3367)),_N_E=e.O()}]);
|
||||
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user