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

New UI #20

Merged
merged 90 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
3533d1a
refactored base code to fit usage of vite and typescript
qlrd Jun 18, 2023
d79b9d4
addded more refactoration
qlrd Jun 19, 2023
7e177ab
changed electron version to ^25; fixed download and warning's resource
qlrd Jun 23, 2023
abd0fca
added downloading and verifiction process for odudex binaries; refact…
qlrd Jun 26, 2023
b4a2c3e
changed initial messages to showw the existence of openssl
qlrd Jun 26, 2023
f11f796
added animated stack for messages after KruxInstallerLogo
qlrd Jul 1, 2023
12c5d67
added stack of animated messages during checking of official zip rele…
qlrd Jul 2, 2023
d6ad7d2
added and tested stack of animated messages during checking of offici…
qlrd Jul 3, 2023
29e6210
fixed cycle of checking resources with text animations when official …
qlrd Jul 4, 2023
73a9938
fixed animations between loading checks and download cycle of officia…
qlrd Jul 4, 2023
8bb144a
added odudex/krux_binaries to checking/warning/proceed resources cycle
qlrd Jul 6, 2023
2425e2b
fixed 'download again' button on WarningDownload page
qlrd Jul 7, 2023
e240123
fixed ConsoleLoad page for odudex/krux_binaries
qlrd Jul 7, 2023
917ef10
removed a little delay when click download again button'
qlrd Jul 7, 2023
1df50a5
fixed back buttons on SelectVersion and WarningDownload pages
qlrd Jul 8, 2023
1625711
changed WarningDownload page to more simple design; changed full path…
qlrd Jul 8, 2023
e855606
added 'Show details' button and details on overlay in WarningDownload…
qlrd Jul 9, 2023
5207e8a
added some description on 'show details' item at WarningDownload page
qlrd Jul 10, 2023
e001b9b
re-added 'back' button on WarningDownload page
qlrd Jul 11, 2023
f821877
added functionality to only show 'flash button' when all necessary fi…
qlrd Jul 14, 2023
f2cd02c
Fixed enabling or not enabling the flash button
qlrd Jul 14, 2023
48de31c
added a message on Main page to warn user to click 'Version' button t…
qlrd Jul 15, 2023
f7510fa
added a message on Main page to warn user to connect device before flash
qlrd Jul 15, 2023
a4c2f01
removed unecessary files
qlrd Jul 15, 2023
2cc2328
added flash process, but it does not work with a unknown (yet) cause
qlrd Jul 16, 2023
6e407e4
fixed flash process for odudex version; changed @nathanielks/electron…
qlrd Jul 18, 2023
3bdb55a
updated dependencies to it latest versions
qlrd Jul 18, 2023
115f405
added unzipping process before flash official release; added flash fo…
qlrd Jul 19, 2023
d2da101
changed some style of VerifiedOfficialRelease page
qlrd Jul 20, 2023
9c6bd06
added first newly test files on test/e2e
qlrd Jul 22, 2023
268d133
changed .vscode scripts; moved some initial tests; fixed wdio.conf.ts…
qlrd Jul 24, 2023
d680977
fixed transpilation of wdio.conf.ts and it tests; not fixed the tests…
qlrd Jul 25, 2023
0581d4a
changed e2e tests for mts files
qlrd Jul 28, 2023
8100714
fixed tests for initialization for local machines
qlrd Jul 29, 2023
3cea78d
added build, test and updload steps for github-action on new-ui branch
qlrd Jul 30, 2023
46cd15c
added first tests for windows with new-ui
qlrd Aug 2, 2023
39b3169
added build for MacOS-12; added store on wdio-electron custom api; si…
qlrd Aug 6, 2023
63e7437
added tests for krux-installer logo, loading store data and openssl's…
qlrd Aug 6, 2023
5069ede
added tests for Main page on 3 OS
qlrd Aug 7, 2023
a119899
added tests when user clicks select device button on 3 OS
qlrd Aug 8, 2023
021b78f
Added tests for selecting device; added conditional to upload artifac…
qlrd Aug 8, 2023
65b16c9
fixing OpenSSL from @tadeusbas issue
qlrd Aug 9, 2023
415fd2f
fixing OpenSSL from @tadeusbas issue II
qlrd Aug 9, 2023
c61c440
fixing openssl path for windows III
qlrd Aug 9, 2023
d2cc9e1
Fixed message when trying to check if any resource is found or not
qlrd Aug 10, 2023
9f4547d
FIxed resource name that disappeared in WarningDownload page
qlrd Aug 13, 2023
3c634c6
Fixed GUI to always black screen
qlrd Aug 13, 2023
7e814a8
added test for back button on SelectDevice page; added first tests to…
qlrd Aug 14, 2023
bd65480
FIxing uzip process on windows
qlrd Aug 14, 2023
453d49f
Disabled hover highlighting on text elements at VerifiedOfficialRelea…
qlrd Aug 14, 2023
9b77cdb
Fixed unzip extraction on windows
qlrd Aug 16, 2023
878cd82
Update README.md to fit the build status
qlrd Aug 16, 2023
6d234b8
changed some style on FlashToDevice page
qlrd Aug 17, 2023
e65b084
Merge branch 'new-ui' of github.com:selfcustody/krux-installer into n…
qlrd Aug 17, 2023
63d4ab9
Fixed some tests on SelectVersion's page buttons
qlrd Aug 17, 2023
a02f916
updated some packages: using electron 26
qlrd Aug 20, 2023
eeaf2b9
Fixed AnsiUp update that show some errors
qlrd Aug 20, 2023
b6f4bf6
Ddded tests for download official release zip
qlrd Aug 21, 2023
2528144
Added filtering test if a resource exists
qlrd Aug 23, 2023
e0285b2
Added some tests for release zip's WarningDownload page
qlrd Aug 23, 2023
b3e1028
tests for release zip's WarningDownload page
qlrd Aug 24, 2023
71c2fa2
fixed win32 test for release zip's WarningDownload
qlrd Aug 24, 2023
71e57b2
added test for click back button when user was warned about already d…
qlrd Aug 24, 2023
9a9d2e0
Added tests for show details button on WarningDownload page
qlrd Aug 25, 2023
0d2ff4e
added test for closing 'show details' overlay
qlrd Aug 25, 2023
441c30a
added test to download release again
qlrd Aug 25, 2023
ee093f8
Added tests for proceed button on WarningDownload release.
qlrd Aug 26, 2023
d805027
Added tests for download release sha256.txt
qlrd Aug 26, 2023
c62563e
Added tests for WarningDowload page foralready downloaded release sha…
qlrd Aug 27, 2023
d73a364
added tests for 'show details' when sha256.txt release already downlo…
qlrd Aug 28, 2023
9d69654
added tests for click 'download again' button for release's sha256.txt
qlrd Aug 30, 2023
eb52161
Added test for click proceed button on release's sha226.txt
qlrd Aug 31, 2023
09d2436
Added test for download release's signature
qlrd Sep 1, 2023
05740c0
Added test for warning release's signature
qlrd Sep 1, 2023
765dcf5
added tests to click back button on WarningDownloaded page for releas…
qlrd Sep 2, 2023
2e183d2
added test for clicking show details button on WarningDownload page o…
qlrd Sep 2, 2023
162f3c7
added tests for download release's signature again
qlrd Sep 2, 2023
6c4e981
Added test for click Proceed button on WarningDownload page of releas…
qlrd Sep 3, 2023
31d5254
Added filltering option (with regular expressions) to avoid run many …
qlrd Sep 5, 2023
5a1bd48
added first tests to 'already downloaded' selfcustody.pem
qlrd Sep 7, 2023
a226613
fixed 'already downloaded' selfcustody.pem for windows
qlrd Sep 7, 2023
94a0f9c
added test for click back button on already downloaded pem
qlrd Sep 7, 2023
1749bef
fixing double slash on windows
qlrd Sep 7, 2023
a36b74a
added tests for show details on WarningDownload page
qlrd Sep 8, 2023
f72e891
added test/e2e/specs/036.already-downloaded-selfcustody-pem-download-…
qlrd Sep 9, 2023
26acbab
added test/e2e/specs/037.already-downloaded-selfcustody-pem-click-pro…
qlrd Sep 9, 2023
3d71e2d
Added test for CheckVerifyOfficialRelease page
qlrd Sep 10, 2023
189c912
Added tests for VerifiedOfficial Release page
qlrd Sep 11, 2023
4c24cfe
fixing test for verified official release on windows
qlrd Sep 11, 2023
df21106
fixing test for verified official release on windows (II)
qlrd Sep 11, 2023
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
  •  
  •  
  •  
4 changes: 0 additions & 4 deletions .browserslistrc

This file was deleted.

17 changes: 0 additions & 17 deletions .eslintrc.js

This file was deleted.

11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---

name: 🐞 Bug report
about: Create a report to help us improve
title: "[Bug] the title of bug report"
labels: bug
assignees: ''

---

#### Describe the bug
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/help_wanted.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: 🥺 Help wanted
about: Confuse about the use of electron-vue-vite
title: "[Help] the title of help wanted report"
labels: help wanted
assignees: ''

---

#### Describe the problem you confuse
12 changes: 12 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!-- Thank you for contributing! -->

### Description

<!-- Please insert your description here and provide especially info about the "what" this PR is solving -->

### What is the purpose of this pull request? <!-- (put an "X" next to an item) -->

- [ ] Bug fix
- [ ] New Feature
- [ ] Documentation update
- [ ] Other
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "monthly"
73 changes: 73 additions & 0 deletions .github/workflows/build-linux-appimage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Build electron application as AppImage on linux

on:
workflow_call:
secrets:
token:
required: true

jobs:

build-linux:
runs-on: ubuntu-latest

steps:

- name: Checkout Git repository
uses: actions/checkout@v3

- name: Install node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Variables helpers
id: setup
run: |
KRUX_VERSION=`node -e "console.log(require('./package.json').version)"`
echo "app-version=$KRUX_VERSION" >> $GITHUB_OUTPUT
KRUX_NAME=krux-installer-$KRUX_VERSION
echo "app-name=$KRUX_NAME" >> $GITHUB_OUTPUT
echo "::group::Variables"
echo "app-version=$KRUX_VERSION"
echo "app-name=$KRUX_NAME"
echo "::endgroup::"

- name: Install dependencies
run: yarn install

- name: Build electron app
env:
GH_TOKEN: ${{ secrets.token }}
run: yarn run build --linux AppImage

- name: Hash electron app (Linux)
uses: qlrd/sha256sum-action@v2
with:
working-directory: ./release/${{ steps.setup.outputs.app-version }}
file: ${{ steps.setup.outputs.app-name }}.AppImage
ext: sha256.txt

- name: List release files
run: |
echo "::group::Release files"
ls -la release/${{ steps.setup.outputs.app-version }}
echo "::endgroup::"

- name: Install xvfb-maybe to allow headless test
run: yarn add --dev xvfb-maybe

- name: E2E test electron app
env:
DEBUG: 'krux:*'
run: ./node_modules/.bin/xvfb-maybe ./node_modules/.bin/wdio run wdio.conf.mts

- name: Upload artifacts
uses: actions/upload-artifact@v3
#if: ${{ github.ref_name == 'main' }}
with:
name: ${{ runner.os }}-${{ steps.setup.outputs.app-name }}-AppImage
retention-days: 5
path: |
release/${{ steps.setup.outputs.app-version }}/${{ steps.setup.outputs.app-name }}.AppImage
release/${{ steps.setup.outputs.app-version }}/${{ steps.setup.outputs.app-name }}.AppImage.sha256.txt
84 changes: 0 additions & 84 deletions .github/workflows/build-linux.yml

This file was deleted.

104 changes: 104 additions & 0 deletions .github/workflows/build-mac-dmg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
name: Build electron application as dmg package on MacOS

on:
workflow_call:
secrets:
token:
required: true

jobs:

build-macos-12:
runs-on: macos-12

steps:

- name: Checkout Git repository
uses: actions/checkout@v3

- name: Install node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Variables helpers
id: setup
run: |
KRUX_VERSION=`node -e "console.log(require('./package.json').version)"`
echo "app-version=$KRUX_VERSION" >> $GITHUB_OUTPUT
KRUX_NAME=krux-installer_$KRUX_VERSION
echo "app-name=$KRUX_NAME" >> $GITHUB_OUTPUT
echo "::group::Variables"
echo "app-version=$KRUX_VERSION"
echo "app-name=$KRUX_NAME"
echo "::endgroup::"

- name: Install dependencies
run: yarn install

#- name: Install chromedriver
#env:
#CHROMEDRIVER_VERSION: '114.0.5735.90'
#ZIPFILE: 'chromedriver_mac64.zip'
#DESTDIR: './node_modules/chromedriver/bin'
#ZIPURI: 'https://chromedriver.storage.googleapis.com'
#run: |
#curl -o ${TMPDIR}${ZIPFILE} $ZIPURI/$CHROMEDRIVER_VERSION/$ZIPFILE
#unzip -o ${TMPDIR}${ZIPFILE} -d $DESTDIR

#- name: List chromedriver binaries
#run: ls -la node_modules/chromedriver/bin

#- name: Pre-test chromedriver
#run: ./node_modules/chromedriver/bin/chromedriver --version

- name: Build electron app
env:
GH_TOKEN: ${{ secrets.token }}
run: yarn run build --macos dmg

- name: Hash electron app
uses: qlrd/sha256sum-action@v2
with:
working-directory: ./release/${{ steps.setup.outputs.app-version }}
file: ${{ steps.setup.outputs.app-name }}.dmg
ext: sha256.txt

- name: List release files
run: |
echo "::group::Release files"
ls -la release/${{ steps.setup.outputs.app-version }}
echo "::endgroup::"
echo "::group::Unpacked files"
ls -la release/${{ steps.setup.outputs.app-version }}/mac
echo "::endgroup::"
echo "::group::Unpacked .app directory"
ls -la release/${{ steps.setup.outputs.app-version }}/mac/krux-installer.app
echo "::endgroup::"
echo "::group::Unpacked .app/Contents directory"
ls -la release/${{ steps.setup.outputs.app-version }}/mac/krux-installer.app/Contents
echo "::endgroup::"
echo "::group::Unpacked .app/Contents/Frameworks directory"
ls -la release/${{ steps.setup.outputs.app-version }}/mac/krux-installer.app/Contents/Frameworks
echo "::endgroup::"
echo "::group::Unpacked .app/Contents/MacOS directory"
ls -la release/${{ steps.setup.outputs.app-version }}/mac/krux-installer.app/Contents/MacOS
echo "::endgroup::"
echo "::group::Unpacked .app/Contents/Resources directory"
ls -la release/${{ steps.setup.outputs.app-version }}/mac/krux-installer.app/Contents/Resources
echo "::endgroup::"

- name: E2E test electron app
env:
DEBUG: 'krux:*'
run: ./node_modules/.bin/wdio run wdio.conf.mts

- name: Upload artifacts
uses: actions/upload-artifact@v3
#if: ${{ github.ref_name == 'main' }}
with:
name: ${{ runner.os }}-${{ steps.setup.outputs.app-name }}-dmg
retention-days: 5
path: |
release/${{ steps.setup.outputs.app-version }}/${{ steps.setup.outputs.app-name }}.dmg
release/${{ steps.setup.outputs.app-version }}/${{ steps.setup.outputs.app-name }}.dmg.sha256.txt
Loading