Explicit asset property
This commit is contained in:
@ -25,13 +25,13 @@ struct AudioSettingsDetailView: View {
|
||||
title: "Audio Player CSS File",
|
||||
footer: "The CSS file to provide the style for the audio player",
|
||||
selectedFile: $audioPlayer.audioPlayerCssFile,
|
||||
allowedType: .asset)
|
||||
allowedType: .code)
|
||||
|
||||
FilePropertyView(
|
||||
title: "Audio Player JavaScript File",
|
||||
footer: "The CSS file to provide the functionality for the audio player",
|
||||
selectedFile: $audioPlayer.audioPlayerJsFile,
|
||||
allowedType: .asset)
|
||||
allowedType: .code)
|
||||
|
||||
LocalizedAudioSettingsDetailView(settings: audioPlayer.localized(in: language))
|
||||
.id(language)
|
||||
|
@ -30,32 +30,32 @@ struct PageSettingsDetailView: View {
|
||||
title: "Default CSS File",
|
||||
footer: "The CSS file containing the styling of all pages",
|
||||
selectedFile: $pageSettings.defaultCssFile,
|
||||
allowedType: .asset)
|
||||
allowedType: .code)
|
||||
|
||||
FilePropertyView(
|
||||
title: "Code Highlighting File",
|
||||
footer: "The JavaScript file to provide syntax highlighting of code blocks",
|
||||
selectedFile: $pageSettings.codeHighlightingJsFile,
|
||||
allowedType: .asset)
|
||||
allowedType: .code)
|
||||
|
||||
FilePropertyView(
|
||||
title: "3D Model Viewer File",
|
||||
footer: "The JavaScript file to provide the functionality for the 3D model viewer",
|
||||
selectedFile: $pageSettings.modelViewerJsFile,
|
||||
allowedType: .asset)
|
||||
allowedType: .code)
|
||||
|
||||
|
||||
FilePropertyView(
|
||||
title: "Image Comparison CSS File",
|
||||
footer: "The CSS file to provide image comparisons",
|
||||
selectedFile: $pageSettings.imageCompareCssFile,
|
||||
allowedType: .asset)
|
||||
allowedType: .code)
|
||||
|
||||
FilePropertyView(
|
||||
title: "Image Comparison JaveScript File",
|
||||
footer: "The JavaScript file to provide image comparisons",
|
||||
selectedFile: $pageSettings.imageCompareJsFile,
|
||||
allowedType: .asset)
|
||||
allowedType: .code)
|
||||
|
||||
LocalizedPageSettingsView(settings: pageSettings.localized(in: language))
|
||||
.id(language)
|
||||
|
Reference in New Issue
Block a user