forked from advplyr/audiobookshelf
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
339 changed files
with
42,589 additions
and
30,656 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
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,8 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
charset = utf-8 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
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 |
---|---|---|
@@ -1,17 +1,63 @@ | ||
name: 🚀 Feature Request | ||
description: Request a feature/enhancement | ||
title: "[Enhancement]: " | ||
labels: ["enhancement"] | ||
title: '[Enhancement]: ' | ||
labels: ['enhancement'] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: "### Please first search in both issues & discussions for your enhancement." | ||
value: '#### *Mobile app features should be [requested here](https://github.com/advplyr/audiobookshelf-app/issues/new/choose)*.' | ||
- type: markdown | ||
attributes: | ||
value: "### Mobile app features should be requested [here](https://github.com/advplyr/audiobookshelf-app/issues/new/choose)." | ||
value: '## Web/Server Feature Request Description' | ||
- type: markdown | ||
attributes: | ||
value: 'Please first search in both issues & discussions for your enhancement.' | ||
- type: dropdown | ||
id: enhancment-type | ||
attributes: | ||
label: Type of Enhancement | ||
options: | ||
- Server Backend | ||
- Web Interface/Frontend | ||
- Documentation | ||
- type: textarea | ||
id: describe | ||
attributes: | ||
label: Describe the feature/enhancement | ||
label: Describe the Feature/Enhancement | ||
description: Please help us understand what you want. | ||
placeholder: What is your vision? | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: the-why | ||
attributes: | ||
label: Why would this be helpful? | ||
description: Please help us understand why this would enhance your experience. | ||
placeholder: Explain the "why" or "use case". | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: image | ||
attributes: | ||
label: Future Implementation (Screenshot) | ||
description: Please help us visualize by including a doodle or screenshot. | ||
placeholder: How could this look? | ||
validations: | ||
required: true | ||
- type: markdown | ||
attributes: | ||
value: '## Web/Server Current Implementation' | ||
- type: input | ||
id: version | ||
attributes: | ||
label: Audiobookshelf Server Version | ||
description: Do not put 'Latest version', please put your current version number here | ||
placeholder: 'e.g. v1.6.60' | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: current-image | ||
attributes: | ||
label: Current Implementation (Screenshot) | ||
description: What page were you looking at when you thought of this enhancement? | ||
placeholder: If an image is not applicable, please explain why. |
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,65 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ 'master' ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ 'master' ] | ||
schedule: | ||
- cron: '16 5 * * 4' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'javascript' ] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] | ||
# Use only 'java' to analyze code written in Java, Kotlin or both | ||
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both | ||
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
|
||
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs | ||
# queries: security-extended,security-and-quality | ||
|
||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun | ||
|
||
# If the Autobuild fails above, remove it and uncomment the following three lines. | ||
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. | ||
|
||
# - run: | | ||
# echo "Run, Build Application using script" | ||
# ./location_of_script_within_repo/buildscript.sh | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
with: | ||
category: "/language:${{matrix.language}}" |
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,30 @@ | ||
name: Verify all i18n files are alphabetized | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- client/strings/** # Should only check if any strings changed | ||
push: | ||
paths: | ||
- client/strings/** # Should only check if any strings changed | ||
|
||
jobs: | ||
update_translations: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Check out the repository | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Set up node to run the javascript | ||
- name: Set up node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20" | ||
|
||
# The only argument is the `directory`, which is where the i18n files are | ||
# stored. | ||
- name: Run Update JSON Files action | ||
uses: audiobookshelf/[email protected] | ||
with: | ||
directory: "client/strings/" # Adjust the directory path as needed |
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,17 @@ | ||
name: Dispatch an abs-windows event | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
abs-windows-dispatch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send a remote repository dispatch event | ||
uses: peter-evans/repository-dispatch@v3 | ||
with: | ||
token: ${{ secrets.ABS_WINDOWS_PAT }} | ||
repository: mikiher/audiobookshelf-windows | ||
event-type: build-windows |
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,37 @@ | ||
name: Run Unit Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ref: | ||
description: 'Branch/Tag/SHA to test' | ||
required: true | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
run-unit-tests: | ||
name: Run Unit Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout (push/pull request) | ||
uses: actions/checkout@v4 | ||
if: github.event_name != 'workflow_dispatch' | ||
|
||
- name: Checkout (workflow_dispatch) | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.ref }} | ||
if: github.event_name == 'workflow_dispatch' | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run tests | ||
run: npm test |
Oops, something went wrong.