Skip to content

Commit

Permalink
Merge pull request #5 from alnutile/prism
Browse files Browse the repository at this point in the history
Add log viewer
  • Loading branch information
alnutile authored Oct 8, 2024
2 parents 55cc228 + d2851b2 commit 2d290c1
Show file tree
Hide file tree
Showing 11 changed files with 192 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Models/Automation.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function run(string $payload): void

try {
/** @phpstan-ignore-next-line */
if($automationRun?->id) {
if ($automationRun?->id) {
$automationRun->update([
'status' => 'completed',
'completed_at' => now(),
Expand Down
6 changes: 5 additions & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

namespace App\Providers;

use App\Models\User;
use Illuminate\Support\ServiceProvider;
use Opcodes\LogViewer\Facades\LogViewer;

class AppServiceProvider extends ServiceProvider
{
Expand All @@ -19,6 +21,8 @@ public function register(): void
*/
public function boot(): void
{
//
LogViewer::auth(function ($request) {
return User::first()?->id === $request->user()?->id;
});
}
}
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"laravel/tinker": "^2.9",
"league/commonmark": "^2.5",
"league/html-to-markdown": "^5.1",
"opcodesio/log-viewer": "^3.11",
"openai-php/laravel": "^0.10.1",
"spatie/browsershot": "^4.3",
"spatie/laravel-data": "^4.8",
Expand Down
143 changes: 142 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions public/vendor/log-viewer/app.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions public/vendor/log-viewer/app.js

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions public/vendor/log-viewer/app.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/

/*!
* pinia v2.2.2
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/

/*! #__NO_SIDE_EFFECTS__ */

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */

/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */

/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/

/**
* @vue/shared v3.4.38
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
Binary file added public/vendor/log-viewer/img/log-viewer-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/vendor/log-viewer/img/log-viewer-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/vendor/log-viewer/img/log-viewer-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions public/vendor/log-viewer/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"/app.js": "/app.js?id=6c51578cafcbf2f5e90fbf568a61ab8f",
"/app.css": "/app.css?id=5593a0331dd40729ff41e32a6035d872",
"/img/log-viewer-128.png": "/img/log-viewer-128.png?id=d576c6d2e16074d3f064e60fe4f35166",
"/img/log-viewer-32.png": "/img/log-viewer-32.png?id=f8ec67d10f996aa8baf00df3b61eea6d",
"/img/log-viewer-64.png": "/img/log-viewer-64.png?id=8902d596fc883ca9eb8105bb683568c6"
}

0 comments on commit 2d290c1

Please sign in to comment.