Make compatible with 10.4 dashboard

This commit is contained in:
Daniel Siepmann 2020-04-08 07:54:45 +02:00
parent 0d90c0d942
commit 660c9505bd
2 changed files with 25 additions and 64 deletions

View file

@ -1,36 +0,0 @@
<?php
namespace DanielSiepmann\DsSite\Dashboard\Widgets;
/*
* Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA.
*/
use TYPO3\CMS\Dashboard\Widgets\AbstractRssWidget;
class OwnRssFeed extends AbstractRssWidget
{
protected $rssFile = 'https://daniel-siepmann.de/feed/rssFeedAllBlogPosts/sitemap.xml';
protected $lifeTime = 43200;
protected $title = 'Own RSS Feed';
protected $description = 'RSS Feed of Blog Posts';
protected $iconIdentifier = 'content-widget-rss';
protected $moreItemsLink = 'https://daniel-siepmann.de/';
protected $moreItemsText = 'Open Blog';
protected $width = 2;
}

View file

@ -8,37 +8,34 @@ services:
resource: '../Classes/*'
# Widgets
DanielSiepmann\DsSite\Dashboard\Widgets\OwnRssFeed:
class: DanielSiepmann\DsSite\Dashboard\Widgets\OwnRssFeed
arguments: ['ownRss']
dashboard.widget.site_ownrss:
class: 'TYPO3\CMS\Dashboard\Widgets\RssWidget'
arguments:
$view: '@dashboard.views.widget'
$cache: '@cache.dashboard.rss'
$options:
feedUrl: 'https://daniel-siepmann.de/feed/rssFeedAllBlogPosts/sitemap.xml'
tags:
- name: dashboard.widget
identifier: ownRss
widgetGroups: 'own'
identifier: 'ownRss'
groupNames: 'typo3'
title: 'Own RSS Feed'
description: 'RSS Feed of Blog Posts'
iconIdentifier: 'content-widget-rss'
height: 'large'
width: 'medium'
# Foreign Classes
DanielSiepmann\Tracking\DI\Dashboard\Widgets\Settings\PageViewsBar:
factory:
- '@DanielSiepmann\Tracking\Dashboard\Widgets\SettingsFactory'
- 'fromArray'
DanielSiepmann\Tracking\Dashboard\Provider\PageviewsPerDay:
arguments:
$widgetIdentifier: 'pageViewsBar'
$settings:
blackListedPages: [1, 11, 38]
DanielSiepmann\Tracking\DI\Dashboard\Widgets\Settings\PageViewsPerPageDoughnut:
factory:
- '@DanielSiepmann\Tracking\Dashboard\Widgets\SettingsFactory'
- 'fromArray'
$queryBuilder: '@querybuilder.tx_tracking_pageview'
$blackListedPages: [1, 11, 38]
DanielSiepmann\Tracking\Dashboard\Provider\PageviewsPerPage:
arguments:
$widgetIdentifier: 'pageViewsPerPageDoughnut'
$settings:
blackListedPages: [1, 11, 38]
DanielSiepmann\Tracking\DI\Dashboard\Widgets\Settings\NewestPageviewsList:
factory:
- '@DanielSiepmann\Tracking\Dashboard\Widgets\SettingsFactory'
- 'fromArray'
$queryBuilder: '@querybuilder.tx_tracking_pageview'
$blackListedPages: [1, 11, 38]
DanielSiepmann\Tracking\Dashboard\Provider\NewestPageviews:
arguments:
$widgetIdentifier: 'pageViewsPerPageDoughnut'
$settings:
blackListedPages: [1, 11, 38]
$queryBuilder: '@querybuilder.tx_tracking_pageview'
$blackListedPages: [1, 11, 38]