Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Update library page
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldieeins committed Jun 13, 2024
1 parent 56b219a commit 3260b2c
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 10 deletions.
18 changes: 8 additions & 10 deletions application-main/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,38 +11,37 @@
</parent>

<artifactId>application-main</artifactId>
<version>2024.6-beta.1</version>
<version>2024.6-beta.4</version>

<properties>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>com.zyneonstudios</groupId>
<artifactId>nexus-auth</artifactId>
<version>2024.4.2</version>
<version>2024.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.zyneonstudios</groupId>
<artifactId>verget-all</artifactId>
<version>2024.4.2.2</version>
<version>2024.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.zyneonstudios</groupId>
<artifactId>nexus-zyndex</artifactId>
<version>2024.4.3.2</version>
<version>2024.6</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>fr.flowarg</groupId>
<artifactId>azuljavadownloader</artifactId>
<version>1.0.1</version>
<version>LATEST</version>
<scope>compile</scope>
</dependency>

Expand Down Expand Up @@ -81,9 +80,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>21</source>
<target>21</target>
<release>21</release>
<source>17</source>
<release>17</release>
</configuration>
</plugin>

Expand Down
Binary file modified application-main/src/main/resources/modules.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,39 @@ function addAction(title,iconClass,onclick,id) {
eval(onclick);
}
}
actionTemplate.parentNode.insertBefore(actionEntry,actionTemplate);
}

function addGroup(title,id) {
const actionTemplate = document.getElementById("menu-group-template");
const actionEntry = actionTemplate.cloneNode(true);
actionEntry.querySelector("h3").innerText = title;
actionEntry.querySelector("li").id = "template-"+id+"-entry";
actionEntry.querySelector("li").style.display = "none";
actionEntry.id = id;
actionTemplate.parentNode.insertBefore(actionEntry,actionTemplate);
}

function addGroupEntry(groupId,title,id,image) {
const actionTemplate = document.getElementById("template-"+groupId+"-entry");
const actionEntry = actionTemplate.cloneNode(true);

actionEntry.id = id;
actionEntry.style.display = "inherit";
actionEntry.onclick = function () {
connector("sync.button.library.menu.group."+groupId+"."+id);
}

if(title) {
actionEntry.querySelector("p").innerText = title;
}

if(image) {
actionEntry.querySelector("i").style.display = "none";
actionEntry.querySelector("img").src = image;
} else {
actionEntry.querySelector("i").classList = "bx bx-x";
}

actionTemplate.parentNode.insertBefore(actionEntry,actionTemplate);
}

0 comments on commit 3260b2c

Please sign in to comment.