Skip to content
Snippets Groups Projects
Commit 2d6704f5 authored by Florian Sesser's avatar Florian Sesser
Browse files

Locally mirror the Material Design Components for the web (v2)

Commands used:

Get the version with:
`curl 'https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css'`
-> "Found. Redirecting to /material-components-web@14.0.0/dist/material-components-web.min.css"

Aha so this is version 14.0.0! Download:

`curl -LO 'https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css'`

Add the license:

`curl -LO https://raw.githubusercontent.com/material-components/material-components-web/master/LICENSE`
parent c0da75b3
No related branches found
No related tags found
1 merge request!36Locally mirror CDN resources
The MIT License
Copyright (c) 2014-2020 Google, Inc.
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.
...@@ -13,7 +13,7 @@ import Reflex.Dom.Core ...@@ -13,7 +13,7 @@ import Reflex.Dom.Core
import Common.Route import Common.Route
import Controller (pageFromRoute) import Controller (pageFromRoute)
import Static (mainCss) import Static (mainCss, materialCss)
-- This runs in a monad that can be run on the client or the server. -- This runs in a monad that can be run on the client or the server.
-- To run code in a pure client or pure server context, use one of the -- To run code in a pure client or pure server context, use one of the
...@@ -25,7 +25,7 @@ frontend = Frontend ...@@ -25,7 +25,7 @@ frontend = Frontend
-- Include external Material 2 assets as per the tutorial at -- Include external Material 2 assets as per the tutorial at
-- https://m2.material.io/develop/web/getting-started -- https://m2.material.io/develop/web/getting-started
elAttr "link" ("href" =: "https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css" <> "rel" =: "stylesheet") blank elAttr "link" ("href" =: materialCss <> "rel" =: "stylesheet") blank
elAttr "link" ("href" =: "https://fonts.googleapis.com/icon?family=Material+Icons" <> "rel" =: "stylesheet") blank elAttr "link" ("href" =: "https://fonts.googleapis.com/icon?family=Material+Icons" <> "rel" =: "stylesheet") blank
elAttr "link" ("href" =: "https://fonts.googleapis.com/css?family=Roboto:300,400,500" <> "rel" =: "stylesheet") blank elAttr "link" ("href" =: "https://fonts.googleapis.com/css?family=Roboto:300,400,500" <> "rel" =: "stylesheet") blank
elAttr "script" ("src" =: "https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js") blank elAttr "script" ("src" =: "https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js") blank
......
...@@ -22,3 +22,7 @@ logoStacked = $(static "PrivateStorage_Logo_Stacked.svg") ...@@ -22,3 +22,7 @@ logoStacked = $(static "PrivateStorage_Logo_Stacked.svg")
-- | The location of one of the logos for the app. -- | The location of one of the logos for the app.
logo :: T.Text logo :: T.Text
logo = $(static "PrivateStorage_Logo.svg") logo = $(static "PrivateStorage_Logo.svg")
-- | The location of one of the logos for the app.
materialCss :: T.Text
materialCss = $(static "3rdparty/material-components-web.min.css")
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment