Skip to content

Commit

Permalink
Merge branch 'dev' into dependabot/npm_and_yarn/desktop-app/dev/types…
Browse files Browse the repository at this point in the history
…/node-20.8.6
  • Loading branch information
tomjeannesson authored Mar 14, 2024
2 parents a5622f3 + 02e7a25 commit c288466
Show file tree
Hide file tree
Showing 124 changed files with 14,808 additions and 1,645 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy to Github Releases

on:
release:
types: [published]



jobs:
release:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x


- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}

# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
25 changes: 25 additions & 0 deletions .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: mkdocs

on:
push:
branches:
- main

permissions:
contents: write

jobs:
deply-docs:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v4

- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FILE: mkdocs.yml
REQUIREMENTS: docs/setup-docs/requirements.txt

31 changes: 23 additions & 8 deletions .github/workflows/nextron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,42 @@ jobs:
- run: true

build:
name: Build
strategy:
matrix:
include:
- platform: mac
os: "macos-12"
- platform: linux
os: "ubuntu-22.04"
- platform: windows
os: "windows-2022"
runs-on: ${{ matrix.os }}
needs: authorize
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}

- name: Set Node.js 18.x
- name: Settp Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x

- name: Run install
uses: borales/actions-yarn@v4
uses: borales/actions-yarn@v5
with:
cmd: install # will run `yarn install` command
cmd: install --network-timeout 1000000 # will run `yarn install` command
dir: desktop-app

- name: Build production bundle
uses: borales/actions-yarn@v4
uses: borales/actions-yarn@v5
with:
cmd: build # will run `yarn build` command
cmd: build # will run `yarn build` command (for each os)
dir: desktop-app

- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.platform }}-distributables
path: desktop-app/dist/Napse-*
if-no-files-found: error
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ bower_components
*.sublime-workspace

# IDE - VSCode
.vscode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
Expand Down
106 changes: 106 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,109 @@
## [1.7.1](https://github.com/napse-invest/Napse/compare/v1.7.0...v1.7.1) (2024-03-14)


### Bug Fixes

* **ci:** build ([2444595](https://github.com/napse-invest/Napse/commit/2444595786036f15ddc02895f765cd4ec73bc419))

# [1.7.0](https://github.com/napse-invest/Napse/compare/v1.6.0...v1.7.0) (2024-03-14)


### Features

* **electron:** build ([cc12bec](https://github.com/napse-invest/Napse/commit/cc12becdaed2b4096de90648c97b0ba74a93a19b))

# [1.6.0](https://github.com/napse-invest/Napse/compare/v1.5.0...v1.6.0) (2024-03-12)


### Bug Fixes

* **exchangeAccount:** create fixed ([dc81bac](https://github.com/napse-invest/Napse/commit/dc81bace759424b45662d7660d5d288bca1ada3a))
* **exchangeAccount:** create fixed ([cb461d1](https://github.com/napse-invest/Napse/commit/cb461d154e1431443645c426619c6eb20290ac80))


### Features

* **electron:** build now works ([62bbfac](https://github.com/napse-invest/Napse/commit/62bbfac2d46ed9a156d58517beba53609ca11f6b))

# [1.5.0](https://github.com/napse-invest/Napse/compare/v1.4.0...v1.5.0) (2024-03-12)


### Bug Fixes

* **createDialog:** fix dialog selector & snake_case format for create call (to REST API) ([1bfafa7](https://github.com/napse-invest/Napse/commit/1bfafa7beb716a22ee4713ec87d63ba569143362))
* **CustomForm:** add placeholder ([5403af0](https://github.com/napse-invest/Napse/commit/5403af0803a2c8fa2f2ecc6042c96188a27af1ea))
* **CustomTable:** add sorting to custom table ([93db947](https://github.com/napse-invest/Napse/commit/93db9477c13316741e7404a652518db294b3ad54))
* **deployment:** everything works ([3329e49](https://github.com/napse-invest/Napse/commit/3329e499d38997ad0f3f53f8ae73dcf21c8ab8d7))
* **fleet:** add delta on fleet ([50e2208](https://github.com/napse-invest/Napse/commit/50e2208062f082faedeedd898aab499f52e4ad49))
* **fleet:** fix redirection from fleet detail to bot detail ([8ad78a1](https://github.com/napse-invest/Napse/commit/8ad78a1dcfc7f9e860ec9ea44b57d34f3df685bb))
* **fleet:** fix toast mantisse error ([bcb6087](https://github.com/napse-invest/Napse/commit/bcb608795785ee3d13a8d0a98727a1a1aef1e93e))
* **form:** slider now keep its value ([663d058](https://github.com/napse-invest/Napse/commit/663d058986d9f4b4ce27f50778739990f30d0505))
* **graph:** fix formatted datetime ([c93d3ff](https://github.com/napse-invest/Napse/commit/c93d3ff6472627a0bd744f58eb627deb9c86a8d4))
* **PanelCard:** add size modification for valuePanelCard ([360017b](https://github.com/napse-invest/Napse/commit/360017be07fafb5a474ee07719d42152f3ff7ec9))
* **selector:** fix dict in possilbiites for select form's field ([b75dc9f](https://github.com/napse-invest/Napse/commit/b75dc9fa72ff9a256bca84c36aaba9419de9eccb))


### Features

* **aws-sdk:** basic integration for the sdk ([5a38d76](https://github.com/napse-invest/Napse/commit/5a38d7656e6af8f55724b206c76537f40c2960bc))
* **bot:** add retrieve bot to bot/slug page ([0daa84f](https://github.com/napse-invest/Napse/commit/0daa84f9a848f14676278702d612f78ac6cf68e8))
* **bot:** list bot page ([2850aa0](https://github.com/napse-invest/Napse/commit/2850aa09771a8bdc3b5055830f14c77e09328d04))
* **cluster:** add toast for cluster share validation ([e545d38](https://github.com/napse-invest/Napse/commit/e545d387f1c69289978e6c21d6f91fd4bdc7f6c8))
* **clusterDataTable:** add dataTable for cluster ([25a926f](https://github.com/napse-invest/Napse/commit/25a926f62b253de36655463e920037d09f37c205))
* **customForm:** add loading button ([526eb1d](https://github.com/napse-invest/Napse/commit/526eb1d9de0423203d298cf16114ba20b7a38952))
* **CustomForm:** add slider type in CustomForm ([5ef57f6](https://github.com/napse-invest/Napse/commit/5ef57f63eb3bb292947e050051a612f67d9d83a6))
* **fleet:** add Cluster dialog ([016b756](https://github.com/napse-invest/Napse/commit/016b756a4b30b0c81c965751d063a7479fe7f8a8))
* **fleet:** add money action button for fleet (testing) ([87a46fa](https://github.com/napse-invest/Napse/commit/87a46faf56eff63cd34b30b6a60398487394c830))
* **https-full-deployment:** done ([1e841ba](https://github.com/napse-invest/Napse/commit/1e841ba8cb1992af517d58642174cef5fe903551))
* **server & aws:** reworked server UI and AWS deployement ([34837d7](https://github.com/napse-invest/Napse/commit/34837d71f5cce0abfb390fa98feaf4748778de27))
* **space:** add investment ([d64ad67](https://github.com/napse-invest/Napse/commit/d64ad67a4aab44527736b319b707ce4d7e3d22be))

# [1.4.0](https://github.com/napse-invest/Napse/compare/v1.3.0...v1.4.0) (2024-01-05)


### Bug Fixes

* **breadcrum:** display now fleet & bot uuid ([fe33680](https://github.com/napse-invest/Napse/commit/fe336808e9dadf1e5dc4a4446581fff1b9baa350))
* **forms:** fixed issues with form state, and changed them where ever they were ([158b9fc](https://github.com/napse-invest/Napse/commit/158b9fcbf9ce79fb62b1c0ba60220cf9bd23a42d))
* **list:** end of list & create interfaces ([7df09e0](https://github.com/napse-invest/Napse/commit/7df09e0cb8fbccf1dfb19a19c160793f8ba0c96c))
* **panelCard:** rework valuePanelCard and accept ReactNode for PanelCard's badge ([fb4383b](https://github.com/napse-invest/Napse/commit/fb4383bb798f76c53d19d9e94c1ecf395b6c394d))
* **space:** add fleet list ([5a59144](https://github.com/napse-invest/Napse/commit/5a591447d157d6dc68c3eca028bbb59dcf34d7e8))
* **space:** add invest & withdraw button ([5b69ea8](https://github.com/napse-invest/Napse/commit/5b69ea8c48757ad2d2bb0f50c28ce9fee0b84365))
* **space:** adjustments ([7ef5c0e](https://github.com/napse-invest/Napse/commit/7ef5c0e80acd1703495a3d995ed9ac0cfa711366))
* **space:** end of base space ([53f3c3a](https://github.com/napse-invest/Napse/commit/53f3c3a3895289efdc1ced41cb3a7b5b3d2b83b3))
* **space:** finish space dashboard ([79f5cdb](https://github.com/napse-invest/Napse/commit/79f5cdb6b5c495271d1629a9dc3c971064c48966))
* **space:** finish space tab ([5674645](https://github.com/napse-invest/Napse/commit/5674645c6c40eaefd5156efbefbafaaf524c943d))
* **space:** setup detail and start graph ([781bfc7](https://github.com/napse-invest/Napse/commit/781bfc7b7e156b1a97bb9e6d50cbe525bc0bc117))
* **space:** size diff on walletBoard ([65179d7](https://github.com/napse-invest/Napse/commit/65179d73365a6b89eb44786560ba68c7ed444d05))
* **space:** work on space section rework ([9d48244](https://github.com/napse-invest/Napse/commit/9d482440e797289c3043a69af01fe5f42841d27c))
* **tremor:** fix rounded-tremor-full value ([31ae34c](https://github.com/napse-invest/Napse/commit/31ae34cefe77ccd3f25f217534d6154ce44a0d9a))
* **ux:** little improvements here and there ([b5ad53d](https://github.com/napse-invest/Napse/commit/b5ad53d008276a3a3c255668f9ac237a400fdf3e))
* **ValuePanelCard:** badge can be undifined ([1741efe](https://github.com/napse-invest/Napse/commit/1741efecb6e9f38ae1ed3c961b9ea3fca35360c6))


### Features

* **exchanges:** create implemented ([2b14666](https://github.com/napse-invest/Napse/commit/2b14666cd0b44425672b254215cef0b16f05d967))
* **layouts:** streamlined settings layout for all objects ([3408654](https://github.com/napse-invest/Napse/commit/34086547b79277761b33014d1bb7e2c3c0c727db))

# [1.3.0](https://github.com/napse-invest/Napse/compare/v1.2.0...v1.3.0) (2023-10-16)


### Bug Fixes

* **build:** server. => server? ([7f73202](https://github.com/napse-invest/Napse/commit/7f732023c7138fae1ff777167fcf3be7fc59961c))
* **eslint:** babel import ([a7bebce](https://github.com/napse-invest/Napse/commit/a7bebce1a44a9dd0548b76ecc06aa05ffa2549ee))
* **keys:** upgrades to the interface & theme rework & tables ([11d754c](https://github.com/napse-invest/Napse/commit/11d754c2517963f8744d58fe7f350217bb046e50))
* **layout:** default layout added ([04b27b9](https://github.com/napse-invest/Napse/commit/04b27b9b49768cadcc3e69652c45550500ff81b6))
* **package.json:** electron must stay at v21 ([5c5ddb9](https://github.com/napse-invest/Napse/commit/5c5ddb9916632fc7b3a02c84de7eaf0a09fc39b9))


### Features

* **servers-&&-keys:** basic interface ([a751d6c](https://github.com/napse-invest/Napse/commit/a751d6cdd7d24c849c271f4e1cd10e01a995927e))
* **servers-&&-keys:** fulls integrated ([830d6f1](https://github.com/napse-invest/Napse/commit/830d6f17d53acc12ef6d5b605c4a16ccb7976dee))
* **ux:** routing rework & server setup ([7f8541f](https://github.com/napse-invest/Napse/commit/7f8541fb2b8793e3a0e0fe578b9917373c8c4685))

# [1.2.0](https://github.com/napse-invest/Napse/compare/v1.1.0...v1.2.0) (2023-10-06)


Expand Down
97 changes: 29 additions & 68 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,73 +1,34 @@
# Napse

The best open source investment software.

### Runing the graphic user interface

The GUI is a desktop app. It is made using Electron, React and Typescript.
You can find it in the desktop-app folder.
Here are the steps to run it (if you already have nvm, node and yarn installed, go to the step 4 directly):

1. **Install nvm**

To install nvm, download and install the nvm script from the project's GitHub page:

```shell
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
```

After installing nvm, close your terminal and open a new one. Verify the installation by checking the version of nvm:

```shell
nvm --version
```

2. **Install Node.js**

Now, you can install Node.js. The following command installs Node.js latest version :
<div align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/theme/assets/napse_invest_logo_white.svg">
<source media="(prefers-color-scheme: light)" srcset="docs/theme/assets/napse_invest_logo_black.svg">
<img alt="Napse's logo" src="" width=500>
</picture>
</div>


<br>
<p align="center">
<a href="https://twitter.com/NapseInvest">
<img src="https://img.shields.io/twitter/follow/NapseInvest?style=flat&label=%40NapseInvest&logo=twitter&color=0bf&logoColor=fff" alt="Twitter" />
</a>
<a>
<img src="https://img.shields.io/github/v/release/napse-invest/Napse" alt="Release" />
</a>
</p>

<p align="center">
<a href="#Napse"><strong>Napse</strong></a> ·
<a href="#documentation"><strong>Documentation</strong></a>
</p>
<br/>

```shell
nvm install --lts
```

3. **Install yarn**

Yarn is a Node package manager. Install it by running these commands

```shell
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
```

```shell
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
```

```shell
sudo apt update
```

```shell
sudo apt install yarn
```

4. **Install dependencies**

Start by moving to the desktop-app folder

```shell
cd desktop-app
```

Then use yarn to download all dependencies
# Napse

```shell
yarn
```
Napse is the future of open source investment. It connects seamlessly to exchanges and manages the money entrusted to it with trading bots.

5. **Run the client**
Napse is a desktop application compatible with all platforms. [Django-napse](https://github.com/napse-invest/django-napse) is the heart of the system, and Napse enables efficient deployment, operation and performance visualization.

Use this yarn command to run client in dev mode
# Documentation

```shell
yarn dev
```
You can find the documentation [here](https://napse-invest.github.io/Napse/).
21 changes: 0 additions & 21 deletions SECURITY.md

This file was deleted.

3 changes: 2 additions & 1 deletion desktop-app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ node_modules
/app
dist
next-env.d.ts
out/
out/
secrets.json
16 changes: 12 additions & 4 deletions desktop-app/electron-builder.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
appId: com.example.nextron
productName: My Nextron App
copyright: Copyright © 2018 Yoshihide Shiono
productName: Napse
directories:
output: dist
buildResources: resources
Expand All @@ -11,7 +10,16 @@ files:
- app

linux:
target: deb
icon: renderer/public/images/logo.svg
target: ["deb", "AppImage", "zip"]
category: "Finance"
artifactName: "Napse-${os}-${arch}-${version}.${ext}"

mac:
target: ["dmg"]
artifactName: "Napse-${os}-${arch}-${version}.${ext}"

win:
target: ["nsis", "zip"]
artifactName: "Napse-${os}-${arch}-${version}.${ext}"

publish: null
Loading

0 comments on commit c288466

Please sign in to comment.