Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ export default [
'**/dist/**',
'**/build/**',
'**/static/**/*',
'packages/server/assets/ingame.js',
'packages/server/assets/homepage.js',
'packages/server/assets/vue.js',
'packages/pages/src/ingame.js',
'packages/pages/src/homepage.js',
'packages/ingame-overlay/renderer/ingame.js'
]
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@font-face {
font-family: 'Roboto';
src: url('Roboto-Regular.ttf');
src: local('Roboto'), local('Roboto-Regular'),
src:
local('Roboto'),
local('Roboto-Regular'),
url('Roboto-Regular.ttf') format('truetype');
font-weight: 400;
font-style: normal;
Expand All @@ -10,7 +12,9 @@
@font-face {
font-family: 'Roboto';
src: url('Roboto-Bold.ttf');
src: local('Roboto Bold'), local('Roboto-Bold'),
src:
local('Roboto Bold'),
local('Roboto-Bold'),
url('Roboto-Bold.ttf') format('truetype');
font-weight: 700;
font-style: normal;
Expand All @@ -19,7 +23,9 @@
@font-face {
font-family: 'Roboto';
src: url('Roboto-Italic.ttf');
src: local('Roboto Italic'), local('Roboto-Italic'),
src:
local('Roboto Italic'),
local('Roboto-Italic'),
url('Roboto-Italic.ttf') format('truetype');
font-weight: 400;
font-style: italic;
Expand All @@ -28,8 +34,10 @@
@font-face {
font-family: 'Roboto';
src: url('Roboto-BoldItalic.ttf');
src: local('Roboto Bold Italic'), local('Roboto-Bold-Italic'),
src:
local('Roboto Bold Italic'),
local('Roboto-Bold-Italic'),
url('Roboto-BoldItalic.ttf') format('truetype');
font-weight: 700;
font-style: italic;
}
}
48 changes: 48 additions & 0 deletions packages/pages/assets/icons/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
@font-face {
font-family: icomoon;
src: url(fonts/icomoon.eot?yo4fz7);
src:
url(fonts/icomoon.eot?yo4fz7#iefix) format('embedded-opentype'),
url(fonts/icomoon.ttf?yo4fz7) format('truetype'),
url(fonts/icomoon.woff?yo4fz7) format('woff'),
url(fonts/icomoon.svg?yo4fz7#icomoon) format('svg');
font-weight: 400;
font-style: normal;
font-display: block;
}
[class*=' icon-'],
[class^='icon-'] {
font-family: icomoon !important;
speak: never;
font-style: normal;
font-weight: 400;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-plus:before {
content: '\e92a';
}
.icon-delete:before {
content: '\e92d';
}
.icon-folder:before {
content: '\e900';
}
.icon-settings:before {
content: '\e901';
}
.icon-link:before {
content: '\e902';
}
.icon-github:before {
content: '\e903';
}
.icon-discord:before {
content: '\e904';
}
.icon-builder:before {
content: '\e905';
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

<head>
<title>tosu dashboard v1.5</title>
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico" />
<link rel="stylesheet" href="/assets/homepage.min.css" />
<link rel="stylesheet" href="/assets/icons/style.css" />
<link rel="stylesheet" href="/assets/fonts/style.css" />
<meta charset="UTF-8">
<link rel="icon" type="image/x-icon" href="./favicon.ico" />
<link rel="stylesheet" href="./src/homepage.scss" />
<link rel="stylesheet" href="./assets/icons/style.css" />
<link rel="stylesheet" href="./assets/fonts/style.css" />
</head>

<body>
Expand Down Expand Up @@ -77,8 +78,7 @@
<a href="https://github.com/xxCherry" target="_blank">Cherry</a>
</span>
</footer>
<script src="/assets/vue.js"></script>
<script type="module" src="/assets/homepage.js"></script>
<script type="module" src="./src/homepage.js"></script>
</body>

</html>
23 changes: 11 additions & 12 deletions packages/server/assets/ingame.html → packages/pages/ingame.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
<html lang="en">
<head>
<title>tosu ingame</title>
<meta charset="UTF-8" />
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="stylesheet" href="/assets/ingame.css" />
<link rel="stylesheet" href="/assets/homepage.min.css" />
<link rel="stylesheet" href="/assets/icons/style.css" />
<link rel="stylesheet" href="/assets/fonts/style.css" />
<link rel="stylesheet" href="./src/ingame.css" />
<link rel="stylesheet" href="./src/homepage.scss" />
<link rel="stylesheet" href="./assets/icons/style.css" />
<link rel="stylesheet" href="./assets/fonts/style.css" />

<link rel="preload" as="image" href="/assets/images/39979.png" />
<link rel="preload" as="image" href="./assets/images/39979.png" />
</head>

<body class="ingame">
Expand All @@ -32,7 +32,7 @@
<div class="scroll">
<div v-if="available_overlays.length == 0" class="no-available">
<span>You have 0 overlays</span><br />
<a href="http://127.0.0.1:24050/available?ingame=true" target="_blank">
<a href="/available?ingame=true" target="_blank">
Download more
<i class="icon-link"></i>
</a>
Expand Down Expand Up @@ -63,7 +63,7 @@
<a
v-if="overlays[context_overlay.index]._settings == true"
class="ctx-button btn-settings"
:href="`http://127.0.0.1:24050/settings?overlay=${overlays[context_overlay.index].folderName}&ingame=true`"
:href="`/settings?overlay=${overlays[context_overlay.index].folderName}&ingame=true`"
target="_blank"
@click.left="notification({
text: `Settings opened in separate window`,
Expand Down Expand Up @@ -216,7 +216,7 @@
</div>
</transition-group>

<a href="http://127.0.0.1:24050/available?ingame=true" target="_blank" class="ctx-button download-more">
<a href="/available?ingame=true" target="_blank" class="ctx-button download-more">
<i class="icon-link"></i>
Download more overlays
</a>
Expand Down Expand Up @@ -245,8 +245,7 @@

<div class="copyright">Tosu.app</div>

<script src="/assets/vue.js"></script>
<script type="module" src="/assets/ingame.js"></script>
<script type="module" src="/assets/homepage.js"></script>
<script type="module" src="./src/ingame.js"></script>
<script type="module" src="./src/homepage.js"></script>
</body>
</html>
22 changes: 22 additions & 0 deletions packages/pages/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "@tosu/pages",
"version": "0.1.0",
"description": "Web pages for tosu",
"author": "cyperdark",
"type": "module",
"exports": {
"./*": "./dist/*"
},
"scripts": {
"build": "vite build"
},
"dependencies": {
"vue": "^3.5.27"
},
"devDependencies": {
"@vitejs/plugin-vue": "^6.0.3",
"autoprefixer": "^10.4.23",
"vite": "^7.3.0",
"vite-tsconfig-paths": "^6.0.4"
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<head>
<title>Tosu Report</title>
<meta charset="UTF-8" />
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
Expand Down
Loading
Loading