Skip to content

Commit 318cf38

Browse files
committed
update plugin page
1 parent eaf45d9 commit 318cf38

File tree

3 files changed

+45
-12
lines changed

3 files changed

+45
-12
lines changed

converter/build.gradle.kts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
22

33
plugins {
4-
kotlin("jvm") version "1.6.10-RC"
4+
kotlin("jvm") version "1.6.10"
55
application
66
}
77

8-
group = "me.jens"
8+
group = "de.jensklingenberg"
99
version = "1.0-SNAPSHOT"
1010

1111
repositories {
@@ -17,7 +17,6 @@ repositories {
1717
dependencies {
1818
testImplementation(kotlin("test"))
1919
implementation("org.jsoup:jsoup:1.14.3")
20-
// implementation("org.jetbrains.compose.web:web-core:1.0.0")
2120
}
2221

2322
tasks.test {

ideaplugin/build.gradle.kts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ plugins {
88
id("idea")
99
}
1010

11-
group = "org.example"
12-
version = "1.0-SNAPSHOT"
11+
group = "de.jensklingenberg"
12+
version = "1.0"
1313

1414
repositories {
1515
mavenCentral()
@@ -25,9 +25,17 @@ dependencies {
2525

2626
// See https://github.com/JetBrains/gradle-intellij-plugin/
2727
intellij {
28-
version.set("2021.3")
28+
version.set("2021.2")
2929
}
3030

31-
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
32-
kotlinOptions.jvmTarget = "11"
31+
tasks{
32+
withType<org.jetbrains.intellij.tasks.PublishPluginTask> {
33+
//token.set("XXX")
34+
}
35+
36+
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
37+
kotlinOptions.jvmTarget = "11"
38+
}
39+
3340
}
41+

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

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,36 @@
11
<idea-plugin>
2-
<id>com.jetbrains.ComposeDemoPlugin</id>
3-
<name>Jetpack Compose for Desktop Demo</name>
4-
<vendor email="support@jetbrains.com" url="http://www.jetbrains.com">JetBrains</vendor>
2+
<id>de.jensklingenberg.htmltocfw</id>
3+
<name>HTML to Compose Web Converter</name>
4+
<vendor email="mail@jensklingenberg.de" url="http://www.jensklingenberg.de">Jens Klingenberg</vendor>
55

66
<description><![CDATA[
7-
A plugin demonstrates Jetpack compose capabilities on IntelliJ Platform
7+
<h3>Intellij Idea Plugin that can convert HTML to Compose for Web code.</h3>
8+
9+
Turn this:
10+
<p align="center">
11+
<img src ="https://raw.githubusercontent.com/Foso/HtmlToComposeWebConverter/blob/master/docs/buttonhtml.png" height=500 />
12+
</p>
13+
14+
Into this:
15+
<p align="center">
16+
<img src ="https://raw.githubusercontent.com/Foso/HtmlToComposeWebConverter/blob/master/docs/composebutton.png" height=500 />
17+
</p>
18+
19+
## Introduction / HOW TO USE
20+
21+
1) Put your cursor to the place where you want to insert the Compose code.
22+
2) Open the Plugin under Tools> HTML to Compose Web
23+
<p align="center">
24+
<img src ="https://raw.githubusercontent.com/Foso/HtmlToComposeWebConverter/blob/master/docs/ideatools.png" height=500 />
25+
</p>
26+
3) Add your HTML to press "Generate"
27+
<p align="center">
28+
<img src ="https://raw.githubusercontent.com/Foso/HtmlToComposeWebConverter/blob/master/docs/ideaWindow.png" height=500 />
29+
</p>
30+
4) Your code is now inserted at your cursor.
31+
32+
33+
Source code is available at https://github.com/Foso/HtmlToComposeWebConverter
834
]]></description>
935

1036
<!-- please see https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html

0 commit comments

Comments
 (0)