profoundjs 6.1.0 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +1,18 @@
1
1
 
2
- /*
2
+ /*
3
3
 
4
4
  This file is not updated by the BUILD program.
5
5
  To deploy changes, manually copy to /puidev/dist/profoundui/proddata/js
6
6
 
7
7
  */
8
8
 
9
- function init() {
10
-
11
- if (LOADMSG != "") {
12
-
9
+ function init () {
10
+ if (LOADMSG != "") {
13
11
  // For IE8 running in compatability view or IE7 mode,
14
- // the main background image disappears when alert is run
15
- // directly onload.
16
-
17
- setTimeout(function() {
12
+ // the main background image disappears when alert is run
13
+ // directly onload.
14
+
15
+ setTimeout(function () {
18
16
  alert(LOADMSG);
19
17
  if (REDIRECT) {
20
18
  location.href = "/profoundui/welcome";
@@ -22,26 +20,22 @@ function init() {
22
20
  else {
23
21
  document.keyForm.key.focus();
24
22
  }
25
- }, 1);
26
-
27
- }
28
-
23
+ }, 1);
24
+ }
29
25
  }
30
26
 
31
- function requestKey() {
32
-
27
+ function requestKey () {
33
28
  var url = "https://www.profoundlogic.com/activation?";
34
-
35
- url += "prod=profoundui" +
29
+
30
+ url += "prod=profoundui" +
36
31
  "&sysname=" + encodeURIComponent(SYSNAME) +
37
32
  "&serial=" + encodeURIComponent(SERIAL) +
38
33
  "&pgroup=" + encodeURIComponent(PGROUP) +
39
- "&osrelease=" + encodeURIComponent(OSRELEASE) +
34
+ "&osrelease=" + encodeURIComponent(OSRELEASE) +
40
35
  "&model=" + encodeURIComponent(MODEL);
41
36
  if (KEY != "") {
42
37
  url += "&key=" + encodeURIComponent(KEY);
43
38
  }
44
-
45
- window.open(url, "_blank");
46
-
47
- }
39
+
40
+ window.open(url, "_blank");
41
+ }
@@ -1,46 +1,46 @@
1
1
 
2
2
  class RichDisplay extends React.Component {
3
- constructor(props) {
4
- super(props);
5
- this.div = React.createRef();
6
- }
7
-
8
- renderRichDisplay() {
9
- var div = this.div.current;
10
- var config = {
11
- "container": div,
12
- "method": "GET",
13
- "setDims": true
14
- };
15
- Object.assign(config, this.props);
16
- if (typeof config.path !== "string") return;
17
- if (config.style) delete config.style;
18
- if (config.className) delete config.className;
19
- pui.show(config);
20
- }
21
-
22
- componentDidMount() {
23
- this.renderRichDisplay();
24
- }
25
-
26
- componentDidUpdate() {
27
- this.renderRichDisplay();
3
+ constructor (props) {
4
+ super(props);
5
+ this.div = React.createRef();
6
+ }
7
+
8
+ renderRichDisplay () {
9
+ var div = this.div.current;
10
+ var config = {
11
+ "container": div,
12
+ "method": "GET",
13
+ "setDims": true
14
+ };
15
+ Object.assign(config, this.props);
16
+ if (typeof config.path !== "string") return;
17
+ if (config.style) delete config.style;
18
+ if (config.className) delete config.className;
19
+ pui.show(config);
20
+ }
21
+
22
+ componentDidMount () {
23
+ this.renderRichDisplay();
24
+ }
25
+
26
+ componentDidUpdate () {
27
+ this.renderRichDisplay();
28
+ }
29
+
30
+ render () {
31
+ var css = {
32
+ position: "relative"
33
+ };
34
+ if (typeof this.props.style === "object") {
35
+ Object.assign(css, this.props.style);
28
36
  }
29
-
30
- render() {
31
- var css = {
32
- position: "relative"
33
- };
34
- if (typeof this.props.style === "object") {
35
- Object.assign(css, this.props.style);
36
- }
37
- var divProps = {
38
- style: css,
39
- ref: this.div
40
- }
41
- if (this.props.className) {
42
- divProps.className = this.props.className;
43
- }
44
- return React.createElement("div", divProps);
37
+ var divProps = {
38
+ style: css,
39
+ ref: this.div
40
+ };
41
+ if (this.props.className) {
42
+ divProps.className = this.props.className;
45
43
  }
46
- }
44
+ return React.createElement("div", divProps);
45
+ }
46
+ }
@@ -1,29 +1,29 @@
1
1
 
2
- Vue.component('rich-display', {
3
- props: ['path', 'screen', 'data', 'className'],
4
- template: '<div style="position: relative;"></div>',
5
- mounted() {
6
- this.renderRichDisplay();
7
- },
8
- updated() {
9
- this.renderRichDisplay();
10
- },
11
- methods: {
12
- renderRichDisplay() {
13
- var div = this.$el;
14
- var config = {
15
- "container": div,
16
- "method": "GET",
17
- "setDims": true
18
- };
19
- if (typeof this.path !== "string") return;
20
- config.path = this.path;
21
- config.screen = this.screen;
22
- config.data = this.data;
23
- if (typeof config.data !== "object") config.data = {};
24
- if (this.className) div.className = this.className;
25
- else div.className = "";
26
- pui.show(config);
27
- }
2
+ Vue.component("rich-display", {
3
+ props: ["path", "screen", "data", "className"],
4
+ template: '<div style="position: relative;"></div>',
5
+ mounted () {
6
+ this.renderRichDisplay();
7
+ },
8
+ updated () {
9
+ this.renderRichDisplay();
10
+ },
11
+ methods: {
12
+ renderRichDisplay () {
13
+ var div = this.$el;
14
+ var config = {
15
+ "container": div,
16
+ "method": "GET",
17
+ "setDims": true
18
+ };
19
+ if (typeof this.path !== "string") return;
20
+ config.path = this.path;
21
+ config.screen = this.screen;
22
+ config.data = this.data;
23
+ if (typeof config.data !== "object") config.data = {};
24
+ if (this.className) div.className = this.className;
25
+ else div.className = "";
26
+ pui.show(config);
28
27
  }
29
- });
28
+ }
29
+ });