diff --git a/www/assets/images/bgs/toolbox_scanner.svg b/www/assets/images/bgs/toolbox_scanner.svg new file mode 100644 index 0000000..a08714f --- /dev/null +++ b/www/assets/images/bgs/toolbox_scanner.svg @@ -0,0 +1,352 @@ + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/www/assets/images/bgs/toolbox_track.svg b/www/assets/images/bgs/toolbox_track.svg new file mode 100644 index 0000000..f0a3b68 --- /dev/null +++ b/www/assets/images/bgs/toolbox_track.svg @@ -0,0 +1,331 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/www/pages/home.html b/www/pages/home.html index b389ffe..317fe2a 100644 --- a/www/pages/home.html +++ b/www/pages/home.html @@ -28,19 +28,23 @@ {{#if oldui}} -
- +
+
+
+ +
+
{{else}}
diff --git a/www/pages/toolbox.html b/www/pages/toolbox.html index 47686d6..9c640a0 100644 --- a/www/pages/toolbox.html +++ b/www/pages/toolbox.html @@ -17,61 +17,43 @@
+ {{#if oldui}}
+ {{else}} +
+
+
+ {{#each pages}} +
+
+
+

+
+ {{title}} +
+
+
+ {{/each}} +
+
+
+ {{/if}}
\ No newline at end of file diff --git a/www/routes.js b/www/routes.js index 8cb9c48..a8285a3 100644 --- a/www/routes.js +++ b/www/routes.js @@ -218,8 +218,54 @@ var routes = [ }, { path: '/toolbox', - url: './pages/toolbox.html', name: 'toolbox', + async: function (routeTo, routeFrom, resolve, reject) { + resolve({ + templateUrl: './pages/toolbox.html' + }, { + context: { + oldui: inStorage("oldhomeui") && getStorage("oldhomeui") == "true", + pages: [ + { + title: "Broken Scanner", + href: "/toolbox/scanner", + icon: "fas fa-barcode", + bg: "toolbox_scanner.svg" + }, + { + title: "Track Item", + href: "/toolbox/track", + icon: "fas fa-search", + bg: "toolbox_track.svg" + }, + { + title: "Weather Lookahead", + href: "/toolbox/weather", + icon: "fas fa-cloud-sun", + bg: "toolbox_weather.svg" + }, + { + title: "Address Lookup", + href: "/toolbox/addrlookup", + icon: "fas fa-search-location", + bg: "toolbox_addrlookup.svg" + }, + { + title: "Activity Log", + href: "/toolbox/log", + icon: "fas fa-book", + bg: "toolbox_log.svg" + }, + { + title: "Share Item List", + href: "/toolbox/sharelist", + icon: "fas fa-share-alt", + bg: "toolbox_sharelist.svg" + } + ] + } + }); + }, routes: [ { path: '/scanner',