Ver código fonte

simplified IWA, no need for dSockets and exports anymore

oscar 3 semanas atrás
pai
commit
030617397b
8 arquivos alterados com 493 adições e 586 exclusões
  1. 163 202
      assets/cx_esm.js
  2. 163 202
      cx.js
  3. 164 164
      cxcore.js
  4. BIN
      cxcore.wasm
  5. 0 7
      dSockets.js
  6. 1 1
      package.json
  7. 2 2
      src/lib/WebVM.svelte
  8. 0 8
      src/lib/network.js

Diferenças do arquivo suprimidas por serem muito extensas
+ 163 - 202
assets/cx_esm.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 163 - 202
cx.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 164 - 164
cxcore.js


BIN
cxcore.wasm


+ 0 - 7
dSockets.js

@@ -1,7 +0,0 @@
-export async function autoConfSockets() {
-  return {
-    tcpSocket: TCPSocket,
-    tcpServer: TCPServerSocket,
-    udpSocket: UDPSocket,
-  };
-}

+ 1 - 1
package.json

@@ -5,7 +5,7 @@
 	"scripts": {
 		"dev": "vite dev",
 		"build": "CX_URL=assets/cx.esm.js vite build",
-		"postbuild": "node ./post_process.cjs && cp -r .well-known/ build/ && cp dSockets.js build/",
+		"postbuild": "node ./post_process.cjs && cp -r .well-known/ build/",
 		"iwa": "nginx -p . -c nginx.conf"
 	},
 	"devDependencies": {

+ 2 - 2
src/lib/WebVM.svelte

@@ -6,7 +6,7 @@
 	import '$lib/global.css';
 	import '@xterm/xterm/css/xterm.css'
 	import '@fortawesome/fontawesome-free/css/all.min.css'
-	import { directSocketsInterface, networkInterface } from '$lib/network.js'
+	import { networkInterface } from '$lib/network.js'
 	import { cpuActivity, diskActivity, cpuPercentage, diskLatency } from '$lib/activities.js'
 	import { introMessage, errorMessage, unexpectedErrorMessage } from '$lib/messages.js'
 	import { displayConfig, handleToolImpl } from '$lib/anthropic.js'
@@ -309,7 +309,7 @@
 		];
 		try
 		{
-			cx = await CheerpX.Linux.create({mounts: mountPoints, networkInterface: networkInterface, directSocketsInterface: directSocketsInterface});
+			cx = await CheerpX.Linux.create({mounts: mountPoints, networkInterface: networkInterface});
 		}
 		catch(e)
 		{

+ 0 - 8
src/lib/network.js

@@ -1,6 +1,5 @@
 import { writable } from 'svelte/store';
 import { browser } from '$app/environment';
-import { TCPSocketClient } from '../../dSockets';
 
 let authKey = undefined;
 let controlUrl = undefined;
@@ -152,10 +151,3 @@ export function updateButtonData(state, handleConnect) {
 
 export const networkInterface = { authKey: authKey, controlUrl: controlUrl, loginUrlCb: loginUrlCb, stateUpdateCb: stateUpdateCb, netmapUpdateCb: netmapUpdateCb };
 export const networkData = { currentIp: null, connectionState: connectionState, exitNode: exitNode, loginUrl: null, dashboardUrl: dashboardUrl }
-
-
-//
-// IWA test
-// 
-export const directSocketsInterface = { host: null, port: null, options: null};
-

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff