From ad1e0dea56daafb396d4266d29c30905e9e0f984 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Thu, 17 Sep 2020 16:01:57 +0200 Subject: pkgs/profpatsch.de: replace jquery by native js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was only used for a single use-case, by now all browsers support this functionality. It’s a pretty heavy dependency for a single use :) Co-Authored-By: midzer --- pkgs/profpatsch/profpatsch.de/default.nix | 12 +----------- pkgs/profpatsch/profpatsch.de/index.html.nix | 9 ++++----- pkgs/profpatsch/profpatsch.de/talkies.js | 4 ++-- 3 files changed, 7 insertions(+), 18 deletions(-) (limited to 'pkgs/profpatsch/profpatsch.de') diff --git a/pkgs/profpatsch/profpatsch.de/default.nix b/pkgs/profpatsch/profpatsch.de/default.nix index 91313e49..338599ae 100644 --- a/pkgs/profpatsch/profpatsch.de/default.nix +++ b/pkgs/profpatsch/profpatsch.de/default.nix @@ -4,11 +4,6 @@ let bins = getBins pkgs.coreutils [ "ln" "mkdir" "echo" "printenv" "cat" "env" ] // getBins pkgs.fdtools [ "multitee" ]; - jquery = pkgs.fetchurl { - url = "https://code.jquery.com/jquery-3.5.1.min.js"; - sha256 = "0gbfbfcbcpl8nq2shknsyz5pirf5wbnb54m3dynxs68x9y4sbxpp"; - }; - quattrocento-latin = pkgs.fetchurl { url = "https://fonts.gstatic.com/s/quattrocento/v11/OZpEg_xvsDZQL_LKIF7q4jP3w2j6.woff2"; sha256 = "161dzd0az6zw8js1q8ikf4yhm0h9zidc5wqlnsrpzw5npdzmbzbi"; @@ -35,11 +30,6 @@ let staticFiles = rec { - jsJquery = { - relativeDir = [ "js" ]; - relativeFile = "jquery.js"; - path = jquery; - }; jsTalkies = { relativeDir = [ "js" ]; relativeFile = "talkies.js"; @@ -89,7 +79,7 @@ let relativeDir = []; relativeFile = "index.html"; path = applyTemplate "index.html" ./index.html.nix { - inherit jsJquery jsTalkies; + inherit jsTalkies; inherit cssNormalize cssMain; inherit cv_pdf id_txt; # preloading diff --git a/pkgs/profpatsch/profpatsch.de/index.html.nix b/pkgs/profpatsch/profpatsch.de/index.html.nix index c87190d9..e6c73b14 100644 --- a/pkgs/profpatsch/profpatsch.de/index.html.nix +++ b/pkgs/profpatsch/profpatsch.de/index.html.nix @@ -1,4 +1,4 @@ -{ jsJquery, jsTalkies +{ jsTalkies , cssNormalize, cssMain , id_txt, cv_pdf , fontsQuattrocentoLatin, fontsOpenSansLatin @@ -20,7 +20,6 @@ --> - @@ -31,9 +30,7 @@ - - @@ -41,7 +38,7 @@

Profpatsch