feat: change to other sitepakage
This commit is contained in:
2
packages/base/Configuration/.htaccess
Normal file
2
packages/base/Configuration/.htaccess
Normal file
@@ -0,0 +1,2 @@
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
61
packages/base/Configuration/ContentSecurityPolicies.php
Normal file
61
packages/base/Configuration/ContentSecurityPolicies.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\Directive;
|
||||
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\Mutation;
|
||||
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\MutationCollection;
|
||||
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\MutationMode;
|
||||
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\Scope;
|
||||
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\SourceKeyword;
|
||||
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\SourceScheme;
|
||||
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\UriValue;
|
||||
use TYPO3\CMS\Core\Type\Map;
|
||||
|
||||
return Map::fromEntries([
|
||||
// Provide declarations for the backend
|
||||
Scope::backend(),
|
||||
// NOTICE: When using `MutationMode::Set` existing declarations will be overridden
|
||||
|
||||
new MutationCollection(
|
||||
// Results in `default-src 'self'`
|
||||
new Mutation(
|
||||
MutationMode::Set,
|
||||
Directive::DefaultSrc,
|
||||
SourceKeyword::self,
|
||||
),
|
||||
|
||||
// Extends the ancestor directive ('default-src'),
|
||||
// thus reuses 'self' and adds additional sources
|
||||
// Results in `img-src 'self' data: https://*.typo3.org`
|
||||
new Mutation(
|
||||
MutationMode::Extend,
|
||||
Directive::ImgSrc,
|
||||
SourceScheme::data,
|
||||
new UriValue('https://*.typo3.org'),
|
||||
),
|
||||
// NOTICE: the following two instructions for `Directive::ImgSrc` are identical to the previous instruction,
|
||||
// `MutationMode::Extend` is a shortcut for `MutationMode::InheritOnce` and `MutationMode::Append`
|
||||
// new Mutation(MutationMode::InheritOnce, Directive::ImgSrc, SourceScheme::data),
|
||||
// new Mutation(MutationMode::Append, Directive::ImgSrc, SourceScheme::data, new UriValue('https://*.typo3.org')),
|
||||
|
||||
// Extends the ancestor directive ('default-src'),
|
||||
// thus reuses 'self' and adds additional sources
|
||||
// Results in `script-src 'self' 'nonce-[random]'`
|
||||
// ('nonce-proxy' is substituted when compiling the policy)
|
||||
new Mutation(
|
||||
MutationMode::Extend,
|
||||
Directive::ScriptSrc,
|
||||
SourceKeyword::nonceProxy,
|
||||
),
|
||||
|
||||
// Sets (overrides) the directive,
|
||||
// thus ignores 'self' of the 'default-src' directive
|
||||
// Results in `worker-src blob:`
|
||||
new Mutation(
|
||||
MutationMode::Set,
|
||||
Directive::WorkerSrc,
|
||||
SourceScheme::blob,
|
||||
),
|
||||
),
|
||||
]);
|
||||
42
packages/base/Configuration/RTE/Default.yaml
Normal file
42
packages/base/Configuration/RTE/Default.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
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" }
|
||||
|
||||
editor:
|
||||
config:
|
||||
contentsCss: "EXT:base/Resources/Public/Css/rte.css"
|
||||
|
||||
stylesSet:
|
||||
- { name: "Lead", element: "p", attributes: { 'class': 'lead' } }
|
||||
|
||||
toolbarGroups:
|
||||
- { name: styles, groups: [ format, styles ] }
|
||||
- { name: basicstyles, groups: [ basicstyles ] }
|
||||
- { name: paragraph, groups: [ list, indent, blocks, align ] }
|
||||
- "/"
|
||||
- { name: links, groups: [ links ] }
|
||||
- { name: clipboard, groups: [ clipboard, cleanup, undo ] }
|
||||
- { name: editing, groups: [ spellchecker ] }
|
||||
- { name: insert, groups: [ insert ] }
|
||||
- { name: tools, groups: [ table, specialchar ] }
|
||||
- { name: document, groups: [ mode ] }
|
||||
|
||||
format_tags: "p;h1;h2;h3;h4;h5;pre"
|
||||
|
||||
justifyClasses:
|
||||
- text-left
|
||||
- text-center
|
||||
- text-right
|
||||
- text-justify
|
||||
|
||||
extraPlugins:
|
||||
- justify
|
||||
|
||||
removePlugins:
|
||||
- image
|
||||
|
||||
removeButtons:
|
||||
- Anchor
|
||||
- Underline
|
||||
- Strike
|
||||
@@ -0,0 +1,47 @@
|
||||
#
|
||||
# BACKENDLAYOUT: DEFAULT
|
||||
#
|
||||
mod {
|
||||
web_layout {
|
||||
BackendLayouts {
|
||||
default {
|
||||
title = Default
|
||||
config {
|
||||
backend_layout {
|
||||
colCount = 12
|
||||
rowCount = 2
|
||||
rows {
|
||||
1 {
|
||||
columns {
|
||||
1 {
|
||||
name = LLL:EXT:base/Resources/Private/Language/locallang_be.xlf:backend_layout.column.normal
|
||||
colPos = 0
|
||||
colspan = 12
|
||||
identifier = main
|
||||
}
|
||||
}
|
||||
}
|
||||
2 {
|
||||
columns {
|
||||
1 {
|
||||
name = Footer Left
|
||||
colPos = 90
|
||||
colspan = 6
|
||||
identifier = footer-left
|
||||
}
|
||||
2 {
|
||||
name = Footer Right
|
||||
colPos = 91
|
||||
colspan = 6
|
||||
identifier = footer-right
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
icon = EXT:test/Resources/Public/Icons/BackendLayouts/example.svg
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
lib.dynamicContent = COA
|
||||
lib.dynamicContent {
|
||||
5 = LOAD_REGISTER
|
||||
5 {
|
||||
colPos.cObject = TEXT
|
||||
colPos.cObject {
|
||||
field = colPos
|
||||
ifEmpty.cObject = TEXT
|
||||
ifEmpty.cObject {
|
||||
value.current = 1
|
||||
ifEmpty = 0
|
||||
}
|
||||
}
|
||||
slide.cObject = TEXT
|
||||
slide.cObject {
|
||||
override {
|
||||
field = slide
|
||||
if {
|
||||
isInList.field = slide
|
||||
value = -1, 0, 1, 2
|
||||
}
|
||||
}
|
||||
ifEmpty = 0
|
||||
}
|
||||
pageUid.cObject = TEXT
|
||||
pageUid.cObject {
|
||||
field = pageUid
|
||||
ifEmpty.data = TSFE:id
|
||||
}
|
||||
contentFromPid.cObject = TEXT
|
||||
contentFromPid.cObject {
|
||||
data = DB:pages:{register:pageUid}:content_from_pid
|
||||
data.insertData = 1
|
||||
}
|
||||
wrap.cObject = TEXT
|
||||
wrap.cObject {
|
||||
field = wrap
|
||||
}
|
||||
elementWrap.cObject = TEXT
|
||||
elementWrap.cObject {
|
||||
field = elementWrap
|
||||
}
|
||||
}
|
||||
20 = CONTENT
|
||||
20 {
|
||||
table = tt_content
|
||||
select {
|
||||
includeRecordsWithoutDefaultTranslation = 1
|
||||
orderBy = sorting
|
||||
where = {#colPos}={register:colPos}
|
||||
where.insertData = 1
|
||||
pidInList.data = register:pageUid
|
||||
pidInList.override.data = register:contentFromPid
|
||||
}
|
||||
slide = {register:slide}
|
||||
slide.insertData = 1
|
||||
renderObj {
|
||||
stdWrap {
|
||||
dataWrap = {register:elementWrap}
|
||||
required = 1
|
||||
}
|
||||
}
|
||||
stdWrap {
|
||||
dataWrap = {register:wrap}
|
||||
required = 1
|
||||
}
|
||||
}
|
||||
90 = RESTORE_REGISTER
|
||||
}
|
||||
lib.dynamicContentSlide =< lib.dynamicContent
|
||||
lib.dynamicContentSlide.20.slide = -1
|
||||
@@ -0,0 +1,36 @@
|
||||
################
|
||||
#### CONFIG ####
|
||||
################
|
||||
config {
|
||||
absRefPrefix = auto
|
||||
no_cache = {$config.no_cache}
|
||||
uniqueLinkVars = 1
|
||||
pageTitleFirst = 1
|
||||
linkVars = L
|
||||
prefixLocalAnchors = {$config.prefixLocalAnchors}
|
||||
renderCharset = utf-8
|
||||
metaCharset = utf-8
|
||||
doctype = html5
|
||||
removeDefaultJS = {$config.removeDefaultJS}
|
||||
inlineStyle2TempFile = 1
|
||||
admPanel = {$config.admPanel}
|
||||
debug = 0
|
||||
cache_period = 86400
|
||||
sendCacheHeaders = {$config.sendCacheHeaders}
|
||||
intTarget =
|
||||
extTarget =
|
||||
disablePrefixComment = 1
|
||||
index_enable = 1
|
||||
index_externals = 1
|
||||
index_metatags = 1
|
||||
headerComment = {$config.headerComment}
|
||||
|
||||
// Disable Image Upscaling
|
||||
noScaleUp = 1
|
||||
|
||||
// Compression and Concatenation of CSS and JS Files
|
||||
compressJs = 1
|
||||
compressCss = 1
|
||||
concatenateJs = 1
|
||||
concatenateCss = 1
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
##############
|
||||
#### PAGE ####
|
||||
##############
|
||||
page = PAGE
|
||||
page {
|
||||
typeNum = 0
|
||||
shortcutIcon = EXT:base/Resources/Public/Icons/favicon.ico
|
||||
|
||||
10 = PAGEVIEW
|
||||
10 {
|
||||
paths {
|
||||
0 = EXT:base/Resources/Private/PageView/
|
||||
1 = {$page.pageview.paths}
|
||||
}
|
||||
dataProcessing {
|
||||
10 = files
|
||||
10 {
|
||||
references.fieldName = media
|
||||
}
|
||||
20 = menu
|
||||
20 {
|
||||
levels = 2
|
||||
includeSpacer = 1
|
||||
as = mainnavigation
|
||||
}
|
||||
30 = page-content
|
||||
}
|
||||
}
|
||||
|
||||
meta {
|
||||
viewport = {$page.meta.viewport}
|
||||
robots = {$page.meta.robots}
|
||||
apple-mobile-web-app-capable = {$page.meta.apple-mobile-web-app-capable}
|
||||
|
||||
X-UA-Compatible = {$page.meta.compatible}
|
||||
X-UA-Compatible {
|
||||
attribute = http-equiv
|
||||
}
|
||||
}
|
||||
|
||||
includeCSSLibs {
|
||||
|
||||
}
|
||||
|
||||
includeCSS {
|
||||
main = EXT:base/Resources/Public/Scss/main.scss
|
||||
}
|
||||
|
||||
includeJSLibs {
|
||||
navigation = EXT:base/Resources/Public/JavaScript/navigation.js
|
||||
|
||||
}
|
||||
|
||||
includeJS {
|
||||
|
||||
}
|
||||
|
||||
includeJSFooterlibs {
|
||||
|
||||
}
|
||||
|
||||
includeJSFooter {
|
||||
test_scripts = EXT:base/Resources/Public/JavaScript/main.js
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:base/ContentBlocks" extensions="typoscript">
|
||||
lib.contentElement {
|
||||
layoutRootPaths {
|
||||
0 = EXT:base/Resources/Private/ContentElements/Layouts/
|
||||
}
|
||||
}
|
||||
lib.contentBlock {
|
||||
partialRootPaths.0 < lib.contentElement.partialRootPaths.0
|
||||
layoutRootPaths.0 < lib.contentElement.layoutRootPaths.0
|
||||
|
||||
settings < lib.contentElement.settings
|
||||
}
|
||||
5
packages/base/Configuration/Sets/SitePackage/config.yaml
Normal file
5
packages/base/Configuration/Sets/SitePackage/config.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
name: cloonar-typo3/base
|
||||
label: 'Base Design'
|
||||
dependencies:
|
||||
- typo3/fluid-styled-content
|
||||
- typo3/fluid-styled-content-css
|
||||
21
packages/base/Configuration/Sets/SitePackage/page.tsconfig
Normal file
21
packages/base/Configuration/Sets/SitePackage/page.tsconfig
Normal file
@@ -0,0 +1,21 @@
|
||||
@import './PageTsConfig/BackendLayouts/'
|
||||
|
||||
RTE {
|
||||
default {
|
||||
preset = base
|
||||
}
|
||||
}
|
||||
|
||||
TCEFORM {
|
||||
pages {
|
||||
|
||||
}
|
||||
tt_content {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
TCEMAIN {
|
||||
|
||||
}
|
||||
|
||||
28
packages/base/Configuration/Sets/SitePackage/settings.yaml
Normal file
28
packages/base/Configuration/Sets/SitePackage/settings.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
styles:
|
||||
templates:
|
||||
layoutRootPath: 'EXT:base/Resources/Private/ContentElements/Layouts/'
|
||||
partialRootPath: 'EXT:base/Resources/Private/ContentElements/Partials/'
|
||||
templateRootPath: 'EXT:base/Resources/Private/ContentElements/Templates/'
|
||||
|
||||
page:
|
||||
pageview:
|
||||
paths: 'EXT:base/Resources/Private/PageView/'
|
||||
|
||||
meta:
|
||||
viewport: 'width=device-width, initial-scale=1'
|
||||
robots: 'index,follow'
|
||||
apple-mobile-web-app-capable: 'no'
|
||||
compatible: 'IE=edge'
|
||||
|
||||
tracking:
|
||||
google:
|
||||
trackingID: ''
|
||||
anonymizeIp: '1'
|
||||
|
||||
config:
|
||||
no_cache: '0'
|
||||
removeDefaultJS: '0'
|
||||
admPanel: '1'
|
||||
prefixLocalAnchors: 'all'
|
||||
headerComment: 'build by get.typo3.org/sitepackage'
|
||||
sendCacheHeaders: '1'
|
||||
@@ -0,0 +1 @@
|
||||
@import './TypoScript/'
|
||||
3
packages/base/Configuration/TCA/Overrides/tt_content.php
Normal file
3
packages/base/Configuration/TCA/Overrides/tt_content.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
// $GLOBALS['TCA']['tt_content']['columns']['cloonar_hero_bodytext']['config']['enableRichText'] = true;
|
||||
Reference in New Issue
Block a user