[Wizard, JS] Add descriptions to wizard options
This commit is contained in:
+8
-1
@@ -98,8 +98,10 @@ module.configurator.js.browser=Browser
|
||||
module.configurator.js.node=Node.js
|
||||
|
||||
module.configurator.js.css=CSS Support
|
||||
module.configurator.js.css.description=Enables support for webpack's CSS and style loaders
|
||||
module.configurator.js.target.settings.kind=Target kind
|
||||
module.configurator.js.target.settings.compiler=JS Compiler
|
||||
module.configurator.js.target.settings.compiler=Kotlin/JS Compiler
|
||||
module.configurator.js.target.settings.compiler.description=Choose Kotlin/JS compiler backend
|
||||
module.configurator.js.target.settings.kind.library=Library
|
||||
module.configurator.js.target.settings.kind.application=Application
|
||||
|
||||
@@ -164,14 +166,19 @@ module.template.js.simple.description=A blank application targeting the browser
|
||||
module.template.js.simple.run.configuration.dev=BrowserDevelopmentRun in continuous mode
|
||||
module.template.js.simple.run.configuration.prod=BrowserProductionRun in continuous mode
|
||||
module.template.simple.use.kotlinx.html=Use kotlinx.html
|
||||
module.template.simple.use.kotlinx.html.description=Type-safe Kotlin DSL for creating HTML elements and building DOM trees
|
||||
|
||||
module.template.js.react.title=React Application
|
||||
module.template.js.react.description=React Application
|
||||
module.template.react.use.styled.components=Use styled-components
|
||||
module.template.react.use.styled.components.description=Adds a type-safe way to author and inject CSS stylesheets
|
||||
module.template.react.use.react.router.dom=Use react-router-dom
|
||||
module.template.react.use.react.router.dom.description=Adds navigational components to keep your URLs and UIs synchronized
|
||||
module.template.react.use.react.redux=Use react-redux
|
||||
module.template.react.use.react.redux.description=Adds state containers powered by Redux
|
||||
|
||||
module.template.simple.nodejs.title=Node.JS Application
|
||||
module.template.simple.nodejs.description=A blank application targeting Node.js
|
||||
module.template.simple.nodejs.use.kotlinx.nodejs=Use experimental Node.js API (kotlinx-nodejs)
|
||||
module.template.simple.nodejs.use.kotlinx.nodejs.description=Allows access to Node.js-specific features
|
||||
|
||||
|
||||
+2
@@ -73,6 +73,7 @@ interface JSConfigurator : ModuleConfiguratorWithModuleType, ModuleConfiguratorW
|
||||
GenerationPhase.PROJECT_GENERATION
|
||||
) {
|
||||
defaultValue = value(JsCompiler.IR)
|
||||
description = KotlinNewProjectWizardBundle.message("module.configurator.js.target.settings.compiler.description")
|
||||
filter = filter@{ reference, compilerCandidate ->
|
||||
when {
|
||||
reference !is ModuleConfiguratorSettingReference<*, *> -> false
|
||||
@@ -96,6 +97,7 @@ interface JsBrowserBasedConfigurator {
|
||||
GenerationPhase.PROJECT_GENERATION
|
||||
) {
|
||||
defaultValue = value(true)
|
||||
description = KotlinNewProjectWizardBundle.message("module.configurator.js.css.description")
|
||||
}
|
||||
|
||||
private fun Reader.hasCssSupport(module: Module): Boolean =
|
||||
|
||||
+3
@@ -38,6 +38,7 @@ class ReactJsClientTemplate : JsClientTemplate() {
|
||||
GenerationPhase.PROJECT_GENERATION
|
||||
) {
|
||||
defaultValue = value(false)
|
||||
description = KotlinNewProjectWizardBundle.message("module.template.react.use.styled.components.description")
|
||||
}
|
||||
|
||||
val useReactRouterDom by booleanSetting(
|
||||
@@ -45,6 +46,7 @@ class ReactJsClientTemplate : JsClientTemplate() {
|
||||
GenerationPhase.PROJECT_GENERATION
|
||||
) {
|
||||
defaultValue = value(false)
|
||||
description = KotlinNewProjectWizardBundle.message("module.template.react.use.react.router.dom.description")
|
||||
}
|
||||
|
||||
val useReactRedux by booleanSetting(
|
||||
@@ -52,6 +54,7 @@ class ReactJsClientTemplate : JsClientTemplate() {
|
||||
GenerationPhase.PROJECT_GENERATION
|
||||
) {
|
||||
defaultValue = value(false)
|
||||
description = KotlinNewProjectWizardBundle.message("module.template.react.use.react.redux.description")
|
||||
}
|
||||
|
||||
override val settings: List<TemplateSetting<*, *>> =
|
||||
|
||||
+1
@@ -36,6 +36,7 @@ class SimpleJsClientTemplate : JsClientTemplate() {
|
||||
GenerationPhase.PROJECT_GENERATION
|
||||
) {
|
||||
defaultValue = value(false)
|
||||
description = KotlinNewProjectWizardBundle.message("module.template.simple.use.kotlinx.html.description")
|
||||
}
|
||||
|
||||
override val settings: List<TemplateSetting<*, *>> = listOf(useKotlinxHtml)
|
||||
|
||||
+1
@@ -44,6 +44,7 @@ class SimpleNodeJsTemplate : Template() {
|
||||
GenerationPhase.PROJECT_GENERATION
|
||||
) {
|
||||
defaultValue = value(false)
|
||||
description = KotlinNewProjectWizardBundle.message("module.template.simple.nodejs.use.kotlinx.nodejs.description")
|
||||
}
|
||||
|
||||
override val settings: List<TemplateSetting<*, *>> = listOf(useKotlinxNodejs)
|
||||
|
||||
Reference in New Issue
Block a user