add dev server and beta warnings
This commit is contained in:
parent
ba294c34b1
commit
f7125661ef
4 changed files with 11 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue