From 05ced1cb9d6ad1ea9c67f20a20a6aaffb2cbfe44 Mon Sep 17 00:00:00 2001 From: Doomsdayrs <38189170+Doomsdayrs@users.noreply.github.com> Date: Sat, 6 Aug 2022 14:30:19 -0400 Subject: [PATCH] Move lua files under `lua/` directory to clean up jar files (#48) --- .../app/shosetsu/lib/lua/ShosetsuLuaLib.kt | 34 +++++++++---------- src/main/resources/{ => lua}/ChapterType.lua | 0 src/main/resources/{ => lua}/GET.lua | 0 src/main/resources/{ => lua}/NodeVisitor.lua | 0 src/main/resources/{ => lua}/Novel.lua | 0 src/main/resources/{ => lua}/NovelChapter.lua | 0 src/main/resources/{ => lua}/NovelInfo.lua | 0 src/main/resources/{ => lua}/NovelStatus.lua | 0 src/main/resources/{ => lua}/POST.lua | 0 src/main/resources/{ => lua}/filter.lua | 0 src/main/resources/{ => lua}/first.lua | 0 src/main/resources/{ => lua}/flatten.lua | 0 src/main/resources/{ => lua}/map.lua | 0 src/main/resources/{ => lua}/map2flat.lua | 0 src/main/resources/{ => lua}/mapNotNil.lua | 0 src/main/resources/{ => lua}/pageOfElem.lua | 0 src/main/resources/{ => lua}/pipeline.lua | 0 src/main/resources/{ => lua}/wrap.lua | 0 18 files changed, 17 insertions(+), 17 deletions(-) rename src/main/resources/{ => lua}/ChapterType.lua (100%) rename src/main/resources/{ => lua}/GET.lua (100%) rename src/main/resources/{ => lua}/NodeVisitor.lua (100%) rename src/main/resources/{ => lua}/Novel.lua (100%) rename src/main/resources/{ => lua}/NovelChapter.lua (100%) rename src/main/resources/{ => lua}/NovelInfo.lua (100%) rename src/main/resources/{ => lua}/NovelStatus.lua (100%) rename src/main/resources/{ => lua}/POST.lua (100%) rename src/main/resources/{ => lua}/filter.lua (100%) rename src/main/resources/{ => lua}/first.lua (100%) rename src/main/resources/{ => lua}/flatten.lua (100%) rename src/main/resources/{ => lua}/map.lua (100%) rename src/main/resources/{ => lua}/map2flat.lua (100%) rename src/main/resources/{ => lua}/mapNotNil.lua (100%) rename src/main/resources/{ => lua}/pageOfElem.lua (100%) rename src/main/resources/{ => lua}/pipeline.lua (100%) rename src/main/resources/{ => lua}/wrap.lua (100%) diff --git a/src/main/kotlin/app/shosetsu/lib/lua/ShosetsuLuaLib.kt b/src/main/kotlin/app/shosetsu/lib/lua/ShosetsuLuaLib.kt index 83ed515..4ec4336 100644 --- a/src/main/kotlin/app/shosetsu/lib/lua/ShosetsuLuaLib.kt +++ b/src/main/kotlin/app/shosetsu/lib/lua/ShosetsuLuaLib.kt @@ -303,23 +303,23 @@ class ShosetsuLuaLib : TwoArgFunction() { } private val permaLuaFuncs by lazy { mapOf( - "GET" to loadResource("GET.lua"), - "POST" to loadResource("POST.lua"), - "map" to loadResource("map.lua"), - "mapNotNil" to loadResource("mapNotNil.lua"), - "filter" to loadResource("filter.lua"), - "map2flat" to loadResource("map2flat.lua"), - "first" to loadResource("first.lua"), - "wrap" to loadResource("wrap.lua"), - "flatten" to loadResource("flatten.lua"), - "pipeline" to loadResource("pipeline.lua"), - "pageOfElem" to loadResource("pageOfElem.lua"), - "NodeVisitor" to loadResource("NodeVisitor.lua"), - "Novel" to loadResource("Novel.lua"), - "NovelInfo" to loadResource("NovelInfo.lua"), - "NovelChapter" to loadResource("NovelChapter.lua"), - "ChapterType" to loadResource("ChapterType.lua"), - "NovelStatus" to loadResource("NovelStatus.lua") + "GET" to loadResource("lua/GET.lua"), + "POST" to loadResource("lua/POST.lua"), + "map" to loadResource("lua/map.lua"), + "mapNotNil" to loadResource("lua/mapNotNil.lua"), + "filter" to loadResource("lua/filter.lua"), + "map2flat" to loadResource("lua/map2flat.lua"), + "first" to loadResource("lua/first.lua"), + "wrap" to loadResource("lua/wrap.lua"), + "flatten" to loadResource("lua/flatten.lua"), + "pipeline" to loadResource("lua/pipeline.lua"), + "pageOfElem" to loadResource("lua/pageOfElem.lua"), + "NodeVisitor" to loadResource("lua/NodeVisitor.lua"), + "Novel" to loadResource("lua/Novel.lua"), + "NovelInfo" to loadResource("lua/NovelInfo.lua"), + "NovelChapter" to loadResource("lua/NovelChapter.lua"), + "ChapterType" to loadResource("lua/ChapterType.lua"), + "NovelStatus" to loadResource("lua/NovelStatus.lua") ) } } diff --git a/src/main/resources/ChapterType.lua b/src/main/resources/lua/ChapterType.lua similarity index 100% rename from src/main/resources/ChapterType.lua rename to src/main/resources/lua/ChapterType.lua diff --git a/src/main/resources/GET.lua b/src/main/resources/lua/GET.lua similarity index 100% rename from src/main/resources/GET.lua rename to src/main/resources/lua/GET.lua diff --git a/src/main/resources/NodeVisitor.lua b/src/main/resources/lua/NodeVisitor.lua similarity index 100% rename from src/main/resources/NodeVisitor.lua rename to src/main/resources/lua/NodeVisitor.lua diff --git a/src/main/resources/Novel.lua b/src/main/resources/lua/Novel.lua similarity index 100% rename from src/main/resources/Novel.lua rename to src/main/resources/lua/Novel.lua diff --git a/src/main/resources/NovelChapter.lua b/src/main/resources/lua/NovelChapter.lua similarity index 100% rename from src/main/resources/NovelChapter.lua rename to src/main/resources/lua/NovelChapter.lua diff --git a/src/main/resources/NovelInfo.lua b/src/main/resources/lua/NovelInfo.lua similarity index 100% rename from src/main/resources/NovelInfo.lua rename to src/main/resources/lua/NovelInfo.lua diff --git a/src/main/resources/NovelStatus.lua b/src/main/resources/lua/NovelStatus.lua similarity index 100% rename from src/main/resources/NovelStatus.lua rename to src/main/resources/lua/NovelStatus.lua diff --git a/src/main/resources/POST.lua b/src/main/resources/lua/POST.lua similarity index 100% rename from src/main/resources/POST.lua rename to src/main/resources/lua/POST.lua diff --git a/src/main/resources/filter.lua b/src/main/resources/lua/filter.lua similarity index 100% rename from src/main/resources/filter.lua rename to src/main/resources/lua/filter.lua diff --git a/src/main/resources/first.lua b/src/main/resources/lua/first.lua similarity index 100% rename from src/main/resources/first.lua rename to src/main/resources/lua/first.lua diff --git a/src/main/resources/flatten.lua b/src/main/resources/lua/flatten.lua similarity index 100% rename from src/main/resources/flatten.lua rename to src/main/resources/lua/flatten.lua diff --git a/src/main/resources/map.lua b/src/main/resources/lua/map.lua similarity index 100% rename from src/main/resources/map.lua rename to src/main/resources/lua/map.lua diff --git a/src/main/resources/map2flat.lua b/src/main/resources/lua/map2flat.lua similarity index 100% rename from src/main/resources/map2flat.lua rename to src/main/resources/lua/map2flat.lua diff --git a/src/main/resources/mapNotNil.lua b/src/main/resources/lua/mapNotNil.lua similarity index 100% rename from src/main/resources/mapNotNil.lua rename to src/main/resources/lua/mapNotNil.lua diff --git a/src/main/resources/pageOfElem.lua b/src/main/resources/lua/pageOfElem.lua similarity index 100% rename from src/main/resources/pageOfElem.lua rename to src/main/resources/lua/pageOfElem.lua diff --git a/src/main/resources/pipeline.lua b/src/main/resources/lua/pipeline.lua similarity index 100% rename from src/main/resources/pipeline.lua rename to src/main/resources/lua/pipeline.lua diff --git a/src/main/resources/wrap.lua b/src/main/resources/lua/wrap.lua similarity index 100% rename from src/main/resources/wrap.lua rename to src/main/resources/lua/wrap.lua