Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
962ad67
refactor code and add web panel
SegoCode Mar 13, 2025
2efabf4
Update .gitignore
SegoCode Mar 13, 2025
647fbee
Update PanelController.java
SegoCode Mar 13, 2025
9de2f6f
Update PanelController.java
SegoCode Mar 13, 2025
59f6960
move views to resource folder
SegoCode Mar 13, 2025
4302910
Create demo3.png
SegoCode Mar 13, 2025
25cb168
Update CommandExecutor.java
SegoCode Mar 23, 2025
d2c1860
Update admin.html
SegoCode Mar 23, 2025
4c6cc53
Update admin.html
SegoCode Mar 24, 2025
a2a4c3b
Update CommandExecutor.java
SegoCode Mar 25, 2025
512f68c
Update CommandExecutor.java
SegoCode Mar 25, 2025
ef8a109
Update CommandExecutor.java
SegoCode Mar 25, 2025
52fead9
Update CommandExecutor.java
SegoCode Mar 25, 2025
fa09a3f
Update CommandExecutor.java
SegoCode Mar 25, 2025
e108ef3
Update Messages.java
SegoCode Mar 25, 2025
d9e69d1
Update CommandExecutor.java
SegoCode Mar 25, 2025
5096c82
Delete CommandExecutor.java
SegoCode Mar 25, 2025
5a5c7bc
Delete Utils.java
SegoCode Mar 27, 2025
5640c54
Update FileUtil.java
SegoCode Mar 27, 2025
5c9255d
Update Webdlbot.java
SegoCode Mar 27, 2025
13c5476
Update Webdlbot.java
SegoCode Mar 27, 2025
3b88ef3
Update Main.java
SegoCode Mar 27, 2025
53ee2a1
Update Webdlbot.java
SegoCode Mar 27, 2025
619ec1f
Update Webdlbot.java
SegoCode Mar 27, 2025
ff70c20
Update admin.html
SegoCode Mar 28, 2025
386aee8
Update admin.html
SegoCode Mar 28, 2025
a7727be
Update admin.html
SegoCode Mar 28, 2025
f0e6405
Update admin.html
SegoCode Mar 28, 2025
6f47b4d
Update admin.html
SegoCode Mar 28, 2025
8e525ad
Update admin.html
SegoCode Mar 28, 2025
1978b07
Update update-license.yml
SegoCode Apr 1, 2025
d5166ef
Create demoPanel.png
SegoCode Apr 2, 2025
8960170
Update README.md
SegoCode Apr 2, 2025
cd36ca8
Update LICENSE with repository information
invalid-email-address Apr 2, 2025
5ed0706
Merge remote-tracking branch 'origin/main' into develop
invalid-email-address Apr 2, 2025
b771efa
Merge remote-tracking branch 'origin/main' into develop
invalid-email-address Apr 2, 2025
bbed8b2
Update demoPanel.png
SegoCode Apr 2, 2025
cb60585
Merge branch 'develop' of https://github.com/SegoCode/webdl into develop
SegoCode Apr 2, 2025
757bf40
Delete demo3.png
SegoCode Apr 2, 2025
ec03718
Simplify html view
SegoCode May 23, 2025
22e7eb0
Merge remote-tracking branch 'origin/main' into develop
invalid-email-address Jul 10, 2025
9be8273
Merge remote-tracking branch 'origin/main' into develop
invalid-email-address Jul 10, 2025
9569b76
Merge remote-tracking branch 'origin/main' into develop
invalid-email-address Jul 10, 2025
bd02e46
Merge remote-tracking branch 'origin/main' into develop
invalid-email-address Jul 10, 2025
9320cc5
Merge remote-tracking branch 'origin/main' into develop
invalid-email-address Jul 10, 2025
f4b6cb1
Merge remote-tracking branch 'origin/main' into develop
invalid-email-address Jul 10, 2025
addc660
Merge remote-tracking branch 'origin/main' into develop
invalid-email-address Jul 10, 2025
8a2d5de
Merge remote-tracking branch 'origin/main' into develop
invalid-email-address Jul 10, 2025
ccb797c
Update to latest local state
SegoCode Jun 9, 2026
1640689
Update admin.html
SegoCode Jun 11, 2026
99b3936
update structure
SegoCode Jun 11, 2026
741481a
Update pom.xml
SegoCode Jun 11, 2026
1088481
Revert "update structure"
SegoCode Jun 11, 2026
5fab74a
refactor
SegoCode Jun 11, 2026
6e1cb3d
Update pom.xml
SegoCode Jun 11, 2026
4813e86
Update README.md
SegoCode Jun 11, 2026
04091cc
Merge remote-tracking branch 'origin/main' into develop
invalid-email-address Jun 11, 2026
e80b827
new structure
SegoCode Aug 7, 2026
fab9458
Create DownloadQueue.java
SegoCode Aug 7, 2026
2636f3b
Delete DataRootContainer.java
SegoCode Aug 7, 2026
1fbfbdf
Delete User.java
SegoCode Aug 7, 2026
7c79c76
Update VideoService.java
SegoCode Aug 7, 2026
c5c47c0
Update MessageUtil.java
SegoCode Aug 7, 2026
e5ddcc8
Update Webdlbot.java
SegoCode Aug 7, 2026
2ca878b
Update Main.java
SegoCode Aug 7, 2026
8556a1a
Delete AdminController.java
SegoCode Aug 7, 2026
b6b6377
Delete PanelApplication.java
SegoCode Aug 7, 2026
28e965f
Update CommandExecutor.java
SegoCode Aug 7, 2026
0011a0d
Update FileUtil.java
SegoCode Aug 7, 2026
15dbd19
Delete admin.html
SegoCode Aug 7, 2026
abb240f
Create DownloadQueueTest.java
SegoCode Aug 7, 2026
caed02c
Create VideoServiceTest.java
SegoCode Aug 7, 2026
f240a25
Create MessageUtilTest.java
SegoCode Aug 7, 2026
3e2b50f
Create FileUtilTest.java
SegoCode Aug 7, 2026
c41eee0
Update LICENSE
SegoCode Aug 7, 2026
831aba8
Delete demoPanel.png
SegoCode Aug 7, 2026
411bed4
Update README.md
SegoCode Aug 7, 2026
9dd3d3e
Create readme_example.md
SegoCode Aug 7, 2026
7631010
Update README.md
SegoCode Aug 7, 2026
9e95810
Update README.md
SegoCode Aug 7, 2026
de8c330
Delete readme_example.md
SegoCode Aug 7, 2026
4fabed0
Update java-verify.yml
SegoCode Aug 7, 2026
bd5af99
Add files via upload
SegoCode Aug 7, 2026
28df33a
Fix formatting and update links in README.md
SegoCode Aug 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .github/FUNDING.yml

This file was deleted.

21 changes: 14 additions & 7 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,21 @@ body:

- type: dropdown
attributes:
label: OS version
label: Platform
description: Where does the issue occur?
options:
- Windows 11
- Windows 10
- Windows Other
- Linux Debian
- Linux Arch
- Linux Other
- Web — Chrome (Blink)
- Web — Firefox (Gecko)
- Web — Safari (WebKit)
- Web — Other
- Desktop — macOS
- Desktop — Windows
- Desktop — Linux
- Desktop — Other
- Mobile — iOS
- Mobile — Android
- Mobile — Other
- Other
validations:
required: true

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Contact the developer
url: https://SegoCode.github.io/SegoCode/
url: https://SegoCode.github.io/SegoCode/
about: To discuss any type of related topic
64 changes: 0 additions & 64 deletions .github/workflows/do-not-merge.yml

This file was deleted.

95 changes: 30 additions & 65 deletions .github/workflows/generate-tag.yml
Original file line number Diff line number Diff line change
@@ -1,98 +1,63 @@
name: Generate tag

on:
on:
pull_request:
types: [closed]

concurrency:
group: generate-tag

jobs:
create_tag:
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'auto-tag')
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' && contains(github.event.pull_request.labels.*.name, 'auto-tag')
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
new_version: ${{ steps.determine_version.outputs.new_version }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
fetch-depth: 0 # Fetch all history for tag retrieval
fetch-depth: 0

- name: Set up git
run: |
git config --global user.name "github-actions"
git config --global user.email "github-actions@github.com"

- name: Fetch all tags
run: git fetch --tags

- name: Get latest tag
id: get_latest_tag
run: |
# Get the latest tag
latest_tag=$(git describe --tags `git rev-list --tags --max-count=1` 2>/dev/null || echo "")
echo "latest_tag=$latest_tag" >> $GITHUB_ENV
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"

- name: Determine new version
id: determine_version
run: |
latest_tag=${{ env.latest_tag }}
latest_tag=$(git tag --list --sort=-version:refname | grep -m1 -E '^[0-9]+\.[0-9]+$' || true)
if [ -z "$latest_tag" ]; then
# Initialize the version to 1.0 if no tags exist
new_version="1.0"
else
# Extract the major and minor version and increment the minor version
major_version=$(echo $latest_tag | cut -d. -f1)
minor_version=$(echo $latest_tag | cut -d. -f2)
new_minor_version=$((minor_version + 1))
new_version="$major_version.$new_minor_version"

# Check if the new version tag already exists
while git rev-parse "refs/tags/$new_version" >/dev/null 2>&1; do
new_minor_version=$((new_minor_version + 1))
new_version="$major_version.$new_minor_version"
done
IFS=. read -r major minor <<< "$latest_tag"
if [[ "${{ contains(github.event.pull_request.labels.*.name, 'semver:major') }}" == "true" ]]; then
new_version="$((major + 1)).0"
else
new_version="$major.$((minor + 1))"
fi
fi
echo "new_version=$new_version" >> $GITHUB_ENV

- name: Checkout main branch
run: |
git checkout main
echo "new_version=$new_version" >> "$GITHUB_OUTPUT"

- name: Create new tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
new_version=${{ env.new_version }}
git tag -a $new_version -m "Automatically generated version $new_version"
git push origin $new_version
new_version="${{ steps.determine_version.outputs.new_version }}"
git tag -a "$new_version" -m "Release $new_version" "${{ github.event.pull_request.merge_commit_sha }}"
git push origin "$new_version"

create_issue:
needs: create_tag
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for tag retrieval

- name: Set up git
run: |
git config --global user.name "github-actions"
git config --global user.email "github-actions@github.com"

- name: Fetch all tags
run: git fetch --tags

- name: Get the latest tag
id: get_latest_tag
run: |
# Get the latest tag
latest_tag=$(git describe --tags `git rev-list --tags --max-count=1` 2>/dev/null || echo "")
echo "latest_tag=$latest_tag" >> $GITHUB_ENV

- name: Create issue for new tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
latest_tag: ${{ env.latest_tag }}
GH_TOKEN: ${{ github.token }}
run: |
repository=${{ github.repository }}
issue_title="The tag \`${{ env.latest_tag }}\` was created"
issue_body=$'The **${{ env.latest_tag }}** tag for the **main branch** has been created. Please consider creating a release of this tag, if a release isn\'t needed, you can close this issue.\n\n[Click here to create a release of **${{ env.latest_tag }}** tag](../releases/new?tag=${{ env.latest_tag }})'
gh issue create --title "$issue_title" --body "$issue_body" --label "auto-tag"
issue_title="The tag \`${{ needs.create_tag.outputs.new_version }}\` was created"
issue_body=$'The **${{ needs.create_tag.outputs.new_version }}** tag for the **main branch** has been created.\nPlease consider creating a release of this tag, if a release isn\'t needed, you can close this issue.\n\n[Click here to create a release of **${{ needs.create_tag.outputs.new_version }}** tag](../releases/new?tag=${{ needs.create_tag.outputs.new_version }})'
gh issue create --repo "${{ github.repository }}" --title "$issue_title" --body "$issue_body" --label auto-tag
31 changes: 14 additions & 17 deletions .github/workflows/gitleaks.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,42 @@
name: Gitleaks
on:
push:
pull_request:
workflow_dispatch:
schedule:
# Run at 00:00 UTC on the first day of each month
- cron: '0 0 1 * *'

jobs:
scan:
name: Gitleaks Scan
runs-on: ubuntu-latest
# Only run scheduled jobs on main branch
if: github.event_name != 'schedule' || github.ref == 'refs/heads/main'
permissions:
contents: read
issues: write
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
fetch-depth: 0

- name: Run Gitleaks
id: gitleaks
uses: gitleaks/gitleaks-action@v2
uses: gitleaks/gitleaks-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
continue-on-error: true

- name: Create issue if leaks found
if: steps.gitleaks.outcome == 'failure' && (github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch')
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ github.token }}
run: |
echo "Creating detailed security issue report..."

# Get current timestamp
TIMESTAMP=$(date -u +"%Y-%m-%d %H:%M:%S UTC")

# Create an enriched issue body
ISSUE_BODY="## 🚨 Security Alert: Potential Secrets Detected

**Detection Time:** ${TIMESTAMP}
**Branch:** ${GITHUB_REF#refs/heads/}
**Triggered by:** ${{ github.event_name == 'workflow_dispatch' && 'Manual workflow run' || (github.event_name == 'schedule' && 'Monthly scheduled scan' || 'Automated scan') }}
**Detected by:** Gitleaks Security Scanner

### Details
Expand All @@ -55,13 +51,14 @@ jobs:
3. Remove the secrets from the codebase
4. Consider using GitHub Secrets or environment variables instead

### Contact
Please reach out to the security team for assistance if needed.

---
*This issue was automatically generated by the Gitleaks security scanning workflow.*"

gh issue create \
--repo ${{ github.repository }} \
--title "Security Alert: Potential secrets detected in ${{ github.event_name == 'pull_request' && format('PR #{0}', github.event.pull_request.number) || 'main branch' }}" \
--repo "${{ github.repository }}" \
--title "Security Alert: Potential secrets detected in main branch" \
--body "${ISSUE_BODY}"

- name: Fail if leaks were found
if: steps.gitleaks.outcome == 'failure'
run: exit 1
8 changes: 4 additions & 4 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
- uses: actions/first-interaction@v3.1.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Thank you for your first issue. To better understand your request or the problem you've encountered, please provide as many details as possible. If the behavior changes or if you have new information about your request, don't hesitate to add it. It will be reviewed ASAP."
pr-message: "Thank you for your first pull request to the repository! We're grateful for your contribution and will review it ASAP."
repo_token: ${{ secrets.GITHUB_TOKEN }}
issue_message: "Thank you for your first issue. To better understand your request or the problem you've encountered, please provide as many details as possible. If the behavior changes or if you have new information about your request, don't hesitate to add it. It will be reviewed ASAP."
pr_message: "Thank you for your first pull request to the repository! We're grateful for your contribution and will review it ASAP."
33 changes: 33 additions & 0 deletions .github/workflows/java-verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Java verify

on:
pull_request:

permissions:
contents: read

concurrency:
group: java-verify-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
verify:
name: Compile and test
runs-on: ubuntu-latest
defaults:
run:
working-directory: code
steps:
- name: Check out repository
uses: actions/checkout@v5

- name: Set up Java
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '21'
cache: maven
cache-dependency-path: code/pom.xml

- name: Verify Maven project
run: mvn --batch-mode --no-transfer-progress verify
Loading