27 changed files with 25 additions and 25 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[332],{6131:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/federation/actions",function(){return n(63646)}])},63646:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var r=n(34051),i=n.n(r),a=n(85893),o=n(67294),s=n(84485),c=n(15193),u=n(58091),l=n(58827),f=n(2766);function d(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}var h=s.Z.Title,p=s.Z.Paragraph;function v(){var e=(0,o.useState)([]),t=e[0],n=e[1],r=(0,o.useState)(0),s=r[0],v=r[1],E=(0,o.useState)(0),w=E[0],m=E[1],_=function(){var e,t=(e=i().mark((function e(){var t,r,a,o,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=50*w,r="".concat(l.op,"?offset=").concat(t,"&limit=").concat(50),e.next=6,(0,l.rQ)(r,{auth:!0});case 6:a=e.sent,o=a.results,s=a.total,v(s),(0,f.Qr)(o)?n([]):n(o),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),console.log("==== error",e.t0);case 15:case"end":return e.stop()}}),e,null,[[0,12]])})),function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){d(a,r,i,o,s,"next",e)}function s(e){d(a,r,i,o,s,"throw",e)}o(void 0)}))});return function(){return t.apply(this,arguments)}}();(0,o.useEffect)((function(){_()}),[w]);var g,x,y=[{title:"Action",dataIndex:"type",key:"type",width:50,render:function(e,t){var n,r;switch(t.type){case"FEDIVERSE_ENGAGEMENT_REPOST":n="/img/repost.svg",r="Share";break;case"FEDIVERSE_ENGAGEMENT_LIKE":n="/img/like.svg",r="Like";break;case"FEDIVERSE_ENGAGEMENT_FOLLOW":n="/img/follow.svg",r="Follow";break;default:n=""}return(0,a.jsxs)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:[(0,a.jsx)("img",{src:n,width:"70%",alt:r,title:r}),(0,a.jsx)("div",{style:{fontSize:"0.7rem"},children:r})]})}},{title:"From",dataIndex:"actorIRI",key:"from",render:function(e,t){return(0,a.jsx)("a",{href:t.actorIRI,children:t.actorIRI})}},{title:"When",dataIndex:"timestamp",key:"timestamp",render:function(e,t){var n=new Date(t.timestamp);return(0,u.Z)(n,"P pp")}}];return(0,a.jsxs)("div",{children:[(0,a.jsx)(h,{level:3,children:"Fediverse Actions"}),(0,a.jsx)(p,{children:"Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you."}),(g=t,x=y,(0,a.jsx)(c.Z,{dataSource:g,columns:x,size:"small",rowKey:function(e){return e.iri},pagination:{pageSize:50,hideOnSinglePage:!0,showSizeChanger:!1,total:s},onChange:function(e){var t=e.current;m(t)}}))]})}}},function(e){e.O(0,[193,91,774,888,179],(function(){return t=6131,e(e.s=t);var t}));var t=e.O();_N_E=t}]); |
@ -1 +0,0 @@
@@ -1 +0,0 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[332],{6131:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/federation/actions",function(){return n(63646)}])},63646:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var r=n(34051),i=n.n(r),a=n(85893),o=n(67294),s=n(84485),c=n(15193),u=n(58091),l=n(58827),f=n(2766);function d(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}var h=s.Z.Title,p=s.Z.Paragraph;function v(){var e=(0,o.useState)([]),t=e[0],n=e[1],r=function(){var e,t=(e=i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,l.rQ)(l.op,{auth:!0});case 3:t=e.sent,(0,f.Qr)(t)?n([]):n(t),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log("==== error",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})),function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){d(a,r,i,o,s,"next",e)}function s(e){d(a,r,i,o,s,"throw",e)}o(void 0)}))});return function(){return t.apply(this,arguments)}}();(0,o.useEffect)((function(){r()}),[]);var s,v,E=[{title:"Action",dataIndex:"type",key:"type",width:50,render:function(e,t){var n,r;switch(t.type){case"FEDIVERSE_ENGAGEMENT_REPOST":n="/img/repost.svg",r="Share";break;case"FEDIVERSE_ENGAGEMENT_LIKE":n="/img/like.svg",r="Like";break;case"FEDIVERSE_ENGAGEMENT_FOLLOW":n="/img/follow.svg",r="Follow";break;default:n=""}return(0,a.jsxs)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:[(0,a.jsx)("img",{src:n,width:"70%",alt:r,title:r}),(0,a.jsx)("div",{style:{fontSize:"0.7rem"},children:r})]})}},{title:"From",dataIndex:"actorIRI",key:"from",render:function(e,t){return(0,a.jsx)("a",{href:t.actorIRI,children:t.actorIRI})}},{title:"When",dataIndex:"timestamp",key:"timestamp",render:function(e,t){var n=new Date(t.timestamp);return(0,u.Z)(n,"P pp")}}];return(0,a.jsxs)("div",{children:[(0,a.jsx)(h,{level:3,children:"Fediverse Actions"}),(0,a.jsx)(p,{children:"Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you."}),(s=t,v=E,(0,a.jsx)(c.Z,{dataSource:s,columns:v,size:"small",rowKey:function(e){return e.iri},pagination:{pageSize:50}}))]})}}},function(e){e.O(0,[193,91,774,888,179],(function(){return t=6131,e(e.s=t);var t}));var t=e.O();_N_E=t}]); |
@ -1 +1 @@
@@ -1 +1 @@
|
||||
self.__BUILD_MANIFEST=function(s,c,a,e,t,i,n,f,o,d,h,g,u,r){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,c,a,e,t,i,f,"static/chunks/59-7fdae807cba004d7.js","static/chunks/pages/index-f56d91bcfac66757.js"],"/_error":["static/chunks/pages/_error-a3f18418a2205cb8.js"],"/access-tokens":[s,c,"static/chunks/pages/access-tokens-3acd5a7830403e31.js"],"/actions":[s,"static/chunks/pages/actions-92d9d70383c09d7c.js"],"/chat/messages":[o,s,c,i,d,"static/chunks/pages/chat/messages-718cf6f924085a63.js"],"/chat/users":[o,s,c,a,i,d,"static/chunks/pages/chat/users-8cf715890dd7b230.js"],"/config-chat":["static/chunks/pages/config-chat-a3cf0bc74e319b68.js"],"/config-federation":["static/chunks/829-d13a92a702516b11.js","static/chunks/pages/config-federation-726ead757495a90e.js"],"/config-public-details":[s,n,"static/css/e773f9ad06a56dc3.css","static/chunks/589-dee21eef75490d30.js",h,"static/chunks/pages/config-public-details-b94b23c173f8a6a6.js"],"/config-server-details":[g,"static/chunks/pages/config-server-details-e5bd6cc3840023d9.js"],"/config-social-items":[s,h,"static/chunks/pages/config-social-items-648bcb1e72189100.js"],"/config-storage":["static/chunks/473-071d0ccb4058336e.js","static/chunks/pages/config-storage-bde3d5d3a1f7c6a2.js"],"/config-video":[s,g,"static/chunks/556-e371537a5b08e653.js","static/chunks/pages/config-video-6e2b00e33bf2e6c8.js"],"/federation/actions":[s,c,"static/chunks/pages/federation/actions-e34f2fa3d3b281dc.js"],"/federation/followers":[s,c,a,"static/chunks/pages/federation/followers-4b36abc8560283e5.js"],"/hardware-info":[u,c,a,e,t,n,r,"static/chunks/pages/hardware-info-621bea1d32bc14dc.js"],"/help":[a,e,"static/chunks/132-1dfae0aaeefc35ce.js","static/chunks/pages/help-3dd6da50dde27e48.js"],"/logs":[s,c,f,"static/chunks/pages/logs-813575bf5d07d2e9.js"],"/upgrade":[s,"static/chunks/655-7d27b7c49ede8381.js","static/chunks/pages/upgrade-0ae3bc487cafeaaa.js"],"/viewer-info":[u,c,a,e,t,n,r,"static/chunks/pages/viewer-info-5c75718e77393722.js"],"/webhooks":[s,"static/chunks/pages/webhooks-c3d3edd3d72835f8.js"],sortedPages:["/","/_app","/_error","/access-tokens","/actions","/chat/messages","/chat/users","/config-chat","/config-federation","/config-public-details","/config-server-details","/config-social-items","/config-storage","/config-video","/federation/actions","/federation/followers","/hardware-info","/help","/logs","/upgrade","/viewer-info","/webhooks"]}}("static/chunks/193-bda4c56edead8906.js","static/chunks/91-e5a929ca024e0e59.js","static/chunks/961-932002f6def24a76.js","static/chunks/751-1f4aa812c1435fed.js","static/chunks/763-6084d4b3c149b8f4.js","static/chunks/533-2f63c37b8986cca1.js","static/chunks/910-ed07ccf32f311d03.js","static/chunks/429-b916347815798eef.js","static/chunks/29107295-1494f237b9e407ad.js","static/chunks/464-28a9938dcad3f057.js","static/chunks/17-6be9eda0e5a5d0d1.js","static/chunks/578-f63843553d757ffc.js","static/chunks/36bcf0ca-c1f70baa5cd8cbbf.js","static/chunks/183-9e16115c0dfb60ce.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); |
||||
self.__BUILD_MANIFEST=function(s,c,a,e,t,i,n,f,o,d,h,g,u,r){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,c,a,e,t,i,f,"static/chunks/59-7fdae807cba004d7.js","static/chunks/pages/index-f56d91bcfac66757.js"],"/_error":["static/chunks/pages/_error-a3f18418a2205cb8.js"],"/access-tokens":[s,c,"static/chunks/pages/access-tokens-3acd5a7830403e31.js"],"/actions":[s,"static/chunks/pages/actions-92d9d70383c09d7c.js"],"/chat/messages":[o,s,c,i,d,"static/chunks/pages/chat/messages-718cf6f924085a63.js"],"/chat/users":[o,s,c,a,i,d,"static/chunks/pages/chat/users-8cf715890dd7b230.js"],"/config-chat":["static/chunks/pages/config-chat-a3cf0bc74e319b68.js"],"/config-federation":["static/chunks/829-d13a92a702516b11.js","static/chunks/pages/config-federation-726ead757495a90e.js"],"/config-public-details":[s,n,"static/css/e773f9ad06a56dc3.css","static/chunks/589-dee21eef75490d30.js",h,"static/chunks/pages/config-public-details-b94b23c173f8a6a6.js"],"/config-server-details":[g,"static/chunks/pages/config-server-details-e5bd6cc3840023d9.js"],"/config-social-items":[s,h,"static/chunks/pages/config-social-items-648bcb1e72189100.js"],"/config-storage":["static/chunks/473-071d0ccb4058336e.js","static/chunks/pages/config-storage-bde3d5d3a1f7c6a2.js"],"/config-video":[s,g,"static/chunks/556-e371537a5b08e653.js","static/chunks/pages/config-video-6e2b00e33bf2e6c8.js"],"/federation/actions":[s,c,"static/chunks/pages/federation/actions-ba2389637e03889d.js"],"/federation/followers":[s,c,a,"static/chunks/pages/federation/followers-4b36abc8560283e5.js"],"/hardware-info":[u,c,a,e,t,n,r,"static/chunks/pages/hardware-info-621bea1d32bc14dc.js"],"/help":[a,e,"static/chunks/132-1dfae0aaeefc35ce.js","static/chunks/pages/help-3dd6da50dde27e48.js"],"/logs":[s,c,f,"static/chunks/pages/logs-813575bf5d07d2e9.js"],"/upgrade":[s,"static/chunks/655-7d27b7c49ede8381.js","static/chunks/pages/upgrade-0ae3bc487cafeaaa.js"],"/viewer-info":[u,c,a,e,t,n,r,"static/chunks/pages/viewer-info-5c75718e77393722.js"],"/webhooks":[s,"static/chunks/pages/webhooks-c3d3edd3d72835f8.js"],sortedPages:["/","/_app","/_error","/access-tokens","/actions","/chat/messages","/chat/users","/config-chat","/config-federation","/config-public-details","/config-server-details","/config-social-items","/config-storage","/config-video","/federation/actions","/federation/followers","/hardware-info","/help","/logs","/upgrade","/viewer-info","/webhooks"]}}("static/chunks/193-bda4c56edead8906.js","static/chunks/91-e5a929ca024e0e59.js","static/chunks/961-932002f6def24a76.js","static/chunks/751-1f4aa812c1435fed.js","static/chunks/763-6084d4b3c149b8f4.js","static/chunks/533-2f63c37b8986cca1.js","static/chunks/910-ed07ccf32f311d03.js","static/chunks/429-b916347815798eef.js","static/chunks/29107295-1494f237b9e407ad.js","static/chunks/464-28a9938dcad3f057.js","static/chunks/17-6be9eda0e5a5d0d1.js","static/chunks/578-f63843553d757ffc.js","static/chunks/36bcf0ca-c1f70baa5cd8cbbf.js","static/chunks/183-9e16115c0dfb60ce.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); |
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
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
Loading…
Reference in new issue