Update frontend to remove references to nise.moe

This commit is contained in:
Stedoss 2024-11-05 20:26:51 +00:00
parent 1b4e0b52bf
commit 750de4ef09
8 changed files with 23 additions and 16 deletions

View File

@ -39,7 +39,7 @@ const routes: Routes = [
{path: 'neko', component: MetabaseComponent, title: 'metabase integration'},
{path: '**', component: HomeComponent, title: '/nise.moe/'},
{path: '**', component: HomeComponent, title: '/nise.stedos.dev/'},
];
@NgModule({

View File

@ -5,7 +5,7 @@
</a>
</div>
<div>
<h2 style="margin-top: 6px">/nise.moe/</h2>
<h2 style="margin-top: 6px">/nise.stedos.dev/</h2>
<ul style="font-size: 15px; line-height: 19px;">
<li><a [routerLink]="['/']">./home</a></li>
<li><a [routerLink]="['/sus']">./suspicious-scores</a></li>
@ -35,5 +35,5 @@
<router-outlet></router-outlet>
<div class="text-center version">
v20240511
v20241105
</div>

View File

@ -2,7 +2,7 @@
<div class="subcontainer">
<div class="term">
<h1># Welcome to [nise.moe]</h1>
<h1># Welcome to [nise.stedos.dev] (formerly nise.moe)</h1>
<h3>wtf is this?</h3>
<p>This application will automatically crawl [osu!std] top scores and search for stolen replays or obvious relax/timewarp scores.</p>
<p>It started collecting replays on <i>2024-01-12</i></p>
@ -15,7 +15,7 @@
<h3 class="mt-4"># do you use rss? (nerd)</h3>
<p>you can keep up with newly detected scores with the rss feed, subscribe to it using your favorite reader.</p>
<div class="text-center">
<a href="https://nise.moe/api/rss.xml" target="_blank">
<a href="https://nise.stedos.dev/api/rss.xml" target="_blank">
<img title="rss-chan!" src="/assets/rss.png" width="64" style="filter: grayscale(40%) sepia(10%) brightness(90%);">
<br>
<span style="padding: 2px; border: 1px dotted #b3b8c3;">

View File

@ -1,12 +1,16 @@
import {UserDetails} from './userDetails';
import {SimilarReplay, SuspiciousScore} from './replays';
import {environment} from "../environments/environment";
export class TextReportService {
static generateTextReportForUserScores(
userDetails: UserDetails,
suspiciousScores: SuspiciousScore[],
similarReplays: SimilarReplay[],
) {
const site = 'nise.stedos.dev';
const detections: string[] = [];
if (suspiciousScores.length > 0) {
@ -28,7 +32,7 @@ export class TextReportService {
report += `\n${this.getStealingReport(similarReplay)}\n`;
}
report += `\nGenerated on nise.moe - [${userDetails.username} on nise.moe](https://nise.moe/u/${userDetails.user_id})`;
report += `\nGenerated on ${site} - [${userDetails.username} on ${site}](${environment.webUrl}/u/${userDetails.user_id})`;
return report;
}

View File

@ -29,9 +29,9 @@
</a>
</div>
<div class="text-center mt-2">
<!-- <div class="text-center mt-2">
<a class="btn" [href]="'https://replay.nise.moe/' + this.pair.replays[0].replay_id + '/' + this.pair.replays[1].replay_id" target="_blank">Open in Replay Viewer</a>
</div>
</div> -->
<div class="some-page-wrapper text-center">
<div class="row">

View File

@ -53,9 +53,9 @@
Open in CircleGuard
</a>
<a style="flex: 1" class="text-center" [href]="'https://replay.nise.moe/' + this.replayData.replay_id" target="_blank" [class.disabled]="!hasReplay()">
<!-- <a style="flex: 1" class="text-center" [href]="'https://replay.nise.moe/' + this.replayData.replay_id" target="_blank" [class.disabled]="!hasReplay()">
Open in Replay Viewer
</a>
</a> -->
</div>

View File

@ -1,5 +1,8 @@
const URL = 'nise.stedos.dev';
export const environment = {
production: true,
apiUrl: 'https://nise.stedos.dev/api',
wsUrl: 'wss://nise.stedos.dev/api/websocket',
webUrl: `https://${URL}`,
apiUrl: `https://${URL}/api`,
wsUrl: `wss://${URL}/api/websocket`,
};

View File

@ -6,14 +6,14 @@
<title></title>
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico">
<!-- Embed data -->
<meta property="og:title" content="/nise.moe/ - osu!cheaters finder">
<meta property="og:title" content="/nise.stedos.dev/ - osu!cheaters finder">
<meta property="og:description" content="crawls osu!std replays and tries to find naughty boys.">
<meta property="og:url" content="https://nise.moe">
<meta property="og:image" content="https://nise.moe/assets/banner.png">
<meta property="og:url" content="https://nise.stedos.dev">
<meta property="og:image" content="https://nise.stedos.dev/assets/banner.png">
<meta property="og:type" content="website">
<meta name="theme-color" content="#151515">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image:src" content="https://nise.moe/assets/banner.png">
<meta name="twitter:image:src" content="https://nise.stedos.dev/assets/banner.png">
</head>
<body>
<app-root></app-root>