This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remade the UI with the intelliJ builder
- Loading branch information
Showing
43 changed files
with
1,665 additions
and
1,002 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package dev.cele.asa_sm; | ||
|
||
import java.nio.file.Path; | ||
|
||
public final class Const { | ||
public final static String ASA_STEAM_GAME_NUMBER = "2430930"; | ||
|
||
public final static Path DATA_DIR = Path.of("data"); | ||
|
||
public final static Path PROFILES_DIR = DATA_DIR.resolve("profiles"); | ||
public final static Path SERVERS_DIR = Path.of("servers"); | ||
|
||
public final static Path MOD_CACHE_DIR = DATA_DIR.resolve("mod_cache"); | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
src/main/java/dev/cele/asa_sm/components/ServerHelperComponent.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
package dev.cele.asa_sm.config | ||
|
||
import com.fasterxml.jackson.databind.DeserializationFeature | ||
import com.fasterxml.jackson.databind.ObjectMapper | ||
import org.springframework.context.annotation.Bean | ||
import org.springframework.context.annotation.Configuration | ||
|
||
@Configuration | ||
open class MapperConfig { | ||
@Bean | ||
open fun modelMapper(): ObjectMapper { | ||
return ObjectMapper() | ||
open fun modelMapper() = ObjectMapper().apply { | ||
configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/dev/cele/asa_sm/config/SpringApplicationContext.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package dev.cele.asa_sm.config | ||
|
||
import org.springframework.context.ApplicationContext | ||
import org.springframework.context.ApplicationContextAware | ||
import org.springframework.context.annotation.Configuration | ||
|
||
@Configuration | ||
internal open class SpringApplicationContext : ApplicationContextAware { | ||
|
||
override fun setApplicationContext(context: ApplicationContext) { | ||
Companion.context = context | ||
} | ||
|
||
companion object { | ||
@JvmStatic | ||
fun<T> autoWire(java: Class<T>): T { | ||
return context!!.getBean(java) | ||
} | ||
|
||
@JvmStatic | ||
fun<T> autoWire(qualifier: String): T { | ||
return context!!.getBean(qualifier) as T | ||
} | ||
|
||
@JvmStatic | ||
var context: ApplicationContext? = null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package dev.cele.asa_sm.dto.curseforge | ||
|
||
class DataDto<T> { | ||
var data: T? = null | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/java/dev/cele/asa_sm/dto/curseforge/GetModFilesRequestBody.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package dev.cele.asa_sm.dto.curseforge | ||
|
||
class GetModFilesRequestBody( | ||
var modIds: List<Int>? = null | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package dev.cele.asa_sm.dto.curseforge | ||
|
||
class ModAuthorDto { | ||
var id: Int? = null | ||
var name: String? = null | ||
var url: String? = null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package dev.cele.asa_sm.dto.curseforge | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties | ||
|
||
class ModDto { | ||
var id: Int? = null | ||
var gameId: Int? = null | ||
var name: String? = null | ||
var slug: String? = null | ||
var links: ModLinksDto? = null | ||
var summary: String? = null | ||
var status: Int? = null | ||
var downloadCount: Long? = null | ||
|
||
//public Boolean isFeatured; | ||
//public Integer primaryCategoryId; | ||
//public CategoryDto[] categories; | ||
//public Integer classId; | ||
var authors: List<ModAuthorDto> = listOf() | ||
|
||
//public ModAssetDto logo; | ||
//public ModAssetDto[] screenshots; | ||
//public Integer mainFileId; | ||
//public FileDto[] latestFiles; | ||
//public FileIndexDto[] latestFilesIndexes; | ||
//public FileIndexDto[] latestEarlyAccessFilesIndexes; | ||
//public String dateCreated; | ||
var dateModified: String? = null //public String dateReleased; | ||
//public Boolean allowModDistribution; | ||
//public Integer gamePopularityRank; | ||
//public Boolean isAvailable; | ||
//public Integer thumbsUpCount; | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/dev/cele/asa_sm/dto/curseforge/ModLinksDto.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package dev.cele.asa_sm.dto.curseforge | ||
|
||
import lombok.Data | ||
|
||
@Data | ||
class ModLinksDto { | ||
var websiteUrl: String? = null | ||
var wikiUrl: String? = null | ||
var issuesUrl: String? = null | ||
var sourceUrl: String? = null | ||
} |
98 changes: 0 additions & 98 deletions
98
src/main/java/dev/cele/asa_sm/services/CommandRunnerService.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.