Skip to content

Commit

Permalink
🎨 remove unused imports, fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
chetbae committed Jun 14, 2023
1 parent 38ce9f7 commit 8f41343
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/Dashboard/FileManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class FileManager {
export default FileManager;

type folio = {
filename: string,
mei_filename: string,
image_filename: string
}
filename: string,
mei_filename: string,
image_filename: string,
};
2 changes: 1 addition & 1 deletion src/Dashboard/Storage.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { v4 as uuidv4 } from 'uuid';
import PouchDB from 'pouchdb';
import { NeonManifest, allDocs } from '../Types';
import { allDocs } from '../Types';
import * as localManifest from '../../assets/manifest.json';
import { samples } from './samples_filenames';

Expand Down
5 changes: 2 additions & 3 deletions src/Dashboard/UploadArea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { addNewFiles } from './UploadManager';
import { ModalWindow, ModalWindowView } from '../utils/ModalWindow';
import { handleUploadAllDocuments, handleMakePair } from './UploadManager';
import { updateDocumentSelector } from './DocumentSelector';
import { fm } from '../../deployment/scripts/dashboard';



Expand All @@ -20,7 +19,7 @@ export function InitUploadArea(): void {
spinner.classList.add('visible');

handleUploadAllDocuments()
.then( (result) => {
.then( () => {
setTimeout( async () => {
await updateDocumentSelector();
spinner.classList.remove('visible');
Expand All @@ -34,7 +33,7 @@ export function InitUploadArea(): void {
spinner.classList.remove('visible');
modalWindow.hideModalWindow();
}, 2000);
})
});
});

// File System selector when clicking on upload area
Expand Down
2 changes: 0 additions & 2 deletions src/Dashboard/dashboard_components.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


export const uploadAreaHTML =
`<div id="document-upload-container">
Expand Down

0 comments on commit 8f41343

Please sign in to comment.