Skip to content

Commit

Permalink
UI Logic flow design
Browse files Browse the repository at this point in the history
  • Loading branch information
Avdpro committed Dec 17, 2023
1 parent f0ca7b3 commit 5d488f6
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 21 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.
57 changes: 36 additions & 21 deletions public/setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -14136,7 +14136,7 @@
var diskInfo = [
{
"name": "coke",
"versionIdx": 147,
"versionIdx": 150,
"zip": "coke.zip"
},
{
Expand All @@ -14161,12 +14161,12 @@
},
{
"name": "-tabedit",
"versionIdx": 95,
"versionIdx": 96,
"zip": "tabedit.zip"
},
{
"name": "-editkit",
"versionIdx": 113,
"versionIdx": 114,
"zip": "editkit.zip"
},
{
Expand All @@ -14176,7 +14176,7 @@
},
{
"name": "-aichat",
"versionIdx": 31,
"versionIdx": 32,
"zip": "aichat.zip"
},
{
Expand All @@ -14194,7 +14194,7 @@
var mobileDiskInfo = [
{
"name": "coke",
"versionIdx": 147,
"versionIdx": 150,
"zip": "coke.zip"
},
{
Expand Down Expand Up @@ -14224,7 +14224,7 @@
},
{
"name": "-aichat",
"versionIdx": 31,
"versionIdx": 32,
"zip": "aichat.zip"
},
{
Expand All @@ -14242,7 +14242,7 @@
var previewDiskInfo = [
{
"name": "coke",
"versionIdx": 147,
"versionIdx": 150,
"zip": "coke.zip"
},
{
Expand All @@ -14257,7 +14257,7 @@
},
{
"name": "-aichat",
"versionIdx": 31,
"versionIdx": 32,
"zip": "aichat.zip"
},
{
Expand All @@ -14267,7 +14267,7 @@
},
{
"name": "-PVHome",
"versionIdx": 3,
"versionIdx": 4,
"zip": "PVHome.zip"
}
];
Expand Down Expand Up @@ -14336,15 +14336,19 @@
if(location.host.startsWith("pv.")){
appCfg.isPreview=true;
appCfg.diskInfo=previewDiskInfo;
appCfg.minCokeVsn=149;
}else if(VFACT.appParams.key&&VFACT.appParams.slot&&VFACT.appParams.userId){
appCfg.isPreview=true;
appCfg.diskInfo=previewDiskInfo;
appCfg.minCokeVsn=148;
}else if(window.screen.width<500){
appCfg.isMobile=true;
appCfg.diskInfo=mobileDiskInfo;
appCfg.minCokeVsn=148;
}else {
appCfg.isMobile=false;
appCfg.diskInfo=diskInfo;
appCfg.minCokeVsn=148;
}
/*Cody Project Doc*/
//{
Expand Down Expand Up @@ -14919,9 +14923,16 @@
let list,vo;
list=appCfg.diskInfo;
for(vo of list){
if(!await this.checkDiskVersion(vo.name,checkVersion?vo.versionIdx:1)){
logger.log("Disk "+vo.name+": Failed.");
return false;
if(!checkVersion && vo.name==="coke"){
if(!await this.checkDiskVersion(vo.name,appCfg.minCokeVsn)){
logger.log("Disk "+vo.name+": Failed.");
return false;
}
}else {
if(!await this.checkDiskVersion(vo.name,checkVersion?vo.versionIdx:1)){
logger.log("Disk "+vo.name+": Failed.");
return false;
}
}
logger.log("Disk "+vo.name+": OK.");
}
Expand Down Expand Up @@ -15758,7 +15769,7 @@
// "type": "objclass",
// "def": "ObjClass",
// "jaxId": "1GFLV36AF0",
// "editVersion": 24,
// "editVersion": 26,
// "attrs": {
// "constructArgs": {
// "type": "object",
Expand Down Expand Up @@ -17003,7 +17014,7 @@
cssVO.maybeInstall=async function(){
let checkVersion;
if(appCfg.isPreview){
checkVersion=true;
checkVersion=false;
}else if(appCfg.isMobile){
checkVersion=true;
}else {
Expand Down Expand Up @@ -17229,6 +17240,10 @@
// "editVersion": 0,
// "attrs": {}
// },
// "segs": {
// "type": "array",
// "attrs": []
// },
// "exportTarget": "\"jax\"",
// "gearName": "",
// "gearIcon": "gears.svg",
Expand Down Expand Up @@ -17342,7 +17357,7 @@
// "type": "hudobj",
// "def": "text",
// "jaxId": "1GG1LG6II0",
// "editVersion": 21,
// "editVersion": 22,
// "attrs": {
// "properties": {
// "type": "object",
Expand Down Expand Up @@ -17509,7 +17524,7 @@
// "type": "hudobj",
// "def": "box",
// "jaxId": "1GFLTTKRI0",
// "editVersion": 22,
// "editVersion": 23,
// "attrs": {
// "properties": {
// "type": "object",
Expand Down Expand Up @@ -17872,7 +17887,7 @@
// "type": "hudobj",
// "def": "text",
// "jaxId": "1GFLU72L70",
// "editVersion": 22,
// "editVersion": 23,
// "attrs": {
// "properties": {
// "type": "object",
Expand Down Expand Up @@ -18035,7 +18050,7 @@
// "type": "hudobj",
// "def": "hud",
// "jaxId": "1GFLUAVAR0",
// "editVersion": 24,
// "editVersion": 25,
// "attrs": {
// "properties": {
// "type": "object",
Expand Down Expand Up @@ -18159,7 +18174,7 @@
// "type": "hudobj",
// "def": "hud",
// "jaxId": "1GKJRQNAK0",
// "editVersion": 22,
// "editVersion": 23,
// "attrs": {
// "properties": {
// "type": "object",
Expand Down Expand Up @@ -18202,7 +18217,7 @@
// "type": "hudobj",
// "def": "box",
// "jaxId": "1GKJS0SDA0",
// "editVersion": 22,
// "editVersion": 23,
// "attrs": {
// "properties": {
// "type": "object",
Expand Down Expand Up @@ -18577,7 +18592,7 @@
// "type": "hudobj",
// "def": "box",
// "jaxId": "1GKJSP42O0",
// "editVersion": 21,
// "editVersion": 22,
// "attrs": {
// "properties": {
// "type": "object",
Expand Down

0 comments on commit 5d488f6

Please sign in to comment.