Skip to content

Commit

Permalink
feat: move WT to worker, UI fixes, UI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaUnknown committed Apr 24, 2022
1 parent ec3dd49 commit a11516e
Show file tree
Hide file tree
Showing 12 changed files with 291 additions and 332 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Miru",
"version": "1.9.1",
"version": "2.0.0",
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
"main": "src/index.js",
"homepage": "https://github.com/ThaUnknown/miru#readme",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const { app, BrowserWindow, protocol, shell, ipcMain } = require('electron')
const path = require('path')
const log = require('electron-log')
const { autoUpdater } = require('electron-updater')
require('./main/torrent.js')
require('./main/misc.js')

if (process.defaultApp) {
Expand Down Expand Up @@ -81,6 +80,7 @@ function createWindow () {
webPreferences: {
enableBlinkFeatures: 'AudioVideoTracks',
backgroundThrottling: false,
nodeIntegrationInWorker: true,
preload: path.join(__dirname, '/preload.js')
},
icon: path.join(__dirname, '/renderer/public/logo.ico'),
Expand Down
204 changes: 0 additions & 204 deletions src/main/torrent.js

This file was deleted.

82 changes: 0 additions & 82 deletions src/renderer/public/sw.js

This file was deleted.

3 changes: 0 additions & 3 deletions src/renderer/src/lib/RSSView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,6 @@
</div>
<style>
.trailer {
padding-bottom: 56.25%;
}
.close {
top: 1rem !important;
left: unset;
Expand Down
11 changes: 8 additions & 3 deletions src/renderer/src/lib/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
window.IPC.emit('open', 'https://anilist.co/api/v2/oauth/authorize?client_id=4254&response_type=token')
if (platformMap[window.version.platform] === 'Linux') {
addToast({
text: 'If your linux distribution doesn\'t support custom protocol handlers, you can simply paste the full URL into the app.',
text: "If your linux distribution doesn't support custom protocol handlers, you can simply paste the full URL into the app.",
title: 'Support Notification',
type: 'secondary',
duration: '300000'
Expand All @@ -78,8 +78,10 @@
]
if (alID) {
alID.then(result => {
links[links.length - 1].image = result.data.Viewer.avatar.medium
links[links.length - 1].text = result.data.Viewer.name
if (result?.data?.Viewer) {
links[links.length - 1].image = result.data.Viewer.avatar.medium
links[links.length - 1].text = result.data.Viewer.name + '\nLogout'
}
})
}
</script>
Expand Down Expand Up @@ -159,6 +161,9 @@
padding: 0.75rem 1.5rem;
height: 5.5rem;
}
.sidebar-link::after {
white-space: pre !important;
}
.material-icons {
font-size: 2.2rem;
Expand Down
Loading

0 comments on commit a11516e

Please sign in to comment.