Skip to content

Commit

Permalink
Merge pull request #4 from spiral/bump_keeper
Browse files Browse the repository at this point in the history
Bump keeper
  • Loading branch information
vvval authored Dec 21, 2020
2 parents 4e06e8a + 4f0498b commit d705d7e
Show file tree
Hide file tree
Showing 15 changed files with 34 additions and 26 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bash:
docker-compose exec php bash

up:
docker-compose -f docker-compose.yml -f docker-compose-local.yml up -d
5 changes: 4 additions & 1 deletion app/src/Bootloader/AdminBootloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace App\Bootloader;

use App\Controller\Keeper\DashboardController;
use Spiral\DataGrid\Interceptor\GridInterceptor;
use Spiral\Domain\CycleInterceptor;
use Spiral\Domain\FilterInterceptor;
Expand All @@ -21,7 +22,9 @@

class AdminBootloader extends KeeperBootloader
{
protected const LOAD = [
protected const DEFAULT_CONTROLLER = DashboardController::class;
protected const PREFIX = '/keeper';
protected const LOAD = [
Keeper\UIBootloader::class,
Keeper\SitemapBootloader::class,
Keeper\AnnotatedBootloader::class,
Expand Down
6 changes: 3 additions & 3 deletions app/src/Controller/Keeper/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
use Spiral\Prototype\Traits\PrototypeTrait;

/**
* @Keeper\Controller(name="dashboard", prefix="")
* @Keeper\Controller(name="dashboard", prefix="", defaultAction="index")
*/
class DashboardController
{
use PrototypeTrait;

/**
* @Keeper\Action(route="/", methods="GET")
* @Keeper\Sitemap\Link(title="Dashboard", parent="root", options={"icon": "home"})
* @Keeper\Action(route="", methods="GET")
* @Keeper\Sitemap\Link(title="Dashboard", parent="root", options={"icon": "home"}, position=1.0)
*/
public function index()
{
Expand Down
2 changes: 1 addition & 1 deletion app/src/Controller/Keeper/ProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
use Spiral\Translator\Traits\TranslatorTrait;

/**
* @Keeper\Controller(name="profile", prefix="/")
* @Keeper\Controller(name="profile")
*/
class ProfileController implements SingletonInterface
{
Expand Down
2 changes: 1 addition & 1 deletion app/src/Controller/Keeper/ShowcaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

/**
* @Keeper\Controller(name="showcase", prefix="/showcase")
* @Keeper\Sitemap\Group(name="showcase", title="Showcase", options={"icon": "cog"})
* @Keeper\Sitemap\Group(name="showcase", title="Showcase", options={"icon": "cog"}, position=3.0)
*/
class ShowcaseController
{
Expand Down
2 changes: 1 addition & 1 deletion app/src/Controller/Keeper/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

/**
* @Keeper\Controller(name="users", prefix="/users")
* @Keeper\Sitemap\Group(name="users", title="User Management", options={"icon": "users"})
* @Keeper\Sitemap\Group(name="users", title="User Management", options={"icon": "users"}, position=2.0)
*/
class UserController
{
Expand Down
2 changes: 1 addition & 1 deletion app/views/keeper/layout/common.dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<define:heading>
<div class="sf-heading">
<keeper:breadcrumps activeRoute="${activeRoute}"/>
<keeper:breadcrumbs activeRoute="${activeRoute}"/>
<h1>
<block:title>{{$_ln_->getOption('title')}}</block:title>
</h1>
Expand Down
2 changes: 1 addition & 1 deletion app/views/keeper/showcase/autocomplete.dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</ui:action>

<ui:action>
<action:button icon="file" kind="primary" href="https://github.com/spiral/app-keeper/blob/master/app/views/showcase/intro.dark.php"
<action:button icon="file" kind="primary" href="https://github.com/spiral/app-keeper/blob/master/app/views/keeper/showcase/intro.dark.php"
target="_blank" label="Source Code"/>
</ui:action>

Expand Down
2 changes: 1 addition & 1 deletion app/views/keeper/showcase/datagrids.dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</ui:action>

<ui:action>
<action:button icon="file" kind="primary" href="https://github.com/spiral/app-keeper/blob/master/app/views/showcase/datagrids.dark.php"
<action:button icon="file" kind="primary" href="https://github.com/spiral/app-keeper/blob/master/app/views/keeper/showcase/datagrids.dark.php"
target="_blank" label="Source Code"/>
</ui:action>

Expand Down
2 changes: 1 addition & 1 deletion app/views/keeper/showcase/datepicker.dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</ui:action>

<ui:action>
<action:button icon="file" kind="primary" href="https://github.com/spiral/app-keeper/blob/master/app/views/showcase/datepicker.dark.php"
<action:button icon="file" kind="primary" href="https://github.com/spiral/app-keeper/blob/master/app/views/keeper/showcase/datepicker.dark.php"
target="_blank" label="Source Code"/>
</ui:action>

Expand Down
2 changes: 1 addition & 1 deletion app/views/keeper/showcase/forms.dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</ui:action>

<ui:action>
<action:button icon="file" kind="primary" href="https://github.com/spiral/app-keeper/blob/master/app/views/showcase/forms.dark.php"
<action:button icon="file" kind="primary" href="https://github.com/spiral/app-keeper/blob/master/app/views/keeper/showcase/forms.dark.php"
target="_blank" label="Source Code"/>
</ui:action>

Expand Down
2 changes: 1 addition & 1 deletion app/views/keeper/showcase/intro.dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</ui:action>

<ui:action>
<action:button icon="file" kind="primary" href="https://github.com/spiral/app-keeper/blob/master/app/views/showcase/intro.dark.php"
<action:button icon="file" kind="primary" href="https://github.com/spiral/app-keeper/blob/master/app/views/keeper/showcase/intro.dark.php"
target="_blank" label="Source Code"/>
</ui:action>

Expand Down
2 changes: 1 addition & 1 deletion app/views/keeper/showcase/qrcode.dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</ui:action>

<ui:action>
<action:button icon="file" kind="primary" href="https://github.com/spiral/app-keeper/blob/master/app/views/showcase/qrcode.dark.php"
<action:button icon="file" kind="primary" href="https://github.com/spiral/app-keeper/blob/master/app/views/keeper/showcase/qrcode.dark.php"
target="_blank" label="Source Code"/>
</ui:action>

Expand Down
2 changes: 1 addition & 1 deletion app/views/keeper/showcase/tinymce.dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</ui:action>

<ui:action>
<action:button icon="file" kind="primary" href="https://github.com/spiral/app-keeper/blob/master/app/views/showcase/tinymce.dark.php"
<action:button icon="file" kind="primary" href="https://github.com/spiral/app-keeper/blob/master/app/views/keeper/showcase/tinymce.dark.php"
target="_blank" label="Source Code"/>
</ui:action>

Expand Down
22 changes: 11 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@
],
"require": {
"php": ">=7.2",
"cycle/annotated": "^2.0",
"cycle/migrations": "^1.0",
"cycle/orm": "^1.0",
"cycle/proxy-factory": "^1.0",
"fzaninotto/faker": "^1.9",
"spiral/database": "^2.3",
"spiral/dotenv-bridge": "^1.0",
"spiral/framework": "^2.7",
"spiral/helpers": "^1.0",
"spiral/jobs": "^2.0",
"spiral/roadrunner": "^1.4",
"spiral/database": "^2.3",
"spiral/keeper": "^0.7.2",
"spiral/migrations": "^2.0",
"spiral/monolog-bridge": "^1.0",
"spiral/dotenv-bridge": "^1.0",
"spiral/nyholm-bridge": "^1.0",
"cycle/orm": "^1.0",
"cycle/proxy-factory": "^1.0",
"cycle/annotated": "^2.0",
"cycle/migrations": "^1.0",
"spiral/toolkit": "^v1.1",
"spiral/helpers": "^1.0",
"spiral/keeper": "^0.5a",
"fzaninotto/faker": "^1.9"
"spiral/roadrunner": "^1.4",
"spiral/toolkit": "^v1.1"
},
"require-dev": {
"roave/security-advisories": "dev-master",
Expand Down

0 comments on commit d705d7e

Please sign in to comment.