Skip to content

Commit

Permalink
Merge pull request #126 from rwth-acis/release/2.1.4
Browse files Browse the repository at this point in the history
Release/2.1.4
  • Loading branch information
lakhoune authored Apr 12, 2023
2 parents bb5aab2 + abcc412 commit 0499352
Show file tree
Hide file tree
Showing 22 changed files with 67,458 additions and 67,376 deletions.
58 changes: 35 additions & 23 deletions build/widgets/partials/activity.widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ import { LitElement, html, css } from 'lit';
import { Doc } from 'yjs';
import { WebsocketProvider } from 'y-websocket';

/******************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */

function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
/******************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
}

/**
Expand Down Expand Up @@ -24149,7 +24149,7 @@ class IWCW {
}
}

const activityBoxHtml = "<div\r\n class=\"toast w-100 d-block me-2 mb-3\"\r\n role=\"alert\"\r\n aria-live=\"assertive\"\r\n aria-atomic=\"true\"\r\n style=\"border: 3px; border-style: solid; border-color: <%= color %>\"\r\n>\r\n <div class=\"toast-header\">\r\n <svg\r\n class=\"bd-placeholder-img rounded me-2\"\r\n width=\"20\"\r\n height=\"20\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n aria-hidden=\"true\"\r\n preserveAspectRatio=\"xMidYMid slice\"\r\n focusable=\"false\"\r\n >\r\n <rect width=\"100%\" height=\"100%\" fill=\"<%= color %>\"></rect>\r\n </svg>\r\n <strong class=\"me-1\"><%= heading %></strong>\r\n <small style=\"font-size: 0.7em; text-align: end; margin-left: auto\"\r\n ><%= timestamp %></small\r\n >\r\n </div>\r\n <div class=\"toast-body\"><%= text %></div>\r\n</div>\r\n"; // replaced by importmap.plugin.js
const activityBoxHtml = "<div\n class=\"toast w-100 d-block me-2 mb-3\"\n role=\"alert\"\n aria-live=\"assertive\"\n aria-atomic=\"true\"\n style=\"border: 3px; border-style: solid; border-color: <%= color %>\"\n>\n <div class=\"toast-header\">\n <svg\n class=\"bd-placeholder-img rounded me-2\"\n width=\"20\"\n height=\"20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden=\"true\"\n preserveAspectRatio=\"xMidYMid slice\"\n focusable=\"false\"\n >\n <rect width=\"100%\" height=\"100%\" fill=\"<%= color %>\"></rect>\n </svg>\n <strong class=\"me-1\"><%= heading %></strong>\n <small style=\"font-size: 0.7em; text-align: end; margin-left: auto\"\n ><%= timestamp %></small\n >\n </div>\n <div class=\"toast-body\"><%= text %></div>\n</div>\n"; // replaced by importmap.plugin.js
/**
* An abstract user activity issued by one of the users
* @class activity_widget.Activity
Expand Down Expand Up @@ -24892,7 +24892,7 @@ class ReloadWidgetActivity extends Activity {
}
}

const userBoxHtml = "<div\r\n class=\"item card card-body rounded mb-2\"\r\n style=\"background-color: <%= color %>\"\r\n>\r\n <div class=\"d-flex\">\r\n <h6 class=\"me-1\"><%= heading %></h6>\r\n <span class=\"text ms-auto align-bottom\"><%= text %> ago</span>\r\n </div>\r\n <!-- <h3 class=\"lblViewId\"><%=view%></h3> -->\r\n</div>\r\n"; // replaced by importmap.plugin.js
const userBoxHtml = "<div\n class=\"item card card-body rounded mb-2\"\n style=\"background-color: <%= color %>\"\n>\n <div class=\"d-flex\">\n <h6 class=\"me-1\"><%= heading %></h6>\n <span class=\"text ms-auto align-bottom\"><%= text %> ago</span>\n </div>\n <!-- <h3 class=\"lblViewId\"><%=view%></h3> -->\n</div>\n"; // replaced by importmap.plugin.js

/**
* A user working on the model
Expand Down Expand Up @@ -26089,6 +26089,10 @@ const SyncMetaWidget = (superClass, widgetName) => {
};

let ActivityWidget = class ActivityWidget extends SyncMetaWidget(LitElement, getWidgetTagName(CONFIG.WIDGET.NAME.ACTIVITY)) {
constructor() {
super(...arguments);
this.widgetName = getWidgetTagName(CONFIG.WIDGET.NAME.ACTIVITY);
}
firstUpdated(_changedProperties) {
super.firstUpdated(_changedProperties);
yjsSync()
Expand Down Expand Up @@ -26133,11 +26137,19 @@ let ActivityWidget = class ActivityWidget extends SyncMetaWidget(LitElement, get
console.error("ACTIVITY: Error while waiting for CANVAS: ", err);
});
})
.catch(function (err) {
.catch((err) => {
console.error("ACTIVITY: Error while initializing Yjs: " + err);
this.showErrorAlert("Cannot connect to Yjs server.");
});
}
hideErrorAlert() {
$(this.widgetName).find("#alert-message").text("");
$(this.widgetName).find("error-alert").hide();
}
showErrorAlert(message) {
$(this.widgetName).find("#alert-message").text(message);
$(this.widgetName).find("error-alert").show();
}
render() {
return html `
<style>
Expand Down
2 changes: 1 addition & 1 deletion build/widgets/partials/activity.widget.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 0499352

Please sign in to comment.