mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-20 06:42:12 +00:00
fix: remove default install of extensions
This commit is contained in:
parent
5f37eebf87
commit
7bfdd4ab79
3 changed files with 10 additions and 10 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ui",
|
||||
"version": "6.4.147",
|
||||
"version": "6.4.148",
|
||||
"license": "BUSL-1.1",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@9.15.5",
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ const dummyFiles = [
|
|||
type: 'video/webm',
|
||||
size: 1234567890,
|
||||
path: '/Amebku.webm',
|
||||
url: '/video.mkv',
|
||||
url: 'http://localhost:7344/test3.mkv',
|
||||
id: 0
|
||||
}
|
||||
// {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<script lang='ts'>
|
||||
import { onMount } from 'svelte'
|
||||
// import { onMount } from 'svelte'
|
||||
import { persisted } from 'svelte-persisted-store'
|
||||
|
||||
import Footer, { type Checks } from '../Footer.svelte'
|
||||
|
|
@ -7,13 +7,13 @@
|
|||
|
||||
import type { ExtensionConfig } from 'hayase-extensions'
|
||||
|
||||
import { DEFAULT_EXTENSIONS } from '$lib'
|
||||
// import { DEFAULT_EXTENSIONS } from '$lib'
|
||||
import SettingCard from '$lib/components/SettingCard.svelte'
|
||||
import { SingleCombo } from '$lib/components/ui/combobox'
|
||||
import { Extensions } from '$lib/components/ui/extensions'
|
||||
import { saved, options } from '$lib/modules/extensions'
|
||||
import { dragScroll } from '$lib/modules/navigate'
|
||||
import { lookupPreferences, settings, SUPPORTS } from '$lib/modules/settings'
|
||||
import { lookupPreferences, settings } from '$lib/modules/settings'
|
||||
|
||||
function checkExtensions (svd: Record<string, ExtensionConfig>, opts: Record<string, {
|
||||
options: Record<string, string | number | boolean | undefined>
|
||||
|
|
@ -37,14 +37,14 @@
|
|||
pending: 'At least one extension needs to be installed.'
|
||||
}]
|
||||
|
||||
onMount(() => {
|
||||
if (!SUPPORTS.isAndroid && !Object.keys($saved).length) importExtension(DEFAULT_EXTENSIONS)
|
||||
})
|
||||
// onMount(() => {
|
||||
// if (!SUPPORTS.isAndroid && !Object.keys($saved).length) importExtension(DEFAULT_EXTENSIONS)
|
||||
// })
|
||||
|
||||
const hasForwarding = persisted('torrent-port-forwarding', false)
|
||||
$settings.lookupPreference = $hasForwarding ? 'quality' : 'seeders'
|
||||
|
||||
let importExtension: ((ext?: string) => void)
|
||||
// let importExtension: ((ext?: string) => void)
|
||||
</script>
|
||||
|
||||
<Progress step={2} />
|
||||
|
|
@ -54,7 +54,7 @@
|
|||
<SingleCombo bind:value={$settings.lookupPreference} items={lookupPreferences} class='w-32 shrink-0 border-input border' />
|
||||
</SettingCard>
|
||||
<div class='px-6'>
|
||||
<Extensions bind:importExtension />
|
||||
<Extensions />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue