-
-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kavita+ Overhaul & New Changelog (#3507)
- Loading branch information
1 parent
d880c16
commit a570761
Showing
249 changed files
with
15,523 additions
and
3,048 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ on: | |
jobs: | ||
build: | ||
name: Upload Kavita.Common for Version Bump | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
@@ -24,7 +24,7 @@ jobs: | |
version: | ||
name: Bump version | ||
needs: [ build ] | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -33,7 +33,7 @@ jobs: | |
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.0.x | ||
dotnet-version: 9.0.x | ||
|
||
- name: Bump versions | ||
uses: SiqiLu/[email protected] | ||
|
@@ -45,7 +45,7 @@ jobs: | |
canary: | ||
name: Build Canary Docker | ||
needs: [ build, version ] | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
permissions: | ||
packages: write | ||
contents: read | ||
|
@@ -98,7 +98,7 @@ jobs: | |
- name: Compile dotnet app | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.0.x | ||
dotnet-version: 9.0.x | ||
|
||
- name: Install Swashbuckle CLI | ||
run: dotnet tool install -g Swashbuckle.AspNetCore.Cli | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
|
||
jobs: | ||
debug: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Debug Info | ||
run: | | ||
|
@@ -17,7 +17,7 @@ jobs: | |
echo "Matches Develop: ${{ github.ref == 'refs/heads/develop' }}" | ||
build: | ||
name: Upload Kavita.Common for Version Bump | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
if: github.ref == 'refs/heads/develop' | ||
steps: | ||
- name: Checkout Repo | ||
|
@@ -33,7 +33,7 @@ jobs: | |
version: | ||
name: Bump version | ||
needs: [ build ] | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
if: github.ref == 'refs/heads/develop' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -43,7 +43,7 @@ jobs: | |
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.0.x | ||
dotnet-version: 9.0.x | ||
|
||
- name: Bump versions | ||
uses: majora2007/[email protected] | ||
|
@@ -55,7 +55,7 @@ jobs: | |
develop: | ||
name: Build Nightly Docker | ||
needs: [ build, version ] | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
if: github.ref == 'refs/heads/develop' | ||
permissions: | ||
packages: write | ||
|
@@ -128,7 +128,7 @@ jobs: | |
- name: Compile dotnet app | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.0.x | ||
dotnet-version: 9.0.x | ||
|
||
- name: Install Swashbuckle CLI | ||
run: dotnet tool install -g Swashbuckle.AspNetCore.Cli | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using API.Data; | ||
using API.DTOs.Email; | ||
using API.Helpers; | ||
using Microsoft.AspNetCore.Authorization; | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
namespace API.Controllers; | ||
|
||
[Authorize(Policy = "RequireAdminRole")] | ||
public class EmailController : BaseApiController | ||
{ | ||
private readonly IUnitOfWork _unitOfWork; | ||
|
||
public EmailController(IUnitOfWork unitOfWork) | ||
{ | ||
_unitOfWork = unitOfWork; | ||
} | ||
|
||
[HttpGet("all")] | ||
public async Task<ActionResult<IList<EmailHistoryDto>>> GetEmails() | ||
{ | ||
return Ok(await _unitOfWork.EmailHistoryRepository.GetEmailDtos(UserParams.Default)); | ||
} | ||
} |
Oops, something went wrong.