From 735082cdd644026ce3211aeb7c3c36d955ed1186 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 17 Jul 2023 07:25:53 -0400 Subject: [PATCH] refactor: move ui code to subfolder --- account.html => ui/account.html | 2 +- {src => ui}/account.js | 2 +- {src => ui}/assets/icon/discord.svg | 0 {src => ui}/assets/icon/facebook.svg | 0 {src => ui}/assets/icon/github.svg | 0 {src => ui}/assets/icon/twitter.svg | 0 {src => ui}/assets/lume-logo.png | Bin {src => ui}/assets/onboarding-1.jpg | Bin {src => ui}/assets/onboarding-2.jpg | Bin {src => ui}/assets/onboarding-3.jpg | Bin {src => ui}/assets/onboarding-4.jpg | Bin {src => ui}/assets/wait-icon-orange.png | Bin {src => ui}/assets/wait-icon-yellow.png | Bin {src => ui}/components/account/Account.svelte | 10 ++++---- .../components/dashboard/Dashboard.svelte | 22 +++++++++--------- .../components/onboarding/Onboarding.svelte | 16 ++++++------- dashboard.html => ui/dashboard.html | 2 +- {src => ui}/dashboard.js | 2 +- onboarding.html => ui/onboarding.html | 2 +- {src => ui}/onboarding.js | 2 +- postcss.config.cjs => ui/postcss.config.cjs | 0 .../public}/fonts/Jaldi-Regular.woff2 | Bin .../public}/fonts/JetBrainsMono-Bold.woff2 | Bin .../public}/fonts/JetBrainsMono-Light.woff2 | Bin .../public}/fonts/JetBrainsMono-Regular.woff2 | Bin {public => ui/public}/robots.txt | 0 {src => ui}/styles/artwork.scss | 0 {src => ui}/styles/global.scss | 4 ++-- {src => ui}/styles/mixins.scss | 0 {src => ui}/styles/vars.scss | 0 svelte.config.js => ui/svelte.config.js | 0 tailwind.config.js => ui/tailwind.config.js | 0 ui/vite.config.js | 17 ++++++++++++++ vite.config.js | 17 -------------- 34 files changed, 49 insertions(+), 49 deletions(-) rename account.html => ui/account.html (78%) rename {src => ui}/account.js (60%) rename {src => ui}/assets/icon/discord.svg (100%) rename {src => ui}/assets/icon/facebook.svg (100%) rename {src => ui}/assets/icon/github.svg (100%) rename {src => ui}/assets/icon/twitter.svg (100%) rename {src => ui}/assets/lume-logo.png (100%) rename {src => ui}/assets/onboarding-1.jpg (100%) rename {src => ui}/assets/onboarding-2.jpg (100%) rename {src => ui}/assets/onboarding-3.jpg (100%) rename {src => ui}/assets/onboarding-4.jpg (100%) rename {src => ui}/assets/wait-icon-orange.png (100%) rename {src => ui}/assets/wait-icon-yellow.png (100%) rename {src => ui}/components/account/Account.svelte (99%) rename {src => ui}/components/dashboard/Dashboard.svelte (96%) rename {src => ui}/components/onboarding/Onboarding.svelte (92%) rename dashboard.html => ui/dashboard.html (78%) rename {src => ui}/dashboard.js (58%) rename onboarding.html => ui/onboarding.html (77%) rename {src => ui}/onboarding.js (57%) rename postcss.config.cjs => ui/postcss.config.cjs (100%) rename {public => ui/public}/fonts/Jaldi-Regular.woff2 (100%) rename {public => ui/public}/fonts/JetBrainsMono-Bold.woff2 (100%) rename {public => ui/public}/fonts/JetBrainsMono-Light.woff2 (100%) rename {public => ui/public}/fonts/JetBrainsMono-Regular.woff2 (100%) rename {public => ui/public}/robots.txt (100%) rename {src => ui}/styles/artwork.scss (100%) rename {src => ui}/styles/global.scss (97%) rename {src => ui}/styles/mixins.scss (100%) rename {src => ui}/styles/vars.scss (100%) rename svelte.config.js => ui/svelte.config.js (100%) rename tailwind.config.js => ui/tailwind.config.js (100%) create mode 100644 ui/vite.config.js delete mode 100644 vite.config.js diff --git a/account.html b/ui/account.html similarity index 78% rename from account.html rename to ui/account.html index c1503a3..a581f0a 100644 --- a/account.html +++ b/ui/account.html @@ -6,6 +6,6 @@
- + diff --git a/src/account.js b/ui/account.js similarity index 60% rename from src/account.js rename to ui/account.js index 0a78efc..37f5b98 100644 --- a/src/account.js +++ b/ui/account.js @@ -1,4 +1,4 @@ -import Account from '/src/components/account/Account.svelte' +import Account from './components/account/Account.svelte' const app = new Account({ target: document.getElementById('app'), diff --git a/src/assets/icon/discord.svg b/ui/assets/icon/discord.svg similarity index 100% rename from src/assets/icon/discord.svg rename to ui/assets/icon/discord.svg diff --git a/src/assets/icon/facebook.svg b/ui/assets/icon/facebook.svg similarity index 100% rename from src/assets/icon/facebook.svg rename to ui/assets/icon/facebook.svg diff --git a/src/assets/icon/github.svg b/ui/assets/icon/github.svg similarity index 100% rename from src/assets/icon/github.svg rename to ui/assets/icon/github.svg diff --git a/src/assets/icon/twitter.svg b/ui/assets/icon/twitter.svg similarity index 100% rename from src/assets/icon/twitter.svg rename to ui/assets/icon/twitter.svg diff --git a/src/assets/lume-logo.png b/ui/assets/lume-logo.png similarity index 100% rename from src/assets/lume-logo.png rename to ui/assets/lume-logo.png diff --git a/src/assets/onboarding-1.jpg b/ui/assets/onboarding-1.jpg similarity index 100% rename from src/assets/onboarding-1.jpg rename to ui/assets/onboarding-1.jpg diff --git a/src/assets/onboarding-2.jpg b/ui/assets/onboarding-2.jpg similarity index 100% rename from src/assets/onboarding-2.jpg rename to ui/assets/onboarding-2.jpg diff --git a/src/assets/onboarding-3.jpg b/ui/assets/onboarding-3.jpg similarity index 100% rename from src/assets/onboarding-3.jpg rename to ui/assets/onboarding-3.jpg diff --git a/src/assets/onboarding-4.jpg b/ui/assets/onboarding-4.jpg similarity index 100% rename from src/assets/onboarding-4.jpg rename to ui/assets/onboarding-4.jpg diff --git a/src/assets/wait-icon-orange.png b/ui/assets/wait-icon-orange.png similarity index 100% rename from src/assets/wait-icon-orange.png rename to ui/assets/wait-icon-orange.png diff --git a/src/assets/wait-icon-yellow.png b/ui/assets/wait-icon-yellow.png similarity index 100% rename from src/assets/wait-icon-yellow.png rename to ui/assets/wait-icon-yellow.png diff --git a/src/components/account/Account.svelte b/ui/components/account/Account.svelte similarity index 99% rename from src/components/account/Account.svelte rename to ui/components/account/Account.svelte index c92b33a..dd907fe 100644 --- a/src/components/account/Account.svelte +++ b/ui/components/account/Account.svelte @@ -4,8 +4,8 @@ import * as bip39 from '@scure/bip39'; import { wordlist } from '@scure/bip39/wordlists/english'; - import '/src/styles/global.scss'; - import lumeLogo from '/src/assets/lume-logo.png'; + import '../../styles/global.scss'; + import lumeLogo from '../../assets/lume-logo.png'; let action; let createAccountStep; @@ -340,9 +340,9 @@