Skip to content

Commit

Permalink
[TASK] Restructure base packages
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Oct 17, 2024
1 parent 99bcc95 commit 39d5d6a
Show file tree
Hide file tree
Showing 546 changed files with 5,940 additions and 420 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
{% if package.typo3version < 11000000 %}defined('TYPO3_MODE') || die();{% else %}defined('TYPO3') or die('Access denied.');{% endif %}
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(function()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
{% if package.typo3version < 11000000 %}defined('TYPO3_MODE') || die();{% else %}defined('TYPO3') or die('Access denied.');{% endif %}
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(function()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//
// Variables
//
@import "variables";

//
// Import needed Bootstrap Package Files
//
@import "EXT:bootstrap_package/Resources/Public/Scss/bootstrap5/theme";
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": ["GPL-2.0-or-later"],
"keywords": ["TYPO3 CMS"],
"require": {
"bk2k/bootstrap-package": "{% if package.typo3version < 9000000 %}^10.0{% elseif package.typo3version < 10000000 %}^10.0 || ^11.0{% elseif package.typo3version < 11000000 %}^11.0 || ^12.0{% elseif package.typo3version < 12000000 %}^12.0 || ^13.0{% else %}^13.0 || ^14.0{% endif %}"
"bk2k/bootstrap-package": "^12.0"
},
"autoload": {
"psr-4": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $EM_CONF[$_EXTKEY] = [
'category' => 'templates',
'constraints' => [
'depends' => [
'bootstrap_package' => '{% if package.typo3version < 9000000 %}10.0.0-10.9.99{% elseif package.typo3version < 10000000 %}10.0.0-11.9.99{% elseif package.typo3version < 11000000 %}11.0.0-12.9.99{% elseif package.typo3version < 12000000 %}12.0.0-13.9.99{% else %}13.0.0-14.9.99{% endif %}',
'bootstrap_package' => '12.0.0-12.9.99',
],
'conflicts' => [
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
{% if package.typo3version < 11000000 %}defined('TYPO3_MODE') || die();{% else %}defined('TYPO3') or die('Access denied.');{% endif %}
defined('TYPO3_MODE') || die('Access denied.');
/***************
* Add default RTE configuration
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php
defined('TYPO3_MODE') || die('Access denied.');
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
module.exports = function(grunt) {

/**
* Project configuration.
*/
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
paths: {
root: '../',
resources: '<%= paths.root %>Resources/',
fonts: '<%= paths.resources %>Public/Fonts/',
img: '<%= paths.resources %>Public/Images/',
js: '<%= paths.resources %>Public/JavaScript/'
},
banner: '/*!\n' +
' * {{ package.title }} v<%= pkg.version %> (<%= pkg.homepage %>)\n' +
' * Copyright 2017-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
' * Licensed under the <%= pkg.license %> license\n' +
' */\n',
uglify: {
all: {
options: {
banner: '<%= banner %>',
mangle: true,
compress: true,
beautify: false
},
files: {
"<%= paths.js %>/Dist/scripts.js": [
"<%= paths.js %>Src/main.js"
]
}
}
},
imagemin: {
extension: {
files: [{
expand: true,
cwd: '<%= paths.resources %>',
src: [
'**/*.{png,jpg,gif,svg}'
],
dest: '<%= paths.resources %>'
}]
}
},
watch: {
options: {
livereload: true
},
javascript: {
files: '<%= paths.js %>Src/**/*.js',
tasks: ['js']
}
}
});

/**
* Register tasks
*/
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-imagemin');

/**
* Grunt update task
*/
grunt.registerTask('js', ['uglify']);
grunt.registerTask('build', ['js', 'imagemin']);
grunt.registerTask('default', ['build']);

};
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "{{ package.vendorNameAlternative }}-{{ package.packageNameAlternative }}",
"description": "{{ package.description }}",
"repository": {
"type": "git",
"url": "{{ package.repositoryUrl }}"
},
"homepage": "{{ package.author.homepage }}",
"author": "{{ package.author.name }}",
"version": "1.0.0",
"license": "GPL-2.0-or-later",
"devDependencies": {
"grunt": "^1.0.3",
"grunt-contrib-uglify": "^4.0.0",
"grunt-contrib-watch": "^1.1.0",
"grunt-contrib-imagemin": "^2.0.1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
imports:
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Processing.yaml" }
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Base.yaml" }
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Plugins.yaml" }
- { resource: "EXT:bootstrap_package/Configuration/RTE/Default.yaml" }

editor:
config:
contentsCss: "EXT:bootstrap_package/Resources/Public/Css/bootstrap4-rte.min.css"
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
{% if package.typo3version < 11000000 %}defined('TYPO3_MODE') || die();{% else %}defined('TYPO3') or die('Access denied.');{% endif %}
defined('TYPO3') or die('Access denied.');
call_user_func(function()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
{% if package.typo3version < 11000000 %}defined('TYPO3_MODE') || die();{% else %}defined('TYPO3') or die('Access denied.');{% endif %}
defined('TYPO3') or die('Access denied.');
call_user_func(function()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#
# BACKENDLAYOUT: EXAMPLE
#
mod {
web_layout {
BackendLayouts {
example {
title = LLL:EXT:{{ package.extensionKey }}/Resources/Private/Language/locallang_be.xlf:backend_layout.example
config {
backend_layout {
colCount = 1
rowCount = 1
rows {
1 {
columns {
1 {
name = LLL:EXT:{{ package.extensionKey }}/Resources/Private/Language/locallang_be.xlf:backend_layout.column.normal
colPos = 0
}
}
}
}
}
}
icon = EXT:{{ package.extensionKey }}/Resources/Public/Icons/BackendLayouts/example.svg
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
######################
#### DEPENDENCIES ####
######################
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:bootstrap_package/Configuration/TypoScript/constants.typoscript">


############
### PAGE ###
############
page {
logo {
file = EXT:{{ package.extensionKey }}/Resources/Public/Images/logo.svg
fileInverted = EXT:{{ package.extensionKey }}/Resources/Public/Images/logo-inverted.svg
height = 52
width = 192
alt = {{ package.title }}
linktitle = {{ package.title }}
}
favicon {
file = EXT:{{ package.extensionKey }}/Resources/Public/Icons/favicon.ico
}
fluidtemplate {
layoutRootPath = EXT:{{ package.extensionKey }}/Resources/Private/Layouts/Page/
partialRootPath = EXT:{{ package.extensionKey }}/Resources/Private/Partials/Page/
templateRootPath = EXT:{{ package.extensionKey }}/Resources/Private/Templates/Page/
}
}


##################
### EXTENSIONS ###
##################
plugin.bootstrap_package {
view {
layoutRootPath = EXT:{{ package.extensionKey }}/Resources/Private/Layouts/
partialRootPath = EXT:{{ package.extensionKey }}/Resources/Private/Partials/
templateRootPath = EXT:{{ package.extensionKey }}/Resources/Private/Templates/
}
}


########################
### CONTENT ELEMENTS ###
########################
plugin.bootstrap_package_contentelements {
view {
layoutRootPath = EXT:{{ package.extensionKey }}/Resources/Private/Layouts/ContentElements/
partialRootPath = EXT:{{ package.extensionKey }}/Resources/Private/Partials/ContentElements/
templateRootPath = EXT:{{ package.extensionKey }}/Resources/Private/Templates/ContentElements/
}
}


################################
### BOOTSTRAP SCSS CONSTANTS ###
################################
plugin.bootstrap_package.settings.scss {
primary = #eb3e4a
secondary = #013859
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
######################
#### DEPENDENCIES ####
######################
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:bootstrap_package/Configuration/TypoScript/setup.typoscript">


##############
#### PAGE ####
##############
page {
includeCSS {
theme = EXT:{{ package.extensionKey }}/Resources/Public/Scss/Theme/theme.scss
}

includeJSLibs {

}

includeJS {

}

includeJSFooterlibs {

}

includeJSFooter {
{{ package.extensionKey }}_scripts = EXT:{{ package.extensionKey }}/Resources/Public/JavaScript/Dist/scripts.js
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" datatype="plaintext" original="messages" date="{{ 'now'|date('Y-m-d\TH:i:s\Z', 'UTC') }}">
<header>
<authorName>{{ package.author.name }}</authorName>
<authorEmail>{{ package.author.email }}</authorEmail>
</header>
<body>
<trans-unit id="backend_layout.example">
<source>Example</source>
</trans-unit>
<trans-unit id="backend_layout.column.normal">
<source>Normal</source>
</trans-unit>
</body>
</file>
</xliff>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Default" />
<f:section name="Main">

<div class="container">
<div class="alert alert-info">
<dl>
<dt>Template file</dt>
<dd>
<code>typo3conf/ext/{{ package.extensionKey }}/Resources/Private/Templates/Page/Example.html</code>
</dd>
<dt>Backend Configuration</dt>
<dd>
<code>typo3conf/ext/{{ package.extensionKey }}/Configuration/TsConfig/Page/Mod/WebLayout/BackendLayouts/example.tsconfig</code>
</dd>
</dl>
</div>
</div>
<f:cObject typoscriptObjectPath="lib.dynamicContent" data="{pageUid: '{data.uid}', colPos: '0'}" />

</f:section>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 39d5d6a

Please sign in to comment.