Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f4f7ec0dca | ||
|
|
5a7c4704d0 | ||
|
|
8b880738d6 | ||
|
|
06c732971f |
12
.github/codeql/codeql-config.yml
vendored
12
.github/codeql/codeql-config.yml
vendored
@@ -1,12 +0,0 @@
|
|||||||
---
|
|
||||||
name: "FileRise CodeQL config"
|
|
||||||
paths:
|
|
||||||
- "public/js"
|
|
||||||
- "api"
|
|
||||||
paths-ignore:
|
|
||||||
- "public/vendor/**"
|
|
||||||
- "public/css/vendor/**"
|
|
||||||
- "public/fonts/**"
|
|
||||||
- "public/**/*.min.js"
|
|
||||||
- "public/**/*.min.css"
|
|
||||||
- "public/**/*.map"
|
|
||||||
286
.github/workflows/release-on-version.yml
vendored
286
.github/workflows/release-on-version.yml
vendored
@@ -1,153 +1,159 @@
|
|||||||
---
|
---
|
||||||
name: Release on version.js update
|
name: Release on version.js update
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: ["master"]
|
||||||
- master
|
paths:
|
||||||
paths:
|
- public/js/version.js
|
||||||
- public/js/version.js
|
workflow_run:
|
||||||
workflow_run:
|
workflows: ["Bump version and sync Changelog to Docker Repo"]
|
||||||
workflows: "Bump version and sync Changelog to Docker Repo"
|
types: [completed]
|
||||||
types: completed
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
concurrency:
|
concurrency:
|
||||||
group: release-${{ github.ref }}-${{ github.sha }}
|
group: release-${{ github.ref }}-${{ github.sha }}
|
||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Read version from version.js
|
- name: Ensure tags available
|
||||||
id: ver
|
run: |
|
||||||
shell: bash
|
git fetch --tags --force --prune --quiet
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
- name: Read version from version.js
|
||||||
VER=$(grep -Eo "APP_VERSION\s*=\s*['\"]v[^'\"]+['\"]" public/js/version.js | sed -E "s/.*['\"](v[^'\"]+)['\"].*/\1/")
|
id: ver
|
||||||
if [[ -z "$VER" ]]; then
|
shell: bash
|
||||||
echo "Could not parse APP_VERSION from version.js" >&2
|
run: |
|
||||||
exit 1
|
set -euo pipefail
|
||||||
|
VER=$(grep -Eo "APP_VERSION\s*=\s*['\"]v[^'\"]+['\"]" public/js/version.js | sed -E "s/.*['\"](v[^'\"]+)['\"].*/\1/")
|
||||||
|
if [[ -z "$VER" ]]; then
|
||||||
|
echo "Could not parse APP_VERSION from version.js" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "version=$VER" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "Parsed version: $VER"
|
||||||
|
|
||||||
|
- name: Skip if tag already exists
|
||||||
|
id: tagcheck
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
if git rev-parse -q --verify "refs/tags/${{ steps.ver.outputs.version }}" >/dev/null; then
|
||||||
|
echo "exists=true" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "Tag ${{ steps.ver.outputs.version }} already exists. Skipping release."
|
||||||
|
else
|
||||||
|
echo "exists=false" >> "$GITHUB_OUTPUT"
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Build zip artifact
|
||||||
|
if: steps.tagcheck.outputs.exists == 'false'
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
ZIP="FileRise-${{ steps.ver.outputs.version }}.zip"
|
||||||
|
zip -r "$ZIP" . \
|
||||||
|
-x "./.git/*" "./.github/*" \
|
||||||
|
"./resources/*" "./resources/**" \
|
||||||
|
"./.dockerignore" "./.gitattributes" "./.gitignore" \
|
||||||
|
"$ZIP" "${ZIP}.sha256" >/dev/null
|
||||||
|
|
||||||
|
- name: Compute SHA-256 checksum
|
||||||
|
if: steps.tagcheck.outputs.exists == 'false'
|
||||||
|
id: sum
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
ZIP="FileRise-${{ steps.ver.outputs.version }}.zip"
|
||||||
|
SHA=$(shasum -a 256 "$ZIP" | awk '{print $1}')
|
||||||
|
echo "$SHA $ZIP" > "${ZIP}.sha256"
|
||||||
|
echo "sha=$SHA" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "Computed SHA-256: $SHA"
|
||||||
|
|
||||||
|
- name: Extract notes from CHANGELOG (optional)
|
||||||
|
if: steps.tagcheck.outputs.exists == 'false'
|
||||||
|
id: notes
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
NOTES_PATH=""
|
||||||
|
if [[ -f CHANGELOG.md ]]; then
|
||||||
|
awk '
|
||||||
|
BEGIN{found=0}
|
||||||
|
/^## / && !found {found=1}
|
||||||
|
found && /^---$/ {exit}
|
||||||
|
found {print}
|
||||||
|
' CHANGELOG.md > CHANGELOG_SNIPPET.md || true
|
||||||
|
sed -i -e :a -e '/^\n*$/{$d;N;ba' -e '}' CHANGELOG_SNIPPET.md || true
|
||||||
|
if [[ -s CHANGELOG_SNIPPET.md ]]; then
|
||||||
|
NOTES_PATH="CHANGELOG_SNIPPET.md"
|
||||||
fi
|
fi
|
||||||
echo "version=$VER" >> "$GITHUB_OUTPUT"
|
fi
|
||||||
echo "Parsed version: $VER"
|
echo "path=$NOTES_PATH" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Skip if tag already exists
|
- name: Compute previous tag (for Full Changelog link)
|
||||||
id: tagcheck
|
if: steps.tagcheck.outputs.exists == 'false'
|
||||||
shell: bash
|
id: prev
|
||||||
run: |
|
shell: bash
|
||||||
set -euo pipefail
|
run: |
|
||||||
git fetch --tags --quiet
|
set -euo pipefail
|
||||||
if git rev-parse -q --verify "refs/tags/${{ steps.ver.outputs.version }}" >/dev/null; then
|
VER="${{ steps.ver.outputs.version }}"
|
||||||
echo "exists=true" >> "$GITHUB_OUTPUT"
|
PREV=$(git tag --list "v*" --sort=-v:refname | grep -v -F "$VER" | head -n1 || true)
|
||||||
echo "Tag ${{ steps.ver.outputs.version }} already exists. Skipping release."
|
if [[ -z "$PREV" ]]; then
|
||||||
else
|
PREV=$(git rev-list --max-parents=0 HEAD | tail -n1)
|
||||||
echo "exists=false" >> "$GITHUB_OUTPUT"
|
fi
|
||||||
fi
|
echo "prev=$PREV" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "Previous tag or baseline: $PREV"
|
||||||
|
|
||||||
# Build the artifact first so we can checksum it
|
- name: Build release body (snippet + full changelog + checksum)
|
||||||
- name: Build zip artifact
|
if: steps.tagcheck.outputs.exists == 'false'
|
||||||
if: steps.tagcheck.outputs.exists == 'false'
|
shell: bash
|
||||||
shell: bash
|
run: |
|
||||||
run: |
|
set -euo pipefail
|
||||||
set -euo pipefail
|
VER="${{ steps.ver.outputs.version }}"
|
||||||
zip -r "FileRise-${{ steps.ver.outputs.version }}.zip" public/ README.md LICENSE >/dev/null || true
|
PREV="${{ steps.prev.outputs.prev }}"
|
||||||
|
REPO="${GITHUB_REPOSITORY}"
|
||||||
|
COMPARE_URL="https://github.com/${REPO}/compare/${PREV}...${VER}"
|
||||||
|
ZIP="FileRise-${VER}.zip"
|
||||||
|
SHA="${{ steps.sum.outputs.sha }}"
|
||||||
|
|
||||||
- name: Compute SHA-256 checksum
|
{
|
||||||
if: steps.tagcheck.outputs.exists == 'false'
|
echo "## ${VER}"
|
||||||
id: sum
|
echo
|
||||||
shell: bash
|
if [[ -s CHANGELOG_SNIPPET.md ]]; then
|
||||||
run: |
|
cat CHANGELOG_SNIPPET.md
|
||||||
set -euo pipefail
|
|
||||||
ZIP="FileRise-${{ steps.ver.outputs.version }}.zip"
|
|
||||||
SHA=$(shasum -a 256 "$ZIP" | awk '{print $1}')
|
|
||||||
echo "$SHA $ZIP" > "${ZIP}.sha256"
|
|
||||||
echo "sha=$SHA" >> "$GITHUB_OUTPUT"
|
|
||||||
echo "Computed SHA-256: $SHA"
|
|
||||||
|
|
||||||
- name: Extract notes from CHANGELOG (optional)
|
|
||||||
if: steps.tagcheck.outputs.exists == 'false'
|
|
||||||
id: notes
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
NOTES_PATH=""
|
|
||||||
if [[ -f CHANGELOG.md ]]; then
|
|
||||||
awk '
|
|
||||||
BEGIN{found=0}
|
|
||||||
/^## / && !found {found=1}
|
|
||||||
found && /^---$/ {exit}
|
|
||||||
found {print}
|
|
||||||
' CHANGELOG.md > CHANGELOG_SNIPPET.md || true
|
|
||||||
sed -i -e :a -e '/^\n*$/{$d;N;ba' -e '}' CHANGELOG_SNIPPET.md || true
|
|
||||||
if [[ -s CHANGELOG_SNIPPET.md ]]; then
|
|
||||||
NOTES_PATH="CHANGELOG_SNIPPET.md"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
echo "path=$NOTES_PATH" >> "$GITHUB_OUTPUT"
|
|
||||||
|
|
||||||
- name: Compute previous tag (for Full Changelog link)
|
|
||||||
if: steps.tagcheck.outputs.exists == 'false'
|
|
||||||
id: prev
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
git fetch --tags --quiet
|
|
||||||
PREV=$(git tag --list "v*" --sort=-v:refname | sed -n '2p' || true)
|
|
||||||
if [[ -z "$PREV" ]]; then
|
|
||||||
PREV=$(git rev-list --max-parents=0 HEAD | tail -n1)
|
|
||||||
fi
|
|
||||||
echo "prev=$PREV" >> "$GITHUB_OUTPUT"
|
|
||||||
echo "Previous tag or baseline: $PREV"
|
|
||||||
|
|
||||||
- name: Build release body (snippet + full changelog + checksum)
|
|
||||||
if: steps.tagcheck.outputs.exists == 'false'
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
VER="${{ steps.ver.outputs.version }}"
|
|
||||||
PREV="${{ steps.prev.outputs.prev }}"
|
|
||||||
REPO="${GITHUB_REPOSITORY}"
|
|
||||||
COMPARE_URL="https://github.com/${REPO}/compare/${PREV}...${VER}"
|
|
||||||
ZIP="FileRise-${VER}.zip"
|
|
||||||
SHA="${{ steps.sum.outputs.sha }}"
|
|
||||||
|
|
||||||
{
|
|
||||||
echo "## ${VER}"
|
|
||||||
echo
|
echo
|
||||||
if [[ -s CHANGELOG_SNIPPET.md ]]; then
|
fi
|
||||||
cat CHANGELOG_SNIPPET.md
|
echo "### Full Changelog"
|
||||||
echo
|
echo "[${PREV} → ${VER}](${COMPARE_URL})"
|
||||||
fi
|
echo
|
||||||
echo "### Full Changelog"
|
echo "### SHA-256 (zip)"
|
||||||
echo "[${PREV} → ${VER}](${COMPARE_URL})"
|
echo '```'
|
||||||
echo
|
echo "${SHA} ${ZIP}"
|
||||||
echo "### SHA-256 (zip)"
|
echo '```'
|
||||||
echo '```'
|
} > RELEASE_BODY.md
|
||||||
echo "${SHA} ${ZIP}"
|
|
||||||
echo '```'
|
|
||||||
} > RELEASE_BODY.md
|
|
||||||
|
|
||||||
echo "Release body:"
|
echo "Release body:"
|
||||||
sed -n '1,200p' RELEASE_BODY.md
|
sed -n '1,200p' RELEASE_BODY.md
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
if: steps.tagcheck.outputs.exists == 'false'
|
if: steps.tagcheck.outputs.exists == 'false'
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ steps.ver.outputs.version }}
|
tag_name: ${{ steps.ver.outputs.version }}
|
||||||
target_commitish: ${{ github.sha }}
|
target_commitish: ${{ github.sha }}
|
||||||
name: ${{ steps.ver.outputs.version }}
|
name: ${{ steps.ver.outputs.version }}
|
||||||
body_path: RELEASE_BODY.md
|
body_path: RELEASE_BODY.md
|
||||||
generate_release_notes: false
|
generate_release_notes: false
|
||||||
files: |
|
files: |
|
||||||
FileRise-${{ steps.ver.outputs.version }}.zip
|
FileRise-${{ steps.ver.outputs.version }}.zip
|
||||||
FileRise-${{ steps.ver.outputs.version }}.zip.sha256
|
FileRise-${{ steps.ver.outputs.version }}.zip.sha256
|
||||||
|
|||||||
18
CHANGELOG.md
18
CHANGELOG.md
@@ -1,5 +1,23 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Changes 10/28/2025 (v1.6.11)
|
||||||
|
|
||||||
|
release(v1.6.11) fix(ui/dragAndDrop) restore floating zones toggle click action
|
||||||
|
|
||||||
|
Re-add the click handler to toggle `zonesCollapsed` so the header
|
||||||
|
“sidebarToggleFloating” button actually expands/collapses the zones
|
||||||
|
again. This regressed in v1.6.10 during auth-gating refactor.
|
||||||
|
|
||||||
|
Refs: #regression #ux
|
||||||
|
|
||||||
|
chore(codeql): move config to repo root for default setup
|
||||||
|
|
||||||
|
- Relocate .github/codeql/codeql-config.yml to codeql-config.yml so GitHub default code scanning picks it up
|
||||||
|
- Keep paths: public/js, api
|
||||||
|
- Keep ignores: public/vendor/**, public/css/vendor/**, public/fonts/**, public/**/*.min.{js,css}, public/**/*.map
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Changes 10/28/2025 (v1.6.10)
|
## Changes 10/28/2025 (v1.6.10)
|
||||||
|
|
||||||
release(v1.6.10): self-host ReDoc, gate sidebar toggle on auth, and enrich release workflow
|
release(v1.6.10): self-host ReDoc, gate sidebar toggle on auth, and enrich release workflow
|
||||||
|
|||||||
12
codeql-config.yml
Normal file
12
codeql-config.yml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
name: FileRise CodeQL config
|
||||||
|
paths:
|
||||||
|
- public/js
|
||||||
|
- api
|
||||||
|
paths-ignore:
|
||||||
|
- public/vendor/**
|
||||||
|
- public/css/vendor/**
|
||||||
|
- public/fonts/**
|
||||||
|
- public/**/*.min.js
|
||||||
|
- public/**/*.min.css
|
||||||
|
- public/**/*.map
|
||||||
@@ -21,10 +21,10 @@ if (isset($_GET['spec'])) {
|
|||||||
<title>FileRise API Docs</title>
|
<title>FileRise API Docs</title>
|
||||||
|
|
||||||
<!-- Local ReDoc bundle -->
|
<!-- Local ReDoc bundle -->
|
||||||
<script defer src="/vendor/redoc/redoc.standalone.js?v=1.6.10"></script>
|
<script defer src="/vendor/redoc/redoc.standalone.js?v=1.6.11"></script>
|
||||||
|
|
||||||
<!-- Your init (also local) -->
|
<!-- Your init (also local) -->
|
||||||
<script defer src="/js/redoc-init.js?v=1.6.10"></script>
|
<script defer src="/js/redoc-init.js?v=1.6.11"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<redoc spec-url="/api.php?spec=1"></redoc>
|
<redoc spec-url="/api.php?spec=1"></redoc>
|
||||||
|
|||||||
@@ -11,28 +11,28 @@
|
|||||||
<meta name="share-url" content="">
|
<meta name="share-url" content="">
|
||||||
|
|
||||||
<style>.main-wrapper{display:none}#loadingOverlay{position:fixed;inset:0;background:var(--bg-color,#fff);z-index:9999;display:flex;align-items:center;justify-content:center}</style>
|
<style>.main-wrapper{display:none}#loadingOverlay{position:fixed;inset:0;background:var(--bg-color,#fff);z-index:9999;display:flex;align-items:center;justify-content:center}</style>
|
||||||
<link rel="stylesheet" href="/css/vendor/roboto.css?v=1.6.10">
|
<link rel="stylesheet" href="/css/vendor/roboto.css?v=1.6.11">
|
||||||
<link rel="stylesheet" href="/css/vendor/material-icons.css?v=1.6.10">
|
<link rel="stylesheet" href="/css/vendor/material-icons.css?v=1.6.11">
|
||||||
|
|
||||||
<!-- Bootstrap CSS (local) -->
|
<!-- Bootstrap CSS (local) -->
|
||||||
<link rel="stylesheet" href="/vendor/bootstrap/4.5.2/bootstrap.min.css?v=1.6.10">
|
<link rel="stylesheet" href="/vendor/bootstrap/4.5.2/bootstrap.min.css?v=1.6.11">
|
||||||
|
|
||||||
<!-- CodeMirror CSS (local) -->
|
<!-- CodeMirror CSS (local) -->
|
||||||
<link rel="stylesheet" href="/vendor/codemirror/5.65.5/codemirror.min.css?v=1.6.10">
|
<link rel="stylesheet" href="/vendor/codemirror/5.65.5/codemirror.min.css?v=1.6.11">
|
||||||
<link rel="stylesheet" href="/vendor/codemirror/5.65.5/theme/material-darker.min.css?v=1.6.10">
|
<link rel="stylesheet" href="/vendor/codemirror/5.65.5/theme/material-darker.min.css?v=1.6.11">
|
||||||
|
|
||||||
<!-- app CSS -->
|
<!-- app CSS -->
|
||||||
<link rel="stylesheet" href="/css/styles.css?v=1.6.10">
|
<link rel="stylesheet" href="/css/styles.css?v=1.6.11">
|
||||||
|
|
||||||
<!-- Libraries (JS) -->
|
<!-- Libraries (JS) -->
|
||||||
<script src="/vendor/dompurify/2.4.0/purify.min.js?v=1.6.10"></script>
|
<script src="/vendor/dompurify/2.4.0/purify.min.js?v=1.6.11"></script>
|
||||||
<script src="/vendor/fuse/6.6.2/fuse.min.js?v=1.6.10"></script>
|
<script src="/vendor/fuse/6.6.2/fuse.min.js?v=1.6.11"></script>
|
||||||
<script src="/vendor/resumable/1.1.0/resumable.min.js?v=1.6.10"></script>
|
<script src="/vendor/resumable/1.1.0/resumable.min.js?v=1.6.11"></script>
|
||||||
|
|
||||||
<!-- CodeMirror core FIRST, then modes -->
|
<!-- CodeMirror core FIRST, then modes -->
|
||||||
<script src="/vendor/codemirror/5.65.5/codemirror.min.js?v=1.6.10"></script>
|
<script src="/vendor/codemirror/5.65.5/codemirror.min.js?v=1.6.11"></script>
|
||||||
|
|
||||||
<script src="/js/version.js?v=1.6.10"></script>
|
<script src="/js/version.js?v=1.6.11"></script>
|
||||||
<script type="module" src="/js/main.js"></script>
|
<script type="module" src="/js/main.js"></script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -551,6 +551,10 @@ function ensureZonesToggle() {
|
|||||||
btn.style.color = '#e0e0e0';
|
btn.style.color = '#e0e0e0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
btn.addEventListener('click', () => {
|
||||||
|
setZonesCollapsed(!isZonesCollapsed());
|
||||||
|
});
|
||||||
|
|
||||||
// Insert right after the logo if present, else append to host
|
// Insert right after the logo if present, else append to host
|
||||||
const afterLogo = host.querySelector('.header-logo');
|
const afterLogo = host.querySelector('.header-logo');
|
||||||
if (afterLogo && afterLogo.parentNode) {
|
if (afterLogo && afterLogo.parentNode) {
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
// generated by CI
|
// generated by CI
|
||||||
window.APP_VERSION = 'v1.6.10';
|
window.APP_VERSION = 'v1.6.11';
|
||||||
|
|||||||
Reference in New Issue
Block a user