Skip to content

Commit

Permalink
Merge branch 'main' into multi-room
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesTaylor7 committed May 18, 2024
2 parents e7d38d9 + 05b6ed8 commit 5b50922
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
set -eo pipefail

BRANCH=${1:-"main"}

# load .env for supabase env vars
export $(cat .env | xargs)

Expand All @@ -14,4 +16,4 @@ node upload-assets.js

# deploy to citadels.fly.dev
fly secrets set GIT_SHA=$(git show -s --format=%H)
fly deploy --strategy=immediate -i=ghcr.io/charlestaylor7/citadels:main
fly deploy --strategy=immediate -i="ghcr.io/charlestaylor7/citadels:${BRANCH}"
7 changes: 4 additions & 3 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
<link name="viewport" content="width=device-width, initial-scale=1" />
<link rel="shortcut icon" href={{"htmx.png"|asset}} />
<link rel="stylesheet" href={{"styles/index.css"|asset}} />

<script src="https://unpkg.com/[email protected]/dist/htmx.js"></script>
<script src="https://unpkg.com/[email protected]/dist/ext/ws.js"></script>
<script src="https://unpkg.com/[email protected]/dist/ext/json-enc.js"></script>
<script src="https://unpkg.com/[email protected]/dist/ext/client-side-templates.js"></script>
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/interactjs/dist/interact.min.js"></script>
<!--
Expand Down Expand Up @@ -168,6 +166,7 @@
}

function enableWarrants() {
console.log("enable warrants")
interact('#menu [data-dropzone]').dropzone({
ondrop(event) {
let dropzone = event.currentTarget;
Expand Down Expand Up @@ -305,9 +304,11 @@
</script>
</head>
<body
id="ws"
data-theme="retro"
class="h-screen text-base-content text-xl"
hx-ext="ws,morph,json-enc,client-side-templates"
hx-ext="ws,morph,json-enc"
ws-connect="/ws"
_="init get the theme of localStorage if it exists set my @data-theme to it"
>
{% block content %}
Expand Down

0 comments on commit 5b50922

Please sign in to comment.