Skip to content

Commit

Permalink
fix: t3debug correct name and render
Browse files Browse the repository at this point in the history
  • Loading branch information
mercs600 committed Jul 21, 2023
1 parent 5f08f48 commit 0f3b295
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
7 changes: 3 additions & 4 deletions lib/components/T3Debug/T3Debug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ export default {
functional: true,
render (createElement, ctx) {
return createElement(
'div',
'pre',
{
style: {
position: 'relative'
},
class: 't3p-debug'
class: 't3-debug'
},
[
createElement(
Expand All @@ -22,7 +22,6 @@ export default {
color: '#000',
display: 'inline-block',
wordBreak: 'break-word',
position: 'absolute',
fontSize: '12px',
fontFamily:
'SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace',
Expand All @@ -33,7 +32,7 @@ export default {
backgroundColor: '#FED7D7'
}
},
JSON.stringify(ctx.props)
JSON.stringify(ctx.props, null, 4)
),
ctx.children
]
Expand Down
6 changes: 3 additions & 3 deletions lib/components/T3Dynamic/T3Dynamic.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ export default {
const element = createElement(tag, data)

if (this.$nuxt.$typo3.options.debug) {
return createElement('t3-debug', { props: this.data }, [
element
])
return createElement('div', {
class: 't3-debug-wrapper'
}, [createElement('t3-debug', { props: { tag, data: this.data } }), element])
}

return element
Expand Down
4 changes: 2 additions & 2 deletions lib/plugins/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import T3BlDefault from '~typo3/components/T3BlDefault'
import T3HtmlParser from '~typo3/components/T3HtmlParser'
import T3LangSwitcher from '~typo3/components/T3LangSwitcher'
import T3NavLink from '~typo3/components/T3NavLink'
import T3CeDebug from '~typo3/components/T3Debug'
import T3Debug from '~typo3/components/T3Debug'
import T3Dynamic from '~typo3/components/T3Dynamic'
import T3Frame from '~typo3/components/T3Frame'
import T3Renderer from '~typo3/components/T3Renderer'
Expand Down Expand Up @@ -35,7 +35,7 @@ const components = {
T3HtmlParser,
T3LangSwitcher,
T3NavLink,
T3CeDebug,
T3Debug,
T3CeDefault,
T3Dynamic,
T3Frame,
Expand Down

0 comments on commit 0f3b295

Please sign in to comment.