-
- {{#unless homeloaded}}
- {{/unless}}
\ No newline at end of file
diff --git a/www/routes.js b/www/routes.js
index f238c45..ae72772 100644
--- a/www/routes.js
+++ b/www/routes.js
@@ -8,8 +8,25 @@
var routes = [
{
path: '/home',
- templateUrl: './pages/home.html',
- name: 'home'
+ name: 'home',
+ async: function (routeTo, routeFrom, resolve, reject) {
+ notes.load(function () {
+ console.log("Loading");
+ notes.fixAll();
+ var notecards = notes.getAll();
+ if (routeFrom.name == "home") {
+ app.ptr.done();
+ }
+ resolve({
+ templateUrl: './pages/home.html',
+ reloadCurrent: (routeFrom.name == "home")
+ }, {
+ context: {
+ notecards: notecards
+ }
+ });
+ });
+ }
},
{
path: '/credits',
@@ -20,5 +37,5 @@ var routes = [
path: '/editnote',
templateUrl: './pages/editnote.html',
name: 'editnote'
- },
+ }
];
\ No newline at end of file
diff --git a/www/yarn.lock b/www/yarn.lock
index 12de718..e2873e3 100644
--- a/www/yarn.lock
+++ b/www/yarn.lock
@@ -7,6 +7,11 @@
resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-free/-/fontawesome-free-5.6.3.tgz#61c122c420d7a91613f393d6a06e5a4c6ae6abf3"
integrity sha512-s5PLdI9NYgjBvfrv6rhirPHlAHWx+Sfo/IjsAeiXYfmemC/GSjwsyz1wLnGPazbLPXWfk62ks980o9AmsxYUEQ==
+array-parallel@^0.1.3:
+ version "0.1.3"
+ resolved "https://registry.yarnpkg.com/array-parallel/-/array-parallel-0.1.3.tgz#8f785308926ed5aa478c47e64d1b334b6c0c947d"
+ integrity sha1-j3hTCJJu1apHjEfmTRszS2wMlH0=
+
codemirror-spell-checker@1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/codemirror-spell-checker/-/codemirror-spell-checker-1.1.2.tgz#1c660f9089483ccb5113b9ba9ca19c3f4993371e"
@@ -60,11 +65,26 @@ marked@^0.6.0:
resolved "https://registry.yarnpkg.com/marked/-/marked-0.6.0.tgz#a18d01cfdcf8d15c3c455b71c8329e5e0f01faa1"
integrity sha512-HduzIW2xApSXKXJSpCipSxKyvMbwRRa/TwMbepmlZziKdH8548WSoDP4SxzulEKjlo8BE39l+2fwJZuRKOln6g==
+matches-selector@^1.0.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/matches-selector/-/matches-selector-1.2.0.tgz#d1814e7e8f43e69d22ac33c9af727dc884ecf12a"
+ integrity sha512-c4vLwYWyl+Ji+U43eU/G5FwxWd4ZH0ePUsFs5y0uwD9HUEFBXUQ1zUUan+78IpRD+y4pUfG0nAzNM292K7ItvA==
+
path-to-regexp@^2.4.0:
version "2.4.0"
resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-2.4.0.tgz#35ce7f333d5616f1c1e1bfe266c3aba2e5b2e704"
integrity sha512-G6zHoVqC6GGTQkZwF4lkuEyMbVOjoBKAEybQUypI1WTkqinCOrq2x6U2+phkJ1XsEMTy4LjtwPI7HW+NVrRR2w==
+shufflejs@^5.2.1:
+ version "5.2.1"
+ resolved "https://registry.yarnpkg.com/shufflejs/-/shufflejs-5.2.1.tgz#ebe68361aae24f28d597a2c71eaf58f340ee9f1a"
+ integrity sha512-qUu/1i4QHMUy/RQMH/FlNoXdliWTa5bWt55A/DeRRq7gD4kCJCMTCQK2k+r0buSREwTaZGLLu7c6E5dMueV0VA==
+ dependencies:
+ array-parallel "^0.1.3"
+ matches-selector "^1.0.0"
+ throttleit "^1.0.0"
+ tiny-emitter "^2.0.1"
+
ssr-window@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/ssr-window/-/ssr-window-1.0.1.tgz#30752a6a4666e7767f0b7e6aa6fc2fdbd0d9b369"
@@ -75,6 +95,16 @@ template7@^1.4.0:
resolved "https://registry.yarnpkg.com/template7/-/template7-1.4.0.tgz#d400af49ea56fc08cc835a20e6167a26b288fb1b"
integrity sha512-NMJWbKIoowHixUYIHq+DLvcBM47t/oZ/xfvBbYuMusjjS6BUjC02+gLWctntJuTTiEqILfefBNCXbfp/EMt/zQ==
+throttleit@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/throttleit/-/throttleit-1.0.0.tgz#9e785836daf46743145a5984b6268d828528ac6c"
+ integrity sha1-nnhYNtr0Z0MUWlmEtiaNgoUorGw=
+
+tiny-emitter@^2.0.1:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/tiny-emitter/-/tiny-emitter-2.0.2.tgz#82d27468aca5ade8e5fd1e6d22b57dd43ebdfb7c"
+ integrity sha512-2NM0auVBGft5tee/OxP4PI3d8WItkDM+fPnaRAVo6xTDI2knbz9eC5ArWGqtGlYqiH3RU5yMpdyTTO7MguC4ow==
+
typo-js@*:
version "1.0.3"
resolved "https://registry.yarnpkg.com/typo-js/-/typo-js-1.0.3.tgz#54d8ebc7949f1a7810908b6002c6841526c99d5a"