Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
dd2216e
Style reformat
AnnaSasDev Jan 27, 2026
1fb4977
Refactor: Rename `WorldRules` to `WorldFAQ`, update localization, UI …
AnnaSasDev Jan 27, 2026
fd09584
Refactor: Migrate `WorldFaq` and `Writing` services to `FaqContent` a…
AnnaSasDev Jan 27, 2026
0099460
Refactor: Add `ProxyUploadRequest` and `ProxyDeleteRequest`, simplify…
AnnaSasDev Jan 27, 2026
3d43ef2
Refactor: Relocate `DirectiveAthenaWeb.DevServer` to `.dev-tools`, re…
AnnaSasDev Jan 27, 2026
fbb7d91
Refactor: Rename `WorldFaq` and `Writings` components to `Faq` and `W…
AnnaSasDev Jan 27, 2026
7711dc5
Refactor: Rename `Content.Writings` to `Content.Writing`, update rela…
AnnaSasDev Jan 27, 2026
5a441f3
Add settings file for `DirectiveAthenaWeb.Content.Writing`
AnnaSasDev Jan 27, 2026
36cad0d
Rename `AddWritingContent` to `AddFaqContent` and register `FaqConten…
AnnaSasDev Jan 27, 2026
1bd147b
Refactor: Rename `Articles` and `WorldRules` test namespaces to `Cont…
AnnaSasDev Jan 27, 2026
90556d0
Update solution file to include new test projects for `Content.Faq` a…
AnnaSasDev Jan 27, 2026
6dec769
Add `DirectiveAthenaWeb.Services.Content` project reference and regis…
AnnaSasDev Jan 27, 2026
b57b4dc
Add `DirectiveAthenaWeb.Services.Contact` project, register its servi…
AnnaSasDev Jan 27, 2026
101ec30
Add localization support with `LocalizationOptions` and `Localization…
AnnaSasDev Jan 27, 2026
e35a3dc
Merge branch 'core' into review
AnnaSasDev Jan 28, 2026
fa4e721
Remove `ContentCategory` enum in favor of string-based category ident…
AnnaSasDev Jan 28, 2026
9131162
Refactor: Replace sealed classes with open classes, introduce concurr…
AnnaSasDev Jan 28, 2026
a5ee966
Add PWA support with web manifest, favicons, and meta tags
AnnaSasDev Jan 28, 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
36 changes: 18 additions & 18 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
version: 2
updates:
- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "Chore(deps): "
include: "scope"
- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "Chore(deps): "
include: "scope"

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "Chore(deps): "
include: "scope"
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "Chore(deps): "
include: "scope"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
12 changes: 6 additions & 6 deletions .github/workflows/lib_testing.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Run tests

on:
workflow_call:
inputs:
ref:
description: Git ref to test
required: false
type: string
workflow_call:
inputs:
ref:
description: Git ref to test
required: false
type: string

jobs:
test:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/onPullRequestTests.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Pull Request Tests

on:
pull_request:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:
run-tests:
name: Run Multi-Platform Tests
# noinspection UndefinedAction
uses: ./.github/workflows/lib_testing.yml
secrets: inherit
run-tests:
name: Run Multi-Platform Tests
uses: ./.github/workflows/lib_testing.yml
secrets: inherit
286 changes: 143 additions & 143 deletions .github/workflows/publishGithubPages.yml
Original file line number Diff line number Diff line change
@@ -1,153 +1,153 @@
name: Deploy to Github Pages

on:
workflow_dispatch:
inputs:
version_bump:
description: Version bump type
required: true
default: minor
type: choice
options:
- patch
- minor
- major
workflow_dispatch:
inputs:
version_bump:
description: Version bump type
required: true
default: minor
type: choice
options:
- patch
- minor
- major

permissions:
contents: write
packages: write
pages: write
id-token: write
contents: write
packages: write
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false
group: pages
cancel-in-progress: false

jobs:
run-tests:
name: Run Multi-Platform Tests
# noinspection UndefinedAction
uses: ./.github/workflows/lib_testing.yml
secrets: inherit

deploy:
name: Deploy
runs-on: ubuntu-latest
needs: run-tests
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.CORE_PUSH_TOKEN }}

- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.x'

- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: '20.x'

- name: Install npm dependencies
run: npm ci
working-directory: src/DirectiveAthenaWeb.Services.Js

- name: Build interop bundle
run: npm run build
working-directory: src/DirectiveAthenaWeb.Services.Js

- name: Bump site version
id: version
run: |
version_file="src/DirectiveAthenaWeb.Client/wwwroot/version.txt"
if [ ! -f "$version_file" ]; then
echo "0.0.0" > "$version_file"
fi
current_version="$(cat "$version_file" | tr -d ' \n\r')"
if ! [[ "$current_version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Invalid version format: $current_version"
exit 1
fi
IFS='.' read -r major minor patch <<< "$current_version"
bump_type="${{ inputs.version_bump }}"
case "$bump_type" in
major)
major=$((major + 1))
minor=0
patch=0
;;
minor)
minor=$((minor + 1))
patch=0
;;
patch)
patch=$((patch + 1))
;;
*)
echo "Invalid bump type: $bump_type"
exit 1
;;
esac
new_version="$major.$minor.$patch"
echo "$new_version" > "$version_file"
echo "version=$new_version" >> "$GITHUB_OUTPUT"

- name: Commit version bump
env:
CORE_PUSH_TOKEN: ${{ secrets.CORE_PUSH_TOKEN }}
run: |
if [ -z "$CORE_PUSH_TOKEN" ]; then
echo "CORE_PUSH_TOKEN is not set."
exit 1
fi
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add src/DirectiveAthenaWeb.Client/wwwroot/version.txt
git commit -m "chore: bump version to ${{ steps.version.outputs.version }}"
git tag "v${{ steps.version.outputs.version }}"
git remote set-url origin "https://x-access-token:${CORE_PUSH_TOKEN}@github.com/${{ github.repository }}.git"
git push origin HEAD
git push origin --tags

- name: Restore dependencies
run: dotnet restore DirectiveAthenaWeb.GithubPages.slnf

- name: Publish docs site
run: |
dotnet publish src/DirectiveAthenaWeb.Client -c Release -o ./out \
-p:PublishTrimmed=true \
-p:TrimMode=partial \
-p:DebuggerSupport=false \
-p:MetadataUpdaterSupport=false
cp ./out/wwwroot/index.html ./out/wwwroot/404.html

- name: List published files
run: |
echo "Published output:"
ls -la ./out

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: ./out/wwwroot

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ steps.version.outputs.version }}
name: Release v${{ steps.version.outputs.version }}
generate_release_notes: true
token: ${{ secrets.CORE_PUSH_TOKEN }}
run-tests:
name: Run Multi-Platform Tests
uses: ./.github/workflows/lib_testing.yml
secrets: inherit

deploy:
name: Deploy
runs-on: ubuntu-latest
needs: run-tests
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.CORE_PUSH_TOKEN }}

- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.x'

- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: '20.x'

- name: Install npm dependencies
run: npm ci
working-directory: src/DirectiveAthenaWeb.Services.Js

- name: Build interop bundle
run: npm run build
working-directory: src/DirectiveAthenaWeb.Services.Js

- name: Bump site version
id: version
run: |
version_file="src/DirectiveAthenaWeb.Client/wwwroot/version.txt"
if [ ! -f "$version_file" ]; then
echo "0.0.0" > "$version_file"
fi
current_version="$(cat "$version_file" | tr -d ' \n\r')"
if ! [[ "$current_version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Invalid version format: $current_version"
exit 1
fi
IFS='.' read -r major minor patch <<< "$current_version"
bump_type="${{ inputs.version_bump }}"
case "$bump_type" in
major)
major=$((major + 1))
minor=0
patch=0
;;
minor)
minor=$((minor + 1))
patch=0
;;
patch)
patch=$((patch + 1))
;;
*)
echo "Invalid bump type: $bump_type"
exit 1
;;
esac
new_version="$major.$minor.$patch"
echo "$new_version" > "$version_file"
echo "version=$new_version" >> "$GITHUB_OUTPUT"

- name: Commit version bump
env:
CORE_PUSH_TOKEN: ${{ secrets.CORE_PUSH_TOKEN }}
run: |
if [ -z "$CORE_PUSH_TOKEN" ]; then
echo "CORE_PUSH_TOKEN is not set."
exit 1
fi
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add src/DirectiveAthenaWeb.Client/wwwroot/version.txt
git commit -m "chore: bump version to ${{ steps.version.outputs.version }}"
git tag "v${{ steps.version.outputs.version }}"
git remote set-url origin "https://x-access-token:${CORE_PUSH_TOKEN}@github.com/${{ github.repository }}.git"
git push origin HEAD
git push origin --tags

- name: Restore dependencies
run: dotnet restore DirectiveAthenaWeb.GithubPages.slnf

- name: Publish docs site
run: |
dotnet publish src/DirectiveAthenaWeb.Client -c Release -o ./out \
-p:PublishTrimmed=true \
-p:TrimMode=partial \
-p:DebuggerSupport=false \
-p:MetadataUpdaterSupport=false
cp ./out/wwwroot/index.html ./out/wwwroot/404.html

- name: List published files
run: |
echo "Published output:"
ls -la ./out

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: ./out/wwwroot

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ steps.version.outputs.version }}
name: Release v${{ steps.version.outputs.version }}
generate_release_notes: true
token: ${{ secrets.CORE_PUSH_TOKEN }}
Loading