Browse Source

Split web things into subdirectories

pull/26/head
Tulir Asokan 4 years ago
parent
commit
81caaa2ebe
  1. 14
      web/index.html
  2. 2
      web/package.json
  3. 0
      web/src/frequently-used.js
  4. 2
      web/src/index.js
  5. 2
      web/src/spinner.js
  6. 0
      web/src/widget-api.js
  7. 0
      web/style/index.css
  8. 0
      web/style/index.sass
  9. 0
      web/style/spinner.css

14
web/index.html

@ -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="./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="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> </head>
<body> <body>
<noscript>This sticker picker requires JavaScript</noscript> <noscript>This sticker picker requires JavaScript</noscript>

2
web/package.json

@ -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": [

0
web/frequently-used.js → web/src/frequently-used.js

2
web/index.js → web/src/index.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, 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"

2
web/spinner.js → web/src/spinner.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

0
web/widget-api.js → web/src/widget-api.js

0
web/index.css → web/style/index.css

0
web/index.sass → web/style/index.sass

0
web/spinner.css → web/style/spinner.css

Loading…
Cancel
Save