mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-11-22 03:04:35 +03:00
WIP: build all frontends, gitignore output
This commit is contained in:
parent
3614554723
commit
134ff4778c
4
.gitignore
vendored
4
.gitignore
vendored
@ -15,3 +15,7 @@ wit/
|
||||
.env
|
||||
kinode/src/bootstrapped_processes.rs
|
||||
kinode/packages/**/wasi_snapshot_preview1.wasm
|
||||
|
||||
kinode/packages/app_store/pkg/ui/
|
||||
kinode/packages/homepage/pkg/ui/
|
||||
kinode/src/register-ui/build/
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
import{B as p,g as m,s as y,d as w,i as k,e as O,a as E,b as L,H as h,f as x}from"./index-9L6Bkx0q.js";class M extends p{constructor({callbackSelector:s,cause:e,data:n,extraData:c,sender:u,urls:t}){var i;super(e.shortMessage||"An error occurred while fetching for an offchain result.",{cause:e,metaMessages:[...e.metaMessages||[],(i=e.metaMessages)!=null&&i.length?"":[],"Offchain Gateway Call:",t&&[" Gateway URL(s):",...t.map(f=>` ${m(f)}`)],` Sender: ${u}`,` Data: ${n}`,` Callback selector: ${s}`,` Extra data: ${c}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}class R extends p{constructor({result:s,url:e}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${m(e)}`,`Response: ${y(s)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}class $ extends p{constructor({sender:s,to:e}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${e}`,`OffchainLookup sender address: ${s}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}const j="0x556f1830",S={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function v(o,{blockNumber:s,blockTag:e,data:n,to:c}){const{args:u}=w({data:n,abi:[S]}),[t,i,f,a,r]=u,{ccipRead:d}=o,b=d&&typeof(d==null?void 0:d.request)=="function"?d.request:q;try{if(!k(c,t))throw new $({sender:t,to:c});const l=await b({data:f,sender:t,urls:i}),{data:g}=await L(o,{blockNumber:s,blockTag:e,data:E([a,O([{type:"bytes"},{type:"bytes"}],[l,r])]),to:c});return g}catch(l){throw new M({callbackSelector:a,cause:l,data:n,extraData:r,sender:t,urls:i})}}async function q({data:o,sender:s,urls:e}){var c;let n=new Error("An unknown error occurred.");for(let u=0;u<e.length;u++){const t=e[u],i=t.includes("{data}")?"GET":"POST",f=i==="POST"?{data:o,sender:s}:void 0;try{const a=await fetch(t.replace("{sender}",s).replace("{data}",o),{body:JSON.stringify(f),method:i});let r;if((c=a.headers.get("Content-Type"))!=null&&c.startsWith("application/json")?r=(await a.json()).data:r=await a.text(),!a.ok){n=new h({body:f,details:r!=null&&r.error?y(r.error):a.statusText,headers:a.headers,status:a.status,url:t});continue}if(!x(r)){n=new R({result:r,url:t});continue}return r}catch(a){n=new h({body:f,details:a.message,url:t})}}throw n}export{q as ccipRequest,v as offchainLookup,S as offchainLookupAbiItem,j as offchainLookupSignature};
|
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
@ -14,8 +14,8 @@
|
||||
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1.00001, viewport-fit=cover" />
|
||||
<script type="module" crossorigin src="/main:app_store:sys/assets/index-9L6Bkx0q.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/main:app_store:sys/assets/index-bN28jcF1.css">
|
||||
<script type="module" crossorigin src="/main:app_store:sys/assets/index-LtKoL-3F.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/main:app_store:sys/assets/index-8G9Owqpw.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -1 +1 @@
|
||||
npm run build:copy
|
||||
npm install && npm run build:copy
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -9,8 +9,8 @@
|
||||
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1.00001, viewport-fit=cover" />
|
||||
<script type="module" crossorigin src="/assets/index-BYvZ8GK9.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/kinode.css">
|
||||
<script type="module" crossorigin src="/assets/index-D2eePF6S.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BbDRVmCC.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -1 +0,0 @@
|
||||
../../../../../css/kinode.css
|
@ -1 +0,0 @@
|
||||
../../../../../css/kinode.svg
|
@ -1 +1 @@
|
||||
yarn && yarn run tc && yarn build
|
||||
npm install && npm run build:copy
|
4
kinode/packages/homepage/ui/dist/index.html
vendored
4
kinode/packages/homepage/ui/dist/index.html
vendored
@ -9,8 +9,8 @@
|
||||
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1.00001, viewport-fit=cover" />
|
||||
<script type="module" crossorigin src="/assets/index-BYvZ8GK9.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/kinode.css">
|
||||
<script type="module" crossorigin src="/assets/index-D2eePF6S.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BbDRVmCC.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
5352
kinode/packages/homepage/ui/package-lock.json
generated
5352
kinode/packages/homepage/ui/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -10,7 +10,6 @@ import { isMobileCheck } from '../utils/dimensions'
|
||||
import classNames from 'classnames'
|
||||
import WidgetsSettingsModal from '../components/WidgetsSettingsModal'
|
||||
|
||||
import valetIcon from '../../public/valet-icon.png'
|
||||
import { getFetchUrl } from '../utils/fetch'
|
||||
|
||||
interface AppStoreApp {
|
||||
@ -24,7 +23,7 @@ function Homepage() {
|
||||
const [our, setOur] = useState('')
|
||||
const [version, setVersion] = useState('')
|
||||
const [allAppsExpanded, setAllAppsExpanded] = useState(false)
|
||||
const { setApps, isHosted, fetchHostedStatus, showWidgetsSettings, setShowWidgetsSettings } = useHomepageStore()
|
||||
const { setApps, fetchHostedStatus, showWidgetsSettings, setShowWidgetsSettings } = useHomepageStore()
|
||||
const isMobile = isMobileCheck()
|
||||
|
||||
const getAppPathsAndIcons = () => {
|
||||
@ -95,11 +94,6 @@ function Homepage() {
|
||||
'top-8 left-8 right-8': !isMobile,
|
||||
'top-2 left-2 right-2': isMobile
|
||||
})}>
|
||||
{isHosted && <img
|
||||
src={valetIcon}
|
||||
className='!w-12 !h-12 !p-1 button icon object-cover'
|
||||
onClick={() => window.location.href = `https://valet.kinode.org/`}
|
||||
/>}
|
||||
<span>{our}</span>
|
||||
<span className='bg-white/10 rounded p-1'>v{version}</span>
|
||||
<button
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,18 +0,0 @@
|
||||
# Register
|
||||
This app is compiled and put into the root directory of every node for login and registration. It handles all onchain KNS registration flows.
|
||||
|
||||
## Development
|
||||
|
||||
1. Run `yarn` to install dependencies
|
||||
1. Run `yarn run tc` to generate ABIs
|
||||
1. Start a kinode locally on port 8080 (default)
|
||||
1. Run `yarn start` to serve the UI at http://localhost:3000 (proxies requests to local kinode)
|
||||
|
||||
If you would like to proxy requests to a kinode that is not at http://localhost:8080, change the `proxy` field in `package.json`.
|
||||
|
||||
## Building
|
||||
|
||||
1. Run `yarn` to install dependencies
|
||||
1. Run `yarn run tc` to generate ABIs
|
||||
1. Run `yarn build` to generate the `./build` folder
|
||||
1. Overwrite `kinode/kinode/src/register-ui/build` with `./build`
|
@ -1 +1 @@
|
||||
yarn && yarn run tc && yarn build
|
||||
npm install && npm run build
|
2215
kinode/src/register-ui/package-lock.json
generated
2215
kinode/src/register-ui/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user