Skip to content

Commit 0f809a5

Browse files
committed
Delete unused storage-related code
1 parent 757ebf1 commit 0f809a5

File tree

5 files changed

+0
-184
lines changed

5 files changed

+0
-184
lines changed

assets/js/app.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -685,35 +685,7 @@ Hooks.CSVDownloader = {
685685
// Merge our custom hooks with the existing hooks
686686
Object.assign(Hooks, CustomHooks);
687687

688-
let Uploaders = {};
689-
690-
Uploaders.S3 = function (entries, onViewError) {
691-
entries.forEach((entry) => {
692-
let formData = new FormData();
693-
let { url, fields } = entry.meta;
694-
Object.entries(fields).forEach(([key, val]) => formData.append(key, val));
695-
formData.append("file", entry.file);
696-
let xhr = new XMLHttpRequest();
697-
onViewError(() => xhr.abort());
698-
xhr.onload = () =>
699-
xhr.status === 204 ? entry.progress(100) : entry.error();
700-
xhr.onerror = () => entry.error();
701-
xhr.upload.addEventListener("progress", (event) => {
702-
if (event.lengthComputable) {
703-
let percent = Math.round((event.loaded / event.total) * 100);
704-
if (percent < 100) {
705-
entry.progress(percent);
706-
}
707-
}
708-
});
709-
710-
xhr.open("POST", url, true);
711-
xhr.send(formData);
712-
});
713-
};
714-
715688
let liveSocket = new LiveSocket("/live", Socket, {
716-
uploaders: Uploaders,
717689
params: {
718690
_csrf_token: csrfToken,
719691
tz: Intl.DateTimeFormat().resolvedOptions().timeZone,

lib/utils/file_upload.ex

Lines changed: 0 additions & 27 deletions
This file was deleted.

lib/utils/simple_s3_upload.ex

Lines changed: 0 additions & 127 deletions
This file was deleted.

mix.exs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ defmodule Claper.MixProject do
103103
{:sweet_xml, "~> 0.7"},
104104
{:plug_cowboy, "~> 2.7"},
105105
{:hashids, "~> 2.1"},
106-
{:mogrify, "~> 0.9"},
107106
{:libcluster, "~> 3.5"},
108107
{:porcelain, "~> 2.0"},
109108
{:hackney, "~> 1.24"},

mix.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"mime": {:hex, :mime, "2.0.7", "b8d739037be7cd402aee1ba0306edfdef982687ee7e9859bee6198c1e7e2f128", [:mix], [], "hexpm", "6171188e399ee16023ffc5b76ce445eb6d9672e2e241d2df6050f3c771e80ccd"},
5050
"mimerl": {:hex, :mimerl, "1.4.0", "3882a5ca67fbbe7117ba8947f27643557adec38fa2307490c4c4207624cb213b", [:rebar3], [], "hexpm", "13af15f9f68c65884ecca3a3891d50a7b57d82152792f3e19d88650aa126b144"},
5151
"mint": {:hex, :mint, "1.7.1", "113fdb2b2f3b59e47c7955971854641c61f378549d73e829e1768de90fc1abf1", [:mix], [{:castore, "~> 0.1.0 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:hpax, "~> 0.1.1 or ~> 0.2.0 or ~> 1.0", [hex: :hpax, repo: "hexpm", optional: false]}], "hexpm", "fceba0a4d0f24301ddee3024ae116df1c3f4bb7a563a731f45fdfeb9d39a231b"},
52-
"mogrify": {:hex, :mogrify, "0.9.3", "238c782f00271dace01369ad35ae2e9dd020feee3443b9299ea5ea6bed559841", [:mix], [], "hexpm", "0189b1e1de27455f2b9ae8cf88239cefd23d38de9276eb5add7159aea51731e6"},
5352
"mua": {:hex, :mua, "0.2.4", "a9172ab0a1ac8732cf2699d739ceac3febcb9b4ffc540260ad2e32c0b6632af9", [:mix], [{:castore, "~> 0.1.0 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}], "hexpm", "e7e4dacd5ad65f13e3542772e74a159c00bd2d5579e729e9bb72d2c73a266fb7"},
5453
"nimble_options": {:hex, :nimble_options, "1.1.1", "e3a492d54d85fc3fd7c5baf411d9d2852922f66e69476317787a7b2bb000a61b", [:mix], [], "hexpm", "821b2470ca9442c4b6984882fe9bb0389371b8ddec4d45a9504f00a66f650b44"},
5554
"nimble_parsec": {:hex, :nimble_parsec, "1.4.2", "8efba0122db06df95bfaa78f791344a89352ba04baedd3849593bfce4d0dc1c6", [:mix], [], "hexpm", "4b21398942dda052b403bbe1da991ccd03a053668d147d53fb8c4e0efe09c973"},

0 commit comments

Comments
 (0)