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

v0.4.3 Release #431

Merged
merged 23 commits into from
Jul 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
adcee4f
Rollback https stats server due to issues with self signed cert.
majora2007 Jun 30, 2021
9827221
Update FUNDING.yml
majora2007 Jul 1, 2021
2da77da
Update README.md
majora2007 Jul 2, 2021
2a34fe4
The big one (#396)
majora2007 Jul 17, 2021
b5f92d4
Adding Additional Workflows and Actions (#397)
therobbiedavis Jul 17, 2021
1cd68be
removing bump (#398)
therobbiedavis Jul 17, 2021
eb88967
Webtoon Reader Fixup (#405)
majora2007 Jul 19, 2021
b9a06d3
More Webtoon Fixes (#406)
majora2007 Jul 20, 2021
b11bb0e
Extra Stat collection (#407)
majora2007 Jul 20, 2021
27be13a
Fixing poster image (#409)
therobbiedavis Jul 20, 2021
c2d84ed
UI Stat issue (#410)
majora2007 Jul 20, 2021
e226c2b
Fixed a bug where collections wouldn't update after updating collecti…
majora2007 Jul 20, 2021
ef5b22b
Fixing up a sizing issue while keeping a restriction on height for we…
therobbiedavis Jul 21, 2021
b8165b3
Misc Polishing (#413)
majora2007 Jul 21, 2021
b0df67c
PDF Support + MORE!!!! (#416)
majora2007 Jul 23, 2021
199ab79
Fixed Docker not being able to parse PDF Images (#418)
majora2007 Jul 23, 2021
29edadb
Updated readme
majora2007 Jul 23, 2021
ebd4ec2
Shakeout Fixes (#422)
majora2007 Jul 23, 2021
78ad01f
Fixed a bug where a new lirary scan would break due to scan series no…
majora2007 Jul 24, 2021
81dfd63
Feature/performance pdf (#426)
majora2007 Jul 24, 2021
107b702
Feature/performance pdf (#427)
majora2007 Jul 24, 2021
4f34617
More Polishing (#428)
majora2007 Jul 25, 2021
d97e81d
Release v0.4.3 (#414)
majora2007 Jul 25, 2021
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
  •  
  •  
  •  
17 changes: 17 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support

# You can see what browsers were selected by your queries by running:
# npx browserslist

last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single
indent_size = 2


[*.md]
max_line_length = off
trim_trailing_whitespace = false
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ community_bridge: # Replace with a single Community Bridge project-name e.g., cl
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: ["https://paypal.me/majora2007"]
custom: []
17 changes: 0 additions & 17 deletions .github/workflows/discord-release-msg.yml

This file was deleted.

31 changes: 20 additions & 11 deletions .github/workflows/nightly-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,42 +7,51 @@ on:

jobs:
docker:
name: Building Nightly Docker
runs-on: ubuntu-latest
steps:

- name: Check Out Repo
uses: actions/checkout@v2

- name: Check Out WebUI
uses: actions/checkout@v2
with:
repository: Kareadita/Kavita-webui
ref: develop
path: Kavita-webui/

- name: NodeJS to Compile WebUI
uses: actions/[email protected]
with:
node-version: '14'
- run: |

cd Kavita-webui/ || exit
cd UI/Web || exit
echo 'Installing web dependencies'
npm install

echo 'Building UI'
npm run prod

echo 'Copying back to Kavita wwwroot'
rsync -a dist/ ../API/wwwroot/
rsync -a dist/ ../../API/wwwroot/

cd ../ || exit

- name: Get csproj Version
uses: naminodarie/get-net-sdk-project-versions-action@v1
id: get-version
with:
proj-path: Kavita.Common/Kavita.Common.csproj

- name: Echo csproj version
run: echo "${{steps.get-version.outputs.assembly-version}}"

- name: Compile dotnet app
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- run: ./action-build.sh
- run: ./monorepo-build.sh

- name: Trigger Sentry workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Sentry Map Release
token: ${{ secrets.REPO_GHA_PAT }}
inputs: '{ "version": "${{steps.get-version.outputs.assembly-version}}" }'

- name: Login to Docker Hub
uses: docker/login-action@v1
Expand Down
63 changes: 63 additions & 0 deletions .github/workflows/sentry-map.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Sentry Map Release
on:
workflow_dispatch:
inputs:
version:
description: "version to update package.json"
required: true
# No default

jobs:
build:
name: Setup Sentry CLI
runs-on: ubuntu-latest
steps:
- uses: mathieu-bour/[email protected]
with:
version: latest
token: ${{ secrets.SENTRY_TOKEN }}
organization: kavita-7n
project: angular

- name: Check out repository
uses: actions/checkout@v2

- name: Parse Version
run: |
version='${{ github.event.inputs.version }}'
newVersion=${version%.*}
echo $newVersion
echo "::set-output name=VERSION::$newVersion"
id: parse-version

- name: NodeJS to Compile WebUI
uses: actions/[email protected]
with:
node-version: '14'

- run: |
cd UI/Web || exit
echo 'Installing web dependencies'
npm install

npm version --allow-same-version "${{ steps.parse-version.outputs.VERSION }}"

echo 'Building UI'
npm run prod

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: Create Release
run: sentry-cli releases new ${{ steps.parse-version.outputs.VERSION }}

- name: Upload Source Maps
run: sentry-cli releases files ${{ steps.parse-version.outputs.VERSION }} upload-sourcemaps UI/Web/dist

- name: Finalize Release
run: sentry-cli releases finalize ${{ steps.parse-version.outputs.VERSION }}
20 changes: 13 additions & 7 deletions .github/workflows/build.yml → .github/workflows/sonar-scan.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: .NET Core Build
name: .NET Build Test and Sonar Scan

on:
push:
Expand All @@ -9,44 +9,49 @@ on:

jobs:
build:
name: Build
name: Build and Scan
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Checkout Repo
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.100

- name: Install dependencies
run: dotnet restore

- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 1.11
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
path: ~\sonar\cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar

- name: Cache SonarCloud scanner
id: cache-sonar-scanner
uses: actions/cache@v1
with:
path: .\.sonar\scanner
key: ${{ runner.os }}-sonar-scanner
restore-keys: ${{ runner.os }}-sonar-scanner

- name: Install SonarCloud scanner
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
shell: powershell
run: |
New-Item -Path .\.sonar\scanner -ItemType Directory
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner

- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
Expand All @@ -56,5 +61,6 @@ jobs:
.\.sonar\scanner\dotnet-sonarscanner begin /k:"Kareadita_Kavita" /o:"kareadita" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
dotnet build --configuration Release
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"

- name: Test
run: dotnet test --no-restore --verbosity normal
run: dotnet test --no-restore --verbosity normal
29 changes: 19 additions & 10 deletions .github/workflows/stable-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,45 @@ jobs:
- name: Check Out Repo
uses: actions/checkout@v2

- name: Check Out WebUI
uses: actions/checkout@v2
with:
repository: Kareadita/Kavita-webui
ref: main
path: Kavita-webui/

- name: NodeJS to Compile WebUI
uses: actions/[email protected]
with:
node-version: '14'
- run: |

cd Kavita-webui/ || exit
cd UI/Web || exit
echo 'Installing web dependencies'
npm install

echo 'Building UI'
npm run prod

echo 'Copying back to Kavita wwwroot'
rsync -a dist/ ../API/wwwroot/
rsync -a dist/ ../../API/wwwroot/

cd ../ || exit

- name: Get csproj Version
uses: naminodarie/get-net-sdk-project-versions-action@v1
id: get-version
with:
proj-path: Kavita.Common/Kavita.Common.csproj

- name: Echo csproj version
run: echo "${{steps.get-version.outputs.assembly-version}}"

- name: Compile dotnet app
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- run: ./action-build.sh
- run: ./monorepo-build.sh

- name: Trigger Sentry workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Sentry Map Release
token: ${{ secrets.REPO_GHA_PAT }}
inputs: '{ "version": "${{steps.get-version.outputs.assembly-version}}" }'

- name: Login to Docker Hub
uses: docker/login-action@v1
Expand Down
48 changes: 46 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,54 @@ $RECYCLE.BIN/
##
## Visual Studio Code
##
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/UI/Web/dist
/tmp
/out-tsc
# Only exists if Bazel was run
/bazel-out

# dependencies
/node_modules

# profiling files
chrome-profiler-events*.json
speed-measure-plugin*.json

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
.DS_Store
Thumbs.db

ssl/

# App specific
appsettings.json
Expand All @@ -448,10 +491,11 @@ appsettings.json
/API/kavita.db-wal
/API/Hangfire.db
/API/Hangfire-log.db
cache/
API/cache/
/API/wwwroot/
/API/cache/
/API/temp/
_temp/
_output/
stats/
API/stats/
UI/Web/dist/
Loading