Skip to content

Commit b69b7f4

Browse files
committed
Ditch default <pre> wrapper in dialog
1 parent 44e44ef commit b69b7f4

11 files changed

Lines changed: 12 additions & 15 deletions

File tree

src/cms/server/public/app/explorePanel/createContentType.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const modelConfigs = {
2626

2727
export default async () => {
2828
dialog.html(`
29+
<pre>
2930
<form>
3031
<label>
3132
Name:
@@ -97,7 +98,7 @@ export default async () => {
9798
9899
<button type="submit">Create</button>
99100
</form>
100-
`).show()
101+
</pre>`).show()
101102

102103
const form = dialog.find('form')
103104

src/cms/server/public/app/explorePanel/getCollections.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export default async () => {
66

77
const collections = await api.collections.get()
88

9-
dialog.textContent(JSON.stringify(collections, null, 2))
9+
dialog.html(`<pre>${JSON.stringify(collections, null, 2)}</pre>`)
1010
}

src/cms/server/public/app/explorePanel/getContentModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export default async () => {
66

77
const contentModel = await api.contentModel.get()
88

9-
dialog.textContent(JSON.stringify(contentModel, null, 2))
9+
dialog.html(`<pre>${JSON.stringify(contentModel, null, 2)}</pre>`)
1010
}

src/cms/server/public/app/explorePanel/getContentTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export default async () => {
66

77
const contentTypes = await api.contentTypes.get()
88

9-
dialog.textContent(JSON.stringify(contentTypes, null, 2))
9+
dialog.html(`<pre>${JSON.stringify(contentTypes, null, 2)}</pre>`)
1010
}

src/cms/server/public/app/explorePanel/getFileSystemTree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export default async () => {
66

77
const fileSystemTree = await api.fileSystemTree.get()
88

9-
dialog.textContent(JSON.stringify(fileSystemTree, null, 2))
9+
dialog.html(`<pre>${JSON.stringify(fileSystemTree, null, 2)}</pre>`)
1010
}

src/cms/server/public/app/explorePanel/getHomepage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export default async () => {
66

77
const homepage = await api.homepage.get()
88

9-
dialog.textContent(JSON.stringify(homepage, null, 2))
9+
dialog.html(`<pre>${JSON.stringify(homepage, null, 2)}</pre>`)
1010
}

src/cms/server/public/app/explorePanel/getSSGOptions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export default async () => {
66

77
const ssgOptions = await api.ssgOptions.get()
88

9-
dialog.textContent(JSON.stringify(ssgOptions, null, 2))
9+
dialog.html(`<pre>${JSON.stringify(ssgOptions, null, 2)}</pre>`)
1010
}

src/cms/server/public/app/explorePanel/getSettings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export default async () => {
66

77
const settings = await api.settings.get()
88

9-
dialog.textContent(JSON.stringify(settings, null, 2))
9+
dialog.html(`<pre>${JSON.stringify(settings, null, 2)}</pre>`)
1010
}

src/cms/server/public/app/explorePanel/getSubpage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ export default async () => {
88
title: prompt('Enter subpage title')
99
})
1010

11-
dialog.textContent(JSON.stringify(subpage, null, 2))
11+
dialog.html(`<pre>${JSON.stringify(subpage, null, 2)}</pre>`)
1212
}

src/cms/server/public/app/explorePanel/getSubpages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export default async () => {
66

77
const subpages = await api.subpages.get()
88

9-
dialog.textContent(JSON.stringify(subpages, null, 2))
9+
dialog.html(`<pre>${JSON.stringify(subpages, null, 2)}</pre>`)
1010
}

0 commit comments

Comments
 (0)