From 1255ee3ac3fc332e43cc4c762933c168f842bb9b Mon Sep 17 00:00:00 2001 From: Yvo Brevoort Date: Fri, 13 Dec 2024 14:56:39 +0100 Subject: [PATCH] remove beaker storage --- js/simply-edit.js | 224 ---------------------------------------------- 1 file changed, 224 deletions(-) diff --git a/js/simply-edit.js b/js/simply-edit.js index 5be4d05..74792e6 100755 --- a/js/simply-edit.js +++ b/js/simply-edit.js @@ -2748,230 +2748,6 @@ return true; } }, - beaker : { - init : function(endpoint) { - this.endpoint = endpoint; - this.dataEndpoint = endpoint + "data.json"; - if (this.endpoint.indexOf("hyper://") === 0 && window.beaker) { - this.hyperdrive = beaker.hyperdrive.drive(this.endpoint); - this.hyperdrive.getInfo().then(function(meta) { - editor.storage.meta = meta; - editor.storage.meta.web_root = "/"; - }); - } - this.load = editor.storageConnectors.default.load; - this.sitemap = editor.storageConnectors.default.sitemap; - this.page = editor.storageConnectors.default.page; - this.listSitemap = editor.storageConnectors.default.listSitemap; - - if (editor.responsiveImages) { - if ( - editor.settings['simply-image'] && - editor.settings['simply-image'].responsive - ) { - if (typeof editor.settings['simply-image'].responsive.sizes === "function") { - editor.responsiveImages.sizes = editor.settings['simply-image'].responsive.sizes; - } else if (typeof editor.settings['simply-image'].responsive.sizes === "object") { - editor.responsiveImages.sizes = (function(sizes) { - return function(src) { - var result = {}; - var info = src.split("."); - var extension = info.pop().toLowerCase(); - if (extension === "jpg" || extension === "jpeg" || extension === "png") { - for (var i=0; i