remove TachiWeb-React from root

This commit is contained in:
Aria Moradi 2020-12-24 02:08:03 +03:30
parent be3a038285
commit 1f5351eeaf
6 changed files with 26 additions and 13 deletions

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "TachiWeb-React"]
path = TachiWeb-React
url = git@github.com:AriaMoradi/TachiWeb-React.git

@ -1 +0,0 @@
Subproject commit ae54272a53671345d71d13b969ba92812a96d2ab

View File

@ -63,6 +63,9 @@ dependencies {
// dex2jar
implementation(fileTree("lib/dex2jar/"))
// api
implementation("io.javalin:javalin:3.12.0")
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit")

View File

@ -1,22 +1,20 @@
package ir.armor.tachidesk
import com.googlecode.d2j.dex.Dex2jar
import com.googlecode.d2j.reader.DexFileReader
import com.googlecode.dex2jar.tools.Dex2jarCmd
import eu.kanade.tachiyomi.extension.api.ExtensionGithubApi
import eu.kanade.tachiyomi.network.NetworkHelper
import eu.kanade.tachiyomi.source.CatalogueSource
import eu.kanade.tachiyomi.source.model.MangasPage
import eu.kanade.tachiyomi.source.online.HttpSource
import io.javalin.Javalin
import io.javalin.http.Context
import kotlinx.coroutines.runBlocking
import okhttp3.Request
import okio.BufferedSink
import okio.buffer
import okio.sink
import java.io.File
import java.net.URL
import java.net.URLClassLoader
import kotlin.system.exitProcess
class Main {
companion object {
@ -33,9 +31,8 @@ class Main {
sink.close()
}
@JvmStatic
fun main(args: Array<String>) {
fun testExtensionExecution(){
File(contentRoot).mkdirs()
var sourcePkg = ""
@ -72,7 +69,14 @@ class Main {
mangasPage.mangas.forEach {
println(it.title)
}
exitProcess(0)
// exitProcess(0)
}
@JvmStatic
fun main(args: Array<String>) {
val app = Javalin.create().start(7000)
app["/", { ctx: Context -> ctx.result("Hello World") }]
}
}
}

View File

@ -1,3 +1,5 @@
rootProject.name = "Tachidesk"
include("app")
include("webUI")

8
webUI/build.gradle.kts Normal file
View File

@ -0,0 +1,8 @@
plugins {
id("com.moowork.node") version "1.3.1"
}
node {
workDir = file("${project.projectDir}/webUI/TachiWeb-React")
nodeModulesDir = file("${project.projectDir}/webUI/TachiWeb-React/node_modules")
}