first commit

This commit is contained in:
salam committed 2026-10-18 17:40:27 +02:00
commit 8ace316cbf
25 files changed
+14197

No files matched your search

@@ -0,0 +1,50 @@
<?php
declare(strict_types=1);
namespace HermannTelser\Wapp\Controller;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;
use TYPO3\CMS\Core\Http\JsonResponse;
// composer dump-autoload -o
// Controller
/* * *************************************************************
*
* Copyright notice
*
* (c) 2022 Hermann Telser <hermann.telser@gmail.com>
*
* All rights reserved
* ************************************************************* */
class AppController implements MiddlewareInterface
{
public static $pid = 0;
public static $debug = 0;
/**
* @return void
*/
public function __construct()
{
date_default_timezone_set('Europe/Vienna');
}
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
$response = $handler->handle($request);
if (!isset($request->getQueryParams()['application'])) {
return $response;
}
}
public function clubAction()
{
}
}
@@ -0,0 +1,27 @@
<?php
namespace HermannTelser\Wapp\Controller;
// use HermannTelser\Watten\Domain\Repository\ErgebnisseRepository;
use TYPO3\CMS\Core\Utility\GeneralUtility;
class WappController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
{
private $clubRepository;
/**
* Inject the Athleten repository
*
* @ param \HermannTelser\Watten\Domain\Repository\AthletenRepository $athletenRepository
*/
public function __construct(ClubRepository $clubRepository)
{
$this->clubRepository = $clubRepository;
}
public function clubAction(ClubRepository $clubRepository)
{
$this->clubRepository = $clubRepository;
}
}
@@ -0,0 +1,9 @@
<?php
namespace HermannTelser\Wapp\Domain\Repository;
use TYPO3\CMS\Extbase\Persistence\Repository;
class ClubRepository extends Repository
{
}
@@ -0,0 +1,12 @@
<?php
return [
'frontend' => [
'HermannTelser/Wapp/ide' => [
'target' => \HermannTelser\Wapp\Controller\AppController::class,
'after' => [
'typo3/cms-frontend/prepare-tsfe-rendering'
]
],
],
];
@@ -0,0 +1,14 @@
<?php
defined('TYPO3') || die();
// 1 extension key
// 2 the name of the plugin
// 3 title of the plugin used in the select box of the content element
// 4 icon
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'Wapp',
'Clubs',
'Watten Spiel Clubs',
'EXT:wapp/Resources/Public/Icons/Club.svg'
);
@@ -0,0 +1,44 @@
<?php
return [
'ctrl' => [
'title' => 'Watter Club',
'label' => 'clubname',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'dividers2tabs' => true,
'versioningWS' => false,
'searchFields' => 'uid, clubname',
'iconfile' => 'EXT:watten/Resources/Public/Icons/Club.svg',
'default_sortby' => 'datum DESC',
],
'interface' => [
'showRecordFieldList' => 'uid, clubname',
],
'types' => [
'1' => ['showitem' => '
--div--;Watter Club, uid, clubname'
],
],
'palettes' => [
'1' => ['showitem' => 'clubname'],
],
'columns' => [
'clubname' => [
'exclude' => 1,
'label' => 'Club Name',
'config' => [
'type' => 'input',
'size' => 30,
'max' => 50,
],
],
'isactive' => [
'exclude' => 0,
'label' => 'Ist Aktiv',
'config' => [
'type' => 'check',
],
],
],
];
Whitespace-only changes.
@@ -0,0 +1,120 @@
[page["uid"] in [23]]
config {
admPanel>
doctype=html5
spamProtectEmailAddresses = 2
spamProtectEmailAddresses_atSubst = (at)
extTarget = _blank
intTarget = _top
xhtml_cleaning=all
prefixLocalAnchors = all
#noPageTitle = 2
#pageTitleFirst = 1
# DEVELOPMENT
compressJs = 1
compressCss = 1
concatenateJs = 1
concatenateCss = 1
minifyJs = 1
minifyCSS = 1
disablePrefixComment = 1
inlineStyle2TempFile = 1
removePageCss = 1
removeDefaultCss = 1
removeDefaultJS = 1
moveJsFromHeaderToFooter = 1
prefixLocalAnchors = all
headerComment (
---------------------------------------------
contact & info -> hermann.telser(at)gmail.com
---------------------------------------------
)
}
##############################################
#
# PAGE
#
##############################################
page >
page = PAGE
page {
typeNum = 0
bodyTag = <body class="flat" id="base">
includeCSS {
}
includeJSLibs {
#file1 = typo3conf/ext/nuhodds/Resources/Public/JavaScript/nuhodds.modulloader.js
#file1.type = application/x-javascript
}
includeJS {
#file0 = typo3conf/ext/nuhodds/Resources/Public/JavaScript/fix_non_passive_event_handler.js
#file0.type = application/x-javascript
#file1 = typo3conf/ext/nuhodds/Resources/Public/JavaScript/node_modules/chart.js/dist/chart.min.js
#file1.type = application/x-javascript
#file2 = typo3conf/ext/nuhodds/Resources/Public/JavaScript/autobahn.min.js
#file2.type = application/x-javascript
#file3 = typo3conf/ext/nuhodds/Resources/Public/JavaScript/node_modules/dojo/dojo.js
#file3.type = application/x-javascript
}
meta{
viewport = width=device-width, initial-scale=3, maximum-scale=3
}
shortcutIcon = fileadmin/templates/images/logo-icon.png
headerData {
5 = TEXT
5 {
field = title
dataWrap = <title>|</title>
}
10 = COA
10 {
wrap = <script>var LOCALSCOPE=[]; |</script>
10 = TEXT
10 {
data = page:uid
wrap = LOCALSCOPE.pid=|;
}
}
#25 = CONTENT
#25.select.pidInList = this
#25.table = tt_content
#25.renderObj = COA
#25.renderObj {
# 10 = TEXT
# 10.field = list_type
# 10.noTrimWrap = |<script src="typo3conf/ext/nuhodds/Resources/Public/JavaScript/|.js"></script>|
#}
}
}
[End]
tx_wapp_domain_model_club = PAGE
tx_wapp_domain_model_club {
typeNum < 12345
config {
disableAllHeaderCode = 1
additionalHeaders = Content-type:text/html
xhtml_cleaning = 0
admPanel = 0
debug = 0
no_cache = 1
}
}
@@ -0,0 +1,2 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path fill="#b30000" d="M352 128c0 70.7-57.3 128-128 128s-128-57.3-128-128S153.3 0 224 0s128 57.3 128 128zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3zM609.3 512H471.4c5.4-9.4 8.6-20.3 8.6-32v-8c0-60.7-27.1-115.2-69.8-151.8c2.4-.1 4.7-.2 7.1-.2h61.4C567.8 320 640 392.2 640 481.3c0 17-13.8 30.7-30.7 30.7zM432 256c-31 0-59-12.6-79.3-32.9C372.4 196.5 384 163.6 384 128c0-26.8-6.6-52.1-18.3-74.3C384.3 40.1 407.2 32 432 32c61.9 0 112 50.1 112 112s-50.1 112-112 112z"/></svg>

After

Width:  |  Height:  |  Size: 787 B

+23
View File
@@ -0,0 +1,23 @@
{
"name": "hermanntelser/wapp",
"type": "typo3-cms-extension",
"description": "Die FC Dotterb\u00fchel Online Watter App",
"authors": [{
"name": "Hermann Telser",
"role": "Developer"
}],
"license": "GPL-2.0-or-later",
"require": {
"typo3/cms-core": "^11.5"
},
"autoload": {
"psr-4": {
"HermannTelser\\Wapp\\": "Classes"
}
},
"extra": {
"typo3/cms": {
"extension-key": "wapp"
}
}
}
+4944
View File
File diff suppressed because it is too large. Load diff
+19
View File
@@ -0,0 +1,19 @@
<?php
$EM_CONF['wapp'] = [
'title' => 'Wapp',
'description' => 'Die Dotterb\u00fchel Online Watter App',
'category' => 'plugin',
'author' => 'Hermann Telser',
'author_email' => 'hermann.telser@gmail.com',
'state' => 'alpha',
'clearCacheOnLoad' => 0,
'version' => '1.0.0',
'constraints' => [
'depends' => [
'typo3' => '11.5.0-11.5.99',
],
'conflicts' => [],
'suggests' => [],
],
];
+40
View File
@@ -0,0 +1,40 @@
<?php
defined('TYPO3') || die();
use \TYPO3\CMS\Extbase\Utility\ExtensionUtility;
/* ===========================================================================
plugins
=========================================================================== */
(static function () {
ExtensionUtility::configurePlugin(
'Wapp',
'Club',
[
\HermannTelser\Wapp\Controller\WappController::class => 'club',
],
[
\HermannTelser\Wapp\Controller\WappController::class => '',
]
);
// wizards
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'mod {
wizards.newContentElement.wizardItems.plugins {
elements {
tx_wapp_domain_model_clubs {
iconIdentifier = wapp-plugin-arena
title = Watten Clubs
description = Watten Clubs
tt_content_defValues {
CType = wapp_clubs
list_type = wapp_clubs
}
}
}
show = *
}
}'
);
})();
+4
View File
@@ -0,0 +1,4 @@
<?php
defined('TYPO3') || die();
(static function() {})();
+11
View File
@@ -0,0 +1,11 @@
CREATE TABLE tx_wapp_domain_model_clubs (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
crdate int(11) DEFAULT '0' NOT NULL,
isactive int(4) DEFAULT '0' NOT NULL,
clubname varchar(50) NOT NULL DEFAULT '',
clublogo varchar(50) NOT NULL DEFAULT '',
PRIMARY KEY (uid)
);
+4
View File
@@ -0,0 +1,4 @@
Install with:
composer req hermanntelser/wapp:"@dev"
+1
Submodule packages/watten added at de7be741e3.