Browse Source

Update the dependencies

Do the init check only if the server hasPubsub()
pull/970/head
Timothée Jaussoin 5 years ago
parent
commit
8dd5a34acf
  1. 5
      app/widgets/Init/Init.php
  2. 4
      app/widgets/Init/init.js
  3. 7
      app/widgets/Init/init.tpl
  4. 112
      composer.lock

5
app/widgets/Init/Init.php

@ -72,4 +72,9 @@ class Init extends Base
->setMaxItems(1)
->request();
}
public function display()
{
$this->view->assign('hasPubsub', $this->user->hasPubsub());
}
}

4
app/widgets/Init/init.js

@ -31,7 +31,3 @@ var Init = {
localStorage.setObject(jid + '_Init' + Init.version, init);
}
}
MovimWebsocket.attach(function() {
Init.checkNode();
});

7
app/widgets/Init/init.tpl

@ -0,0 +1,7 @@
{if="$hasPubsub"}
<script type="text/javascript">
MovimWebsocket.attach(function() {
Init.checkNode();
});
</script>
{/if}

112
composer.lock

@ -1919,16 +1919,16 @@
},
{
"name": "nesbot/carbon",
"version": "2.43.0",
"version": "2.44.0",
"source": {
"type": "git",
"url": "https://github.com/briannesbitt/Carbon.git",
"reference": "d32c57d8389113742f4a88725a170236470012e2"
"reference": "e6ef33cb1f67a4bed831ed6d0f7e156739a5d8cd"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/d32c57d8389113742f4a88725a170236470012e2",
"reference": "d32c57d8389113742f4a88725a170236470012e2",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/e6ef33cb1f67a4bed831ed6d0f7e156739a5d8cd",
"reference": "e6ef33cb1f67a4bed831ed6d0f7e156739a5d8cd",
"shasum": ""
},
"require": {
@ -1944,7 +1944,7 @@
"phpmd/phpmd": "^2.9",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.12.54",
"phpunit/phpunit": "^7.5 || ^8.0",
"phpunit/phpunit": "^7.5.20 || ^8.5.14",
"squizlabs/php_codesniffer": "^3.4"
},
"bin": [
@ -2008,7 +2008,7 @@
"type": "tidelift"
}
],
"time": "2020-12-17T20:55:32+00:00"
"time": "2021-01-26T20:46:41+00:00"
},
{
"name": "paragonie/random_compat",
@ -3385,16 +3385,16 @@
},
{
"name": "symfony/config",
"version": "v5.2.1",
"version": "v5.2.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/config.git",
"reference": "d0a82d965296083fe463d655a3644cbe49cbaa80"
"reference": "50e0e1314a3b2609d32b6a5a0d0fb5342494c4ab"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/config/zipball/d0a82d965296083fe463d655a3644cbe49cbaa80",
"reference": "d0a82d965296083fe463d655a3644cbe49cbaa80",
"url": "https://api.github.com/repos/symfony/config/zipball/50e0e1314a3b2609d32b6a5a0d0fb5342494c4ab",
"reference": "50e0e1314a3b2609d32b6a5a0d0fb5342494c4ab",
"shasum": ""
},
"require": {
@ -3440,10 +3440,10 @@
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Config Component",
"description": "Helps you find, load, combine, autofill and validate configuration values of any kind",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/config/tree/v5.2.1"
"source": "https://github.com/symfony/config/tree/v5.2.2"
},
"funding": [
{
@ -3459,20 +3459,20 @@
"type": "tidelift"
}
],
"time": "2020-12-09T18:54:12+00:00"
"time": "2021-01-27T10:15:41+00:00"
},
{
"name": "symfony/console",
"version": "v5.2.1",
"version": "v5.2.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
"reference": "47c02526c532fb381374dab26df05e7313978976"
"reference": "d62ec79478b55036f65e2602e282822b8eaaff0a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/console/zipball/47c02526c532fb381374dab26df05e7313978976",
"reference": "47c02526c532fb381374dab26df05e7313978976",
"url": "https://api.github.com/repos/symfony/console/zipball/d62ec79478b55036f65e2602e282822b8eaaff0a",
"reference": "d62ec79478b55036f65e2602e282822b8eaaff0a",
"shasum": ""
},
"require": {
@ -3531,7 +3531,7 @@
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Console Component",
"description": "Eases the creation of beautiful and testable command line interfaces",
"homepage": "https://symfony.com",
"keywords": [
"cli",
@ -3540,7 +3540,7 @@
"terminal"
],
"support": {
"source": "https://github.com/symfony/console/tree/v5.2.1"
"source": "https://github.com/symfony/console/tree/v5.2.2"
},
"funding": [
{
@ -3556,7 +3556,7 @@
"type": "tidelift"
}
],
"time": "2020-12-18T08:03:05+00:00"
"time": "2021-01-27T10:15:41+00:00"
},
{
"name": "symfony/deprecation-contracts",
@ -3627,16 +3627,16 @@
},
{
"name": "symfony/filesystem",
"version": "v5.2.1",
"version": "v5.2.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/filesystem.git",
"reference": "fa8f8cab6b65e2d99a118e082935344c5ba8c60d"
"reference": "262d033b57c73e8b59cd6e68a45c528318b15038"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/filesystem/zipball/fa8f8cab6b65e2d99a118e082935344c5ba8c60d",
"reference": "fa8f8cab6b65e2d99a118e082935344c5ba8c60d",
"url": "https://api.github.com/repos/symfony/filesystem/zipball/262d033b57c73e8b59cd6e68a45c528318b15038",
"reference": "262d033b57c73e8b59cd6e68a45c528318b15038",
"shasum": ""
},
"require": {
@ -3666,10 +3666,10 @@
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Filesystem Component",
"description": "Provides basic utilities for the filesystem",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/filesystem/tree/v5.2.1"
"source": "https://github.com/symfony/filesystem/tree/v5.2.2"
},
"funding": [
{
@ -3685,20 +3685,20 @@
"type": "tidelift"
}
],
"time": "2020-11-30T17:05:38+00:00"
"time": "2021-01-27T10:01:46+00:00"
},
{
"name": "symfony/http-foundation",
"version": "v5.2.1",
"version": "v5.2.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-foundation.git",
"reference": "a1f6218b29897ab52acba58cfa905b83625bef8d"
"reference": "16dfa5acf8103f0394d447f8eea3ea49f9e50855"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/a1f6218b29897ab52acba58cfa905b83625bef8d",
"reference": "a1f6218b29897ab52acba58cfa905b83625bef8d",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/16dfa5acf8103f0394d447f8eea3ea49f9e50855",
"reference": "16dfa5acf8103f0394d447f8eea3ea49f9e50855",
"shasum": ""
},
"require": {
@ -3739,10 +3739,10 @@
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony HttpFoundation Component",
"description": "Defines an object-oriented layer for the HTTP specification",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/http-foundation/tree/v5.2.1"
"source": "https://github.com/symfony/http-foundation/tree/v5.2.2"
},
"funding": [
{
@ -3758,7 +3758,7 @@
"type": "tidelift"
}
],
"time": "2020-12-18T10:00:10+00:00"
"time": "2021-01-27T11:19:04+00:00"
},
{
"name": "symfony/polyfill-ctype",
@ -4248,16 +4248,16 @@
},
{
"name": "symfony/routing",
"version": "v5.2.1",
"version": "v5.2.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/routing.git",
"reference": "934ac2720dcc878a47a45c986b483a7ee7193620"
"reference": "348b5917e56546c6d96adbf21d7f92c9ef563661"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/routing/zipball/934ac2720dcc878a47a45c986b483a7ee7193620",
"reference": "934ac2720dcc878a47a45c986b483a7ee7193620",
"url": "https://api.github.com/repos/symfony/routing/zipball/348b5917e56546c6d96adbf21d7f92c9ef563661",
"reference": "348b5917e56546c6d96adbf21d7f92c9ef563661",
"shasum": ""
},
"require": {
@ -4271,7 +4271,7 @@
"symfony/yaml": "<4.4"
},
"require-dev": {
"doctrine/annotations": "^1.7",
"doctrine/annotations": "^1.10.4",
"psr/log": "~1.0",
"symfony/config": "^5.0",
"symfony/dependency-injection": "^4.4|^5.0",
@ -4309,7 +4309,7 @@
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Routing Component",
"description": "Maps an HTTP request to a set of configuration variables",
"homepage": "https://symfony.com",
"keywords": [
"router",
@ -4318,7 +4318,7 @@
"url"
],
"support": {
"source": "https://github.com/symfony/routing/tree/v5.2.1"
"source": "https://github.com/symfony/routing/tree/v5.2.2"
},
"funding": [
{
@ -4334,7 +4334,7 @@
"type": "tidelift"
}
],
"time": "2020-12-08T17:03:37+00:00"
"time": "2021-01-27T10:15:41+00:00"
},
{
"name": "symfony/service-contracts",
@ -4417,16 +4417,16 @@
},
{
"name": "symfony/string",
"version": "v5.2.1",
"version": "v5.2.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/string.git",
"reference": "5bd67751d2e3f7d6f770c9154b8fbcb2aa05f7ed"
"reference": "c95468897f408dd0aca2ff582074423dd0455122"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/string/zipball/5bd67751d2e3f7d6f770c9154b8fbcb2aa05f7ed",
"reference": "5bd67751d2e3f7d6f770c9154b8fbcb2aa05f7ed",
"url": "https://api.github.com/repos/symfony/string/zipball/c95468897f408dd0aca2ff582074423dd0455122",
"reference": "c95468897f408dd0aca2ff582074423dd0455122",
"shasum": ""
},
"require": {
@ -4469,7 +4469,7 @@
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony String component",
"description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way",
"homepage": "https://symfony.com",
"keywords": [
"grapheme",
@ -4480,7 +4480,7 @@
"utf8"
],
"support": {
"source": "https://github.com/symfony/string/tree/v5.2.1"
"source": "https://github.com/symfony/string/tree/v5.2.2"
},
"funding": [
{
@ -4496,20 +4496,20 @@
"type": "tidelift"
}
],
"time": "2020-12-05T07:33:16+00:00"
"time": "2021-01-25T15:14:59+00:00"
},
{
"name": "symfony/translation",
"version": "v5.2.1",
"version": "v5.2.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/translation.git",
"reference": "a04209ba0d1391c828e5b2373181dac63c52ee70"
"reference": "c021864d4354ee55160ddcfd31dc477a1bc77949"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/translation/zipball/a04209ba0d1391c828e5b2373181dac63c52ee70",
"reference": "a04209ba0d1391c828e5b2373181dac63c52ee70",
"url": "https://api.github.com/repos/symfony/translation/zipball/c021864d4354ee55160ddcfd31dc477a1bc77949",
"reference": "c021864d4354ee55160ddcfd31dc477a1bc77949",
"shasum": ""
},
"require": {
@ -4570,10 +4570,10 @@
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Translation Component",
"description": "Provides tools to internationalize your application",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/translation/tree/v5.2.1"
"source": "https://github.com/symfony/translation/tree/v5.2.2"
},
"funding": [
{
@ -4589,7 +4589,7 @@
"type": "tidelift"
}
],
"time": "2020-12-08T17:03:37+00:00"
"time": "2021-01-27T10:15:41+00:00"
},
{
"name": "symfony/translation-contracts",

Loading…
Cancel
Save