-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
update assets
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
return [ | ||
/** | ||
* set the default domain. | ||
*/ | ||
'domain' => null, | ||
|
||
/** | ||
* set the default path for the blog homepage. | ||
*/ | ||
'prefix' => 'forms', | ||
|
||
/** | ||
* the middleware you want to apply on all the blog routes | ||
* for example if you want to make your blog for users only, add the middleware 'auth'. | ||
*/ | ||
'middleware' => ['web'], | ||
|
||
/** | ||
* you can overwrite any model and use your own | ||
* you can also configure the model per panel in your panel provider using: | ||
* ->skyModels([ ... ]) | ||
*/ | ||
'models' => [ | ||
'Category' => \LaraZeus\Bolt\Models\Category::class, | ||
'Collection' => \LaraZeus\Bolt\Models\Collection::class, | ||
'Field' => \LaraZeus\Bolt\Models\Field::class, | ||
'FieldResponse' => \LaraZeus\Bolt\Models\FieldResponse::class, | ||
'Form' => \LaraZeus\Bolt\Models\Form::class, | ||
'FormsStatus' => \LaraZeus\Bolt\Models\FormsStatus::class, | ||
'Response' => \LaraZeus\Bolt\Models\Response::class, | ||
'Section' => \LaraZeus\Bolt\Models\Section::class, | ||
], | ||
|
||
'defaultMailable' => \LaraZeus\Bolt\Mail\FormSubmission::class, | ||
|
||
'uploadDisk' => 'public', | ||
|
||
'uploadDirectory' => 'forms', | ||
]; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?php | ||
|
||
return [ | ||
/** | ||
* set the default path for the blog homepage. | ||
*/ | ||
'prefix' => 'blog', | ||
|
||
/** | ||
* the middleware you want to apply on all the blog routes | ||
* for example if you want to make your blog for users only, add the middleware 'auth'. | ||
*/ | ||
'middleware' => ['web'], | ||
|
||
/** | ||
* URI prefix for each content type | ||
*/ | ||
'uri' => [ | ||
'post' => 'post', | ||
'page' => 'page', | ||
'library' => 'library', | ||
'faq' => 'faq', | ||
], | ||
|
||
/** | ||
* you can overwrite any model and use your own | ||
* you can also configure the model per panel in your panel provider using: | ||
* ->skyModels([ ... ]) | ||
*/ | ||
'models' => [ | ||
'Faq' => \LaraZeus\Sky\Models\Faq::class, | ||
'Post' => \LaraZeus\Sky\Models\Post::class, | ||
'PostStatus' => \LaraZeus\Sky\Models\PostStatus::class, | ||
'Tag' => \LaraZeus\Sky\Models\Tag::class, | ||
'Library' => \LaraZeus\Sky\Models\Library::class, | ||
], | ||
|
||
'parsers' => [ | ||
\LaraZeus\Sky\Classes\BoltParser::class, | ||
], | ||
|
||
'recentPostsLimit' => 5, | ||
|
||
'searchResultHighlightCssClass' => 'highlight', | ||
|
||
'skipHighlightingTerms' => ['iframe'], | ||
|
||
'defaultFeaturedImage' => null, | ||
|
||
/** | ||
* the default editor for pages and posts, Available: | ||
* \LaraZeus\Sky\Editors\TipTapEditor::class, | ||
* \LaraZeus\Sky\Editors\TinyEditor::class, | ||
* \LaraZeus\Sky\Editors\MarkdownEditor::class, | ||
* \LaraZeus\Sky\Editors\RichEditor::class, | ||
*/ | ||
'editor' => \LaraZeus\Sky\Editors\RichEditor::class, | ||
]; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::table('sections', function (Blueprint $table) { | ||
$table->boolean('compact')->default(0); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::table('sections', function (Blueprint $table) { | ||
$table->dropColumn('compact'); | ||
}); | ||
} | ||
}; |
This file was deleted.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.preview-table { | ||
background: white; | ||
color: black; | ||
width: 100%; | ||
border-collapse: collapse; | ||
border-spacing: 0; | ||
} | ||
|
||
.preview-table td, | ||
.preview-table th { | ||
border-color: #ededed; | ||
border-style: solid; | ||
border-width: 1px; | ||
font-size: 13px; | ||
line-height: 2; | ||
overflow: hidden; | ||
padding-left: 6px; | ||
word-break: normal; | ||
} | ||
|
||
.preview-table th { | ||
font-weight: normal; | ||
} | ||
|
||
.preview-table-wrapper { | ||
max-height: min(500px, 80vh); | ||
overflow-y: auto; | ||
} | ||
|
||
|
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
function onElementRemoved(element, callback) { | ||
new MutationObserver(function (mutations) { | ||
if (!document.body.contains(element)) { | ||
callback(); | ||
this.disconnect(); | ||
} | ||
}).observe(element.parentElement, { childList: true }); | ||
} | ||
|
||
function triggerInputEvent(statePath, value) { | ||
let input = document.getElementById(statePath); | ||
input.value = value; | ||
input.dispatchEvent(new Event('input', { bubbles: true })); | ||
} | ||
|
||
function printHTML(html, statePath, uniqueActionId) { | ||
let iframe = document.createElement("iframe"); | ||
|
||
let random = Math.floor(Math.random() * 99999); | ||
|
||
iframe.id = `print-${random}`; | ||
|
||
iframe.srcdoc = html; | ||
|
||
document.body.append(iframe); | ||
|
||
onElementRemoved(iframe, () => triggerInputEvent(statePath, `afterprint-${uniqueActionId}`)); | ||
|
||
iframe.contentWindow.onafterprint = () => document.getElementById(iframe.id).remove(); | ||
|
||
iframe.contentWindow.onload = () => iframe.contentWindow.print(); | ||
} | ||
|
||
window.triggerInputEvent = triggerInputEvent; | ||
|
||
window.printHTML = printHTML; |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.