Skip to content

Commit

Permalink
Merge pull request #9 from lara-zeus/updates
Browse files Browse the repository at this point in the history
update assets
  • Loading branch information
atmonshi authored Oct 15, 2023
2 parents 02e33e9 + 7389cde commit 3a85ae0
Show file tree
Hide file tree
Showing 25 changed files with 682 additions and 396 deletions.
6 changes: 2 additions & 4 deletions app/Providers/Filament/AdminPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ public function panel(Panel $panel): Panel
->plugins([
WindPlugin::make()
->windPrefix('contact-us'),
SkyPlugin::make()
->skyPrefix('blog'),
BoltPlugin::make()
->boltPrefix('forms'),
SkyPlugin::make(),
BoltPlugin::make(),
RainPlugin::make()
->defaultLayout('new-page')
->rainPrefix('/home'),
Expand Down
12 changes: 9 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"bezhansalleh/filament-shield": "^3.0",
"guzzlehttp/guzzle": "^7.2",
"lara-zeus/artemis": "^1.0",
"lara-zeus/bolt": "^2.0",
"lara-zeus/bolt": "^2.1",
"lara-zeus/rain": "^2.1",
"lara-zeus/sky": "^3.1",
"lara-zeus/sky": "^3.2",
"lara-zeus/wind": "^3.1",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.2"
Expand Down Expand Up @@ -80,5 +80,11 @@
}
},
"minimum-stability": "dev",
"prefer-stable": true
"prefer-stable": true,
"repositories": [
{
"type": "github",
"url": "https://github.com/lara-zeus/filament-export"
}
]
}
805 changes: 445 additions & 360 deletions composer.lock

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions config/zeus-bolt.php
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',
];
58 changes: 58 additions & 0 deletions config/zeus-sky.php
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,
];
32 changes: 32 additions & 0 deletions database/migrations/2023_10_15_212052_add_compact_to_section.php
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');
});
}
};
1 change: 0 additions & 1 deletion public/build/assets/app-896248c1.css

This file was deleted.

1 change: 1 addition & 0 deletions public/build/assets/app-e70cda17.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/build/assets/theme-2f15ec37.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion public/build/assets/theme-98c32cdb.css

This file was deleted.

4 changes: 2 additions & 2 deletions public/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"resources/css/app.css": {
"file": "assets/app-896248c1.css",
"file": "assets/app-e70cda17.css",
"isEntry": true,
"src": "resources/css/app.css"
},
"resources/css/filament/admin/theme.css": {
"file": "assets/theme-98c32cdb.css",
"file": "assets/theme-2f15ec37.css",
"isEntry": true,
"src": "resources/css/filament/admin/theme.css"
},
Expand Down
30 changes: 30 additions & 0 deletions public/css/filament-export/filament-export-0.3.0.css
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;
}


2 changes: 1 addition & 1 deletion public/css/filament/filament/app.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions public/css/filament/forms/forms.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/css/lara-zeus/filament-lara-zeus.css

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions public/js/filament-export/filament-export-0.3.0.js
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;
2 changes: 1 addition & 1 deletion public/js/filament/forms/components/date-time-picker.js

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions public/js/filament/forms/components/file-upload.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions public/js/filament/forms/components/markdown-editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/filament/notifications/notifications.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/filament/support/async-alpine.js

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

6 changes: 3 additions & 3 deletions public/js/filament/support/support.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/vendor/zeus/filament-tail.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/vendor/zeus/frontend.css

Large diffs are not rendered by default.

Loading

0 comments on commit 3a85ae0

Please sign in to comment.