Skip to content

Commit 3fdae1d

Browse files
committed
🌈 style(CRLF): 修改换行符
1 parent 2cbbaae commit 3fdae1d

File tree

12 files changed

+318
-314
lines changed

12 files changed

+318
-314
lines changed

.gitignore

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
1-
.gradle
2-
build/
3-
!gradle/wrapper/gradle-wrapper.jar
4-
!**/src/main/**/build/
5-
!**/src/test/**/build/
6-
7-
### IntelliJ IDEA ###
8-
.idea
9-
.idea/modules.xml
10-
.idea/jarRepositories.xml
11-
.idea/compiler.xml
12-
.idea/libraries/
13-
*.iws
14-
*.iml
15-
*.ipr
16-
out/
17-
!**/src/main/**/out/
18-
!**/src/test/**/out/
19-
20-
### Eclipse ###
21-
.apt_generated
22-
.classpath
23-
.factorypath
24-
.project
25-
.settings
26-
.springBeans
27-
.sts4-cache
28-
bin/
29-
!**/src/main/**/bin/
30-
!**/src/test/**/bin/
31-
32-
### NetBeans ###
33-
/nbproject/private/
34-
/nbbuild/
35-
/dist/
36-
/nbdist/
37-
/.nb-gradle/
38-
39-
### VS Code ###
40-
.vscode/
41-
42-
### Mac OS ###
1+
.gradle
2+
build/
3+
!gradle/wrapper/gradle-wrapper.jar
4+
!**/src/main/**/build/
5+
!**/src/test/**/build/
6+
7+
### IntelliJ IDEA ###
8+
.idea
9+
.idea/modules.xml
10+
.idea/jarRepositories.xml
11+
.idea/compiler.xml
12+
.idea/libraries/
13+
*.iws
14+
*.iml
15+
*.ipr
16+
out/
17+
!**/src/main/**/out/
18+
!**/src/test/**/out/
19+
20+
### Eclipse ###
21+
.apt_generated
22+
.classpath
23+
.factorypath
24+
.project
25+
.settings
26+
.springBeans
27+
.sts4-cache
28+
bin/
29+
!**/src/main/**/bin/
30+
!**/src/test/**/bin/
31+
32+
### NetBeans ###
33+
/nbproject/private/
34+
/nbbuild/
35+
/dist/
36+
/nbdist/
37+
/.nb-gradle/
38+
39+
### VS Code ###
40+
.vscode/
41+
42+
### Mac OS ###
4343
.DS_Store

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# QSSEditorPyCharm
2-
3-
PyCharm plugin for QSSEditor
1+
# QSSEditorPyCharm
2+
3+
PyCharm plugin for QSSEditor

build.gradle.kts

Lines changed: 58 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,58 @@
1-
plugins {
2-
id("java")
3-
id("org.jetbrains.kotlin.jvm") version "1.9.23"
4-
id("org.jetbrains.intellij") version "1.17.2"
5-
}
6-
7-
group = "irony.pycharm"
8-
version = "1.0.0"
9-
10-
repositories {
11-
maven { url = uri("https://maven.aliyun.com/repository/public")}
12-
maven { url = uri("https://maven.aliyun.com/repository/central")}
13-
maven { url = uri("https://maven.aliyun.com/repository/google")}
14-
mavenCentral()
15-
}
16-
17-
dependencies {
18-
implementation("org.java-websocket:Java-WebSocket:1.5.6")
19-
}
20-
21-
// Configure Gradle IntelliJ Plugin
22-
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
23-
intellij {
24-
version.set("2023.2.5")
25-
type.set("PC") // Target IDE Platform
26-
27-
plugins.set(listOf(/* Plugin Dependencies */))
28-
}
29-
30-
tasks {
31-
// Set the JVM compatibility versions
32-
withType<JavaCompile> {
33-
sourceCompatibility = "17"
34-
targetCompatibility = "17"
35-
}
36-
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
37-
kotlinOptions.jvmTarget = "17"
38-
}
39-
40-
patchPluginXml {
41-
sinceBuild.set("232")
42-
untilBuild.set("242.*")
43-
}
44-
45-
signPlugin {
46-
certificateChain.set(System.getenv("CERTIFICATE_CHAIN"))
47-
privateKey.set(System.getenv("PRIVATE_KEY"))
48-
password.set(System.getenv("PRIVATE_KEY_PASSWORD"))
49-
}
50-
51-
publishPlugin {
52-
token.set(System.getenv("PUBLISH_TOKEN"))
53-
}
54-
}
1+
plugins {
2+
id("java")
3+
id("org.jetbrains.kotlin.jvm") version "1.9.23"
4+
id("org.jetbrains.kotlin.plugin.serialization") version "1.9.23"
5+
id("org.jetbrains.intellij") version "1.17.2"
6+
}
7+
8+
group = "irony.pycharm"
9+
version = "1.0.0"
10+
11+
repositories {
12+
maven { url = uri("https://maven.aliyun.com/repository/public") }
13+
maven { url = uri("https://maven.aliyun.com/repository/central") }
14+
maven { url = uri("https://maven.aliyun.com/repository/gradle-plugin") }
15+
maven { url = uri("https://maven.aliyun.com/repository/google") }
16+
mavenCentral()
17+
}
18+
19+
dependencies {
20+
implementation("org.java-websocket:Java-WebSocket:1.5.6")
21+
implementation("com.squareup.okhttp3:okhttp:4.12.0")
22+
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3")
23+
}
24+
25+
// Configure Gradle IntelliJ Plugin
26+
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
27+
intellij {
28+
version.set("2023.2.5")
29+
type.set("PC") // Target IDE Platform
30+
31+
plugins.set(listOf(/* Plugin Dependencies */))
32+
}
33+
34+
tasks {
35+
// Set the JVM compatibility versions
36+
withType<JavaCompile> {
37+
sourceCompatibility = "17"
38+
targetCompatibility = "17"
39+
}
40+
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
41+
kotlinOptions.jvmTarget = "17"
42+
}
43+
44+
patchPluginXml {
45+
sinceBuild.set("232")
46+
untilBuild.set("242.*")
47+
}
48+
49+
signPlugin {
50+
certificateChain.set(System.getenv("CERTIFICATE_CHAIN"))
51+
privateKey.set(System.getenv("PRIVATE_KEY"))
52+
password.set(System.getenv("PRIVATE_KEY_PASSWORD"))
53+
}
54+
55+
publishPlugin {
56+
token.set(System.getenv("PUBLISH_TOKEN"))
57+
}
58+
}

gradle.properties

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib
2-
kotlin.stdlib.default.dependency=false
3-
# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html
4-
org.gradle.configuration-cache=true
5-
# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html
6-
org.gradle.caching=true
1+
# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib
2+
kotlin.stdlib.default.dependency=false
3+
# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html
4+
org.gradle.configuration-cache=true
5+
# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html
6+
org.gradle.caching=true
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
distributionBase=GRADLE_USER_HOME
2-
distributionPath=wrapper/dists
3-
distributionUrl=https\://downloads.gradle.org/distributions/gradle-8.6-bin.zip
4-
zipStoreBase=GRADLE_USER_HOME
5-
zipStorePath=wrapper/dists
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://downloads.gradle.org/distributions/gradle-8.6-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

settings.gradle.kts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
pluginManagement {
2-
repositories {
3-
mavenCentral()
4-
gradlePluginPortal()
5-
}
6-
}
7-
1+
pluginManagement {
2+
repositories {
3+
mavenCentral()
4+
gradlePluginPortal()
5+
}
6+
}
7+
88
rootProject.name = "QSSEditor"
Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
1-
/*
2-
* Copyright (c) 2024. Irony All Rights Reserved.
3-
* Project: QSSEditor
4-
* File: QSSBundle.kt
5-
* Date: 2024/5/18 上午1:02
6-
* Author: Irony
7-
* Email: 892768447@qq.com
8-
* Site: https://pyqt.site , https://pyqt5.com
9-
*/
10-
11-
package irony.pycharm.qsseditor
12-
13-
import com.intellij.DynamicBundle
14-
import org.jetbrains.annotations.Nls
15-
import org.jetbrains.annotations.NonNls
16-
import org.jetbrains.annotations.Nullable
17-
import org.jetbrains.annotations.PropertyKey
18-
import java.util.function.Supplier
19-
20-
object QSSBundle {
21-
private const val BUNDLE: @NonNls String = "messages.QSSBundle"
22-
private val INSTANCE = DynamicBundle(QSSBundle::class.java, BUNDLE)
23-
24-
fun message(
25-
key:
26-
@PropertyKey(resourceBundle = BUNDLE)
27-
String,
28-
vararg params: Any,
29-
): @Nls String {
30-
return INSTANCE.messageOrDefault(key, key, *params)
31-
}
32-
33-
fun message(
34-
key:
35-
@PropertyKey(resourceBundle = BUNDLE)
36-
String,
37-
@Nullable @Nls defaultValue: String,
38-
vararg params: Any,
39-
): @Nls String {
40-
return INSTANCE.messageOrDefault(key, defaultValue, *params)
41-
}
42-
43-
fun lazyMessage(
44-
@PropertyKey(resourceBundle = BUNDLE) key: String,
45-
vararg params: Any,
46-
): Supplier<@Nls String> {
47-
return INSTANCE.getLazyMessage(key, *params)
48-
}
49-
}
1+
/*
2+
* Copyright (c) 2024. Irony All Rights Reserved.
3+
* Project: QSSEditor
4+
* File: QSSBundle.kt
5+
* Date: 2024/5/18 上午1:02
6+
* Author: Irony
7+
* Email: 892768447@qq.com
8+
* Site: https://pyqt.site , https://pyqt5.com
9+
*/
10+
11+
package irony.pycharm.qsseditor
12+
13+
import com.intellij.DynamicBundle
14+
import org.jetbrains.annotations.Nls
15+
import org.jetbrains.annotations.NonNls
16+
import org.jetbrains.annotations.Nullable
17+
import org.jetbrains.annotations.PropertyKey
18+
import java.util.function.Supplier
19+
20+
object QSSBundle {
21+
private const val BUNDLE: @NonNls String = "messages.QSSBundle"
22+
private val INSTANCE = DynamicBundle(QSSBundle::class.java, BUNDLE)
23+
24+
fun message(
25+
key:
26+
@PropertyKey(resourceBundle = BUNDLE)
27+
String,
28+
vararg params: Any,
29+
): @Nls String {
30+
return INSTANCE.messageOrDefault(key, key, *params)
31+
}
32+
33+
fun message(
34+
key:
35+
@PropertyKey(resourceBundle = BUNDLE)
36+
String,
37+
@Nullable @Nls defaultValue: String,
38+
vararg params: Any,
39+
): @Nls String {
40+
return INSTANCE.messageOrDefault(key, defaultValue, *params)
41+
}
42+
43+
fun lazyMessage(
44+
@PropertyKey(resourceBundle = BUNDLE) key: String,
45+
vararg params: Any,
46+
): Supplier<@Nls String> {
47+
return INSTANCE.getLazyMessage(key, *params)
48+
}
49+
}

0 commit comments

Comments
 (0)