Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#250 update view technology #375

Merged
merged 103 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
deabaae
Move templates and static resources into src/main/resources
checketts Jul 26, 2023
09aaad5
Add Thymeleaf and remove JSP libs
checketts Jul 26, 2023
a7d781e
Migrate playlist view (and fix now playing/rating)
checketts Jul 27, 2023
02293c3
Migrate starred, playlists, and help to Thymeleaf
checketts Jul 27, 2023
d5044a8
Migrate bookmarks, music folders, and getting started to Thymeleaf
checketts Jul 28, 2023
9e9812b
Migrate status to Thymeleaf
checketts Jul 28, 2023
6900a8e
Migrate 'more' page to Thymeleaf
checketts Jul 28, 2023
5a46015
Migrate personalSettings to Thymeleaf
checketts Jul 28, 2023
913b0e9
Migrate podcast channels to Thymeleaf
checketts Jul 28, 2023
2b978e2
Migrate general settings to Thymeleaf
checketts Jul 29, 2023
75cc20d
igrate advanced settings to Thymeleaf
checketts Jul 29, 2023
859bf1b
Migrate credentialSettings to Thymeleaf
checketts Jul 31, 2023
6d583df
Migrate userSettings to Thymeleaf
checketts Jul 31, 2023
d4d2aa2
Migrate player settings to Thymeleaf
checketts Jul 31, 2023
999861e
Migrate share settings and externalPlayer over to Thymeleaf
checketts Aug 1, 2023
0ae0b64
Migrate dlna and sonos setting the Thymeleaf
checketts Aug 1, 2023
e529cd8
Migrate remaining settings to Thymeleaf
checketts Aug 1, 2023
aae52fe
Fix autohide and migrate importPlaylist to Thymeleaf
checketts Aug 1, 2023
d3ddcb7
Migrate editTags to Thymeleaf
checketts Aug 1, 2023
3714734
Migrate lyrics and search to Thymeleaf
checketts Aug 1, 2023
4974044
Remove un-used allMusic controller/view
checketts Aug 1, 2023
21e641f
Upload avatar migrated to Thymeleaf
checketts Aug 1, 2023
7b45cf3
Migrate podcastChannel to Thymeleaf and fix a few migration bugs
checketts Aug 1, 2023
0d87ab3
Migrate over podcast rss view to Thymeleaf
checketts Aug 1, 2023
d60c709
Migrate videoPlayer to Thymeleaf
checketts Aug 1, 2023
cb3260d
Begin migration error pages
checketts Aug 7, 2023
5933480
Migrate 'recover' page to Thymeleaf
checketts Aug 7, 2023
0714397
Address check style findings
checketts Sep 13, 2023
7bce689
Switch to JAR output and upgrade to latest Java 17
checketts Sep 13, 2023
2adb75b
Account for right column doesn't find a new version
checketts Sep 13, 2023
c7cbfab
Merge branch 'main' into checketts/switch-jar
kagemomiji Sep 14, 2023
5cc7754
Fix missing newVersionAvailable in help/about page
checketts Sep 15, 2023
f90c66f
Migrate upload template to Thymeleaf
checketts Sep 15, 2023
09d41ca
Fix degraded add credntials page
checketts Sep 15, 2023
9743dfb
Add ids to make add credential javascript work and fix upload html es…
checketts Sep 15, 2023
17ba048
Ignore unused dependency cxf-rt-databinding-jaxb
checketts Sep 15, 2023
9a75be9
Formate used/total memory in human readable bytes/mb etc
checketts Sep 15, 2023
ddf7173
Fix encoder not being populated whne selecting cred type
checketts Sep 15, 2023
f681f51
Fix local import on help controller and if statement for homePager
checketts Sep 15, 2023
47b3f7c
Fix podcast channel cover art
checketts Sep 15, 2023
05787be
Make 'ratings' correctly readOnly when appropriate
checketts Sep 15, 2023
251746a
Fix album artist cover art, allow share settings to display, and fix …
checketts Sep 16, 2023
7a72df3
Improve share setting expiration formatting
checketts Sep 16, 2023
97b2f81
Allow hyperlink in root warning
checketts Sep 17, 2023
b6a1277
Allow hyperlink in root warning, fix left sidebar index spacing, and …
checketts Sep 17, 2023
f3a1edc
Show bottom left index spacing correctly and show correct dropdowns f…
checketts Sep 17, 2023
a19e90f
Fix areas where spnish accented characters were being escaped incorre…
checketts Sep 18, 2023
25fff73
Merge branch 'main' into checketts/switch-jar
kagemomiji Sep 19, 2023
fed0f81
Fix migrate credentials buttons
checketts Sep 19, 2023
74512cf
Fix 'save' buttons using enclose check boxes
checketts Sep 19, 2023
bffe4f3
Fix checkstyle findings
checketts Sep 20, 2023
371ec23
Fix typo with resourceRootLocation property and provide default for d…
checketts Sep 20, 2023
45403a3
Include settings for playqueue when loading via index controller
checketts Sep 20, 2023
b3564f5
Merge branch 'main' into checketts/switch-jar
kagemomiji Oct 1, 2023
ac8b16d
Merge pull request #299 from checketts/checketts/switch-jar
kagemomiji Oct 8, 2023
999cd26
Merge branch 'issue212-play-queue-repository' into issue250-update-vi…
kagemomiji Jan 6, 2024
850baaa
#250 fix build problems
kagemomiji Jan 7, 2024
ae7637c
#250 fix docker build error
kagemomiji Jan 7, 2024
9aff686
Merge branch 'issue336-hikari-pool-problem' into issue250-update-view…
kagemomiji Jan 22, 2024
b6b54c7
#250 Fix null pointer exception in LeftController
kagemomiji Jan 23, 2024
d9a02e8
#250 fix musicFolserSettings
kagemomiji Jan 23, 2024
3725889
#250 Refactor Dockerfile directory structure
kagemomiji Jan 24, 2024
5bcb545
Merge branch 'main' into issue250-update-view-technology
kagemomiji Jan 24, 2024
be446bd
#250 fix avatar image loading
kagemomiji Jan 26, 2024
6b91f2d
#250 Remove unused maven-pmd-plugin and update buildnumber-maven-plug…
kagemomiji Jan 26, 2024
015edeb
#250 Update version to 11.1.4-SNAPSHOT
kagemomiji Feb 6, 2024
2b3403a
Merge branch 'main' into issue250-update-view-technology
kagemomiji Feb 6, 2024
b228cb1
kagemomiji/airsonic-advanced#250 Update jQuery and jQuery UI versions…
kagemomiji Feb 6, 2024
b46b0cd
kagemomiji/airsonic-advanced#250 implemented CoverArt view
kagemomiji Feb 11, 2024
df87d3d
kagemomiji/airsonic-advanced#250 Add error templates
kagemomiji Feb 11, 2024
14a38da
kagemomiji/airsonic-advanced#250 move memory monitoring functions to …
kagemomiji Feb 11, 2024
b30b494
kagemomiji/airsonic-advanced#250 implemented CredentianSettings view
kagemomiji Feb 11, 2024
bc6fca7
kagemomiji/airsonic-advanced#250 refactored settings views
kagemomiji Feb 11, 2024
41a6e27
kagemomiji/airsonic-advanced#250 remove unnecessary JSON converting
kagemomiji Feb 11, 2024
41dda16
kagemomiji/airsonic-advanced#250 refactored views
kagemomiji Feb 11, 2024
e1398cd
kagemomiji/airsonic-advanced#250 create propertyfile if not exist
kagemomiji Feb 13, 2024
f87e909
kagemomiji/airsonic-advanced#250 update database settings view
kagemomiji Feb 13, 2024
7817cb6
kagemomiji/airsonic-advanced#250 Add DLNACommand class and update DLN…
kagemomiji Feb 13, 2024
f63c142
kagemomiji/airsonic-advanced#250 update editTag view
kagemomiji Feb 15, 2024
d796ab9
kagemomiji/airsonic-advanced#250 update ExternalPlayer view
kagemomiji Feb 15, 2024
948fbe6
kagemomiji/airsonic-advanced#250 add ui-icons for jquery-ui
kagemomiji Feb 18, 2024
054861d
kagemomiji/airsonic-advanced#250 Add HomeCommand and update home.html…
kagemomiji Feb 18, 2024
169429b
kagemomiji/airsonic-advanced#250 Add InternetRadioCommand and update …
kagemomiji Feb 18, 2024
b21dde2
kagemomiji/airsonic-advanced#250 Add TranscodingCommand and update Tr…
kagemomiji Feb 18, 2024
7f86207
kagemomiji/airsonic-advanced#250 change generic of genre repository t…
kagemomiji Feb 18, 2024
c6cde55
kagemomiji/airsonic-advanced#250 update views
kagemomiji Feb 18, 2024
5b24b46
kagemomiji/airsonic-advanced#250 Fix URLs in HTML templates
kagemomiji Feb 18, 2024
37ec08e
kagemomiji/airsonic-advanced#250 fix views console errors
kagemomiji Feb 19, 2024
80d88b2
kagemomiji/airsonic-advanced#250 fix helptools image path error for c…
kagemomiji Feb 19, 2024
5f5248b
kagemomiji/airsonic-advanced#250 update Dockerfile for support jar
kagemomiji Feb 19, 2024
1e8fa5e
kagemomiji/airsonic-advanced#250 change war to jar in github actions
kagemomiji Feb 19, 2024
7809cd9
kagemomiji/airsonic-advanced#250 change docker entry point script to …
kagemomiji Feb 19, 2024
b5d8aea
kagemomiji/airsonic-advanced#250 Fix console error at playlists
kagemomiji Feb 19, 2024
a18e734
kagemomiji/airsonic-advanced#250 revert to war package
kagemomiji Feb 20, 2024
89eb592
kagemomiji/airsonic-advanced#250 fix user setting trouble
kagemomiji Feb 20, 2024
d0d0e6e
kagemomiji/airsonic-advanced#250 treat memory leakable problem by non…
kagemomiji Feb 20, 2024
8bf46bd
Merge branch 'main' into issue250-update-view-technology
kagemomiji Feb 20, 2024
f7020f9
kagemomiji/airsonic-advanced#250 change find method for usersetting
kagemomiji Feb 20, 2024
791c0a9
kagemomiji/airsonic-advanced#250 revert github actions workflows
kagemomiji Feb 20, 2024
c7f9869
kagemomiji/airsonic-advanced#250 fix playlists list view show Object …
kagemomiji Feb 20, 2024
c73bf1f
kagemomiji/airsonic-advanced#250 fix internet radio list in left view
kagemomiji Feb 20, 2024
639998c
kagemomiji/airsonic-advanced#250 fix android-chrome icons src path
kagemomiji Feb 20, 2024
8c3b78f
kagemomiji/airsonic-advanced#250 Fix localization issues in help.html…
kagemomiji Feb 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,5 @@ local.properties

# Code Recommenders
.recommenders/

tmp-home/
142 changes: 69 additions & 73 deletions airsonic-main/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
<!-- For fixing import/export due to https://github.com/liquibase/liquibase/issues/1598 -->
<liquibase.version>4.22.0</liquibase.version>
<logback.version>1.2.13</logback.version>
<mockito.version>5.8.0</mockito.version>
<mariadb.version>3.3.2</mariadb.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -57,16 +59,26 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>jakarta.servlet.jsp</groupId>
<artifactId>jakarta.servlet.jsp-api</artifactId>
<version>2.3.6</version>
<scope>provided</scope>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
<exclusions>
<exclusion>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand All @@ -87,6 +99,20 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<exclusions>
<exclusion>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging-processor</artifactId>
</exclusion>
<exclusion>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
</exclusion>
<exclusion>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging-annotations</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>javax.cache</groupId>
Expand Down Expand Up @@ -150,20 +176,6 @@
</dependency>
<!-- END Spring -->

<!-- taglibs -->
<dependency>
<groupId>org.apache.taglibs</groupId>
<artifactId>taglibs-standard-impl</artifactId>
<version>1.2.5</version>
</dependency>
<dependency>
<groupId>taglibs</groupId>
<artifactId>string</artifactId>
<version>1.1.0</version>
<scope>runtime</scope>
</dependency>
<!-- END taglibs -->

<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
Expand Down Expand Up @@ -219,6 +231,7 @@
<version>1.24.0</version>
</dependency>
<dependency>
<!-- compression library-->
<groupId>org.tukaani</groupId>
<artifactId>xz</artifactId>
<version>1.9</version>
Expand Down Expand Up @@ -302,18 +315,14 @@
<version>1.2.6</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>net.sargue</groupId>
<artifactId>java-time-jsptags</artifactId>
<version>1.1.4</version>
</dependency>

<dependency>
<groupId>jakarta.mail</groupId>
<artifactId>jakarta.mail-api</artifactId>
</dependency>

<dependency>

<groupId>com.hoodcomputing</groupId>
<artifactId>natpmp</artifactId>
<version>0.1</version>
Expand All @@ -339,6 +348,7 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<version>5.2.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -354,6 +364,12 @@
<!-- Cling removed the org.fourthline.cling.transport.impl.apache package in 2.1, which is needed to make Cling work with Tomcat. -->
<!-- Don't upgrade this unless you can test UPnP/DLNA support properly! -->
<version>2.0.1</version>
<exclusions>
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
Expand All @@ -368,6 +384,20 @@
<groupId>org.seamless</groupId>
<artifactId>seamless-util</artifactId>
<version>1.1.0</version>
<exclusions>
<exclusion>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
</exclusion>
<exclusion>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
</exclusion>
<exclusion>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
Expand Down Expand Up @@ -428,6 +458,10 @@
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.commons</groupId>
<artifactId>commons-text</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Fixes liquibase not using slf4j -->
Expand All @@ -453,6 +487,12 @@
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<version>${liquibase.version}</version>
<exclusions>
<exclusion>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
Expand All @@ -462,6 +502,7 @@
</dependency>

<dependency>
<!-- playlist tooling-->
<groupId>com.github.muff1nman.chameleon</groupId>
<artifactId>core</artifactId>
<version>${chameleon.version}</version>
Expand Down Expand Up @@ -515,6 +556,10 @@
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.istack</groupId>
<artifactId>istack-commons-runtime</artifactId>
</exclusion>
</exclusions>
</dependency>

Expand All @@ -528,17 +573,6 @@
<artifactId>slf4j-api</artifactId>
</dependency>

<!-- Embedded tomcat -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>${tomcat.server.scope}</scope>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>${tomcat.server.scope}</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-json</artifactId>
Expand Down Expand Up @@ -615,24 +649,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<configuration>
<language>jsp</language>
<rulesets>
<ruleset>/category/jsp/codestyle.xml</ruleset>
<ruleset>/category/jsp/errorprone.xml</ruleset>
</rulesets>
<includes>
<include>**/*.jsp</include>
<include>**/*.jspf</include>
</includes>
<compileSourceRoots>
<compileSourceRoot>${basedir}/src/main/webapp/WEB-INF/jsp</compileSourceRoot>
</compileSourceRoots>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
Expand Down Expand Up @@ -669,6 +685,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<phase>generate-resources</phase>
Expand Down Expand Up @@ -721,27 +738,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-jspc-maven-plugin</artifactId>
<version>9.4.41.v20210516</version>
<executions>
<execution>
<id>jspc</id>
<goals>
<goal>jspc</goal>
</goals>
<phase>compile</phase>
<configuration>
<!-- Since we are using spring boot - we do not have a web.xml so there is no sense
enabling merging. Furthermore, we output the webXmlFragment to the target/classes
directory such that it will be on the classpath for use during runtime -->
<mergeFragment>false</mergeFragment>
<webXmlFragment>${project.build.outputDirectory}/precompiled-jsp-web.xml</webXmlFragment>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.actuate.autoconfigure.endpoint.jmx.JmxEndpointAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
Expand All @@ -17,7 +18,8 @@
import java.lang.reflect.Method;

@SpringBootApplication(exclude = {
JmxAutoConfiguration.class
JmxAutoConfiguration.class,
JmxEndpointAutoConfiguration.class
})
@EnableTransactionManagement(mode = AdviceMode.ASPECTJ)
@ConfigurationPropertiesScan
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/*
This file is part of Airsonic.

Airsonic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Airsonic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Airsonic. If not, see <http://www.gnu.org/licenses/>.

Copyright 2024 (C) Y.Tory
Copyright 2016 (C) Airsonic Authors
Based upon Subsonic, Copyright 2009 (C) Sindre Mehus
*/
package org.airsonic.player.command;

import javax.validation.constraints.NotNull;

/**
* Command used in ChangeCoverArtController.
*/
public class ChangeCoverArtCommand {

@NotNull
private Integer id;
private String artist;
private String album;

public ChangeCoverArtCommand() {
}

public ChangeCoverArtCommand(Integer id, String artist, String album) {
this.id = id;
this.artist = artist;
this.album = album;
}

public Integer getId() {
return id;
}

public String getArtist() {
return artist;
}

public String getAlbum() {
return album;
}

public void setId(int id) {
this.id = id;
}

public void setArtist(String artist) {
this.artist = artist;
}

public void setAlbum(String album) {
this.album = album;
}

}
Loading