mirror of
https://github.com/NoCrypt/migu.git
synced 2026-04-18 23:22:05 +00:00
fix: unblock url
fix: blue top bar on start fix: some releases card bugs
This commit is contained in:
parent
7918050127
commit
21f085b0e4
4 changed files with 21 additions and 15 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Miru",
|
||||
"version": "3.7.4",
|
||||
"version": "3.7.5",
|
||||
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
||||
"description": "Stream anime torrents, real-time with no waiting for downloads.",
|
||||
"main": "src/index.js",
|
||||
|
|
|
|||
|
|
@ -94,6 +94,10 @@
|
|||
box-shadow: var(--dm-button-primary-box-shadow-focus) !important;
|
||||
}
|
||||
|
||||
:global(.modal:focus-visible){
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
:global(.root) {
|
||||
animation: 0.3s ease 0s 1 root-load-in;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,9 @@
|
|||
media.hasNext = hasNext
|
||||
return media
|
||||
}
|
||||
return false
|
||||
}
|
||||
return releasesCards(page, limit, force, val)
|
||||
}
|
||||
const seasons = ['WINTER', 'SPRING', 'SUMMER', 'FALL']
|
||||
function sanitiseObject (object) {
|
||||
|
|
|
|||
|
|
@ -1,19 +1,19 @@
|
|||
<script>
|
||||
let block = false
|
||||
let block = false
|
||||
|
||||
async function testConnection () {
|
||||
try {
|
||||
for (let i = 0; i < 2; ++i) {
|
||||
// fetch nyaa twice, sometimes it will go tru once if ISP is shitty
|
||||
await fetch('https://nyaa.si')
|
||||
async function testConnection () {
|
||||
try {
|
||||
for (let i = 0; i < 2; ++i) {
|
||||
// fetch nyaa twice, sometimes it will go tru once if ISP is shitty
|
||||
await fetch('https://nyaa.si')
|
||||
}
|
||||
block = false
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
block = true
|
||||
}
|
||||
block = false
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
block = true
|
||||
}
|
||||
}
|
||||
testConnection()
|
||||
testConnection()
|
||||
|
||||
</script>
|
||||
|
||||
|
|
@ -25,10 +25,10 @@ testConnection()
|
|||
<div class='font-size-16'>Most features of Miru will not function correctly without being able to connect to Nyaa.</div>
|
||||
<div class='font-size-16'>If you enable a VPN a restart might be required for it to take effect.</div>
|
||||
<!-- eslint-disable-next-line svelte/valid-compile -->
|
||||
<div class='font-size-16'>Visit <a class='text-primary pointer' on:click={() => { window.IPC.emit('open', 'https://thewiki.moe/en/tutorials/unblock') }}>this guide</a> for a tutorial on how to bypass ISP blocks.</div>
|
||||
<div class='font-size-16'>Visit <a class='text-primary pointer' on:click={() => { window.IPC.emit('open', 'https://thewiki.moe/tutorials/unblock/') }}>this guide</a> for a tutorial on how to bypass ISP blocks.</div>
|
||||
<div class='d-flex w-full mt-20 pt-20'>
|
||||
<button class='btn ml-auto mr-5' type='button' on:click={() => { block = false }}>I Understand</button>
|
||||
<button class='btn btn-primary mr-5' type='button' on:click={() => { window.IPC.emit('open', 'https://thewiki.moe/en/tutorials/unblock') }}>Open Guide</button>
|
||||
<button class='btn btn-primary mr-5' type='button' on:click={() => { window.IPC.emit('open', 'https://thewiki.moe/tutorials/unblock/') }}>Open Guide</button>
|
||||
<button class='btn btn-primary' type='button' on:click={testConnection}>Reconnect</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue