TagSpaces is an offline, open source, document manager with tagging support
chore: removing unneed files for splash window
Ilian Sapundshieve4b935cd66db
diff --git a/app/main.worker.babel.js b/app/main.worker.babel.jsdeleted file mode 100644index 6fe272217..000000000--- a/app/main.worker.babel.js+++ /dev/null@@ -1,7 +0,0 @@-const register = require('@babel/register').default;--register({- extensions: ['.ts', '.tsx', '.js', '.json']-});--require('./splash-worker.ts');diff --git a/app/package.json b/app/package.jsonindex b58610cba..8ef5092f1 100644--- a/app/package.json+++ b/app/package.json@@ -13,8 +13,8 @@"license": "AGPL-3.0","scripts": {},"dependencies": {- "@tagspaces/extensions": "1.0.6",- "@tagspaces/tagspaces-ws": "^1.0.26",- "sharp": "^0.29.2"+ "@tagspaces/extensions": "1.0.7",+ "sharp": "^0.29.2",+ "@tagspaces/tagspaces-ws": "^1.0.26"}}diff --git a/app/splash-worker.ts b/app/splash-worker.tsdeleted file mode 100644index 27d4b3be1..000000000--- a/app/splash-worker.ts+++ /dev/null@@ -1,135 +0,0 @@-/*-/!**- * TagSpaces - universal file and folder organizer- * Copyright (C) 2017-present TagSpaces UG (haftungsbeschraenkt)- *- * This program is free software: you can redistribute it and/or modify- * it under the terms of the GNU Affero General Public License (version 3) as- * published by the Free Software Foundation.- *- * This program is distributed in the hope that it will be useful,- * but WITHOUT ANY WARRANTY; without even the implied warranty of- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the- * GNU Affero General Public License for more details.- *- * You should have received a copy of the GNU Affero General Public License- * along with this program. If not, see <https://www.gnu.org/licenses/>.- *- *!/--import { ipcRenderer } from 'electron';-import { walkDirectory, enhanceEntry } from './services/utils-io';-import AppConfig from './config';-import { getThumbnailURLPromise } from './services/thumbsgenerator';--function init() {- console.log('Init worker');- ipcRenderer.on('worker', (event, arg) => {- // console.log('worker received: ' + JSON.stringify(arg));- switch (arg.action) {- case 'createDirectoryIndex': {- console.log('createDirectoryIndex started in worker window');- console.time('createDirectoryIndex');- const directoryIndex = [];- let counter = 0;- walkDirectory(- arg.path,- {- recursive: true,- skipMetaFolder: true,- skipDotHiddenFolder: true,- extractText: arg.extractText- },- fileEntry => {- counter += 1;- if (counter > AppConfig.indexerLimit) {- console.warn('Walk canceled by ' + AppConfig.indexerLimit);- window.walkCanceled = true;- }- directoryIndex.push(enhanceEntry(fileEntry));- },- directoryEntry => {- if (directoryEntry.name !== AppConfig.metaFolder) {- counter += 1;- directoryIndex.push(enhanceEntry(directoryEntry));- }- },- arg.ignorePatterns- )- .then(() => {- // entries - can be used for further processing- window.walkCanceled = false;- console.log(- 'Directory index created ' +- arg.path +- ' containing ' +- directoryIndex.length- );- console.timeEnd('createDirectoryIndex');- ipcRenderer.send('worker-response', {- id: arg.id,- action: arg.action,- result: directoryIndex,- error: ''- });- return true;- })- .catch(err => {- window.walkCanceled = false;- console.timeEnd('createDirectoryIndex');- console.warn('Error creating index: ' + err);- ipcRenderer.send('worker-response', {- id: arg.id,- action: arg.action,- result: [], // directoryIndex,- error: err- });- });- break;- }- case 'createThumbnails': {- console.log('createThumbnails started in worker window');- if (!arg.tmbGenerationList || arg.tmbGenerationList.length < 1) {- ipcRenderer.send('worker-response', {- id: arg.id,- action: arg.action,- result: [],- error: 'Empty or not available tmb list or busy worker'- });- break;- }- const tmbGenerationPromises = [];- arg.tmbGenerationList.map(entry => {- tmbGenerationPromises.push(getThumbnailURLPromise(entry));- return true;- });- Promise.all(tmbGenerationPromises) // TODO check allSettled- .then(tmbResult => {- console.log('tmb results' + JSON.stringify(tmbResult));- ipcRenderer.send('worker-response', {- id: arg.id,- action: arg.action,- result: tmbResult,- error: ''- });- return true;- })- .catch(error => {- console.warn('Tmb generation failed: ' + error);- ipcRenderer.send('worker-response', {- id: arg.id,- action: arg.action,- result: [],- error: 'Error generating thumbnails: ' + error- });- });- break;- }- default:- return false;- }- });-}--init();-*/diff --git a/app/splash.html b/app/splash.htmldeleted file mode 100644index c358be0cb..000000000--- a/app/splash.html+++ /dev/null@@ -1,36 +0,0 @@-<!DOCTYPE html>-<html>- <head>- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">- <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">- <meta http-equiv="Content-Security-Policy" content="default-src 'self' file: ; script-src 'self' 'unsafe-eval' ; style-src 'self' 'unsafe-inline' data: blob: ; media-src 'self' file: data: blob: ; img-src 'self' blob: file: data: http: https: ;">- <title>TagSpaces Worker</title>- <script type="text/javascript" src="dist/electron-worker.js"></script>- </head>- <body style="overflow: hidden; margin: 0; padding: 0; -webkit-app-region: drag; background-color: rgb(88, 88, 88);">- <div style="text-align: center; width: 100%; height: 100%; font-size: 1.4em; position:absolute; z-index: 999999; user-select: none; -webkit-user-select: none; -moz-user-select: none; -webkit-app-region: drag" class="appBackgroundTile">- <div style="top:45%; width: 100%; text-align: center; position:absolute;">- <svg style="vertical-align: middle" xmlns="http://www.w3.org/2000/svg" version="1.1" width="100" height="100">- <g id="layer1" transform="matrix(0.33346217,0,0,0.33346217,-0.01300084,-250.91)">- <rect style="fill:none;fill-opacity:1;stroke:none" id="rect3052-8-1" width="299.42227" height="299.42227" x="-0.019505024" y="752.95935" />- <path style="fill:#ffffff;fill-opacity:1;stroke:none" d="m 181.90177,787.75394 70.88695,43.53834 C 180.29225,977.67059 187.41436,950.59754 124.58989,989.154 L 65.05006,905.90077 Z" id="rect3052-8-2-2" />- <ellipse style="fill:#616577;fill-opacity:1;stroke:none" id="path4875-4-7-5-6-2" cx="192.4187" cy="851.11481" rx="15.970615" ry="15.782593" />- <path style="fill:none;stroke:#a466aa;stroke-width:27.50978279;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"- d="M 159.73623,964.91671 134.54529,941.61879" id="path3108-5-39-8" />- <path style="fill:none;stroke:#ffffff;stroke-width:34.19813538;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"- d="m 162.16161,795.17204 90.03628,0.34544 0,86.1724 -115.50748,117.79375 -88.457192,-81.6665 z" id="path3923-1-1-4-9-8" />- <path style="fill:#f7901e;fill-opacity:1;stroke:#33b5be;stroke-width:27.50978279;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"- d="m 204.81469,910.87834 -50.38182,-45.3016" id="path3108-9-1-76-7" />- <path style="fill:#616577;fill-opacity:1;stroke:#f7901e;stroke-width:27.50978279;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"- d="M 182.93838,938.7066 144.48907,904.40668" id="path3108-0-7-9-8" />- <path style="fill:none;stroke:#616577;stroke-width:31.96374702;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"- d="m 164.34385,800.70161 83.03644,0 0,79.10209 -110.49206,113.42316 -82.031957,-75.83333 z" id="path3923-1-1-4-9" />- </g>- </svg>- <p style="font-family: Arial, Helvetica, sans-serif; font-size: small; color: whitesmoke">TagSpaces worker window, used for background tasks like thumbnail generation.</small></p>- </div>- </div>- </div>- </body>-</html>-