2 Commits
dev ... v3.0.0

Author SHA1 Message Date
Primakov Alexandr Alexandrovich
c842befc8f 3.0.0
All checks were successful
platform/bro/pipeline/head This commit looks good
platform/bro/pipeline/tag This commit looks good
2024-08-11 23:36:53 +03:00
Primakov Alexandr Alexandrovich
fb267a11f9 remove comment
Some checks failed
platform/bro/pipeline/head This commit looks good
platform/gitea-bro-js/journal.pl/pipeline/head There was a failure building this commit
platform/bro-js/journal.pl/pipeline/head This commit looks good
2024-08-07 23:37:45 +03:00
3 changed files with 4 additions and 4 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "journal.pl",
"version": "2.4.5",
"version": "3.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "journal.pl",
"version": "2.4.5",
"version": "3.0.0",
"license": "MIT",
"dependencies": {
"@brojs/cli": "^0.0.4-alpha.9",

View File

@@ -1,6 +1,6 @@
{
"name": "journal.pl",
"version": "2.4.5",
"version": "3.0.0",
"description": "bro-js platform journal ui repo",
"main": "./src/index.tsx",
"scripts": {

View File

@@ -12,7 +12,7 @@ let rootElement: ReactDOM.Root
export const mount = async (Сomponent, element = document.getElementById('app')) => {
let user = null;
try {
await keycloak.init({ onLoad: "login-required" }); // 'login-required' });
await keycloak.init({ onLoad: "login-required" });
user = { ...(await keycloak.loadUserInfo()), ...keycloak.tokenParsed };
} catch (error) {
console.error("Failed to initialize adapter:", error);