diff --git a/src/App.svelte b/src/App.svelte index fa572a8..6b1c7fd 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -175,11 +175,6 @@ overflow-y: auto; height: 100%; flex-grow: 1; - - h2 { - margin: 0; - margin-bottom: 16px; - } } } diff --git a/src/components/RedirectCode.svelte b/src/components/RedirectCode.svelte new file mode 100644 index 0000000..9155ed9 --- /dev/null +++ b/src/components/RedirectCode.svelte @@ -0,0 +1,11 @@ + + + diff --git a/src/components/RedirectCreator.svelte b/src/components/RedirectCreator.svelte index 24e47f3..8f2d48d 100644 --- a/src/components/RedirectCreator.svelte +++ b/src/components/RedirectCreator.svelte @@ -2,9 +2,10 @@ import {createEventDispatcher} from "svelte"; import {redirectKeys, type Redirect} from "../types/target"; import Flags from "./Flags.svelte"; + import RedirectCode from "./RedirectCode.svelte"; const dispatch = createEventDispatcher(); - let redirect: Redirect = {src: "", dst: "", desc: "", flags: 0, active: true}; + let redirect: Redirect = {src: "", dst: "", desc: "", flags: 0, code: 302, active: true}; const descCols = 50; @@ -13,13 +14,14 @@