cleanup console logs

This commit is contained in:
Seth Trowbridge 2023-06-21 21:31:21 -04:00
parent cc80a2725d
commit f521ed23eb
3 changed files with 3 additions and 9 deletions

View File

@ -68,7 +68,6 @@ const ProxyState =(argNew:StateType)=>
// this is a switch/ui change, not a HMR reload change // this is a switch/ui change, not a HMR reload change
const oldState = MapIndex(HMR.statesOld, HMR.statesNew.size-1); const oldState = MapIndex(HMR.statesOld, HMR.statesNew.size-1);
oldState && HMR.statesOld.set(oldState[0], {...oldState[1], state:argNew}); oldState && HMR.statesOld.set(oldState[0], {...oldState[1], state:argNew});
console.log("check: ui-invoked")
} }
HMR.statesNew.delete(id); HMR.statesNew.delete(id);
@ -112,7 +111,6 @@ const ProxyReducer =(inReducer:(inState:Storelike, inAction:string)=>Storelike,
const capture = inReducer(inInterceptState, inInterceptAction); const capture = inReducer(inInterceptState, inInterceptAction);
const stateUser = {state:capture, set:()=>{}, reload:HMR.reloads}; const stateUser = {state:capture, set:()=>{}, reload:HMR.reloads};
HMR.statesNew.set(id, stateUser); HMR.statesNew.set(id, stateUser);
console.log("interepted reducer", stateUser);
return capture; return capture;
}; };

View File

@ -1,7 +1,7 @@
import {Configure, Transpile, Extension} from "./run-serve.tsx"; import {Configure, Transpile, Extension} from "./run-serve.tsx";
const SocketsLive:Set<WebSocket> = new Set(); const SocketsLive:Set<WebSocket> = new Set();
const SocketsSend =(inData:string)=>{ console.log(inData); for (const socket of SocketsLive){ socket.send(inData); } } const SocketsSend =(inData:string)=>{ for (const socket of SocketsLive){ socket.send(inData); } }
Configure({ Configure({
SWCOp: SWCOp:
@ -97,4 +97,4 @@ const Watcher =async()=>
} }
} }
Watcher().then(()=>console.log("done watching")); Watcher();

View File

@ -52,7 +52,7 @@ let Configuration:Configuration =
Proxy: new URL(`file://${Deno.cwd().replaceAll("\\", "/")}`).toString(), Proxy: new URL(`file://${Deno.cwd().replaceAll("\\", "/")}`).toString(),
Allow: "*", Allow: "*",
Reset: "/clear-cache", Reset: "/clear-cache",
Serve(inReq, inURL, inExt, inMap, inProxy){}, Serve(inReq, inURL, inExt, inMap, inConfig){},
Remap: (inImports, inConfig)=> Remap: (inImports, inConfig)=>
{ {
const reactURL = inImports["react"]; const reactURL = inImports["react"];
@ -65,9 +65,6 @@ let Configuration:Configuration =
}, },
Shell(inReq, inURL, inExt, inMap, inConfig) Shell(inReq, inURL, inExt, inMap, inConfig)
{ {
console.log("Start app:", Deno.mainModule, "start dir", inConfig.Proxy);
console.log("Split:", Deno.mainModule.split(inConfig.Proxy) );
const parts = Deno.mainModule.split(inConfig.Proxy); const parts = Deno.mainModule.split(inConfig.Proxy);
return new Response( return new Response(
@ -204,7 +201,6 @@ HTTP.serve(async(req: Request)=>
{ {
path = clipRoot + clipPath; path = clipRoot + clipPath;
} }
console.log("transpiling", path);
code = await Transpile.Fetch(path, url.pathname, true); code = await Transpile.Fetch(path, url.pathname, true);
} }
else else