mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 07:46:00 +00:00
download fileat first in imports
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script lang="ts" context="module">
|
||||
function extractUrlName(url, values) {
|
||||
const match = url.match(/\/([^/]+)($|\?)/);
|
||||
const match = url.match(/\/([^/\?]+)($|\?)/);
|
||||
if (match) {
|
||||
const res = match[1];
|
||||
if (res.includes('.')) {
|
||||
|
||||
@@ -46,7 +46,6 @@
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
import { onMount } from 'svelte';
|
||||
import { writable } from 'svelte/store';
|
||||
import Link from '../elements/Link.svelte';
|
||||
import TableControl from '../elements/TableControl.svelte';
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
import { closeCurrentModal } from './modalTools';
|
||||
|
||||
export let onConfirm;
|
||||
export let url;
|
||||
|
||||
const handleSubmit = e => {
|
||||
onConfirm(e.detail.url);
|
||||
@@ -15,7 +16,7 @@
|
||||
};
|
||||
</script>
|
||||
|
||||
<FormProvider>
|
||||
<FormProvider initialValues={{ url }}>
|
||||
<ModalBase {...$$restProps}>
|
||||
<svelte:fragment slot="header">Download imported file from web</svelte:fragment>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user