Compare commits

..

No commits in common. "274df98d1f696085d761dd5ed74c24106856d675" and "dd7ca72f3aead25816775a412a9f4e20c7ce33fe" have entirely different histories.

7 changed files with 25 additions and 18 deletions

View File

@ -4,34 +4,41 @@
"": {
"name": "nose-pluto",
"dependencies": {
"hono": "^4.9.10",
"kleur": "^4.1.5",
"hono": "^4.9.7",
},
"devDependencies": {
"@types/bun": "latest",
},
},
"app": {
"name": "pluto",
"dependencies": {
"kleur": "^4.1.5",
},
"peerDependencies": {
"typescript": "^5",
},
},
},
"packages": {
"@types/bun": ["@types/bun@1.2.23", "", { "dependencies": { "bun-types": "1.2.23" } }, "sha512-le8ueOY5b6VKYf19xT3McVbXqLqmxzPXHsQT/q9JHgikJ2X22wyTW3g3ohz2ZMnp7dod6aduIiq8A14Xyimm0A=="],
"@types/bun": ["@types/bun@1.2.22", "", { "dependencies": { "bun-types": "1.2.22" } }, "sha512-5A/KrKos2ZcN0c6ljRSOa1fYIyCKhZfIVYeuyb4snnvomnpFqC0tTsEkdqNxbAgExV384OETQ//WAjl3XbYqQA=="],
"@types/node": ["@types/node@24.7.0", "", { "dependencies": { "undici-types": "~7.14.0" } }, "sha512-IbKooQVqUBrlzWTi79E8Fw78l8k1RNtlDDNWsFZs7XonuQSJ8oNYfEeclhprUldXISRMLzBpILuKgPlIxm+/Yw=="],
"@types/node": ["@types/node@24.5.2", "", { "dependencies": { "undici-types": "~7.12.0" } }, "sha512-FYxk1I7wPv3K2XBaoyH2cTnocQEu8AOZ60hPbsyukMPLv5/5qr7V1i8PLHdl6Zf87I+xZXFvPCXYjiTFq+YSDQ=="],
"@types/react": ["@types/react@19.2.2", "", { "dependencies": { "csstype": "^3.0.2" } }, "sha512-6mDvHUFSjyT2B2yeNx2nUgMxh9LtOWvkhIU3uePn2I2oyNymUAX1NIsdgviM4CH+JSrp2D2hsMvJOkxY+0wNRA=="],
"@types/react": ["@types/react@19.1.13", "", { "dependencies": { "csstype": "^3.0.2" } }, "sha512-hHkbU/eoO3EG5/MZkuFSKmYqPbSVk5byPFa3e7y/8TybHiLMACgI8seVYlicwk7H5K/rI2px9xrQp/C+AUDTiQ=="],
"bun-types": ["bun-types@1.2.23", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-R9f0hKAZXgFU3mlrA0YpE/fiDvwV0FT9rORApt2aQVWSuJDzZOyB5QLc0N/4HF57CS8IXJ6+L5E4W1bW6NS2Aw=="],
"bun-types": ["bun-types@1.2.22", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-hwaAu8tct/Zn6Zft4U9BsZcXkYomzpHJX28ofvx7k0Zz2HNz54n1n+tDgxoWFGB4PcFvJXJQloPhaV2eP3Q6EA=="],
"csstype": ["csstype@3.1.3", "", {}, "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="],
"hono": ["hono@4.9.10", "", {}, "sha512-AlI15ijFyKTXR7eHo7QK7OR4RoKIedZvBuRjO8iy4zrxvlY5oFCdiRG/V/lFJHCNXJ0k72ATgnyzx8Yqa5arug=="],
"hono": ["hono@4.9.8", "", {}, "sha512-JW8Bb4RFWD9iOKxg5PbUarBYGM99IcxFl2FPBo2gSJO11jjUDqlP1Bmfyqt8Z/dGhIQ63PMA9LdcLefXyIasyg=="],
"kleur": ["kleur@4.1.5", "", {}, "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ=="],
"pluto": ["pluto@workspace:app"],
"typescript": ["typescript@5.9.2", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A=="],
"undici-types": ["undici-types@7.14.0", "", {}, "sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA=="],
"undici-types": ["undici-types@7.12.0", "", {}, "sha512-goOacqME2GYyOZZfb5Lgtu+1IDmAlAEu5xnD3+xTzS10hT0vzpf0SPjkXwAw9Jm+4n/mQGDP3LO8CPbYROeBfQ=="],
}
}

View File

@ -22,10 +22,6 @@
"typescript": "^5"
},
"dependencies": {
"hono": "^4.9.10",
"kleur": "^4.1.5"
},
"devDependencies": {
"@types/bun": "latest"
}
}

View File

@ -76,6 +76,7 @@
switch (event.data.action) {
case 'back': history.back(); break
case 'forward': history.forward(); break
case 'reload': window.location.reload(); break
case 'stop': window.stop(); break
}
}

View File

@ -1,5 +1,5 @@
////
// version: 49fd142
// version: 52aae6c
// src/js/dom.ts
var content2 = $("content");
@ -1168,7 +1168,7 @@ function navigateForward() {
sendNavCommand("forward");
}
function reloadBrowser() {
iframe.src = realUrl;
sendNavCommand("reload");
}
function stopLoading() {
sendNavCommand("stop");
@ -1212,7 +1212,7 @@ async function handleClick2(e) {
e.preventDefault();
await runCommand(href.slice(1));
focusInput();
} else if (!isBrowsing() && !e.metaKey) {
} else if (!isBrowsing()) {
e.preventDefault();
openBrowser(href);
}

View File

@ -14,6 +14,9 @@ if [ -n "$(git status --porcelain)" ]; then
exit 1
fi
bun run build
git commit -am "update build.js"
git push origin main
git push gitea main

View File

@ -153,7 +153,7 @@ function navigateForward() {
}
function reloadBrowser() {
iframe.src = realUrl
sendNavCommand('reload')
}
function stopLoading() {
@ -166,7 +166,7 @@ function fullscreenBrowser() {
document.body.append(iframe)
}
function sendNavCommand(action: 'back' | 'forward' | 'stop') {
function sendNavCommand(action: 'back' | 'forward' | 'reload' | 'stop') {
if (!iframe.contentWindow) return
iframe.contentWindow.postMessage({

View File

@ -25,7 +25,7 @@ async function handleClick(e: MouseEvent) {
e.preventDefault()
await runCommand(href.slice(1))
focusInput()
} else if (!isBrowsing() && !e.metaKey) {
} else if (!isBrowsing()) {
e.preventDefault()
openBrowser(href)
}