mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-03-13 15:39:18 +08:00
actually commit the other stuff
Signed-off-by: MiniDigger <admin@minidigger.me>
This commit is contained in:
parent
a096444336
commit
ad4b878e6f
@ -13,7 +13,6 @@
|
||||
<template v-if="!isNew">
|
||||
<tr v-for="dep in version.pluginDependencies[platform]" :key="`${platform}-${dep.name}`">
|
||||
<td>{{ dep.name }}</td>
|
||||
<!--TODO having ripple here produces console errors?-->
|
||||
<td><v-simple-checkbox v-model="dep.required" :ripple="false" /></td>
|
||||
<td>
|
||||
<v-text-field
|
||||
|
@ -30,6 +30,7 @@ public class HangarConfig {
|
||||
private String gaCode = "";
|
||||
private List<Announcement> announcements = new ArrayList<>();
|
||||
private String urlRegex = "^(https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|www\\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9]+\\.[^\\s]{2,}|www\\.[a-zA-Z0-9]+\\.[^\\s]{2,})";
|
||||
private List<String> licences = new ArrayList<>();
|
||||
|
||||
@NestedConfigurationProperty
|
||||
public final FakeUserConfig fakeUser;
|
||||
@ -186,6 +187,14 @@ public class HangarConfig {
|
||||
this.urlRegex = urlRegex;
|
||||
}
|
||||
|
||||
public List<String> getLicences() {
|
||||
return licences;
|
||||
}
|
||||
|
||||
public void setLicences(List<String> licences) {
|
||||
this.licences = licences;
|
||||
}
|
||||
|
||||
@Deprecated(forRemoval = true)
|
||||
public boolean isValidProjectName(String name) {
|
||||
String sanitized = StringUtils.compact(name);
|
||||
|
@ -47,6 +47,13 @@ hangar:
|
||||
base-url: "http://localhost:8080"
|
||||
ga-code: "UA-38006759-9"
|
||||
|
||||
licences:
|
||||
- "MIT"
|
||||
- "Apache 2.0"
|
||||
- "GPL"
|
||||
- "LPGL"
|
||||
- "(custom)"
|
||||
|
||||
announcements:
|
||||
-
|
||||
text: "This is a staging server for testing purposes. Data could be deleted at any time. Please use our production server at (TODO: prod url, lol) for uploading your plugins!"
|
||||
|
Loading…
x
Reference in New Issue
Block a user