Skip to content

Commit be6c77a

Browse files
committed
prettier
1 parent 464fb06 commit be6c77a

19 files changed

+3842
-3173
lines changed

README.md

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,35 @@
55

66
![inpreview](https://i.imgur.com/DGnFipl.jpeg)
77

8-
> [!IMPORTANT]
9-
> If you fork this repo please consider giving the original repo a star. Thank you!
8+
> [!IMPORTANT] If you fork this repo please consider giving the original repo a
9+
> star. Thank you!
1010
1111
## Features
1212

13-
- Out of this world UI
14-
- Games
15-
- Apps
16-
- Proxy
17-
- Settings
18-
- Cloaking [Blob & About:Blank]
19-
- Tab Cloaking [Presets]
13+
- Out of this world UI
14+
- Games
15+
- Apps
16+
- Proxy
17+
- Settings
18+
- Cloaking [Blob & About:Blank]
19+
- Tab Cloaking [Presets]
2020

2121
## Deployment
22-
> [!WARNING]
23-
> You **can not** host Space locally via a static web hosting site such as Netlify, Github Pages, and Cloudflare Pages.
22+
23+
> [!WARNING] You **can not** host Space locally via a static web hosting site
24+
> such as Netlify, Github Pages, and Cloudflare Pages.
2425
2526
Please run the following commands to host a server:
27+
2628
```
2729
git clone https://github.com/NightProxy/space.git
2830
cd Space
2931
npm install
3032
npm start
3133
```
34+
3235
### Updating
36+
3337
```
3438
cd Space
3539
git pull --force --allow-unrelated-histories
@@ -40,17 +44,22 @@ git pull --force --allow-unrelated-histories
4044
<a target="_blank" href="https://app.cyclic.sh/api/app/deploy/NightProxy/Space"><img alt="Deploy to Cyclic" src="https://binbashbanana.github.io/deploy-buttons/buttons/remade/cyclic.svg"></a>
4145

4246
## Where to ask for help
43-
> [!NOTE]
44-
> If you'd like to get links, support, or other deployment methods join our [Discord Server](https://discord.gg/7SCnPUM5S6) or open a discussion.
4547

48+
> [!NOTE] If you'd like to get links, support, or other deployment methods join
49+
> our [Discord Server](https://discord.gg/7SCnPUM5S6) or open a discussion.
4650
47-
## Contribution
48-
To contribute to Light, clone the repo locally and submit your code in a pull request.
49-
If you are making large changes, please make sure you test your code before submitting a pull request.
51+
## Contribution
52+
53+
To contribute to Light, clone the repo locally and submit your code in a pull
54+
request. If you are making large changes, please make sure you test your code
55+
before submitting a pull request.
5056

5157
## Contributors
58+
5259
Thank you to the following people for contributing to Light.
5360

5461
[![Contributors](https://contrib.rocks/image?repo=NightProxy/Space)](https://github.com/NightProxy/Space/graphs/contributors)
55-
## Discord
62+
63+
## Discord
64+
5665
[![Discord](https://invidget.switchblade.xyz/QmWUfvm4bn?theme=dark)](https://discord.gg/QmWUfvm4bn)

Security.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
11
# Security & Supported versions
2+
23
> Supported versions of Light are as followed:
34
4-
| Version |Supported|
5-
| -------- | ------- |
6-
|v1.0.0 |✅ Yes |
5+
| Version | Supported |
6+
| ------- | --------- |
7+
| v1.0.0 | ✅ Yes |
78

89
## Why?
9-
Having different versions is difficult to maintain and is costly. If you would like to use a different version you may download it and host it on your own repository.
1010

11-
# Current Version
11+
Having different versions is difficult to maintain and is costly. If you would
12+
like to use a different version you may download it and host it on your own
13+
repository.
14+
15+
# Current Version
16+
1217
The current version of Space is **v1.0.0**
1318

14-
> [!IMPORTANT]
15-
> If you do not have the current version of Space please update your repository or things may not function correctly.
19+
> [!IMPORTANT] If you do not have the current version of Space please update
20+
> your repository or things may not function correctly.
1621
1722
# Support
18-
If you are having issues with your repository and/or its versions, you can submit a discussion or open a report in our [Discord](https://discord.lightgo.app) and we will try to reach you ASAP. Thank you for using Space.
1923

24+
If you are having issues with your repository and/or its versions, you can
25+
submit a discussion or open a report in our
26+
[Discord](https://discord.lightgo.app) and we will try to reach you ASAP. Thank
27+
you for using Space.

index.js

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,75 @@
1-
import { createBareServer } from "@tomphttp/bare-server-node";
2-
import express from "express";
3-
import cors from "cors";
4-
import http from "node:http";
5-
import path from "node:path";
6-
import { uvPath } from "@titaniumnetwork-dev/ultraviolet"
1+
import { createBareServer } from '@tomphttp/bare-server-node';
2+
import express from 'express';
3+
import cors from 'cors';
4+
import http from 'node:http';
5+
import path from 'node:path';
6+
import { uvPath } from '@titaniumnetwork-dev/ultraviolet';
77

88
const server = http.createServer();
99
const app = express();
1010
const __dirname = process.cwd();
11-
const bare = createBareServer("/bare/");
11+
const bare = createBareServer('/bare/');
1212
const PORT = 6060;
1313

1414
app.use(cors());
1515
app.use(express.urlencoded({ extended: true }));
1616
app.use(express.json());
17-
app.use(express.static(path.join(__dirname, "public")));
18-
app.use("/!", express.static(uvPath));
17+
app.use(express.static(path.join(__dirname, 'public')));
18+
app.use('/!', express.static(uvPath));
1919

20-
app.get("/", (req, res) => {
21-
res.sendFile(path.join(__dirname, "public/index.html"));
20+
app.get('/', (req, res) => {
21+
res.sendFile(path.join(__dirname, 'public/index.html'));
2222
});
2323

24-
app.get("/&", (req, res) => {
25-
res.sendFile(path.join(__dirname, "public/&.html"));
26-
});;
24+
app.get('/&', (req, res) => {
25+
res.sendFile(path.join(__dirname, 'public/&.html'));
26+
});
2727

28-
app.get("/~", (req, res) => {
29-
res.sendFile(path.join(__dirname, "public/~.html"));
30-
});;
28+
app.get('/~', (req, res) => {
29+
res.sendFile(path.join(__dirname, 'public/~.html'));
30+
});
3131

32-
app.get("/g", (req, res) => {
33-
res.sendFile(path.join(__dirname, "public/g.html"));
34-
});;
32+
app.get('/g', (req, res) => {
33+
res.sendFile(path.join(__dirname, 'public/g.html'));
34+
});
3535

36-
app.get("/a", (req, res) => {
37-
res.sendFile(path.join(__dirname, "public/a.html"));
38-
});;
36+
app.get('/a', (req, res) => {
37+
res.sendFile(path.join(__dirname, 'public/a.html'));
38+
});
3939

40-
app.get("/err", (req, res) => {
41-
res.sendFile(path.join(__dirname, "public/err.html"));
42-
});;
40+
app.get('/err', (req, res) => {
41+
res.sendFile(path.join(__dirname, 'public/err.html'));
42+
});
4343

44-
app.get("/500", (req, res) => {
45-
res.sendFile(path.join(__dirname, "public/500.html"));
46-
});;
44+
app.get('/500', (req, res) => {
45+
res.sendFile(path.join(__dirname, 'public/500.html'));
46+
});
4747

48-
app.get("/a", (req, res) => {
49-
res.sendFile(path.join(__dirname, "public/a.html"));
50-
});;
51-
app.get("/g", (req, res) => {
52-
res.sendFile(path.join(__dirname, "public/g.html"));
53-
});;
48+
app.get('/a', (req, res) => {
49+
res.sendFile(path.join(__dirname, 'public/a.html'));
50+
});
51+
app.get('/g', (req, res) => {
52+
res.sendFile(path.join(__dirname, 'public/g.html'));
53+
});
5454

55-
server.on("request", (req, res) => {
56-
if (bare.shouldRoute(req)) {
57-
bare.routeRequest(req, res);
58-
} else {
59-
app(req, res);
60-
}
55+
server.on('request', (req, res) => {
56+
if (bare.shouldRoute(req)) {
57+
bare.routeRequest(req, res);
58+
} else {
59+
app(req, res);
60+
}
6161
});
6262

63-
server.on("upgrade", (req, socket, head) => {
64-
if (bare.shouldRoute(req)) {
65-
bare.routeUpgrade(req, socket, head);
66-
} else {
67-
socket.destroy();
68-
}
63+
server.on('upgrade', (req, socket, head) => {
64+
if (bare.shouldRoute(req)) {
65+
bare.routeUpgrade(req, socket, head);
66+
} else {
67+
socket.destroy();
68+
}
6969
});
7070

71-
server.on("listening", () => {
72-
console.log(`Server listening on port ${PORT}`);
71+
server.on('listening', () => {
72+
console.log(`Server listening on port ${PORT}`);
7373
});
7474

7575
server.listen(PORT);

0 commit comments

Comments
 (0)