Skip to content

Commit df02e08

Browse files
committed
chore: update terminal help commands
1 parent 125fd9a commit df02e08

18 files changed

+1375
-126
lines changed

deploy.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ const getDirSize = (dirPath) => {
1515
const stats = fs.statSync(filePath);
1616

1717
if (stats.isFile()) {
18-
size += stats.size;
18+
// only add if greater than because uploads less than 100kb are free
19+
if (stats.size > 102400) size += stats.size;
1920
} else if (stats.isDirectory()) {
2021
size += getDirSize(filePath);
2122
}
@@ -25,12 +26,11 @@ const getDirSize = (dirPath) => {
2526
};
2627

2728
const deploy = async () => {
28-
const url = 'node2';
2929
//const providerUrl = 'https://mumbai.rpc.thirdweb.com/';
3030
const token = 'matic';
3131

3232
const irys = new Irys({
33-
url,
33+
network: 'mainnet',
3434
token,
3535
key: process.env.WALLET_PK,
3636
//config: { providerUrl },
@@ -43,6 +43,7 @@ const deploy = async () => {
4343
console.log('Current size: ', size);
4444
const cost = irys.utils.fromAtomic(await irys.getPrice(size));
4545
console.log('Cost to Upload: ', cost);
46+
return;
4647
try {
4748
const receipt = await irys.uploadFolder(folderToUpload, {
4849
indexFile: 'index.html',

index.html

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@
55
<title>AOS Playground</title>
66
<meta
77
name="description"
8-
content="
9-
AOS Playground is a simple web interface for AO Operation System. It allows you to create, edit and run Lua scripts in a visual way.
10-
"
8+
content="Welcome to the AOS Web Playground! Web Interface for 'ao' Permaweb Computer Grid 🐰 🕳️ 👈"
119
/>
1210
<meta name="theme-color" content="#ffffff" />
1311

1412
<meta property="og:title" content="AOS Playground" />
1513
<meta
1614
property="og:description"
17-
content="AOS Playground is a simple web interface for AO Operation System. It allows you to create, edit and run Lua scripts in a visual way."
15+
content="Welcome to the AOS Web Playground! Web Interface for 'ao' Permaweb Computer Grid 🐰 🕳️ 👈"
1816
/>
1917
<meta
2018
property="og:image"
@@ -23,7 +21,7 @@
2321
<meta property="og:image:width" content="1200" />
2422
<meta property="og:image:height" content="630" />
2523
<meta property="og:image:alt" content="AOS Playground" />
26-
<meta property="og:url" content="https://ao-playground.vercel.app" />
24+
<meta property="og:url" content="https://aos_playground.ar-io.dev" />
2725
<meta property="og:type" content="website" />
2826
<meta property="og:site_name" content="AOS Playground" />
2927
<meta property="og:locale" content="en_US" />
@@ -33,7 +31,7 @@
3331
<meta name="twitter:title" content="AOS Playground" />
3432
<meta
3533
name="twitter:description"
36-
content="AOS Playground is a simple web interface for AO Operation System. It allows you to create, edit and run Lua scripts in a visual way."
34+
content="Welcome to the AOS Web Playground! Web Interface for 'ao' Permaweb Computer Grid 🐰 🕳️ 👈"
3735
/>
3836
<meta
3937
name="twitter:image"
@@ -42,11 +40,25 @@
4240
<meta name="twitter:image:alt" content="AOS Playground" />
4341

4442
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
45-
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
46-
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
47-
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
43+
<link
44+
rel="apple-touch-icon"
45+
sizes="180x180"
46+
href="public/apple-touch-icon.png"
47+
/>
48+
<link
49+
rel="icon"
50+
type="image/png"
51+
sizes="32x32"
52+
href="public/favicon-32x32.png"
53+
/>
54+
<link
55+
rel="icon"
56+
type="image/png"
57+
sizes="16x16"
58+
href="public/favicon-16x16.png"
59+
/>
4860

49-
<link rel="manifest" href="/site.webmanifest" />
61+
<link rel="manifest" href="public/site.webmanifest" />
5062
</head>
5163
<body>
5264
<div id="root" class="font-geist"></div>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"zustand": "^4.5.2"
6363
},
6464
"devDependencies": {
65+
"@irys/sdk": "^0.1.21",
6566
"@shikijs/monaco": "^1.2.1",
6667
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
6768
"@types/luaparse": "^0.2.12",

0 commit comments

Comments
 (0)