Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/body lenght #1

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Assets/js/components/PageTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@
<template slot-scope="scope">
<el-button-group>
<edit-button :to="{name: 'admin.page.page.edit', params: {pageId: scope.row.id}}"></edit-button>

<a
class="el-button el-button--default el-button--mini"
:href="'/backend/bocian/universal-blocks/' + scope.row.id + encodeURI('/Modules\\Page\\Entities\\Page')"
title="Bloky"
>
<i class="fa fa-file-text-o"></i>
</a>

<delete-button :scope="scope" :rows="data"></delete-button>
</el-button-group>
</template>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('page__page_translations', function (Blueprint $table) {
$table->mediumText('body')->nullable()->change();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
// backwards compatible change, no need for a rollback

}
};
22 changes: 11 additions & 11 deletions Http/frontendRoutes.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

use Illuminate\Routing\Router;

/** @var Router $router */
$router->get('/', [
'uses' => 'PublicController@homepage',
'as' => 'homepage',
'middleware' => config('asgard.page.config.middleware'),
]);
$router->any('{uri}', [
'uses' => 'PublicController@uri',
'as' => 'page',
'middleware' => config('asgard.page.config.middleware'),
])->where('uri', '.*');
///** @var Router $router */
//$router->get('/', [
// 'uses' => 'PublicController@homepage',
// 'as' => 'homepage',
// 'middleware' => config('asgard.page.config.middleware'),
//]);
//$router->any('{uri}', [
// 'uses' => 'PublicController@uri',
// 'as' => 'page',
// 'middleware' => config('asgard.page.config.middleware'),
//])->where('uri', '.*');
6 changes: 2 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "idavoll/page-module",
"name": "jabirucms/page-module",
"type": "asgard-module",
"description": "Page module for AsgardCMS. Page management.",
"keywords": [
Expand All @@ -20,9 +20,7 @@
"source": "https://github.com/AsgardCms/Page"
},
"require": {
"php": "^7.1.3",
"composer/installers": "~1.0",
"idavoll/tag-module": "4.0.x-dev"
"composer/installers": "~1.0"
},
"require-dev": {
"phpunit/phpunit": "~7.0",
Expand Down
1 change: 1 addition & 0 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"keywords": [],
"version": "2.5.0",
"active": 1,
"order": 9999,
"priority": 9999,
"providers": [
"Modules\\Page\\Providers\\RouteServiceProvider",
Expand Down