Skip to content

Commit

Permalink
Time out bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Avdpro committed Jan 11, 2024
1 parent 8bb0651 commit 7aac3ad
Show file tree
Hide file tree
Showing 15 changed files with 37 additions and 47 deletions.
Binary file modified public/download/MobileHome.zip
Binary file not shown.
Binary file modified public/download/PVHome.zip
Binary file not shown.
Binary file modified public/download/StdUI.zip
Binary file not shown.
Binary file modified public/download/aichat.zip
Binary file not shown.
Binary file modified public/download/books.zip
Binary file not shown.
Binary file modified public/download/coke.zip
Binary file not shown.
Binary file modified public/download/editkit.zip
Binary file not shown.
Binary file modified public/download/files.zip
Binary file not shown.
Binary file modified public/download/homekit.zip
Binary file not shown.
Binary file modified public/download/tabedit.zip
Binary file not shown.
Binary file modified public/download/tabos.zip
Binary file not shown.
Binary file modified public/download/terminal.zip
Binary file not shown.
71 changes: 25 additions & 46 deletions public/setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -14235,7 +14235,7 @@
var diskInfo = [
{
"name": "coke",
"versionIdx": 171,
"versionIdx": 176,
"zip": "coke.zip"
},
{
Expand All @@ -14245,7 +14245,7 @@
},
{
"name": "-homekit",
"versionIdx": 144,
"versionIdx": 146,
"zip": "homekit.zip"
},
{
Expand All @@ -14265,7 +14265,7 @@
},
{
"name": "-editkit",
"versionIdx": 123,
"versionIdx": 124,
"zip": "editkit.zip"
},
{
Expand All @@ -14285,15 +14285,15 @@
},
{
"name": "-MobileHome",
"versionIdx": 6,
"versionIdx": 7,
"zip": "MobileHome.zip"
}
];

var mobileDiskInfo = [
{
"name": "coke",
"versionIdx": 171,
"versionIdx": 176,
"zip": "coke.zip"
},
{
Expand All @@ -14303,7 +14303,7 @@
},
{
"name": "-homekit",
"versionIdx": 144,
"versionIdx": 146,
"zip": "homekit.zip"
},
{
Expand Down Expand Up @@ -14333,15 +14333,15 @@
},
{
"name": "-MobileHome",
"versionIdx": 6,
"versionIdx": 7,
"zip": "MobileHome.zip"
}
];

var previewDiskInfo = [
{
"name": "coke",
"versionIdx": 171,
"versionIdx": 176,
"zip": "coke.zip"
},
{
Expand All @@ -14351,7 +14351,7 @@
},
{
"name": "-homekit",
"versionIdx": 144,
"versionIdx": 146,
"zip": "homekit.zip"
},
{
Expand All @@ -14371,34 +14371,6 @@
}
];

var appsDiskInfo = [
{
"name": "coke",
"versionIdx": 171,
"zip": "coke.zip"
},
{
"name": "-tabos",
"versionIdx": 67,
"zip": "tabos.zip"
},
{
"name": "-homekit",
"versionIdx": 144,
"zip": "homekit.zip"
},
{
"name": "-aichat",
"versionIdx": 41,
"zip": "aichat.zip"
},
{
"name": "-StdUI",
"versionIdx": 101,
"zip": "StdUI.zip"
}
];

//Auto genterated by Cody
/*}#Imports*/
var cfgURL=import.meta.url+"1GFLQHQ1R0;";
Expand Down Expand Up @@ -14463,17 +14435,12 @@
{
let host=location.host;
let pts=host.split(".");
let appId;
if(pts[1]==="apps"){
let appId;
appId=pts[0];
appCfg.isSetupApps=true;
appCfg.appId=appId;
appsDiskInfo.push({
name:`-${appId}`,
versionIdx:0,
zip:`/apps?id=${appId}`
});
appCfg.diskInfo=appsDiskInfo;
appCfg.diskInfo=mobileDiskInfo;
appCfg.minCokeVsn=149;
}else if(host.startsWith("pv.")){
appCfg.isPreview=true;
Expand All @@ -14487,10 +14454,18 @@
appCfg.isMobile=true;
appCfg.diskInfo=mobileDiskInfo;
appCfg.minCokeVsn=148;
appId=VFACT.appParams.app;
if(appId){
appCfg.appId=appId;
}
}else {
appCfg.isMobile=false;
appCfg.diskInfo=diskInfo;
appCfg.minCokeVsn=148;
appId=VFACT.appParams.app;
if(appId){
appCfg.appId=appId;
}
}
}
/*Cody Project Doc*/
Expand Down Expand Up @@ -16605,7 +16580,7 @@
//------------------------------------------------------------------------
cssVO.openOS=function(){
if(appCfg.isSetupApps){
document.location.href = document.location.origin + `/~/-app/app.html`;
document.location.href = document.location.origin + `/~/-MobileHome/app.html?app=${appCfg.appId}`;
}else if(appCfg.isPreview){
if(VFACT.appParams.userId){
document.location.href = document.location.origin + `/~/-PVHome/app.html?userId=${VFACT.appParams.userId}&slot=${VFACT.appParams.slot}&key=${VFACT.appParams.key}`;
Expand All @@ -16617,7 +16592,11 @@
}else if(location.host.startsWith("pv.")){
document.location.href = document.location.origin + `/~/-PVHome/app.html`;
}else {
document.location.href = document.location.origin + "/@homekit";
if(appParams.app){
document.location.href = document.location.origin + `/@homekit?app=${appParams.app}`;
}else {
document.location.href = document.location.origin + "/@homekit";
}
}
};

Expand Down
4 changes: 4 additions & 0 deletions routes/APIChatAI.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,10 @@ export default function(app,router,apiMap) {
}
}
}
if(streamVO.timer){
clearTimeout(streamVO.timer);
streamVO.timer = setTimeout(() => {shutdownStream(streamId)}, 20000);
}
if (streamVO.content !== streamVO.textRead) {
func = streamVO.waitFunc;
if (func) {
Expand Down
9 changes: 8 additions & 1 deletion routes/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
var express = require('express');
const querystring = require('querystring');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
res.redirect("/setup.html");
const queryObj = req.query;
const queryString = querystring.stringify(queryObj);
if(queryString){
res.redirect("/setup.html"+"?"+queryString);
}else {
res.redirect("/setup.html");
}
});

module.exports = router;

0 comments on commit 7aac3ad

Please sign in to comment.