aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-09-10 16:12:09 +0300
committerTulir Asokan <tulir@maunium.net>2020-09-10 16:12:09 +0300
commit81caaa2ebed066f80939b04f565b307ec0dd2d61 (patch)
tree3eba458d6ae76741862d0d04c1a6f918dd6da74e
parentbdf4222c6178e438e93775a3593d3fc7027d3471 (diff)
Split web things into subdirectories
-rw-r--r--web/index.html14
-rw-r--r--web/package.json2
-rw-r--r--web/src/frequently-used.js (renamed from web/frequently-used.js)0
-rw-r--r--web/src/index.js (renamed from web/index.js)2
-rw-r--r--web/src/spinner.js (renamed from web/spinner.js)2
-rw-r--r--web/src/widget-api.js (renamed from web/widget-api.js)0
-rw-r--r--web/style/index.css (renamed from web/index.css)0
-rw-r--r--web/style/index.sass (renamed from web/index.sass)0
-rw-r--r--web/style/spinner.css (renamed from web/spinner.css)0
9 files changed, 10 insertions, 10 deletions
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 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Maunium sticker picker</title>
- <link rel="modulepreload" href="./widget-api.js"/>
- <link rel="modulepreload" href="./frequently-used.js"/>
- <link rel="modulepreload" href="./spinner.js"/>
- <link rel="modulepreload" href="./lib/htm/preact.js"/>
+ <link rel="modulepreload" href="src/widget-api.js"/>
+ <link rel="modulepreload" href="src/frequently-used.js"/>
+ <link rel="modulepreload" href="src/spinner.js"/>
+ <link rel="modulepreload" href="lib/htm/preact.js"/>
<link rel="preload" href="packs/index.json" as="fetch" type="application/json" crossorigin/>
- <link rel="stylesheet" href="index.css"/>
- <link rel="stylesheet" href="spinner.css"/>
- <script src="index.js" type="module"></script>
+ <link rel="stylesheet" href="style/index.css"/>
+ <link rel="stylesheet" href="style/spinner.css"/>
+ <script src="src/index.js" type="module"></script>
</head>
<body>
<noscript>This sticker picker requires JavaScript</noscript>
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
index 1601e03..1601e03 100644
--- a/web/frequently-used.js
+++ b/web/src/frequently-used.js
diff --git a/web/index.js b/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
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
index 3efca0e..3efca0e 100644
--- a/web/widget-api.js
+++ b/web/src/widget-api.js
diff --git a/web/index.css b/web/style/index.css
index 8877da6..8877da6 100644
--- a/web/index.css
+++ b/web/style/index.css
diff --git a/web/index.sass b/web/style/index.sass
index d36e3f0..d36e3f0 100644
--- a/web/index.sass
+++ b/web/style/index.sass
diff --git a/web/spinner.css b/web/style/spinner.css
index dcf6832..dcf6832 100644
--- a/web/spinner.css
+++ b/web/style/spinner.css
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage