-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Adjusts code to package renaming from "TYPO3.Neos" to "Neos.Neos" - Adjusts code to package renaming from "TYPO3.TypoScript" to "Neos.Fusion" in Fusion files - Moves fusion files from old path ``Resources/Private/TypoScript/`` to the new path - Migrate usages of the Settings path Neos.Neos.typoScript to Neos.Neos.fusion
- Loading branch information
1 parent
5d74474
commit 8e462a5
Showing
6 changed files
with
122 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
TYPO3: | ||
Neos: | ||
Neos: | ||
typoScript: | ||
fusion: | ||
autoInclude: | ||
Flownative.Anchorlinks: true | ||
userInterface: | ||
translation: | ||
autoInclude: | ||
'Flownative.Anchorlinks': ['Main', 'NodeTypes/*'] | ||
Flownative.Anchorlinks: | ||
- Main | ||
- 'NodeTypes/*' | ||
requireJsPathMapping: | ||
'Flownative.Anchorlinks/Views': 'resource://Flownative.Anchorlinks/Public/JavaScript/Inspector/Views' | ||
Flownative.Anchorlinks/Views: 'resource://Flownative.Anchorlinks/Public/JavaScript/Inspector/Views' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Meant to be used as a processor. Prepends a tag with the sectionId | ||
prototype(Flownative.Anchorlinks:AnchorWrapper) < prototype(Neos.Fusion:Value) { | ||
anchor = Neos.Fusion:Tag { | ||
attributes.id = ${q(node).property('sectionId')} | ||
} | ||
value = ${q(node).property('sectionId') ? this.anchor + value : value} | ||
} |
This file was deleted.
Oops, something went wrong.
54 changes: 27 additions & 27 deletions
54
Resources/Public/JavaScript/Inspector/Views/AnchorView.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
define([ | ||
'emberjs', | ||
'text!./AnchorView.html', | ||
'Shared/I18n' | ||
'emberjs', | ||
'text!./AnchorView.html', | ||
'Shared/I18n' | ||
], | ||
function( | ||
Ember, | ||
template, | ||
I18n | ||
Ember, | ||
template, | ||
I18n | ||
) { | ||
return Ember.View.extend({ | ||
template: Ember.Handlebars.compile(template), | ||
buttonLabel: 'copy', | ||
_buttonLabel: function() { | ||
return I18n.translate('Flownative.Anchorlinks:Main:' + this.get('buttonLabel'), 'Copy link'); | ||
}.property('buttonLabel'), | ||
_showButton: function() { | ||
return this.get('inspector.nodeProperties.sectionId') ? true : false; | ||
}.property('inspector.nodeProperties.sectionId'), | ||
copyToClipboard: function () { | ||
var documentNodeIdentifier = document.getElementById('neos-document-metadata').dataset['node-_identifier']; | ||
var link = 'node://' + documentNodeIdentifier + '#' + this.get('inspector.nodeProperties.sectionId'); | ||
var textArea = document.createElement('textarea'); | ||
textArea.innerText = link; | ||
document.body.appendChild(textArea); | ||
textArea.select(); | ||
document.execCommand('copy'); | ||
textArea.parentNode.removeChild(textArea); | ||
this.set('buttonLabel', 'copied'); | ||
} | ||
}); | ||
return Ember.View.extend({ | ||
template: Ember.Handlebars.compile(template), | ||
buttonLabel: 'copy', | ||
_buttonLabel: function() { | ||
return I18n.translate('Flownative.Anchorlinks:Main:' + this.get('buttonLabel'), 'Copy link'); | ||
}.property('buttonLabel'), | ||
_showButton: function() { | ||
return !!this.get('inspector.nodeProperties.sectionId'); | ||
}.property('inspector.nodeProperties.sectionId'), | ||
copyToClipboard: function () { | ||
var documentNodeIdentifier = document.getElementById('neos-document-metadata').dataset['node-_identifier']; | ||
var link = 'node://' + documentNodeIdentifier + '#' + this.get('inspector.nodeProperties.sectionId'); | ||
var textArea = document.createElement('textarea'); | ||
textArea.innerText = link; | ||
document.body.appendChild(textArea); | ||
textArea.select(); | ||
document.execCommand('copy'); | ||
textArea.parentNode.removeChild(textArea); | ||
this.set('buttonLabel', 'copied'); | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters