Skip to content

Commit

Permalink
Merge branch 'v2_5_0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins committed Dec 3, 2020
2 parents c8e83d1 + 156e5ee commit a494f3c
Show file tree
Hide file tree
Showing 173 changed files with 4,126 additions and 522 deletions.
Binary file removed .gitlab-ci.yml
Binary file not shown.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM tomcat:9-jre8
FROM tomcat:9-jdk11

RUN rm -rf /usr/local/tomcat/webapps/*
COPY build/2.4.5/BudgetMaster-v2.4.5.war $CATALINA_HOME/webapps/ROOT.war
COPY build/2.5.0/BudgetMaster-v2.5.0.war $CATALINA_HOME/webapps/ROOT.war
COPY src/main/resources/config/templates/settings-docker.properties /root/.Deadlocker/BudgetMaster/settings.properties

EXPOSE 8080
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Manage your monthly budget easily with BudgetMaster

- __start:__ 17.12.16
- __current release:__ v2.4.5 (28) from 19.08.20
- __current release:__ v2.5.0 (29) from 03.12.20

## Key Features
- Keep your data private - Host your own BudgetMaster server or use it in standalone mode. All data remains on your machines.
Expand All @@ -16,7 +16,7 @@ Manage your monthly budget easily with BudgetMaster
- Password protected website - Your data can only be accessed by entering the correct password. (Note: The database is not encrypted)
- Localization - English and German supported.
- Search and Filter - Search for individual transactions or filter your view.
- Visualize your data - Use on of the pre-defined charts or create your one by using the chart framework to visualize and analyze your data.
- Visualize your data - Use one of the pre-defined charts or create your one by using the chart framework to visualize and analyze your data.
- Auto Backup - Schedule an automatic export of your database content.

## Available Languages
Expand Down
Binary file removed build/logo/BudgetMaster Icon.blend
Binary file not shown.
1 change: 0 additions & 1 deletion build/logo/Font.txt

This file was deleted.

Binary file modified build/screenshots/dark/accounts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/dark/categories.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/dark/chart_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/dark/chart_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/dark/chart_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/dark/chart_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/dark/filter_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/dark/filter_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/dark/home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/dark/hotkeys.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/dark/new_category.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/dark/new_normal_transaction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/dark/new_transaction_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/dark/new_transaction_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/dark/new_transfer_transaction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/dark/reports.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/dark/search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/dark/settings_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/dark/settings_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/dark/templates_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed build/screenshots/dark/templates_2.png
Binary file not shown.
Binary file modified build/screenshots/dark/transactions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/light/accounts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/light/categories.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/light/chart_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/screenshots/light/chart_2.png
Binary file modified build/screenshots/light/chart_3.png
Binary file modified build/screenshots/light/chart_4.png
Binary file modified build/screenshots/light/filter_1.png
Binary file modified build/screenshots/light/filter_2.png
Binary file modified build/screenshots/light/home.png
Binary file modified build/screenshots/light/hotkeys.png
Binary file modified build/screenshots/light/new_category.png
Binary file modified build/screenshots/light/new_normal_transaction.png
Binary file modified build/screenshots/light/new_transaction_1.png
Binary file modified build/screenshots/light/new_transaction_2.png
Binary file modified build/screenshots/light/new_transfer_transaction.png
Binary file modified build/screenshots/light/reports.png
Binary file modified build/screenshots/light/search.png
Binary file modified build/screenshots/light/settings_1.png
Binary file modified build/screenshots/light/settings_2.png
Binary file modified build/screenshots/light/templates_1.png
Binary file removed build/screenshots/light/templates_2.png
Diff not rendered.
Binary file modified build/screenshots/light/transactions.png
34 changes: 17 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>de.deadlocker8</groupId>
<artifactId>BudgetMaster</artifactId>
<version>2.4.5</version>
<version>2.5.0</version>
<name>BudgetMaster</name>

<repositories>
Expand Down Expand Up @@ -35,7 +35,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.5.RELEASE</version>
<version>2.2.11.RELEASE</version>
<relativePath/>
</parent>

Expand All @@ -54,23 +54,23 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<java.version>11</java.version>

<jlibs.version>2.0.6</jlibs.version>
<versionizer.version>1.2.1</versionizer.version>
<webjars-locator.version>0.39</webjars-locator.version>
<jquery.version>3.4.1</jquery.version>
<jlibs.version>3.2.0</jlibs.version>
<versionizer.version>3.0.1</versionizer.version>
<webjars-locator.version>0.40</webjars-locator.version>
<jquery.version>3.5.1</jquery.version>
<materializecss.version>1.0.0</materializecss.version>
<fontawesome.version>5.12.0</fontawesome.version>
<sortablejs.version>1.8.3</sortablejs.version>
<mousetrap.version>1.6.1</mousetrap.version>
<fontawesome.version>5.15.1</fontawesome.version>
<sortablejs.version>1.10.2</sortablejs.version>
<mousetrap.version>1.6.5</mousetrap.version>
<codemirror.version>5.50.0</codemirror.version>
<selenium.version>3.141.59</selenium.version>
<assertj-core.version>3.15.0</assertj-core.version>
<assertj-core.version>3.17.1</assertj-core.version>

<app.versionDate>${maven.build.timestamp}</app.versionDate>
<maven.build.timestamp.format>dd.MM.yy</maven.build.timestamp.format>
<app.versionCode>28</app.versionCode>
<app.versionCode>29</app.versionCode>
<app.author>Robert Goldmann</app.author>

<project.outputDirectory>build/${project.version}</project.outputDirectory>
Expand Down Expand Up @@ -245,7 +245,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.2</version>
<version>3.3.1</version>
<configuration>
<webappDirectory>${basedir}/src/main</webappDirectory>
<outputDirectory>${project.outputDirectory}</outputDirectory>
Expand All @@ -264,7 +264,7 @@
<plugin>
<groupId>com.akathist.maven.plugins.launch4j</groupId>
<artifactId>launch4j-maven-plugin</artifactId>
<version>1.7.21</version>
<version>1.7.25</version>
<executions>
<execution>
<id>l4j-clui</id>
Expand All @@ -283,7 +283,7 @@
<jre>
<bundledJre64Bit>false</bundledJre64Bit>
<bundledJreAsFallback>false</bundledJreAsFallback>
<minVersion>1.8.0</minVersion>
<minVersion>11</minVersion>
<jdkPreference>preferJre</jdkPreference>
<runtimeBits>64/32</runtimeBits>
</jre>
Expand All @@ -296,7 +296,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<version>2.22.1</version>
<configuration>
<junitArtifactName>junit:junit</junitArtifactName>
<argLine>-Dfile.encoding=UTF-8</argLine>
Expand All @@ -311,7 +311,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.10</version>
<version>1.12</version>
<executions>
<execution>
<id>attach-artifacts</id>
Expand Down
18 changes: 13 additions & 5 deletions src/main/java/de/deadlocker8/budgetmaster/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;
import java.text.MessageFormat;
import java.util.*;


Expand Down Expand Up @@ -47,20 +48,27 @@ public Locale getLocale()
}

@Override
public String getBaseResource()
public String[] getBaseResources()
{
return "languages/";
return new String[]{"languages/base", "languages/news"};
}

@Override
public LocalizationMessageFormatter messageFormatter()
{
return new JavaMessageFormatter();
}

@Override
public boolean useMultipleResourceBundles()
{
return true;
}
});
Localization.load();

ProgramArgs.setArgs(Arrays.asList(args));
LOGGER.debug(MessageFormat.format("Starting with ProgramArgs: {0}", ProgramArgs.getArgs()));

Path applicationSupportFolder = getApplicationSupportFolder();
PathUtils.createDirectoriesIfNotExists(applicationSupportFolder);
Expand Down Expand Up @@ -106,12 +114,12 @@ else if(ProgramArgs.isDebug())
}
else
{
LOGGER.error("Ignoring option --customFolder: provided path '" + customFolder.toString() + "' is not absolute");
LOGGER.error(MessageFormat.format("Ignoring option --customFolder: provided path ''{0}'' is not absolute", customFolder.toString()));
}
}

savePath = determineFolder(savePath);
LOGGER.info("Used save path: " + savePath.toString());
LOGGER.info(MessageFormat.format("Used save path: {0}", savePath.toString()));
return savePath;
}

Expand Down Expand Up @@ -180,6 +188,6 @@ public void run(ApplicationArguments args)

private static void logAppInfo(String appName, String versionName, String versionCode, String versionDate)
{
LOGGER.info(appName + " - v" + versionName + " - (versioncode: " + versionCode + ") from " + versionDate + ")");
LOGGER.info(MessageFormat.format("{0} - v{1} - (versioncode: {2}) from {3})", appName, versionName, versionCode, versionDate));
}
}
4 changes: 4 additions & 0 deletions src/main/java/de/deadlocker8/budgetmaster/ProgramArgs.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ public class ProgramArgs

private static List<String> args = new ArrayList<>();

private ProgramArgs()
{
}

public static void setArgs(List<String> args)
{
ProgramArgs.args = args;
Expand Down
16 changes: 15 additions & 1 deletion src/main/java/de/deadlocker8/budgetmaster/accounts/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public class Account

private Boolean isSelected = false;
private Boolean isDefault = false;
private Boolean isReadOnly = false;

@Expose
private AccountType type;
Expand All @@ -39,6 +40,7 @@ public Account(String name, AccountType type)
this.type = type;
this.isSelected = false;
this.isDefault = false;
this.isReadOnly = false;
}

public Account()
Expand Down Expand Up @@ -95,6 +97,16 @@ public void setDefault(Boolean aDefault)
isDefault = aDefault;
}

public Boolean isReadOnly()
{
return isReadOnly;
}

public void setReadOnly(Boolean readOnly)
{
isReadOnly = readOnly;
}

public AccountType getType()
{
return type;
Expand All @@ -114,6 +126,7 @@ public String toString()
", referringTransactions=" + referringTransactions +
", isSelected=" + isSelected +
", isDefault=" + isDefault +
", isReadOnly=" + isReadOnly +
", type=" + type +
'}';
}
Expand All @@ -126,6 +139,7 @@ public boolean equals(Object o)
Account account = (Account) o;
return isSelected == account.isSelected &&
isDefault == account.isDefault &&
isReadOnly == account.isReadOnly &&
Objects.equals(ID, account.ID) &&
Objects.equals(name, account.name) &&
type == account.type;
Expand All @@ -134,6 +148,6 @@ public boolean equals(Object o)
@Override
public int hashCode()
{
return Objects.hash(ID, name, isSelected, isDefault, type);
return Objects.hash(ID, name, isSelected, isDefault, isReadOnly, type);
}
}
Loading

0 comments on commit a494f3c

Please sign in to comment.