diff --git a/mods/devel/kiri.js b/mods/devel/kiri.js index 514a25bb..47ad33cb 100644 --- a/mods/devel/kiri.js +++ b/mods/devel/kiri.js @@ -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 grid.space for production', 10); + api.sdb.kiri_dev = api.version; + } let deviceExport = api.device.export; api.device.export = (exp, name, opt = {}) => { const { event, record } = opt; diff --git a/src/kiri/app/init/sync.js b/src/kiri/app/init/sync.js index bff4f9c9..fcf42801 100644 --- a/src/kiri/app/init/sync.js +++ b/src/kiri/app/init/sync.js @@ -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('caution: beta code ahead', 10); sdb.kiri_beta = beta; } diff --git a/src/moto/license.js b/src/moto/license.js index 83c6af45..d307e578 100644 --- a/src/moto/license.js +++ b/src/moto/license.js @@ -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; diff --git a/web/kiri/index.css b/web/kiri/index.css index 5f2491de..60b2a680 100644 --- a/web/kiri/index.css +++ b/web/kiri/index.css @@ -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;