Split web things into subdirectories
This commit is contained in:
parent
bdf4222c61
commit
81caaa2ebe
@ -5,15 +5,15 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<title>Maunium sticker picker</title>
|
<title>Maunium sticker picker</title>
|
||||||
|
|
||||||
<link rel="modulepreload" href="./widget-api.js"/>
|
<link rel="modulepreload" href="src/widget-api.js"/>
|
||||||
<link rel="modulepreload" href="./frequently-used.js"/>
|
<link rel="modulepreload" href="src/frequently-used.js"/>
|
||||||
<link rel="modulepreload" href="./spinner.js"/>
|
<link rel="modulepreload" href="src/spinner.js"/>
|
||||||
<link rel="modulepreload" href="./lib/htm/preact.js"/>
|
<link rel="modulepreload" href="lib/htm/preact.js"/>
|
||||||
<link rel="preload" href="packs/index.json" as="fetch" type="application/json" crossorigin/>
|
<link rel="preload" href="packs/index.json" as="fetch" type="application/json" crossorigin/>
|
||||||
|
|
||||||
<link rel="stylesheet" href="index.css"/>
|
<link rel="stylesheet" href="style/index.css"/>
|
||||||
<link rel="stylesheet" href="spinner.css"/>
|
<link rel="stylesheet" href="style/spinner.css"/>
|
||||||
<script src="index.js" type="module"></script>
|
<script src="src/index.js" type="module"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<noscript>This sticker picker requires JavaScript</noscript>
|
<noscript>This sticker picker requires JavaScript</noscript>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"snowpack": "snowpack",
|
"snowpack": "snowpack",
|
||||||
"sass": "node-sass -o . *.sass"
|
"sass": "node-sass -o style style/*.sass"
|
||||||
},
|
},
|
||||||
"snowpack": {
|
"snowpack": {
|
||||||
"install": [
|
"install": [
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
// 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
|
// 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/.
|
// 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 { Spinner } from "./spinner.js"
|
||||||
import * as widgetAPI from "./widget-api.js"
|
import * as widgetAPI from "./widget-api.js"
|
||||||
import * as frequent from "./frequently-used.js"
|
import * as frequent from "./frequently-used.js"
|
@ -3,7 +3,7 @@
|
|||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
// 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
|
// 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/.
|
// 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 }) => {
|
export const Spinner = ({ size = 40, noCenter = false, noMargin = false, green = false }) => {
|
||||||
let margin = 0
|
let margin = 0
|
Loading…
Reference in New Issue
Block a user