Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: New content #142

Merged
merged 146 commits into from
Apr 1, 2023
Merged
Show file tree
Hide file tree
Changes from 145 commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
d616218
TASK: Switch to postcss and esbuild
jonnitto Jul 18, 2022
f233bdc
TASK: Switch to markdown for readme
jonnitto Jul 18, 2022
84414b8
Update: Remove readme
jonnitto Jul 19, 2022
c922368
Update: Re-add readme (Uppercase)
jonnitto Jul 19, 2022
687962b
Update: Reduce types of input files
jonnitto Jul 19, 2022
27f20aa
TASK: Suggest monocle and Yoast SEO
jonnitto Jul 19, 2022
729eb4f
TASK: Add tailwindCSS and AlpineJS
jonnitto Jul 19, 2022
dd9691c
TASK: Edit comment on not found page
jonnitto Jul 19, 2022
321489c
TASK: Change default values and icon from not found document
jonnitto Jul 19, 2022
cb7fa14
TASK: Update Youtube element
jonnitto Jul 19, 2022
89f4cb3
TASK: Add Javascript and Stylesheet atoms
jonnitto Jul 19, 2022
ebe232d
TASK: Add JS and CSS to Monocle Preview page
jonnitto Jul 19, 2022
8f65b4c
TASK: Add fonts and basic css
jonnitto Jul 19, 2022
542557b
TASK: Remove old youtube integration
jonnitto Jul 19, 2022
111e4ae
TASK: Add AlpineJS
jonnitto Jul 19, 2022
3ae44a0
TASK: Add Breadcrumb
jonnitto Jul 19, 2022
d6e3c2c
!!! TASK: Add headline
jonnitto Jul 19, 2022
f9ed99e
TASK: Add node presets
jonnitto Jul 19, 2022
81e29c5
!!! TASK: Add headline
jonnitto Jul 19, 2022
6e4a9da
TASK: Add image
jonnitto Jul 19, 2022
5838e4c
BUGFIX: Add missing monocle comment
jonnitto Jul 19, 2022
2d731d8
FIX: Remove double setting fontSize
jonnitto Jul 19, 2022
e7be906
TASK: Reduce font-weight for bold
jonnitto Jul 19, 2022
162691e
TASK: Add text element
jonnitto Jul 19, 2022
ce3a5ed
TASK: Add monocle settings
jonnitto Jul 19, 2022
e4898ee
FIX: Add missing property
jonnitto Jul 19, 2022
bbce8a5
TASK: Fix indentation
jonnitto Jul 19, 2022
19f2afe
TASK: Add text with image
jonnitto Jul 19, 2022
4698e70
TASK: Remove old files
jonnitto Jul 19, 2022
d7eb940
TASK: Add alert atom
jonnitto Jul 19, 2022
bd04949
TASK: Add columns element
jonnitto Jul 19, 2022
b359b4e
TASK: Remove print preview and add responsive preview
jonnitto Jul 19, 2022
1b2232a
TASK: Move document fusion files to nodetypes folder
jonnitto Jul 19, 2022
af07f5b
Merge branch 'master' of github.com:neos/Neos.Demo into update/fronte…
jonnitto Jul 19, 2022
6100e6d
TASK: Remove moved files
jonnitto Jul 19, 2022
a203aea
FEATURE: Add code editor to ck inline
jonnitto Jul 20, 2022
fcb8a88
TASK: Switch to variable font
jonnitto Jul 20, 2022
51cbe73
TASK: Add header presentation
jonnitto Jul 20, 2022
b389c8d
TASK: Add comment about monocle
jonnitto Jul 20, 2022
9878518
TASK: Use Grid in header also in desktop view
jonnitto Jul 20, 2022
bcb0720
TASK: Split settings files
Sebobo Jul 20, 2022
de13be2
TASK: Update site export
Sebobo Jul 20, 2022
fb48180
TASK: Cleanup constraints
Sebobo Jul 20, 2022
93f6f60
FEATURE: Define meta menu items via homepage
Sebobo Jul 20, 2022
8488f70
BUGFIX: Make the meta nav work again and cache globally
Sebobo Jul 21, 2022
ea511ae
TASK: Update main banner text
Sebobo Jul 21, 2022
a478ca5
BUGFIX: Renderer in two columns
jonnitto Jul 21, 2022
e65755e
TASK: Add base template
jonnitto Jul 21, 2022
3865c93
TASK: Improve typography
jonnitto Jul 21, 2022
316e854
TASK:: Improve header rendering
jonnitto Jul 21, 2022
2441a73
TASK: Add basic document integration
jonnitto Jul 21, 2022
49bf849
TASK: Enable alpine devtools in dev mode
jonnitto Jul 21, 2022
71c9611
TASK: Intagrate header
jonnitto Jul 21, 2022
ef0145e
TASK: Intagrate landing page
jonnitto Jul 21, 2022
ad42b96
TASK: Remove old js and css files
jonnitto Jul 21, 2022
4473d38
TASK: Remove icon- from icon names
jonnitto Jul 21, 2022
498cd07
TASK: Optimze document nodes
jonnitto Jul 21, 2022
19d489b
TASK:: Remove only onced used prototype
jonnitto Jul 21, 2022
a136f31
TASK: Add Footer
jonnitto Jul 21, 2022
642e260
TASK: Move header integration file
jonnitto Jul 21, 2022
e2c4985
TASK: Enable alternate language links
jonnitto Jul 21, 2022
ae5165a
BUGFIX: Render columns only if there is content
jonnitto Jul 21, 2022
cc01665
TASK: Integrate breadcrumb
jonnitto Jul 21, 2022
5d542e3
BUGFIX: Check for special case for state for home link
jonnitto Jul 21, 2022
86c8a17
TASK: Optimize CSS for layout
jonnitto Jul 21, 2022
e152c85
TASK: Remove defaultUriSuffix
jonnitto Jul 21, 2022
f332d20
TASK: Add chapter menu
jonnitto Jul 21, 2022
5c68859
TASK: Use content for prop in text atom
jonnitto Jul 21, 2022
26d7cb9
TASK: Check if the menu has items
jonnitto Jul 21, 2022
e3b8d45
TASK: Set correct position for content collection
jonnitto Jul 21, 2022
3b3881d
TASK: Move main collection fusion
jonnitto Jul 21, 2022
ba4b0fa
TASK: Remove old files
jonnitto Jul 21, 2022
e25600a
TASK: Sort content elements in creation dialog
jonnitto Jul 21, 2022
c7fca45
TASK: Rename column presentation element
jonnitto Jul 21, 2022
89aab3d
TASK: Move contact form and regisration form
jonnitto Jul 21, 2022
3bf0474
TASK: Remove old files
jonnitto Jul 21, 2022
7a9cbc8
TASK: Removee chapter menu content and add chapter container document
jonnitto Jul 21, 2022
2e171af
TASK: Set correct name for main content collection
jonnitto Jul 21, 2022
e7ac8df
TASK: OPtimize base mixins
jonnitto Jul 21, 2022
20cb2d1
TASK: Add entry point for custom colors
jonnitto Jul 21, 2022
6e425b2
TASK: Add chapter
jonnitto Jul 21, 2022
57209d7
TASK: Add constraint mixins
jonnitto Jul 22, 2022
83ec5f8
TASK: Add new carousel
jonnitto Jul 22, 2022
38238f6
TASK: Make usage of showInCreationDialog
jonnitto Jul 22, 2022
9a86e4f
TASK: Rename Chapter Container to Book
jonnitto Jul 22, 2022
44d011e
TASK: Make usage of document constaints
jonnitto Jul 22, 2022
db94807
TASK: Remove not used plugins
jonnitto Jul 22, 2022
d34dc7a
TASK: Better entrypoint for own logo
jonnitto Jul 22, 2022
4743ca6
TASK: Render CSS and JS
jonnitto Jul 22, 2022
eb7e4df
Merge branch 'update/frontend_build_stack' into feature/new-content
Sebobo Jul 22, 2022
97e3534
TASK: Remove fluid templates
Sebobo Jul 22, 2022
df7f95c
TASK: Use dark color for the hero background
Sebobo Jul 22, 2022
de83dfd
TASK: Refactor footer and header prototype
Sebobo Jul 22, 2022
d078a2d
TASK: Adjust content to new nodetypes
Sebobo Jul 22, 2022
11738b9
TASK: Update content
jonnitto Jul 22, 2022
41cdb6f
BUGFIX: Allow Youtube element
jonnitto Jul 22, 2022
74e01f6
BUGFIX: Set mac width for image in text with image
jonnitto Jul 22, 2022
92ddb46
BUGFIX: some margins
jonnitto Jul 22, 2022
f285d2f
BUGFIX: Adjust margin for paragraphs and figures
jonnitto Jul 22, 2022
11a6cd6
TASK: Add a few print styles
jonnitto Jul 22, 2022
9828050
BUGFIX: Added missing labels
regniets Jul 22, 2022
0401791
BUGFIX: Margin between element
jonnitto Jul 22, 2022
094661d
BUGFIX: Wait for check if hamburger button is hidden
jonnitto Jul 22, 2022
d84c19e
TASK: Improve form rendering
jonnitto Jul 22, 2022
c47e255
BUGFIX: Remove print editpreview config
jonnitto Jul 22, 2022
5547d6f
BUGFIX: Some edge cases with the main menu
jonnitto Jul 22, 2022
4fe6b4e
TASK: Render CSS and JS
jonnitto Jul 22, 2022
b30202c
TASK: Move headline outside of column
jonnitto Jul 22, 2022
193b61e
TASK: Update AlpineJS
jonnitto Jul 24, 2022
a77ff5c
TASK: Update frontend packages
jonnitto Jul 26, 2022
29160ac
TASK: Use localized label for german language
jonnitto Jul 27, 2022
0a78b33
TASK: Use CR settings for language menu
jonnitto Jul 27, 2022
1eb098d
TASK: Fix some styling issues with form and set default classes
jonnitto Jul 27, 2022
68741d6
TASK: Add attributes to form field
jonnitto Jul 27, 2022
a86ff0b
TASK: Add id and action to forms
jonnitto Jul 27, 2022
51b9644
TASK: Update code to use PHP8 features
Sebobo Aug 4, 2022
09864af
FEATURE: Remove name requirement for registration form
Sebobo Aug 4, 2022
17f67ab
FEATURE: Validate for existing usernames during registration
Sebobo Aug 4, 2022
f9cb818
Update: Rename presenation components
jonnitto Oct 6, 2022
a60d47e
TASK: Render JS and CSS, upgrade packages
jonnitto Oct 6, 2022
1eb0e37
TASK: Document code and add some todo comments
jonnitto Oct 6, 2022
846d81b
TASK: Rename ckeditor plugin
jonnitto Oct 6, 2022
1d2eaa0
TASK: Remove document mixin
jonnitto Oct 6, 2022
172c0ef
TASK: Add labels for screenreader
jonnitto Oct 6, 2022
1d1d855
Upgrade: Neos 8.2
jonnitto Jan 31, 2023
ece11b9
Update: Use uri from Menuitems
jonnitto Jan 31, 2023
2f8081c
FEATURE: Use allow list constraints instead of restrictions
Sebobo Feb 2, 2023
d8ab9d7
Merge branch '8.3' into feature/new-content
ahaeslich Mar 8, 2023
b1c8e80
TASK: Restructure nodetypes
mficzel Mar 8, 2023
f5bd060
TASK: Restructure document rendering
mficzel Mar 8, 2023
3f9fcd9
TASK: Adjust the registration content to inherit from Neos.Neos:Conte…
mficzel Mar 8, 2023
ac63863
TASK: Adjustments and temporary disabeling of ck-plugin
mficzel Mar 8, 2023
33b8f3a
FEATURE: DocumentTypes Blog and BlogPosting with basic rendering
mficzel Mar 8, 2023
62f6167
TASK: Add authorName and make this and datePublished required + showI…
mficzel Mar 9, 2023
26211e5
TASK: Move blog and group documents to new nodetype group special
mficzel Mar 9, 2023
21d9e53
TASK: Simplify rendering of chapter and book documents
mficzel Mar 9, 2023
9d62135
BUGFIX: Make codeplugin work again
Sebobo Mar 9, 2023
e0a0056
TASK: Show landingpage in special group
Sebobo Mar 9, 2023
159e3d9
!!! TASK: Remove book and chapter code
Sebobo Mar 9, 2023
5971411
FEATURE: Add content `Content.BlogPostingList` and introduce `Cards.C…
mficzel Mar 23, 2023
091be0e
TASK: Add labels to `Content.BlogPostingList`
mficzel Mar 24, 2023
c0e8e76
TASK: Add cache annotations and adjust order of blog postings
mficzel Mar 24, 2023
c315df6
TASK: Update styling of blog listing
ahaeslich Mar 24, 2023
8f0a9e6
TASK: Update styling of blog posting
ahaeslich Mar 24, 2023
0dda2ac
TASK: Update demo content with blog pages
ahaeslich Mar 24, 2023
464bb72
TASK: Tune cache tags for blog posting lists
mficzel Mar 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ root = true
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing-whitespace = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4

# Exceptions
[{*.{yaml,yml,sh,jscsrc,scss},package.json,.*rc}]
[{*.{yaml,yml,sh,jscsrc,scss,pcss},package.json,.*rc}]
indent_size = 2

[*.{json,scss}]
Expand All @@ -23,7 +23,7 @@ max_line_length = 1000
indent_size = 1

[*.{note,md,edit,read}]
trim_trailing-whitespace = false
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
Expand Down
20 changes: 6 additions & 14 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
{
"extends": [
"prettier"
],
"plugins": [
"prettier"
],
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
"ecmaVersion": 2020,
"sourceType": "module"
},
"env": {
"es6": true
},
"rules": {
"prettier/prettier": "error"
"es6": true,
"browser": true,
"node": true
}
}
14 changes: 0 additions & 14 deletions .jshintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14
16
18 changes: 18 additions & 0 deletions .postcssrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = (ctx) => ({
map: ctx.options.map,
plugins: {
'postcss-easy-import': {
extensions: ['.pcss', '.css'],
},
'tailwindcss/nesting': true,
tailwindcss: true,
'postcss-sort-media-queries': true,
autoprefixer: true,
cssnano: {
preset: ['default', { discardComments: { removeAll: true } }],
},
'postcss-reporter': {
clearReportedMessages: true,
},
},
});
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
composer.json
*.noLinter.*
**/Public/**/*
35 changes: 16 additions & 19 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -1,39 +1,36 @@
{
"extends": "stylelint-config-recommended-scss",
"extends": "stylelint-config-standard",
"ignoreFiles": [
"**/Public/**",
"**/Private/Templates/**",
"node_modules/**",
"**/*.noLinter.*"
],
"rules": {
"property-no-unknown": [
true,
"selector-class-pattern": "[a-z-]+",
"value-keyword-case": [
"lower",
{
"ignoreProperties": [
"font-range",
"min-font-size",
"max-font-size",
"lower-font-range",
"upper-font-range",
"font-awesome",
"tap-highlight-color",
"touch-callout"
]
"camelCaseSvgKeywords": true
}
],
"selector-pseudo-class-no-unknown": [
"function-no-unknown": [
true,
{
"ignorePseudoClasses": ["at-least", "at-most", "between", "exactly"]
"ignoreFunctions": [
"theme"
]
}
],
"selector-pseudo-element-no-unknown": [
"at-rule-no-unknown": [
true,
{
"ignorePseudoElements": ["track", "thumb"]
"ignoreAtRules": [
"tailwind",
"apply",
"layer"
]
}
],
"selector-type-no-unknown": null
]
}
}
1 change: 0 additions & 1 deletion .yarnclean
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ powered-test

# asset directories
docs
doc
website
*/**/assets

Expand Down
47 changes: 14 additions & 33 deletions Classes/Form/Runtime/Action/CreateUserAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use Neos\Flow\Annotations as Flow;
use Neos\Flow\Mvc\ActionResponse;
use Neos\Flow\Persistence\Doctrine\PersistenceManager;
use Neos\Flow\Persistence\Exception\IllegalObjectTypeException;
use Neos\Fusion\Form\Runtime\Domain\Exception\ActionException;
use Neos\Flow\Security\AccountFactory;
use Neos\Flow\Security\AccountRepository;
Expand All @@ -28,56 +29,36 @@

class CreateUserAction extends AbstractAction
{
/**
* @Flow\Inject
* @var AccountRepository
*/
protected $accountRepository;
#[Flow\Inject]
protected ?AccountRepository $accountRepository;

/**
* @Flow\Inject
* @var PartyRepository
*/
protected $partyRepository;
#[Flow\Inject]
protected ?PartyRepository $partyRepository;

/**
* @Flow\Inject
* @var PartyService
*/
protected $partyService;
#[Flow\Inject]
protected ?PartyService $partyService;

/**
* @Flow\Inject
* @var AccountFactory
*/
protected $accountFactory;
#[Flow\Inject]
protected ?AccountFactory $accountFactory;

/**
* @Flow\Inject
* @var PersistenceManager
*/
protected $persistenceManager;
#[Flow\Inject]
protected ?PersistenceManager $persistenceManager;

/**
* @return ActionResponse|null
* @throws ActionException
* @throws ActionException|IllegalObjectTypeException
*/
public function perform(): ?ActionResponse
{
$accountIdentifier = $this->options['username'];
$password = $this->options['password'];
$firstName = $this->options['firstName'];
$lastName = $this->options['lastName'];

$existingAccount = $this->accountRepository->findActiveByAccountIdentifierAndAuthenticationProviderName($accountIdentifier, 'Neos.Neos:Backend');
if ($existingAccount !== null) {
throw new ActionException('Account already exists');
}

if ($firstName === '' && $lastName === '') {
$firstName = 'Santa';
$lastName = 'Claus';
}
$firstName = ucfirst($accountIdentifier);
$lastName = 'Demo';

$user = new User();
$user->setName(new PersonName('', $firstName, '', $lastName));
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php
declare(strict_types=1);

namespace Neos\Demo\Form\Runtime\Validation\Validator;

/*
* This file is part of the Neos.Demo package.
*
* (c) Contributors of the Neos Project - www.neos.io
*
* This package is Open Source Software. For the full copyright and license
* information, please view the LICENSE file which was distributed with this
* source code.
*/

use Neos\Flow\Annotations as Flow;
use Neos\Flow\Security\AccountRepository;
use Neos\Flow\Validation\Validator\AbstractValidator;

class UsernameInUseValidator extends AbstractValidator
{
#[Flow\Inject]
protected ?AccountRepository $accountRepository;

/**
* Checks whether a given account name already exists
* @param string $value The account name to be checked
*/
protected function isValid($value): void
{
$existingAccount = $this->accountRepository->findActiveByAccountIdentifierAndAuthenticationProviderName($value, 'Neos.Neos:Backend');

if ($existingAccount) {
$this->addError('The given username is already in use', 1659612430);
}
}
}
3 changes: 3 additions & 0 deletions Configuration/Development/Settings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Neos:
Demo:
debugMode: true
27 changes: 27 additions & 0 deletions Configuration/Settings.CR.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Neos:
ContentRepository:
contentDimensions:
language:
label: 'Neos.Demo:Main:contentDimensions.language'
icon: language
default: en_US
defaultPreset: en_US
presets:
en_US:
label: 'English (US)'
values:
- en_US
# The default preset can also have an empty uriSegment value.
# https://docs.neos.io/cms/manual/content-repository/content-dimensions#behind-the-scenes-routing
uriSegment: en
en_UK:
label: 'English (UK)'
values:
- en_UK
- en_US
uriSegment: uk
de:
label: Deutsch
values:
- de
uriSegment: de
31 changes: 31 additions & 0 deletions Configuration/Settings.EditPreviewModes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Neos:
Neos:
userInterface:
editPreviewModes:
tabletLandscape:
isEditingMode: false
isPreviewMode: true
fusionRenderingPath: ''
title: 'Neos.Demo:Main:editPreviewModes.tabletLandscape'
width: 1024
height: 768
backgroundColor: '#222'
position: 200
tabletPortrait:
isEditingMode: false
isPreviewMode: true
fusionRenderingPath: ''
title: 'Neos.Demo:Main:editPreviewModes.tabletPortrait'
width: 768
height: 1024
backgroundColor: '#222'
position: 210
mobile:
isEditingMode: false
isPreviewMode: true
fusionRenderingPath: ''
title: 'Neos.Demo:Main:editPreviewModes.mobile'
width: 375
height: 667
backgroundColor: '#222'
position: 220
7 changes: 7 additions & 0 deletions Configuration/Settings.Flow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Neos:
Flow:
mvc:
routes:
'Neos.Neos':
variables:
defaultUriSuffix: ''
47 changes: 47 additions & 0 deletions Configuration/Settings.Monocle.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This is used for the living styleguide (Monocle)
# Read more about this in the README.md
Sitegeist:
Monocle:
ui:
structure:
presentation:
position: 20
match: Presentation\.
label: Presentation
icon: certificate
color: '#D1E751'
layout:
position: 10
match: Layout\.
label: Layout
icon: file
color: '#FFFFFF'
viewportPresets:
xs:
label: xs
width: 400
height: 600
sm:
label: sm
width: 640
height: 800
md:
label: md
width: 768
height: 400
lg:
label: lg
width: 1024
height: 800
xl:
label: xl
width: 1280
height: 1024
xxl:
label: xxl
width: 1520
height: 1280
xxxl:
label: xxxl
width: 1740
height: 1520
Loading