forked from hannibal002/SkyHanni
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from ItsEmpa/contributor-nametag
:3
- Loading branch information
Showing
32 changed files
with
451 additions
and
188 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
50 changes: 50 additions & 0 deletions
50
src/main/java/at/hannibal2/skyhanni/config/features/dev/RepositoryConfig.java
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,50 @@ | ||
package at.hannibal2.skyhanni.config.features.dev; | ||
|
||
import at.hannibal2.skyhanni.data.repo.RepoUtils; | ||
import com.google.gson.annotations.Expose; | ||
import io.github.notenoughupdates.moulconfig.annotations.Accordion; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorButton; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorText; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; | ||
|
||
public class RepositoryConfig { | ||
|
||
@Expose | ||
@ConfigOption(name = "Repo Auto Update", desc = "Update the repository on every startup.\n" + | ||
"§cOnly disable this if you know what you are doing!") | ||
@ConfigEditorBoolean | ||
public boolean repoAutoUpdate = true; | ||
|
||
@ConfigOption(name = "Update Repo Now", desc = "Update your repository to the latest version") | ||
@ConfigEditorButton(buttonText = "Update") | ||
public Runnable updateRepo = RepoUtils::updateRepo; | ||
|
||
@Expose | ||
@ConfigOption(name = "Repository Location", desc = "") | ||
@Accordion | ||
public RepositoryLocation location = new RepositoryLocation(); | ||
|
||
public static class RepositoryLocation { | ||
|
||
@ConfigOption(name = "Reset Repository Location", desc = "Reset your repository location to the default.") | ||
@ConfigEditorButton(buttonText = "Reset") | ||
public Runnable resetRepoLocation = RepoUtils::resetRepoLocation; | ||
|
||
@Expose | ||
@ConfigOption(name = "Repository User", desc = "The Repository Branch, default: hannibal002") | ||
@ConfigEditorText | ||
public String user = "hannibal002"; | ||
|
||
@Expose | ||
@ConfigOption(name = "Repository Name", desc = "The Repository Name, default: SkyHanni-Repo") | ||
@ConfigEditorText | ||
public String name = "SkyHanni-REPO"; | ||
|
||
@Expose | ||
@ConfigOption(name = "Repository Branch", desc = "The Repository Branch, default: main") | ||
@ConfigEditorText | ||
public String branch = "main"; | ||
} | ||
|
||
} |
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
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
Oops, something went wrong.