+
Save a copy of your favorite pages, forever.
- You can use the form above or add this Save in Frost bookmarklet to your browser's bookmarks.
+ You can use the form above or add this bookmarklet to your browser's bookmarks.
Activating it will save the page you're looking at without having to open up Frost!
diff --git a/client/dist/components/snapshots-list.js b/client/dist/components/snapshots-list.js
new file mode 100644
index 0000000..bba9835
--- /dev/null
+++ b/client/dist/components/snapshots-list.js
@@ -0,0 +1,51 @@
+System.register(['aurelia-framework', 'services/SnapshotsDB'], function (_export) {
+ 'use strict';
+
+ var inject, SnapshotsDB, SnapshotsList;
+
+ var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
+
+ return {
+ setters: [function (_aureliaFramework) {
+ inject = _aureliaFramework.inject;
+ }, function (_servicesSnapshotsDB) {
+ SnapshotsDB = _servicesSnapshotsDB.SnapshotsDB;
+ }],
+ execute: function () {
+ SnapshotsList = (function () {
+ function SnapshotsList(SnapshotsDB) {
+ _classCallCheck(this, _SnapshotsList);
+
+ this.snapshots = [];
+ this.loaded = false;
+ this.href = '';
+
+ this.SnapshotsDB = SnapshotsDB;
+ this.href = window.location.href;
+ }
+
+ _createClass(SnapshotsList, [{
+ key: 'created',
+ value: function created() {
+ this.snapshots = this.SnapshotsDB.getAll();
+ this.loaded = true;
+ }
+ }, {
+ key: 'removeSnapshot',
+ value: function removeSnapshot(snapshot) {
+ this.SnapshotsDB.remove(snapshot);
+ }
+ }]);
+
+ var _SnapshotsList = SnapshotsList;
+ SnapshotsList = inject(SnapshotsDB)(SnapshotsList) || SnapshotsList;
+ return Snapsh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REJ9IGZyb20gJ3NlcnZpY2VzL1NuYXBzaG90c0RCJztcclxuXHJcbkBpbmplY3QoU25hcHNob3RzREIpXHJcbmV4cG9ydCBjbGFzcyBTbmFwc2hvdHNMaXN0e1xyXG5cdHNuYXBzaG90cyA9IFtdO1xyXG5cdGxvYWRlZCA9IGZhbHNlO1xyXG5cdGhyZWYgPSAnJztcclxuXHJcblx0Y29uc3RydWN0b3IoU25hcHNob3RzREIpe1xyXG5cdFx0dGhpcy5TbmFwc2hvdHNEQiA9IFNuYXBzaG90c0RCO1xyXG5cdFx0dGhpcy5ocmVmID0gd2luZG93LmxvY2F0aW9uLmhyZWY7XHJcblx0fVxyXG5cdGNyZWF0ZWQoKXtcclxuXHRcdHRoaXMuc25hcHNob3RzID0gdGhpcy5TbmFwc2hvdHNEQi5nZXRBbGwoKTtcclxuXHRcdHRoaXMubG9hZGVkID0gdHJ1ZTtcclxuXHR9XHJcblx0cmVtb3ZlU25hcHNob3Qoc25hcHNob3Qpe1xyXG5cdFx0dGhpcy5TbmFwc2hvdHNEQi5yZW1vdmUoc25hcHNob3QpO1xyXG5cdH1cclxufVxyXG5cclxuIl0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
diff --git a/client/dist/services/SnapshotsDB.js b/client/dist/services/SnapshotsDB.js
new file mode 100644
index 0000000..8d5c690
--- /dev/null
+++ b/client/dist/services/SnapshotsDB.js
@@ -0,0 +1,118 @@
+System.register(['aurelia-framework', 'aurelia-fetch-client'], function (_export) {
+ 'use strict';
+
+ var inject, HttpClient, SnapshotsDB;
+
+ var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
+
+ return {
+ setters: [function (_aureliaFramework) {
+ inject = _aureliaFramework.inject;
+ }, function (_aureliaFetchClient) {
+ HttpClient = _aureliaFetchClient.HttpClient;
+ }],
+ execute: function () {
+ SnapshotsDB = (function () {
+ function SnapshotsDB(http) {
+ var _this = this;
+
+ _classCallCheck(this, _SnapshotsDB);
+
+ this.snapshots = [];
+
+ http.configure(function (config) {
+ config.useStandardConfiguration();
+ });
+
+ this.http = http;
+
+ this.http.fetch('snapshots').then(function (response) {
+ return response.json();
+ }).then(function (snapshots) {
+ snapshots.forEach(function (snapshot) {
+ _this.snapshots.push(snapshot);
+ });
+ });
+ }
+
+ _createClass(SnapshotsDB, [{
+ key: 'getAll',
+ value: function getAll() {
+ return this.snapshots;
+ }
+ }, {
+ key: 'add',
+ value: function add(url) {
+ var _this2 = this;
+
+ var myHeaders = new Headers();
+ myHeaders.append('Content-Type', 'application/json');
+ return this.http.fetch('snapshot', {
+ method: 'post',
+ headers: myHeaders,
+ body: JSON.stringify({
+ url: url
+ })
+ }).then(function (response) {
+ return response.json();
+ }).then(function (snapshot) {
+ _this2.snapshots.push(snapshot);
+ if (!snapshot.processed) _this2.observeSnapshotUntilProcessed(snapshot);
+ });
+ }
+ }, {
+ key: 'remove',
+ value: function remove(snapshot) {
+ var _this3 = this;
+
+ this.http.fetch('snapshot/' + snapshot._id, {
+ method: 'DELETE'
+ }).then(function (response) {
+ _this3.snapshots.splice(_this3.snapshots.indexOf(snapshot), 1);
+ });
+ }
+ }, {
+ key: 'get',
+ value: function get(id) {
+ return this.http.fetch('snapshot/' + id, {
+ method: 'GET'
+ }).then(function (response) {
+ return response.json();
+ });
+ }
+ }, {
+ key: 'getOne',
+ value: function getOne(id) {
+ return this.http.fetch('snapshots/' + id, {
+ method: 'GET'
+ }).then(function (response) {
+ return response.json();
+ });
+ }
+ }, {
+ key: 'observeSnapshotUntilProcessed',
+ value: function observeSnapshotUntilProcessed(snapshot) {
+ var _this4 = this;
+
+ setTimeout(function () {
+ _this4.getOne(snapshot._id).then(function (response) {
+ if (!response.processed) _this4.observeSnapshotUntilProcessed(snapshot);else {
+ _this4.snapshots.splice(_this4.snapshots.indexOf(snapshot), 1, response);
+ }
+ });
+ }, 1000);
+ }
+ }]);
+
+ var _SnapshotsDB = SnapshotsDB;
+ SnapshotsDB = inject(HttpClient)(SnapshotsDB) || SnapshotsDB;
+ return SnapshotsDB;
+ })();
+
+ _export('SnapshotsDB', SnapshotsDB);
+ }
+ };
+});
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNlcnZpY2VzL1NuYXBzaG90c0RCLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozt5QkFJYSxXQUFXOzs7Ozs7Ozs4QkFKaEIsTUFBTTs7b0NBQ04sVUFBVTs7O0FBR0wsY0FBVztBQUdaLGFBSEMsV0FBVyxDQUdYLElBQUksRUFBQzs7Ozs7VUFGakIsU0FBUyxHQUFHLEVBQUU7O0FBR2IsU0FBSSxDQUFDLFNBQVMsQ0FBQyxVQUFBLE1BQU0sRUFBSTtBQUN4QixZQUFNLENBQ0osd0JBQXdCLEVBQUUsQ0FBQztNQUM3QixDQUFDLENBQUM7O0FBRUgsU0FBSSxDQUFDLElBQUksR0FBRyxJQUFJLENBQUM7O0FBRWpCLFNBQUksQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLFdBQVcsQ0FBQyxDQUMzQixJQUFJLENBQUMsVUFBQSxRQUFRO2FBQUksUUFBUSxDQUFDLElBQUksRUFBRTtNQUFBLENBQUMsQ0FDakMsSUFBSSxDQUFDLFVBQUEsU0FBUyxFQUFJO0FBQ2xCLGVBQVMsQ0FBQyxPQUFPLENBQUMsVUFBQSxRQUFRLEVBQUk7QUFDN0IsYUFBSyxTQUFTLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxDQUFDO09BQ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cclxuXHRnZXRPbmUoaWQpe1xyXG5cdFx0cmV0dXJuIHRoaXMuaHR0cC5mZXRjaCgnc25hcHNob3RzLycgKyBpZCwge1xyXG5cdFx0XHRtZXRob2Q6ICdHRVQnXHJcblx0XHR9KVxyXG5cdFx0LnRoZW4ocmVzcG9uc2UgPT4gcmVzcG9uc2UuanNvbigpKTtcclxuXHR9XHJcblx0b2JzZXJ2ZVNuYXBzaG90VW50aWxQcm9jZXNzZWQoc25hcHNob3Qpe1xyXG5cdFx0c2V0VGltZW91dCgoKSA9PiB7XHJcblx0XHRcdHRoaXMuZ2V0T25lKHNuYXBzaG90Ll9pZCkudGhlbihyZXNwb25zZSA9PiB7XHJcblx0XHRcdFx0aWYgKCFyZXNwb25zZS5wcm9jZXNzZWQpIHRoaXMub2JzZXJ2ZVNuYXBzaG90VW50aWxQcm9jZXNzZWQoc25hcHNob3QpO1xyXG5cdFx0XHRcdGVsc2V7XHJcblx0XHRcdFx0XHR0aGlzLnNuYXBzaG90cy5zcGxpY2UodGhpcy5zbmFwc2hvdHMuaW5kZXhPZihzbmFwc2hvdCksIDEsIHJlc3BvbnNlKTtcclxuXHRcdFx0XHR9XHJcblx0XHRcdH0pO1xyXG5cdFx0fSwgMTAwMCk7XHJcblx0fVxyXG59Il0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
diff --git a/client/dist/date-format.js b/client/dist/services/date-format.js
similarity index 69%
rename from client/dist/date-format.js
rename to client/dist/services/date-format.js
index a086b9e..2170980 100644
--- a/client/dist/date-format.js
+++ b/client/dist/services/date-format.js
@@ -31,4 +31,4 @@ System.register(['moment'], function (_export) {
}
};
});
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRhdGUtZm9ybWF0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OzthQUVhLHdCQUF3Qjs7Ozs7Ozs7Ozs7QUFBeEIsMkJBQXdCO2FBQXhCLHdCQUF3QjsyQk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5vdygpO1xyXG5cdH1cclxufSJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==
diff --git a/client/dist/snapshots-list.js b/client/dist/snapshots-list.js
deleted file mode 100644
index aa725d0..0000000
--- a/client/dist/snapshots-list.js
+++ /dev/null
@@ -1,49 +0,0 @@
-System.register(['aurelia-framework', 'SnapshotsDB'], function (_export) {
- 'use strict';
-
- var inject, SnapshotsDB, SnapshotsList;
-
- var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
-
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
-
- return {
- setters: [function (_aureliaFramework) {
- inject = _aureliaFramework.inject;
- }, function (_SnapshotsDB) {
- SnapshotsDB = _SnapshotsDB.SnapshotsDB;
- }],
- execute: function () {
- SnapshotsList = (function () {
- function SnapshotsList(SnapshotsDB) {
- _classCallCheck(this, _SnapshotsList);
-
- this.snapshots = [];
- this.href = '';
-
- this.SnapshotsDB = SnapshotsDB;
- this.href = window.location.href;
- }
-
- _createClass(SnapshotsList, [{
- key: 'created',
- value: function created() {
- this.snapshots = this.SnapshotsDB.getAll();
- }
- }, {
- key: 'removeSnapshot',
- value: function removeSnapshot(snapshot) {
- this.SnapshotsDB.remove(snapshot);
- }
- }]);
-
- var _SnapshotsList = SnapshotsList;
- SnapshotsList = inject(SnapshotsDB)(SnapshotsList) || SnapshotsList;
- return SnapshotsList;
- })();
-
- _export('SnapshotsList', SnapshotsList);
- }
- };
-});
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNuYXBzaG90cy1saXN0Lm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iA9IFNuYXBzaG90c0RCO1xyXG5cdFx0dGhpcy5ocmVmID0gd2luZG93LmxvY2F0aW9uLmhyZWY7XHJcblx0fVxyXG5cdGNyZWF0ZWQoKXtcclxuXHRcdHRoaXMuc25hcHNob3RzID0gdGhpcy5TbmFwc2hvdHNEQi5nZXRBbGwoKTtcclxuXHR9XHJcblx0cmVtb3ZlU25hcHNob3Qoc25hcHNob3Qpe1xyXG5cdFx0dGhpcy5TbmFwc2hvdHNEQi5yZW1vdmUoc25hcHNob3QpO1xyXG5cdH1cclxufVxyXG5cclxuIl0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
diff --git a/client/dist/index.html b/client/dist/views/index.html
similarity index 60%
rename from client/dist/index.html
rename to client/dist/views/index.html
index e7d60b4..6c4f8d7 100644
--- a/client/dist/index.html
+++ b/client/dist/views/index.html
@@ -1,6 +1,6 @@
-
-
+
+