Skip to content

Commit

Permalink
V6.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Treedent committed Oct 4, 2023
1 parent 90720e1 commit 6c34ba8
Show file tree
Hide file tree
Showing 13 changed files with 82 additions and 20 deletions.
7 changes: 7 additions & 0 deletions Documentation/Changelog/Index.rst
Expand Up @@ -6,6 +6,13 @@
Changelog
===========

- V6.0.1 for TYPO3 V11 & V12.
- JavaScript bug correction and optimization.
- Adjusted github tag for composer install.
- Online documentation render correction.



- V6.0.0 for TYPO3 V11 & V12.
- Complete revamping for TYPO3 V12.
- Apply Icon to 1st level supbpages of selected page.
Expand Down
2 changes: 1 addition & 1 deletion Documentation/Introduction/Index.rst
Expand Up @@ -24,7 +24,7 @@ You can now dress TYPO3 page treeview with custom SVG icons.

.. attention::

The latest version :code:`6.0.0` has been redesigned for TYPO3 versions 11LTS and 12LTS.
The latest version :code:`6.0.1` has been redesigned for TYPO3 versions 11LTS and 12LTS.

This version comes with English, French, German, Italian and Spanish translations.

Expand Down
10 changes: 5 additions & 5 deletions Documentation/Settings.cfg
Expand Up @@ -4,15 +4,15 @@
[general]

project = RT Pages Tree Icons
version = main
release = 6.0.0
version = 6
release = 6.0.1
copyright = Syradev © 2023

[html_theme_options]

# "Edit on GitHub" button
github_repository = TYPO3-Documentation/TYPO3CMS-Example-ExtensionManual
github_branch = main
github_repository = Treedent/rt_pages_tree_icons
github_branch = master

# Footer links
project_home = https://github.com/Treedent/rt_pages_tree_icons
Expand Down Expand Up @@ -42,7 +42,7 @@ t3upgrade = https://docs.typo3.org/m/typo3/guide-installation/main/en-us/

# TYPO3 system extensions
# ext_adminpanel = https://docs.typo3.org/c/typo3/cms-adminpanel/main/en-us/
# ext_core = https://docs.typo3.org/c/typo3/cms-core/main/en-us/
ext_core = https://docs.typo3.org/c/typo3/cms-core/main/en-us/
# ext_dashboard = https://docs.typo3.org/c/typo3/cms-dashboard/main/en-us/
# ext_felogin = https://docs.typo3.org/c/typo3/cms-felogin/main/en-us/
# ext_form = https://docs.typo3.org/c/typo3/cms-form/main/en-us/
Expand Down
Expand Up @@ -57,12 +57,14 @@ define('SYRADEV/RtPagesTreeIcons/pageIconChanger', () => {
if (pagesIconsContainer !== null) {
pagesIconsContainer.addEventListener('click', (e) => {
const li = e.target.closest('li');
getSiblings(li).forEach(icon => {
icon.classList.remove('icon-current');
});
li.classList.add('icon-current');
newIcon.value = li.dataset.icon;
newSubIcon.value = li.dataset.icon;
if (li && li.dataset.icon !== undefined) {
getSiblings(li).forEach(icon => {
icon.classList.remove('icon-current');
});
li.classList.add('icon-current');
newIcon.value = li.dataset.icon;
newSubIcon.value = li.dataset.icon;
}
}, true);
}

Expand Down
Expand Up @@ -39,7 +39,7 @@ define('SYRADEV/RtPagesTreeIcons/iconHelper', ['TYPO3/CMS/Backend/Notification']

iconsContainer.addEventListener('click', (e) => {
const li = e.target.closest('li');
if(li.dataset.icon !== undefined) {
if (li && li.dataset.icon !== undefined) {
getSiblings(li).forEach(icon => {
icon.classList.remove('icon-current');
});
Expand Down Expand Up @@ -68,7 +68,7 @@ define('SYRADEV/RtPagesTreeIcons/iconHelper', ['TYPO3/CMS/Backend/Notification']
mode: 'cors'
};
const request = new AjaxRequest(TYPO3.settings.ajaxUrls.set_newIcon);
request.post(body,init).then(
request.post(body, init).then(
async (response) => {
const reponse = await response.resolve();
icon.value = reponse.newIconInfos.icon
Expand Down Expand Up @@ -114,7 +114,7 @@ define('SYRADEV/RtPagesTreeIcons/iconHelper', ['TYPO3/CMS/Backend/Notification']
mode: 'cors'
};
const request = new AjaxRequest(TYPO3.settings.ajaxUrls.get_allIcons);
request.post(body,init).then(
request.post(body, init).then(
async (response) => {
iconsContainer.innerHTML = await response.resolve();
}, (error) => {
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Layouts/IconChooser.html
Expand Up @@ -4,7 +4,7 @@
<f:flashMessages />

<f:be.pageRenderer includeCssFiles="{0: '{f:uri.resource(path:\'Css/iconStyle.css\')}'}"
includeJsFiles="{0: '{f:uri.resource(path:\'JavaScript/iconChooser.js\')}'}"
includeJsFiles="{0: '{f:uri.resource(path:\'JavaScript/iconChooser.min.js\')}'}"
includeRequireJsModules="{0: 'SYRADEV/RtPagesTreeIcons/pageIconChanger'}"
/>

Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Layouts/IconHelper.html
Expand Up @@ -4,7 +4,7 @@
<f:flashMessages />

<f:be.pageRenderer includeCssFiles="{0: '{f:uri.resource(path:\'Css/iconStyle.css\')}'}"
includeJsFiles="{0: '{f:uri.resource(path:\'JavaScript/iconHelper.js\')}'}"
includeJsFiles="{0: '{f:uri.resource(path:\'JavaScript/iconHelper.min.js\')}'}"
includeRequireJsModules="{0: 'SYRADEV/RtPagesTreeIcons/iconHelper'}"
/>

Expand Down
3 changes: 1 addition & 2 deletions Resources/Private/Partials/PageIcons/AllIcons.html
Expand Up @@ -242,8 +242,7 @@
<div class="panel panel-tab">
<div class="panel-body">
<f:be.infobox title="{f:translate(key:'about.Syradev.text', extensionName: 'rt_pages_tree_icons')}" disableIcon="TRUE" state="-2">
<img src="/typo3conf/ext/rt_pages_tree_icons/Resources/Public/syradev_2023.svg"
alt="Syradev">
<f:image src="EXT:rt_pages_tree_icons/Resources/Public/syradev_2023.svg" alt="Syradev" />
</f:be.infobox>
</div>
</div>
Expand Down
26 changes: 26 additions & 0 deletions Resources/Public/JavaScript/iconChooser.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Resources/Public/JavaScript/iconChooser.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions Resources/Public/JavaScript/iconHelper.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Resources/Public/JavaScript/iconHelper.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ext_emconf.php
Expand Up @@ -22,7 +22,7 @@
'state' => 'stable',
'uploadfolder' => 0,
'clearCacheOnLoad' => 1,
'version' => '6.0.0',
'version' => '6.0.1',
'constraints' => [
'depends' => [
'php' => '8.0.0-8.2.99',
Expand Down

0 comments on commit 6c34ba8

Please sign in to comment.