Rename Build directory to docs

This will make it easier to deploy the project on GitHub pages
This commit is contained in:
Pratik Borsadiya 2018-09-07 19:28:23 +05:30
parent 060ba7056c
commit 086bd13d12
30 changed files with 39944 additions and 151 deletions

View File

@ -12,7 +12,11 @@ aria2c --enable-rpc --rpc-listen-all
If aria2 is not installed in your local machine then head on to https://aria2.github.io/ and follow the instructions there.
Then download the webui, you can either do that by downloading this repository and running index.html from build folder in the browser. Or you could just head on to https://ziahamza.github.io/webui-aria2/ and just start downloading files! After that you can also save it for offline use by saving from the browser save page as option. You can also use node js to create simple server by using the following command from the download folder.
Then to use the WebUI-Aria2,
- You can either download this repository and open index.html from `docs` folder.
- Or you could just head on to https://ziahamza.github.io/webui-aria2/ and start downloading files! Once you have visited the URL thanks to [Progressive Web Apps](https://developers.google.com/web/progressive-web-apps/) you can open the same URL even when you are offline.
- Or you can also use NodeJS to create simple server by using the following command from the project folder.
```bash
node node-server.js

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,82 +0,0 @@
self.__precacheManifest = [
{
"revision": "4eb7af0db693855a4f24cb119a73110d",
"url": "flags/de.svg"
},
{
"revision": "9be2d6fa33228eaaef3a00ce10238d31",
"url": "index.html"
},
{
"revision": "3b00bc3b62feafb50a2e",
"url": "vendor.js"
},
{
"revision": "8020fcd82cc09410f7bad1bc875c115a",
"url": "flags/es.svg"
},
{
"revision": "617c6a550519013aed310e0fe85bb088",
"url": "flags/us.svg"
},
{
"revision": "0f6e3867129940ef785c7c8720e0b56d",
"url": "flags/ru.svg"
},
{
"revision": "09ccf3b3b0a12dd5b3559acedc77858c",
"url": "flags/nl.svg"
},
{
"revision": "22084f478d0f401fa96288f7790ba8ef",
"url": "flags/tw.svg"
},
{
"revision": "4a936767fc2ac7335885d90b471d8629",
"url": "flags/pl.svg"
},
{
"revision": "60fb243496d39972a15bf5a78b6e50ee",
"url": "flags/tr.svg"
},
{
"revision": "a88d006ab7afa49d76ecd86dd1b11f77",
"url": "flags/th.svg"
},
{
"revision": "d5204a17fb30a59a4760b4109fbefe0b",
"url": "flags/it.svg"
},
{
"revision": "5e7a66fb0660b714f1a47859b90767e0",
"url": "flags/ir.svg"
},
{
"revision": "d107c3019844d2d1f0a4d179cbd8046e",
"url": "flags/id.svg"
},
{
"revision": "be1df903f0d7711ef8a4e96b6ca56dc0",
"url": "flags/fr.svg"
},
{
"revision": "5d1c62c220e3dcc85d70e206d44a9d4c",
"url": "flags/cz.svg"
},
{
"revision": "bedfd890b6c16afeb952546279242cf7",
"url": "flags/cn.svg"
},
{
"revision": "78de6acf30cc7fa4700207e205a52e88",
"url": "flags/br.svg"
},
{
"revision": "23a22250de06d1793dc4",
"url": "app.js"
},
{
"revision": "23a22250de06d1793dc4",
"url": "app.css"
}
];

File diff suppressed because one or more lines are too long

5465
docs/app.css Normal file

File diff suppressed because it is too large Load Diff

11867
docs/app.js Normal file

File diff suppressed because it is too large Load Diff

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 792 B

After

Width:  |  Height:  |  Size: 792 B

View File

Before

Width:  |  Height:  |  Size: 493 B

After

Width:  |  Height:  |  Size: 493 B

View File

Before

Width:  |  Height:  |  Size: 245 B

After

Width:  |  Height:  |  Size: 245 B

View File

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 144 KiB

View File

Before

Width:  |  Height:  |  Size: 305 B

After

Width:  |  Height:  |  Size: 305 B

View File

Before

Width:  |  Height:  |  Size: 252 B

After

Width:  |  Height:  |  Size: 252 B

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

Before

Width:  |  Height:  |  Size: 305 B

After

Width:  |  Height:  |  Size: 305 B

View File

Before

Width:  |  Height:  |  Size: 379 B

After

Width:  |  Height:  |  Size: 379 B

View File

Before

Width:  |  Height:  |  Size: 228 B

After

Width:  |  Height:  |  Size: 228 B

View File

Before

Width:  |  Height:  |  Size: 309 B

After

Width:  |  Height:  |  Size: 309 B

View File

Before

Width:  |  Height:  |  Size: 299 B

After

Width:  |  Height:  |  Size: 299 B

View File

Before

Width:  |  Height:  |  Size: 690 B

After

Width:  |  Height:  |  Size: 690 B

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@ -0,0 +1,82 @@
self.__precacheManifest = [
{
revision: "4eb7af0db693855a4f24cb119a73110d",
url: "flags/de.svg"
},
{
revision: "9be2d6fa33228eaaef3a00ce10238d31",
url: "index.html"
},
{
revision: "3b00bc3b62feafb50a2e",
url: "vendor.js"
},
{
revision: "8020fcd82cc09410f7bad1bc875c115a",
url: "flags/es.svg"
},
{
revision: "617c6a550519013aed310e0fe85bb088",
url: "flags/us.svg"
},
{
revision: "0f6e3867129940ef785c7c8720e0b56d",
url: "flags/ru.svg"
},
{
revision: "09ccf3b3b0a12dd5b3559acedc77858c",
url: "flags/nl.svg"
},
{
revision: "22084f478d0f401fa96288f7790ba8ef",
url: "flags/tw.svg"
},
{
revision: "4a936767fc2ac7335885d90b471d8629",
url: "flags/pl.svg"
},
{
revision: "60fb243496d39972a15bf5a78b6e50ee",
url: "flags/tr.svg"
},
{
revision: "a88d006ab7afa49d76ecd86dd1b11f77",
url: "flags/th.svg"
},
{
revision: "d5204a17fb30a59a4760b4109fbefe0b",
url: "flags/it.svg"
},
{
revision: "5e7a66fb0660b714f1a47859b90767e0",
url: "flags/ir.svg"
},
{
revision: "d107c3019844d2d1f0a4d179cbd8046e",
url: "flags/id.svg"
},
{
revision: "be1df903f0d7711ef8a4e96b6ca56dc0",
url: "flags/fr.svg"
},
{
revision: "5d1c62c220e3dcc85d70e206d44a9d4c",
url: "flags/cz.svg"
},
{
revision: "bedfd890b6c16afeb952546279242cf7",
url: "flags/cn.svg"
},
{
revision: "78de6acf30cc7fa4700207e205a52e88",
url: "flags/br.svg"
},
{
revision: "23a22250de06d1793dc4",
url: "app.js"
},
{
revision: "23a22250de06d1793dc4",
url: "app.css"
}
];

View File

@ -13,9 +13,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.4.1/workbox-sw.js");
importScripts(
"precache-manifest.52b448caf742d9881a064bf25c755e89.js"
);
importScripts("precache-manifest.52b448caf742d9881a064bf25c755e89.js");
/**
* The workboxSW.precacheAndRoute() method efficiently caches and responds to

22520
docs/vendor.js Normal file

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,7 @@ port = process.argv[2] || 8888;
http
.createServer(function(request, response) {
var uri = url.parse(request.url).pathname,
filename = path.join(process.cwd(), "build", uri);
filename = path.join(process.cwd(), "docs", uri);
var extname = path.extname(filename);
var contentType = "text/html";

View File

@ -1,5 +1,5 @@
{
"root": "./build",
"root": "./docs",
"routes": {
"/**": "index.html"
}

View File

@ -6,7 +6,7 @@ const HtmlWebpackPlugin = require("html-webpack-plugin");
const CleanWebpackPlugin = require("clean-webpack-plugin");
const WorkboxPlugin = require("workbox-webpack-plugin");
const BUILD_DIR = path.join(__dirname, "build");
const BUILD_DIR = path.join(__dirname, "docs");
const APP_DIR = path.join(__dirname, "src", "js");
const config = {
@ -42,7 +42,7 @@ const config = {
filename: "[name].js"
},
plugins: [
new CleanWebpackPlugin(["build"]),
new CleanWebpackPlugin(["docs"]),
new webpack.ProvidePlugin({
"window.jQuery": "jquery",
jQuery: "jquery",