From 40b010b8d9461e2d5b41c141bfbc240fe83ff977 Mon Sep 17 00:00:00 2001 From: giles Date: Tue, 24 Feb 2026 23:24:39 +0000 Subject: [PATCH] =?UTF-8?q?Disable=20CI=20=E2=80=94=20moved=20to=20coop/ar?= =?UTF-8?q?t-dag=20monorepo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 62 --------------------- app/templates/activities/detail.html | 63 ++++++++++++++++++++++ app/templates/anchors/detail.html | 81 ++++++++++++++++++++++++++++ app/templates/assets/detail.html | 81 ++++++++++++++++++++++++++++ app/templates/users/profile.html | 62 +++++++++++++++++++++ 5 files changed, 287 insertions(+), 62 deletions(-) delete mode 100644 .gitea/workflows/ci.yml create mode 100644 app/templates/activities/detail.html create mode 100644 app/templates/anchors/detail.html create mode 100644 app/templates/assets/detail.html create mode 100644 app/templates/users/profile.html diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml deleted file mode 100644 index 30d34ea..0000000 --- a/.gitea/workflows/ci.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: Build and Deploy - -on: - push: - branches: [main] - -env: - REGISTRY: registry.rose-ash.com:5000 - IMAGE: l2-server - -jobs: - build-and-deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Install tools - run: | - apt-get update && apt-get install -y --no-install-recommends openssh-client - - - name: Set up SSH - env: - SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }} - DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} - run: | - mkdir -p ~/.ssh - echo "$SSH_KEY" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ssh-keyscan -H "$DEPLOY_HOST" >> ~/.ssh/known_hosts 2>/dev/null || true - - - name: Pull latest code on server - env: - DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} - run: | - ssh "root@$DEPLOY_HOST" " - cd /root/art-dag/activity-pub - git fetch origin main - git reset --hard origin/main - " - - - name: Build and push image - env: - DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} - run: | - ssh "root@$DEPLOY_HOST" " - cd /root/art-dag/activity-pub - docker build --build-arg CACHEBUST=\$(date +%s) -t ${{ env.REGISTRY }}/${{ env.IMAGE }}:latest -t ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ github.sha }} . - docker push ${{ env.REGISTRY }}/${{ env.IMAGE }}:latest - docker push ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ github.sha }} - " - - - name: Deploy stack - env: - DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} - run: | - ssh "root@$DEPLOY_HOST" " - cd /root/art-dag/activity-pub - docker stack deploy -c docker-compose.yml activitypub - echo 'Waiting for services to update...' - sleep 10 - docker stack services activitypub - " diff --git a/app/templates/activities/detail.html b/app/templates/activities/detail.html new file mode 100644 index 0000000..c484844 --- /dev/null +++ b/app/templates/activities/detail.html @@ -0,0 +1,63 @@ +{% extends "base.html" %} + +{% block title %}Activity {{ activity.activity_id[:16] }}{% endblock %} + +{% block content %} +
+ + +
+
+

{{ activity.activity_type }}

+ + Activity + +
+ +
+
+

Activity ID

+

{{ activity.activity_id }}

+
+ +
+

Actor

+

{{ activity.actor_id }}

+
+ +
+

Published

+

{{ activity.published }}

+
+ + {% if activity.anchor_root %} +
+

Anchor Root

+

{{ activity.anchor_root }}

+
+ {% endif %} + + {% if activity.object_data %} +
+

Object Data

+
{{ activity.object_data | tojson(indent=2) }}
+
+ {% endif %} + + {% if activity.signature %} +
+

Signature

+
{{ activity.signature | tojson(indent=2) }}
+
+ {% endif %} +
+
+
+{% endblock %} diff --git a/app/templates/anchors/detail.html b/app/templates/anchors/detail.html new file mode 100644 index 0000000..d721e8a --- /dev/null +++ b/app/templates/anchors/detail.html @@ -0,0 +1,81 @@ +{% extends "base.html" %} + +{% block title %}Anchor {{ anchor.merkle_root[:16] }}{% endblock %} + +{% block content %} +
+ + +
+
+

Bitcoin Anchor

+ + {% if anchor.confirmed_at %}Confirmed{% else %}Pending{% endif %} + +
+ +
+
+

Merkle Root

+

{{ anchor.merkle_root }}

+
+ +
+
+

Activity Count

+

{{ anchor.activity_count }}

+
+
+

Created

+

{{ anchor.created_at }}

+
+
+ + {% if anchor.bitcoin_txid %} +
+

Bitcoin Transaction

+ + {{ anchor.bitcoin_txid }} + +
+ {% endif %} + + {% if anchor.confirmed_at %} +
+

Confirmed At

+

{{ anchor.confirmed_at }}

+
+ {% endif %} + + {% if anchor.tree_ipfs_cid %} +
+

Merkle Tree IPFS CID

+ + {{ anchor.tree_ipfs_cid }} + +
+ {% endif %} + + {% if anchor.ots_proof_cid %} +
+

OpenTimestamps Proof CID

+ + {{ anchor.ots_proof_cid }} + +
+ {% endif %} +
+
+
+{% endblock %} diff --git a/app/templates/assets/detail.html b/app/templates/assets/detail.html new file mode 100644 index 0000000..376ab53 --- /dev/null +++ b/app/templates/assets/detail.html @@ -0,0 +1,81 @@ +{% extends "base.html" %} + +{% block title %}{{ asset.name }} - Asset{% endblock %} + +{% block content %} +
+ + +
+ +
+ {% if asset.asset_type == 'video' %} + + + + + {% elif asset.asset_type == 'image' %} + + + + {% else %} + + + + {% endif %} +
+ + +
+
+
+

{{ asset.name }}

+

by {{ asset.owner }}

+
+ + {{ asset.asset_type }} + +
+ + {% if asset.description %} +

{{ asset.description }}

+ {% endif %} + + {% if asset.tags %} +
+ {% for tag in asset.tags %} + {{ tag }} + {% endfor %} +
+ {% endif %} + +
+
+

Content Hash

+

{{ asset.content_hash }}

+
+ {% if asset.ipfs_cid %} + + {% endif %} +
+ +
+ Created {{ asset.created_at }} +
+
+
+
+{% endblock %} diff --git a/app/templates/users/profile.html b/app/templates/users/profile.html new file mode 100644 index 0000000..5a1ce4c --- /dev/null +++ b/app/templates/users/profile.html @@ -0,0 +1,62 @@ +{% extends "base.html" %} + +{% block title %}{{ profile.username }} - Profile{% endblock %} + +{% block content %} +
+ +
+
+
+ {{ profile.username[0]|upper }} +
+
+

{{ profile.display_name or profile.username }}

+

@{{ profile.username }}

+ {% if profile.bio %} +

{{ profile.bio }}

+ {% endif %} +
+
+
+ + +
+

Assets

+ + {% if assets %} + + {% else %} +

No assets yet.

+ {% endif %} +
+
+{% endblock %}