17 Commits
1.1.0 ... 1.1.5

Author SHA1 Message Date
gitea
d0a6a9ce3f [no ci] release 1.1.5 2025-02-16 16:13:12 +00:00
87f4d71cc9 moves userId to index
All checks were successful
CI / deploy (push) Successful in 5m49s
2025-02-16 17:07:24 +01:00
gitea
53a047217a [no ci] prepare new Version 2025-02-16 15:40:18 +00:00
gitea
3dbd19ee3b [no ci] release 1.1.4 2025-02-16 15:40:09 +00:00
c0415561ee fixes rich-preview
All checks were successful
CI / deploy (push) Successful in 6m0s
2025-02-16 16:31:53 +01:00
gitea
7b9143c26d [no ci] prepare new Version 2025-02-16 14:56:49 +00:00
gitea
a21db87b98 [no ci] release 1.1.3 2025-02-16 14:56:42 +00:00
f1c5792a12 Merge pull request 'deploy to dice-tower.com' (#32) from rich-preview into main
All checks were successful
CI / deploy (push) Successful in 5m59s
Reviewed-on: #32
2025-02-16 15:50:49 +01:00
d163160eb6 deploy to dice-tower.com
All checks were successful
CI / deploy (push) Successful in 5m44s
CI / deploy (pull_request) Successful in 5m23s
2025-02-16 15:35:25 +01:00
gitea
1c7e793fb2 [no ci] prepare new Version 2025-02-16 12:39:04 +00:00
gitea
cb1d34fd09 [no ci] release 1.1.2 2025-02-16 12:38:55 +00:00
8a212a5044 Merge pull request 'adds html rich preview' (#31) from rich-preview into main
All checks were successful
CI / deploy (push) Successful in 10m46s
Reviewed-on: #31
2025-02-16 13:28:16 +01:00
09473f627b adds html rich preview
All checks were successful
CI / deploy (push) Successful in 5m15s
CI / deploy (pull_request) Successful in 10m10s
2025-02-16 12:56:33 +01:00
gitea
fbfd23d335 [no ci] prepare new Version 2025-02-12 17:07:20 +00:00
gitea
0ccbd9dd0b [no ci] release 1.1.1 2025-02-12 17:07:14 +00:00
b79c2b1e42 adds user to chatoverlay
All checks were successful
CI / deploy (push) Successful in 4m50s
2025-02-12 18:02:24 +01:00
gitea
f3f788ea51 [no ci] prepare new Version 2025-02-12 15:20:36 +00:00
8 changed files with 56 additions and 13 deletions

View File

@@ -43,7 +43,14 @@ jobs:
name: Version
run: echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> ${GITHUB_OUTPUT}
- name: Build Container
- name: Build unstable Container
if: github.ref_name != 'main'
run: |
echo ${{secrets.PACKAGES_TOKEN}} | docker login --username ${{ secrets.PACKAGES_USER }} --password-stdin git.arindy.de
docker build -f src/main/docker/Dockerfile.native-micro -t git.arindy.de/arindy/dice-tower:unstable -t git.arindy.de/arindy/dice-tower:${{ steps.version.outputs.VERSION }} .
docker push git.arindy.de/arindy/dice-tower:unstable
- name: Build stable Container
if: github.ref_name == 'main'
run: |
echo ${{secrets.PACKAGES_TOKEN}} | docker login --username ${{ secrets.PACKAGES_USER }} --password-stdin git.arindy.de
@@ -51,10 +58,28 @@ jobs:
docker push git.arindy.de/arindy/dice-tower:${{ steps.version.outputs.VERSION }}
docker push git.arindy.de/arindy/dice-tower:latest
- name: Prepare deploy
run: |
echo ${{secrets.SSH_KNOWN_HOSTS}} >> ~/.ssh/known_hosts
base64 -d <<< ${{secrets.SSH_KEY}} > ./.key
chmod 600 ./.key
- name: Deploy unstable
if: github.ref_name != 'main'
run: "ssh -i ./.key dice-tower@${{secrets.SSH_HOST}} 'docker compose -f compose.unstable.yml pull && docker compose -f compose.unstable.yml up -d' "
- name: Deploy
if: github.ref_name == 'main'
run: "ssh -i ./.key dice-tower@${{secrets.SSH_HOST}} 'docker compose -f compose.yml pull && docker compose -f compose.yml up -d' "
- name: Deploy local
if: github.ref_name == 'main'
run: "docker compose up -d"
- name: clean up
run: |
rm ./.key
- name: create tag
if: github.ref_name == 'main'
run: |

2
.gitignore vendored
View File

@@ -124,3 +124,5 @@ fabric.properties
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
.key
.key/

View File

@@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.arindy</groupId>
<artifactId>dice-tower</artifactId>
<version>1.1.0</version>
<version>1.1.5</version>
<properties>
<compiler-plugin.version>3.13.0</compiler-plugin.version>

View File

@@ -181,12 +181,6 @@ document.addEventListener("DOMContentLoaded", async () => {
document.getElementById('chatOverlayLink').href = url() + '/chatoverlay'
document.addEventListener("DOMContentLoaded", async () => {
if (!localStorage.getItem("userId")) {
localStorage.setItem("userId", self.crypto.randomUUID());
}
})
configurePopover();
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

View File

@@ -38,7 +38,7 @@
result.rolls.forEach(roll => {
values.push(roll.value);
})
document.getElementById('results').innerHTML = '<strong>' + message + '</strong>: [' + values.map(value => value === 1 ? '<strong style="text-shadow: 2px 2px 10px red">' + value + '</strong>' : value === result.sides ? '<strong style="text-shadow: 2px 2px 10px green">' + value + '</strong>' : value).join(' + ') + (result.modifier > 0 ? ' <a style="text-decoration: underline">+' + result.modifier + '</a>' : result.modifier < 0 ? ' <a style="text-decoration: underline">' + result.modifier + '</a>' : '') + '] = <strong>' + result.value + '</strong> '
document.getElementById('results').innerHTML = '<strong>' + user + '</strong> rolls <strong>' + message + '</strong>:<br/> [' + values.map(value => value === 1 ? '<strong style="text-shadow: 2px 2px 10px red">' + value + '</strong>' : value === result.sides ? '<strong style="text-shadow: 2px 2px 10px green">' + value + '</strong>' : value).join(' + ') + (result.modifier > 0 ? ' <a style="text-decoration: underline">+' + result.modifier + '</a>' : result.modifier < 0 ? ' <a style="text-decoration: underline">' + result.modifier + '</a>' : '') + '] = <strong>' + result.value + '</strong> '
})
document.getElementById('results').showPopover()
setTimeout(() => {

View File

@@ -38,8 +38,8 @@
<div>
<label for="channel">Channel </label>
<input type="text" id="channel" style="width: 400px; margin-top: 20px" value="arindy"/>
<label for="cmd">Command </label>
<input type="text" id="cmd" style="width: 100px; margin-top: 20px" value="roll"/>
<label for="cmd">Command !</label>
<input type="text" id="cmd" style="width: 100px; margin-top: 20px; margin-left: 0" value="roll"/>
</div>
<div>
<label class="checkbox" id="modsAllowed-container">Allow mods to roll
@@ -57,7 +57,7 @@
</div>
<div>
<label for="scale">Dice-Scale </label>
<input type="number" id="scale" style="width: 50px; margin-top: 20px" value="7"/>
<input type="number" id="scale" style="width: 50px; margin-top: 20px" value="9"/>
<label for="maxDice">Max number of dice </label>
<input type="number" id="maxDice" style="width: 50px; margin-top: 20px" value="20"/>
</div>
@@ -65,7 +65,7 @@
<label for="clearAfter">Clear dice after (in seconds)</label>
<input type="number" id="clearAfter" style="width: 50px; margin-top: 20px" value="10"/>
<label for="timeout">Command-timeout (in seconds)</label>
<input type="number" id="timeout" style="width: 50px; margin-top: 20px" value="10"/>
<input type="number" id="timeout" style="width: 50px; margin-top: 20px" value="60"/>
</div>
<div id="dice-box" style="height: 400px"></div>
<button style="margin: 10px" id="preview">Preview <i class="fa-solid fa-magnifying-glass"></i></button>

View File

@@ -3,6 +3,8 @@
<head>
<meta charset="UTF-8">
<title>Dice-Tower</title>
<meta name="version" content="{version}">
<link rel="stylesheet" href="/vendor/w3css/4/w3.css">
<link rel="stylesheet" href="/vendor/font-awesome/css/fontawesome.css">
<link rel="stylesheet" href="/vendor/font-awesome/css/all.css">
@@ -11,12 +13,32 @@
<script src="/vendor/color-picker.js"></script>
<script type="module" src="/dice-preview.js"></script>
<script type="text/javascript" src="/app.js"></script>
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Dice-Tower">
<meta name="twitter:image" content="{http:request.scheme}://{http:request.authority}/rich.png">
<meta name="description" content="Easy to use online dice rolling with customizable overlays.">
<meta name="twitter:description" content="Easy to use online dice rolling with customizable overlays.">
<meta property="og:url" content="{http:request.absoluteURI}">
<meta property="og:image" content="{http:request.scheme}://{http:request.authority}/rich.png">
<meta property="og:description" content="Easy to use online dice rolling with customizable overlays.">
<meta property="og:title" content="Dice-Tower">
<meta property="og:site_name" content="Dice-Tower">
<meta property="og:type" content="website">
<meta property="twitter:url" content="{http:request.absoluteURI}">
<meta property="twitter:domain" content="{http:request.authority}">
</head>
<body class="w3-theme-l1">
<script>
if (!localStorage.getItem("userId")) {
localStorage.setItem("userId", self.crypto.randomUUID());
}
</script>
<div class="w3-container w3-content"
style="height: 95vh; display: flex; flex-direction: column; justify-content: space-between; padding: 25px">
<h1 style="text-align: center"><i class="fa-solid fa-dice-d20"></i> Dice-Tower <i class="fa-solid fa-dice-d20"></i>
</h1>
<div class="w3-panel w3-theme-l4 w3-card w3-display-container"
style="padding: 25px; text-align: center; margin-bottom: auto;">
<h2 id="nameH" popovertarget="room-hint" data-trigger="hover" style="margin: 0" hidden>Name</h2>