Skip to content

Sandboxed environment for testing dynamic web applications.

License

Notifications You must be signed in to change notification settings

codeworksdev/digital-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

29 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Digital Sandbox

Cross-browser app launcher and device toolbar for showing responsive, mobile first web applications on the web or offline. Powered by Mochi and Bootstrap.

v2.1

The digital sandbox is a portable (i.e., cross-browser) app launcher and device toolbar that allows you to easily display a collection of applications and websites in a programmable iFrame window. It's inspired by Chrome DevTools' device mode feature, but with complete portability (i.e., can be used offline or online in most Internet browsers).

What is Mochi?

Mochi is a ready-to-deploy HTML5 boilerplate framework that runs on Bootstrap, but adds tons of new features, with a strong focus on offline web applications without all the limitations. It achieves this goal by fully integrating and maintaining offline versions of popular libraries that have been out in the wild for years.

Usage

To use the digital sandbox, simply download the latest distribution package and extract the contents of the included dist folder to the root of your website directory (e.g., /var/www/html in some systems). That's it! You now have a fully functioning and completely portable device toolbar installed on your website. The digital sandbox is designed to run either online or offline, depending on your desired configuration.

What's Included

Within the download you'll find the following directories and files, logically grouping common assets and providing both compiled and minified variations for all libraries. You'll see something like this:

dist/
β”œβ”€β”€ bootstrap/
β”‚   β”œβ”€β”€ css/
β”‚   β”‚   β”œβ”€β”€ bootstrap.css
β”‚   β”‚   β”œβ”€β”€ bootstrap.min.css
β”‚   β”‚   β”œβ”€β”€ bootstrap-grid.css
β”‚   β”‚   β”œβ”€β”€ bootstrap-grid.min.css
β”‚   β”‚   β”œβ”€β”€ bootstrap-reboot.css
β”‚   β”‚   └── bootstrap-reboot.min.css
β”‚   β”‚
β”‚   └── js/
β”‚       β”œβ”€β”€ bootstrap.bundle.js
β”‚       β”œβ”€β”€ bootstrap.bundle.min.js
β”‚       β”œβ”€β”€ bootstrap.js
β”‚       └── bootstrap.min.js
β”‚
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ apps/
β”‚   β”‚   β”œβ”€β”€ demos/
β”‚   β”‚   β”‚   └── starter-template/
β”‚   β”‚   β”‚       └── index.html
β”‚   β”‚   β”‚
β”‚   β”‚   └── README.txt
β”‚   β”‚
β”‚   β”œβ”€β”€ css/
β”‚   β”‚   β”œβ”€β”€ print.css
β”‚   β”‚   └── style.css
β”‚   β”‚
β”‚   β”œβ”€β”€ img/
β”‚   β”‚   β”œβ”€β”€ brand/
β”‚   β”‚   β”‚   β”œβ”€β”€ launcher-icon-1x.pmg
β”‚   β”‚   β”‚   └── launcher-icon-4x.pmg
β”‚   β”‚   β”‚
β”‚   β”‚   └── web/
β”‚   β”‚       β”œβ”€β”€ devices/
β”‚   β”‚       β”‚   β”œβ”€β”€ apple/
β”‚   β”‚       β”‚   β”‚   β”œβ”€β”€ ipad.png
β”‚   β”‚       β”‚   β”‚   β”œβ”€β”€ ipad_air.png
β”‚   β”‚       β”‚   β”‚   β”œβ”€β”€ ipad_air-l.png
β”‚   β”‚       β”‚   β”‚   β”œβ”€β”€ ipad_mini.png
β”‚   β”‚       β”‚   β”‚   β”œβ”€β”€ ipad_mini-l.png
β”‚   β”‚       β”‚   β”‚   β”œβ”€β”€ ipad_pro_9_7.png
β”‚   β”‚       β”‚   β”‚   β”œβ”€β”€ ipad_pro_9_7-l.png
β”‚   β”‚       β”‚   β”‚   β”œβ”€β”€ ipad_pro_12_9.png
β”‚   β”‚       β”‚   β”‚   β”œβ”€β”€ ipad_pro_12_9-l.png
β”‚   β”‚       β”‚   β”‚   β”œβ”€β”€ ipad-l.png
β”‚   β”‚       β”‚   β”‚   β”œβ”€β”€ iphone_5s.png
β”‚   β”‚       β”‚   β”‚   β”œβ”€β”€ iphone_5s-l.png
β”‚   β”‚       β”‚   β”‚   β”œβ”€β”€ iphone_6plus.png
β”‚   β”‚       β”‚   β”‚   └── iphone_6plus-l.png
β”‚   β”‚       β”‚   β”‚
β”‚   β”‚       β”‚   β”œβ”€β”€ google/
β”‚   β”‚       β”‚   β”‚   β”œβ”€β”€ nexus_7.png
β”‚   β”‚       β”‚   β”‚   β”œβ”€β”€ nexus_7-l.png
β”‚   β”‚       β”‚   β”‚   β”œβ”€β”€ nexus_10.png
β”‚   β”‚       β”‚   β”‚   └── nexus_10-l.png
β”‚   β”‚       β”‚   β”‚
β”‚   β”‚       β”‚   └── samsung/
β”‚   β”‚       β”‚       β”œβ”€β”€ galaxy_s5.png
β”‚   β”‚       β”‚       └── galaxy_s5-l.png
β”‚   β”‚       β”‚
β”‚   β”‚       β”œβ”€β”€ walls/
β”‚   β”‚       β”‚   β”œβ”€β”€ bulbs.png
β”‚   β”‚       β”‚   β”œβ”€β”€ desk.png
β”‚   β”‚       β”‚   └── landscape.png
β”‚   β”‚       β”‚
β”‚   β”‚       └── tile.png
β”‚   β”‚
β”‚   β”œβ”€β”€ js/
β”‚   β”‚   β”œβ”€β”€ config.js
β”‚   β”‚   β”œβ”€β”€ onload.js
β”‚   β”‚   └── onload.min.js
β”‚   β”‚
β”‚   β”œβ”€β”€ less/
β”‚   β”‚   β”œβ”€β”€ _2dppx_375up.less
β”‚   β”‚   β”œβ”€β”€ _2dppx_425up.less
β”‚   β”‚   β”œβ”€β”€ _2dppx_480up.less
β”‚   β”‚   β”œβ”€β”€ _2dppx_576up.less
β”‚   β”‚   β”œβ”€β”€ _2dppx_640up.less
β”‚   β”‚   β”œβ”€β”€ _2dppx_750up.less
β”‚   β”‚   β”œβ”€β”€ _2dppx_768up.less
β”‚   β”‚   β”œβ”€β”€ _2dppx_970up.less
β”‚   β”‚   β”œβ”€β”€ _2dppx_992up.less
β”‚   β”‚   β”œβ”€β”€ _2dppx_1020up.less
β”‚   β”‚   β”œβ”€β”€ _2dppx_1024up.less
β”‚   β”‚   β”œβ”€β”€ _2dppx_1170up.less
β”‚   β”‚   β”œβ”€β”€ _2dppx_1200up.less
β”‚   β”‚   β”œβ”€β”€ _2dppx_1440up.less
β”‚   β”‚   β”œβ”€β”€ _2dppx_1560up.less
β”‚   β”‚   β”œβ”€β”€ _2dppx_2560up.less
β”‚   β”‚   β”œβ”€β”€ _2dppx_base.less
β”‚   β”‚   β”œβ”€β”€ _375up.less
β”‚   β”‚   β”œβ”€β”€ _425up.less
β”‚   β”‚   β”œβ”€β”€ _480up.less
β”‚   β”‚   β”œβ”€β”€ _576up.less
β”‚   β”‚   β”œβ”€β”€ _640up.less
β”‚   β”‚   β”œβ”€β”€ _750up.less
β”‚   β”‚   β”œβ”€β”€ _768up.less
β”‚   β”‚   β”œβ”€β”€ _970up.less
β”‚   β”‚   β”œβ”€β”€ _992up.less
β”‚   β”‚   β”œβ”€β”€ _1020up.less
β”‚   β”‚   β”œβ”€β”€ _1024up.less
β”‚   β”‚   β”œβ”€β”€ _1170up.less
β”‚   β”‚   β”œβ”€β”€ _1200up.less
β”‚   β”‚   β”œβ”€β”€ _1440up.less
β”‚   β”‚   β”œβ”€β”€ _1560up.less
β”‚   β”‚   β”œβ”€β”€ _2560up.less
β”‚   β”‚   β”œβ”€β”€ _base.less
β”‚   β”‚   β”œβ”€β”€ _mixins.less
β”‚   β”‚   β”œβ”€β”€ _notouch.less
β”‚   β”‚   β”œβ”€β”€ _print.less
β”‚   β”‚   β”œβ”€β”€ print.less
β”‚   β”‚   └── style.less
β”‚   β”‚
β”‚   └── themes/
β”‚       └── default/
β”‚           β”œβ”€β”€ css/
β”‚           β”‚   β”œβ”€β”€ print.css
β”‚           β”‚   └── style.css
β”‚           β”‚
β”‚           β”œβ”€β”€ less/
β”‚           β”‚   β”œβ”€β”€ _2dppx_375up.less
β”‚           β”‚   β”œβ”€β”€ _2dppx_425up.less
β”‚           β”‚   β”œβ”€β”€ _2dppx_480up.less
β”‚           β”‚   β”œβ”€β”€ _2dppx_576up.less
β”‚           β”‚   β”œβ”€β”€ _2dppx_640up.less
β”‚           β”‚   β”œβ”€β”€ _2dppx_750up.less
β”‚           β”‚   β”œβ”€β”€ _2dppx_768up.less
β”‚           β”‚   β”œβ”€β”€ _2dppx_970up.less
β”‚           β”‚   β”œβ”€β”€ _2dppx_992up.less
β”‚           β”‚   β”œβ”€β”€ _2dppx_1020up.less
β”‚           β”‚   β”œβ”€β”€ _2dppx_1024up.less
β”‚           β”‚   β”œβ”€β”€ _2dppx_1170up.less
β”‚           β”‚   β”œβ”€β”€ _2dppx_1200up.less
β”‚           β”‚   β”œβ”€β”€ _2dppx_1440up.less
β”‚           β”‚   β”œβ”€β”€ _2dppx_1560up.less
β”‚           β”‚   β”œβ”€β”€ _2dppx_2560up.less
β”‚           β”‚   β”œβ”€β”€ _2dppx_base.less
β”‚           β”‚   β”œβ”€β”€ _375up.less
β”‚           β”‚   β”œβ”€β”€ _425up.less
β”‚           β”‚   β”œβ”€β”€ _480up.less
β”‚           β”‚   β”œβ”€β”€ _576up.less
β”‚           β”‚   β”œβ”€β”€ _640up.less
β”‚           β”‚   β”œβ”€β”€ _750up.less
β”‚           β”‚   β”œβ”€β”€ _768up.less
β”‚           β”‚   β”œβ”€β”€ _970up.less
β”‚           β”‚   β”œβ”€β”€ _992up.less
β”‚           β”‚   β”œβ”€β”€ _1020up.less
β”‚           β”‚   β”œβ”€β”€ _1024up.less
β”‚           β”‚   β”œβ”€β”€ _1170up.less
β”‚           β”‚   β”œβ”€β”€ _1200up.less
β”‚           β”‚   β”œβ”€β”€ _1440up.less
β”‚           β”‚   β”œβ”€β”€ _1560up.less
β”‚           β”‚   β”œβ”€β”€ _2560up.less
β”‚           β”‚   β”œβ”€β”€ _base.less
β”‚           β”‚   β”œβ”€β”€ _mixins.less
β”‚           β”‚   β”œβ”€β”€ _notouch.less
β”‚           β”‚   β”œβ”€β”€ _print.less
β”‚           β”‚   β”œβ”€β”€ print.less
β”‚           β”‚   └── style.less
β”‚           β”‚
β”‚           └── onload.js
β”‚
β”œβ”€β”€ mochi/
β”‚   β”œβ”€β”€ css/
β”‚   β”‚   └── helpers/
β”‚   β”‚       └── animate.less/
β”‚   β”‚           └── dist/
β”‚   β”‚               β”œβ”€β”€ css/
β”‚   β”‚               β”‚   └── animate.css
β”‚   β”‚               β”‚
β”‚   β”‚               └── less/
β”‚   β”‚                   β”œβ”€β”€ _mixins.less
β”‚   β”‚                   β”œβ”€β”€ _options.less
β”‚   β”‚                   └── animate.less
β”‚   β”‚
β”‚   β”œβ”€β”€ js/
β”‚   β”‚   β”œβ”€β”€ helpers/
β”‚   β”‚   β”‚   β”œβ”€β”€ font-awesome-free/
β”‚   β”‚   β”‚   β”‚   └── js/
β”‚   β”‚   β”‚   β”‚       └── all.min.js
β”‚   β”‚   β”‚   β”‚
β”‚   β”‚   β”‚   β”œβ”€β”€ iScroll/
β”‚   β”‚   β”‚   β”‚   └── build/
β”‚   β”‚   β”‚   β”‚       β”œβ”€β”€ iscroll.js
β”‚   β”‚   β”‚   β”‚       β”œβ”€β”€ iscroll.min.js
β”‚   β”‚   β”‚   β”‚       β”œβ”€β”€ iscroll-infinite.js
β”‚   β”‚   β”‚   β”‚       β”œβ”€β”€ iscroll-infinite.min.js
β”‚   β”‚   β”‚   β”‚       β”œβ”€β”€ iscroll-lite.js
β”‚   β”‚   β”‚   β”‚       β”œβ”€β”€ iscroll-lite.min.js
β”‚   β”‚   β”‚   β”‚       β”œβ”€β”€ iscroll-probe.js
β”‚   β”‚   β”‚   β”‚       β”œβ”€β”€ iscroll-probe.min.js
β”‚   β”‚   β”‚   β”‚       β”œβ”€β”€ iscroll-zoom.js
β”‚   β”‚   β”‚   β”‚       └── iscroll-zoom.min.js
β”‚   β”‚   β”‚   β”‚
β”‚   β”‚   β”‚   β”œβ”€β”€ ViewerJS/
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ images/
β”‚   β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ kogmbh.png
β”‚   β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ nlnet.png
β”‚   β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ texture.png
β”‚   β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ toolbarButton-download.png
β”‚   β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ toolbarButton-fullscreen.png
β”‚   β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ toolbarButton-menuArrows.png
β”‚   β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ toolbarButton-pageDown.png
β”‚   β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ toolbarButton-pageUp.png
β”‚   β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ toolbarButton-presentation.png
β”‚   β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ toolbarButton-zoomIn.png
β”‚   β”‚   β”‚   β”‚   β”‚   └── toolbarButton-zoomOut.png
β”‚   β”‚   β”‚   β”‚   β”‚
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ tools/
β”‚   β”‚   β”‚   β”‚   β”‚   └── replaceByFileContents.js
β”‚   β”‚   β”‚   β”‚   β”‚
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ example.local.css
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ HeaderCompiled.html
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ HeaderCompiled.js
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ index.html
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ index-template.html
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ ODFViewerPlugin.css
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ ODFViewerPlugin.js
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ PDFViewerPlugin.css
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ PDFViewerPlugin.js
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ PluginLoader.js
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ viewer.css
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ viewer.js
β”‚   β”‚   β”‚   β”‚   └── viewerTouch.css
β”‚   β”‚   β”‚   β”‚
β”‚   β”‚   β”‚   β”œβ”€β”€ basil.min.js
β”‚   β”‚   β”‚   β”œβ”€β”€ Chart.bundle.min.js
β”‚   β”‚   β”‚   β”œβ”€β”€ clipboard.min.js
β”‚   β”‚   β”‚   β”œβ”€β”€ holder.min.js
β”‚   β”‚   β”‚   β”œβ”€β”€ modernizr-custom.js
β”‚   β”‚   β”‚   β”œβ”€β”€ popper.min.js
β”‚   β”‚   β”‚   β”œβ”€β”€ sprintf.min.js
β”‚   β”‚   β”‚   β”œβ”€β”€ underscore.string.min.js
β”‚   β”‚   β”‚   └── underscore-min.js
β”‚   β”‚   β”‚
β”‚   β”‚   β”œβ”€β”€ jquery/
β”‚   β”‚   β”‚   β”œβ”€β”€ ui/
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ images/
β”‚   β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ ui-icons_444444_256x240.png
β”‚   β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ ui-icons_555555_256x240.png
β”‚   β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ ui-icons_777620_256x240.png
β”‚   β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ ui-icons_777777_256x240.png
β”‚   β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ ui-icons_cc0000_256x240.png
β”‚   β”‚   β”‚   β”‚   β”‚   └── ui-icons_ffffff_256x240.png
β”‚   β”‚   β”‚   β”‚   β”‚
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ jquery-ui.css
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ jquery-ui.js
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ jquery-ui.min.css
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ jquery-ui.min.js
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ jquery-ui.structure.css
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ jquery-ui.structure.min.css
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ jquery-ui.theme.css
β”‚   β”‚   β”‚   β”‚   └── jquery-ui.theme.min.css
β”‚   β”‚   β”‚   β”‚
β”‚   β”‚   β”‚   └── jquery.min.js
β”‚   β”‚   β”‚
β”‚   β”‚   β”œβ”€β”€ plugins/
β”‚   β”‚   β”‚   β”œβ”€β”€ dialog/
β”‚   β”‚   β”‚   β”‚   └── dist/
β”‚   β”‚   β”‚   β”‚       β”œβ”€β”€ dialog.js
β”‚   β”‚   β”‚   β”‚       └── dialog.min.js
β”‚   β”‚   β”‚   β”‚
β”‚   β”‚   β”‚   └── veeva/
β”‚   β”‚   β”‚       └── dist/
β”‚   β”‚   β”‚           β”œβ”€β”€ veeva.js
β”‚   β”‚   β”‚           β”œβ”€β”€ veeva-library.js
β”‚   β”‚   β”‚           β”œβ”€β”€ veeva-library.min.js
β”‚   β”‚   β”‚           └── veeva.min.js
β”‚   β”‚   β”‚
β”‚   β”‚   β”œβ”€β”€ libraries.js
β”‚   β”‚   β”œβ”€β”€ mochi.js
β”‚   β”‚   └── mochi.min.js
β”‚   β”‚
β”‚   └── less/
β”‚       β”œβ”€β”€ _2dppx_375up.less
β”‚       β”œβ”€β”€ _2dppx_425up.less
β”‚       β”œβ”€β”€ _2dppx_480up.less
β”‚       β”œβ”€β”€ _2dppx_576up.less
β”‚       β”œβ”€β”€ _2dppx_640up.less
β”‚       β”œβ”€β”€ _2dppx_750up.less
β”‚       β”œβ”€β”€ _2dppx_768up.less
β”‚       β”œβ”€β”€ _2dppx_970up.less
β”‚       β”œβ”€β”€ _2dppx_992up.less
β”‚       β”œβ”€β”€ _2dppx_1020up.less
β”‚       β”œβ”€β”€ _2dppx_1024up.less
β”‚       β”œβ”€β”€ _2dppx_1170up.less
β”‚       β”œβ”€β”€ _2dppx_1200up.less
β”‚       β”œβ”€β”€ _2dppx_1440up.less
β”‚       β”œβ”€β”€ _2dppx_1560up.less
β”‚       β”œβ”€β”€ _2dppx_2560up.less
β”‚       β”œβ”€β”€ _2dppx_base.less
β”‚       β”œβ”€β”€ _375up.less
β”‚       β”œβ”€β”€ _425up.less
β”‚       β”œβ”€β”€ _480up.less
β”‚       β”œβ”€β”€ _576up.less
β”‚       β”œβ”€β”€ _640up.less
β”‚       β”œβ”€β”€ _750up.less
β”‚       β”œβ”€β”€ _768up.less
β”‚       β”œβ”€β”€ _970up.less
β”‚       β”œβ”€β”€ _992up.less
β”‚       β”œβ”€β”€ _1020up.less
β”‚       β”œβ”€β”€ _1024up.less
β”‚       β”œβ”€β”€ _1170up.less
β”‚       β”œβ”€β”€ _1200up.less
β”‚       β”œβ”€β”€ _1440up.less
β”‚       β”œβ”€β”€ _1560up.less
β”‚       β”œβ”€β”€ _2560up.less
β”‚       β”œβ”€β”€ _base.less
β”‚       β”œβ”€β”€ _mixins.less
β”‚       β”œβ”€β”€ _notouch.less
β”‚       └── _print.less
β”‚
β”œβ”€β”€ .htaccess
β”œβ”€β”€ index.html
β”œβ”€β”€ manifest.json
β”œβ”€β”€ offline.html
β”œβ”€β”€ project.appcache
β”œβ”€β”€ robots.txt
└── sw.js

API

Configuration File

The included configuration file (dist/frontend/js/config.js) is a great way to get started with using the digital sandbox. This file acts as your digital sandbox controller center, and uses special variables to organize your apps in a consistent, accessible format. Additionally, this is where you would include the basic HTML markup that allows the sandbox work to generate the app launcher screen (i.e., the inline frame). Continue reading below to learn how the standard HTML template should be structured to take full advantage of the sandbox.

Note: A full list of supported variables are listed here.

HTML Markup

First things first! After the unified configuration file is loaded and processed, the digital sandbox will determine if the included HTML body markup matches this basic structure:

<div class="row">
    <div class="col-sm-6">
        <div data-title="Demos">
            <a href="./?demos:my-first-app:v1.0/index">My First App v1.0</a>
            <a href="./?demos:my-first-app:v2.0/index">My First App v2.0</a>
            <a href="./?demos:my-first-app:v3.0/index">My First App v3.0</a>
        </div>
    </div>
    <div class="col-sm-6">
        <div data-title="Websites">
            <a href="https://google.com/">Google</a>
        </div>
    </div>
</div>

If it does, it will automatically be converted to something like this:

<div class="row">
    <div class="col-sm-6">
        <div class="ds-widget ds-widget-simple" id="ds-widget-simple-0">
            <div data-bucket="demos">
                <h1>Demos</h1>
                <table class="table table-sm table-bordered table-hover">
                    <tbody>
                        <tr>
                            <td><a target="_top" title="My First App v1.0" href="./index.html?demos:my-first-app:v1.0/index">My First App v1.0</a></td>
                            <td title="Launch Internal"><a target="_top" href="./index.html?demos:my-first-app:v1.0/index"><i class="fas fa-sign-in-alt"></i></a></td>
                            <td title="Launch External"><a target="_blank" href="http://mydomain.com/frontend/apps/demos/my-first-app/v1.0/index.html"><i class="fas fa-link"></i></a></td>
                        </tr>
                        <tr>
                            <td><a target="_top" title="My First App v2.0" href="./index.html?demos:my-first-app:v2.0/index">My First App v2.0</a></td>
                            <td title="Launch Internal"><a target="_top" href="./index.html?demos:my-first-app:v2.0/index"><i class="fas fa-sign-in-alt"></i></a></td>
                            <td title="Launch External"><a target="_blank" href="http://mydomain.com/frontend/apps/demos/my-first-app/v2.0/index.html"><i class="fas fa-link"></i></a></td>
                        </tr>
                        <tr>
                            <td><a target="_top" title="My First App v3.0" href="./index.html?demos:my-first-app:v3.0/index">My First App v3.0</a></td>
                            <td title="Launch Internal"><a target="_top" href="./index.html?demos:my-first-app:v3.0/index"><i class="fas fa-sign-in-alt"></i></a></td>
                            <td title="Launch External"><a target="_blank" href="http://mydomain.com/frontend/apps/demos/my-first-app/v3.0/index.html"><i class="fas fa-link"></i></a></td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <div class="col-sm-6">
        <div class="ds-widget ds-widget-simple" id="ds-widget-simple-1">
            <div data-bucket="websites">
                <h1>Websites</h1>
                <table class="table table-sm table-bordered table-hover">
                    <tbody>
                        <tr>
                            <td><a target="_blank" title="Google" href="https://google.com/">Google</a></td>
                            <td title="Launch Internal"><span class="text-muted"><i class="fas fa-sign-in-alt"></i></span></td>
                            <td title="Launch External"><a target="_blank" href="https://google.com/"><i class="fas fa-link"></i></a></td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>

And there you have it! We call this type of conversion "widgetization of the app directory". Once widgetized, the digital sandbox will organize your apps in a structured format that's usable by most modern browsers. You can define which widget you'd like to use by modifying the LAUNCHER_WIDGET_NAME variable in the unified configuration file. See below for a list of supported widgets.

Supported Widgets

The following widgets are supported in the standard distribution package:

Widget Name Description
simple Organizes your apps in a basic table structure. This is the default widget.
accordion Organizes your apps as Bootstrap-powered accordions.

Query String Parameters

In addition to allowing you to widgetize the app directory, the digital sandbox also supports a unique query string format for customizing the way your apps are appear within the iFrame window. Consider the following example:

FOR EXAMPLE

To launch dist/frontend/apps/demos/my-first-app/v1.0/home.html as an iPad device in portrait orientation, you would navigate to the following URL:

./index.html?demos:my-first-app:v1.0/home~ipad:p|demos&title=Welcome

The URL above would produce an iFrame window configured as:

  1. a wrapped window in a device image referenced as ipad (i.e., a standard iPad), and
  2. with the ipad device image set to portrait orientation, and
  3. ensuring the digital sandbox is aware the app is located under the demos folder, which would
  4. allow the sandbox to refer back to the folder when the user interacts with the toolbar, and
  5. making sure the app link always refreshes the iFrame parent window, and
  6. the home.html file in dist/frontend/apps/demos/my-first-app/v1.0 is opened, and
  7. ensure the browser tab label is set to "Welcome".

Further Reading

Because the digital sandbox is built with Bootstrap, learning to use it is as easy as digging into their official docs and mastering the awesome features provided by the framework. We encourage you to head on over to the official Bootstrap documentation to learn like a pro. Happy coding!


License

This project is licensed under the MIT license. (http://opensource.org/licenses/MIT)

About

Sandboxed environment for testing dynamic web applications.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published