commit frontend rewrite initial project

This commit is contained in:
Janek 2024-04-12 14:41:52 +02:00
parent 5e1d3bbdb1
commit 75b997999c
43 changed files with 7570 additions and 5108 deletions

5
.gitignore vendored

@ -1,4 +1,7 @@
/target
/src/dma/cs2dumper/offsets.rs
/src/dma/cs2dumper/client.rs
/src/dma/cs2dumper/engine2.rs
/src/dma/cs2dumper/engine2.rs
/src/dma/cs2dumper/offsets_mod.rs
/src/dma/cs2dumper/client_mod.rs
/src/dma/cs2dumper/engine2_mod.rs

File diff suppressed because it is too large Load Diff

@ -1,14 +1,31 @@
// Generated using https://github.com/a2x/cs2-dumper
// 2024-04-02 16:10:48.961749300 UTC
// 2024-04-08 07:10:44.298916800 UTC
#![allow(non_upper_case_globals, non_camel_case_types, unused)]
#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)]
pub mod cs2_dumper {
pub mod schemas {
// Module: engine2.dll
// Classes count: 2
// Classes count: 44
// Enums count: 4
pub mod engine2_dll {
// Alignment: 4
// Members count: 3
#[repr(u32)]
pub enum EntityDormancyType_t {
ENTITY_NOT_DORMANT = 0x0,
ENTITY_DORMANT = 0x1,
ENTITY_SUSPENDED = 0x2
}
// Alignment: 4
// Members count: 4
#[repr(u32)]
pub enum EntityIOTargetType_t {
ENTITY_IO_TARGET_INVALID = u32::MAX,
ENTITY_IO_TARGET_ENTITYNAME = 0x2,
ENTITY_IO_TARGET_EHANDLE = 0x6,
ENTITY_IO_TARGET_ENTITYNAME_OR_CLASSNAME = 0x7
}
// Alignment: 4
// Members count: 3
#[repr(u32)]
@ -27,52 +44,256 @@ pub mod cs2_dumper {
SPAWN_DEBUG_RESTRICT_IGNORE_TEMPLATE_COOLDOWN_LIMITS = 0x4,
SPAWN_DEBUG_RESTRICT_IGNORE_TARGET_COOLDOWN_LIMITS = 0x8
}
// Alignment: 4
// Members count: 3
#[repr(u32)]
pub enum EntityDormancyType_t {
ENTITY_NOT_DORMANT = 0x0,
ENTITY_DORMANT = 0x1,
ENTITY_SUSPENDED = 0x2
}
// Alignment: 4
// Members count: 4
#[repr(u32)]
pub enum EntityIOTargetType_t {
ENTITY_IO_TARGET_INVALID = 0xFFFFFFFFFFFFFFFF,
ENTITY_IO_TARGET_ENTITYNAME = 0x2,
ENTITY_IO_TARGET_EHANDLE = 0x6,
ENTITY_IO_TARGET_ENTITYNAME_OR_CLASSNAME = 0x7
// Parent: EventSimulate_t
// Fields count: 0
pub mod EventClientPostSimulate_t {
}
// Parent: None
// Fields count: 11
//
// Metadata:
// NetworkVarNames: m_nameStringableIndex (int32)
pub mod CEntityIdentity {
pub const m_nameStringableIndex: usize = 0x14; // int32
pub const m_name: usize = 0x18; // CUtlSymbolLarge
pub const m_designerName: usize = 0x20; // CUtlSymbolLarge
pub const m_flags: usize = 0x30; // uint32
pub const m_worldGroupId: usize = 0x38; // WorldGroupId_t
pub const m_fDataObjectTypes: usize = 0x3C; // uint32
pub const m_PathIndex: usize = 0x40; // ChangeAccessorFieldPathIndex_t
pub const m_pPrev: usize = 0x58; // CEntityIdentity*
pub const m_pNext: usize = 0x60; // CEntityIdentity*
pub const m_pPrevByClass: usize = 0x68; // CEntityIdentity*
pub const m_pNextByClass: usize = 0x70; // CEntityIdentity*
// Fields count: 3
pub mod EventSimpleLoopFrameUpdate_t {
pub const m_LoopState: usize = 0x0; // EngineLoopState_t
pub const m_flRealTime: usize = 0x28; // float32
pub const m_flFrameTime: usize = 0x2C; // float32
}
// Parent: EventSimulate_t
// Fields count: 4
pub mod EventPostAdvanceTick_t {
pub const m_nCurrentTick: usize = 0x30; // int32
pub const m_nCurrentTickThisFrame: usize = 0x34; // int32
pub const m_nTotalTicksThisFrame: usize = 0x38; // int32
pub const m_nTotalTicks: usize = 0x3C; // int32
}
// Parent: None
// Fields count: 1
pub mod CEntityIOOutput {
pub const m_Value: usize = 0x18; // CVariantBase<CVariantDefaultAllocator>
}
// Parent: None
// Fields count: 1
pub mod EventClientSceneSystemThreadStateChange_t {
pub const m_bThreadsActive: usize = 0x0; // bool
}
// Parent: None
// Fields count: 5
pub mod EventClientOutput_t {
pub const m_LoopState: usize = 0x0; // EngineLoopState_t
pub const m_flRenderTime: usize = 0x28; // float32
pub const m_flRealTime: usize = 0x2C; // float32
pub const m_flRenderFrameTimeUnbounded: usize = 0x30; // float32
pub const m_bRenderOnly: usize = 0x34; // bool
}
// Parent: EventSimulate_t
// Fields count: 0
pub mod EventServerPostSimulate_t {
}
// Parent: None
// Fields count: 4
//
// Metadata:
// NetworkVarNames: m_pEntity (CEntityIdentity*)
// NetworkVarNames: m_CScriptComponent (CScriptComponent::Storage_t)
pub mod CEntityInstance {
pub const m_iszPrivateVScripts: usize = 0x8; // CUtlSymbolLarge
pub const m_pEntity: usize = 0x10; // CEntityIdentity*
pub const m_CScriptComponent: usize = 0x28; // CScriptComponent*
pub const m_bVisibleinPVS: usize = 0x30; // bool
pub mod CEntityComponentHelper {
pub const m_flags: usize = 0x8; // uint32
pub const m_pInfo: usize = 0x10; // EntComponentInfo_t*
pub const m_nPriority: usize = 0x18; // int32
pub const m_pNext: usize = 0x20; // CEntityComponentHelper*
}
// Parent: EventAdvanceTick_t
// Fields count: 0
pub mod EventClientAdvanceTick_t {
}
// Parent: None
// Fields count: 0
pub mod EntInput_t {
}
// Parent: None
// Fields count: 1
pub mod CNetworkVarChainer {
pub const m_PathIndex: usize = 0x20; // ChangeAccessorFieldPathIndex_t
}
// Parent: EventSimulate_t
// Fields count: 0
pub mod EventClientSimulate_t {
}
// Parent: None
// Fields count: 5
pub mod EventClientPostOutput_t {
pub const m_LoopState: usize = 0x0; // EngineLoopState_t
pub const m_flRenderTime: usize = 0x28; // float64
pub const m_flRenderFrameTime: usize = 0x30; // float32
pub const m_flRenderFrameTimeUnbounded: usize = 0x34; // float32
pub const m_bRenderOnly: usize = 0x38; // bool
}
// Parent: None
// Fields count: 2
pub mod EventClientPollInput_t {
pub const m_LoopState: usize = 0x0; // EngineLoopState_t
pub const m_flRealTime: usize = 0x28; // float32
}
// Parent: None
// Fields count: 1
pub mod EventPreDataUpdate_t {
pub const m_nCount: usize = 0x0; // int32
}
// Parent: None
// Fields count: 0
pub mod EventClientPredictionPostNetupdate_t {
}
// Parent: None
// Fields count: 3
pub mod EventClientProcessGameInput_t {
pub const m_LoopState: usize = 0x0; // EngineLoopState_t
pub const m_flRealTime: usize = 0x28; // float32
pub const m_flFrameTime: usize = 0x2C; // float32
}
// Parent: None
// Fields count: 1
pub mod EventFrameBoundary_t {
pub const m_flFrameTime: usize = 0x0; // float32
}
// Parent: None
// Fields count: 1
pub mod EventAppShutdown_t {
pub const m_nDummy0: usize = 0x0; // int32
}
// Parent: EventSimulate_t
// Fields count: 0
pub mod EventServerSimulate_t {
}
// Parent: EventPostAdvanceTick_t
// Fields count: 0
pub mod EventServerPostAdvanceTick_t {
}
// Parent: None
// Fields count: 1
pub mod EventProfileStorageAvailable_t {
pub const m_nSplitScreenSlot: usize = 0x0; // CSplitScreenSlot
}
// Parent: None
// Fields count: 1
pub mod EventPostDataUpdate_t {
pub const m_nCount: usize = 0x0; // int32
}
// Parent: EventSimulate_t
// Fields count: 0
pub mod EventClientPreSimulate_t {
}
// Parent: EventSimulate_t
// Fields count: 0
pub mod EventClientPauseSimulate_t {
}
// Parent: None
// Fields count: 0
pub mod EventClientProcessNetworking_t {
}
// Parent: EventSimulate_t
// Fields count: 4
pub mod EventAdvanceTick_t {
pub const m_nCurrentTick: usize = 0x30; // int32
pub const m_nCurrentTickThisFrame: usize = 0x34; // int32
pub const m_nTotalTicksThisFrame: usize = 0x38; // int32
pub const m_nTotalTicks: usize = 0x3C; // int32
}
// Parent: None
// Fields count: 0
pub mod EventSplitScreenStateChanged_t {
}
// Parent: EventPostAdvanceTick_t
// Fields count: 0
pub mod EventClientPostAdvanceTick_t {
}
// Parent: None
// Fields count: 0
pub mod CVariantDefaultAllocator {
}
// Parent: None
// Fields count: 0
pub mod EventModInitialized_t {
}
// Parent: None
// Fields count: 6
pub mod EventClientPreOutput_t {
pub const m_LoopState: usize = 0x0; // EngineLoopState_t
pub const m_flRenderTime: usize = 0x28; // float64
pub const m_flRenderFrameTime: usize = 0x30; // float64
pub const m_flRenderFrameTimeUnbounded: usize = 0x38; // float64
pub const m_flRealTime: usize = 0x40; // float32
pub const m_bRenderOnly: usize = 0x44; // bool
}
// Parent: None
// Fields count: 4
pub mod EventClientFrameSimulate_t {
pub const m_LoopState: usize = 0x0; // EngineLoopState_t
pub const m_flRealTime: usize = 0x28; // float32
pub const m_flFrameTime: usize = 0x2C; // float32
pub const m_flWhenScheduleSendTickPacket: usize = 0x30; // float64
}
// Parent: EventAdvanceTick_t
// Fields count: 0
pub mod EventServerAdvanceTick_t {
}
// Parent: None
// Fields count: 8
pub mod EventSetTime_t {
pub const m_LoopState: usize = 0x0; // EngineLoopState_t
pub const m_nClientOutputFrames: usize = 0x28; // int32
pub const m_flRealTime: usize = 0x30; // float64
pub const m_flRenderTime: usize = 0x38; // float64
pub const m_flRenderFrameTime: usize = 0x40; // float64
pub const m_flRenderFrameTimeUnbounded: usize = 0x48; // float64
pub const m_flRenderFrameTimeUnscaled: usize = 0x50; // float64
pub const m_flTickRemainder: usize = 0x58; // float64
}
// Parent: None
// Fields count: 0
pub mod EntOutput_t {
}
// Parent: None
// Fields count: 3
pub mod EventSimulate_t {
pub const m_LoopState: usize = 0x0; // EngineLoopState_t
pub const m_bFirstTick: usize = 0x28; // bool
pub const m_bLastTick: usize = 0x29; // bool
}
// Parent: EventSimulate_t
// Fields count: 0
pub mod EventServerProcessNetworking_t {
}
// Parent: None
// Fields count: 0
pub mod CEmptyEntityInstance {
}
// Parent: None
// Fields count: 7
pub mod EntComponentInfo_t {
pub const m_pName: usize = 0x0; // char*
pub const m_pCPPClassname: usize = 0x8; // char*
pub const m_pNetworkDataReferencedDescription: usize = 0x10; // char*
pub const m_pNetworkDataReferencedPtrPropDescription: usize = 0x18; // char*
pub const m_nRuntimeIndex: usize = 0x20; // int32
pub const m_nFlags: usize = 0x24; // uint32
pub const m_pBaseClassComponentHelper: usize = 0x60; // CEntityComponentHelper*
}
// Parent: None
// Fields count: 4
pub mod EngineLoopState_t {
pub const m_nPlatWindowWidth: usize = 0x18; // int32
pub const m_nPlatWindowHeight: usize = 0x1C; // int32
pub const m_nRenderWidth: usize = 0x20; // int32
pub const m_nRenderHeight: usize = 0x24; // int32
}
// Parent: None
// Fields count: 1
pub mod EventClientPollNetworking_t {
pub const m_nTickCount: usize = 0x0; // int32
}
// Parent: None
// Fields count: 4
pub mod EventClientProcessInput_t {
pub const m_LoopState: usize = 0x0; // EngineLoopState_t
pub const m_flRealTime: usize = 0x28; // float32
pub const m_flTickInterval: usize = 0x2C; // float32
pub const m_flTickStartTime: usize = 0x30; // float64
}
// Parent: EventSimulate_t
// Fields count: 0
pub mod EventServerPollNetworking_t {
}
}
}

@ -1,39 +1,40 @@
// Generated using https://github.com/a2x/cs2-dumper
// 2024-04-02 16:10:48.961749300 UTC
// 2024-04-10 01:18:49.435410600 UTC
#![allow(non_upper_case_globals, non_camel_case_types, unused)]
#![allow(non_upper_case_globals, unused)]
pub mod cs2_dumper {
pub mod offsets {
// Module: client.dll
pub mod client_dll {
pub const dwCSGOInput: usize = 0x192B620;
pub const dwEntityList: usize = 0x18C2D58;
pub const dwGameEntitySystem: usize = 0x19E0790;
pub const dwCSGOInput: usize = 0x192A5B0;
pub const dwEntityList: usize = 0x18C1DB8;
pub const dwGameEntitySystem: usize = 0x19DF750;
pub const dwGameEntitySystem_getHighestEntityIndex: usize = 0x1510;
pub const dwGameRules: usize = 0x191FCA0;
pub const dwGlobalVars: usize = 0x172ABA0;
pub const dwGlowManager: usize = 0x19200C0;
pub const dwLocalPlayerController: usize = 0x1912578;
pub const dwLocalPlayerPawn: usize = 0x17371A8;
pub const dwPlantedC4: usize = 0x1928AD8;
pub const dwPrediction: usize = 0x1737070;
pub const dwSensitivity: usize = 0x19209E8;
pub const dwGameRules: usize = 0x191EC70;
pub const dwGlobalVars: usize = 0x1729BA0;
pub const dwGlowManager: usize = 0x191F090;
pub const dwLocalPlayerController: usize = 0x1911578;
pub const dwLocalPlayerPawn: usize = 0x17361E8;
pub const dwPlantedC4: usize = 0x1927A68;
pub const dwPrediction: usize = 0x17360B0;
pub const dwSensitivity: usize = 0x191F9B8;
pub const dwSensitivity_sensitivity: usize = 0x40;
pub const dwViewAngles: usize = 0x19309B0;
pub const dwViewMatrix: usize = 0x19241A0;
pub const dwViewRender: usize = 0x1924A20;
pub const dwViewAngles: usize = 0x192F940;
pub const dwViewMatrix: usize = 0x19231B0;
pub const dwViewRender: usize = 0x19239B0;
pub const dwWeaponC4: usize = 0x18C5210;
}
// Module: engine2.dll
pub mod engine2_dll {
pub const dwBuildNumber: usize = 0x514574;
pub const dwNetworkGameClient: usize = 0x513AC8;
pub const dwBuildNumber: usize = 0x515564;
pub const dwNetworkGameClient: usize = 0x514AC8;
pub const dwNetworkGameClient_deltaTick: usize = 0x258;
pub const dwNetworkGameClient_getLocalPlayer: usize = 0xF0;
pub const dwNetworkGameClient_getMaxClients: usize = 0x250;
pub const dwNetworkGameClient_signOnState: usize = 0x240;
pub const dwWindowHeight: usize = 0x5CCCDC;
pub const dwWindowWidth: usize = 0x5CCCD8;
pub const dwWindowHeight: usize = 0x5CDD14;
pub const dwWindowWidth: usize = 0x5CDD10;
}
// Module: inputsystem.dll
pub mod inputsystem_dll {

21
webradar-old/index.html Executable file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>radarflow</title>
<link href="styles.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="canvasContainer">
<div id="settingsHolder">
<div class="settings">
<button onclick="toggleZoom()">Toggle Zoom</button>
<button onclick="toggleStats()">Toggle Stats</button>
</div>
</div>
<canvas id="canvas"></canvas>
</div>
<script src="script.js"></script>
</body>
</html>

24
webradar/.gitignore vendored Normal file

@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

3
webradar/.vscode/extensions.json vendored Normal file

@ -0,0 +1,3 @@
{
"recommendations": ["Vue.volar"]
}

9
webradar/README.md Normal file

@ -0,0 +1,9 @@
# Vue 3 + TypeScript + Vite
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
## Recommended Setup
- [VS Code](https://code.visualstudio.com/) + [Vue - Official](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (previously Volar) and disable Vetur
- Use [vue-tsc](https://github.com/vuejs/language-tools/tree/master/packages/tsc) for performing the same type checking from the command line, or for generating d.ts files for SFCs.

32
webradar/index.html Executable file → Normal file

@ -1,21 +1,13 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>radarflow</title>
<link href="styles.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="canvasContainer">
<div id="settingsHolder">
<div class="settings">
<button onclick="toggleZoom()">Toggle Zoom</button>
<button onclick="toggleStats()">Toggle Stats</button>
</div>
</div>
<canvas id="canvas"></canvas>
</div>
<script src="script.js"></script>
</body>
</html>
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>radarflow2</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>

1146
webradar/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

20
webradar/package.json Normal file

@ -0,0 +1,20 @@
{
"name": "webradar",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build",
"preview": "vite preview"
},
"dependencies": {
"vue": "^3.4.21"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.4",
"typescript": "^5.2.2",
"vite": "^5.2.0",
"vue-tsc": "^2.0.6"
}
}

1
webradar/public/vite.svg Normal file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>

After

(image error) Size: 1.5 KiB

13
webradar/src/App.vue Normal file

@ -0,0 +1,13 @@
<script setup lang="ts">
import Radar from './components/Radar.vue'
</script>
<template>
<Radar/>
</template>
<style>
:root {
background-color: black;
}
</style>

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>

After

(image error) Size: 496 B

@ -0,0 +1,42 @@
<script setup lang = "ts">
import { onMounted, ref } from 'vue';
import { radardata } from '../main';
const canvas = ref(null);
const localColor = "#109856"
const teamColor = "#68a3e5"
const enemyColor = "#ec040b"
const bombColor = "#eda338"
const textColor = "#d1d1d1"
onMounted(() => {
console.log(radardata)
const ctx = canvas.value.getContext('2d');
ctx.fillStyle = "#0f0f0f";
ctx.fillRect(0, 0, 1024, 1024);
if (radardata.ingame) {
} else {
ctx.font = "100px Arial";
ctx.textAlign = "center"
ctx.fillStyle = textColor
ctx.fillText("Disconnected", 1024/2, 1024/2);
}
});
</script>
<template>
<canvas id="canvas" ref="canvas" width="1024" height="1024"></canvas>
</template>
<style>
canvas {
aspect-ratio: 1 / 1;
width: clamp(100vw, 100%, 100vh)
}
</style>

50
webradar/src/main.ts Normal file

@ -0,0 +1,50 @@
import { createApp, reactive } from 'vue'
import './style.css'
import App from './App.vue'
//const socket = new WebSocket('ws://localhost:3000');
type BombData = {
pos: { x: number, y: number, z: number },
isPlanted: boolean,
}
enum PlayerType {
Unknown,
Spectator,
Local,
Enemy,
Team
}
type PlayerData = {
pos: { x: number, y: number, z: number },
yaw: number,
playerType: PlayerType,
hasBomb: boolean,
hasAwp: boolean,
isScoped: boolean
}
type Radardata = {
freq: number,
ingame: boolean,
bombPlanted: boolean,
bombExploded: boolean,
bombBeingDefused: boolean,
bombCanDefuse: boolean,
bombDefuseLength: number,
bombDefuseTimeleft: number,
bombDefuseEnd: number,
mapName: string
playerData: [BombData | PlayerData]
}
export const radardata = reactive({
freq: 144,
ingame: false
})
createApp(App).mount('#app')

79
webradar/src/style.css Normal file

@ -0,0 +1,79 @@
:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
}
h1 {
font-size: 3.2em;
line-height: 1.1;
}
button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}
.card {
padding: 2em;
}
#app {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}
@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
}

1
webradar/src/vite-env.d.ts vendored Normal file

@ -0,0 +1 @@
/// <reference types="vite/client" />

25
webradar/tsconfig.json Normal file

@ -0,0 +1,25 @@
{
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "preserve",
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"],
"references": [{ "path": "./tsconfig.node.json" }]
}

@ -0,0 +1,11 @@
{
"compilerOptions": {
"composite": true,
"skipLibCheck": true,
"module": "ESNext",
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true,
"strict": true
},
"include": ["vite.config.ts"]
}

7
webradar/vite.config.ts Normal file

@ -0,0 +1,7 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
})