diff --git a/ui/.envrc b/.envrc similarity index 100% rename from ui/.envrc rename to .envrc diff --git a/.gitignore b/.gitignore index 8d5f9bd..123028e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,12 @@ -.stack-work/ -solaryzed.cabal -*~ \ No newline at end of file +/bower_components/ +/node_modules/ +/.pulp-cache/ +/output/ +/generated-docs/ +/.psc-package/ +/.psc* +/.purs* +/.psa* +/.spago +.cache +dist diff --git a/ui/assets/app.js b/assets/app.js similarity index 100% rename from ui/assets/app.js rename to assets/app.js diff --git a/ui/assets/index.html b/assets/index.html similarity index 100% rename from ui/assets/index.html rename to assets/index.html diff --git a/ui/build.sh b/build.sh similarity index 100% rename from ui/build.sh rename to build.sh diff --git a/ui/dev.sh b/dev.sh similarity index 100% rename from ui/dev.sh rename to dev.sh diff --git a/hs/ChangeLog.md b/hs/ChangeLog.md deleted file mode 100644 index 827c44f..0000000 --- a/hs/ChangeLog.md +++ /dev/null @@ -1,3 +0,0 @@ -# Changelog for solaryzed - -## Unreleased changes diff --git a/hs/LICENSE b/hs/LICENSE deleted file mode 100644 index 102126f..0000000 --- a/hs/LICENSE +++ /dev/null @@ -1,30 +0,0 @@ -Copyright Author name here (c) 2019 - -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - - * Neither the name of Author name here nor the names of other - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/hs/README.md b/hs/README.md deleted file mode 100644 index 082b49f..0000000 --- a/hs/README.md +++ /dev/null @@ -1 +0,0 @@ -# solaryzed diff --git a/hs/Setup.hs b/hs/Setup.hs deleted file mode 100644 index 9a994af..0000000 --- a/hs/Setup.hs +++ /dev/null @@ -1,2 +0,0 @@ -import Distribution.Simple -main = defaultMain diff --git a/hs/app/Main.hs b/hs/app/Main.hs deleted file mode 100644 index 8a10f7a..0000000 --- a/hs/app/Main.hs +++ /dev/null @@ -1,40 +0,0 @@ -{-# LANGUAGE NoImplicitPrelude #-} -{-# LANGUAGE OverloadedStrings #-} -module Main where - -import Protolude - -import Data.Prizm.Color (HexRGB (..)) -import qualified Data.Text as Text -import qualified Data.Text.Format as Format -import qualified Data.Text.Lazy.IO as LazyIO -import qualified Data.Text.Lazy as LazyText -import System.Environment (getArgs) - -import Solaryzed - -main :: IO () -main = do - args <- map (HexRGB . toS) <$> getArgs - tpl <- toS <$> LazyIO.readFile "resources/example.tpl" - case args of - [dark,light,accent] -> genPaletteFile tpl (dark,light,accent) - _ -> do - putText "Please give 3 colors in HEX format, dark, light and an accent color; you have given" - print args - -genPaletteFile :: Text -> (HexRGB,HexRGB,HexRGB) -> IO () -genPaletteFile tpl (dark,light,accent) = do - let palette = map toS $ genAnnotatedPalette dark light accent - html = Text.replace "$palette$" (Text.intercalate "\n\t" palette) tpl - filename = Format.format "palette-{}-{}-{}.html" (Text.drop 1 $ unHexRGB dark, - Text.drop 1 $ unHexRGB light, - Text.drop 1 $ unHexRGB accent) - LazyIO.writeFile (toS filename) (toS html) - putText (toS filename) - -genAnnotatedPalette :: HexRGB -> HexRGB -> HexRGB -> [Text] -genAnnotatedPalette dark light accent = do - let palette = map unHexRGB $ genExtendedPalette dark light accent - annotated = zip extendedPaletteLabels palette - map (toS . Format.format "--{}: {};\n") annotated diff --git a/hs/dist-newstyle/cache/compiler b/hs/dist-newstyle/cache/compiler deleted file mode 100644 index 210a9d6..0000000 Binary files a/hs/dist-newstyle/cache/compiler and /dev/null differ diff --git a/hs/dist-newstyle/cache/config b/hs/dist-newstyle/cache/config deleted file mode 100644 index bfe574f..0000000 Binary files a/hs/dist-newstyle/cache/config and /dev/null differ diff --git a/hs/dist-newstyle/cache/elaborated-plan b/hs/dist-newstyle/cache/elaborated-plan deleted file mode 100644 index 45a6180..0000000 Binary files a/hs/dist-newstyle/cache/elaborated-plan and /dev/null differ diff --git a/hs/dist-newstyle/cache/improved-plan b/hs/dist-newstyle/cache/improved-plan deleted file mode 100644 index df0d4bd..0000000 Binary files a/hs/dist-newstyle/cache/improved-plan and /dev/null differ diff --git a/hs/dist-newstyle/cache/plan.json b/hs/dist-newstyle/cache/plan.json deleted file mode 100644 index fe1694d..0000000 --- a/hs/dist-newstyle/cache/plan.json +++ /dev/null @@ -1 +0,0 @@ -{"cabal-version":"2.4.1.0","cabal-lib-version":"2.4.1.0","compiler-id":"ghc-8.6.5","os":"osx","arch":"x86_64","install-plan":[{"type":"pre-existing","id":"array-0.5.3.0","pkg-name":"array","pkg-version":"0.5.3.0","depends":["base-4.12.0.0"]},{"type":"pre-existing","id":"base-4.12.0.0","pkg-name":"base","pkg-version":"4.12.0.0","depends":["ghc-prim-0.5.3","integer-gmp-1.0.2.0","rts"]},{"type":"pre-existing","id":"binary-0.8.6.0","pkg-name":"binary","pkg-version":"0.8.6.0","depends":["array-0.5.3.0","base-4.12.0.0","bytestring-0.10.8.2","containers-0.6.0.1"]},{"type":"pre-existing","id":"bytestring-0.10.8.2","pkg-name":"bytestring","pkg-version":"0.10.8.2","depends":["base-4.12.0.0","deepseq-1.4.4.0","ghc-prim-0.5.3","integer-gmp-1.0.2.0"]},{"type":"configured","id":"cnvrtbl-1.1.1.0-69f13ead","pkg-name":"convertible","pkg-version":"1.1.1.0","flags":{"buildtests":false},"style":"global","pkg-src":{"type":"repo-tar","repo":{"type":"secure-repo","uri":"http://hackage.haskell.org/"}},"pkg-cabal-sha256":"791e92aed5d906ac1dc8f48b08c4693c25c3fdff4d28b9566921ce3436826d4c","pkg-src-sha256":"e9f9a70904b9995314c2aeb41580d654a2c76293feb955fb6bd63256c355286c","components":{"lib":{"depends":["base-4.12.0.0","bytestring-0.10.8.2","containers-0.6.0.1","mtl-2.2.2","ld-lcl-1.0.0.7-ea59971f","ld-tm-1.1.0.3-412d4789","text-1.2.3.1","time-1.8.0.2"],"exe-depends":[]}}},{"type":"pre-existing","id":"containers-0.6.0.1","pkg-name":"containers","pkg-version":"0.6.0.1","depends":["array-0.5.3.0","base-4.12.0.0","deepseq-1.4.4.0","ghc-prim-0.5.3"]},{"type":"pre-existing","id":"deepseq-1.4.4.0","pkg-name":"deepseq","pkg-version":"1.4.4.0","depends":["array-0.5.3.0","base-4.12.0.0"]},{"type":"pre-existing","id":"ghc-prim-0.5.3","pkg-name":"ghc-prim","pkg-version":"0.5.3","depends":["rts"]},{"type":"pre-existing","id":"integer-gmp-1.0.2.0","pkg-name":"integer-gmp","pkg-version":"1.0.2.0","depends":["ghc-prim-0.5.3"]},{"type":"configured","id":"ld-lcl-1.0.0.7-ea59971f","pkg-name":"old-locale","pkg-version":"1.0.0.7","flags":{},"style":"global","pkg-src":{"type":"repo-tar","repo":{"type":"secure-repo","uri":"http://hackage.haskell.org/"}},"pkg-cabal-sha256":"fa998be2c7e00cd26a6e9075bea790caaf3932caa3e9497ad69bc20380dd6911","pkg-src-sha256":"dbaf8bf6b888fb98845705079296a23c3f40ee2f449df7312f7f7f1de18d7b50","depends":["base-4.12.0.0"],"exe-depends":[],"component-name":"lib"},{"type":"configured","id":"ld-tm-1.1.0.3-412d4789","pkg-name":"old-time","pkg-version":"1.1.0.3","flags":{},"style":"global","pkg-src":{"type":"repo-tar","repo":{"type":"secure-repo","uri":"http://hackage.haskell.org/"}},"pkg-cabal-sha256":"c91fbb3ee73d20ccd015842b30f1f29a304893ebe0ae3128b7bbc13d5bb0d4c8","pkg-src-sha256":"1ccb158b0f7851715d36b757c523b026ca1541e2030d02239802ba39b4112bc1","components":{"lib":{"depends":["base-4.12.0.0","ld-lcl-1.0.0.7-ea59971f"],"exe-depends":[]}}},{"type":"pre-existing","id":"mtl-2.2.2","pkg-name":"mtl","pkg-version":"2.2.2","depends":["base-4.12.0.0","transformers-0.5.6.2"]},{"type":"configured","id":"przm-3.0.0-1dc68b36","pkg-name":"prizm","pkg-version":"3.0.0","flags":{},"style":"global","pkg-src":{"type":"repo-tar","repo":{"type":"secure-repo","uri":"http://hackage.haskell.org/"}},"pkg-cabal-sha256":"f7b7c3992c5070b8b2275f04c9a5b321904cbfc9ea85dfeccd4d9a626fcc26e1","pkg-src-sha256":"9bbc4c8781cbc7df4822d7031eb9570e8caf0956979a061b84d89f3884d05283","depends":["base-4.12.0.0","cnvrtbl-1.1.1.0-69f13ead","text-1.2.3.1"],"exe-depends":[],"component-name":"lib"},{"type":"pre-existing","id":"rts","pkg-name":"rts","pkg-version":"1.0","depends":[]},{"type":"configured","id":"solaryzed-0.1.0.0-inplace","pkg-name":"solaryzed","pkg-version":"0.1.0.0","flags":{},"style":"local","pkg-src":{"type":"local","path":"/Users/yaesposi/y/solaryzed/."},"dist-dir":"/Users/yaesposi/y/solaryzed/dist-newstyle/build/x86_64-osx/ghc-8.6.5/solaryzed-0.1.0.0","depends":["base-4.12.0.0","cnvrtbl-1.1.1.0-69f13ead","przm-3.0.0-1dc68b36","text-1.2.3.1"],"exe-depends":[],"component-name":"lib"},{"type":"configured","id":"solaryzed-0.1.0.0-inplace-solaryzed-exe","pkg-name":"solaryzed","pkg-version":"0.1.0.0","flags":{},"style":"local","pkg-src":{"type":"local","path":"/Users/yaesposi/y/solaryzed/."},"dist-dir":"/Users/yaesposi/y/solaryzed/dist-newstyle/build/x86_64-osx/ghc-8.6.5/solaryzed-0.1.0.0/x/solaryzed-exe","depends":["base-4.12.0.0","cnvrtbl-1.1.1.0-69f13ead","przm-3.0.0-1dc68b36","solaryzed-0.1.0.0-inplace","text-1.2.3.1"],"exe-depends":[],"component-name":"exe:solaryzed-exe","bin-file":"/Users/yaesposi/y/solaryzed/dist-newstyle/build/x86_64-osx/ghc-8.6.5/solaryzed-0.1.0.0/x/solaryzed-exe/build/solaryzed-exe/solaryzed-exe"},{"type":"configured","id":"solaryzed-0.1.0.0-inplace-solaryzed-test","pkg-name":"solaryzed","pkg-version":"0.1.0.0","flags":{},"style":"local","pkg-src":{"type":"local","path":"/Users/yaesposi/y/solaryzed/."},"dist-dir":"/Users/yaesposi/y/solaryzed/dist-newstyle/build/x86_64-osx/ghc-8.6.5/solaryzed-0.1.0.0/t/solaryzed-test","depends":["base-4.12.0.0","cnvrtbl-1.1.1.0-69f13ead","przm-3.0.0-1dc68b36","solaryzed-0.1.0.0-inplace","text-1.2.3.1"],"exe-depends":[],"component-name":"test:solaryzed-test","bin-file":"/Users/yaesposi/y/solaryzed/dist-newstyle/build/x86_64-osx/ghc-8.6.5/solaryzed-0.1.0.0/t/solaryzed-test/build/solaryzed-test/solaryzed-test"},{"type":"pre-existing","id":"text-1.2.3.1","pkg-name":"text","pkg-version":"1.2.3.1","depends":["array-0.5.3.0","base-4.12.0.0","binary-0.8.6.0","bytestring-0.10.8.2","deepseq-1.4.4.0","ghc-prim-0.5.3","integer-gmp-1.0.2.0"]},{"type":"pre-existing","id":"time-1.8.0.2","pkg-name":"time","pkg-version":"1.8.0.2","depends":["base-4.12.0.0","deepseq-1.4.4.0"]},{"type":"pre-existing","id":"transformers-0.5.6.2","pkg-name":"transformers","pkg-version":"0.5.6.2","depends":["base-4.12.0.0"]}]} \ No newline at end of file diff --git a/hs/dist-newstyle/cache/solver-plan b/hs/dist-newstyle/cache/solver-plan deleted file mode 100644 index d026c06..0000000 Binary files a/hs/dist-newstyle/cache/solver-plan and /dev/null differ diff --git a/hs/dist-newstyle/cache/source-hashes b/hs/dist-newstyle/cache/source-hashes deleted file mode 100644 index 801465b..0000000 Binary files a/hs/dist-newstyle/cache/source-hashes and /dev/null differ diff --git a/hs/dist-newstyle/cache/up-to-date b/hs/dist-newstyle/cache/up-to-date deleted file mode 100644 index c32d04a..0000000 Binary files a/hs/dist-newstyle/cache/up-to-date and /dev/null differ diff --git a/hs/example.html b/hs/example.html deleted file mode 100644 index 604e40e..0000000 --- a/hs/example.html +++ /dev/null @@ -1,161 +0,0 @@ - -
- - - -