add dev server and beta warnings

This commit is contained in:
Stewart Allen 2025-12-26 19:02:05 -05:00
commit f7125661ef
4 changed files with 11 additions and 4 deletions

View file

@ -1,6 +1,12 @@
// provides a device export to local disk option
self.kiri.load(api => {
api.event.on('load-done', () => {
let devwarn = api.sdb.kiri_dev;
if (location.host === 'dev.grid.space' && devwarn !== api.version) {
api.alerts.show('this is a development server', 10);
api.alerts.show('use <a href="https://grid.space/kiri">grid.space</a> for production', 10);
api.sdb.kiri_dev = api.version;
}
let deviceExport = api.device.export;
api.device.export = (exp, name, opt = {}) => {
const { event, record } = opt;

View file

@ -111,9 +111,7 @@ export async function init_sync() {
// warn users they are running a beta release
if (beta && beta > 0 && sdb.kiri_beta != beta) {
api.show.alert("CAUTION");
api.show.alert("this is a development release");
api.show.alert("and may not function properly");
api.show.alert('<b style="color:red">caution:</b> beta code ahead', 10);
sdb.kiri_beta = beta;
}

View file

@ -6,6 +6,6 @@ const terms = {
VERSION: "4.6.0"
};
export const beta = 0;
export const beta = 4600;
export const license = terms;
export const version = terms.VERSION;

View file

@ -279,6 +279,9 @@ details[open] summary::after {
background-color: var(--blue-2);
color: black;
}
.dark #alert-border:hover {
background-color: rgba(255,255,255,0.7);
}
.dark #progress {
background-color: #333;
border-top: 1px solid #555;