mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 13:55:04 +02:00
Update to angular 22
This commit is contained in:
Generated
+7309
-3763
File diff suppressed because it is too large
Load Diff
+15
-15
@@ -44,22 +44,22 @@
|
|||||||
"update-fontawesome": "npm update @fortawesome/fontawesome-svg-core @fortawesome/free-brands-svg-icons @fortawesome/free-solid-svg-icons @fortawesome/angular-fontawesome --save"
|
"update-fontawesome": "npm update @fortawesome/fontawesome-svg-core @fortawesome/free-brands-svg-icons @fortawesome/free-solid-svg-icons @fortawesome/angular-fontawesome --save"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "21.2.19",
|
"@angular-devkit/build-angular": "22.1.2",
|
||||||
"@angular/animations": "21.2.19",
|
"@angular/animations": "22.1.0",
|
||||||
"@angular/common": "21.2.19",
|
"@angular/common": "22.1.0",
|
||||||
"@angular/compiler": "21.2.19",
|
"@angular/compiler": "22.1.0",
|
||||||
"@angular/compiler-cli": "21.2.19",
|
"@angular/compiler-cli": "22.1.0",
|
||||||
"@angular/core": "21.2.19",
|
"@angular/core": "22.1.0",
|
||||||
"@angular/forms": "21.2.19",
|
"@angular/forms": "22.1.0",
|
||||||
"@angular/platform-browser": "21.2.19",
|
"@angular/platform-browser": "22.1.0",
|
||||||
"@angular/platform-browser-dynamic": "21.2.19",
|
"@angular/platform-browser-dynamic": "22.1.0",
|
||||||
"@angular/platform-server": "21.2.19",
|
"@angular/platform-server": "22.1.0",
|
||||||
"@angular/router": "21.2.19",
|
"@angular/router": "22.1.0",
|
||||||
"@fortawesome/angular-fontawesome": "4.0.0",
|
"@fortawesome/angular-fontawesome": "5.1.0",
|
||||||
"@fortawesome/fontawesome-svg-core": "6.7.2",
|
"@fortawesome/fontawesome-svg-core": "6.7.2",
|
||||||
"@fortawesome/free-brands-svg-icons": "6.7.2",
|
"@fortawesome/free-brands-svg-icons": "6.7.2",
|
||||||
"@fortawesome/free-solid-svg-icons": "6.7.2",
|
"@fortawesome/free-solid-svg-icons": "6.7.2",
|
||||||
"@ngtools/webpack": "21.2.19",
|
"@ngtools/webpack": "22.1.2",
|
||||||
"@types/bluebird": "3.5.42",
|
"@types/bluebird": "3.5.42",
|
||||||
"@types/body-parser": "1.19.6",
|
"@types/body-parser": "1.19.6",
|
||||||
"@types/chai": "5.2.3",
|
"@types/chai": "5.2.3",
|
||||||
@@ -132,7 +132,7 @@
|
|||||||
"ts-node": "10.9.2",
|
"ts-node": "10.9.2",
|
||||||
"tslib": "2.8.1",
|
"tslib": "2.8.1",
|
||||||
"tsutils": "3.17.1",
|
"tsutils": "3.17.1",
|
||||||
"typescript": "5.9.3",
|
"typescript": "6.0.3",
|
||||||
"webpack": "5.105.4",
|
"webpack": "5.105.4",
|
||||||
"webpack-bundle-analyzer": "5.2.0",
|
"webpack-bundle-analyzer": "5.2.0",
|
||||||
"webpack-cli": "7.0.2",
|
"webpack-cli": "7.0.2",
|
||||||
@@ -143,7 +143,7 @@
|
|||||||
"zone.js": "0.15.1"
|
"zone.js": "0.15.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/cdk": "21.2.14",
|
"@angular/cdk": "22.1.0",
|
||||||
"@encharm/cws": "4.5.3",
|
"@encharm/cws": "4.5.3",
|
||||||
"@passport-next/passport-facebook": "^3.1.3",
|
"@passport-next/passport-facebook": "^3.1.3",
|
||||||
"@passport-next/passport-google-oauth2": "^1.0.0",
|
"@passport-next/passport-google-oauth2": "^1.0.0",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, OnDestroy } from '@angular/core';
|
import { Component, OnInit, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
import { remove, uniq } from 'lodash';
|
import { remove, uniq } from 'lodash';
|
||||||
import {
|
import {
|
||||||
@@ -23,6 +23,7 @@ const defaultDuplicatesLimit = 10;
|
|||||||
const year = (new Date()).getFullYear();
|
const year = (new Date()).getFullYear();
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'admin-account-details',
|
selector: 'admin-account-details',
|
||||||
templateUrl: 'admin-account-details.pug',
|
templateUrl: 'admin-account-details.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { debounce } from 'lodash';
|
import { debounce } from 'lodash';
|
||||||
import { Account } from '../../../common/adminInterfaces';
|
import { Account } from '../../../common/adminInterfaces';
|
||||||
@@ -12,6 +12,7 @@ let currentPage = 0;
|
|||||||
let not = false;
|
let not = false;
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'admin-accounts',
|
selector: 'admin-accounts',
|
||||||
templateUrl: 'admin-accounts.pug',
|
templateUrl: 'admin-accounts.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, ViewChild, OnDestroy } from '@angular/core';
|
import { Component, OnInit, ViewChild, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { fromNow } from '../../../common/utils';
|
import { fromNow } from '../../../common/utils';
|
||||||
import { Event, ChatEvent } from '../../../common/adminInterfaces';
|
import { Event, ChatEvent } from '../../../common/adminInterfaces';
|
||||||
import { AdminModel } from '../../services/adminModel';
|
import { AdminModel } from '../../services/adminModel';
|
||||||
@@ -11,6 +11,7 @@ import {
|
|||||||
let state: BaseTableState;
|
let state: BaseTableState;
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'admin-events',
|
selector: 'admin-events',
|
||||||
templateUrl: 'admin-events.pug',
|
templateUrl: 'admin-events.pug',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
import { Event } from '../../../common/adminInterfaces';
|
import { Event } from '../../../common/adminInterfaces';
|
||||||
import { AdminModel } from '../../services/adminModel';
|
import { AdminModel } from '../../services/adminModel';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'admin-origin-details',
|
selector: 'admin-origin-details',
|
||||||
templateUrl: 'admin-origin-details.pug',
|
templateUrl: 'admin-origin-details.pug',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { RequestStats, OriginStats, OtherStats } from '../../../common/adminInterfaces';
|
import { RequestStats, OriginStats, OtherStats } from '../../../common/adminInterfaces';
|
||||||
import { faSync, faEraser, faClock, faUser, faChevronDown, faSpinner } from '../../../client/icons';
|
import { faSync, faEraser, faClock, faUser, faChevronDown, faSpinner } from '../../../client/icons';
|
||||||
import { AdminModel } from '../../services/adminModel';
|
import { AdminModel } from '../../services/adminModel';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'admin-origins',
|
selector: 'admin-origins',
|
||||||
templateUrl: 'admin-origins.pug',
|
templateUrl: 'admin-origins.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, OnDestroy } from '@angular/core';
|
import { Component, OnInit, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { compact } from 'lodash';
|
import { compact } from 'lodash';
|
||||||
import { AdminModel } from '../../services/adminModel';
|
import { AdminModel } from '../../services/adminModel';
|
||||||
import { Account, GeneralSettings } from '../../../common/adminInterfaces';
|
import { Account, GeneralSettings } from '../../../common/adminInterfaces';
|
||||||
@@ -12,6 +12,7 @@ interface Field {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'admin-other',
|
selector: 'admin-other',
|
||||||
templateUrl: 'admin-other.pug',
|
templateUrl: 'admin-other.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { isEqual, debounce } from 'lodash';
|
import { isEqual, debounce } from 'lodash';
|
||||||
import { Character, FindPonyQuery } from '../../../common/adminInterfaces';
|
import { Character, FindPonyQuery } from '../../../common/adminInterfaces';
|
||||||
import { AdminModel } from '../../services/adminModel';
|
import { AdminModel } from '../../services/adminModel';
|
||||||
@@ -9,6 +9,7 @@ let currentPage = 1;
|
|||||||
let query: FindPonyQuery = {};
|
let query: FindPonyQuery = {};
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'admin-ponies',
|
selector: 'admin-ponies',
|
||||||
templateUrl: 'admin-ponies.pug',
|
templateUrl: 'admin-ponies.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, ViewChild, ElementRef } from '@angular/core';
|
import { Component, ViewChild, ElementRef, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { AdminModel } from '../../../services/adminModel';
|
import { AdminModel } from '../../../services/adminModel';
|
||||||
import { TimingEntry, TimingEntryType, WorldPerfStats, defaultWorldPerfStats } from '../../../../common/adminInterfaces';
|
import { TimingEntry, TimingEntryType, WorldPerfStats, defaultWorldPerfStats } from '../../../../common/adminInterfaces';
|
||||||
import { findById, pointInRect, clamp } from '../../../../common/utils';
|
import { findById, pointInRect, clamp } from '../../../../common/utils';
|
||||||
@@ -26,6 +26,7 @@ const frameTime = 1000 / SERVER_FPS;
|
|||||||
const timePadding = 10; // ms
|
const timePadding = 10; // ms
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'admin-reports-perf',
|
selector: 'admin-reports-perf',
|
||||||
templateUrl: 'admin-reports-perf.pug',
|
templateUrl: 'admin-reports-perf.pug',
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'admin-reports',
|
selector: 'admin-reports',
|
||||||
templateUrl: 'admin-reports.pug',
|
templateUrl: 'admin-reports.pug',
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'admin-sign-in',
|
selector: 'admin-sign-in',
|
||||||
templateUrl: 'admin-sign-in.pug',
|
templateUrl: 'admin-sign-in.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import {
|
import {
|
||||||
GameServerState, SERVER_SETTINGS, LOGIN_SERVER_SETTINGS, ServerStats, RequestStats,
|
GameServerState, SERVER_SETTINGS, LOGIN_SERVER_SETTINGS, ServerStats, RequestStats,
|
||||||
UserCountStats, Stats, StatsTable
|
UserCountStats, Stats, StatsTable
|
||||||
@@ -8,6 +8,7 @@ import { AdminModel } from '../../services/adminModel';
|
|||||||
import { faCog, faSlidersH } from '../../../client/icons';
|
import { faCog, faSlidersH } from '../../../client/icons';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'admin-state',
|
selector: 'admin-state',
|
||||||
templateUrl: 'admin-state.pug',
|
templateUrl: 'admin-state.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule, provideZoneChangeDetection } from '@angular/core';
|
||||||
import { RouterModule, Routes } from '@angular/router';
|
import { RouterModule, Routes } from '@angular/router';
|
||||||
import { FormsModule } from '@angular/forms';
|
import { FormsModule } from '@angular/forms';
|
||||||
import { BrowserModule } from '@angular/platform-browser';
|
import { BrowserModule } from '@angular/platform-browser';
|
||||||
@@ -131,6 +131,7 @@ export const routes: Routes = [
|
|||||||
AdminApp,
|
AdminApp,
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
|
provideZoneChangeDetection(),
|
||||||
ErrorReporter,
|
ErrorReporter,
|
||||||
],
|
],
|
||||||
bootstrap: [AdminApp],
|
bootstrap: [AdminApp],
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, HostListener } from '@angular/core';
|
import { Component, HostListener, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { TooltipConfig } from 'ngx-bootstrap/tooltip';
|
import { TooltipConfig } from 'ngx-bootstrap/tooltip';
|
||||||
import { PopoverConfig } from 'ngx-bootstrap/popover';
|
import { PopoverConfig } from 'ngx-bootstrap/popover';
|
||||||
@@ -17,6 +17,7 @@ export function popoverConfig() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'pony-town-app',
|
selector: 'pony-town-app',
|
||||||
templateUrl: 'admin.pug',
|
templateUrl: 'admin.pug',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import { Component, Input, OnDestroy } from '@angular/core';
|
import { Component, Input, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Account } from '../../../../common/adminInterfaces';
|
import { Account } from '../../../../common/adminInterfaces';
|
||||||
import { Subscription } from '../../../../common/interfaces';
|
import { Subscription } from '../../../../common/interfaces';
|
||||||
import { AdminModel } from '../../../services/adminModel';
|
import { AdminModel } from '../../../services/adminModel';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'account-info-remote',
|
selector: 'account-info-remote',
|
||||||
templateUrl: 'account-info-remote.pug',
|
templateUrl: 'account-info-remote.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Input, OnChanges, SimpleChanges, OnInit, TemplateRef, ViewChild } from '@angular/core';
|
import { Component, Input, OnChanges, SimpleChanges, OnInit, TemplateRef, ViewChild, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal';
|
import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal';
|
||||||
import { compact } from 'lodash';
|
import { compact } from 'lodash';
|
||||||
import { DAY, MINUTE, HOUR } from '../../../../common/constants';
|
import { DAY, MINUTE, HOUR } from '../../../../common/constants';
|
||||||
@@ -56,6 +56,7 @@ const alertExpires = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'account-info',
|
selector: 'account-info',
|
||||||
templateUrl: 'account-info.pug',
|
templateUrl: 'account-info.pug',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
import { Component, OnInit, Input, OnChanges, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { AdminModel } from '../../../services/adminModel';
|
import { AdminModel } from '../../../services/adminModel';
|
||||||
import { Account, AccountStatus as IAccountStatus } from '../../../../common/adminInterfaces';
|
import { Account, AccountStatus as IAccountStatus } from '../../../../common/adminInterfaces';
|
||||||
import { faUserSecret } from '../../../../client/icons';
|
import { faUserSecret } from '../../../../client/icons';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'account-status',
|
selector: 'account-status',
|
||||||
templateUrl: 'account-status.pug',
|
templateUrl: 'account-status.pug',
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
import { Component, Input } from '@angular/core';
|
import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Account } from '../../../../common/adminInterfaces';
|
import { Account } from '../../../../common/adminInterfaces';
|
||||||
import { getAge } from '../../../../common/adminUtils';
|
import { getAge } from '../../../../common/adminUtils';
|
||||||
|
|
||||||
const year = (new Date()).getFullYear();
|
const year = (new Date()).getFullYear();
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'account-tooltip',
|
selector: 'account-tooltip',
|
||||||
templateUrl: 'account-tooltip.pug',
|
templateUrl: 'account-tooltip.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Input, OnDestroy, ElementRef } from '@angular/core';
|
import { Component, Input, OnDestroy, ElementRef, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { AdminModel } from '../../../services/adminModel';
|
import { AdminModel } from '../../../services/adminModel';
|
||||||
import { Account } from '../../../../common/adminInterfaces';
|
import { Account } from '../../../../common/adminInterfaces';
|
||||||
import { ChatDate, createChatDate, createDateRange } from '../../../../common/adminUtils';
|
import { ChatDate, createChatDate, createDateRange } from '../../../../common/adminUtils';
|
||||||
@@ -9,6 +9,7 @@ import { replaceSwears } from '../../../../client/adminHtmlUtils';
|
|||||||
import { addDays } from 'date-fns';
|
import { addDays } from 'date-fns';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'admin-chat-log',
|
selector: 'admin-chat-log',
|
||||||
templateUrl: 'admin-chat-log.pug',
|
templateUrl: 'admin-chat-log.pug',
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
import { Component, OnDestroy, Input } from '@angular/core';
|
import { Component, OnDestroy, Input, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Auth, DuplicateResult } from '../../../../common/adminInterfaces';
|
import { Auth, DuplicateResult } from '../../../../common/adminInterfaces';
|
||||||
import { Subscription } from '../../../../common/interfaces';
|
import { Subscription } from '../../../../common/interfaces';
|
||||||
import { AdminModel } from '../../../services/adminModel';
|
import { AdminModel } from '../../../services/adminModel';
|
||||||
import { faInfo, faLock, faTrash, faEyeSlash, faArrowRight } from '../../../../client/icons';
|
import { faInfo, faLock, faTrash, faEyeSlash, faArrowRight } from '../../../../client/icons';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'auth-info-edit',
|
selector: 'auth-info-edit',
|
||||||
templateUrl: 'auth-info-edit.pug',
|
templateUrl: 'auth-info-edit.pug',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import { Component, Input, OnDestroy } from '@angular/core';
|
import { Component, Input, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Subscription } from '../../../../common/interfaces';
|
import { Subscription } from '../../../../common/interfaces';
|
||||||
import { AdminModel } from '../../../services/adminModel';
|
import { AdminModel } from '../../../services/adminModel';
|
||||||
import { Auth } from '../../../../common/adminInterfaces';
|
import { Auth } from '../../../../common/adminInterfaces';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'auth-info-remote',
|
selector: 'auth-info-remote',
|
||||||
templateUrl: 'auth-info-remote.pug',
|
templateUrl: 'auth-info-remote.pug',
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import { Component, Input } from '@angular/core';
|
import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Auth } from '../../../../common/adminInterfaces';
|
import { Auth } from '../../../../common/adminInterfaces';
|
||||||
import { oauthIcons, faGlobe } from '../../../../client/icons';
|
import { oauthIcons, faGlobe } from '../../../../client/icons';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'auth-info',
|
selector: 'auth-info',
|
||||||
templateUrl: 'auth-info.pug',
|
templateUrl: 'auth-info.pug',
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import { Component, Input, OnDestroy } from '@angular/core';
|
import { Component, Input, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Subscription } from '../../../../common/interfaces';
|
import { Subscription } from '../../../../common/interfaces';
|
||||||
import { AdminModel } from '../../../services/adminModel';
|
import { AdminModel } from '../../../services/adminModel';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'auth-list-remote',
|
selector: 'auth-list-remote',
|
||||||
templateUrl: 'auth-list-remote.pug',
|
templateUrl: 'auth-list-remote.pug',
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { Component, Input } from '@angular/core';
|
import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Auth } from '../../../../common/adminInterfaces';
|
import { Auth } from '../../../../common/adminInterfaces';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'auth-list',
|
selector: 'auth-list',
|
||||||
templateUrl: 'auth-list.pug',
|
templateUrl: 'auth-list.pug',
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { Component, Input } from '@angular/core';
|
import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'email-list',
|
selector: 'email-list',
|
||||||
templateUrl: 'email-list.pug',
|
templateUrl: 'email-list.pug',
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Account, Event, SERVER_LABELS, ChatEvent } from '../../../../common/adminInterfaces';
|
import { Account, Event, SERVER_LABELS, ChatEvent } from '../../../../common/adminInterfaces';
|
||||||
import { AdminModel } from '../../../services/adminModel';
|
import { AdminModel } from '../../../services/adminModel';
|
||||||
import { faLanguage, faTrash, faComment, faClipboard } from '../../../../client/icons';
|
import { faLanguage, faTrash, faComment, faClipboard } from '../../../../client/icons';
|
||||||
import { getTranslationUrl } from '../../../../common/adminUtils';
|
import { getTranslationUrl } from '../../../../common/adminUtils';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'events-table',
|
selector: 'events-table',
|
||||||
templateUrl: 'events-table.pug',
|
templateUrl: 'events-table.pug',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import { Component, Input, OnDestroy } from '@angular/core';
|
import { Component, Input, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Subscription } from '../../../../common/interfaces';
|
import { Subscription } from '../../../../common/interfaces';
|
||||||
import { AdminModel } from '../../../services/adminModel';
|
import { AdminModel } from '../../../services/adminModel';
|
||||||
import { Origin } from '../../../../common/adminInterfaces';
|
import { Origin } from '../../../../common/adminInterfaces';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'origin-info-remote',
|
selector: 'origin-info-remote',
|
||||||
templateUrl: 'origin-info-remote.pug',
|
templateUrl: 'origin-info-remote.pug',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import { Component, Input } from '@angular/core';
|
import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Origin, BannedMuted } from '../../../../common/adminInterfaces';
|
import { Origin, BannedMuted } from '../../../../common/adminInterfaces';
|
||||||
import { AdminModel } from '../../../services/adminModel';
|
import { AdminModel } from '../../../services/adminModel';
|
||||||
import { countryCodeToName } from '../../../../common/countries';
|
import { countryCodeToName } from '../../../../common/countries';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'origin-info',
|
selector: 'origin-info',
|
||||||
templateUrl: 'origin-info.pug',
|
templateUrl: 'origin-info.pug',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import { Component, Input, OnDestroy } from '@angular/core';
|
import { Component, Input, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Subscription } from '../../../../common/interfaces';
|
import { Subscription } from '../../../../common/interfaces';
|
||||||
import { AdminModel } from '../../../services/adminModel';
|
import { AdminModel } from '../../../services/adminModel';
|
||||||
import { OriginInfoBase } from '../../../../common/adminInterfaces';
|
import { OriginInfoBase } from '../../../../common/adminInterfaces';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'origin-list-remote',
|
selector: 'origin-list-remote',
|
||||||
templateUrl: 'origin-list-remote.pug',
|
templateUrl: 'origin-list-remote.pug',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import { Component, Input, OnDestroy } from '@angular/core';
|
import { Component, Input, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Subscription } from '../../../../common/interfaces';
|
import { Subscription } from '../../../../common/interfaces';
|
||||||
import { AdminModel } from '../../../services/adminModel';
|
import { AdminModel } from '../../../services/adminModel';
|
||||||
import { Character } from '../../../../common/adminInterfaces';
|
import { Character } from '../../../../common/adminInterfaces';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'pony-info-remote',
|
selector: 'pony-info-remote',
|
||||||
templateUrl: 'pony-info-remote.pug',
|
templateUrl: 'pony-info-remote.pug',
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
import { Component, Input, OnChanges } from '@angular/core';
|
import { Component, Input, OnChanges, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { hasFlag } from '../../../../common/utils';
|
import { hasFlag } from '../../../../common/utils';
|
||||||
import { Character, CharacterFlags } from '../../../../common/adminInterfaces';
|
import { Character, CharacterFlags } from '../../../../common/adminInterfaces';
|
||||||
import { isForbiddenName } from '../../../../common/security';
|
import { isForbiddenName } from '../../../../common/security';
|
||||||
import { AdminModel } from '../../../services/adminModel';
|
import { AdminModel } from '../../../services/adminModel';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'pony-info',
|
selector: 'pony-info',
|
||||||
templateUrl: 'pony-info.pug',
|
templateUrl: 'pony-info.pug',
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
import { Component, Input, OnDestroy } from '@angular/core';
|
import { Component, Input, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Subscription } from '../../../../common/interfaces';
|
import { Subscription } from '../../../../common/interfaces';
|
||||||
import { AdminModel } from '../../../services/adminModel';
|
import { AdminModel } from '../../../services/adminModel';
|
||||||
import { faTrash, faArrowRight } from '../../../../client/icons';
|
import { faTrash, faArrowRight } from '../../../../client/icons';
|
||||||
import { Character, PonyIdDateName, DuplicateResult } from '../../../../common/adminInterfaces';
|
import { Character, PonyIdDateName, DuplicateResult } from '../../../../common/adminInterfaces';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'pony-list-remote',
|
selector: 'pony-list-remote',
|
||||||
templateUrl: 'pony-list-remote.pug',
|
templateUrl: 'pony-list-remote.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { emojis } from '../../../common/emoji';
|
import { emojis } from '../../../common/emoji';
|
||||||
import { getUrl } from '../../../client/rev';
|
import { getUrl } from '../../../client/rev';
|
||||||
import { CREDITS, CONTRIBUTORS, Credit } from '../../../client/credits';
|
import { CREDITS, CONTRIBUTORS, Credit } from '../../../client/credits';
|
||||||
@@ -15,6 +15,7 @@ function toCredit(credit: Credit) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'about',
|
selector: 'about',
|
||||||
templateUrl: 'about.pug',
|
templateUrl: 'about.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, OnDestroy } from '@angular/core';
|
import { Component, OnInit, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { ACCOUNT_NAME_MAX_LENGTH, ACCOUNT_NAME_MIN_LENGTH, HIDES_PER_PAGE } from '../../../common/constants';
|
import { ACCOUNT_NAME_MAX_LENGTH, ACCOUNT_NAME_MIN_LENGTH, HIDES_PER_PAGE } from '../../../common/constants';
|
||||||
import { UpdateAccountData, SocialSiteInfo, OAuthProvider, HiddenPlayer } from '../../../common/interfaces';
|
import { UpdateAccountData, SocialSiteInfo, OAuthProvider, HiddenPlayer } from '../../../common/interfaces';
|
||||||
import {
|
import {
|
||||||
@@ -12,6 +12,7 @@ import { Router } from '@angular/router';
|
|||||||
import { cleanName } from '../../../common/stringUtils';
|
import { cleanName } from '../../../common/stringUtils';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'account',
|
selector: 'account',
|
||||||
templateUrl: 'account.pug',
|
templateUrl: 'account.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { NgModule, ErrorHandler } from '@angular/core';
|
import { NgModule, ErrorHandler, provideZoneChangeDetection } from '@angular/core';
|
||||||
import { RouterModule, Routes } from '@angular/router';
|
import { RouterModule, Routes } from '@angular/router';
|
||||||
import { FormsModule } from '@angular/forms';
|
import { FormsModule } from '@angular/forms';
|
||||||
import { HttpClientModule } from '@angular/common/http';
|
import { HttpClientModule } from '@angular/common/http';
|
||||||
@@ -54,6 +54,7 @@ export const routes: Routes = [
|
|||||||
EditorBox,
|
EditorBox,
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
|
provideZoneChangeDetection(),
|
||||||
{ provide: RollbarService, useFactory: rollbarFactory },
|
{ provide: RollbarService, useFactory: rollbarFactory },
|
||||||
{ provide: ErrorHandler, useClass: RollbarErrorHandler },
|
{ provide: ErrorHandler, useClass: RollbarErrorHandler },
|
||||||
{ provide: ErrorReporter, useClass: RollbarErrorReporter },
|
{ provide: ErrorReporter, useClass: RollbarErrorReporter },
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, OnDestroy, HostListener, ViewChild, ElementRef, TemplateRef } from '@angular/core';
|
import { Component, OnInit, OnDestroy, HostListener, ViewChild, ElementRef, TemplateRef, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Router, NavigationEnd, ActivatedRoute } from '@angular/router';
|
import { Router, NavigationEnd, ActivatedRoute } from '@angular/router';
|
||||||
import { TooltipConfig } from 'ngx-bootstrap/tooltip';
|
import { TooltipConfig } from 'ngx-bootstrap/tooltip';
|
||||||
import { PopoverConfig } from 'ngx-bootstrap/popover';
|
import { PopoverConfig } from 'ngx-bootstrap/popover';
|
||||||
@@ -28,6 +28,7 @@ export function popoverConfig() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'pony-town-app',
|
selector: 'pony-town-app',
|
||||||
templateUrl: 'app.pug',
|
templateUrl: 'app.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, OnDestroy } from '@angular/core';
|
import { Component, OnInit, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { clamp } from 'lodash';
|
import { clamp } from 'lodash';
|
||||||
import { PLAYER_NAME_MAX_LENGTH, PLAYER_DESC_MAX_LENGTH } from '../../../common/constants';
|
import { PLAYER_NAME_MAX_LENGTH, PLAYER_DESC_MAX_LENGTH } from '../../../common/constants';
|
||||||
import {
|
import {
|
||||||
@@ -57,6 +57,7 @@ function eyeSprite(e: PonyEye | undefined) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'character',
|
selector: 'character',
|
||||||
templateUrl: 'character.pug',
|
templateUrl: 'character.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, NgZone } from '@angular/core';
|
import { Component, NgZone, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { uniq } from 'lodash';
|
import { uniq } from 'lodash';
|
||||||
import { faEdit, faCog, faDrawPolygon, faTrash, emptyIcon, faCheck } from '../../../client/icons';
|
import { faEdit, faCog, faDrawPolygon, faTrash, emptyIcon, faCheck } from '../../../client/icons';
|
||||||
import { PonyTownGame, engines } from '../../../client/game';
|
import { PonyTownGame, engines } from '../../../client/game';
|
||||||
@@ -9,6 +9,7 @@ import { BLACK } from '../../../common/colors';
|
|||||||
import { Entity, Engine, EngineInfo, DebugFlags, tileTypeNames } from '../../../common/interfaces';
|
import { Entity, Engine, EngineInfo, DebugFlags, tileTypeNames } from '../../../common/interfaces';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'editor-box',
|
selector: 'editor-box',
|
||||||
templateUrl: 'editor-box.pug',
|
templateUrl: 'editor-box.pug',
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { emojis } from '../../../common/emoji';
|
import { emojis } from '../../../common/emoji';
|
||||||
import { faArrowLeft, faArrowRight, faArrowUp, faArrowDown } from '../../../client/icons';
|
import { faArrowLeft, faArrowRight, faArrowUp, faArrowDown } from '../../../client/icons';
|
||||||
import { contactEmail, contactDiscord } from '../../../client/data';
|
import { contactEmail, contactDiscord } from '../../../client/data';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'help',
|
selector: 'help',
|
||||||
templateUrl: 'help.pug',
|
templateUrl: 'help.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Model, getPonyTag } from '../../services/model';
|
import { Model, getPonyTag } from '../../services/model';
|
||||||
import { defaultPonyState } from '../../../common/ponyHelpers';
|
import { defaultPonyState } from '../../../common/ponyHelpers';
|
||||||
import { GameService } from '../../services/gameService';
|
import { GameService } from '../../services/gameService';
|
||||||
@@ -6,6 +6,7 @@ import { OAuthProvider, PonyObject } from '../../../common/interfaces';
|
|||||||
import { stand } from '../../../common/ponyAnimations';
|
import { stand } from '../../../common/ponyAnimations';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'home',
|
selector: 'home',
|
||||||
templateUrl: 'home.pug',
|
templateUrl: 'home.pug',
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { ErrorHandler, Injectable, Injector, InjectionToken } from '@angular/core';
|
import { ErrorHandler, Injectable, Injector, InjectionToken } from '@angular/core';
|
||||||
import * as Rollbar from 'rollbar';
|
import Rollbar from 'rollbar';
|
||||||
import { version } from '../../client/data';
|
import { version } from '../../client/data';
|
||||||
import { HASH } from '../../generated/hash';
|
import { HASH } from '../../generated/hash';
|
||||||
import { ROLLBAR_ENV, ROLLBAR_TOKEN } from '../../generated/rollbarConfig';
|
import { ROLLBAR_ENV, ROLLBAR_TOKEN } from '../../generated/rollbarConfig';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable, Inject } from '@angular/core';
|
import { Injectable, Inject } from '@angular/core';
|
||||||
import * as Rollbar from 'rollbar';
|
import Rollbar from 'rollbar';
|
||||||
import { Person, rollbarCheckIgnore, isIgnoredError } from '../../common/rollbar';
|
import { Person, rollbarCheckIgnore, isIgnoredError } from '../../common/rollbar';
|
||||||
import { RollbarService } from './rollbarErrorHandler';
|
import { RollbarService } from './rollbarErrorHandler';
|
||||||
import { ErrorReporter } from './errorReporter';
|
import { ErrorReporter } from './errorReporter';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Input, ViewChild, ElementRef, TemplateRef } from '@angular/core';
|
import { Component, Input, ViewChild, ElementRef, TemplateRef, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal';
|
import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal';
|
||||||
import { ButtonAction } from '../../../common/interfaces';
|
import { ButtonAction } from '../../../common/interfaces';
|
||||||
import { PonyTownGame } from '../../../client/game';
|
import { PonyTownGame } from '../../../client/game';
|
||||||
@@ -10,6 +10,7 @@ import { last } from '../../../common/utils';
|
|||||||
import { faCog } from '../../../client/icons';
|
import { faCog } from '../../../client/icons';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'action-bar',
|
selector: 'action-bar',
|
||||||
templateUrl: 'action-bar.pug',
|
templateUrl: 'action-bar.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Output, EventEmitter, OnInit, OnDestroy } from '@angular/core';
|
import { Component, Output, EventEmitter, OnInit, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Subscription } from 'rxjs';
|
import { Subscription } from 'rxjs';
|
||||||
import {
|
import {
|
||||||
createButtionActionActions, expressionButtonAction, createButtonCommandActions,
|
createButtionActionActions, expressionButtonAction, createButtonCommandActions,
|
||||||
@@ -23,6 +23,7 @@ function eyeSprite(e: PonyEye | undefined) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'actions-modal',
|
selector: 'actions-modal',
|
||||||
templateUrl: 'actions-modal.pug',
|
templateUrl: 'actions-modal.pug',
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { Component, Input, Output, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
import { Component, Input, Output, EventEmitter, OnChanges, SimpleChanges, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { parseColor, colorToCSS } from '../../../common/color';
|
import { parseColor, colorToCSS } from '../../../common/color';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'bitmap-box',
|
selector: 'bitmap-box',
|
||||||
templateUrl: 'bitmap-box.pug',
|
templateUrl: 'bitmap-box.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Input } from '@angular/core';
|
import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { fill } from 'lodash';
|
import { fill } from 'lodash';
|
||||||
import { PonyInfo } from '../../../common/interfaces';
|
import { PonyInfo } from '../../../common/interfaces';
|
||||||
import { CM_SIZE } from '../../../common/constants';
|
import { CM_SIZE } from '../../../common/constants';
|
||||||
@@ -10,6 +10,7 @@ export interface ButtMarkEditorState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'butt-mark-editor',
|
selector: 'butt-mark-editor',
|
||||||
templateUrl: 'butt-mark-editor.pug',
|
templateUrl: 'butt-mark-editor.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Output, EventEmitter, ViewChild, ElementRef, OnInit, Input, NgZone } from '@angular/core';
|
import { Component, Output, EventEmitter, ViewChild, ElementRef, OnInit, Input, NgZone, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { uniq } from 'lodash';
|
import { uniq } from 'lodash';
|
||||||
import { Key } from '../../../client/input/input';
|
import { Key } from '../../../client/input/input';
|
||||||
import { PonyObject } from '../../../common/interfaces';
|
import { PonyObject } from '../../../common/interfaces';
|
||||||
@@ -43,6 +43,7 @@ function comparePonies(a: PonyObject, b: PonyObject) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'character-list',
|
selector: 'character-list',
|
||||||
templateUrl: 'character-list.pug',
|
templateUrl: 'character-list.pug',
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import {
|
import {
|
||||||
Component, Input, ElementRef, AfterViewInit, OnDestroy, NgZone, ViewChild, OnChanges, HostListener
|
Component, Input, ElementRef, AfterViewInit, OnDestroy, NgZone, ViewChild, OnChanges, HostListener, ChangeDetectionStrategy } from '@angular/core';
|
||||||
} from '@angular/core';
|
|
||||||
import { PonyInfo, PonyState } from '../../../common/interfaces';
|
import { PonyInfo, PonyState } from '../../../common/interfaces';
|
||||||
import { toPalette } from '../../../common/ponyInfo';
|
import { toPalette } from '../../../common/ponyInfo';
|
||||||
import { GRASS_COLOR, TRANSPARENT } from '../../../common/colors';
|
import { GRASS_COLOR, TRANSPARENT } from '../../../common/colors';
|
||||||
@@ -21,6 +20,7 @@ const DEFAULT_STATE = defaultPonyState();
|
|||||||
const DEFAULT_OPTIONS = defaultDrawPonyOptions();
|
const DEFAULT_OPTIONS = defaultDrawPonyOptions();
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'character-preview',
|
selector: 'character-preview',
|
||||||
template: '<canvas class="rounded" #canvas></canvas>',
|
template: '<canvas class="rounded" #canvas></canvas>',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Input, EventEmitter, Output, ViewChild, ElementRef } from '@angular/core';
|
import { Component, Input, EventEmitter, Output, ViewChild, ElementRef, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { PonyObject } from '../../../common/interfaces';
|
import { PonyObject } from '../../../common/interfaces';
|
||||||
import { PLAYER_NAME_MAX_LENGTH } from '../../../common/constants';
|
import { PLAYER_NAME_MAX_LENGTH } from '../../../common/constants';
|
||||||
@@ -12,6 +12,7 @@ import { delay } from '../../../common/utils';
|
|||||||
import { isMobile } from '../../../client/data';
|
import { isMobile } from '../../../client/data';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'character-select',
|
selector: 'character-select',
|
||||||
templateUrl: 'character-select.pug',
|
templateUrl: 'character-select.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, ElementRef, NgZone, AfterViewInit, ViewChild, OnDestroy, Input } from '@angular/core';
|
import { Component, ElementRef, NgZone, AfterViewInit, ViewChild, OnDestroy, Input, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Subscription } from 'rxjs';
|
import { Subscription } from 'rxjs';
|
||||||
import { ChatType, isPartyChat, Entity, FakeEntity } from '../../../common/interfaces';
|
import { ChatType, isPartyChat, Entity, FakeEntity } from '../../../common/interfaces';
|
||||||
import { SAY_MAX_LENGTH } from '../../../common/constants';
|
import { SAY_MAX_LENGTH } from '../../../common/constants';
|
||||||
@@ -39,6 +39,7 @@ function isActionCommand(message: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'chat-box',
|
selector: 'chat-box',
|
||||||
templateUrl: 'chat-box.pug',
|
templateUrl: 'chat-box.pug',
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import {
|
import {
|
||||||
Component, ViewChild, ElementRef, NgZone, AfterViewInit, OnDestroy, HostListener, Output, EventEmitter, DoCheck
|
Component, ViewChild, ElementRef, NgZone, AfterViewInit, OnDestroy, HostListener, Output, EventEmitter, DoCheck, ChangeDetectionStrategy } from '@angular/core';
|
||||||
} from '@angular/core';
|
|
||||||
import { Subscription } from 'rxjs';
|
import { Subscription } from 'rxjs';
|
||||||
import { clamp, escapeRegExp } from 'lodash';
|
import { clamp, escapeRegExp } from 'lodash';
|
||||||
import { PonyTownGame } from '../../../client/game';
|
import { PonyTownGame } from '../../../client/game';
|
||||||
@@ -208,6 +207,7 @@ function findUserIndex(users: IndexEntryUser[], id: number, crc: number | undefi
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'chat-log',
|
selector: 'chat-log',
|
||||||
templateUrl: 'chat-log.pug',
|
templateUrl: 'chat-log.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { clamp } from '../../../common/utils';
|
import { clamp } from '../../../common/utils';
|
||||||
import { parseColorFast, colorToCSS, colorFromHSVA, colorToHSVA, colorToHexRGB } from '../../../common/color';
|
import { parseColorFast, colorToCSS, colorFromHSVA, colorToHSVA, colorToHexRGB } from '../../../common/color';
|
||||||
import { AgDragEvent } from '../directives/agDrag';
|
import { AgDragEvent } from '../directives/agDrag';
|
||||||
@@ -7,6 +7,7 @@ import { faChevronDown } from '../../../client/icons';
|
|||||||
const SIZE = 175;
|
const SIZE = 175;
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'color-picker',
|
selector: 'color-picker',
|
||||||
templateUrl: 'color-picker.pug',
|
templateUrl: 'color-picker.pug',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { times, formatISODate, parseISODate, createValidBirthDate } from '../../../common/utils';
|
import { times, formatISODate, parseISODate, createValidBirthDate } from '../../../common/utils';
|
||||||
import { MONTH_NAMES_EN } from '../../../common/constants';
|
import { MONTH_NAMES_EN } from '../../../common/constants';
|
||||||
import { getLocale } from '../../../client/clientUtils';
|
import { getLocale } from '../../../client/clientUtils';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'date-picker',
|
selector: 'date-picker',
|
||||||
templateUrl: 'date-picker.pug',
|
templateUrl: 'date-picker.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Directive, Input, Output, EventEmitter, ElementRef, OnInit, Injectable, OnDestroy } from '@angular/core';
|
import { Component, Directive, Input, Output, EventEmitter, ElementRef, OnInit, Injectable, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { noop } from 'lodash';
|
import { noop } from 'lodash';
|
||||||
import { AgDragEvent, handleDrag } from './agDrag';
|
import { AgDragEvent, handleDrag } from './agDrag';
|
||||||
import { clamp, setTransform, removeItem, pointInRect } from '../../../common/utils';
|
import { clamp, setTransform, removeItem, pointInRect } from '../../../common/utils';
|
||||||
@@ -76,6 +76,7 @@ export class DraggableService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'draggable-outlet',
|
selector: 'draggable-outlet',
|
||||||
template: `<div></div>`,
|
template: `<div></div>`,
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
Directive, HostListener, Input, Output, EventEmitter, TemplateRef, ViewContainerRef, ContentChild,
|
Directive, HostListener, Input, Output, EventEmitter, TemplateRef, ViewContainerRef, ContentChild,
|
||||||
Renderer2, ElementRef, EmbeddedViewRef, Component, Injectable
|
Renderer2, ElementRef, EmbeddedViewRef, Component, Injectable, ChangeDetectionStrategy } from '@angular/core';
|
||||||
} from '@angular/core';
|
|
||||||
import { uniqueId } from 'lodash';
|
import { uniqueId } from 'lodash';
|
||||||
import { focusFirstElement } from '../../../client/htmlUtils';
|
import { focusFirstElement } from '../../../client/htmlUtils';
|
||||||
|
|
||||||
@@ -12,6 +11,7 @@ export class DropdownOutletService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'dropdown-outlet',
|
selector: 'dropdown-outlet',
|
||||||
template: `<ng-template></ng-template>`,
|
template: `<ng-template></ng-template>`,
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { discordLink } from '../../../client/data';
|
import { discordLink } from '../../../client/data';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'discord-button',
|
selector: 'discord-button',
|
||||||
templateUrl: 'discord-button.pug',
|
templateUrl: 'discord-button.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, OnDestroy, Input, ViewChild } from '@angular/core';
|
import { Component, OnInit, OnDestroy, Input, ViewChild, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { defaultExpression } from '../../../common/ponyUtils';
|
import { defaultExpression } from '../../../common/ponyUtils';
|
||||||
import { defaultPonyState } from '../../../common/ponyHelpers';
|
import { defaultPonyState } from '../../../common/ponyHelpers';
|
||||||
import { DISCORD_PONY } from '../../../common/constants';
|
import { DISCORD_PONY } from '../../../common/constants';
|
||||||
@@ -25,6 +25,7 @@ const DERP: Expression = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'discord-pony',
|
selector: 'discord-pony',
|
||||||
templateUrl: 'discord-pony.pug',
|
templateUrl: 'discord-pony.pug',
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { faLock } from '../../../client/icons';
|
import { faLock } from '../../../client/icons';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'fill-outline',
|
selector: 'fill-outline',
|
||||||
templateUrl: 'fill-outline.pug',
|
templateUrl: 'fill-outline.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Output, EventEmitter } from '@angular/core';
|
import { Component, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { faCog, faUserFriends, faUserPlus, faUserCog, faCircle } from '../../../client/icons';
|
import { faCog, faUserFriends, faUserPlus, faUserCog, faCircle } from '../../../client/icons';
|
||||||
import { Model, Friend } from '../../services/model';
|
import { Model, Friend } from '../../services/model';
|
||||||
import { PonyTownGame } from '../../../client/game';
|
import { PonyTownGame } from '../../../client/game';
|
||||||
@@ -7,6 +7,7 @@ import { removeItem } from '../../../common/utils';
|
|||||||
import { SettingsService } from '../../services/settingsService';
|
import { SettingsService } from '../../services/settingsService';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'friends-box',
|
selector: 'friends-box',
|
||||||
templateUrl: 'friends-box.pug',
|
templateUrl: 'friends-box.pug',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { faTimes } from '../../../client/icons';
|
import { faTimes } from '../../../client/icons';
|
||||||
import { InstallService } from '../../services/installService';
|
import { InstallService } from '../../services/installService';
|
||||||
import { isMobile } from '../../../client/data';
|
import { isMobile } from '../../../client/data';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'install-button',
|
selector: 'install-button',
|
||||||
templateUrl: 'install-button.pug',
|
templateUrl: 'install-button.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Output, EventEmitter, OnInit } from '@angular/core';
|
import { Component, Output, EventEmitter, OnInit, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { toPalette } from '../../../common/ponyInfo';
|
import { toPalette } from '../../../common/ponyInfo';
|
||||||
import { decompressPonyString } from '../../../common/compressPony';
|
import { decompressPonyString } from '../../../common/compressPony';
|
||||||
import { PonyTownGame } from '../../../client/game';
|
import { PonyTownGame } from '../../../client/game';
|
||||||
@@ -7,6 +7,7 @@ import { removeItem } from '../../../common/utils';
|
|||||||
import { Model } from '../../services/model';
|
import { Model } from '../../services/model';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'invites-modal',
|
selector: 'invites-modal',
|
||||||
templateUrl: 'invites-modal.pug',
|
templateUrl: 'invites-modal.pug',
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { Component, Input } from '@angular/core';
|
import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'kbd-key',
|
selector: 'kbd-key',
|
||||||
templateUrl: 'kbd-key.pug',
|
templateUrl: 'kbd-key.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Input, Output, EventEmitter, HostListener } from '@angular/core';
|
import { Component, Input, Output, EventEmitter, HostListener, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { AccountData, OAuthProvider } from '../../../common/interfaces';
|
import { AccountData, OAuthProvider } from '../../../common/interfaces';
|
||||||
import { signUpProviders, signInProviders } from '../../../client/data';
|
import { signUpProviders, signInProviders } from '../../../client/data';
|
||||||
import { getProviderIcon } from '../sign-in-box/sign-in-box';
|
import { getProviderIcon } from '../sign-in-box/sign-in-box';
|
||||||
@@ -9,6 +9,7 @@ import { SettingsService } from '../../services/settingsService';
|
|||||||
import { REQUEST_DATE_OF_BIRTH } from '../../../common/constants';
|
import { REQUEST_DATE_OF_BIRTH } from '../../../common/constants';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'menu-bar',
|
selector: 'menu-bar',
|
||||||
templateUrl: 'menu-bar.pug',
|
templateUrl: 'menu-bar.pug',
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { Component, Input } from '@angular/core';
|
import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { emptyIcon } from '../../../client/icons';
|
import { emptyIcon } from '../../../client/icons';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'menu-item',
|
selector: 'menu-item',
|
||||||
templateUrl: 'menu-item.pug',
|
templateUrl: 'menu-item.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Input, OnDestroy } from '@angular/core';
|
import { Component, Input, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { ModAction, Pony } from '../../../common/interfaces';
|
import { ModAction, Pony } from '../../../common/interfaces';
|
||||||
import { TIMEOUTS } from '../../../common/constants';
|
import { TIMEOUTS } from '../../../common/constants';
|
||||||
import { Model } from '../../services/model';
|
import { Model } from '../../services/model';
|
||||||
@@ -9,6 +9,7 @@ const ageLabels = ['', 'M', 'A', '', '', '[M]', '[A]'];
|
|||||||
const ageTitles = ['Not set', 'Minor', 'Adult', '', '', 'Minor (locked)', 'Adult (locked)'];
|
const ageTitles = ['Not set', 'Minor', 'Adult', '', '', 'Minor (locked)', 'Adult (locked)'];
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'mod-box',
|
selector: 'mod-box',
|
||||||
templateUrl: 'mod-box.pug',
|
templateUrl: 'mod-box.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Input, OnDestroy } from '@angular/core';
|
import { Component, Input, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { PlayerAction, Notification, NotificationFlags, EntityPlayerState } from '../../../common/interfaces';
|
import { PlayerAction, Notification, NotificationFlags, EntityPlayerState } from '../../../common/interfaces';
|
||||||
import { PonyTownGame } from '../../../client/game';
|
import { PonyTownGame } from '../../../client/game';
|
||||||
import { hasFlag, setFlag } from '../../../common/utils';
|
import { hasFlag, setFlag } from '../../../common/utils';
|
||||||
@@ -6,6 +6,7 @@ import { faBan } from '../../../client/icons';
|
|||||||
import { getPaletteInfo } from '../../../client/pony';
|
import { getPaletteInfo } from '../../../client/pony';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'notification-item',
|
selector: 'notification-item',
|
||||||
templateUrl: 'notification-item.pug',
|
templateUrl: 'notification-item.pug',
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
import { Component, Input } from '@angular/core';
|
import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Notification } from '../../../common/interfaces';
|
import { Notification } from '../../../common/interfaces';
|
||||||
import { faEllipsisV } from '../../../client/icons';
|
import { faEllipsisV } from '../../../client/icons';
|
||||||
|
|
||||||
const LIMIT = 8;
|
const LIMIT = 8;
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'notification-list',
|
selector: 'notification-list',
|
||||||
templateUrl: 'notification-list.pug',
|
templateUrl: 'notification-list.pug',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { faSpinner } from '../../../client/icons';
|
import { faSpinner } from '../../../client/icons';
|
||||||
import { Model } from '../../services/model';
|
import { Model } from '../../services/model';
|
||||||
import { hardReload } from '../../../client/clientUtils';
|
import { hardReload } from '../../../client/clientUtils';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'page-loader',
|
selector: 'page-loader',
|
||||||
templateUrl: 'page-loader.pug',
|
templateUrl: 'page-loader.pug',
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
import { Component, Input } from '@angular/core';
|
import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { PartyMember } from '../../../common/interfaces';
|
import { PartyMember } from '../../../common/interfaces';
|
||||||
import { PonyTownGame } from '../../../client/game';
|
import { PonyTownGame } from '../../../client/game';
|
||||||
import { partyLeaderIcon, offlineIcon } from '../../../client/icons';
|
import { partyLeaderIcon, offlineIcon } from '../../../client/icons';
|
||||||
import { getPaletteInfo } from '../../../client/pony';
|
import { getPaletteInfo } from '../../../client/pony';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'party-box',
|
selector: 'party-box',
|
||||||
templateUrl: 'party-box.pug',
|
templateUrl: 'party-box.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, HostListener, OnInit, OnDestroy } from '@angular/core';
|
import { Component, HostListener, OnInit, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Subscription } from 'rxjs';
|
import { Subscription } from 'rxjs';
|
||||||
import { PartyMember } from '../../../common/interfaces';
|
import { PartyMember } from '../../../common/interfaces';
|
||||||
import { PARTY_LIMIT } from '../../../common/constants';
|
import { PARTY_LIMIT } from '../../../common/constants';
|
||||||
@@ -12,6 +12,7 @@ function visibleMembers(members: PartyMember[], max: number, start: number) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'party-list',
|
selector: 'party-list',
|
||||||
templateUrl: 'party-list.pug',
|
templateUrl: 'party-list.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Input, Output, EventEmitter, OnInit } from '@angular/core';
|
import { Component, Input, Output, EventEmitter, OnInit, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { ServerInfo, AccountDataFlags } from '../../../common/interfaces';
|
import { ServerInfo, AccountDataFlags } from '../../../common/interfaces';
|
||||||
import { RequestError, delay, includes, hasFlag } from '../../../common/utils';
|
import { RequestError, delay, includes, hasFlag } from '../../../common/utils';
|
||||||
import {
|
import {
|
||||||
@@ -29,6 +29,7 @@ const ignoredErrors = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'play-box',
|
selector: 'play-box',
|
||||||
templateUrl: 'play-box.pug',
|
templateUrl: 'play-box.pug',
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { discordLink } from '../../../client/data';
|
import { discordLink } from '../../../client/data';
|
||||||
import { GENERAL_RULES } from '../../../common/constants';
|
import { GENERAL_RULES } from '../../../common/constants';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'play-notice',
|
selector: 'play-notice',
|
||||||
templateUrl: 'play-notice.pug',
|
templateUrl: 'play-notice.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { PlayerAction, Pony, EntityPlayerState, Entity } from '../../../common/interfaces';
|
import { PlayerAction, Pony, EntityPlayerState, Entity } from '../../../common/interfaces';
|
||||||
import { getPaletteInfo } from '../../../client/pony';
|
import { getPaletteInfo } from '../../../client/pony';
|
||||||
import { Model } from '../../services/model';
|
import { Model } from '../../services/model';
|
||||||
@@ -14,6 +14,7 @@ import { isIgnored, isHidden, isFriend } from '../../../common/entityUtils';
|
|||||||
import { setFlag } from '../../../common/utils';
|
import { setFlag } from '../../../common/utils';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'pony-box',
|
selector: 'pony-box',
|
||||||
templateUrl: 'pony-box.pug',
|
templateUrl: 'pony-box.pug',
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { times } from 'lodash';
|
import { times } from 'lodash';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'scale-picker',
|
selector: 'scale-picker',
|
||||||
templateUrl: 'scale-picker.pug',
|
templateUrl: 'scale-picker.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Input, Output, EventEmitter, OnChanges, Directive, Optional } from '@angular/core';
|
import { Component, Input, Output, EventEmitter, OnChanges, Directive, Optional, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { clamp } from 'lodash';
|
import { clamp } from 'lodash';
|
||||||
import { SpriteSet, ColorExtraSets, ColorExtraSet } from '../../../common/interfaces';
|
import { SpriteSet, ColorExtraSets, ColorExtraSet } from '../../../common/interfaces';
|
||||||
import { getColorCount } from '../../../common/spriteUtils';
|
import { getColorCount } from '../../../common/spriteUtils';
|
||||||
@@ -15,6 +15,7 @@ export class SetOutlineHidden {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'set-selection',
|
selector: 'set-selection',
|
||||||
templateUrl: 'set-selection.pug',
|
templateUrl: 'set-selection.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, OnDestroy, NgZone, ViewChild, TemplateRef } from '@angular/core';
|
import { Component, OnInit, OnDestroy, NgZone, ViewChild, TemplateRef, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal';
|
import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal';
|
||||||
import { distinctUntilChanged } from 'rxjs/operators';
|
import { distinctUntilChanged } from 'rxjs/operators';
|
||||||
import { Subscription } from 'rxjs';
|
import { Subscription } from 'rxjs';
|
||||||
@@ -14,6 +14,7 @@ import { SettingsService } from '../../services/settingsService';
|
|||||||
import { Audio } from '../../services/audio';
|
import { Audio } from '../../services/audio';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'settings-box',
|
selector: 'settings-box',
|
||||||
templateUrl: 'settings-box.pug',
|
templateUrl: 'settings-box.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Output, EventEmitter, OnInit, OnDestroy } from '@angular/core';
|
import { Component, Output, EventEmitter, OnInit, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Subscription } from 'rxjs';
|
import { Subscription } from 'rxjs';
|
||||||
import { AccountSettings, BrowserSettings, GraphicsQuality } from '../../../common/interfaces';
|
import { AccountSettings, BrowserSettings, GraphicsQuality } from '../../../common/interfaces';
|
||||||
import { SettingsService } from '../../services/settingsService';
|
import { SettingsService } from '../../services/settingsService';
|
||||||
@@ -13,6 +13,7 @@ import { faSlidersH, faCommentSlash, faGamepad, faImage, faDownload, faUpload, f
|
|||||||
import { saveAs } from 'file-saver';
|
import { saveAs } from 'file-saver';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'settings-modal',
|
selector: 'settings-modal',
|
||||||
templateUrl: 'settings-modal.pug',
|
templateUrl: 'settings-modal.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Output, EventEmitter, OnInit } from '@angular/core';
|
import { Component, Output, EventEmitter, OnInit, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { signUpProviders, signInProviders, local } from '../../../client/data';
|
import { signUpProviders, signInProviders, local } from '../../../client/data';
|
||||||
import { emptyIcon, oauthIcons } from '../../../client/icons';
|
import { emptyIcon, oauthIcons } from '../../../client/icons';
|
||||||
import { OAuthProvider } from '../../../common/interfaces';
|
import { OAuthProvider } from '../../../common/interfaces';
|
||||||
@@ -11,6 +11,7 @@ export function getProviderIcon(id: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'sign-in-box',
|
selector: 'sign-in-box',
|
||||||
templateUrl: 'sign-in-box.pug',
|
templateUrl: 'sign-in-box.pug',
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import {
|
import {
|
||||||
Component, Input, AfterViewInit, ViewChild, ElementRef, NgZone, DoCheck, IterableDiffers, IterableDiffer, OnChanges
|
Component, Input, AfterViewInit, ViewChild, ElementRef, NgZone, DoCheck, IterableDiffers, IterableDiffer, OnChanges, ChangeDetectionStrategy } from '@angular/core';
|
||||||
} from '@angular/core';
|
|
||||||
import { Rect, Sprite, ColorExtra, Palette } from '../../../common/interfaces';
|
import { Rect, Sprite, ColorExtra, Palette } from '../../../common/interfaces';
|
||||||
import { parseColor, colorToCSS } from '../../../common/color';
|
import { parseColor, colorToCSS } from '../../../common/color';
|
||||||
import { mockPaletteManager, toColorList, getColorsFromSet } from '../../../common/ponyInfo';
|
import { mockPaletteManager, toColorList, getColorsFromSet } from '../../../common/ponyInfo';
|
||||||
@@ -22,6 +21,7 @@ function drawAll() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'sprite-box',
|
selector: 'sprite-box',
|
||||||
templateUrl: 'sprite-box.pug',
|
templateUrl: 'sprite-box.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Input, Output, EventEmitter, ElementRef } from '@angular/core';
|
import { Component, Input, Output, EventEmitter, ElementRef, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { uniqueId } from 'lodash';
|
import { uniqueId } from 'lodash';
|
||||||
import { ColorExtra } from '../../../common/interfaces';
|
import { ColorExtra } from '../../../common/interfaces';
|
||||||
import { Key } from '../../../client/input/input';
|
import { Key } from '../../../client/input/input';
|
||||||
@@ -7,6 +7,7 @@ import { focusElementAfterTimeout } from '../../../client/htmlUtils';
|
|||||||
const MAX = 999999;
|
const MAX = 999999;
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'sprite-selection',
|
selector: 'sprite-selection',
|
||||||
templateUrl: 'sprite-selection.pug',
|
templateUrl: 'sprite-selection.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, NgZone, ViewChild } from '@angular/core';
|
import { Component, NgZone, ViewChild, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { PonyTownGame } from '../../../client/game';
|
import { PonyTownGame } from '../../../client/game';
|
||||||
import { PonyObject, Action } from '../../../common/interfaces';
|
import { PonyObject, Action } from '../../../common/interfaces';
|
||||||
import { Dropdown } from '../directives/dropdown';
|
import { Dropdown } from '../directives/dropdown';
|
||||||
@@ -8,6 +8,7 @@ import { Model } from '../../services/model';
|
|||||||
// import { SWAP_TIMEOUT, SECOND } from '../../../common/constants';
|
// import { SWAP_TIMEOUT, SECOND } from '../../../common/constants';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'swap-box',
|
selector: 'swap-box',
|
||||||
templateUrl: 'swap-box.pug',
|
templateUrl: 'swap-box.pug',
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import {
|
import {
|
||||||
Component, Directive, TemplateRef, Input, ContentChild, ContentChildren, QueryList, Output, EventEmitter
|
Component, Directive, TemplateRef, Input, ContentChild, ContentChildren, QueryList, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
|
||||||
} from '@angular/core';
|
|
||||||
import { uniqueId } from 'lodash';
|
import { uniqueId } from 'lodash';
|
||||||
import { Key } from '../../../client/input/input';
|
import { Key } from '../../../client/input/input';
|
||||||
|
|
||||||
@@ -36,6 +35,7 @@ export class Tab {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'tabset',
|
selector: 'tabset',
|
||||||
templateUrl: 'tabset.pug',
|
templateUrl: 'tabset.pug',
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
Directive, DoCheck, Input, ViewContainerRef, TemplateRef, IterableDiffers, IterableDiffer,
|
Directive, DoCheck, Input, ViewContainerRef, TemplateRef, IterableDiffers, IterableDiffer,
|
||||||
EmbeddedViewRef, Component, ElementRef, ViewChild, NgZone, OnDestroy, ChangeDetectorRef, AfterViewInit
|
EmbeddedViewRef, Component, ElementRef, ViewChild, NgZone, OnDestroy, ChangeDetectorRef, AfterViewInit, ChangeDetectionStrategy } from '@angular/core';
|
||||||
} from '@angular/core';
|
|
||||||
|
|
||||||
interface Context<T> {
|
interface Context<T> {
|
||||||
$implicit: T;
|
$implicit: T;
|
||||||
@@ -11,6 +10,7 @@ interface Context<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'virtual-list',
|
selector: 'virtual-list',
|
||||||
template: '<div #padStart></div><ng-content></ng-content><div #padEnd></div>',
|
template: '<div #padStart></div><ng-content></ng-content><div #padEnd></div>',
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'visit-pt-button',
|
selector: 'visit-pt-button',
|
||||||
templateUrl: 'visit-pt-button.pug',
|
templateUrl: 'visit-pt-button.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, OnDestroy, Input, ViewChild } from '@angular/core';
|
import { Component, OnInit, OnDestroy, Input, ViewChild, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { defaultExpression } from '../../../common/ponyUtils';
|
import { defaultExpression } from '../../../common/ponyUtils';
|
||||||
import { defaultPonyState } from '../../../common/ponyHelpers';
|
import { defaultPonyState } from '../../../common/ponyHelpers';
|
||||||
import { Expression, Muzzle, HeadAnimation, BodyAnimation, Eye } from '../../../common/interfaces';
|
import { Expression, Muzzle, HeadAnimation, BodyAnimation, Eye } from '../../../common/interfaces';
|
||||||
@@ -24,6 +24,7 @@ const EXCITED: Expression = {
|
|||||||
const MENO = 'DBWIzP8imd08//D19fVazSjcwf1GhLNEiMxENSovLy/NsIdJQDnGqYBiSztWQTM6LychEnE/KRX///9WPeE1HbSpBUEIIASwgEIAAAAAbIAgCFMY34AHAAjwgCMRQCVLY38IDhAAwmFBz4fAIxjKM6SjGlaxjWtYgjGI';
|
const MENO = 'DBWIzP8imd08//D19fVazSjcwf1GhLNEiMxENSovLy/NsIdJQDnGqYBiSztWQTM6LychEnE/KRX///9WPeE1HbSpBUEIIASwgEIAAAAAbIAgCFMY34AHAAjwgCMRQCVLY38IDhAAwmFBz4fAIxjKM6SjGlaxjWtYgjGI';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'visit-pt-pony',
|
selector: 'visit-pt-pony',
|
||||||
templateUrl: 'visit-pt-pony.pug',
|
templateUrl: 'visit-pt-pony.pug',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import { Component, Input, Output, EventEmitter, ElementRef } from '@angular/core';
|
import { Component, Input, Output, EventEmitter, ElementRef, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Sprite, PonyInfo } from '../../../../common/interfaces';
|
import { Sprite, PonyInfo } from '../../../../common/interfaces';
|
||||||
|
|
||||||
let openedPopover: ToolsFrame;
|
let openedPopover: ToolsFrame;
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'tools-frame',
|
selector: 'tools-frame',
|
||||||
templateUrl: 'tools-frame.pug',
|
templateUrl: 'tools-frame.pug',
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Point } from '../../../../common/interfaces';
|
import { Point } from '../../../../common/interfaces';
|
||||||
import { faChevronRight, faChevronLeft, faChevronDown, faChevronUp } from '../../../../client/icons';
|
import { faChevronRight, faChevronLeft, faChevronDown, faChevronUp } from '../../../../client/icons';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'tools-offset',
|
selector: 'tools-offset',
|
||||||
templateUrl: 'tools-offset.pug',
|
templateUrl: 'tools-offset.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, HostListener, OnInit, OnDestroy } from '@angular/core';
|
import { Component, HostListener, OnInit, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
import { HttpClient } from '@angular/common/http';
|
import { HttpClient } from '@angular/common/http';
|
||||||
import { flatMap, dropRightWhile, compact } from 'lodash';
|
import { flatMap, dropRightWhile, compact } from 'lodash';
|
||||||
@@ -87,6 +87,7 @@ function eyeSprite(e: PonyEye | undefined) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'tools-animation',
|
selector: 'tools-animation',
|
||||||
templateUrl: 'tools-animation.pug',
|
templateUrl: 'tools-animation.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, ViewChild, ElementRef, AfterViewInit } from '@angular/core';
|
import { Component, ViewChild, ElementRef, AfterViewInit, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import {
|
import {
|
||||||
drawSpeechBaloon, drawNamePlate, createCommonPalettes, drawBaloon, DrawNameFlags
|
drawSpeechBaloon, drawNamePlate, createCommonPalettes, drawBaloon, DrawNameFlags
|
||||||
} from '../../../graphics/graphicsUtils';
|
} from '../../../graphics/graphicsUtils';
|
||||||
@@ -25,6 +25,7 @@ interface Message {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'tools-chat',
|
selector: 'tools-chat',
|
||||||
templateUrl: 'tools-chat.pug',
|
templateUrl: 'tools-chat.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, ViewChild, ElementRef, OnInit } from '@angular/core';
|
import { Component, ViewChild, ElementRef, OnInit, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { AgDragEvent } from '../../shared/directives/agDrag';
|
import { AgDragEvent } from '../../shared/directives/agDrag';
|
||||||
import { Rect, Point } from '../../../common/interfaces';
|
import { Rect, Point } from '../../../common/interfaces';
|
||||||
import { roundPosition } from '../../../common/positionUtils';
|
import { roundPosition } from '../../../common/positionUtils';
|
||||||
@@ -38,6 +38,7 @@ function toScreen(pt: Point) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'tools-collisions',
|
selector: 'tools-collisions',
|
||||||
templateUrl: 'tools-collisions.pug',
|
templateUrl: 'tools-collisions.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, HostListener, ElementRef, ViewChild } from '@angular/core';
|
import { Component, OnInit, HostListener, ElementRef, ViewChild, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { findLastIndex, compact } from 'lodash';
|
import { findLastIndex, compact } from 'lodash';
|
||||||
import { removeItem, containsPoint, isKeyEventInvalid, cloneDeep, att } from '../../../common/utils';
|
import { removeItem, containsPoint, isKeyEventInvalid, cloneDeep, att } from '../../../common/utils';
|
||||||
import * as sprites from '../../../generated/sprites';
|
import * as sprites from '../../../generated/sprites';
|
||||||
@@ -81,6 +81,7 @@ interface EntityData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'tools-entity',
|
selector: 'tools-entity',
|
||||||
templateUrl: 'tools-entity.pug',
|
templateUrl: 'tools-entity.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, ElementRef, ViewChild } from '@angular/core';
|
import { Component, OnInit, ElementRef, ViewChild, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { PonyInfo, PonyState } from '../../../common/interfaces';
|
import { PonyInfo, PonyState } from '../../../common/interfaces';
|
||||||
import { toPalette, createDefaultPony, syncLockedPonyInfo } from '../../../common/ponyInfo';
|
import { toPalette, createDefaultPony, syncLockedPonyInfo } from '../../../common/ponyInfo';
|
||||||
import { defaultPonyState, defaultDrawPonyOptions } from '../../../common/ponyHelpers';
|
import { defaultPonyState, defaultDrawPonyOptions } from '../../../common/ponyHelpers';
|
||||||
@@ -13,6 +13,7 @@ import { paletteSpriteSheet } from '../../../generated/sprites';
|
|||||||
import { loadAndInitSpriteSheets } from '../../../client/loadSprites';
|
import { loadAndInitSpriteSheets } from '../../../client/loadSprites';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'tools-expressions',
|
selector: 'tools-expressions',
|
||||||
templateUrl: 'tools-expressions.pug',
|
templateUrl: 'tools-expressions.pug',
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'tools-index',
|
selector: 'tools-index',
|
||||||
templateUrl: 'tools-index.pug',
|
templateUrl: 'tools-index.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, ElementRef, ViewChild } from '@angular/core';
|
import { Component, OnInit, ElementRef, ViewChild, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { HttpClient } from '@angular/common/http';
|
import { HttpClient } from '@angular/common/http';
|
||||||
import { saveCanvas, disableImageSmoothing, createCanvas } from '../../../common/canvasUtils';
|
import { saveCanvas, disableImageSmoothing, createCanvas } from '../../../common/canvasUtils';
|
||||||
import { tileHeight, tileWidth, REGION_SIZE } from '../../../common/constants';
|
import { tileHeight, tileWidth, REGION_SIZE } from '../../../common/constants';
|
||||||
@@ -42,6 +42,7 @@ export interface ToolsMapInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'tools-map',
|
selector: 'tools-map',
|
||||||
templateUrl: 'tools-map.pug',
|
templateUrl: 'tools-map.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, ElementRef, ViewChild } from '@angular/core';
|
import { Component, OnInit, ElementRef, ViewChild, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import * as sprites from '../../../generated/sprites';
|
import * as sprites from '../../../generated/sprites';
|
||||||
import { setPaletteManager } from '../../../common/mixins';
|
import { setPaletteManager } from '../../../common/mixins';
|
||||||
import { parseColor, colorToCSS } from '../../../common/color';
|
import { parseColor, colorToCSS } from '../../../common/color';
|
||||||
@@ -16,6 +16,7 @@ const paletteManager = new PaletteManager();
|
|||||||
const defaultPalette = paletteManager.add(DEFAULT_PALETTE);
|
const defaultPalette = paletteManager.add(DEFAULT_PALETTE);
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'tools-palette',
|
selector: 'tools-palette',
|
||||||
templateUrl: 'tools-palette.pug',
|
templateUrl: 'tools-palette.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, NgZone } from '@angular/core';
|
import { Component, NgZone, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { HttpClient } from '@angular/common/http';
|
import { HttpClient } from '@angular/common/http';
|
||||||
import { isEqual, range, random, times } from 'lodash';
|
import { isEqual, range, random, times } from 'lodash';
|
||||||
import { parseColorWithAlpha, parseColorFast, colorToHexRGB } from '../../../common/color';
|
import { parseColorWithAlpha, parseColorFast, colorToHexRGB } from '../../../common/color';
|
||||||
@@ -13,6 +13,7 @@ import { includes as utilsIncludes } from '../../../common/utils';
|
|||||||
import { encodeString, encodeStringNew } from './methods';
|
import { encodeString, encodeStringNew } from './methods';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'tools-perf',
|
selector: 'tools-perf',
|
||||||
templateUrl: 'tools-perf.pug',
|
templateUrl: 'tools-perf.pug',
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { times, fill, clamp } from 'lodash';
|
import { times, fill, clamp } from 'lodash';
|
||||||
import { Component, OnInit, HostListener, OnDestroy } from '@angular/core';
|
import { Component, OnInit, HostListener, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { rect } from '../../../common/rect';
|
import { rect } from '../../../common/rect';
|
||||||
import { AgDragEvent } from '../../shared/directives/agDrag';
|
import { AgDragEvent } from '../../shared/directives/agDrag';
|
||||||
import { updateCamera, centerCameraOn, isAreaVisible, createCamera } from '../../../common/camera';
|
import { updateCamera, centerCameraOn, isAreaVisible, createCamera } from '../../../common/camera';
|
||||||
@@ -24,6 +24,7 @@ export function getRegionsBoundsCameraBased(_entity: Point, camera: Rect, region
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'tools-regions',
|
selector: 'tools-regions',
|
||||||
templateUrl: 'tools-regions.pug',
|
templateUrl: 'tools-regions.pug',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, ElementRef, ViewChild } from '@angular/core';
|
import { Component, OnInit, ElementRef, ViewChild, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { compact } from 'lodash';
|
import { compact } from 'lodash';
|
||||||
import { getCols, getRows, createPsd, savePsd, drawPsd } from '../sheetExport';
|
import { getCols, getRows, createPsd, savePsd, drawPsd } from '../sheetExport';
|
||||||
import { saveCanvas } from '../../../common/canvasUtils';
|
import { saveCanvas } from '../../../common/canvasUtils';
|
||||||
@@ -9,6 +9,7 @@ import { sheets, Sheet } from '../../../common/sheets';
|
|||||||
import { loadAndInitSpriteSheets } from '../../../client/loadSprites';
|
import { loadAndInitSpriteSheets } from '../../../client/loadSprites';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
selector: 'tools-sheet',
|
selector: 'tools-sheet',
|
||||||
templateUrl: 'tools-sheet.pug',
|
templateUrl: 'tools-sheet.pug',
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user