Open nc-technologie opened 1 year ago
Hello,
i have a problem, i use a webcontainer as background. To navigate back in the site i am using $back. It is all ok until i go back up to the starting page (URL String) . Then the app starts to loop and terminate if i click anything.
Thats the code:
// file://start.json
{ "$jason": { "head": { "title": "SFVM", "actions": { "$foreground": { "type": "$reload" }, "$load": { "type": "$set", "options": { "url": [{ "{{#if $params && 'url' in $params && String($params.url).includes('google.com')}}": "{{$params.url}}" }, { "{{#elseif $params && 'url' in $params}}": "{{$params.url}}" }, { "{{#else}}": "https://www.google.com/" }] }, "success": { "type": "$render" } }, "navigate": { "type": "$href", "options": { "url": "file://start.json", "options": { "url": "{{$jason.url}}" } } } }, "templates": { "body": { "header": { "title": "{{$get.url}}" }, "background": { "type": "html", "url": "{{$get.url}}", "style": { "background": "#ffffff", "progress": "rgba(0,0,0,0)" } "action": { "trigger": "navigate" } }, "footer": { "tabs": { "style": { "background": "#ffffff", "color:disabled": "#cecece", "color": "#cecece" }, "items": [ { "image": "file://back.png", "text": "Zurück", "action": { "type": "$back" } }, { "image": "file://search-interface-symbol.png", "text": "Suche", "action": { "type": "$href", "options": { "url": "file://start.json", "options": { "url": "https://www.google.com" } } }
}, { "image": "file://user.png", "text": "Konto", "action": { "type": "$href", "options": { "url": "file://start.json", "options": { "url": "https://google.com" } } } } ] } } } } } }
}
I hope anyone can help my with that.
Hello,
i have a problem, i use a webcontainer as background. To navigate back in the site i am using $back. It is all ok until i go back up to the starting page (URL String) . Then the app starts to loop and terminate if i click anything.
Thats the code:
// file://start.json
{ "$jason": { "head": { "title": "SFVM", "actions": { "$foreground": { "type": "$reload" }, "$load": { "type": "$set", "options": { "url": [{ "{{#if $params && 'url' in $params && String($params.url).includes('google.com')}}": "{{$params.url}}" }, { "{{#elseif $params && 'url' in $params}}": "{{$params.url}}" }, { "{{#else}}": "https://www.google.com/" }] }, "success": { "type": "$render" } }, "navigate": { "type": "$href", "options": { "url": "file://start.json", "options": { "url": "{{$jason.url}}" } } } }, "templates": { "body": { "header": { "title": "{{$get.url}}" }, "background": { "type": "html", "url": "{{$get.url}}", "style": { "background": "#ffffff", "progress": "rgba(0,0,0,0)" } "action": { "trigger": "navigate" } }, "footer": { "tabs": { "style": { "background": "#ffffff", "color:disabled": "#cecece", "color": "#cecece" }, "items": [ { "image": "file://back.png", "text": "Zurück", "action": { "type": "$back" } }, { "image": "file://search-interface-symbol.png", "text": "Suche", "action": { "type": "$href", "options": { "url": "file://start.json", "options": { "url": "https://www.google.com" } } }
}
I hope anyone can help my with that.