Compare commits

..

No commits in common. "22945357fddb4622b27d3fb9e4a8af8a1cc2a830" and "97b094c3d4e7d99dcb53ccecb846e0387bf8b20f" have entirely different histories.

10 changed files with 8369 additions and 6254 deletions

View File

@ -1,23 +0,0 @@
{
"name": "rage-fw-cef",
"version": "0.0.16-alpha.0",
"main": "dist/index.js",
"types": "dist/src/index.d.ts",
"files": [
"dist/**/*"
],
"scripts": {
"build": "tsup"
},
"dependencies": {
"rage-fw-shared-types": "workspace:^",
"rage-rpc": "^0.4.0"
},
"peerDependencies": {
"@ragempcommunity/types-cef": "^2.1.8"
},
"keywords": [],
"author": "SashaGoncharov19",
"license": "MIT",
"description": "CEF side for rage-fw"
}

View File

@ -1,15 +0,0 @@
import rpc from 'rage-rpc'
class Cef {
public register() {}
public trigger() {}
public triggerServer() {}
public triggerClient() {}
}
export const fw = {
event: new Cef(),
}

View File

View File

@ -1,25 +0,0 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Base",
"exclude": [
"node_modules"
],
"compilerOptions": {
"incremental": false,
"composite": false,
"target": "ES2022",
"experimentalDecorators": true,
"moduleDetection": "auto",
"module": "CommonJS",
"resolveJsonModule": true,
"declaration": true,
"declarationMap": false,
"sourceMap": false,
"downlevelIteration": false,
"inlineSourceMap": false,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
}

View File

@ -1,12 +0,0 @@
import { defineConfig } from 'tsup'
export default defineConfig({
entry: ['src/index.ts'],
outDir: './dist',
format: ['cjs'],
noExternal: ['rage-rpc'],
experimentalDts: true,
splitting: false,
sourcemap: false,
clean: true,
})

View File

@ -1,7 +1,5 @@
import rpc from 'rage-rpc' import rpc from 'rage-rpc'
import Logger from './logger'
import type { import type {
RageFW_ClientEventCallback, RageFW_ClientEventCallback,
RageFW_ClientEvent, RageFW_ClientEvent,
@ -33,7 +31,4 @@ class Player {
export const fw = { export const fw = {
event: new Client(), event: new Client(),
player: new Player(), player: new Player(),
system: {
log: new Logger(),
},
} }

View File

@ -1,19 +0,0 @@
export default class Logger {
public error(message: unknown) {
mp.console.logError(
`[${new Date().toLocaleTimeString()}] [ERROR] ${message}`,
)
}
public warn(message: unknown) {
mp.console.logWarning(
`[${new Date().toLocaleTimeString()}] [WARN] ${message}`,
)
}
public info(message: unknown) {
mp.console.logInfo(
`[${new Date().toLocaleTimeString()}] [INFO] ${message}`,
)
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,5 @@
packages: packages:
- "server" - "server"
- "client" - "client"
- "cef"
- "shared" - "shared"
- "shared-types" - "shared-types"

View File

@ -2,6 +2,4 @@ declare module 'rage-fw-shared-types' {
export interface RageFW_ICustomServerEvent {} export interface RageFW_ICustomServerEvent {}
export interface RageFW_ICustomClientEvent {} export interface RageFW_ICustomClientEvent {}
export interface RageFW_ICustomCefEvent {}
} }