packages feed

lucid-cdn (empty) → 0.1.0.0

raw patch · 5 files changed

+154/−0 lines, 5 filesdep +basedep +lucid

Dependencies added: base, lucid

Files

+ ChangeLog.md view
@@ -0,0 +1,10 @@+# Changelog for lucid-cdn++## (v0.1.0.0)++* Add bootstrap CSS and JS v.4.5.0.+* Add bootstrap CSS and JS v5.0.0-alpha1.+* Add fontawesome v4.7.0+* Add jquery v3.5.1+* Add mathjax v3.0.5+* Add popper v2.4.4
+ LICENSE view
@@ -0,0 +1,19 @@+Copyright (c) 2020 Daniel Firth++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.
+ README.md view
@@ -0,0 +1,5 @@+# Lucid CDN++Curated collection of CDN scripts and stylesheets with integrity shas for use+with [lucid](https://hackage.haskell.org/package/lucid). Please open a PR if+you'd like to add or update anything.
+ lucid-cdn.cabal view
@@ -0,0 +1,37 @@+cabal-version: 1.12++-- This file has been generated from package.yaml by hpack version 0.34.2.+--+-- see: https://github.com/sol/hpack++name:           lucid-cdn+version:        0.1.0.0+synopsis:       Curated list of CDN imports for lucid.+description:    Repository of common CDN imports for lucid. Please open a pull request to add new libraries.+category:       Web+author:         Daniel Firth+maintainer:     dan.firth@homotopic.tech+copyright:      2020 Daniel Firth+license:        BSD3+license-file:   LICENSE+build-type:     Simple+extra-source-files:+    README.md+    ChangeLog.md++source-repository head+  type: git+  location: https://gitlab.com/homotopic-tech/lucid-cdn++library+  exposed-modules:+      Lucid.CDN+  other-modules:+      Paths_lucid_cdn+  hs-source-dirs:+      src+  ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints+  build-depends:+      base >=4.7 && <5+    , lucid+  default-language: Haskell2010
+ src/Lucid/CDN.hs view
@@ -0,0 +1,83 @@+{-|+  Module     : Lucid.CDN+  Copyright  : Copyright (C) 2020 Daniel Firth+  Maintaine  : Daniel Firth <dan.firth@homotopic.tech>+  License    : MIT+  Stability  : experimental++Curated list of CDN imports for use with Lucid.+-}+{-# LANGUAGE FlexibleContexts #-}+{-# LANGUAGE OverloadedStrings #-}+module Lucid.CDN (+  bootstrapCSS_4_5_0+, bootstrapJS_4_5_0+, bootstrapCSS_5_0_0_alpha1+, bootstrapJS_5_0_0_alpha1+, fontawesome_4_7_0+, jquery_3_5_1+, mathjax_3_0_5+, popper_2_4_4+) where++import Lucid++_blank :: Html ()+_blank = toHtml ("" :: String)++-- | Bootstrap CSS v4.5.0+bootstrapCSS_4_5_0 :: Monad m => HtmlT m ()+bootstrapCSS_4_5_0 = link_ [+    rel_ "stylesheet"+  , href_ "https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"+  , integrity_ "sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk"+  , crossorigin_ "anonymous" ]++-- | Bootstrap JS v4.5.0+bootstrapJS_4_5_0 :: Monad m => HtmlT m ()+bootstrapJS_4_5_0 = script_ [+    src_ "https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"+  , integrity_ "sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI"+  , crossorigin_ "anonymous" ] _blank++-- | Bootstrap CSS v5.0.0+bootstrapCSS_5_0_0_alpha1 :: Monad m => HtmlT m ()+bootstrapCSS_5_0_0_alpha1 = link_ [+    rel_ "stylesheet"+  , href_ "https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/css/bootstrap.min.css" +  , integrity_ "sha384-r4NyP46KrjDleawBgD5tp8Y7UzmLA05oM1iAEQ17CSuDqnUK2+k9luXQOfXJCJ4I"+  , crossorigin_ "anonymous"]++-- | Bootstrap JS v5.0.0+bootstrapJS_5_0_0_alpha1 :: Monad m => HtmlT m ()+bootstrapJS_5_0_0_alpha1 = script_ [+    src_ "https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/js/bootstrap.min.js"+  , integrity_ "sha384-oesi62hOLfzrys4LxRF63OJCXdXDipiYWBnvTl9Y9/TRlw5xlKIEHpNyvvDShgf/"+  , crossorigin_ "anonymous"] _blank++-- | FontAwesome v4.7.0+fontawesome_4_7_0 :: Monad m => HtmlT m ()+fontawesome_4_7_0 = link_ [+    rel_ "stylesheet"+  , href_ "https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"+  , integrity_ "sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN"+  , crossorigin_ "anonymous" ]++-- | JQuery V3.5.1+jquery_3_5_1 :: Monad m => HtmlT m ()  +jquery_3_5_1 = script_ [+    src_ "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"+  , integrity_ "sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg=="+  , crossorigin_ "anonymous"] _blank+  +mathjax_3_0_5 :: Monad m => HtmlT m ()+mathjax_3_0_5 = script_ [+    src_ "https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.0.5/es5/startup.js"+  , integrity_ "sha512-dJKCcxAEzVvIi89TXFlYagyMEEOhxtHqSorUk77kh+ss/XeVker5KA/O5/eRn5ri1S83ID4l2SS292jQjY0PCQ=="+  , crossorigin_ "anonymous"] _blank+   +popper_2_4_4 :: Monad m => HtmlT m ()+popper_2_4_4 = script_ [+    src_ "https://cdnjs.cloudflare.com/ajax/libs/popper.js/2.4.4/umd/popper.min.js"+  , integrity_ "sha512-eUQ9hGdLjBjY3F41CScH3UX+4JDSI9zXeroz7hJ+RteoCaY+GP/LDoM8AO+Pt+DRFw3nXqsjh9Zsts8hnYv8/A=="+  , crossorigin_ "anonymous"] _blank