\ No newline at end of file
diff --git a/www/pages/list.html b/www/pages/list.html
new file mode 100644
index 0000000..5c3ba1a
--- /dev/null
+++ b/www/pages/list.html
@@ -0,0 +1,33 @@
+
+
+
\ No newline at end of file
diff --git a/www/pages/manage.html b/www/pages/manage.html
new file mode 100644
index 0000000..96aa9fa
--- /dev/null
+++ b/www/pages/manage.html
@@ -0,0 +1,57 @@
+
+
+
\ No newline at end of file
diff --git a/www/pages/map.html b/www/pages/map.html
new file mode 100644
index 0000000..93405bf
--- /dev/null
+++ b/www/pages/map.html
@@ -0,0 +1,47 @@
+
+
+
\ No newline at end of file
diff --git a/www/pages/settings.html b/www/pages/settings.html
new file mode 100644
index 0000000..018854e
--- /dev/null
+++ b/www/pages/settings.html
@@ -0,0 +1,30 @@
+
+
+
\ No newline at end of file
diff --git a/www/pages/signin.html b/www/pages/signin.html
new file mode 100644
index 0000000..03669ca
--- /dev/null
+++ b/www/pages/signin.html
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
Sign In
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Username
+
+
+
+
+
+
+
+
+
+
Password
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Sign In
+
+
+
+ Create Account
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/www/routes.js b/www/routes.js
new file mode 100644
index 0000000..a55e308
--- /dev/null
+++ b/www/routes.js
@@ -0,0 +1,57 @@
+/*
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+var routes = [
+ {
+ path: '/home',
+ name: 'home',
+ async: function (routeTo, routeFrom, resolve, reject) {
+ var total = packages.length;
+ var undelivered = countRemainingPackages();
+ var delivered = total - undelivered;
+ var percent = (total > 0 ? (delivered / packages.length) : 1);
+ resolve({
+ templateUrl: './pages/home.html'
+ }, {
+ context: {
+ packageTotal: total,
+ packageLeft: undelivered,
+ packageDelivered: delivered,
+ packagePercent: percent
+ }
+ });
+ }
+ },
+ {
+ path: '/manage',
+ url: './pages/manage.html',
+ name: 'manage'
+ },
+ {
+ path: '/list',
+ templateUrl: './pages/list.html',
+ name: 'list',
+ on: {
+ pageAfterIn: function () {
+ loadPackageList();
+ }
+ },
+ keepAlive: true
+ },
+ {
+ path: '/map',
+ url: './pages/map.html',
+ name: 'map',
+ keepAlive: true,
+ on: {
+ pageAfterIn: function () {
+ if (map == null) {
+ createMap();
+ }
+ }
+ }
+ }
+];
\ No newline at end of file
diff --git a/www/yarn.lock b/www/yarn.lock
index 8b16fdc..f1d6fc8 100644
--- a/www/yarn.lock
+++ b/www/yarn.lock
@@ -2,6 +2,23 @@
# yarn lockfile v1
+dom7@^2.1.3:
+ version "2.1.3"
+ resolved "https://registry.yarnpkg.com/dom7/-/dom7-2.1.3.tgz#a736f9c3bfbc4ca039a81cd095f97d1d7f3de19c"
+ integrity sha512-QTxHHDox+M6ZFz1zHPAHZKI3JOHY5iY4i9BK2uctlggxKQwRhO3q3HHFq1BKsT25Bm/ySSj70K6Wk/G4bs9rMQ==
+ dependencies:
+ ssr-window "^1.0.1"
+
+framework7@^4.4.10:
+ version "4.4.10"
+ resolved "https://registry.yarnpkg.com/framework7/-/framework7-4.4.10.tgz#881ac203ba6ac0616d62dbef8f3d4ab8241fceee"
+ integrity sha512-9dTanW9lWdYel2letnHS+1VQ/h/xyHi+F6FYWZXRNIIizT18EXshZOQcL5hS6LkzIIb5E+s+rPiu5sIO7g6LBg==
+ dependencies:
+ dom7 "^2.1.3"
+ path-to-regexp "^3.0.0"
+ ssr-window "^1.0.1"
+ template7 "^1.4.2"
+
jquery@^3.4.1:
version "3.4.1"
resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.4.1.tgz#714f1f8d9dde4bdfa55764ba37ef214630d80ef2"
@@ -23,3 +40,18 @@ leaflet@>=0.7.0, leaflet@^1.5.1:
version "1.5.1"
resolved "https://registry.yarnpkg.com/leaflet/-/leaflet-1.5.1.tgz#9afb9d963d66c870066b1342e7a06f92840f46bf"
integrity sha512-ekM9KAeG99tYisNBg0IzEywAlp0hYI5XRipsqRXyRTeuU8jcuntilpp+eFf5gaE0xubc9RuSNIVtByEKwqFV0w==
+
+path-to-regexp@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-3.0.0.tgz#c981a218f3df543fa28696be2f88e0c58d2e012a"
+ integrity sha512-ZOtfhPttCrqp2M1PBBH4X13XlvnfhIwD7yCLx+GoGoXRPQyxGOTdQMpIzPSPKXAJT/JQrdfFrgdJOyAzvgpQ9A==
+
+ssr-window@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/ssr-window/-/ssr-window-1.0.1.tgz#30752a6a4666e7767f0b7e6aa6fc2fdbd0d9b369"
+ integrity sha512-dgFqB+f00LJTEgb6UXhx0h+SrG50LJvti2yMKMqAgzfUmUXZrLSv2fjULF7AWGwK25EXu8+smLR3jYsJQChPsg==
+
+template7@^1.4.2:
+ version "1.4.2"
+ resolved "https://registry.yarnpkg.com/template7/-/template7-1.4.2.tgz#62f32959361e455ec171ef9ef33d29ca7130e009"
+ integrity sha512-eoKnScBMDk7lyj7+iCzKbxGiSLLlQk0DNvmclyJuMCUKxy9JrFuAB+GD5iplF4WiQPtMdI06CHHks3avL22JXA==