From 87ba2dd9854f22c0f73cc8a74c35c855e8e9baf0 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Mon, 6 May 2024 11:55:26 +0200 Subject: [PATCH] Update the design of default HTML pages --- index.html | 91 +++++++++++++++++++++++++----- licenses/index.html | 134 ++++++++++++++++++++++++++++++++------------ tests.html | 82 ++++++++++++++++++++++++--- 3 files changed, 250 insertions(+), 57 deletions(-) diff --git a/index.html b/index.html index 3642eb5..ec0bae9 100644 --- a/index.html +++ b/index.html @@ -5,25 +5,89 @@

Welcome to SVR.JS Nightly-GitMain

-
- WARNING!
- This version is only for test purposes and may be unstable. +
+ WARNING!
+ This version is only for test purposes and may be unstable.
-
- -
+
+ +

If you see this page that means that the server is working properly. You can further configure the server and replace index.html and tests.html pages with custom ones.

Default config.json looks like this:

- -
{
+    
+      
{
   "users": [],
   "port": 80,
   "pubport": 80,
@@ -91,11 +155,12 @@
       
  • INSERT CHANGES THERE
  • - Tests
    - Licenses
    - SVR.JS status page
    + Tests
    + Licenses
    + SVR.JS status page
    SVR.JS documentation

    + diff --git a/licenses/index.html b/licenses/index.html index 82fcddf..eba750c 100644 --- a/licenses/index.html +++ b/licenses/index.html @@ -5,10 +5,74 @@ @@ -39,7 +103,7 @@

    Packages used by SVR.JS Nightly-GitMain

    -
    +
    License: MIT
    asap @@ -48,7 +112,7 @@ High-priority task queue for Node.js and browsers
    -
    +
    License: MIT
    asn1.js (by Fedor Indutny) @@ -57,7 +121,7 @@ ASN.1 encoder and decoder
    -
    +
    License: MIT
    asn1.js-rfc2560 (by Fedor Indutny) @@ -66,7 +130,7 @@ RFC2560 structures for asn1.js
    -
    +
    License: MIT
    asn1.js-rfc5280 (by Felix Hanley) @@ -75,7 +139,7 @@ RFC5280 extension structures for asn1.js
    -
    +
    License: MIT
    async (by Caolan McMahon) @@ -84,7 +148,7 @@ Higher-order functions and common patterns for asynchronous code
    -
    +
    License: MIT
    bn.js (by Fedor Indutny) @@ -93,7 +157,7 @@ Big number implementation in pure javascript
    -
    +
    License: MIT
    call-bind (by Jordan Harband) @@ -102,7 +166,7 @@ Robustly `.call.bind()` a function
    -
    +
    License: ISC
    chownr (by Isaac Z. Schlueter) @@ -111,7 +175,7 @@ like `chown -R`
    -
    +
    License: ISC
    dezalgo (by Isaac Z. Schlueter) @@ -120,7 +184,7 @@ Contain async insanity so that the dark pony lord doesn't eat souls
    -
    +
    License: MIT
    formidable @@ -130,7 +194,7 @@ Required by SVR.JS
    -
    +
    License: ISC
    fs-minipass (by Isaac Z. Schlueter) @@ -140,7 +204,7 @@ Patched to work with Bun
    -
    +
    License: MIT
    function-bind (by Raynos) @@ -149,7 +213,7 @@ Implementation of Function.prototype.bind
    -
    +
    License: MIT
    get-intrinsic (by Jordan Harband) @@ -158,7 +222,7 @@ Get and robustly cache all JS language-level intrinsics at first require time
    -
    +
    License: ISC
    graceful-fs @@ -168,7 +232,7 @@ Required by SVR.JS.
    -
    +
    License: MIT
    has (by Thiago de Arruda) @@ -177,7 +241,7 @@ Object.prototype.hasOwnProperty.call shortcut
    -
    +
    License: MIT
    has-symbols (by Jordan Harband) @@ -186,7 +250,7 @@ Determine if the JS environment has Symbol support. Supports spec, or shams.
    -
    +
    License: MIT
    hexoid (by Luke Edwards) @@ -195,7 +259,7 @@ A tiny (190B) and extremely fast utility to generate random IDs of fixed length
    -
    +
    License: ISC
    inherits @@ -204,7 +268,7 @@ Browser-friendly inheritance fully compatible with standard node.js inherits()
    -
    +
    License: MIT
    mime-db @@ -213,7 +277,7 @@ Media Type Database
    -
    +
    License: MIT
    mime-types @@ -223,7 +287,7 @@ Required by SVR.JS.
    -
    +
    License: ISC
    minimalistic-assert @@ -232,7 +296,7 @@ minimalistic-assert ===
    -
    +
    License: ISC
    minipass (by Isaac Z. Schlueter) @@ -241,7 +305,7 @@ minimal implementation of a PassThrough stream
    -
    +
    License: MIT
    minizlib (by Isaac Z. Schlueter) @@ -250,7 +314,7 @@ A small fast zlib stream built on minipass and Node.js's zlib binding.
    -
    +
    License: MIT
    mkdirp @@ -259,7 +323,7 @@ Recursively mkdir, like `mkdir -p`
    -
    +
    License: MIT
    object-inspect (by James Halliday) @@ -268,7 +332,7 @@ string representations of objects in node and the browser
    -
    +
    License: MIT
    ocsp (by Fedor Indutny) @@ -278,7 +342,7 @@ Required by SVR.JS.
    -
    +
    License: ISC
    once (by Isaac Z. Schlueter) @@ -287,7 +351,7 @@ Run a function exactly one time
    -
    +
    License: BSD-3
    qs @@ -296,7 +360,7 @@ A querystring parser that supports nesting and arrays, with a depth limit
    -
    +
    License: MIT
    side-channel (by Jordan Harband) @@ -305,7 +369,7 @@ Store information about any JS value in a side channel. Uses WeakMap if available.
    -
    +
    License: MIT
    simple-lru-cache (by Gabriel Eisbruch) @@ -314,7 +378,7 @@ node-simple-lru-cache =====================
    -
    +
    License: ISC
    tar (by Isaac Z. Schlueter) @@ -324,7 +388,7 @@ Required by SVR.JS.
    -
    +
    License: ISC
    wrappy (by Isaac Z. Schlueter) @@ -333,7 +397,7 @@ Callback wrapping utility
    -
    +
    License: ISC
    yallist (by Isaac Z. Schlueter) diff --git a/tests.html b/tests.html index 05a23bc..d3966a4 100644 --- a/tests.html +++ b/tests.html @@ -5,28 +5,92 @@

    SVR.JS Nightly-GitMain Tests

    Directory (without trailing slash)

    - +

    Directory (with query)

    - +

    Directory (personalized)

    - +

    404 Error

    - +

    Server Side Javascript

    - +

    Proxy test

    - +

    URL rewriting test (/testdir_rewritten => /testdir)

    - +