diff --git a/package.json b/package.json index 5057573..dbb5a02 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "polaris", "version": "1.2.1", "description": "The professional unblocked games site.", - "main": "index.js", + "main": "server/index.js", "type": "module", "scripts": { "start": "node server", diff --git a/polaris.config.js b/polaris.config.js index 1e27b7a..732b224 100644 --- a/polaris.config.js +++ b/polaris.config.js @@ -8,7 +8,7 @@ export default useConfig({ minify: false, //Beta assetScrambling: false, - allowDangerousTemplateInsert: true, + allowDangerousTemplateInsert: false, api: { domain: 'api.polarislearning.org', secure: true diff --git a/server/utils/rewriter.js b/server/utils/rewriter.js index 903b95e..35b6123 100644 --- a/server/utils/rewriter.js +++ b/server/utils/rewriter.js @@ -11,6 +11,7 @@ import url from 'node:url'; import fs from 'node:fs'; const __dirname = url.fileURLToPath(new URL('../', import.meta.url)); +const mode = config.mode; const templateParser = (data) => { return new Promise(async (resolve, reject) => { diff --git a/static/apps.html b/static/apps.html index 450ab9c..761b288 100644 --- a/static/apps.html +++ b/static/apps.html @@ -23,26 +23,26 @@

-
+
- + @@ -51,4 +51,4 @@ window['nitroAds'].createAd('largebillboard1', { - + \ No newline at end of file diff --git a/static/assets/JSON/changelog.json b/static/assets/JSON/changelog.json index df46804..5d58c28 100644 --- a/static/assets/JSON/changelog.json +++ b/static/assets/JSON/changelog.json @@ -1,7 +1,7 @@ [ { "date": "2/12/2024", - "simpleDescription": "Proxy now on homepage for convenience" + "simpleDescription": "Added Funny Shooter 2 and changed the featured game to Run 3" }, { "date": "1/25/2024", diff --git a/static/assets/css/main.css b/static/assets/css/main.css index 0130aa6..2a218b5 100644 --- a/static/assets/css/main.css +++ b/static/assets/css/main.css @@ -167,7 +167,7 @@ hr { transition: all 0.5s ease; } -.proxyinput-index:focus{ +.proxyinput-index:focus { width: 30vw; } @@ -612,6 +612,15 @@ img.featured:hover { margin-right: 100px; } +#changelog i { + overflow: hidden; + white-space: nowrap; + display: block; + /*Converting percentage into px so text-overflow: ellipsis; will apply*/ + width: calc(100% - 1px + 1px); + text-overflow: ellipsis; +} + @keyframes beat { 0%, 50%, @@ -675,4 +684,4 @@ img.featured:hover { 100% { transform: translate(1px, -2px) rotate(-1deg); } -} +} \ No newline at end of file diff --git a/static/assets/css/nav.css b/static/assets/css/nav.css index 24d28b1..7e41197 100644 --- a/static/assets/css/nav.css +++ b/static/assets/css/nav.css @@ -12,7 +12,7 @@ top: 0; margin-left: 50px; margin-right: 50px; - margin-top: 35px; + margin-top: 50px; color: rgb(255, 255, 255); z-index: 100; display: flex; diff --git a/static/assets/js/main.js b/static/assets/js/main.js index c835791..a37b2df 100644 --- a/static/assets/js/main.js +++ b/static/assets/js/main.js @@ -210,10 +210,9 @@ if (location.pathname === '/') { description.textContent = change.simpleDescription; description.classList = 'small'; log.appendChild(description); - }); - const updateChangelog = (amount = 3) => { + const resizeChangelog = (amount = 3) => { amount = amount - 1; for (let i = 0; i < document.querySelector('#changelog').children.length; i++) { @@ -222,8 +221,8 @@ if (location.pathname === '/') { } } - updateChangelog(Math.floor(getAvalibleHeight() / logHeight())); - window.addEventListener('resize', () => updateChangelog(Math.floor(getAvalibleHeight() / logHeight()))); + resizeChangelog(Math.floor(getAvalibleHeight() / logHeight())); + window.addEventListener('resize', () => resizeChangelog(Math.floor(getAvalibleHeight() / logHeight()))); }); } diff --git a/static/changelog.html b/static/changelog.html index 194134c..360a354 100644 --- a/static/changelog.html +++ b/static/changelog.html @@ -21,12 +21,15 @@
-


+

+

Running Polaris unknown +

+ Commit: unknown
diff --git a/static/cheats.html b/static/cheats.html index 224dd62..b5edf62 100644 --- a/static/cheats.html +++ b/static/cheats.html @@ -22,35 +22,35 @@

-
-
+ +

+
- + - - + \ No newline at end of file diff --git a/static/games.html b/static/games.html index caf844a..8a99369 100644 --- a/static/games.html +++ b/static/games.html @@ -14,18 +14,20 @@ - + + +

Games

@@ -38,9 +40,9 @@ window['nitroAds'].createAd('outstreamplayer1', {
- + - +

@@ -60,4 +62,4 @@ window['nitroAds'].createAd('outstreamplayer1', { - + \ No newline at end of file diff --git a/static/index.html b/static/index.html index cf6c43a..90107fc 100644 --- a/static/index.html +++ b/static/index.html @@ -39,11 +39,14 @@ Terms of Service

+
diff --git a/static/search.html b/static/search.html index 3bbc53e..2170a96 100644 --- a/static/search.html +++ b/static/search.html @@ -19,13 +19,14 @@

Proxy

- The proxy is moving to the home page. Click the logo in the top left to go there. +

Search the web without restrictions

+
diff --git a/static/view.html b/static/view.html index 7375e76..8406ced 100644 --- a/static/view.html +++ b/static/view.html @@ -24,7 +24,7 @@
- +