12 Commits
dev ... v0.2.1

Author SHA1 Message Date
Gitea CI
eb59f30b38 Bump version: 0.2.0 → 0.2.1 2025-11-19 17:38:18 +00:00
455a3b4115 Merge pull request 'style changes' (#20) from dev into main
Reviewed-on: #20
2025-11-19 17:31:07 +00:00
c9f03b4f1f Merge pull request 'fix typo [skip-ci]' (#19) from dev into main
Reviewed-on: #19
2025-11-19 16:49:35 +00:00
Gitea CI
2cbd5835a0 Bump version: 0.1.2 → 0.2.0 2025-11-19 16:26:59 +00:00
ef82a4c4ca Merge pull request 'update example, add mail_enabled env [skip-ci]' (#18) from dev into main
Reviewed-on: #18
2025-11-19 15:44:40 +00:00
3a1e58bb8d Merge pull request 'dev' (#17) from dev into main
Reviewed-on: #17
2025-11-19 15:41:35 +00:00
ae0109050d Merge pull request 'dev' (#16) from dev into main
Reviewed-on: #16
2025-11-19 15:08:28 +00:00
0ced6ea4e7 Merge pull request 'feat: add elsa form with a modular addition of content type' (#15) from dev into main
Reviewed-on: #15
2025-11-19 13:27:58 +00:00
c3e9b3c634 Merge pull request 'chore: add uv and python setup to test to generate requirements file' (#14) from dev into main
Reviewed-on: #14
2025-11-19 13:06:45 +00:00
9f916356a0 Merge pull request 'Feat: landing page, debug mail local setup' (#13) from dev into main
Reviewed-on: #13
2025-11-19 13:05:56 +00:00
075402803f Merge pull request 'Feat: update form, allow some fields to be optional; add dauerapp check; get mail setup working using env variables' (#10) from dev into main
Reviewed-on: #10
2025-10-10 09:03:45 +01:00
048feaba33 Update .gitea/workflows/docker-build.yml 2025-10-10 09:02:12 +01:00
5 changed files with 25 additions and 62 deletions

View File

@@ -19,6 +19,19 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Set up Python
run: uv python install
with:
python-version-file: "pyproject.toml"
- name: Install the project dependencies
run: |
uv sync --all-groups
uv add pip
uv export --format requirements.txt -o requirements.txt
# uv run python -m pip install --upgrade pip
# uv run python -m pip install -r requirements.txt
- name: Derive lowercase repo name
run: |

View File

@@ -18,39 +18,12 @@ on:
- "major"
- "minor"
- "patch"
pull_request:
types: [closed]
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
# Only run on merged PRs with [release-*] or manual workflow_dispatch
if: |
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request' && github.event.pull_request.merged == true && contains(github.event.pull_request.title, '[release-'))
steps:
- name: Determine bump type
id: bump_type
run: |
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "type=${{ github.event.inputs.bump }}" >> $GITHUB_OUTPUT
else
# Extract bump type from PR title: [release-patch], [release-minor], [release-major]
PR_TITLE="${{ github.event.pull_request.title }}"
if [[ "$PR_TITLE" =~ \[release-major\] ]]; then
echo "type=major" >> $GITHUB_OUTPUT
elif [[ "$PR_TITLE" =~ \[release-minor\] ]]; then
echo "type=minor" >> $GITHUB_OUTPUT
elif [[ "$PR_TITLE" =~ \[release-patch\] ]]; then
echo "type=patch" >> $GITHUB_OUTPUT
else
echo "type=patch" >> $GITHUB_OUTPUT
fi
fi
- name: Checkout code
uses: actions/checkout@v4.2.2
with:
@@ -79,7 +52,7 @@ jobs:
id: bump
run: |
uv tool install bump-my-version
uv tool run bump-my-version bump ${{ steps.bump_type.outputs.type }}
uv tool run bump-my-version bump ${{ github.event.inputs.bump }}
# echo the version to github env, the version is shown by using uv tool run bump-my-version show current_version
echo "VERSION<<EOF" >> $GITHUB_ENV
echo "$(uv tool run bump-my-version show current_version)" >> $GITHUB_ENV
@@ -104,12 +77,12 @@ jobs:
echo "tag=$prev" >> "$GITHUB_OUTPUT"
- name: Compute lowercased image repo
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.docker_release == 'true' || github.event_name == 'pull_request' }}
if: ${{ github.event.inputs.docker_release == 'true' }}
run: |
echo "IMAGE_REPO=${{ secrets.REGISTRY }}/$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Docker meta
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.docker_release == 'true' || github.event_name == 'pull_request' }}
if: ${{ github.event.inputs.docker_release == 'true' }}
id: meta
uses: docker/metadata-action@v5
with:
@@ -119,13 +92,12 @@ jobs:
type=raw,value=${{ env.VERSION }}
- name: Build and push Docker image
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.docker_release == 'true' || github.event_name == 'pull_request' }}
if: ${{ github.event.inputs.docker_release == 'true' }}
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64
push: true
no-cache: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
@@ -146,7 +118,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
- name: Create Gitea Release
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.github_release == 'true' || github.event_name == 'pull_request' }}
if: ${{ github.event.inputs.github_release == 'true' }}
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ env.VERSION }}

View File

@@ -240,13 +240,6 @@ input[type="radio"] { accent-color: var(--control-accent); }
}
[data-theme="dark"] .btn-secondary:hover { background: #1f2b3f; }
/* Generic disabled button state */
.btn:disabled {
opacity: 0.55;
cursor: not-allowed;
filter: grayscale(0.15);
}
.actions {
margin-top: 16px;
display: flex;
@@ -544,8 +537,8 @@ input[type="radio"] { accent-color: var(--control-accent); }
top: 20px;
right: 20px;
background: var(--card-bg);
border: 1px solid hsl(142, 82%, 30%);
background-color: hsl(142, 71%, 45%);
border: 1px solid hsl(142, 71%, 45%);
background-color: hsl(142, 82%, 30%);
border-radius: 12px;
box-shadow: 0 10px 40px rgba(0,0,0,0.2);
padding: 16px 20px;

View File

@@ -103,13 +103,13 @@
<h2>Medien</h2>
<div class="media-controls">
<button type="button" id="btn-monografie" class="btn btn-secondary" onclick="addMediaType('monografie')" title="Monografie Sektion hinzufügen">
<button type="button" class="btn btn-secondary" onclick="addMediaType('monografie')">
<span class="mdi mdi-book"></span> + Monografie
</button>
<button type="button" id="btn-zeitschriftenartikel" class="btn btn-secondary" onclick="addMediaType('zeitschriftenartikel')" title="Zeitschriftenartikel Sektion hinzufügen">
<button type="button" class="btn btn-secondary" onclick="addMediaType('zeitschriftenartikel')">
<span class="mdi mdi-newspaper"></span> + Zeitschriftenartikel
</button>
<button type="button" id="btn-herausgeberwerk" class="btn btn-secondary" onclick="addMediaType('herausgeberwerk')" title="Herausgeberwerk Sektion hinzufügen">
<button type="button" class="btn btn-secondary" onclick="addMediaType('herausgeberwerk')">
<span class="mdi mdi-book-multiple"></span> + Herausgeberwerk
</button>
</div>
@@ -173,9 +173,6 @@
// Media management functions (global scope for onclick handlers)
function addMediaType(type) {
const btn = document.getElementById('btn-' + type);
// Prevent duplicate sections of same type
if (btn && btn.disabled) { return; }
const container = document.getElementById('media-sections');
const sectionId = 'section-' + sectionCounter++;
@@ -246,11 +243,6 @@
'</button>';
container.appendChild(section);
// Disable button for this type until section removed
if (btn) {
btn.disabled = true;
btn.title = 'Sektion bereits hinzugefügt entfernen zum erneuten Hinzufügen';
}
// Add first row automatically
addMediaRow(sectionId, type);
@@ -322,7 +314,6 @@
const section = document.getElementById(sectionId);
if (section) {
if (confirm('Möchten Sie diese Sektion wirklich entfernen?')) {
const type = section.getAttribute('data-type');
// Clean up tracking for removed rows
const rows = section.querySelectorAll('tr[id]');
rows.forEach(row => {
@@ -332,12 +323,6 @@
}
});
section.remove();
// Re-enable button for this media type
const btn = document.getElementById('btn-' + type);
if (btn) {
btn.disabled = false;
btn.title = 'Sektion hinzufügen';
}
updateSubmitButton();
}
}

View File

@@ -1,6 +1,6 @@
[project]
name = "semapform"
version = "0.1.2"
version = "0.2.1"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
@@ -15,7 +15,7 @@ dependencies = [
]
[tool.bumpversion]
current_version = "0.1.2"
current_version = "0.2.1"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "{current_version}"