From b2b82dd772b05681f9adab6dd9a6b78d88bad2b7 Mon Sep 17 00:00:00 2001 From: Androz2091 Date: Sat, 19 Jun 2021 11:09:44 +0200 Subject: [PATCH] :recycle: Start working on v2 --- package.json | 4 +- public/global.css | 2 + rollup.config.js | 2 + src/App.svelte | 22 +++-- src/components/Footer.svelte | 21 +++++ src/components/Header.svelte | 36 +++++++++ src/main.css | 55 +++++++++++-- src/views/Loader.svelte | 151 ++++++++++++++++++++--------------- yarn.lock | 85 +++++++++++++++++++- 9 files changed, 299 insertions(+), 79 deletions(-) create mode 100644 src/components/Footer.svelte create mode 100644 src/components/Header.svelte diff --git a/package.json b/package.json index 84a6482..ac1c8a2 100644 --- a/package.json +++ b/package.json @@ -17,13 +17,15 @@ "rollup-plugin-livereload": "^1.0.0", "rollup-plugin-svelte": "^7.1.0", "rollup-plugin-terser": "^5.1.2", - "svelte": "^3.0.0" + "svelte": "^3.0.0", + "svelte-preprocess": "^4.7.3" }, "dependencies": { "@zerodevx/svelte-toast": "^0.1.4", "axios": "^0.21.1", "fflate": "^0.6.7", "papaparse": "^5.3.0", + "sass": "^1.35.1", "sirv-cli": "^0.4.4", "snake-case": "^3.0.4", "svelte-frappe-charts": "^1.5.0", diff --git a/public/global.css b/public/global.css index 77c38c3..b76ee52 100644 --- a/public/global.css +++ b/public/global.css @@ -1,3 +1,5 @@ +@import url("https://fonts.googleapis.com/css2?family=Rubik&display=swap"); + ::-webkit-scrollbar { width: 5px; background-color: none; diff --git a/rollup.config.js b/rollup.config.js index fb4a225..9820c64 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -5,6 +5,7 @@ import livereload from 'rollup-plugin-livereload'; import { terser } from 'rollup-plugin-terser'; import css from 'rollup-plugin-css-only'; import json from '@rollup/plugin-json'; +import preprocess from 'svelte-preprocess'; const production = !process.env.ROLLUP_WATCH; @@ -39,6 +40,7 @@ export default { }, plugins: [ svelte({ + preprocess: preprocess(), compilerOptions: { // enable run-time checks when not in production dev: !production diff --git a/src/App.svelte b/src/App.svelte index bd4a42b..81077e8 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,6 +1,9 @@ - -
- {#if loading} -
- {$loadTask || "Loading your package file..."} - {#if $loadEstimatedTime} - {$loadEstimatedTime} - {/if} -
- {:else if error} -

{@html error}

- {:else} -
-
-

Click or drop your package file here

- + +