Skip to content

Commit c9086cb

Browse files
prepare 1.0.4 release
1 parent 4463d88 commit c9086cb

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

converter/src/main/kotlin/de/jensklingenberg/htmltocfw/converter/Utils.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ val unitsMap = mapOf(
3333
"fr" to "fr",
3434
)
3535

36-
3736
val String.isNumber: Boolean
3837
get() {
3938
return this.toIntOrNull() != null

converter/src/main/kotlin/de/jensklingenberg/htmltocfw/converter/node/StyleNode.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fun parseStyleRules(styleRules: ICommonsList<CSSStyleRule>): String {
3030
}
3131

3232

33-
fun read(text: String): CascadingStyleSheet? {
33+
fun parseCascadingStyleSheet(text: String): CascadingStyleSheet? {
3434
/**
3535
* I don't understand this issue, ECSSVersion.CSS30 can only be found by reflection
3636
* otherwise there is always a NoClassDefFoundException
@@ -46,16 +46,16 @@ fun read(text: String): CascadingStyleSheet? {
4646
class StyleNode(private val htmlStyleNode: Element) : MyNode {
4747

4848
override fun toString(): String {
49-
val hasMediaAttribute = htmlStyleNode.attributes().get("media")
49+
val mediaAttribute = htmlStyleNode.attributes().get("media")
5050

5151
var str = "fun appStylesheet() = object : StyleSheet() {\n" + "init {\n"
5252

5353
val aCSS =
54-
read(htmlStyleNode.data())
54+
parseCascadingStyleSheet(htmlStyleNode.data())
5555

5656
aCSS?.allStyleRules?.let {
57-
str += if (hasMediaAttribute.isNotBlank()) {
58-
parseMediaQuery(hasMediaAttribute, it)
57+
str += if (mediaAttribute.isNotBlank()) {
58+
parseMediaQuery(mediaAttribute, it)
5959
} else {
6060
parseStyleRules(it)
6161
}

ideaplugin/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ plugins {
1111
}
1212

1313
group = "de.jensklingenberg"
14-
version = "1.0.3"
14+
version = "1.0.4"
1515

1616
repositories {
1717
mavenCentral()

ideaplugin/gradle.properties

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
kotlin.code.style=official
22
kotlin.version=1.6.10
33
compose.version=1.0.1-rc2
4-
platformVersion = 2021.2.3
5-
4+
platformVersion=2021.2.3
65
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
76
# for insight into build numbers and IntelliJ Platform versions.
8-
pluginSinceBuild = 203
9-
pluginUntilBuild = 213.*
10-
pluginVersion = 1.0.3
7+
pluginSinceBuild=203
8+
pluginUntilBuild=213.*
9+
pluginVersion=1.0.4

ideaplugin/src/main/resources/META-INF/plugin.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ Into this:
1616
<img src ="https://raw.githubusercontent.com/Foso/HtmlToComposeWebConverter/master/docs/composebutton.png" height=500 />
1717
</p>
1818
19-
## Introduction
19+
<h3> Introduction </h3>
20+
2021
How to use:
22+
2123
1) Put your cursor to the place where you want to insert the Compose code.
2224
2) Open the Plugin under Tools> HTML to Compose Web
2325
<p align="center">

0 commit comments

Comments
 (0)