IMPR: Namespaces refactoring

This commit is contained in:
Tony Air 2021-03-15 03:45:35 +07:00
parent 252097d9b6
commit 1dfaeb1e30
108 changed files with 222 additions and 212 deletions

View File

@ -14,7 +14,7 @@ SilverStripe\Core\Injector\Injector:
A2nt\SilverStripeMapboxField\MapboxField: A2nt\SilverStripeMapboxField\MapboxField:
map_style: 'mapbox://styles/mapbox/streets-v9' #'mapbox://styles/mapbox/light-v10' map_style: 'mapbox://styles/mapbox/streets-v9' #'mapbox://styles/mapbox/light-v10'
Site\Elements\MapElement: App\Elements\MapElement:
map_type: 'google-maps' map_type: 'google-maps'
BetterBrief\GoogleMapField: BetterBrief\GoogleMapField:

View File

@ -2,52 +2,46 @@
Name: webapp-base-extensions Name: webapp-base-extensions
--- ---
# Basic extensions # Basic extensions
SilverStripe\Admin\LeftAndMain: SilverStripe\Admin\LeftAndMain:
extensions: extensions:
- Site\Extensions\LeftAndMainExtension - App\Extensions\LeftAndMainExtension
SilverStripe\SiteConfig\SiteConfig: SilverStripe\SiteConfig\SiteConfig:
extensions: extensions:
- Site\Extensions\SocialExtension - App\Extensions\SocialExtension
- Site\Extensions\SiteConfigExtension - App\Extensions\SiteConfigExtension
- Site\Extensions\NotificationsExtension - App\Extensions\NotificationsExtension
SilverStripe\CMS\Model\SiteTree: SilverStripe\CMS\Model\SiteTree:
extensions: extensions:
- Site\Extensions\SiteTreeExtension - App\Extensions\SiteTreeExtension
Sheadawson\Linkable\Models\EmbeddedObject: Sheadawson\Linkable\Models\EmbeddedObject:
extensions: extensions:
- Site\Extensions\EmbeddedObjectExtension - App\Extensions\EmbeddedObjectExtension
SilverStripe\Assets: SilverStripe\Assets:
extensions: extensions:
- Site\Extensions\ImageExtension - App\Extensions\ImageExtension
Dynamic\FlexSlider\Model\SlideImage: Dynamic\FlexSlider\Model\SlideImage:
extensions: extensions:
- Site\Extensions\SlideImageExtension - App\Extensions\SlideImageExtension
SilverStripe\Core\Injector\Injector: SilverStripe\Core\Injector\Injector:
#SilverStripe\UserForms\Model\UserDefinedForm: #SilverStripe\UserForms\Model\UserDefinedForm:
# class: Site\Extensions\UserDefinedForm_HiddenClass # class: App\Extensions\UserDefinedForm_HiddenClass
Sheadawson\Linkable\Forms\EmbeddedObjectField: Sheadawson\Linkable\Forms\EmbeddedObjectField:
class: Site\Extensions\EmbedObjectField class: App\Extensions\EmbedObjectField
SilverStripe\Forms\CompositeField: SilverStripe\Forms\CompositeField:
class: Site\Extensions\CompositeFieldExtension class: App\Extensions\CompositeFieldExtension
# User Forms module
SilverStripe\UserForms\Model\UserDefinedForm:
show_in_sitetree: false
can_be_root: false
extensions:
- Site\Extensions\UserDefinedFormExtension
SilverStripe\UserForms\Form\UserForm: SilverStripe\UserForms\Form\UserForm:
extensions: extensions:
- Site\Extensions\PlaceholderFormExtension - App\Extensions\PlaceholderFormExtension
DNADesign\ElementalUserForms\Model\ElementForm: Page:
searchable_objects:
- App\Models\TeamMember
extensions: extensions:
- Site\Extensions\UserDefinedFormExtension - DNADesign\Elemental\Extensions\ElementalPageExtension

View File

@ -17,22 +17,22 @@ SilverStripe\GraphQL\Controller:
SilverStripe\GraphQL\Auth\Handler: SilverStripe\GraphQL\Auth\Handler:
authenticators: authenticators:
- class: Site\GraphQL\APIKeyAuthenticator - class: App\GraphQL\APIKeyAuthenticator
priority: 30 priority: 30
SilverStripe\GraphQL\Manager.default: SilverStripe\GraphQL\Manager.default:
properties: properties:
Middlewares: Middlewares:
APIKeyMiddleware: Site\GraphQL\APIKeyMiddleware APIKeyMiddleware: App\GraphQL\APIKeyMiddleware
SilverStripe\GraphQL\Manager: SilverStripe\GraphQL\Manager:
schemas: schemas:
default: default:
types: types:
member: 'Site\GraphQL\MemberTypeCreator' member: 'App\GraphQL\MemberTypeCreator'
page: 'Site\GraphQL\PageTypeCreator' page: 'App\GraphQL\PageTypeCreator'
element: 'Site\GraphQL\ElementTypeCreator' element: 'App\GraphQL\ElementTypeCreator'
queries: queries:
readPages: 'Site\GraphQL\PaginatedReadPagesQueryCreator' readPages: 'App\GraphQL\PaginatedReadPagesQueryCreator'
readMembers: 'Site\GraphQL\ReadMembersQueryCreator' readMembers: 'App\GraphQL\ReadMembersQueryCreator'
paginatedReadMembers: 'Site\GraphQL\PaginatedReadMembersQueryCreator' paginatedReadMembers: 'App\GraphQL\PaginatedReadMembersQueryCreator'

View File

@ -4,9 +4,9 @@ After: 'framework/*, cms/*, security_baseline'
--- ---
SilverStripe\Core\Injector\Injector: SilverStripe\Core\Injector\Injector:
SilverStripe\Security\MemberAuthenticator\LostPasswordHandler: SilverStripe\Security\MemberAuthenticator\LostPasswordHandler:
class: Site\Extensions\LostPasswordHandlerExtension class: App\Extensions\LostPasswordHandlerExtension
SilverStripe\Security\MemberAuthenticator\MemberLoginForm: SilverStripe\Security\MemberAuthenticator\MemberLoginForm:
class: Site\Extensions\SiteMemberLoginForm class: App\Extensions\SiteMemberLoginForm
--- ---
Except: Except:
environment: dev environment: dev

View File

@ -29,14 +29,14 @@ Page:
extensions: extensions:
- DNADesign\Elemental\TopPage\SiteTreeExtension - DNADesign\Elemental\TopPage\SiteTreeExtension
- DNADesign\Elemental\Extensions\ElementalPageExtension - DNADesign\Elemental\Extensions\ElementalPageExtension
- Site\Extensions\PageFluentExtension - App\Extensions\PageFluentExtension
DNADesign\Elemental\Models\ElementalArea: DNADesign\Elemental\Models\ElementalArea:
extensions: extensions:
- DNADesign\Elemental\TopPage\FluentExtension - DNADesign\Elemental\TopPage\FluentExtension
- Site\Extensions\ElementalArea - App\Extensions\ElementalArea
DNADesign\Elemental\Models\BaseElement: DNADesign\Elemental\Models\BaseElement:
extensions: extensions:
- DNADesign\Elemental\TopPage\FluentExtension - DNADesign\Elemental\TopPage\FluentExtension
- Site\Extensions\ElementRows - App\Extensions\ElementRows

View File

@ -4,33 +4,44 @@ After:
- elemental - elemental
- elemental-list - elemental-list
- elementalvirtual - elementalvirtual
- webapp-base-extensions
--- ---
# User Forms module
DNADesign\ElementalUserForms\Model\ElementForm:
extensions:
- App\Elements\Extensions\UserDefinedFormExtension
SilverStripe\UserForms\Model\UserDefinedForm:
show_in_sitetree: false
can_be_root: false
extensions:
- App\Elements\Extensions\UserDefinedFormExtension
##################
Page: Page:
searchable_elements: searchable_elements:
- DNADesign\Elemental\Models\ElementContent - DNADesign\Elemental\Models\ElementContent
searchable_objects:
- Site\Models\TeamMember
extensions: extensions:
- DNADesign\Elemental\TopPage\SiteTreeExtension
- DNADesign\Elemental\Extensions\ElementalPageExtension - DNADesign\Elemental\Extensions\ElementalPageExtension
SilverStripe\CMS\Controllers\ContentController: SilverStripe\CMS\Controllers\ContentController:
extensions: extensions:
- DNADesign\Elemental\Extensions\ElementalContentControllerExtension - DNADesign\Elemental\Extensions\ElementalContentControllerExtension
- Site\Elements\ElementalContentControllerExtension - App\Elements\ElementalContentControllerExtension
url_handlers: url_handlers:
'element/$ID!': 'handleElement' 'element/$ID!': 'handleElement'
DNADesign\Elemental\Models\ElementalArea: DNADesign\Elemental\Models\ElementalArea:
extensions: extensions:
#- DNADesign\Elemental\TopPage\DataExtension #- DNADesign\Elemental\TopPage\DataExtension
- Site\Extensions\ElementalArea - App\Elements\Extensions\ElementalArea
DNADesign\Elemental\Models\BaseElement: DNADesign\Elemental\Models\BaseElement:
default_global_elements: true default_global_elements: true
extensions: extensions:
#- DNADesign\Elemental\TopPage\DataExtension #- DNADesign\Elemental\TopPage\DataExtension
- Site\Extensions\ElementRows - App\Elements\Extensions\ElementRows
SilverStripe\CMS\Model\SiteTree: SilverStripe\CMS\Model\SiteTree:
allowed_elements: allowed_elements:
@ -41,21 +52,21 @@ SilverStripe\CMS\Model\SiteTree:
- Dynamic\Elements\Blog\Elements\ElementBlogPosts - Dynamic\Elements\Blog\Elements\ElementBlogPosts
- Dynamic\Elements\Oembed\Elements\ElementOembed - Dynamic\Elements\Oembed\Elements\ElementOembed
- Dynamic\Elements\Elements\ElementTestimonials - Dynamic\Elements\Elements\ElementTestimonials
#- Site\Elements\TeamMembersElement #- App\Elements\TeamMembersElement
- Site\Elements\SliderElement - App\Elements\SliderElement
- Site\Elements\BlockElement - App\Elements\BlockElement
- Site\Elements\MapElement - App\Elements\MapElement
#- Site\Elements\AccordionElement #- App\Elements\AccordionElement
- DNADesign\ElementalVirtual\Model\ElementVirtual - DNADesign\ElementalVirtual\Model\ElementVirtual
- Site\Elements\AccordionElement - App\Elements\AccordionElement
- Site\Elements\CustomSnippetElement - App\Elements\CustomSnippetElement
- Site\Elements\InstagramElement - App\Elements\InstagramElement
DNADesign\ElementalList\Model\ElementList: DNADesign\ElementalList\Model\ElementList:
inline_editable: false inline_editable: false
default_global_elements: false default_global_elements: false
extensions: extensions:
- Site\Elements\ElementListExtension - App\Elements\ElementListExtension
allowed_elements: allowed_elements:
- DNADesign\ElementalList\Model\ElementList - DNADesign\ElementalList\Model\ElementList
- DNADesign\Elemental\Models\ElementContent - DNADesign\Elemental\Models\ElementContent
@ -64,18 +75,18 @@ DNADesign\ElementalList\Model\ElementList:
- Dynamic\Elements\Blog\Elements\ElementBlogPosts - Dynamic\Elements\Blog\Elements\ElementBlogPosts
- Dynamic\Elements\Oembed\Elements\ElementOembed - Dynamic\Elements\Oembed\Elements\ElementOembed
- Dynamic\Elements\Elements\ElementTestimonials - Dynamic\Elements\Elements\ElementTestimonials
#- Site\Elements\TeamMembersElement #- App\Elements\TeamMembersElement
- Site\Elements\SliderElement - App\Elements\SliderElement
- Site\Elements\BlockElement - App\Elements\BlockElement
- Site\Elements\MapElement - App\Elements\MapElement
- Site\Elements\AccordionElement - App\Elements\AccordionElement
- Site\Elements\CustomSnippetElement - App\Elements\CustomSnippetElement
- Site\Elements\InstagramElement - App\Elements\InstagramElement
styles: styles:
whiteframe: 'White Frame' whiteframe: 'White Frame'
noframe: 'No Frame' noframe: 'No Frame'
Site\Elements\AccordionElement: App\Elements\AccordionElement:
allowed_elements: allowed_elements:
- DNADesign\Elemental\Models\ElementContent - DNADesign\Elemental\Models\ElementContent
@ -83,7 +94,7 @@ DNADesign\Elemental\Models\ElementContent:
default_global_elements: false default_global_elements: false
inline_editable: false inline_editable: false
extensions: extensions:
- Site\Extensions\ElementContentWidget - App\Elements\Extensions\ElementContentWidget
frontend_searchable_fields: frontend_searchable_fields:
- 'Title:PartialMatch' - 'Title:PartialMatch'
- 'HTML:PartialMatch' - 'HTML:PartialMatch'
@ -91,4 +102,4 @@ DNADesign\Elemental\Models\ElementContent:
Dynamic\Elements\Image\Elements\ElementImage: Dynamic\Elements\Image\Elements\ElementImage:
inline_editable: false inline_editable: false
extensions: extensions:
- Site\Extensions\ElementImageWidget - App\Elements\Extensions\ElementImageWidget

View File

@ -4,19 +4,19 @@ Name: webapp-options-widgets
# Blog + Widgets module extensions # Blog + Widgets module extensions
Page: Page:
extensions: extensions:
- Site\Widgets\WidgetPageExtension - App\Widgets\WidgetPageExtension
SilverStripe\Blog\Model\Blog: SilverStripe\Blog\Model\Blog:
extensions: extensions:
- Site\Extensions\BlogExtension - App\Extensions\BlogExtension
SilverStripe\Blog\Model\BlogPost: SilverStripe\Blog\Model\BlogPost:
extensions: extensions:
- Site\Extensions\BlogPostExtension - App\Extensions\BlogPostExtension
SilverStripe\Widgets\Model\Widget: SilverStripe\Widgets\Model\Widget:
icon: '<i class="icon font-icon-p-document"></i>' icon: '<i class="icon font-icon-p-document"></i>'
extensions: extensions:
- Site\Widgets\WidgetExtension - App\Widgets\WidgetExtension
SilverStripe\Blog\Widgets\BlogArchiveWidget: SilverStripe\Blog\Widgets\BlogArchiveWidget:
icon: '<i class="icon font-icon-p-archive"></i>' icon: '<i class="icon font-icon-p-archive"></i>'
SilverStripe\Blog\Widgets\BlogCategoriesWidget: SilverStripe\Blog\Widgets\BlogCategoriesWidget:

View File

@ -3,20 +3,20 @@ Name: webapp-shop
--- ---
SilverStripe\Core\Injector\Injector: SilverStripe\Core\Injector\Injector:
SilverShop\Checkout\SinglePageCheckoutComponentConfig: SilverShop\Checkout\SinglePageCheckoutComponentConfig:
class: Site\Models\CheckoutNoDeliveryConfig class: App\Models\CheckoutNoDeliveryConfig
SilverShop\Extension\ShopConfigExtension: SilverShop\Extension\ShopConfigExtension:
base_currency: USD base_currency: USD
SilverShop\Model\Address: SilverShop\Model\Address:
extensions: extensions:
- Site\Extensions\AddressExtension - App\Extensions\AddressExtension
SilverShop\Cart\ShoppingCartController: SilverShop\Cart\ShoppingCartController:
extensions: extensions:
- Site\Extensions\ShoppingCartControllerExtension - App\Extensions\ShoppingCartControllerExtension
Site\Templates\DeferedRequirements: App\Templates\DeferedRequirements:
custom_requirements: custom_requirements:
SilverShop\Page\AccountPageController: SilverShop\Page\AccountPageController:
- SilverShop.Page.CheckoutPageController.js - SilverShop.Page.CheckoutPageController.js

View File

@ -1,7 +1,7 @@
--- ---
Name: webapp-templates-requirements Name: webapp-templates-requirements
--- ---
Site\Templates\DeferredRequirements: App\Templates\DeferredRequirements:
nofontawesome: false nofontawesome: false
version: false version: false
static_domain: false static_domain: false

View File

@ -9,11 +9,11 @@ SilverStripe\View\SSViewer:
- '$public' - '$public'
- '$default' - '$default'
Site\Elements\SliderElement: App\Elements\SliderElement:
slide_width: 2140 slide_width: 2140
slide_height: 700 slide_height: 700
# 2x container width to automatically resize images for 2K display # 2x container width to automatically resize images for 2K display
Site\Extensions\ElementRows: App\Elements\Extensions\ElementRows:
container_max_width: 2280 container_max_width: 2280
column_class: 'col-block col-md' column_class: 'col-block col-md'

View File

@ -3,7 +3,7 @@
# with all configuration variables presented # with all configuration variables presented
# Cuz WebPack compiling script use it to set configuration # Cuz WebPack compiling script use it to set configuration
Site\Templates\WebpackTemplateProvider: App\Templates\WebpackTemplateProvider:
APPDIR: './app' APPDIR: './app'
THEMESDIR: './themes' THEMESDIR: './themes'
HOSTNAME: 127.0.0.1 HOSTNAME: 127.0.0.1

View File

@ -1,10 +1,10 @@
<?php <?php
namespace Site\Controllers; namespace App\Controllers;
use DNADesign\Elemental\Controllers\ElementController; use DNADesign\Elemental\Controllers\ElementController;
use Site\Templates\DeferredRequirements; use App\Templates\DeferredRequirements;
class MapElementController extends ElementController class MapElementController extends ElementController
{ {

View File

@ -6,7 +6,7 @@
* Time: 11:54 PM * Time: 11:54 PM
*/ */
namespace Site\Elements; namespace App\Elements;
use DNADesign\ElementalList\Model\ElementList; use DNADesign\ElementalList\Model\ElementList;

View File

@ -6,7 +6,7 @@
* Time: 11:54 PM * Time: 11:54 PM
*/ */
namespace Site\Elements; namespace App\Elements;
use Sheadawson\Linkable\Forms\LinkField; use Sheadawson\Linkable\Forms\LinkField;
use Sheadawson\Linkable\Models\Link; use Sheadawson\Linkable\Models\Link;

View File

@ -6,7 +6,7 @@
* Time: 11:54 PM * Time: 11:54 PM
*/ */
namespace Site\Elements; namespace App\Elements;
use DNADesign\Elemental\Models\ElementContent; use DNADesign\Elemental\Models\ElementContent;
use SilverStripe\AssetAdmin\Forms\UploadField; use SilverStripe\AssetAdmin\Forms\UploadField;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Elements; namespace App\Elements;
use SilverStripe\ORM\DataExtension; use SilverStripe\ORM\DataExtension;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Elements; namespace App\Elements;
use DNADesign\Elemental\Models\BaseElement; use DNADesign\Elemental\Models\BaseElement;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Elements; namespace App\Elements;
use SilverStripe\SiteConfig\SiteConfig; use SilverStripe\SiteConfig\SiteConfig;

View File

@ -6,7 +6,7 @@
* Time: 2:35 PM * Time: 2:35 PM
*/ */
namespace Site\Extensions; namespace App\Elements\Extensions;
use SilverStripe\ORM\DataExtension; use SilverStripe\ORM\DataExtension;

View File

@ -6,7 +6,7 @@
* Time: 1:46 AM * Time: 1:46 AM
*/ */
namespace Site\Extensions; namespace App\Elements\Extensions;
use Dynamic\Elements\Image\Elements\ElementImage; use Dynamic\Elements\Image\Elements\ElementImage;
use Sheadawson\Linkable\Forms\LinkField; use Sheadawson\Linkable\Forms\LinkField;

View File

@ -6,7 +6,7 @@
* Time: 1:23 PM * Time: 1:23 PM
*/ */
namespace Site\Extensions; namespace App\Elements\Extensions;
use DNADesign\Elemental\Models\BaseElement; use DNADesign\Elemental\Models\BaseElement;
use DNADesign\ElementalList\Model\ElementList; use DNADesign\ElementalList\Model\ElementList;
@ -16,7 +16,7 @@ use SilverStripe\Forms\DropdownField;
use SilverStripe\ORM\DataExtension; use SilverStripe\ORM\DataExtension;
use SilverStripe\Forms\FieldList; use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\LiteralField; use SilverStripe\Forms\LiteralField;
use Site\Elements\AccordionElement; use App\Elements\AccordionElement;
class ElementRows extends DataExtension class ElementRows extends DataExtension
{ {
@ -36,6 +36,7 @@ class ElementRows extends DataExtension
public function updateCMSFields(FieldList $fields) public function updateCMSFields(FieldList $fields)
{ {
$obj = $this->owner;
parent::updateCMSFields($fields); parent::updateCMSFields($fields);
$fields->removeByName(['AvailableGlobally', 'TopPageLocale', 'TopPageID']); $fields->removeByName(['AvailableGlobally', 'TopPageLocale', 'TopPageID']);
@ -62,8 +63,7 @@ class ElementRows extends DataExtension
// column size // column size
if ($this->isColumn()) { if ($this->isColumn()) {
$sizes = $this->owner->dbObject('Size'); $sizes = $obj->dbObject('Size');
$defaultSize = $sizes->getDefaultValue();
$sizeDropdown = DropdownField::create( $sizeDropdown = DropdownField::create(
'Size', 'Size',
@ -92,11 +92,16 @@ class ElementRows extends DataExtension
); );
$tab->push($sizeDropdown); $tab->push($sizeDropdown);
// set default size // set default size if size field wasn't set or if it's new object without title set and the size is default
if (!$this->owner->getField('Size')) { $size = $obj->getField('Size');
if (!$size || (!$obj->getField('Title') && $size === 'auto')) {
$sibling = $this->getSibling(); $sibling = $this->getSibling();
$sizeDropdown->setValue($sibling ? $sibling->getField('Size') : $defaultSize); $defaultSize = $sizes->getDefaultValue();
$defaultSize = $sibling ? $sibling->getField('Size') : $defaultSize;
$obj->setField('Size', $defaultSize);
$sizeDropdown->setValue($defaultSize);
} }
} else { } else {
$fields->removeByName('Size'); $fields->removeByName('Size');
@ -104,7 +109,7 @@ class ElementRows extends DataExtension
// move parent elements // move parent elements
if ($this->isList()) { if ($this->isList()) {
$currEls = $this->owner->getField('Elements')->Elements(); $currEls = $obj->getField('Elements')->Elements();
if ($currEls->count()) { if ($currEls->count()) {
$tab->push(DropdownField::create( $tab->push(DropdownField::create(
'MoveElementIDToParent', 'MoveElementIDToParent',
@ -113,7 +118,7 @@ class ElementRows extends DataExtension
)->setEmptyString('(select an element to move)')); )->setEmptyString('(select an element to move)'));
} }
$parentEls = $this->owner->Parent()->Elements()->exclude('ID', $this->owner->ID); $parentEls = $obj->Parent()->Elements()->exclude('ID', $obj->ID);
if ($parentEls->count()) { if ($parentEls->count()) {
$tab->push(DropdownField::create( $tab->push(DropdownField::create(
'MoveElementIDFromParent', 'MoveElementIDFromParent',
@ -129,7 +134,7 @@ class ElementRows extends DataExtension
'ClassName', 'ClassName',
'<div class="form-group field text">' '<div class="form-group field text">'
.'<div class="form__field-label">Class</div>' .'<div class="form__field-label">Class</div>'
.'<div class="form__field-holder">'.$this->owner->getField('ClassName').'</div>' .'<div class="form__field-holder">'.$obj->getField('ClassName').'</div>'
.'</div>' .'</div>'
)); ));
} }

View File

@ -6,7 +6,7 @@
* Time: 1:23 PM * Time: 1:23 PM
*/ */
namespace Site\Extensions; namespace App\Elements\Extensions;
use DNADesign\Elemental\Models\BaseElement; use DNADesign\Elemental\Models\BaseElement;
use SilverStripe\ORM\ArrayList; use SilverStripe\ORM\ArrayList;

View File

@ -6,7 +6,7 @@
* Time: 12:55 PM * Time: 12:55 PM
*/ */
namespace Site\Extensions; namespace App\Elements\Extensions;
use SilverStripe\Core\Extension; use SilverStripe\Core\Extension;
use SilverStripe\Forms\CompositeField; use SilverStripe\Forms\CompositeField;
@ -16,7 +16,7 @@ use SilverStripe\Forms\GridField\GridFieldConfig_RelationEditor;
use SilverStripe\Forms\GridField\GridFieldDataColumns; use SilverStripe\Forms\GridField\GridFieldDataColumns;
use SilverStripe\Forms\NumericField; use SilverStripe\Forms\NumericField;
use SilverStripe\ORM\DataExtension; use SilverStripe\ORM\DataExtension;
use Site\Models\MapPin; use App\Models\MapPin;
class MapExtension extends DataExtension class MapExtension extends DataExtension
{ {

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Site\Extensions; namespace App\Elements\Extensions;
use SilverStripe\Forms\FieldList; use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\GridField\GridFieldDataColumns; use SilverStripe\Forms\GridField\GridFieldDataColumns;

View File

@ -6,7 +6,7 @@
* Time: 11:54 PM * Time: 11:54 PM
*/ */
namespace Site\Elements; namespace App\Elements;
use DNADesign\Elemental\Models\BaseElement; use DNADesign\Elemental\Models\BaseElement;

View File

@ -6,7 +6,7 @@
* Time: 11:54 PM * Time: 11:54 PM
*/ */
namespace Site\Elements; namespace App\Elements;
use A2nt\SilverStripeMapboxField\MapboxField; use A2nt\SilverStripeMapboxField\MapboxField;
use BetterBrief\GoogleMapField; use BetterBrief\GoogleMapField;
@ -18,8 +18,8 @@ use SilverStripe\Forms\GridField\GridField;
use SilverStripe\Forms\GridField\GridFieldConfig_RelationEditor; use SilverStripe\Forms\GridField\GridFieldConfig_RelationEditor;
use SilverStripe\Forms\HTMLEditor\HTMLEditorField; use SilverStripe\Forms\HTMLEditor\HTMLEditorField;
use SilverStripe\Forms\NumericField; use SilverStripe\Forms\NumericField;
use Site\Controllers\MapElementController; use App\Controllers\MapElementController;
use Site\Extensions\MapExtension; use App\Elements\Extensions\MapExtension;
use SilverStripe\Forms\GridField\GridFieldDataColumns; use SilverStripe\Forms\GridField\GridFieldDataColumns;
class MapElement extends ElementContent class MapElement extends ElementContent

View File

@ -6,7 +6,7 @@
* Time: 11:54 PM * Time: 11:54 PM
*/ */
namespace Site\Elements; namespace App\Elements;
use Dynamic\Elements\Flexslider\Elements\ElementSlideshow; use Dynamic\Elements\Flexslider\Elements\ElementSlideshow;
use Dynamic\FlexSlider\Model\SlideImage; use Dynamic\FlexSlider\Model\SlideImage;

View File

@ -6,9 +6,9 @@
* Time: 11:54 PM * Time: 11:54 PM
*/ */
namespace Site\Elements; namespace App\Elements;
use DNADesign\Elemental\Models\BaseElement; use DNADesign\Elemental\Models\BaseElement;
use Site\Models\TeamMember; use App\Models\TeamMember;
class TeamMembersElement extends BaseElement class TeamMembersElement extends BaseElement
{ {

View File

@ -6,7 +6,7 @@
* Time: 12:55 PM * Time: 12:55 PM
*/ */
namespace Site\Extensions; namespace App\Extensions;
use SilverStripe\Core\Extension; use SilverStripe\Core\Extension;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Extensions; namespace App\Extensions;
use SilverStripe\Blog\Forms\GridField\GridFieldConfigBlogPost; use SilverStripe\Blog\Forms\GridField\GridFieldConfigBlogPost;
use SilverStripe\Forms\FieldList; use SilverStripe\Forms\FieldList;

View File

@ -6,7 +6,7 @@
* Time: 12:10 AM * Time: 12:10 AM
*/ */
namespace Site\Extensions; namespace App\Extensions;
use DNADesign\Elemental\Models\ElementContent; use DNADesign\Elemental\Models\ElementContent;
use SilverStripe\Forms\CheckboxField; use SilverStripe\Forms\CheckboxField;

View File

@ -6,7 +6,7 @@
* Time: 1:05 AM * Time: 1:05 AM
*/ */
namespace Site\Extensions; namespace App\Extensions;
use SilverStripe\ORM\HiddenClass; use SilverStripe\ORM\HiddenClass;
use Page; use Page;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Extensions; namespace App\Extensions;
use SilverStripe\Blog\Forms\GridField\GridFieldConfigBlogPost; use SilverStripe\Blog\Forms\GridField\GridFieldConfigBlogPost;
use SilverStripe\Core\Extension; use SilverStripe\Core\Extension;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Extensions; namespace App\Extensions;
use Sheadawson\Linkable\Forms\EmbeddedObjectField; use Sheadawson\Linkable\Forms\EmbeddedObjectField;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Extensions; namespace App\Extensions;
use SilverStripe\Core\Convert; use SilverStripe\Core\Convert;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Extensions; namespace App\Extensions;
use SilverStripe\Forms\CheckboxField; use SilverStripe\Forms\CheckboxField;
use SilverStripe\Forms\FieldList; use SilverStripe\Forms\FieldList;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Site\Extensions; namespace App\Extensions;
use SilverStripe\CMS\Model\SiteTree; use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\Forms\Form; use SilverStripe\Forms\Form;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Extensions; namespace App\Extensions;
use SilverStripe\Forms\CheckboxField; use SilverStripe\Forms\CheckboxField;
use SilverStripe\Forms\FieldList; use SilverStripe\Forms\FieldList;

View File

@ -1,13 +1,13 @@
<?php <?php
namespace Site\Extensions; namespace App\Extensions;
use SilverStripe\Core\Config\Config; use SilverStripe\Core\Config\Config;
use SilverStripe\Core\Extension; use SilverStripe\Core\Extension;
use SilverStripe\FontAwesome\FontAwesomeField; use SilverStripe\FontAwesome\FontAwesomeField;
use SilverStripe\View\Requirements; use SilverStripe\View\Requirements;
use Site\Templates\DeferredRequirements; use App\Templates\DeferredRequirements;
class LeftAndMainExtension extends Extension class LeftAndMainExtension extends Extension
{ {

View File

@ -6,7 +6,7 @@
* Time: 11:37 PM * Time: 11:37 PM
*/ */
namespace Site\Extensions; namespace App\Extensions;
use Sheadawson\Linkable\Forms\LinkField; use Sheadawson\Linkable\Forms\LinkField;
use Sheadawson\Linkable\Models\Link; use Sheadawson\Linkable\Models\Link;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Site\Extensions; namespace App\Extensions;
use Dynamic\Elements\Blog\Elements\ElementBlogPosts; use Dynamic\Elements\Blog\Elements\ElementBlogPosts;
use Innoweb\Sitemap\Pages\SitemapPage; use Innoweb\Sitemap\Pages\SitemapPage;
@ -25,9 +25,9 @@ use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\Forms\FieldList; use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\TreeMultiselectField; use SilverStripe\Forms\TreeMultiselectField;
use BetterBrief\GoogleMapField; use BetterBrief\GoogleMapField;
use Site\Models\Holiday; use App\Models\Holiday;
use Site\Models\Notification; use App\Models\Notification;
use Site\Models\OpeningHour; use App\Models\OpeningHour;
use Symbiote\GridFieldExtensions\GridFieldAddNewInlineButton; use Symbiote\GridFieldExtensions\GridFieldAddNewInlineButton;
use Symbiote\GridFieldExtensions\GridFieldEditableColumns; use Symbiote\GridFieldExtensions\GridFieldEditableColumns;
use Symbiote\GridFieldExtensions\GridFieldTitleHeader; use Symbiote\GridFieldExtensions\GridFieldTitleHeader;
@ -73,7 +73,7 @@ class NotificationsExtension extends DataExtension
LiteralField::create( LiteralField::create(
'CurrentNotifications', 'CurrentNotifications',
'<b>Current:</b>' '<b>Current:</b>'
.$this->owner->renderWith('Site\\Objects\\NotificationsList') .$this->owner->renderWith('App\\Objects\\NotificationsList')
), ),
CheckboxField::create('ShowNotifications'), CheckboxField::create('ShowNotifications'),
GridField::create( GridField::create(

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Site\Extensions; namespace App\Extensions;
use Dynamic\Elements\Blog\Elements\ElementBlogPosts; use Dynamic\Elements\Blog\Elements\ElementBlogPosts;
use Innoweb\Sitemap\Pages\SitemapPage; use Innoweb\Sitemap\Pages\SitemapPage;
@ -23,8 +23,8 @@ use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\Forms\FieldList; use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\TreeMultiselectField; use SilverStripe\Forms\TreeMultiselectField;
use BetterBrief\GoogleMapField; use BetterBrief\GoogleMapField;
use Site\Models\Holiday; use App\Models\Holiday;
use Site\Models\OpeningHour; use App\Models\OpeningHour;
use Symbiote\GridFieldExtensions\GridFieldAddNewInlineButton; use Symbiote\GridFieldExtensions\GridFieldAddNewInlineButton;
use Symbiote\GridFieldExtensions\GridFieldEditableColumns; use Symbiote\GridFieldExtensions\GridFieldEditableColumns;
use Symbiote\GridFieldExtensions\GridFieldTitleHeader; use Symbiote\GridFieldExtensions\GridFieldTitleHeader;
@ -80,7 +80,7 @@ class OpenningHoursExtension extends DataExtension
'CurrentOpeningHour', 'CurrentOpeningHour',
'<b>Today:</b>' '<b>Today:</b>'
.'<p class="message notice">' .'<p class="message notice">'
.$this->owner->renderWith('Site\\Objects\\OpeningHoursList') .$this->owner->renderWith('App\\Objects\\OpeningHoursList')
.'</p>' .'</p>'
), ),
CheckboxField::create('ShowOpeningHours'), CheckboxField::create('ShowOpeningHours'),

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Extensions; namespace App\Extensions;
use SilverStripe\Blog\Forms\GridField\GridFieldConfigBlogPost; use SilverStripe\Blog\Forms\GridField\GridFieldConfigBlogPost;
use SilverStripe\Forms\FieldList; use SilverStripe\Forms\FieldList;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Site\Extensions; namespace App\Extensions;
use SilverStripe\Core\Extension; use SilverStripe\Core\Extension;
use SilverStripe\Forms\CompositeField; use SilverStripe\Forms\CompositeField;

View File

@ -6,7 +6,7 @@
* Time: 1:23 PM * Time: 1:23 PM
*/ */
namespace Site\Extensions; namespace App\Extensions;
use SilverStripe\ORM\DataExtension; use SilverStripe\ORM\DataExtension;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Site\Extensions; namespace App\Extensions;
use A2nt\SilverStripeMapboxField\MapboxField; use A2nt\SilverStripeMapboxField\MapboxField;
use Innoweb\Sitemap\Pages\SitemapPage; use Innoweb\Sitemap\Pages\SitemapPage;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Extensions; namespace App\Extensions;
use SilverStripe\Control\Director; use SilverStripe\Control\Director;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Site\Extensions; namespace App\Extensions;
use SilverStripe\Forms\TextareaField; use SilverStripe\Forms\TextareaField;
use SilverStripe\ORM\DataExtension; use SilverStripe\ORM\DataExtension;

View File

@ -7,7 +7,7 @@
* Ref: Dynamic\FlexSlider\Model\SlideImage * Ref: Dynamic\FlexSlider\Model\SlideImage
*/ */
namespace Site\Extensions; namespace App\Extensions;
use SilverStripe\Forms\CheckboxField; use SilverStripe\Forms\CheckboxField;
use SilverStripe\Forms\DatetimeField; use SilverStripe\Forms\DatetimeField;

View File

@ -6,7 +6,7 @@
* Time: 11:37 PM * Time: 11:37 PM
*/ */
namespace Site\Extensions; namespace App\Extensions;
use Sheadawson\Linkable\Forms\LinkField; use Sheadawson\Linkable\Forms\LinkField;
use Sheadawson\Linkable\Models\Link; use Sheadawson\Linkable\Models\Link;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Site\Extensions; namespace App\Extensions;
use SilverStripe\ORM\HiddenClass; use SilverStripe\ORM\HiddenClass;
use SilverStripe\UserForms\Model\UserDefinedForm; use SilverStripe\UserForms\Model\UserDefinedForm;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\GraphQL; namespace App\GraphQL;
use SilverStripe\Control\Director; use SilverStripe\Control\Director;
@ -9,7 +9,7 @@ use SilverStripe\Control\HTTPRequest;
use SilverStripe\GraphQL\Auth\AuthenticatorInterface; use SilverStripe\GraphQL\Auth\AuthenticatorInterface;
use SilverStripe\ORM\ValidationException; use SilverStripe\ORM\ValidationException;
use SilverStripe\Security\Member; use SilverStripe\Security\Member;
use Site\Templates\WebpackTemplateProvider; use App\Templates\WebpackTemplateProvider;
class APIKeyAuthenticator implements AuthenticatorInterface class APIKeyAuthenticator implements AuthenticatorInterface
{ {

View File

@ -1,12 +1,12 @@
<?php <?php
namespace Site\GraphQL; namespace App\GraphQL;
use GraphQL\Type\Schema; use GraphQL\Type\Schema;
use SilverStripe\GraphQL\Middleware\QueryMiddleware; use SilverStripe\GraphQL\Middleware\QueryMiddleware;
use Site\Templates\WebpackTemplateProvider; use App\Templates\WebpackTemplateProvider;
class APIKeyMiddleware implements QueryMiddleware class APIKeyMiddleware implements QueryMiddleware
{ {

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\GraphQL; namespace App\GraphQL;
use GraphQL\Type\Definition\ResolveInfo; use GraphQL\Type\Definition\ResolveInfo;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\GraphQL; namespace App\GraphQL;
use GraphQL\Type\Definition\Type; use GraphQL\Type\Definition\Type;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\GraphQL; namespace App\GraphQL;
use GraphQL\Type\Definition\ResolveInfo; use GraphQL\Type\Definition\ResolveInfo;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\GraphQL; namespace App\GraphQL;
use GraphQL\Type\Definition\ResolveInfo; use GraphQL\Type\Definition\ResolveInfo;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\GraphQL; namespace App\GraphQL;
use GraphQL\Type\Definition\ResolveInfo; use GraphQL\Type\Definition\ResolveInfo;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\GraphQL; namespace App\GraphQL;
use GraphQL\Type\Definition\ResolveInfo; use GraphQL\Type\Definition\ResolveInfo;

View File

@ -6,7 +6,7 @@
* Time: 2:55 AM * Time: 2:55 AM
*/ */
namespace Site\Models; namespace App\Models;
use Dynamic\FlexSlider\Model\SlideImage; use Dynamic\FlexSlider\Model\SlideImage;
use Sheadawson\Linkable\Forms\LinkField; use Sheadawson\Linkable\Forms\LinkField;

View File

@ -6,7 +6,7 @@
* Time: 2:55 AM * Time: 2:55 AM
*/ */
namespace Site\Models; namespace App\Models;
use A2nt\SilverStripeMapboxField\MapboxField; use A2nt\SilverStripeMapboxField\MapboxField;
use A2nt\SilverStripeMapboxField\MarkerExtension; use A2nt\SilverStripeMapboxField\MarkerExtension;
@ -15,7 +15,7 @@ use Sheadawson\Linkable\Models\Link;
use SilverStripe\Forms\CheckboxField; use SilverStripe\Forms\CheckboxField;
use SilverStripe\ORM\DataObject; use SilverStripe\ORM\DataObject;
use SilverStripe\Versioned\Versioned; use SilverStripe\Versioned\Versioned;
use Site\Elements\MapElement; use App\Elements\MapElement;
use Symbiote\Addressable\Addressable; use Symbiote\Addressable\Addressable;
class MapPin extends DataObject class MapPin extends DataObject

View File

@ -6,7 +6,7 @@
* Time: 2:55 AM * Time: 2:55 AM
*/ */
namespace Site\Models; namespace App\Models;
use Dynamic\FlexSlider\Model\SlideImage; use Dynamic\FlexSlider\Model\SlideImage;
use Sheadawson\Linkable\Forms\LinkField; use Sheadawson\Linkable\Forms\LinkField;

View File

@ -6,7 +6,7 @@
* Time: 2:55 AM * Time: 2:55 AM
*/ */
namespace Site\Models; namespace App\Models;
use Dynamic\FlexSlider\Model\SlideImage; use Dynamic\FlexSlider\Model\SlideImage;
use Sheadawson\Linkable\Forms\LinkField; use Sheadawson\Linkable\Forms\LinkField;

View File

@ -6,13 +6,12 @@
* Time: 11:36 PM * Time: 11:36 PM
*/ */
namespace Site\Models; namespace App\Models;
use SilverStripe\Assets\Image; use SilverStripe\Assets\Image;
use SilverStripe\ORM\DataObject; use SilverStripe\ORM\DataObject;
use SilverStripe\Versioned\Versioned; use SilverStripe\Versioned\Versioned;
use Site\Extensions\SocialExtension; use App\Extensions\SocialExtension;
use Site\Pages\TeamPage;
class TeamMember extends DataObject class TeamMember extends DataObject
{ {

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Site\Pages; namespace App\Pages;
use Page; use Page;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Site\Pages; namespace App\Pages;
use PageController; use PageController;

View File

@ -2,7 +2,7 @@
// vendor/silverstripe/errorpage/src/ErrorPage.php // vendor/silverstripe/errorpage/src/ErrorPage.php
// extends global Page class // extends global Page class
//namespace Site\Pages; //namespace App\Pages;
use Sheadawson\Linkable\Forms\LinkField; use Sheadawson\Linkable\Forms\LinkField;
use SilverStripe\CMS\Model\SiteTree; use SilverStripe\CMS\Model\SiteTree;

View File

@ -2,7 +2,7 @@
// vendor/silverstripe/errorpage/src/ErrorPageController.php // vendor/silverstripe/errorpage/src/ErrorPageController.php
// extends global PageController class // extends global PageController class
//namespace Site\Pages; //namespace App\Pages;
use SilverStripe\Control\Controller; use SilverStripe\Control\Controller;
use SilverStripe\CMS\Controllers\ContentController; use SilverStripe\CMS\Controllers\ContentController;
@ -22,8 +22,8 @@ use SilverStripe\ORM\ArrayList;
use DNADesign\Elemental\Models\ElementContent; use DNADesign\Elemental\Models\ElementContent;
use DNADesign\Elemental\Models\ElementalArea; use DNADesign\Elemental\Models\ElementalArea;
use DNADesign\ElementalUserForms\Control\ElementFormController; use DNADesign\ElementalUserForms\Control\ElementFormController;
use Site\Models\TeamMember; use App\Models\TeamMember;
use Site\Templates\DeferredRequirements; use App\Templates\DeferredRequirements;
class PageController extends ContentController class PageController extends ContentController
{ {

View File

@ -6,7 +6,7 @@
* Time: 1:40 PM * Time: 1:40 PM
*/ */
namespace Site\Models; namespace App\Models;
use SilverShop\Checkout\Component\CheckoutComponent; use SilverShop\Checkout\Component\CheckoutComponent;

View File

@ -6,7 +6,7 @@
* Time: 1:08 PM * Time: 1:08 PM
*/ */
namespace Site\Models; namespace App\Models;
use SilverShop\Checkout\Checkout; use SilverShop\Checkout\Checkout;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Tasks; namespace App\Tasks;
use SilverStripe\Assets\File; use SilverStripe\Assets\File;
use SilverStripe\Dev\BuildTask; use SilverStripe\Dev\BuildTask;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Tasks; namespace App\Tasks;
use SilverStripe\Control\HTTPRequest; use SilverStripe\Control\HTTPRequest;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Tasks; namespace App\Tasks;
use SilverStripe\Assets\File; use SilverStripe\Assets\File;
use SilverStripe\CMS\Model\SiteTree; use SilverStripe\CMS\Model\SiteTree;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Tasks; namespace App\Tasks;
use Endroid\QrCode\ErrorCorrectionLevel; use Endroid\QrCode\ErrorCorrectionLevel;
use Endroid\QrCode\LabelAlignment; use Endroid\QrCode\LabelAlignment;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Tasks; namespace App\Tasks;
use SilverStripe\Assets\File; use SilverStripe\Assets\File;
use SilverStripe\Dev\BuildTask; use SilverStripe\Dev\BuildTask;

View File

@ -2,7 +2,7 @@
/** @noinspection PhpUnusedPrivateFieldInspection */ /** @noinspection PhpUnusedPrivateFieldInspection */
namespace Site\Templates; namespace App\Templates;
use SilverStripe\Control\Controller; use SilverStripe\Control\Controller;
use SilverStripe\View\TemplateGlobalProvider; use SilverStripe\View\TemplateGlobalProvider;

View File

@ -5,7 +5,7 @@
* Directs assets requests to Webpack server or to static files * Directs assets requests to Webpack server or to static files
*/ */
namespace Site\Templates; namespace App\Templates;
use SilverStripe\Core\Manifest\ModuleManifest; use SilverStripe\Core\Manifest\ModuleManifest;
use SilverStripe\View\SSViewer; use SilverStripe\View\SSViewer;

View File

@ -6,7 +6,7 @@
* Time: 5:31 AM * Time: 5:31 AM
*/ */
namespace Site\Tests; namespace App\Tests;
use SilverStripe\Assets\Upload_Validator; use SilverStripe\Assets\Upload_Validator;
use SilverStripe\Core\Cache\FilesystemCacheFactory; use SilverStripe\Core\Cache\FilesystemCacheFactory;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Traits; namespace App\Traits;
trait PaginatedListing trait PaginatedListing
{ {

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Widgets; namespace App\Widgets;
use Sheadawson\Linkable\Forms\LinkField; use Sheadawson\Linkable\Forms\LinkField;
use Sheadawson\Linkable\Models\Link; use Sheadawson\Linkable\Models\Link;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Widgets; namespace App\Widgets;
use Sheadawson\Linkable\Forms\LinkField; use Sheadawson\Linkable\Forms\LinkField;
use Sheadawson\Linkable\Models\Link; use Sheadawson\Linkable\Models\Link;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Widgets; namespace App\Widgets;
use DNADesign\Elemental\Models\BaseElement; use DNADesign\Elemental\Models\BaseElement;
use DNADesign\ElementalList\Model\ElementList; use DNADesign\ElementalList\Model\ElementList;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Widgets; namespace App\Widgets;
use Sheadawson\Linkable\Forms\LinkField; use Sheadawson\Linkable\Forms\LinkField;
use Sheadawson\Linkable\Models\Link; use Sheadawson\Linkable\Models\Link;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Widgets; namespace App\Widgets;
use SilverStripe\Forms\CheckboxField; use SilverStripe\Forms\CheckboxField;
use SilverStripe\Widgets\Model\Widget; use SilverStripe\Widgets\Model\Widget;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Widgets; namespace App\Widgets;
use DNADesign\Elemental\Controllers\ElementalAreaController; use DNADesign\Elemental\Controllers\ElementalAreaController;
use DNADesign\Elemental\Forms\ElementalAreaConfig; use DNADesign\Elemental\Forms\ElementalAreaConfig;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Widgets; namespace App\Widgets;
use DNADesign\Elemental\Forms\TextCheckboxGroupField; use DNADesign\Elemental\Forms\TextCheckboxGroupField;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Site\Widgets; namespace App\Widgets;
use DNADesign\Elemental\Forms\ElementalAreaField; use DNADesign\Elemental\Forms\ElementalAreaField;
use SilverStripe\Forms\FieldList; use SilverStripe\Forms\FieldList;

View File

@ -5,7 +5,7 @@
<div class="row"> <div class="row">
<% loop $PostsList %> <% loop $PostsList %>
<div class="col-sm-4"> <div class="col-sm-4">
<% include BlogPostInfo %> <% include SilverStripe\Blog\Includes\BlogPostInfo %>
</div> </div>
<% end_loop %> <% end_loop %>
</div> </div>

View File

@ -48,6 +48,6 @@
<% end_if %> <% end_if %>
<% with $SiteConfig %> <% with $SiteConfig %>
<% include Site\Objects\NotificationsList NotificationsToday=$NotificationsToday.filter('Area', 'Site') %> <% include App\Objects\NotificationsList NotificationsToday=$NotificationsToday.filter('Area', 'Site') %>
<% end_with %> <% end_with %>
</div> </div>

View File

@ -28,8 +28,8 @@
font-size: 14px; font-size: 14px;
margin: 0; margin: 0;
padding: 0; padding: 0;
background: #fff; background: #1c2947;
color: #333; color: #fff;
overflow-x: hidden; overflow-x: hidden;
} }
@media (min-width: 2000px) { @media (min-width: 2000px) {
@ -52,8 +52,8 @@
justify-content: center; justify-content: center;
z-index: 2000; z-index: 2000;
will-change: opacity; will-change: opacity;
background: #fff; background: #1c2947;
color: #212529; color: #fff;
} }
#PageLoading .logo { #PageLoading .logo {
width:100px; width:100px;
@ -62,7 +62,7 @@
#PageLoading .tagline { #PageLoading .tagline {
margin-top:1rem; margin-top:1rem;
margin-bottom:1rem; margin-bottom:1rem;
color: #212529; color: #fff;
font-size:1.8rem; font-size:1.8rem;
font-size: 4vh; font-size: 4vh;
letter-spacing: .25em; letter-spacing: .25em;

View File

@ -3,6 +3,7 @@
*/ */
const YML_PATH = '/app/_config/webpack.yml'; const YML_PATH = '/app/_config/webpack.yml';
const CONF_VAR = 'App\\Templates\\WebpackTemplateProvider';
const path = require('path'); const path = require('path');
const filesystem = require('fs'); const filesystem = require('fs');
@ -15,8 +16,8 @@ const conf = yaml.safeLoad(
let themes = []; let themes = [];
// add themes // add themes
if (conf['Site\\Templates\\WebpackTemplateProvider'].THEMESDIR) { if (conf[CONF_VAR].THEMESDIR) {
const themeDir = conf['Site\\Templates\\WebpackTemplateProvider'].THEMESDIR; const themeDir = conf[CONF_VAR].THEMESDIR;
const dir = path.resolve(__dirname, themeDir); const dir = path.resolve(__dirname, themeDir);
if (filesystem.existsSync(dir)) { if (filesystem.existsSync(dir)) {
@ -32,6 +33,6 @@ if (conf['Site\\Templates\\WebpackTemplateProvider'].THEMESDIR) {
} }
module.exports = { module.exports = {
configuration: conf['Site\\Templates\\WebpackTemplateProvider'], configuration: conf[CONF_VAR],
themes: themes, themes: themes,
}; };