Skip to content

Commit 4e89348

Browse files
committed
V5.2.1 - Update Bare Route + Minor Fixes + Formatted
1 parent e0f78de commit 4e89348

File tree

19 files changed

+56
-60
lines changed

19 files changed

+56
-60
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import config from "./config.js"
88
const __dirname = process.cwd()
99
const server = http.createServer()
1010
const app = express()
11-
const bareServer = createBareServer("/o/")
11+
const bareServer = createBareServer("/ov/")
1212
const PORT = process.env.PORT || 8080
1313
if (config.challenge) {
1414
console.log(`Password protection is enabled. Usernames are: ${Object.keys(config.users)}`)
@@ -18,7 +18,7 @@ if (config.challenge) {
1818
app.use(express.json())
1919
app.use(express.urlencoded({ extended: true }))
2020
app.use(express.static(path.join(__dirname, "static")))
21-
app.use("/o/", cors({ origin: true }))
21+
app.use("ov", cors({ origin: true }))
2222
const routes = [
2323
{ path: "/as", file: "apps.html" },
2424
{ path: "/gm", file: "games.html" },

static/apps.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<meta http-equiv="X-Content-Type-Options" content="nosniff" />
88
<link rel="shortcut icon" id="tab-favicon" href="favicon.png" />
99
<title id="tab-title">Home</title>
10-
<script src="./assets/-/bundle.js?v=1"></script>
11-
<script src="./assets/-/config.js?v=1"></script>
10+
<script src="./assets/-/bundle.js?v=2"></script>
11+
<script src="./assets/-/config.js?v=2"></script>
1212
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1313
<link rel="stylesheet" href="/assets/styles/main.css?v=8" />
1414
<link rel="stylesheet" href="/assets/styles/global.css?v=8" />
15-
<script src="/assets/scripts/m.js?v=50"></script>
16-
<script src="/assets/scripts/i.js?v=34"></script>
15+
<script src="/assets/scripts/m.js?v=52"></script>
16+
<script src="/assets/scripts/i.js?v=36"></script>
1717
<script src="https://kit.fontawesome.com/1237c86ba0.js" crossorigin="anonymous"></script>
1818
<script src="assets/scripts/ap.js?v=60"></script>
1919
</head>
@@ -38,7 +38,7 @@
3838
</div>
3939
<div class="pinned-apps"></div>
4040
<div class="container-apps"></div>
41-
<script src="/assets/scripts/m.js?v=50"></script>
41+
<script src="/assets/scripts/m.js?v=52"></script>
4242
<script async src="https://www.googletagmanager.com/gtag/js?id=G-WKJQ5QHQTJ"></script>
4343
<!-- DO NOT REMOVE-->
4444
<script>

static/assets/-/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/assets/-/config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
self.__uv$config = {
22
prefix: "/a/",
3-
bare: "/o/",
3+
bare: "/ov/",
44
encodeUrl: Ultraviolet.codec.xor.encode,
55
decodeUrl: Ultraviolet.codec.xor.decode,
6-
handler: "/assets/-/handler.js?v=1",
7-
bundle: "/assets/-/bundle.js?v=1",
8-
config: "/assets/-/config.js?v=1",
9-
sw: "/assets/-/sw.js?v=1",
6+
handler: "/assets/-/handler.js?v=2",
7+
bundle: "/assets/-/bundle.js?v=2",
8+
config: "/assets/-/config.js?v=2",
9+
sw: "/assets/-/sw.js?v=2",
1010
}

static/assets/-/handler.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/assets/-/sw.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/assets/scripts/i.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
window.addEventListener("load", () => {
2-
navigator.serviceWorker.register("../sw.js?v=22", {
2+
navigator.serviceWorker.register("../sw.js?v=24", {
33
scope: "/a/",
44
})
55
})

static/assets/scripts/m.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ document.addEventListener("DOMContentLoaded", function () {
1818
})
1919
// Dynamic & Ads
2020
document.addEventListener("DOMContentLoaded", function () {
21-
if (localStorage.getItem("dy") === null || localStorage.getItem("ad") === "auto") {
21+
if (localStorage.getItem("dy") === null || localStorage.getItem("dy") === undefined) {
2222
localStorage.setItem("dy", "false")
2323
}
2424
})
@@ -51,16 +51,12 @@ function Clear() {
5151
}
5252
}
5353

54-
if (localStorage.getItem("cache") !== "true") {
54+
if (localStorage.getItem("cache") !== "3") {
5555
Clear()
56-
localStorage.setItem("cache", "true")
56+
localStorage.setItem("cache", "3")
5757
}
5858

59-
document.addEventListener("DOMContentLoaded", function () {
60-
if (localStorage.getItem("dy") === null || localStorage.getItem("ad") === "auto") {
61-
localStorage.setItem("dy", "false")
62-
}
63-
})
59+
6460

6561
// Nav
6662
var nav = document.querySelector(".fixed-nav-bar")

static/dy/client.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/dy/config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ self.__dynamic$config = {
55
logLevel: 0,
66
bare: {
77
version: 2,
8-
path: "/o/",
8+
path: "/ov/",
99
},
1010
tab: {
1111
title: null,
@@ -15,10 +15,10 @@ self.__dynamic$config = {
1515
assets: {
1616
prefix: "/dy/",
1717
files: {
18-
handler: "handler.js?v=4",
19-
client: "client.js?v=4",
20-
worker: "worker.js?v=4",
21-
config: "config.js?v=8",
18+
handler: "handler.js?v=12",
19+
client: "client.js?v=12",
20+
worker: "worker.js?v=12",
21+
config: "config.js?v=12",
2222
inject: "",
2323
},
2424
},

0 commit comments

Comments
 (0)