Skip to content

Commit 5a31e9a

Browse files
authored
1.10.0 (#66) (#67)
* install prettier * fix #65 * remove goal data feature * remove unused packages * update packages * 1.10.0 * update changelog * update changelog
1 parent 7be239e commit 5a31e9a

33 files changed

+4275
-7859
lines changed

.github/ISSUE_TEMPLATE/bug-report.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Bug report
33
about: Report a bug in japReader
44
title: "[BUG]"
55
labels: bug
6-
assignees: ''
7-
6+
assignees: ""
87
---
98

109
**Describe the bug**
@@ -13,6 +12,7 @@ A clear and concise description of what the bug is.
1312
**To Reproduce**
1413
List of steps to reproduce the behavior
1514
For example::
15+
1616
1. Go to '...'
1717
2. Click on '....'
1818
3. Scroll down to '....'
@@ -25,8 +25,9 @@ A clear and concise description of what you expected to happen.
2525
If applicable, add screenshots to help explain your problem.
2626

2727
**Desktop (please complete the following information):**
28-
- OS: [e.g. Windows]
29-
- Version [e.g. 10]
28+
29+
- OS: [e.g. Windows]
30+
- Version [e.g. 10]
3031

3132
**Additional context**
3233
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature_request.md

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Suggest a feature for japReader
44
title: "[FEATURE REQUEST]"
55
labels: enhancement
66
assignees: marisukukise
7-
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.github/workflows/release.yml

+108-108
Original file line numberDiff line numberDiff line change
@@ -1,108 +1,108 @@
1-
name: Release
2-
3-
# This will trigger the action on each push to the `release` branch.
4-
on:
5-
push:
6-
branches:
7-
- release
8-
9-
jobs:
10-
build-ubuntu:
11-
name: Build the repository on Ubuntu
12-
runs-on: ubuntu-latest
13-
steps:
14-
- name: Checkout
15-
uses: actions/[email protected]
16-
- name: Use Node.js 18
17-
uses: actions/[email protected]
18-
with:
19-
cache: 'npm'
20-
node-version: 18
21-
- name: Update npm
22-
run: sudo npm install -g npm
23-
- name: Install electron
24-
run: sudo npm install -g electron --unsafe-perm=true --allow-root
25-
- name: Install npm packages
26-
run: sudo npm ci
27-
- name: Install dpkg, fakeroot and rpm
28-
run: |
29-
sudo apt-get update -y
30-
sudo apt-get install -y dpkg fakeroot rpm
31-
- name: Provide 777 execution rights to clipboard handler script
32-
run: |
33-
sudo chmod 777 node_modules/clipboard-event/platform/clipboard-event-handler-linux
34-
sudo chmod 777 node_modules/clipboard-event/platform/clipboard-event-handler-mac
35-
- name: Set NODE_ENV to 'production'
36-
run: export NODE_ENV=production
37-
- name: Make
38-
run: sudo npm run make --if-present
39-
- run: sudo tree . -I 'node_modules|japreader-linux-x64'
40-
- name: Upload a Build Artifact
41-
uses: actions/[email protected]
42-
with:
43-
name: japReader-artifacts ubuntu-latest
44-
path: out/make/
45-
retention-days: 1
46-
build-windows:
47-
name: Build the repository on Windows
48-
runs-on: windows-latest
49-
steps:
50-
- name: Checkout
51-
uses: actions/[email protected]
52-
- name: Use Node.js 18
53-
uses: actions/[email protected]
54-
with:
55-
cache: 'npm'
56-
node-version: 18
57-
- name: Update npm
58-
run: npm install -g npm
59-
- name: Install npm packages
60-
run: npm ci
61-
- name: Set NODE_ENV to 'production'
62-
run: SET NODE_ENV=production
63-
- name: Make
64-
run: npm run make --if-present
65-
- run: tree .
66-
- name: Upload a Build Artifact
67-
uses: actions/[email protected]
68-
with:
69-
name: japReader-artifacts windows-latest
70-
path: out/make/
71-
retention-days: 1
72-
release:
73-
name: Create a new github release
74-
permissions:
75-
contents: write
76-
runs-on: ubuntu-latest
77-
needs: [build-ubuntu, build-windows]
78-
steps:
79-
- name: Checkout
80-
uses: actions/[email protected]
81-
- name: Download Linux Build Artifacts
82-
uses: actions/[email protected]
83-
with:
84-
name: japReader-artifacts ubuntu-latest
85-
path: make/
86-
- name: Download Windows Build Artifacts
87-
uses: actions/[email protected]
88-
with:
89-
name: japReader-artifacts windows-latest
90-
path: make/
91-
- name: Get current package version
92-
uses: martinbeentjes/[email protected]
93-
- name: Get Release body from CHANGELOG.md
94-
run: sed -e '/^$/,$d' CHANGELOG.md > CHANGELOG-${{ steps.package-version.outputs.current-version }}.md
95-
- run: tree .
96-
- name: Release
97-
uses: softprops/action-gh-release@v1
98-
with:
99-
draft: true
100-
body_path: CHANGELOG-${{ steps.package-version.outputs.current-version }}.md
101-
files: |
102-
make/deb/x64/*.deb
103-
make/rpm/x64/*.rpm
104-
make/zip/linux/x64/*.zip
105-
make/zip/win32/x64/*.zip
106-
make/squirrel.windows/x64/*.exe
107-
Anki_japReader.apkg
108-
tag_name: ${{ steps.package-version.outputs.current-version }}
1+
name: Release
2+
3+
# This will trigger the action on each push to the `release` branch.
4+
on:
5+
push:
6+
branches:
7+
- release
8+
9+
jobs:
10+
build-ubuntu:
11+
name: Build the repository on Ubuntu
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/[email protected]
16+
- name: Use Node.js 18
17+
uses: actions/[email protected]
18+
with:
19+
cache: "npm"
20+
node-version: 18
21+
- name: Update npm
22+
run: sudo npm install -g npm
23+
- name: Install electron
24+
run: sudo npm install -g electron --unsafe-perm=true --allow-root
25+
- name: Install npm packages
26+
run: sudo npm ci
27+
- name: Install dpkg, fakeroot and rpm
28+
run: |
29+
sudo apt-get update -y
30+
sudo apt-get install -y dpkg fakeroot rpm
31+
- name: Provide 777 execution rights to clipboard handler script
32+
run: |
33+
sudo chmod 777 node_modules/clipboard-event/platform/clipboard-event-handler-linux
34+
sudo chmod 777 node_modules/clipboard-event/platform/clipboard-event-handler-mac
35+
- name: Set NODE_ENV to 'production'
36+
run: export NODE_ENV=production
37+
- name: Make
38+
run: sudo npm run make --if-present
39+
- run: sudo tree . -I 'node_modules|japreader-linux-x64'
40+
- name: Upload a Build Artifact
41+
uses: actions/[email protected]
42+
with:
43+
name: japReader-artifacts ubuntu-latest
44+
path: out/make/
45+
retention-days: 1
46+
build-windows:
47+
name: Build the repository on Windows
48+
runs-on: windows-latest
49+
steps:
50+
- name: Checkout
51+
uses: actions/[email protected]
52+
- name: Use Node.js 18
53+
uses: actions/[email protected]
54+
with:
55+
cache: "npm"
56+
node-version: 18
57+
- name: Update npm
58+
run: npm install -g npm
59+
- name: Install npm packages
60+
run: npm ci
61+
- name: Set NODE_ENV to 'production'
62+
run: SET NODE_ENV=production
63+
- name: Make
64+
run: npm run make --if-present
65+
- run: tree .
66+
- name: Upload a Build Artifact
67+
uses: actions/[email protected]
68+
with:
69+
name: japReader-artifacts windows-latest
70+
path: out/make/
71+
retention-days: 1
72+
release:
73+
name: Create a new github release
74+
permissions:
75+
contents: write
76+
runs-on: ubuntu-latest
77+
needs: [build-ubuntu, build-windows]
78+
steps:
79+
- name: Checkout
80+
uses: actions/[email protected]
81+
- name: Download Linux Build Artifacts
82+
uses: actions/[email protected]
83+
with:
84+
name: japReader-artifacts ubuntu-latest
85+
path: make/
86+
- name: Download Windows Build Artifacts
87+
uses: actions/[email protected]
88+
with:
89+
name: japReader-artifacts windows-latest
90+
path: make/
91+
- name: Get current package version
92+
uses: martinbeentjes/[email protected]
93+
- name: Get Release body from CHANGELOG.md
94+
run: sed -e '/^$/,$d' CHANGELOG.md > CHANGELOG-${{ steps.package-version.outputs.current-version }}.md
95+
- run: tree .
96+
- name: Release
97+
uses: softprops/action-gh-release@v1
98+
with:
99+
draft: true
100+
body_path: CHANGELOG-${{ steps.package-version.outputs.current-version }}.md
101+
files: |
102+
make/deb/x64/*.deb
103+
make/rpm/x64/*.rpm
104+
make/zip/linux/x64/*.zip
105+
make/zip/win32/x64/*.zip
106+
make/squirrel.windows/x64/*.exe
107+
Anki_japReader.apkg
108+
tag_name: ${{ steps.package-version.outputs.current-version }}

.prettierrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# 1.10.0
2+
- Fixed another deepl.com broken DOM parsing (#65)
3+
- Removed unused npm packages
4+
- Updated all npm packages
5+
- Removed unused/unfinished features (such as goal status)
6+
- Formatted the codebase with prettier
7+
18
# 1.9.5
29
- Fixed deepl.com broken DOM parsing (there is now a querySelector input in options, so every user can change the string that is used to search for input and output text boxes on deepl.com, so it could be edited by users if it ever changes in the future)
310
- Added a new japanesepod101 source to CSP

0 commit comments

Comments
 (0)