diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..dd28c173 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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') }} \ No newline at end of file diff --git a/.github/workflows/mkdocs.yml b/.github/workflows/mkdocs.yml new file mode 100644 index 00000000..c43dfe1c --- /dev/null +++ b/.github/workflows/mkdocs.yml @@ -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 + diff --git a/.github/workflows/nextron.yml b/.github/workflows/nextron.yml index c9511491..d78abb62 100644 --- a/.github/workflows/nextron.yml +++ b/.github/workflows/nextron.yml @@ -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 diff --git a/.gitignore b/.gitignore index fdd0f7dc..d9d3e11b 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,7 @@ bower_components *.sublime-workspace # IDE - VSCode +.vscode .vscode/* !.vscode/settings.json !.vscode/tasks.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 229bff0d..20a5c983 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/README.md b/README.md index 87c0e074..2f79e867 100644 --- a/README.md +++ b/README.md @@ -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 : +
+ Napse · + Documentation +
++ {currencies.length}{' '} + {currencies.length > 1 ? 'currencies' : 'currency'} +
+Deposit
+Withdraw
+Deposit
+Withdraw
+Rows per page
@@ -44,7 +42,7 @@ export function DataTablePagination