⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.72
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
grafana
/
public
/
app
/
angular
/
View File Name :
bridgeReactAngularRouting.ts
import { ILocationService } from 'angular'; import { RouteParamsProvider } from '../core/navigation/patch/RouteParamsProvider'; import { RouteProvider } from '../core/navigation/patch/RouteProvider'; import { AngularLocationWrapper } from './AngularLocationWrapper'; import { coreModule } from './core_module'; // Neutralizing Angular’s location tampering // https://stackoverflow.com/a/19825756 const tamperAngularLocation = () => { coreModule.config([ '$provide', ($provide: any) => { $provide.decorator('$browser', [ '$delegate', ($delegate: any) => { $delegate.onUrlChange = () => {}; $delegate.url = () => ''; return $delegate; }, ]); }, ]); }; // Intercepting $location service with implementation based on history const interceptAngularLocation = () => { coreModule.config([ '$provide', ($provide: any) => { $provide.decorator('$location', [ '$delegate', ($delegate: ILocationService) => { $delegate = new AngularLocationWrapper() as unknown as ILocationService; return $delegate; }, ]); }, ]); coreModule.provider('$route', RouteProvider); coreModule.provider('$routeParams', RouteParamsProvider); }; export function initAngularRoutingBridge() { tamperAngularLocation(); interceptAngularLocation(); }