Fixed building proccess and removed distrubution files from repo
This commit is contained in:
parent
76fad9a6e4
commit
716c72f1dd
11 changed files with 6 additions and 1165 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -2,4 +2,5 @@ node_modules
|
|||
package-lock.json
|
||||
certificate.crt
|
||||
private.key
|
||||
main.js
|
||||
main.js
|
||||
dist
|
||||
14
config.json
14
config.json
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
"serverRoot" : "./www",
|
||||
"logErrors" : true,
|
||||
"useHTTPS" : true,
|
||||
"httpsKey" : "./private.key",
|
||||
"httpsCert" : "./certificate.crt",
|
||||
"directoryListing" : true,
|
||||
"defaultPage" : "/index.html",
|
||||
"useDefaultPage" : true,
|
||||
"listingTitle" : "Zephyrus Listing",
|
||||
"listingFooter" : "Powered by <a href=\"https://git.disroot.org/adrianvictor/zephyrus\">Zephyrus</a>",
|
||||
"listingCSS" : true,
|
||||
"defaltToMime" : "application/octet-stream"
|
||||
}
|
||||
21
custom.css
21
custom.css
|
|
@ -1,21 +0,0 @@
|
|||
body {
|
||||
background-color: black;
|
||||
color: white;
|
||||
}
|
||||
|
||||
a {
|
||||
color: gray;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
#title {
|
||||
color: orangered;
|
||||
}
|
||||
|
||||
#previousDirectoryLink {
|
||||
color: red;
|
||||
}
|
||||
|
|
@ -5,7 +5,8 @@
|
|||
"version": "1.0.0",
|
||||
"private": false,
|
||||
"scripts": {
|
||||
"start": "ts-node main.ts"
|
||||
"start": "ts-node main.ts",
|
||||
"build" : "npx tsc"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^22.9.0",
|
||||
|
|
@ -15,10 +16,5 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"mime": "^4.0.4"
|
||||
},
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"module": "commonjs",
|
||||
"esModuleInterop": true
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@
|
|||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"outDir": "./dist"
|
||||
},
|
||||
"include": ["**/*.ts"],
|
||||
"exclude": ["node_modules"]
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 2.1 MiB |
104
www/index.html
104
www/index.html
|
|
@ -1,104 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<style>
|
||||
body {
|
||||
background-color: black;
|
||||
color: white;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items:center;
|
||||
margin: 0;
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
a {
|
||||
color: orangered;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: red;
|
||||
}
|
||||
|
||||
footer {
|
||||
border-top: 1px solid white;
|
||||
}
|
||||
|
||||
header {
|
||||
border-bottom: 1px solid white;
|
||||
}
|
||||
|
||||
#everythingHelper::before {
|
||||
content: "";
|
||||
background-image: url(background.jpg);
|
||||
position: absolute;
|
||||
background-size: cover;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
z-index: -1;
|
||||
opacity: .25;
|
||||
}
|
||||
|
||||
#everythingHelper {
|
||||
max-width: 50vw;
|
||||
}
|
||||
|
||||
#titleLinks {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#titleLinks * {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 800px) {
|
||||
#everythingHelper {
|
||||
max-width: 80vw;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 280px) {
|
||||
body {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
#title {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#titleLinks {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#everythingHelper {
|
||||
max-width: 90vw;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<title>Adrian Victor</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="everythingHelper">
|
||||
<header>
|
||||
<h1 id="title">Zephyrus</h1>
|
||||
<ul id="titleLinks"><a href="https://git.disroot.org/adrianvictor/zephyrus">source-code</a><a href="license.txt">license (3-Clause BSD License)</a></ul>
|
||||
</header>
|
||||
<main>
|
||||
<h2>It's running!</h2>
|
||||
<p>If you're seeing this when accessing your server's root, default page is enabled.</p>
|
||||
<p>Drop your files at ./www (It's the default root, but you can change in the config)</p>
|
||||
<p>Directory listing is enabled by default, you may want to change it.</p>
|
||||
<p>Configure your server in config.json.</p>
|
||||
</main>
|
||||
<footer>
|
||||
<p><a href="https://git.disroot.org/adrianvictor/">Adrian Victor.</a></p>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1 +0,0 @@
|
|||
This is a demo file that comes with Zephyrus
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
Copyright 2024 Adrian Victor de Abreu Alves
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
1000
www/lorem.txt
1000
www/lorem.txt
File diff suppressed because it is too large
Load diff
|
|
@ -1,6 +0,0 @@
|
|||
Salted Banana recipe
|
||||
Required ingredients:
|
||||
- Random string
|
||||
- Banana
|
||||
Mix the random string and the banana together.
|
||||
Remember, it's more secure when salted!
|
||||
Loading…
Add table
Add a link
Reference in a new issue