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

Релиз 2024.2 #610

Draft
wants to merge 148 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
db9c382
add README-en.md in english in accordance with issue #265
Mar 24, 2024
52f940c
Merge pull request #590 from Sheventon/feature-english-readme
vananiev Mar 27, 2024
df46944
add lang icons to readme
vananiev Mar 27, 2024
a768006
fix image style
vananiev Mar 27, 2024
25d3504
version 2024.2
vananiev Apr 5, 2024
9aeee76
update to java 22
vananiev Apr 5, 2024
e9344f2
update to hibernate 6.4.4
vananiev Apr 7, 2024
7538f77
add AssignedOrGeneratedValue annotation
vananiev Apr 7, 2024
8ea83a0
impl BeforeOrOnExecutionGenerator
vananiev Apr 8, 2024
abae506
Merge pull request #592 from spacious-team/upgrade-hibernate
vananiev Apr 15, 2024
d244a8d
refactor some classes
vananiev Apr 21, 2024
a93b780
update spring boot to 3.2.5
vananiev Apr 22, 2024
eb2198b
Merge pull request #593 from spacious-team/update-spring-boot
vananiev Apr 22, 2024
6dd5399
fix spring boot update (#593)
vananiev Apr 22, 2024
574a1ee
Bump com.h2database:h2 from 2.1.214 to 2.2.220
dependabot[bot] Apr 22, 2024
d1b53af
Merge branch 'refs/heads/hotfix-2024.1.1' into develop
vananiev May 4, 2024
212a192
update h2 to 2.2.224 and import db
vananiev May 4, 2024
5868a4b
Merge pull request #594 from spacious-team/dependabot/maven/com.h2dat…
vananiev May 4, 2024
2079f16
update spring boot version in readme
vananiev May 19, 2024
125fa4b
update paketo-buildpacks/java
vananiev May 19, 2024
14ab91c
Merge branch 'refs/heads/develop' into task-update-java
vananiev May 19, 2024
d1eefbf
Merge pull request #591 from spacious-team/task-update-java
vananiev May 19, 2024
f6909a6
Merge branch 'refs/heads/hotfix-2024.1' into develop
vananiev May 19, 2024
2c30ad1
update readme
vananiev May 19, 2024
419c197
refactor AbstractRestController
vananiev May 21, 2024
c19166a
replace saveAndFlush() in transaction by save() in transaction
vananiev May 21, 2024
ee746a7
update spring-boot to 3.3.0
vananiev May 26, 2024
333ab29
Update README-en.md
inav975 Jun 4, 2024
8047897
Merge pull request #600 from inav975/develop
vananiev Jun 4, 2024
89db16a
Update AssignedOrIdentityGenerator.java
rikottafreska Jun 12, 2024
7faceb9
Merge pull request #602 from rikottafreska/develop
vananiev Jun 12, 2024
b31a9a1
add EntityRepositoryService
vananiev Jul 20, 2024
95918b0
add AbstractEntityRepositoryServiceTest
vananiev Jul 20, 2024
5412be0
restore correct Created status for http PUT method, change OK to No C…
vananiev Jul 21, 2024
43aa727
return 204 No Content by http delete method
vananiev Jul 21, 2024
8300dfd
change EntityRepositoryService interface
vananiev Jul 26, 2024
e71624c
refactor InvestbookApiClient.saveWithoutUpdate()
vananiev Jul 27, 2024
a7beb23
Merge branch 'hotfix-2024.1' into develop
vananiev Aug 22, 2024
7731ba9
Merge branch 'hotfix-2024.1' into develop
vananiev Aug 22, 2024
402621b
fix transaction controller POST location header value "/transactions/…
vananiev Aug 31, 2024
709933e
make POST response Location header optional
vananiev Sep 1, 2024
1cee892
improve uniq index violation check for h2 and mariadb
vananiev Sep 1, 2024
cfedfab
replace [insert + select id] with singe select for duplicate transact…
vananiev Sep 1, 2024
77d5353
replace [insert + select id] with singe select for duplicate transact…
vananiev Sep 1, 2024
3b257be
fix lzy loading by optional=false property
vananiev Sep 1, 2024
c997a41
do not do extra select
vananiev Sep 1, 2024
478ef69
disable mariadb duplicate key errors
vananiev Sep 1, 2024
0b60c45
add jpa entity nullable = false fields attribute
vananiev Sep 2, 2024
96c907d
add openapi response codes
vananiev Jul 21, 2024
00a278a
Merge pull request #608 from spacious-team/improvement-rest-api
vananiev Sep 2, 2024
a25abfd
Merge pull request #609 from spacious-team/task-gh-498_openapi_respon…
vananiev Sep 2, 2024
1211600
update spring boot to 3.3.3 and update other deps
vananiev Sep 2, 2024
7861c9e
wrote few unit tests for moexClient
Sprokof Sep 9, 2024
e9b1148
Merge pull request #611 from Sprokof/unitTest-moexClient
vananiev Sep 10, 2024
8aa4d45
update spring boot to 3.3.4 and update other deps
vananiev Sep 29, 2024
11ece36
Merge pull request #613 from spacious-team/task-update-deps
vananiev Sep 29, 2024
75f3d38
add page loading animation before spring init
DanielVsh Oct 29, 2024
0ee267f
Loading page use dynamic ports from an .application file
DanielVsh Oct 30, 2024
3fbad60
LoadingPageServer refactor and improvements
DanielVsh Nov 1, 2024
8e14e4a
Load properties directly from classpath
DanielVsh Nov 1, 2024
5c102b0
Read properties with fallback in case of debug
DanielVsh Nov 2, 2024
449076d
Merge pull request #614 from DanielVsh/feature-gh-578
vananiev Nov 2, 2024
d4ef609
add checker framework and unit tests github action
vananiev May 3, 2023
2987e79
add tests badge to README.md
vananiev May 3, 2023
c043c2f
add package-info.java
vananiev May 3, 2023
e2ddb9e
add Nullable to entity classes
vananiev May 4, 2023
590fd88
fix compilation error
vananiev Jan 3, 2024
204340c
replace Nullable annotation
vananiev Jan 3, 2024
efdcf2f
fix controller npe warns
vananiev Jan 3, 2024
8615044
fix unit tests workflow
vananiev Jan 3, 2024
2d4b87b
fix npe warns for TradePof
vananiev Jan 4, 2024
ebb6e12
fix nullable warns
vananiev Jan 6, 2024
0ca774a
update maven-compiler-plugin to fix compilation error
vananiev Sep 29, 2024
8e3cb08
fix nullable warn in api package
vananiev Sep 30, 2024
775ccc7
fix unit tests ci
vananiev Sep 30, 2024
a731556
update jacoco version to 0.8.12
vananiev Sep 30, 2024
6f26abf
fix codecov
vananiev Sep 30, 2024
e6556ff
fix nullness warn in openformat package
vananiev Oct 17, 2024
7086aac
add nullable annotations
vananiev Oct 17, 2024
65c05a6
update broker-report-parser-api
vananiev Oct 21, 2024
eeabbc9
refactor AbstractBrokerReport
vananiev Oct 22, 2024
78a97a9
remove unnecessary annos (idea 2024.2 bug)
vananiev Oct 22, 2024
6d6ba5b
add permit-nullness-assertion-exception.astub
vananiev Oct 27, 2024
c25e8f0
add nullable annos
vananiev Oct 27, 2024
e5f557b
fix checker framework "override.param" warn
vananiev Oct 27, 2024
05d8579
fix null warning on enum
vananiev Oct 27, 2024
959dbf7
fix removal warn
vananiev Oct 27, 2024
964f2d1
fix return checker framework warning
vananiev Oct 27, 2024
d78f5e4
fix type.anno.before.modifier checker framework warning
vananiev Oct 28, 2024
d9b273e
fix type.anno.before.decl.anno checker framework warning
vananiev Oct 28, 2024
ae90efa
remove unnecessary hibernate-jpamodelgen dep (moved to maven-compiler…
vananiev Oct 28, 2024
d60818d
fix "initialization.static.field.uninitialized" checker framework warn
vananiev Oct 28, 2024
d600738
fix "initialization.field.uninitialized" checker framework warn
vananiev Oct 29, 2024
03e899d
close executor service
vananiev Oct 31, 2024
6ee7349
fix "method.invocation" checker framework warn
vananiev Oct 31, 2024
3545b9c
add .idea/misc.xml with nullable annotation configuration
vananiev Nov 1, 2024
e3132a9
fix some "assignment" checker framework warn
vananiev Nov 1, 2024
938b12a
Revert "add .idea/misc.xml with nullable annotation configuration"
vananiev Nov 2, 2024
564ca58
fix remaining "assignment" checker framework warn
vananiev Nov 2, 2024
28abcfb
fix AbstractEntityRepositoryService tests
vananiev Nov 2, 2024
4b50804
fix "unboxing.of.nullable" checker framework warn
vananiev Nov 2, 2024
b51b9c7
fix one "argument" checker framework warn
vananiev Nov 2, 2024
b619ea6
fix all other "argument" checker framework warn
vananiev Nov 3, 2024
f990423
fix "dereference.of.nullable" checker framework warn
vananiev Nov 3, 2024
412776c
impl todo from pom.xml
vananiev Nov 3, 2024
1406ef8
fix checker framework warn for LoadingPageServer
vananiev Nov 3, 2024
69f2fc5
fir idea build
vananiev Nov 3, 2024
217f951
clarify comment
vananiev Nov 3, 2024
b627a28
revert jakarta notnull anno
vananiev Nov 3, 2024
2dc0ebb
refactor SecurityHelper
vananiev Nov 4, 2024
f179b6a
refactor TinkoffSecurityQuoteTable
vananiev Nov 4, 2024
cdb7b80
refactor uralsib CashFlowTable
vananiev Nov 5, 2024
6db9494
revert uralsib CouponAmortizationRedemptionTable logic
vananiev Nov 5, 2024
0d2c3ca
bugfix a2982ff0
vananiev Nov 5, 2024
8f68914
refactor VtbSecurityDepositAndWithdrawalTable
vananiev Nov 6, 2024
4bde784
remove unused code
vananiev Nov 6, 2024
c5409f0
restore jakarta validation annotations
vananiev Nov 6, 2024
43af15a
security description sector allows null
vananiev Nov 6, 2024
5f30e36
Merge pull request #541 from spacious-team/task-gh-465
vananiev Nov 6, 2024
5239d5b
update java to 23
vananiev Sep 29, 2024
54d7b8f
update java and lombok version
vananiev Nov 15, 2024
fc1fc2c
remove idea compiler warning
vananiev Nov 15, 2024
3f88cb1
remove jaxb-runtime compile scope
vananiev Nov 15, 2024
e06fd74
java since 21 doesn't support 32 bit windows
vananiev Nov 15, 2024
6f2c055
add hint to pom.xml
vananiev Nov 16, 2024
3ae40dc
update github action java version to 23
vananiev Nov 16, 2024
a3a5424
add codecov.yml
vananiev Nov 16, 2024
44f9b1e
Merge pull request #612 from spacious-team/task-java-23
vananiev Nov 16, 2024
5429a19
update spring-boot to 3.3.5
vananiev Nov 16, 2024
ddc06c0
update java to 23 in docker image
vananiev Nov 16, 2024
a2a5cd6
remove orphan testng dep
vananiev Nov 16, 2024
0845828
do not bind port twice
vananiev Nov 16, 2024
c42d19e
install msi without admin credentials
vananiev Nov 16, 2024
19aa65f
fix app properties location
vananiev Nov 16, 2024
6ede5bd
update jpackage-maven-plugin
vananiev Nov 16, 2024
7997615
clarify jpackage-maven-plugin configuration
vananiev Nov 16, 2024
7453979
Merge pull request #618 from spacious-team/task-gh-617-no_admin_pass_…
vananiev Nov 16, 2024
9c93bff
add info about installing wix without admin rights
vananiev Nov 18, 2024
e20d387
doesn't open browser in debug mode
vananiev Nov 18, 2024
83e54f1
Merge pull request #623 from spacious-team/task-disable-browser-on-debug
vananiev Nov 18, 2024
bcbb508
fix runtime exceptions for forms pages
vananiev Nov 18, 2024
45b15ce
six security-events edit form
vananiev Nov 18, 2024
a6a507f
search derivative by standard ticker
vananiev Nov 18, 2024
c856110
add derivative profit type for forms events pages
vananiev Nov 18, 2024
132f59f
add filter by cash flow type
vananiev Nov 18, 2024
6f4fde5
Merge pull request #624 from spacious-team/improvement-gh-583-filter_…
vananiev Nov 18, 2024
36d2dbc
show no security icon
vananiev Nov 18, 2024
06f78a3
Merge pull request #625 from spacious-team/feature-gh-584-no_security…
vananiev Nov 18, 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
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '21'
java-version: '23'
distribution: 'liberica'
cache: maven
- name: Publish
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Unit Tests

on:
workflow_dispatch:
pull_request:
branches:
- 'master'
- 'develop'
push:
branches:
- 'master'
- 'develop'

jobs:
tests:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '23'
distribution: 'liberica'
cache: maven

- name: Maven Tests
run: mvn --batch-mode clean test

- name: Test Coverage
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: SonarCloud Analyze
run: >
mvn --batch-mode sonar:sonar
-Dsonar.projectKey=spacious-team_investbook
-Dsonar.organization=spacious-team
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.login=$SONAR_TOKEN
-Dsonar.coverage.jacoco.xmlReportPaths=./target/site/jacoco/jacoco.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
5 changes: 3 additions & 2 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.1/apache-maven-3.8.1-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
wrapperVersion=3.3.2
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.8/apache-maven-3.9.8-bin.zip
220 changes: 220 additions & 0 deletions README-en.md

Large diffs are not rendered by default.

18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
[![java-version](https://img.shields.io/badge/java-21-brightgreen?style=flat-square)](https://openjdk.org/)
[![spring-boot-version](https://img.shields.io/badge/spring--boot-3.0.7-brightgreen?style=flat-square)](https://github.com/spring-projects/spring-boot/releases)
[<img src="https://github.com/spacious-team/investbook/assets/11336712/7b16c124-5230-403e-8df9-7652132e76dd" align="right"/>](README-en.md)
[<img src="https://github.com/spacious-team/investbook/assets/11336712/14847ff5-827e-4d0f-a4e9-882cb0d1397c" align="right"/>](README.md)<br/>

[![java-version](https://img.shields.io/badge/java-23-brightgreen?style=flat-square)](https://openjdk.org/)
[![spring-boot-version](https://img.shields.io/badge/spring--boot-3.3.5-brightgreen?style=flat-square)](https://github.com/spring-projects/spring-boot/releases)
[![hits-of-code](https://img.shields.io/badge/dynamic/json?style=flat-square&color=lightblue&label=hits-of-code&url=https://hitsofcode.com/github/spacious-team/investbook/json?branch=develop&query=$.count)](https://hitsofcode.com/github/spacious-team/investbook/view?branch=develop)
[![github-closed-pull-requests](https://img.shields.io/github/issues-pr-closed/spacious-team/investbook?style=flat-square&color=brightgreen)](https://github.com/spacious-team/investbook/pulls?q=is%3Apr+is%3Aclosed)
[![Unit tests](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fspacious-team%2Finvestbook%2Fbadge%3Fref%3Ddevelop&style=flat-square&label=test&logo=none)](
https://github.com/spacious-team/investbook/actions/workflows/unit-tests.yml)
[![github-workflow-status](https://img.shields.io/github/actions/workflow/status/spacious-team/investbook/publish-docker.yml?style=flat-square&branch=master)](https://github.com/spacious-team/investbook/actions/workflows/publish-docker.yml)
[![github-all-releases](https://img.shields.io/github/downloads/spacious-team/investbook/total?style=flat-square&logo=github&color=lightblue)](https://github.com/spacious-team/investbook/releases/latest)
[![docker-pulls](https://img.shields.io/docker/pulls/spaciousteam/investbook?style=flat-square&logo=docker&color=lightblue&logoColor=white)](https://hub.docker.com/r/spaciousteam/investbook)
Expand Down Expand Up @@ -156,16 +161,15 @@ Investbook также может быть запущен в [docker](docs/run-by
будет открыт в сети интернет).

### Почему код приложения открыт
Идея открытого исходного кода (open source) заключается в свободе разработки и использования программного обеспечения.
Многие известные бренды используют open source, например [Instagram](https://github.com/Instagram),
Для некоторых сфер решения с открытым исходным кодом подходят лучше других, например в сферах финансов и шифрования данных,
т.к. этим решениям можно доверять вследствие того, что вы или любой другой желающий может посмотреть код и убедиться
в безопасности программы. Многие известные бренды используют open source, например [Instagram](https://github.com/Instagram),
[Android](https://ru.wikipedia.org/wiki/Android#%D0%98%D1%81%D1%85%D0%BE%D0%B4%D0%BD%D1%8B%D0%B9_%D0%BA%D0%BE%D0%B4),
[Telegram](https://ru.wikipedia.org/wiki/Telegram), [Twitter](https://opensource.twitter.dev/),
[Google Chrome](https://ru.wikipedia.org/wiki/Google_Chrome),
[Mozilla Firefox](https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Source_Code/Downloading_Source_Archives),
сайты с защищенным соединением [https](https://ru.wikipedia.org/wiki/OpenSSL), такие как https://vk.com и др.
Для некоторых сфер решения с открытым исходным кодом подходят лучше других, например в сферах финансов и шифрования данных,
т.к. этим решениям можно доверять вследствие того, что вы или любой другой желающий может посмотреть код и убедиться
в безопасности программы.
Идея открытого исходного кода (open source) заключается в свободе разработки и использования программного обеспечения.

<details>
<summary>Мнение Илона Маска об открытом исходном коде.</summary>
Expand Down
76 changes: 76 additions & 0 deletions checkerframework.astub
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
/*
* InvestBook
* Copyright (C) 2024 Spacious Team <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import org.checkerframework.checker.nullness.qual.Nullable;
import org.checkerframework.checker.nullness.qual.EnsuresNonNull;
import org.checkerframework.checker.nullness.qual.EnsuresNonNullIf;

package java.util;
public class Objects {

@EnsuresNonNull("#1")
static <T> T requireNonNull(@Nullable T obj);

@EnsuresNonNull("#1")
static <T> T requireNonNull(@Nullable T obj, String message);

@EnsuresNonNull("#1")
static <T> T requireNonNull(@Nullable T obj, Supplier<String> messageSupplier);

@EnsuresNonNullIf(expression="#1", result=true)
static boolean nonNull(@Nullable Object obj);

@EnsuresNonNullIf(expression="#1", result=false)
static boolean isNull(@Nullable Object obj);
}


package org.springframework.util;
class StringUtils {

@EnsuresNonNullIf(expression="#1", result=true)
static boolean hasText(@Nullable CharSequence str);

@EnsuresNonNullIf(expression="#1", result=true)
static boolean hasText(@Nullable String str);

@EnsuresNonNullIf(expression="#1", result=true)
static boolean hasLength(@Nullable CharSequence str);

@EnsuresNonNullIf(expression="#1", result=true)
static boolean hasLength(@Nullable String str);
}


package org.springframework.util;
class CollectionUtils {

@EnsuresNonNullIf(expression="#1", result=false)
static boolean isEmpty(@Nullable Collection<?> collection);

@EnsuresNonNullIf(expression="#1", result=false)
static boolean isEmpty(@Nullable Map<?, ?> map);
}


package org.slf4j;
interface Logger {

void warn(String format, @Nullable Object arg1, @Nullable Object arg2);

void warn(String format, @Nullable Object... arguments);
}
9 changes: 9 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# https://docs.codecov.com/docs/codecov-yaml
coverage:
status:
project:
default:
threshold: 5% # allows to drop coverage (https://docs.codecov.com/docs/commit-status#project-status)
patch:
default:
target: 0% # allows no tests in PR (https://docs.codecov.com/docs/commit-status#patch-status)
13 changes: 11 additions & 2 deletions docs/developer-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,25 @@ git clone https://github.com/spacious-team/investbook.git

### Установка Wix
Для сборки пакета для установки Investbook требуется Wix 3.
Скачать Wix 3 можно по ссылке с официального сайта [Wix](https://wixtoolset.org/docs/wix3/)
Скачать Wix 3 можно по ссылке с официального сайта [Wix3](https://wixtoolset.org/docs/wix3/)
(пакет для установки расположен на [GitHub](https://github.com/wixtoolset/wix3/releases)).
Wix в свою очередь потребует установки [.NET](https://dotnet.microsoft.com/en-us/download/dotnet).

На Windows вы можете установить Wix и .NET в `%LOCALAPPDATA%\Programs\wix3` и `%LOCALAPPDATA%\Programs\dotnet`
соответственно. Для этого на страницах проектов нужно скачать не msi установщики, а архивы "binaries", которые требуется
распаковать в указанные папки. После этого нужно добавить следующие переменные окружения
(win+R -> `rundll32 sysdm.cpl,EditEnvironmentVariables`):
```shell
DOTNET_ROOT=%LOCALAPPDATA%\Programs\dotnet
PATH=<предыдущие значения>;%LOCALAPPDATA%\Programs\wix3;%DOTNET_ROOT%
```

### Компиляция
Компиляция запускается командой:
```
mvn clean compile
```
Она очищает сгенерированные ранее классы (типа JAXB), которые возможно устарели,
Она очищает сгенерированные ранее классы (например JAXB2), которые возможно устарели,
и генерирует файл `META_INF/build-info.properties`, который используется приложением в своей работе.

### Запуск
Expand Down
15 changes: 8 additions & 7 deletions docs/install-on-linux.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#### Оглавление
- [Установка на Windows x64](install-on-windows.md)
- [Установка на Windows x86](install-on-windows-by-zip.md)
- [Установка на Windows](#установка-и-работа-на-windows)
- [Установка на Windows из ZIP архива](install-on-windows-by-zip.md)
- [Установка на Mac](#установка-и-работа-на-mac-и-linux)
- [Установка на Linux](#установка-и-работа-на-mac-и-linux)
- [Запуск в Docker](run-by-docker.md)
Expand All @@ -12,16 +12,16 @@
```shell script
$ java -version
```
Если версия 21 или выше, пропустите следующий пункт.
Если версия 23 или выше, пропустите следующий пункт.
2. Воспользуйтесь менеджером пакетов вашей ОС для установки java, например на Ubuntu
```shell
$ sudo apt install openjdk-21-jre-headless
$ sudo apt update
$ sudo apt install openjdk-23-jre-headless
```
Или можно скачать [Java 21](https://jdk.java.net/21/) и распаковать папку `jdk-21` в директорию `/opt`.
Для 32 разрядных ОС можно скачать [Java 21 x86 JRE](https://bell-sw.com/pages/downloads/). Если java распакована из
Или можно скачать [Java 23](https://jdk.java.net/23/) и распаковать папку `jdk-23` в директорию `/opt`. Если java распакована из
архива, то в директории приложения нужно найти файл `start.sh`, раскомментировать и актуализировать `JAVA_HOME`
```shell
$ export JAVA_HOME=/opt/jdk-21
$ export JAVA_HOME=/opt/jdk-23
```
3. Скачать со страницы [проекта](https://github.com/spacious-team/investbook/releases/latest) архив `.zip` и
распаковать в директорию `/opt`.
Expand Down Expand Up @@ -55,6 +55,7 @@
| с 2022.7 | java 18 и выше |
| с 2023.1 | java 20 и выше |
| с 2023.3 | java 21 и выше |
| с 2024.2 | java 23 и выше |

#### Установка расширений

Expand Down
15 changes: 6 additions & 9 deletions docs/install-on-windows-by-zip.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
#### Оглавление
- [Установка на Windows x64](install-on-windows.md)
- [Установка на Windows x86](#установка-и-работа-на-windows-из-zip-архива)
- [Установка на Windows](#установка-и-работа-на-windows)
- [Установка на Windows из ZIP архива](install-on-windows-by-zip.md)
- [Установка на Mac](install-on-linux.md)
- [Установка на Linux](install-on-linux.md)
- [Запуск в Docker](run-by-docker.md)

### Установка и работа на Windows из zip архива

Данная инструкция поддерживает все версии Windows. Если у вас 64 битная Windows, рекомендуем устанавливать по
[инструкции](install-on-windows.md).
1. Создать папку `C:\Program Files\Java\`, скачать Java 21 под вашу версию операционной системы.
Если у вас 32 битная Windows можете использовать скачать по [ссылке](https://libericajdk.ru/pages/downloads/)
(достаточно JRE сборки), если 64 битная - рекомендуется скачивать сборку [OpenJdk](https://jdk.java.net/21/).
1. Скачать со страницы [проекта](https://github.com/vananiev/portfolio/releases/latest) архив `investbook.zip`
Данная инструкция поддерживает версию Windows x64. 32 битные Windows не поддерживаются.
1. Создать папку `C:\Program Files\Java\`, скачать [Java 23](https://jdk.java.net/23/).
1. Скачать со страницы [проекта](https://github.com/spacious-team/investbook/releases/latest) архив `investbook.zip`
и распаковать в любую удобную папку. В ней открыть файл `start.bat` и изменить строчку
```
#set JAVA_HOME=C:\Program Files\Java\jdk-21
#set JAVA_HOME=C:\Program Files\Java\jdk-23
```
следующим образом:
+ Убрать первый символ `#`.
Expand Down
7 changes: 3 additions & 4 deletions docs/install-on-windows.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#### Оглавление
- [Установка на Windows x64](#установка-и-работа-на-windows)
- [Установка на Windows x86](install-on-windows-by-zip.md)
- [Установка на Windows](#установка-и-работа-на-windows)
- [Установка на Windows из ZIP архива](install-on-windows-by-zip.md)
- [Установка на Mac](install-on-linux.md)
- [Установка на Linux](install-on-linux.md)
- [Запуск в Docker](run-by-docker.md)

### Установка и работа на Windows

Данная инструкция поддерживает версию Windows x64. Если у вас 32 битная Windows, рекомендуем устанавливать по
[инструкции](install-on-windows-by-zip.md).
Данная инструкция поддерживает версию Windows x64. 32 битные Windows не поддерживаются.
1. Скачать со страницы [проекта](https://github.com/spacious-team/investbook/releases/latest) установщик `.msi`
и запустить его.
1. Если вы обновляете приложение и в процессе обновления появилось показанное ниже окно - это означает, что запущена
Expand Down
4 changes: 2 additions & 2 deletions docs/run-by-docker.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#### Оглавление
- [Установка на Windows x64](install-on-windows.md)
- [Установка на Windows x86](install-on-windows-by-zip.md)
- [Установка на Windows](#установка-и-работа-на-windows)
- [Установка на Windows из ZIP архива](install-on-windows-by-zip.md)
- [Установка на Mac](install-on-linux.md)
- [Установка на Linux](install-on-linux.md)
- [Запуск в Docker](#запуск-investbook)
Expand Down
Loading