From 504cd02ca05bb2859b8cd09d0d5b32c0f6045c5b Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sat, 27 Jul 2019 20:33:26 +0200 Subject: [PATCH] Change hostname --- frontend/src/Data.elm | 4 ++-- frontend/src/Main.elm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/Data.elm b/frontend/src/Data.elm index 25108b3..cdb4958 100644 --- a/frontend/src/Data.elm +++ b/frontend/src/Data.elm @@ -1,9 +1,9 @@ -module Data exposing (Provider(..), Url, pathSeparator, toHost, toUrl) +module Data exposing (Provider(..), Url, hostname, pathSeparator, toHost, toUrl) hostname : String hostname = - "https://cdn.hitsofcode.com/" + "https://gitcdn.tk/" type Provider diff --git a/frontend/src/Main.elm b/frontend/src/Main.elm index 6eaf024..56ae83f 100644 --- a/frontend/src/Main.elm +++ b/frontend/src/Main.elm @@ -1,7 +1,7 @@ module Main exposing (Model, Msg(..), init, main, update, view) import Browser -import Data exposing (Url, toHost, toUrl) +import Data exposing (Url, hostname, toHost, toUrl) import Html exposing (Html, br, div, h1, input, table, td, text, tr) import Html.Attributes exposing (disabled, placeholder, style, value) import Html.Events exposing (onInput) @@ -95,7 +95,7 @@ view state = , br [] [] , renderMUrl state.parsed ] - , input (myStyle2 [ placeholder "https://host/////", disabled True, value (displayMUrl state.parsed) ]) [] + , input (myStyle2 [ placeholder "https://" ++ hostname ++ "/////", disabled True, value (displayMUrl state.parsed) ]) [] ] ]