From 81caaa2ebed066f80939b04f565b307ec0dd2d61 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 10 Sep 2020 16:12:09 +0300 Subject: [PATCH] Split web things into subdirectories --- web/index.html | 14 +++++++------- web/package.json | 2 +- web/{ => src}/frequently-used.js | 0 web/{ => src}/index.js | 2 +- web/{ => src}/spinner.js | 2 +- web/{ => src}/widget-api.js | 0 web/{ => style}/index.css | 0 web/{ => style}/index.sass | 0 web/{ => style}/spinner.css | 0 9 files changed, 10 insertions(+), 10 deletions(-) rename web/{ => src}/frequently-used.js (100%) rename web/{ => src}/index.js (99%) rename web/{ => src}/spinner.js (93%) rename web/{ => src}/widget-api.js (100%) rename web/{ => style}/index.css (100%) rename web/{ => style}/index.sass (100%) rename web/{ => style}/spinner.css (100%) diff --git a/web/index.html b/web/index.html index 1e84728..352f0b8 100644 --- a/web/index.html +++ b/web/index.html @@ -5,15 +5,15 @@ Maunium sticker picker - - - - + + + + - - - + + + diff --git a/web/package.json b/web/package.json index 5926728..7f7f592 100644 --- a/web/package.json +++ b/web/package.json @@ -8,7 +8,7 @@ "private": true, "scripts": { "snowpack": "snowpack", - "sass": "node-sass -o . *.sass" + "sass": "node-sass -o style style/*.sass" }, "snowpack": { "install": [ diff --git a/web/frequently-used.js b/web/src/frequently-used.js similarity index 100% rename from web/frequently-used.js rename to web/src/frequently-used.js diff --git a/web/index.js b/web/src/index.js similarity index 99% rename from web/index.js rename to web/src/index.js index 342f524..815f321 100644 --- a/web/index.js +++ b/web/src/index.js @@ -3,7 +3,7 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import { html, render, Component } from "./lib/htm/preact.js" +import { html, render, Component } from "../lib/htm/preact.js" import { Spinner } from "./spinner.js" import * as widgetAPI from "./widget-api.js" import * as frequent from "./frequently-used.js" diff --git a/web/spinner.js b/web/src/spinner.js similarity index 93% rename from web/spinner.js rename to web/src/spinner.js index 6462cde..b44740e 100644 --- a/web/spinner.js +++ b/web/src/spinner.js @@ -3,7 +3,7 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import { html } from "https://unpkg.com/htm/preact/index.mjs?module" +import { html } from "../lib/htm/preact.js" export const Spinner = ({ size = 40, noCenter = false, noMargin = false, green = false }) => { let margin = 0 diff --git a/web/widget-api.js b/web/src/widget-api.js similarity index 100% rename from web/widget-api.js rename to web/src/widget-api.js diff --git a/web/index.css b/web/style/index.css similarity index 100% rename from web/index.css rename to web/style/index.css diff --git a/web/index.sass b/web/style/index.sass similarity index 100% rename from web/index.sass rename to web/style/index.sass diff --git a/web/spinner.css b/web/style/spinner.css similarity index 100% rename from web/spinner.css rename to web/style/spinner.css