Update to angular 19

This commit is contained in:
2026-08-05 07:46:07 +02:00
parent 8bd323db91
commit 5e44c88cd3
133 changed files with 4671 additions and 2456 deletions
@@ -23,6 +23,7 @@ const defaultDuplicatesLimit = 10;
const year = (new Date()).getFullYear();
@Component({
standalone: false,
selector: 'admin-account-details',
templateUrl: 'admin-account-details.pug',
styleUrls: ['admin-account-details.scss'],
@@ -12,6 +12,7 @@ let currentPage = 0;
let not = false;
@Component({
standalone: false,
selector: 'admin-accounts',
templateUrl: 'admin-accounts.pug',
})
@@ -11,6 +11,7 @@ import {
let state: BaseTableState;
@Component({
standalone: false,
selector: 'admin-events',
templateUrl: 'admin-events.pug',
})
@@ -4,6 +4,7 @@ import { Event } from '../../../common/adminInterfaces';
import { AdminModel } from '../../services/adminModel';
@Component({
standalone: false,
selector: 'admin-origin-details',
templateUrl: 'admin-origin-details.pug',
})
@@ -4,6 +4,7 @@ import { faSync, faEraser, faClock, faUser, faChevronDown, faSpinner } from '../
import { AdminModel } from '../../services/adminModel';
@Component({
standalone: false,
selector: 'admin-origins',
templateUrl: 'admin-origins.pug',
})
@@ -12,6 +12,7 @@ interface Field {
}
@Component({
standalone: false,
selector: 'admin-other',
templateUrl: 'admin-other.pug',
})
@@ -9,6 +9,7 @@ let currentPage = 1;
let query: FindPonyQuery = {};
@Component({
standalone: false,
selector: 'admin-ponies',
templateUrl: 'admin-ponies.pug',
styleUrls: ['admin-ponies.scss'],
@@ -26,6 +26,7 @@ const frameTime = 1000 / SERVER_FPS;
const timePadding = 10; // ms
@Component({
standalone: false,
selector: 'admin-reports-perf',
templateUrl: 'admin-reports-perf.pug',
})
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';
@Component({
standalone: false,
selector: 'admin-reports',
templateUrl: 'admin-reports.pug',
})
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';
@Component({
standalone: false,
selector: 'admin-sign-in',
templateUrl: 'admin-sign-in.pug',
})
@@ -8,6 +8,7 @@ import { AdminModel } from '../../services/adminModel';
import { faCog, faSlidersH } from '../../../client/icons';
@Component({
standalone: false,
selector: 'admin-state',
templateUrl: 'admin-state.pug',
styleUrls: ['admin-state.scss'],
+1
View File
@@ -17,6 +17,7 @@ export function popoverConfig() {
}
@Component({
standalone: false,
selector: 'pony-town-app',
templateUrl: 'admin.pug',
styleUrls: ['admin.scss'],
@@ -1,6 +1,7 @@
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
standalone: false,
name: 'keys',
})
export class KeysPipe implements PipeTransform {
@@ -1,6 +1,7 @@
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
standalone: false,
name: 'orderBy',
})
export class OrderByPipe implements PipeTransform {
@@ -2,6 +2,7 @@ import { Pipe, PipeTransform } from '@angular/core';
import { transliterate } from 'transliteration';
@Pipe({
standalone: false,
name: 'translit',
})
export class TranslitPipe implements PipeTransform {
@@ -4,6 +4,7 @@ import { Subscription } from '../../../../common/interfaces';
import { AdminModel } from '../../../services/adminModel';
@Component({
standalone: false,
selector: 'account-info-remote',
templateUrl: 'account-info-remote.pug',
})
@@ -56,6 +56,7 @@ const alertExpires = [
];
@Component({
standalone: false,
selector: 'account-info',
templateUrl: 'account-info.pug',
styleUrls: ['account-info.scss'],
@@ -4,6 +4,7 @@ import { Account, AccountStatus as IAccountStatus } from '../../../../common/adm
import { faUserSecret } from '../../../../client/icons';
@Component({
standalone: false,
selector: 'account-status',
templateUrl: 'account-status.pug',
})
@@ -5,6 +5,7 @@ import { getAge } from '../../../../common/adminUtils';
const year = (new Date()).getFullYear();
@Component({
standalone: false,
selector: 'account-tooltip',
templateUrl: 'account-tooltip.pug',
})
@@ -9,6 +9,7 @@ import { replaceSwears } from '../../../../client/adminHtmlUtils';
import { addDays } from 'date-fns';
@Component({
standalone: false,
selector: 'admin-chat-log',
templateUrl: 'admin-chat-log.pug',
styleUrls: ['admin-chat-log.scss'],
@@ -5,6 +5,7 @@ import { AdminModel } from '../../../services/adminModel';
import { faInfo, faLock, faTrash, faEyeSlash, faArrowRight } from '../../../../client/icons';
@Component({
standalone: false,
selector: 'auth-info-edit',
templateUrl: 'auth-info-edit.pug',
})
@@ -4,6 +4,7 @@ import { AdminModel } from '../../../services/adminModel';
import { Auth } from '../../../../common/adminInterfaces';
@Component({
standalone: false,
selector: 'auth-info-remote',
templateUrl: 'auth-info-remote.pug',
})
@@ -3,6 +3,7 @@ import { Auth } from '../../../../common/adminInterfaces';
import { oauthIcons, faGlobe } from '../../../../client/icons';
@Component({
standalone: false,
selector: 'auth-info',
templateUrl: 'auth-info.pug',
styleUrls: ['auth-info.scss'],
@@ -3,6 +3,7 @@ import { Subscription } from '../../../../common/interfaces';
import { AdminModel } from '../../../services/adminModel';
@Component({
standalone: false,
selector: 'auth-list-remote',
templateUrl: 'auth-list-remote.pug',
styleUrls: ['auth-list-remote.scss'],
@@ -2,6 +2,7 @@ import { Component, Input } from '@angular/core';
import { Auth } from '../../../../common/adminInterfaces';
@Component({
standalone: false,
selector: 'auth-list',
templateUrl: 'auth-list.pug',
styleUrls: ['auth-list.scss'],
@@ -13,6 +13,7 @@ const ICONS = {
};
@Component({
standalone: false,
selector: 'ban-icon',
templateUrl: 'ban-icon.pug',
styleUrls: ['ban-icon.scss'],
@@ -1,6 +1,7 @@
import { Component, Input } from '@angular/core';
@Component({
standalone: false,
selector: 'email-list',
templateUrl: 'email-list.pug',
})
@@ -5,6 +5,7 @@ import { faLanguage, faTrash, faComment, faClipboard } from '../../../../client/
import { getTranslationUrl } from '../../../../common/adminUtils';
@Component({
standalone: false,
selector: 'events-table',
templateUrl: 'events-table.pug',
styleUrls: ['events-table.scss'],
@@ -3,6 +3,7 @@ import { IntervalUpdateService } from '../../services/intervalUpdateService';
import { formatDistanceToNow } from 'date-fns';
@Component({
standalone: false,
selector: 'from-now',
template: '<span></span>',
changeDetection: ChangeDetectionStrategy.OnPush,
@@ -1,6 +1,7 @@
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
@Component({
standalone: false,
selector: 'on-off-switch',
templateUrl: 'on-off-switch.pug',
changeDetection: ChangeDetectionStrategy.OnPush,
@@ -4,6 +4,7 @@ import { AdminModel } from '../../../services/adminModel';
import { Origin } from '../../../../common/adminInterfaces';
@Component({
standalone: false,
selector: 'origin-info-remote',
templateUrl: 'origin-info-remote.pug',
})
@@ -4,6 +4,7 @@ import { AdminModel } from '../../../services/adminModel';
import { countryCodeToName } from '../../../../common/countries';
@Component({
standalone: false,
selector: 'origin-info',
templateUrl: 'origin-info.pug',
styleUrls: ['origin-info.scss'],
@@ -4,6 +4,7 @@ import { AdminModel } from '../../../services/adminModel';
import { OriginInfoBase } from '../../../../common/adminInterfaces';
@Component({
standalone: false,
selector: 'origin-list-remote',
templateUrl: 'origin-list-remote.pug',
})
@@ -4,6 +4,7 @@ import { AdminModel } from '../../../services/adminModel';
import { Character } from '../../../../common/adminInterfaces';
@Component({
standalone: false,
selector: 'pony-info-remote',
templateUrl: 'pony-info-remote.pug',
})
@@ -5,6 +5,7 @@ import { isForbiddenName } from '../../../../common/security';
import { AdminModel } from '../../../services/adminModel';
@Component({
standalone: false,
selector: 'pony-info',
templateUrl: 'pony-info.pug',
styleUrls: ['pony-info.scss'],
@@ -5,6 +5,7 @@ import { faTrash, faArrowRight } from '../../../../client/icons';
import { Character, PonyIdDateName, DuplicateResult } from '../../../../common/adminInterfaces';
@Component({
standalone: false,
selector: 'pony-list-remote',
templateUrl: 'pony-list-remote.pug',
styleUrls: ['pony-list-remote.scss'],
@@ -1,6 +1,7 @@
import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
@Component({
standalone: false,
selector: 'time-field',
templateUrl: 'time-field.pug',
changeDetection: ChangeDetectionStrategy.OnPush,
@@ -13,6 +13,7 @@ const extensions = {
};
@Component({
standalone: false,
selector: 'ua-info',
templateUrl: 'ua-info.pug',
styles: [`:host { display: inline-block; }`],