Add Prodigy event and export documentation views, enhance tests
- Created new Blade views for displaying Prodigy events and exports, including detailed references. - Implemented tests for Prodigy client and server event/export reference tools to ensure correct functionality. - Updated Pest test configuration for improved test case handling.
This commit is contained in:
78 files changed
+4223
-809
No files matched your search
@@ -0,0 +1,10 @@
|
||||
# prp-bridge Events
|
||||
|
||||
@foreach($eventsByCategory as $category => $events)
|
||||
## {{ $category }}
|
||||
|
||||
@foreach($events as $event)
|
||||
- **{{ $event['name'] }}** ({{ ucfirst($event['side']) }}) - {{ $event['description'] }}
|
||||
@endforeach
|
||||
|
||||
@endforeach
|
||||
@@ -0,0 +1,30 @@
|
||||
# prp-bridge Event: {{ $event['name'] }}
|
||||
|
||||
**Side:** {{ ucfirst($event['side']) }}
|
||||
|
||||
### Description
|
||||
{{ $event['description'] }}
|
||||
|
||||
### Parameters
|
||||
@if(count($event['parameters']) > 0)
|
||||
@foreach($event['parameters'] as $name => $description)
|
||||
- `{{ $name }}`: {{ $description }}
|
||||
@endforeach
|
||||
@else
|
||||
This event takes no parameters.
|
||||
@endif
|
||||
|
||||
### Code Examples
|
||||
|
||||
**Lua:**
|
||||
```lua
|
||||
{{ $event['lua_example'] }}
|
||||
```
|
||||
|
||||
**JavaScript:**
|
||||
```javascript
|
||||
{{ $event['js_example'] }}
|
||||
```
|
||||
|
||||
### Documentation
|
||||
[View at docs.prodigyrp.net](https://docs.prodigyrp.net/prp-bridge/events.html)
|
||||
@@ -0,0 +1,10 @@
|
||||
# prp-bridge Exports
|
||||
|
||||
@foreach($exportsByCategory as $category => $exports)
|
||||
## {{ $category }}
|
||||
|
||||
@foreach($exports as $export)
|
||||
- **{{ $export['name'] }}** ({{ ucfirst($export['side']) }}) - {{ $export['description'] }}
|
||||
@endforeach
|
||||
|
||||
@endforeach
|
||||
@@ -0,0 +1,28 @@
|
||||
# prp-bridge Export: {{ $export['name'] }}
|
||||
|
||||
**Category:** {{ $export['category'] }}
|
||||
**Side:** {{ ucfirst($export['side']) }}
|
||||
|
||||
### Description
|
||||
{{ $export['description'] }}
|
||||
|
||||
### Parameters
|
||||
@if(count($export['parameters']) > 0)
|
||||
@foreach($export['parameters'] as $param)
|
||||
- **{{ $param['name'] }}** ({{ $param['type'] }}): {{ $param['description'] }}
|
||||
@endforeach
|
||||
@else
|
||||
This export takes no parameters.
|
||||
@endif
|
||||
|
||||
### Returns
|
||||
**Type:** {{ $export['returns']['type'] }}
|
||||
{{ $export['returns']['description'] }}
|
||||
|
||||
### Usage Example
|
||||
```lua
|
||||
{{ $export['lua_example'] }}
|
||||
```
|
||||
|
||||
### Documentation
|
||||
[View at docs.prodigyrp.net](https://docs.prodigyrp.net/prp-bridge/exports.html)
|
||||
Reference in new issue
Block a user