Skip to content

Commit

Permalink
remove unused code (closable moved to progressLog)
Browse files Browse the repository at this point in the history
  • Loading branch information
vintikzzz committed Sep 13, 2024
1 parent 6a9de52 commit c21a01a
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 29 deletions.
5 changes: 0 additions & 5 deletions assets/src/js/app/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ av(target, 'action/post', async function() {
const self = this;
const progress = self.querySelector('form');
const el = document.createElement('div');
const closeable = target.querySelector('.closeable');
if (closeable) {
const initCloseable = (await import('../lib/closeable')).initCloseable;
initCloseable(closeable);
}
const initProgressLog = (await import('../lib/progressLog')).initProgressLog;
initProgressLog(progress, function(ev) {
if (ev.level !== 'rendertemplate') return;
Expand Down
5 changes: 0 additions & 5 deletions assets/src/js/app/auth/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ window.submitLoginForm = function(target, e) {
pl.clear();
const e = pl.inProgress('login','sending magic link to ' + data.email);
const supertokens = (await import('../../lib/supertokens'));
const closeable = document.querySelector('.closeable');
if (closeable) {
const initCloseable = (await import('../../lib/closeable')).initCloseable;
initCloseable(closeable);
}
try {
await supertokens.sendMagicLink(data, window._CSRF);
e.done('magic link sent to ' + data.email);
Expand Down
6 changes: 0 additions & 6 deletions assets/src/js/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ av(target, 'index', async function() {
const initDrop = (await import('../lib/drop')).initDrop;
initDrop(dropzone);
}

const closeable = target.querySelector('.closeable');
if (closeable) {
const initCloseable = (await import('../lib/closeable')).initCloseable;
initCloseable(closeable);
}
const progress = this.querySelector('.progress-alert');
if (progress != null) {
const initProgressLog = (await import('../lib/progressLog')).initProgressLog;
Expand Down
2 changes: 0 additions & 2 deletions assets/src/js/app/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ function hideProgress() {
progress.classList.add('hidden');
}



window.progress = {
show: showProgress,
hide: hideProgress,
Expand Down
11 changes: 0 additions & 11 deletions assets/src/js/lib/closeable.js

This file was deleted.

0 comments on commit c21a01a

Please sign in to comment.