From 3b1cae8d238031087e7a2d545c45dc6f2077ac9a Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Tue, 16 Jun 2020 22:02:05 +0200 Subject: [PATCH] move web content to www folder This makes a better separation of actual content and meta data (readme, license, etc.) much better. --- README.md | 8 ++++---- config.js => www/config.js | 6 +++--- i18n.js => www/i18n.js | 0 index.css => www/index.css | 0 index.html => www/index.html | 0 index.js => www/index.js | 0 logo.png => www/logo.png | Bin spinner.gif => www/spinner.gif | Bin 8 files changed, 7 insertions(+), 7 deletions(-) rename config.js => www/config.js (66%) rename i18n.js => www/i18n.js (100%) rename index.css => www/index.css (100%) rename index.html => www/index.html (100%) rename index.js => www/index.js (100%) rename logo.png => www/logo.png (100%) rename spinner.gif => www/spinner.gif (100%) diff --git a/README.md b/README.md index 48224a9..b071fd6 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,18 @@ # Yet Another Firmware Selector A simple OpenWrt firmware selector using autocompletion. Uses plain -HTML/CSS/JavaScript. Checkout the [Demo](https://mwarning.github.io/yet_another_firmware_selector/). +HTML/CSS/JavaScript. Checkout the [Demo](https://mwarning.github.io/yet-another-firmware-selector/www/). ![image](misc/screenshot.png) ## Run -* Download repository and change directory +* Checkput the repository and change to the project directory * Start webserver (e.g. `python3 -m http.server`) -* Go to `http://localhost:8000` in your web browser +* Go to `http://localhost:8000/www/` in your web browser -Configure with [config.js](config.js). +Configure with [config.js](www/config.js). ## Attended Sysupgrade Support diff --git a/config.js b/www/config.js similarity index 66% rename from config.js rename to www/config.js index 6048dd6..78adfb0 100644 --- a/config.js +++ b/www/config.js @@ -5,9 +5,9 @@ var config = { showHelp: true, // Image overview file or path to the ASU API versions: { - 'SNAPSHOT': 'misc/snapshot/overview.json', - '19.07.1': 'misc/19.07.1/overview.json', - '18.06.7': 'misc/18.06.7/overview.json' + 'SNAPSHOT': '../misc/snapshot/overview.json', + '19.07.1': '../misc/19.07.1/overview.json', + '18.06.7': '../misc/18.06.7/overview.json' }, // Build custom images // See https://github.com/aparcar/asu diff --git a/i18n.js b/www/i18n.js similarity index 100% rename from i18n.js rename to www/i18n.js diff --git a/index.css b/www/index.css similarity index 100% rename from index.css rename to www/index.css diff --git a/index.html b/www/index.html similarity index 100% rename from index.html rename to www/index.html diff --git a/index.js b/www/index.js similarity index 100% rename from index.js rename to www/index.js diff --git a/logo.png b/www/logo.png similarity index 100% rename from logo.png rename to www/logo.png diff --git a/spinner.gif b/www/spinner.gif similarity index 100% rename from spinner.gif rename to www/spinner.gif -- 2.30.2