first commit
This commit is contained in:
4
vendor/spatie/ignition/resources/compiled/.gitignore
vendored
Normal file
4
vendor/spatie/ignition/resources/compiled/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
*
|
||||
!.gitignore
|
||||
!ignition.css
|
||||
!ignition.js
|
3
vendor/spatie/ignition/resources/compiled/ignition.css
vendored
Normal file
3
vendor/spatie/ignition/resources/compiled/ignition.css
vendored
Normal file
File diff suppressed because one or more lines are too long
6
vendor/spatie/ignition/resources/compiled/ignition.js
vendored
Normal file
6
vendor/spatie/ignition/resources/compiled/ignition.js
vendored
Normal file
File diff suppressed because one or more lines are too long
36
vendor/spatie/ignition/resources/views/aiPrompt.php
vendored
Normal file
36
vendor/spatie/ignition/resources/views/aiPrompt.php
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
<?php /** @var \Spatie\Ignition\Solutions\OpenAi\OpenAiPromptViewModel $viewModel */ ?>
|
||||
|
||||
You are a very skilled PHP programmer.
|
||||
|
||||
<?php if($viewModel->applicationType()) { ?>
|
||||
You are working on a <?php echo $viewModel->applicationType() ?> application.
|
||||
<?php } ?>
|
||||
|
||||
Use the following context to find a possible fix for the exception message at the end. Limit your answer to 4 or 5 sentences. Also include a few links to documentation that might help.
|
||||
|
||||
Use this format in your answer, make sure links are json:
|
||||
|
||||
FIX
|
||||
insert the possible fix here
|
||||
ENDFIX
|
||||
LINKS
|
||||
{"title": "Title link 1", "url": "URL link 1"}
|
||||
{"title": "Title link 2", "url": "URL link 2"}
|
||||
ENDLINKS
|
||||
---
|
||||
|
||||
Here comes the context and the exception message:
|
||||
|
||||
Line: <?php echo $viewModel->line() ?>
|
||||
|
||||
File:
|
||||
<?php echo $viewModel->file() ?>
|
||||
|
||||
Snippet including line numbers:
|
||||
<?php echo $viewModel->snippet() ?>
|
||||
|
||||
Exception class:
|
||||
<?php echo $viewModel->exceptionClass() ?>
|
||||
|
||||
Exception message:
|
||||
<?php echo $viewModel->exceptionMessage() ?>
|
75
vendor/spatie/ignition/resources/views/errorPage.php
vendored
Normal file
75
vendor/spatie/ignition/resources/views/errorPage.php
vendored
Normal file
@ -0,0 +1,75 @@
|
||||
<!DOCTYPE html>
|
||||
<?php /** @var \Spatie\Ignition\ErrorPage\ErrorPageViewModel $viewModel */ ?>
|
||||
<html lang="en" class="<?= $viewModel->theme() ?>">
|
||||
<!--
|
||||
<?= $viewModel->throwableString() ?>
|
||||
-->
|
||||
<head>
|
||||
<!-- Hide dumps asap -->
|
||||
<style>
|
||||
pre.sf-dump {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
|
||||
<title><?= $viewModel->title() ?></title>
|
||||
|
||||
<script>
|
||||
// Livewire modals remove CSS classes on the `html` element so we re-add
|
||||
// the theme class again using JavaScript.
|
||||
document.documentElement.classList.add('<?= $viewModel->theme() ?>');
|
||||
|
||||
// Process `auto` theme as soon as possible to avoid flashing of white background.
|
||||
if (document.documentElement.classList.contains('auto') && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||||
document.documentElement.classList.add('dark');
|
||||
}
|
||||
</script>
|
||||
|
||||
<style><?= $viewModel->getAssetContents('ignition.css') ?></style>
|
||||
|
||||
<?= $viewModel->customHtmlHead() ?>
|
||||
|
||||
</head>
|
||||
<body class="scrollbar-lg antialiased bg-center bg-dots-darker dark:bg-dots-lighter">
|
||||
|
||||
<script>
|
||||
window.data = <?=
|
||||
$viewModel->jsonEncode([
|
||||
'report' => $viewModel->report(),
|
||||
'shareableReport' => $viewModel->shareableReport(),
|
||||
'config' => $viewModel->config(),
|
||||
'solutions' => $viewModel->solutions(),
|
||||
'updateConfigEndpoint' => $viewModel->updateConfigEndpoint(),
|
||||
])
|
||||
?>;
|
||||
</script>
|
||||
|
||||
<!-- The noscript representation is for HTTP client like Postman that have JS disabled. -->
|
||||
<noscript>
|
||||
<pre><?= $viewModel->throwableString() ?></pre>
|
||||
</noscript>
|
||||
|
||||
<div id="app"></div>
|
||||
|
||||
<script>
|
||||
<!--
|
||||
<?= $viewModel->getAssetContents('ignition.js') ?>
|
||||
-->
|
||||
</script>
|
||||
|
||||
<script>
|
||||
window.ignite(window.data);
|
||||
</script>
|
||||
|
||||
<?= $viewModel->customHtmlBody() ?>
|
||||
|
||||
<!--
|
||||
<?= $viewModel->throwableString() ?>
|
||||
-->
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user