mirror of
https://codeberg.org/uzu/strudel
synced 2026-09-17 19:14:45 -04:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4be798c4fa | |||
| 26832c0fe7 | |||
| 01abc8ae79 | |||
| 84df683794 | |||
| ca1aca0c00 | |||
| e8668a1552 | |||
| 86d65c72f0 | |||
| 9f19e4616a |
@@ -1,4 +1,4 @@
|
||||
name: Build and Deploy to beta (warm.strudel.cc)
|
||||
name: Build and Deploy to warm (strudel.cc)
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -37,4 +37,4 @@ jobs:
|
||||
apt update && apt install -y rsync
|
||||
mkdir ~/.ssh
|
||||
ssh-keyscan matrix.toplap.org > ~/.ssh/known_hosts
|
||||
rsync -atv --delete --delete-after --progress ./website/dist/ strudel@matrix.toplap.org:/home/strudel/deploy/warm.strudel.cc
|
||||
rsync -atv --delete --delete-after --progress ./website/dist/ strudel@matrix.toplap.org:/home/strudel/deploy/strudel.cc
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Build and Deploy to live (strudel.cc)
|
||||
name: Build and Deploy to cold (cold.strudel.cc)
|
||||
|
||||
on: [workflow_dispatch]
|
||||
|
||||
@@ -34,4 +34,4 @@ jobs:
|
||||
apt update && apt install -y rsync
|
||||
mkdir ~/.ssh
|
||||
ssh-keyscan matrix.toplap.org > ~/.ssh/known_hosts
|
||||
rsync -atv --delete --delete-after --progress ./website/dist/ strudel@matrix.toplap.org:/home/strudel/deploy/strudel.cc
|
||||
rsync -atv --delete --delete-after --progress ./website/dist/ strudel@matrix.toplap.org:/home/strudel/deploy/cold.strudel.cc
|
||||
@@ -0,0 +1,17 @@
|
||||
This place is a message... and part of a system of messages... pay attention to it!
|
||||
|
||||
Sending this message was important to us. We considered ourselves to be a powerful culture.
|
||||
|
||||
This place is not a place of honor... no highly esteemed deed is commemorated here... nothing valued is here.
|
||||
|
||||
What is here was dangerous and repulsive to us. This message is a warning about danger.
|
||||
|
||||
The danger is in a particular location... it increases towards a center... the center of danger is here... of a particular size and shape, and below us.
|
||||
|
||||
The danger is still present, in your time, as it was in ours.
|
||||
|
||||
The danger is to the body, and it can kill.
|
||||
|
||||
The form of the danger is an emanation of energy.
|
||||
|
||||
The danger is unleashed only if you substantially disturb this place physically. This place is best shunned and left uninhabited.
|
||||
@@ -44,6 +44,25 @@ export function LogoButton({ context, isEmbedded }) {
|
||||
|
||||
export function MainPanel({ context, isEmbedded = false, className }) {
|
||||
const { isZen, isButtonRowHidden, fontFamily } = useSettings();
|
||||
let loc = window.location;
|
||||
let ver = 'unofficial';
|
||||
let hot = false;
|
||||
let b = loc.hostname.match(/^(.+)\.(strudel)/);
|
||||
if (/(strudel.cc$)/.test(loc.hostname)) {
|
||||
// if there's no text before 'strudel', it's warm, otherwise use the text before strudel
|
||||
ver = b ? b[1] : 'warm';
|
||||
} else {
|
||||
// match both versions of localhost
|
||||
if (/(localhost)|(127.0.0.1)/.test(loc.hostname)) ver = 'dev';
|
||||
}
|
||||
let pr = ver.match(/pr-([0-9]+)/);
|
||||
if (pr) {
|
||||
pr = pr[1];
|
||||
ver = `hot: ${pr}`;
|
||||
hot = true;
|
||||
pr = `https://codeberg.org/uzu/strudel/pulls/${pr}`;
|
||||
}
|
||||
|
||||
return (
|
||||
<nav
|
||||
id="header"
|
||||
@@ -72,6 +91,13 @@ export function MainPanel({ context, isEmbedded = false, className }) {
|
||||
<div className="space-x-2 flex items-baseline">
|
||||
<span className="hidden sm:block">strudel</span>
|
||||
<span className="text-sm font-medium hidden sm:block">REPL</span>
|
||||
{!hot ? (
|
||||
<span className="text-sm font-medium hidden sm:block">({ver})</span>
|
||||
) : (
|
||||
<a className="hover:opacity-50" href={pr} target="_blank">
|
||||
<span className="text-sm font-medium hidden sm:block">({ver})</span>
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
</h1>
|
||||
|
||||
Reference in New Issue
Block a user