File tree Expand file tree Collapse file tree 5 files changed +13
-13
lines changed
converter/src/main/kotlin/de/jensklingenberg/htmltocfw/converter
src/main/resources/META-INF Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ val unitsMap = mapOf(
33
33
" fr" to " fr" ,
34
34
)
35
35
36
-
37
36
val String .isNumber: Boolean
38
37
get() {
39
38
return this .toIntOrNull() != null
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ fun parseStyleRules(styleRules: ICommonsList<CSSStyleRule>): String {
30
30
}
31
31
32
32
33
- fun read (text : String ): CascadingStyleSheet ? {
33
+ fun parseCascadingStyleSheet (text : String ): CascadingStyleSheet ? {
34
34
/* *
35
35
* I don't understand this issue, ECSSVersion.CSS30 can only be found by reflection
36
36
* otherwise there is always a NoClassDefFoundException
@@ -46,16 +46,16 @@ fun read(text: String): CascadingStyleSheet? {
46
46
class StyleNode (private val htmlStyleNode : Element ) : MyNode {
47
47
48
48
override fun toString (): String {
49
- val hasMediaAttribute = htmlStyleNode.attributes().get(" media" )
49
+ val mediaAttribute = htmlStyleNode.attributes().get(" media" )
50
50
51
51
var str = " fun appStylesheet() = object : StyleSheet() {\n " + " init {\n "
52
52
53
53
val aCSS =
54
- read (htmlStyleNode.data())
54
+ parseCascadingStyleSheet (htmlStyleNode.data())
55
55
56
56
aCSS?.allStyleRules?.let {
57
- str + = if (hasMediaAttribute .isNotBlank()) {
58
- parseMediaQuery(hasMediaAttribute , it)
57
+ str + = if (mediaAttribute .isNotBlank()) {
58
+ parseMediaQuery(mediaAttribute , it)
59
59
} else {
60
60
parseStyleRules(it)
61
61
}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ plugins {
11
11
}
12
12
13
13
group = " de.jensklingenberg"
14
- version = " 1.0.3 "
14
+ version = " 1.0.4 "
15
15
16
16
repositories {
17
17
mavenCentral()
Original file line number Diff line number Diff line change 1
1
kotlin.code.style =official
2
2
kotlin.version =1.6.10
3
3
compose.version =1.0.1-rc2
4
- platformVersion = 2021.2.3
5
-
4
+ platformVersion =2021.2.3
6
5
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
7
6
# 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
Original file line number Diff line number Diff line change @@ -16,8 +16,10 @@ Into this:
16
16
<img src ="https://raw.githubusercontent.com/Foso/HtmlToComposeWebConverter/master/docs/composebutton.png" height=500 />
17
17
</p>
18
18
19
- ## Introduction
19
+ <h3> Introduction </h3>
20
+
20
21
How to use:
22
+
21
23
1) Put your cursor to the place where you want to insert the Compose code.
22
24
2) Open the Plugin under Tools> HTML to Compose Web
23
25
<p align="center">
You can’t perform that action at this time.
0 commit comments