added launcher files to ~/.config/launcher
This commit is contained in:
parent
bb8fd366dd
commit
301c282125
buildroot-v86/board/v86/rootfs_overlay/root
dist
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
cm /root/manual.md
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
a-gltf-model https://coderofsalvation.github.io/xrsh-media/assets/background.glb
|
|
@ -27,19 +27,37 @@ cd(){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# get latest xrfragments to support interactive models
|
test -f /root/.boot || {
|
||||||
require https://xrfragment.org/dist/xrfragment.aframe.js
|
|
||||||
|
|
||||||
# start index.js if /dev/browser/js filesize is not great than 0
|
touch /root/.boot # make sure we run below once
|
||||||
if [ ! -s /dev/browser/js ]; then
|
|
||||||
chmod +x /mnt/root/index.js && /mnt/root/index.js | grep -v undefined
|
|
||||||
fi
|
|
||||||
|
|
||||||
# start index.html if /dev/browser/html filesize is not great than 0
|
# add menu items
|
||||||
if [ ! -s /dev/browser/html ]; then
|
find /root/.config/launcher -type f | while read item; do
|
||||||
chmod +x /mnt/root/index.html && /mnt/root/index.html
|
js '
|
||||||
fi
|
let term = document.querySelector("[isoterminal]").components.isoterminal.term
|
||||||
|
launcher.register({
|
||||||
|
name: "'$(basename $item)'",
|
||||||
|
cb: () => term.exec("'$item'")
|
||||||
|
})
|
||||||
|
return "'$item'"
|
||||||
|
'
|
||||||
|
done > /tmp/log
|
||||||
|
|
||||||
# uncomment to set location (3D scene file [with XR Fragments] )
|
# get latest xrfragments to support interactive models
|
||||||
#require https://xrfragment.org/index.glb
|
require https://xrfragment.org/dist/xrfragment.aframe.js
|
||||||
#require https://coderofsalvation.github.io/xrsh-media/assets/background.glb
|
|
||||||
|
# start index.js if /dev/browser/js filesize is not great than 0
|
||||||
|
if [ ! -s /dev/browser/js ]; then
|
||||||
|
chmod +x /mnt/root/index.js && /mnt/root/index.js | grep -v undefined
|
||||||
|
fi
|
||||||
|
|
||||||
|
# start index.html if /dev/browser/html filesize is not great than 0
|
||||||
|
if [ ! -s /dev/browser/html ]; then
|
||||||
|
chmod +x /mnt/root/index.html && /mnt/root/index.html
|
||||||
|
fi
|
||||||
|
|
||||||
|
# uncomment to set location (3D scene file [with XR Fragments] )
|
||||||
|
#require https://xrfragment.org/index.glb
|
||||||
|
#require https://coderofsalvation.github.io/xrsh-media/assets/background.glb
|
||||||
|
#
|
||||||
|
}
|
||||||
|
|
|
@ -195,14 +195,7 @@ AFRAME.registerComponent('codemirror', {
|
||||||
"form_factor": "narrow"
|
"form_factor": "narrow"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"help":`
|
"help": "Codemirror is a popular editor https://codemirror.net/5/doc/manual.html"
|
||||||
Helloworld application
|
|
||||||
|
|
||||||
This is a help file which describes the application.
|
|
||||||
It will be rendered thru troika text, and will contain
|
|
||||||
headers based on non-punctualized lines separated by linebreaks,
|
|
||||||
in above's case "\nHelloworld application\n" will qualify as header.
|
|
||||||
`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue