diff --git a/kinode/packages/homepage/pkg/ui/assets/index-DRR7woJo.js b/kinode/packages/homepage/pkg/ui/assets/index-BYvZ8GK9.js similarity index 97% rename from kinode/packages/homepage/pkg/ui/assets/index-DRR7woJo.js rename to kinode/packages/homepage/pkg/ui/assets/index-BYvZ8GK9.js index 8acec6436..0966ca8bd 100644 --- a/kinode/packages/homepage/pkg/ui/assets/index-DRR7woJo.js +++ b/kinode/packages/homepage/pkg/ui/assets/index-BYvZ8GK9.js @@ -57,7 +57,7 @@ Error generating stack: `+o.message+` Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",l=0;l({get:t,set:e,widgetSettings:{},favoriteApps:{},setWidgetSettings:r=>e({widgetSettings:r}),setFavoriteApps:r=>e({favoriteApps:r}),toggleWidgetVisibility:r=>{var i;const{widgetSettings:n}=t();e({widgetSettings:{...n,[r]:{...n[r],hide:!((i=n[r])!=null&&i.hide)}}})},setWidgetSize:(r,n)=>{const{widgetSettings:i}=t();e({widgetSettings:{...i,[r]:{...i[r],size:n}}})},favoriteApp:async r=>{var i;const{favoriteApps:n}=t();e({favoriteApps:{...n,[r]:{...n[r],favorite:!((i=n[r])!=null&&i.favorite)}}})}}),{name:"homepage_persistent_store",storage:xs(()=>localStorage)})),nr=()=>window.innerWidth<=600,P0=({text:e,className:t,size:r})=>{var l;const i=`/api/icons/${((l=e.split("").pop())==null?void 0:l.toUpperCase())||"0"}`;if(!i)return null;const o=nr();return b.jsx("img",{src:i,className:Te("m-0 align-self-center rounded-full",{"h-32 w-32":!o&&r==="large","h-18 w-18":!o&&r==="medium","h-12 w-12":o||r==="small"},t)})},Av=({app:e})=>{var l,a;const{favoriteApp:t,favoriteApps:r}=vi(),[n,i]=E.useState(!1),o=nr();return b.jsxs("a",{className:Te("flex-col-center gap-2 relative hover:opacity-90 transition-opacity",{"cursor-pointer":e==null?void 0:e.path,"cursor-not-allowed":!(e!=null&&e.path)}),id:e==null?void 0:e.package_name,href:e==null?void 0:e.path,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:[e!=null&&e.base64_icon?b.jsx("img",{src:e.base64_icon,className:Te("rounded",{"h-8 w-8":o,"h-16 w-16":!o})}):b.jsx(P0,{text:((l=e==null?void 0:e.state)==null?void 0:l.our_version)||"0",size:"small",className:"h-16 w-16"}),b.jsx("h6",{children:(e==null?void 0:e.label)||(e==null?void 0:e.package_name)}),(e==null?void 0:e.path)&&n&&b.jsx("button",{className:"absolute p-2 -top-2 -right-2 clear text-sm",onClick:u=>{u.preventDefault(),t(e.package_name)},children:(a=r[e.package_name])!=null&&a.favorite?b.jsx(x0,{}):b.jsx(b0,{})})]})};function gu(e,t){return gu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gu(e,t)}function Lv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gu(e,t)}function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Oe(1));return r(Mv)(e,t)}if(typeof e!="function")throw new Error(Oe(2));var i=e,o=t,l=[],a=l,u=!1;function s(){a===l&&(a=l.slice())}function f(){if(u)throw new Error(Oe(3));return o}function d(y){if(typeof y!="function")throw new Error(Oe(4));if(u)throw new Error(Oe(5));var w=!0;return s(),a.push(y),function(){if(w){if(u)throw new Error(Oe(6));w=!1,s();var v=a.indexOf(y);a.splice(v,1),l=null}}}function c(y){if(!R0(y))throw new Error(Oe(7));if(typeof y.type>"u")throw new Error(Oe(8));if(u)throw new Error(Oe(9));try{u=!0,o=i(o,y)}finally{u=!1}for(var w=l=a,g=0;g=0)continue;r[n]=e[n]}return r}var Uv={exports:{}},V={};/** @license React v16.13.1 +*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",l=0;l({get:t,set:e,widgetSettings:{},favoriteApps:{},setWidgetSettings:r=>e({widgetSettings:r}),setFavoriteApps:r=>e({favoriteApps:r}),toggleWidgetVisibility:r=>{var i;const{widgetSettings:n}=t();e({widgetSettings:{...n,[r]:{...n[r],hide:!((i=n[r])!=null&&i.hide)}}})},setWidgetSize:(r,n)=>{const{widgetSettings:i}=t();e({widgetSettings:{...i,[r]:{...i[r],size:n}}})},favoriteApp:async r=>{var i;const{favoriteApps:n}=t();e({favoriteApps:{...n,[r]:{...n[r],favorite:!((i=n[r])!=null&&i.favorite)}}})}}),{name:"homepage_persistent_store",storage:xs(()=>localStorage)})),nr=()=>window.innerWidth<=600,P0=({text:e,className:t,size:r})=>{var l;const i=`/icons/${((l=e.split("").pop())==null?void 0:l.toUpperCase())||"0"}`;if(!i)return null;const o=nr();return b.jsx("img",{src:i,className:Te("m-0 align-self-center rounded-full",{"h-32 w-32":!o&&r==="large","h-18 w-18":!o&&r==="medium","h-12 w-12":o||r==="small"},t)})},Av=({app:e})=>{var l,a;const{favoriteApp:t,favoriteApps:r}=vi(),[n,i]=E.useState(!1),o=nr();return b.jsxs("a",{className:Te("flex-col-center gap-2 relative hover:opacity-90 transition-opacity",{"cursor-pointer":e==null?void 0:e.path,"cursor-not-allowed":!(e!=null&&e.path)}),id:e==null?void 0:e.package_name,href:e==null?void 0:e.path,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:[e!=null&&e.base64_icon?b.jsx("img",{src:e.base64_icon,className:Te("rounded",{"h-8 w-8":o,"h-16 w-16":!o})}):b.jsx(P0,{text:((l=e==null?void 0:e.state)==null?void 0:l.our_version)||"0",size:"small",className:"h-16 w-16"}),b.jsx("h6",{children:(e==null?void 0:e.label)||(e==null?void 0:e.package_name)}),(e==null?void 0:e.path)&&n&&b.jsx("button",{className:"absolute p-2 -top-2 -right-2 clear text-sm",onClick:u=>{u.preventDefault(),t(e.package_name)},children:(a=r[e.package_name])!=null&&a.favorite?b.jsx(x0,{}):b.jsx(b0,{})})]})};function gu(e,t){return gu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gu(e,t)}function Lv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gu(e,t)}function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Oe(1));return r(Mv)(e,t)}if(typeof e!="function")throw new Error(Oe(2));var i=e,o=t,l=[],a=l,u=!1;function s(){a===l&&(a=l.slice())}function f(){if(u)throw new Error(Oe(3));return o}function d(y){if(typeof y!="function")throw new Error(Oe(4));if(u)throw new Error(Oe(5));var w=!0;return s(),a.push(y),function(){if(w){if(u)throw new Error(Oe(6));w=!1,s();var v=a.indexOf(y);a.splice(v,1),l=null}}}function c(y){if(!R0(y))throw new Error(Oe(7));if(typeof y.type>"u")throw new Error(Oe(8));if(u)throw new Error(Oe(9));try{u=!0,o=i(o,y)}finally{u=!1}for(var w=l=a,g=0;g=0)continue;r[n]=e[n]}return r}var Uv={exports:{}},V={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. diff --git a/kinode/packages/homepage/pkg/ui/index.html b/kinode/packages/homepage/pkg/ui/index.html index ce010ad79..4f4913415 100644 --- a/kinode/packages/homepage/pkg/ui/index.html +++ b/kinode/packages/homepage/pkg/ui/index.html @@ -9,7 +9,7 @@ - + diff --git a/kinode/packages/homepage/ui/dist/index.html b/kinode/packages/homepage/ui/dist/index.html index ce010ad79..4f4913415 100644 --- a/kinode/packages/homepage/ui/dist/index.html +++ b/kinode/packages/homepage/ui/dist/index.html @@ -9,7 +9,7 @@ - + diff --git a/kinode/packages/homepage/ui/src/components/AppIconPlaceholder.tsx b/kinode/packages/homepage/ui/src/components/AppIconPlaceholder.tsx index ffa595503..efcc54419 100644 --- a/kinode/packages/homepage/ui/src/components/AppIconPlaceholder.tsx +++ b/kinode/packages/homepage/ui/src/components/AppIconPlaceholder.tsx @@ -5,7 +5,7 @@ import classNames from 'classnames'; const AppIconPlaceholder: React.FC<{ text: string, className?: string, size: 'small' | 'medium' | 'large' }> = ({ text, className, size }) => { const index = text.split('').pop()?.toUpperCase() || '0' - const derivedFilename = `/api/icons/${index}` + const derivedFilename = `/icons/${index}` if (!derivedFilename) { return null diff --git a/my_nodes/home/tchotchke/.eth_providers b/my_nodes/home/tchotchke/.eth_providers new file mode 100644 index 000000000..363da60ef --- /dev/null +++ b/my_nodes/home/tchotchke/.eth_providers @@ -0,0 +1 @@ +[{"chain_id":1,"trusted":false,"provider":{"Node":{"kns_update":{"name":"providerfren.os","owner":"","node":"","public_key":"0x54f5a8a4c625d5925e63ed3f0203b63e007e3f822d7858bd98b1fd9704c99451","ips":["147.135.114.167"],"ports":{"ws":9999},"routers":[]},"use_as_provider":true}}},{"chain_id":11155111,"trusted":false,"provider":{"Node":{"kns_update":{"name":"providerfren.os","owner":"","node":"","public_key":"0x54f5a8a4c625d5925e63ed3f0203b63e007e3f822d7858bd98b1fd9704c99451","ips":["147.135.114.167"],"ports":{"ws":9999},"routers":[]},"use_as_provider":true}}},{"chain_id":10,"trusted":true,"provider":{"RpcUrl":"wss://opt-mainnet.g.alchemy.com/v2/phOnE7X9A3mnzAVjfyR1idu1yYX1mqSL"}},{"chain_id":10,"trusted":false,"provider":{"Node":{"kns_update":{"name":"providerfren.os","owner":"","node":"","public_key":"0x54f5a8a4c625d5925e63ed3f0203b63e007e3f822d7858bd98b1fd9704c99451","ips":["147.135.114.167"],"ports":{"ws":9999},"routers":[]},"use_as_provider":true}}}] \ No newline at end of file