Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ target
logs
attachments
*.patch
.env
*.log



44 changes: 44 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
services:
postgres-jira-prod:
image: postgres:16
container_name: postgres-jira-prod
restart: unless-stopped
env_file:
- .env
environment:
POSTGRES_DB: jira
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
ports:
- "5434:5432"
volumes:
- pgprod_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d jira"]
interval: 5s
timeout: 3s
retries: 10

postgres-jira-test:
image: postgres:16
container_name: postgres-jira-test
restart: unless-stopped
env_file:
- .env
environment:
POSTGRES_DB: jira-test
POSTGRES_USER: ${TEST_DB_USER}
POSTGRES_PASSWORD: ${TEST_DB_PASSWORD}
ports:
- "5433:5432"
volumes:
- pgtest_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${TEST_DB_USER} -d jira-test"]
interval: 5s
timeout: 3s
retries: 10

volumes:
pgprod_data:
pgtest_data:
16 changes: 16 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

<properties>
<java.version>17</java.version>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<springdoc.version>2.0.2</springdoc.version>
<mapstruct.version>1.5.3.Final</mapstruct.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -85,6 +87,7 @@
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.7.3</version>
<scope>runtime</scope>
</dependency>

Expand Down Expand Up @@ -142,6 +145,14 @@
<artifactId>junit-platform-launcher</artifactId>
<scope>test</scope>
</dependency>

<!-- H2 for test profile -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>test</scope>
</dependency>

</dependencies>

<build>
Expand Down Expand Up @@ -170,7 +181,12 @@
<!--https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
<configuration>
<skipTests>true</skipTests>
<systemPropertyVariables>
<spring.profiles.active>test</spring.profiles.active>
</systemPropertyVariables>
<argLine>-Dfile.encoding=UTF-8</argLine>
</configuration>
</plugin>
Expand Down
Binary file added project-feature.zip
Binary file not shown.
Binary file added project-feature1.zip
Binary file not shown.
23 changes: 15 additions & 8 deletions resources/mails/email-confirmation.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<html lang="uk" xmlns:th="http://www.thymeleaf.org">
<head>
<title>JiraRush - подтверждение почты</title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
<title th:text="#{mail.confirm.title}">JiraRush - подтверждение почты</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
<p th:text="'Привет, ' + ${user.firstName} + '.'"/>
<p>Чтобы завершить настройку учетной записи и начать пользоваться JiraRush, подтвердите, что вы правильно указали вашу
электронную почту.</p>
<a th:href="${confirmationUrl}">Подтвердить почту</a>
<p th:text="#{mail.confirm.hello(${user.firstName})}">Привет, Ім’я.</p>
<p th:text="#{mail.confirm.body}">
Чтобы завершить настройку учетной записи и начать пользоваться JiraRush, подтвердите, что вы правильно указали вашу электронную почту.
</p>
<p>
<a th:href="${confirmationUrl}" th:text="#{mail.confirm.button}">Подтвердить почту</a>
</p>
<p th:text="#{mail.confirm.note}">
Если вы не регистрировались в JiraRush, просто проигнорируйте это письмо.
</p>
<p th:text="#{mail.confirm.signature}">С уважением, команда JiraRush</p>
</body>
</html>
</html>
22 changes: 15 additions & 7 deletions resources/mails/password-reset.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<html lang="uk" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head">
<title>JiraRush - установить новый пароль</title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
<title th:text="#{mail.reset.title}">JiraRush — встановити новий пароль</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
<p th:text="'Привет, ' + ${user.firstName} + '.'"/>
<p th:text="'Мы получили запрос на установку нового пароля JiraRush для учетной записи: ' + ${user.email} + '.'"/>
<a th:href="${resetUrl}">Установить пароль</a>
<p th:text="#{mail.reset.hello(${user.firstName})}">Привіт, Ім’я.</p>
<p th:text="#{mail.reset.request(${user.email})}">
Ми отримали запит на встановлення нового пароля JiraRush для облікового запису: email.
</p>
<p>
<a th:href="${resetUrl}" th:text="#{mail.reset.button}">Встановити пароль</a>
</p>
<p th:text="#{mail.reset.note}">
Якщо ви не надсилали цей запит, просто проігноруйте цей лист.
</p>
<p th:text="#{mail.reset.signature}">З повагою, команда JiraRush</p>
</body>
</html>
</html>
12 changes: 0 additions & 12 deletions resources/static/fontawesome/css/all.css
Original file line number Diff line number Diff line change
Expand Up @@ -8603,10 +8603,6 @@ readers do not read off random characters that represent icons */
content: "\f3e8";
}

.fa-vk:before {
content: "\f189";
}

.fa-untappd:before {
content: "\f405";
}
Expand Down Expand Up @@ -9955,10 +9951,6 @@ readers do not read off random characters that represent icons */
content: "\f3bc";
}

.fa-yandex:before {
content: "\f413";
}

.fa-readme:before {
content: "\f4d5";
}
Expand Down Expand Up @@ -10183,10 +10175,6 @@ readers do not read off random characters that represent icons */
content: "\f7c6";
}

.fa-yandex-international:before {
content: "\f414";
}

.fa-cc-amex:before {
content: "\f1f3";
}
Expand Down
2 changes: 1 addition & 1 deletion resources/static/fontawesome/css/all.min.css

Large diffs are not rendered by default.

Loading