Skip to content

Commit

Permalink
added page editor
Browse files Browse the repository at this point in the history
  • Loading branch information
dipaksarkar committed May 10, 2024
1 parent 0c6d6ea commit ed3e49e
Show file tree
Hide file tree
Showing 158 changed files with 30,354 additions and 552 deletions.
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"simplesoftwareio/simple-qrcode": "^4.2",
"spatie/laravel-sluggable": "^3.4",
"stevebauman/location": "^7.2.0",
"twilio/sdk": "^7.16"
"twilio/sdk": "^7.16",
"vedmant/laravel-shortcodes": "^1.1"
},
"require-dev": {
"mockery/mockery": "^1.0",
Expand Down Expand Up @@ -77,7 +78,8 @@
"Coderstm\\Providers\\CoderstmServiceProvider",
"Coderstm\\Providers\\CoderstmPermissionsServiceProvider",
"Coderstm\\Providers\\CoderstmEventServiceProvider",
"Coderstm\\Providers\\FirebaseMessagingServiceProvider"
"Coderstm\\Providers\\FirebaseMessagingServiceProvider",
"Coderstm\\Providers\\ShortcodeServiceProvider"
]
}
},
Expand Down
4 changes: 2 additions & 2 deletions database/migrations/2023_04_22_110537_create_blogs_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public function up()
$table->string('slug')->unique();
$table->longText('description');
$table->string('meta_title')->nullable();
$table->text('meta_keywords')->nullable();
$table->text('meta_description')->nullable();
$table->string('meta_keywords')->nullable();
$table->string('meta_description')->nullable();
$table->boolean('is_active')->nullable()->default(true);
$table->timestamps();
$table->softDeletes();
Expand Down
51 changes: 51 additions & 0 deletions database/migrations/2024_04_23_205120_create_pages_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?php

use Coderstm\Traits\Helpers;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
use Helpers;

/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('pages', function (Blueprint $table) {
$table->id();
$table->string('title');
$table->string('slug')->unique();
$table->{$this->jsonable()}('data')->nullable();
$table->longText('body')->nullable();
$table->longText('styles')->nullable();
$table->string('meta_title')->nullable();
$table->string('meta_keywords')->nullable();
$table->string('meta_description')->nullable();
$table->boolean('is_active')->nullable()->default(true);
$table->string('template')->nullable();
$table->timestamps();
$table->softDeletes();
});

$this->setAutoIncrement('pages');

Schema::create('page_templates', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->{$this->jsonable()}('data')->nullable();
$table->text('thumbnail')->nullable();
$table->timestamps();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('pages');
}
};
10 changes: 10 additions & 0 deletions public/css/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.fc-toolbar-chunk button {
text-transform: capitalize;
padding: .375rem .75rem;
}

.fc-toolbar-chunk .fc-prev-button,
.fc-toolbar-chunk .fc-next-button {
background: var(--primary);
color: white
}
7 changes: 7 additions & 0 deletions public/js/bootstrap.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit ed3e49e

Please sign in to comment.