Skip to content

Commit

Permalink
Domain changes
Browse files Browse the repository at this point in the history
  • Loading branch information
XyperCode committed Nov 22, 2024
1 parent 93ec156 commit e58b861
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ public static boolean isUnsafeAddress(String address) {

// ignore that
private static boolean isUnsafe(String host) {
if (host.endsWith(".ultreon.dev")) return false;
return switch (host) {
case "ultreon.gitlab.io", "cdn.discordapp.com", "jab125.com", "jab125.dev", "raw.githubusercontent.com",
case "ultreon.gitlab.io", "cdn.discordapp.com", "ultreon.dev", "jab125.com", "jab125.dev", "raw.githubusercontent.com",
"github.com", "i.imgur.com", "i.giphy.com", "avatars1.githubusercontent.com" -> false;
default -> true;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@
import net.minecraft.resources.ResourceLocation;

import org.jetbrains.annotations.Nullable;

import java.awt.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class AppStore extends SystemApp {
public static final String CERTIFICATES_BASE_URL = "https://raw.githubusercontent.com/Ultreon/device-mod-certificates/master";
public static final String CERTIFICATES_BASE_URL = "https://devicesapi.ultreon.dev";

public static final int LAYOUT_WIDTH = 250;
public static final int LAYOUT_HEIGHT = 150;
Expand All @@ -50,9 +51,9 @@ public void init(@Nullable CompoundTag intent) {
layoutMain = new Layout(LAYOUT_WIDTH, LAYOUT_HEIGHT);

var q = ApplicationManager.getAvailableApplications().size();
var rows = (int)Math.round(Math.ceil(q/3D));
var rows = (int) Math.round(Math.ceil(q / 3D));

ScrollableLayout homePageLayout = new ScrollableLayout(0, 0, LAYOUT_WIDTH, 368-160+80*rows, LAYOUT_HEIGHT);
ScrollableLayout homePageLayout = new ScrollableLayout(0, 0, LAYOUT_WIDTH, 368 - 160 + 80 * rows, LAYOUT_HEIGHT);
homePageLayout.setScrollSpeed(10);
homePageLayout.setBackground((graphics, mc, x, y, width, height, mouseX, mouseY, windowActive) -> {
Color color = new Color(MineOS.getOpened().getSettings().getColorScheme().getBackgroundColor());
Expand Down Expand Up @@ -95,7 +96,7 @@ public void init(@Nullable CompoundTag intent) {
Label labelCertified = new Label(ChatFormatting.WHITE + ChatFormatting.BOLD.toString() + "Certified Apps", 10, 66);
homePageLayout.addComponent(labelCertified);

Label labelCertifiedDesc = new Label(ChatFormatting.GRAY + "Verified by Ultreon Team", LAYOUT_WIDTH - 10, 66);
Label labelCertifiedDesc = new Label(ChatFormatting.GRAY + "Verified by Ultreon Studios", LAYOUT_WIDTH - 10, 66);
labelCertifiedDesc.setAlignment(Component.ALIGN_RIGHT);
labelCertifiedDesc.setScale(1d);
labelCertifiedDesc.setShadow(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ public static String getURL(String website) {
Matcher matcher = GitWebFrame.PATTERN_LINK.matcher(website);
if (!matcher.matches()) {
UltreonDevicesMod.LOGGER.error("No Match Found For " + website + "!");
return "https://raw.githubusercontent.com/Ultreon/gitweb-sites/main/";
return "https://gitweb.ultreon.dev";
}
String domain = matcher.group("domain");
String extension = matcher.group("extension");
String directory = matcher.group("directory");
var url = "https://raw.githubusercontent.com/Ultreon/gitweb-sites/main/";
var url = "https://gitweb.ultreon.dev";
for (SiteRegistration siteRegistration : UltreonDevicesMod.SITE_REGISTRATIONS) {
if (siteRegistration.type == ALL) {
url = siteRegistration.site;
Expand Down

0 comments on commit e58b861

Please sign in to comment.