fix(core): update
This commit is contained in:
parent
08463a7599
commit
59d6c7d5ec
@ -39,7 +39,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@apiglobal/typedrequest": "^2.0.12",
|
"@apiglobal/typedrequest": "^2.0.12",
|
||||||
"@apiglobal/typedrequest-interfaces": "^2.0.1",
|
"@apiglobal/typedrequest-interfaces": "^2.0.1",
|
||||||
"@apiglobal/typedsocket": "^2.0.22",
|
"@apiglobal/typedsocket": "^2.0.23",
|
||||||
"@pushrocks/smartchok": "^1.0.23",
|
"@pushrocks/smartchok": "^1.0.23",
|
||||||
"@pushrocks/smartdelay": "^2.0.13",
|
"@pushrocks/smartdelay": "^2.0.13",
|
||||||
"@pushrocks/smartexpress": "^4.0.34",
|
"@pushrocks/smartexpress": "^4.0.34",
|
||||||
|
@ -8,8 +8,8 @@ dependencies:
|
|||||||
specifier: ^2.0.1
|
specifier: ^2.0.1
|
||||||
version: 2.0.1
|
version: 2.0.1
|
||||||
'@apiglobal/typedsocket':
|
'@apiglobal/typedsocket':
|
||||||
specifier: ^2.0.22
|
specifier: ^2.0.23
|
||||||
version: 2.0.22
|
version: 2.0.23
|
||||||
'@pushrocks/smartchok':
|
'@pushrocks/smartchok':
|
||||||
specifier: ^1.0.23
|
specifier: ^1.0.23
|
||||||
version: 1.0.23
|
version: 1.0.23
|
||||||
@ -97,14 +97,14 @@ packages:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
/@apiglobal/typedsocket@2.0.22:
|
/@apiglobal/typedsocket@2.0.23:
|
||||||
resolution: {integrity: sha512-HivYmN0nUCyj9ZpCSpFe1tr5brTDGfNLRP5FFC+0oK+ZvFgIDD6JiFzHkQfbaDSelA+4I3JTiTdrJ5iyvroS9w==}
|
resolution: {integrity: sha512-DDekwm0XYOhJsHSVXuOoMy2/qSaJLh8SgMuq7F5OiIMO2HCv73Dwlo8m8iLw0x+t94LS339c57OvhIcFYX1Usg==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@apiglobal/typedrequest': 2.0.12
|
'@apiglobal/typedrequest': 2.0.12
|
||||||
'@apiglobal/typedrequest-interfaces': 2.0.1
|
'@apiglobal/typedrequest-interfaces': 2.0.1
|
||||||
'@pushrocks/isohash': 2.0.0
|
'@pushrocks/isohash': 2.0.0
|
||||||
'@pushrocks/smartjson': 5.0.5
|
'@pushrocks/smartjson': 5.0.5
|
||||||
'@pushrocks/smartsocket': 2.0.16
|
'@pushrocks/smartsocket': 2.0.18
|
||||||
'@pushrocks/smartstring': 4.0.5
|
'@pushrocks/smartstring': 4.0.5
|
||||||
'@pushrocks/smarturl': 3.0.5
|
'@pushrocks/smarturl': 3.0.5
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
@ -505,7 +505,7 @@ packages:
|
|||||||
resolution: {integrity: sha512-0ndTf7ufPAP86TwUoggXAUMqlXx8K77b3D1wJSEDEMs5UqL94khCYz0h/FnGM8eTkLGcgDMwiyahDehcuWWM1g==}
|
resolution: {integrity: sha512-0ndTf7ufPAP86TwUoggXAUMqlXx8K77b3D1wJSEDEMs5UqL94khCYz0h/FnGM8eTkLGcgDMwiyahDehcuWWM1g==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@apiglobal/typedrequest': 2.0.12
|
'@apiglobal/typedrequest': 2.0.12
|
||||||
'@apiglobal/typedsocket': 2.0.22
|
'@apiglobal/typedsocket': 2.0.23
|
||||||
'@pushrocks/lik': 6.0.2
|
'@pushrocks/lik': 6.0.2
|
||||||
'@pushrocks/smartdelay': 2.0.13
|
'@pushrocks/smartdelay': 2.0.13
|
||||||
'@pushrocks/smartenv': 5.0.5
|
'@pushrocks/smartenv': 5.0.5
|
||||||
@ -528,9 +528,7 @@ packages:
|
|||||||
express: 4.18.2
|
express: 4.18.2
|
||||||
express-force-ssl: 0.3.2
|
express-force-ssl: 0.3.2
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- bufferutil
|
|
||||||
- supports-color
|
- supports-color
|
||||||
- utf-8-validate
|
|
||||||
|
|
||||||
/@pushrocks/smartfeed@1.0.11:
|
/@pushrocks/smartfeed@1.0.11:
|
||||||
resolution: {integrity: sha512-PcsiQ4tkwTpGxOdLiEpAR5vfFpn8Utnlind4mmX+FLIZVuuONaApefWMvaYv5ysmfnWQuCE2qkFq1J5ulDcBbQ==}
|
resolution: {integrity: sha512-PcsiQ4tkwTpGxOdLiEpAR5vfFpn8Utnlind4mmX+FLIZVuuONaApefWMvaYv5ysmfnWQuCE2qkFq1J5ulDcBbQ==}
|
||||||
@ -769,8 +767,8 @@ packages:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
/@pushrocks/smartsocket@2.0.16:
|
/@pushrocks/smartsocket@2.0.18:
|
||||||
resolution: {integrity: sha512-iFcfBmLrlDw+npCEq2dVJA3GLV8gGJwzaGaaCTHsth864lcE8xhWz9aMxXJvfzYd3HH37R2upYIuXyfIeWllUw==}
|
resolution: {integrity: sha512-6ehWK4QjqCn2Vq7x7HSNAWaddnc966HaDGeiRBt+5hg05vdzuNhLroqleVrkkTa9CO5lM08aISis1aZSD3/8AA==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@apiglobal/typedrequest-interfaces': 2.0.1
|
'@apiglobal/typedrequest-interfaces': 2.0.1
|
||||||
'@pushrocks/isohash': 2.0.0
|
'@pushrocks/isohash': 2.0.0
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@apiglobal/typedserver',
|
name: '@apiglobal/typedserver',
|
||||||
version: '2.0.35',
|
version: '2.0.36',
|
||||||
description: 'easy serving of static files'
|
description: 'easy serving of static files'
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@apiglobal/typedserver',
|
name: '@apiglobal/typedserver',
|
||||||
version: '2.0.35',
|
version: '2.0.36',
|
||||||
description: 'easy serving of static files'
|
description: 'easy serving of static files'
|
||||||
}
|
}
|
||||||
|
@ -98,7 +98,17 @@ export class ReloadChecker {
|
|||||||
this.typedrouter,
|
this.typedrouter,
|
||||||
plugins.typedsocket.TypedSocket.useWindowLocationOriginUrl()
|
plugins.typedsocket.TypedSocket.useWindowLocationOriginUrl()
|
||||||
);
|
);
|
||||||
this.typedsocket;
|
this.typedsocket.eventSubject.subscribe(eventArg => {
|
||||||
|
console.log(`typedsocket event subscription: ${eventArg}`);
|
||||||
|
if (eventArg === 'disconnected' || eventArg === 'disconnecting' || eventArg === 'timedOut') {
|
||||||
|
this.backendConnectionLost = true;
|
||||||
|
this.infoscreen.setText(`typedsocket ${eventArg}!`)
|
||||||
|
} else if (eventArg === 'connected' && this.backendConnectionLost) {
|
||||||
|
this.backendConnectionLost = false;
|
||||||
|
this.infoscreen.setSuccess('typedsocket connected!')
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
logger.log('success', `ReloadChecker connected through typedsocket!`)
|
logger.log('success', `ReloadChecker connected through typedsocket!`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -71,6 +71,7 @@ export class TypedserverInfoscreen extends LitElement {
|
|||||||
];
|
];
|
||||||
|
|
||||||
public setText(textArg: string) {
|
public setText(textArg: string) {
|
||||||
|
this.success = false;
|
||||||
this.text = textArg;
|
this.text = textArg;
|
||||||
this.show();
|
this.show();
|
||||||
this.success = false;
|
this.success = false;
|
||||||
@ -80,17 +81,23 @@ export class TypedserverInfoscreen extends LitElement {
|
|||||||
this.text = textArg;
|
this.text = textArg;
|
||||||
this.show();
|
this.show();
|
||||||
this.success = true;
|
this.success = true;
|
||||||
|
setTimeout(() => this.hide(), 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
private appended = false;
|
private appended = false;
|
||||||
public show () {
|
public async show () {
|
||||||
this.appended = true;
|
|
||||||
document.body.append(this);
|
document.body.append(this);
|
||||||
|
this.appended = true;
|
||||||
|
await plugins.smartdelay.delayFor(0);
|
||||||
|
const mainbox = this.shadowRoot.querySelector('.mainbox');
|
||||||
|
mainbox.classList.add('show');
|
||||||
}
|
}
|
||||||
|
|
||||||
public hide() {
|
public async hide() {
|
||||||
this.success = false;
|
|
||||||
this.text = '';
|
this.text = '';
|
||||||
|
const mainbox = this.shadowRoot.querySelector('.mainbox');
|
||||||
|
mainbox.classList.add('show');
|
||||||
|
await plugins.smartdelay.delayFor(300);
|
||||||
if (this.appended) {
|
if (this.appended) {
|
||||||
document.body.removeChild(this);
|
document.body.removeChild(this);
|
||||||
}
|
}
|
||||||
@ -99,7 +106,7 @@ export class TypedserverInfoscreen extends LitElement {
|
|||||||
|
|
||||||
public render () {
|
public render () {
|
||||||
return html`
|
return html`
|
||||||
<div class="mainbox ${this.show ? 'show' : ''} ${this.success ? 'success': ''}">${this.text}</div>
|
<div class="mainbox ${this.success ? 'success': ''}">${this.text}</div>
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user