IMPR: Idea annotator

This commit is contained in:
Tony Air 2022-05-10 12:36:40 +02:00
parent 7ddaafe26c
commit 2796ec97aa
7 changed files with 36 additions and 17 deletions

View File

@ -19,3 +19,6 @@ DNADesign\ElementalList\Model\ElementList:
DNADesign\ElementalUserForms\Model\ElementForm:
block_default_userforms_css: true
block_default_userforms_js: true
SilverLeague\IDEAnnotator\DataObjectAnnotator:
enabled: true

View File

@ -12,26 +12,13 @@
}
#Header {
.element {
margin-top: 0;
}
.nav-container {
align-items: center;
display: flex;
justify-content: flex-end;
position: static;
}
.logo {
img {
width: 6.5vw;
@media (orientation: portrait) {
width: 20vw;
}
}
}
.tagline {
display: inline-block;
font-size: 1.2rem;
margin-left: 2em;
}
}

View File

@ -4,6 +4,10 @@ namespace App\Pages\Controllers;
use PageController;
/**
* Class \App\Pages\Controllers\HomePageController
*
*/
class HomePageController extends PageController
{
}

View File

@ -5,6 +5,10 @@ namespace App\Pages;
use App\Pages\Controllers\HomePageController;
use Page;
/**
* Class \App\Pages\HomePage
*
*/
class HomePage extends Page
{
private static $icon_class = 'font-icon-p-home';

View File

@ -9,6 +9,19 @@ use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\FontAwesome\FontAwesomeField;
use TractorCow\Fluent\Extension\FluentSiteTreeExtension;
/**
* Class \Page
*
* @property boolean $InheritSideBar
* @property string $BlockIcon
* @property int $SideBarID
* @property int $ElementalAreaID
* @method \SilverStripe\Widgets\Model\WidgetArea SideBar()
* @method \DNADesign\Elemental\Models\ElementalArea ElementalArea()
* @mixin \DNADesign\Elemental\Extensions\ElementalPageExtension
* @mixin \A2nt\CMSNiceties\Widgets\WidgetPageExtension
* @mixin \Sheadawson\Linkable\Extensions\LinkableDataExtension
*/
class Page extends SiteTree
{
protected $_cached = [];

View File

@ -25,6 +25,13 @@ use SilverStripe\ORM\FieldType\DBDatetime;
use SilverStripe\ORM\PaginatedList;
use SilverStripe\View\ArrayData;
/**
* Class \PageController
*
* @property \Page dataRecord
* @method \Page data()
* @mixin \Page
*/
class PageController extends ContentController
{
private static $allowed_actions = [

View File

@ -52,7 +52,8 @@
"require-dev": {
"phpunit/phpunit": "*",
"lekoala/silverstripe-debugbar": "dev-master",
"sunnysideup/easy-coding-standards": "dev-master"
"sunnysideup/easy-coding-standards": "dev-master",
"silverleague/ideannotator": "dev-master"
},
"repositories": [
{