qcobjectsnewapp 2.4.21 → 2.4.24

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.
package/.gitlab-ci.yml CHANGED
@@ -1,5 +1,9 @@
1
1
  image: quickcorp/qcobjects:latest
2
2
 
3
+ cache:
4
+ paths:
5
+ - node_modules/
6
+
3
7
  pages:
4
8
  stage: deploy
5
9
  script:
package/VERSION CHANGED
@@ -1 +1 @@
1
- 2.4.21
1
+ 2.4.24
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qcobjectsnewapp",
3
- "version": "2.4.21",
3
+ "version": "2.4.24",
4
4
  "description": "App template for New App in QCObjects",
5
5
  "targets": {
6
6
  "default": {
@@ -127,7 +127,7 @@
127
127
  "nyc": "^15.1.0",
128
128
  "qcobjects": "^2.4.73",
129
129
  "qcobjects-handler-hello-world": "^1.0.0",
130
- "qcobjects-sdk": "^2.4.34"
130
+ "qcobjects-sdk": "^2.4.35"
131
131
  },
132
132
  "engines": {
133
133
  "npm": ">=8",
@@ -0,0 +1,53 @@
1
+ @charset "UTF-8";
2
+
3
+ /* CSS Document */
4
+
5
+ @viewport {
6
+ zoom: 1;
7
+ width: extend-to-zoom;
8
+ }
9
+
10
+ @-ms-viewport {
11
+ zoom: 1;
12
+ width: extend-to-zoom;
13
+ }
14
+
15
+ * {
16
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
17
+ -webkit-user-select: none;
18
+ -moz-user-select: none;
19
+ -ms-user-select: none;
20
+ user-select: none;
21
+ }
22
+
23
+
24
+ /* prevent elastic scrolling */
25
+ html {
26
+ overflow: hidden;
27
+ width: 100%;
28
+ height: 100%;
29
+ margin: 0;
30
+ padding: 0;
31
+ }
32
+
33
+ body {
34
+ margin: 0;
35
+ }
36
+
37
+ html,
38
+ body {
39
+ -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
40
+ -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
41
+ -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
42
+ height: 100%;
43
+ margin: 0;
44
+ padding: 0;
45
+ width: 100%;
46
+ background-attachment: fixed;
47
+ overflow: hidden;
48
+ overflow-x: hidden;
49
+ overflow-y: scroll;
50
+ -webkit-overflow-scrolling: touch;
51
+ }
52
+
53
+
package/src/css/index.css CHANGED
@@ -23,56 +23,6 @@
23
23
  * Everyone is permitted to copy and distribute verbatim copies of this
24
24
  * license document, but changing it is not allowed.
25
25
  */
26
- @charset "UTF-8";
27
-
28
- /* CSS Document */
29
-
30
- @viewport {
31
- zoom: 1;
32
- width: extend-to-zoom;
33
- }
34
-
35
- @-ms-viewport {
36
- zoom: 1;
37
- width: extend-to-zoom;
38
- }
39
-
40
- * {
41
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
42
- -webkit-user-select: none;
43
- -moz-user-select: none;
44
- -ms-user-select: none;
45
- user-select: none;
46
- }
47
-
48
- /* prevent elastic scrolling */
49
- html {
50
- overflow: hidden;
51
- width: 100%;
52
- height: 100%;
53
- margin: 0;
54
- padding: 0;
55
- }
56
-
57
- body {
58
- margin: 0;
59
- }
60
-
61
- html,
62
- body {
63
- -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
64
- -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
65
- -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
66
- height: 100%;
67
- margin: 0;
68
- padding: 0;
69
- width: 100%;
70
- background-attachment: fixed;
71
- overflow: scroll;
72
- overflow-x: hidden;
73
- overflow-y: scroll;
74
- -webkit-overflow-scrolling: touch;
75
- }
76
26
 
77
27
  main {
78
28
  padding: 20px;
@@ -34,11 +34,11 @@ Package("org.quickcorp.custom.components", [
34
34
  }
35
35
  </style>
36
36
  <div class="deploy-grid">
37
- <aws-button></aws-button>
38
- <gitpod-button></gitpod-button>
39
- <codespaces-button></codespaces-button>
40
- <netlify-button></netlify-button>
41
- <github-button></github-button>
37
+ <aws-button effectClass=SlideLeftTransitionEffect apply-effect-to=observe></aws-button>
38
+ <gitpod-button effectClass=SlideRightTransitionEffect apply-effect-to=observe></gitpod-button>
39
+ <codespaces-button effectClass=SlideLeftTransitionEffect apply-effect-to=observe></codespaces-button>
40
+ <netlify-button effectClass=SlideRightTransitionEffect apply-effect-to=observe></netlify-button>
41
+ <github-button effectClass=SlideLeftTransitionEffect apply-effect-to=observe></github-button>
42
42
  </div>
43
43
  `;
44
44
  }
@@ -3,22 +3,26 @@
3
3
  /* eslint-disable no-unused-vars */
4
4
  "use strict";
5
5
 
6
- import global, { Package, Controller, logger, _DOMCreateElement, type Effect, New, ClassFactory, type QCObjectsElement, type QCObjectsShadowedElement, type Component } from "qcobjects";
6
+ import global, { Package, Controller, logger, _DOMCreateElement,
7
+ type Effect, New, ClassFactory, type QCObjectsElement,
8
+ type QCObjectsShadowedElement, type Component, type ControllerParams } from "qcobjects";
7
9
  import { Fade } from "qcobjects-sdk";
8
10
 
9
11
  Package("org.quickcorp.custom.controllers", [
10
12
  class MainController extends Controller {
11
13
  static loaded: boolean;
12
- constructor ({ component }: { component: Component }) {
14
+ constructor(controller:ControllerParams) {
13
15
  logger.debug("Initializing MainController...");
14
- super({ component });
16
+ super(controller);
15
17
  }
16
18
 
17
- done (...args: never[]) {
19
+ done(...args: never[]) {
18
20
  const _ret_ = super.done(args);
19
21
  if (!MainController.loaded) {
20
22
  const s = _DOMCreateElement("style");
21
- s.innerHTML = "body, html {margin:0;padding:0;width:100%;height:100%;top:0;bottom:0;left:0;right:0}";
23
+ s.innerHTML = `
24
+ @import url(css/body-layout.css);
25
+ `;
22
26
  document.body.append(s);
23
27
  logger.debug("MainController loaded");
24
28
  MainController.loaded = true;
@@ -28,15 +32,15 @@ Package("org.quickcorp.custom.controllers", [
28
32
  },
29
33
 
30
34
  class SideNavController extends Controller {
31
- effect: Effect|null = null;
35
+ effect: Effect | null = null;
32
36
  visibility!: boolean;
33
37
  componentRoot!: any;
34
- component:Component;
38
+ component: Component;
35
39
 
36
- constructor (args:{component:Component, dependencies:Array<any>}) {
40
+ constructor(controller:ControllerParams) {
37
41
  logger.debug("Initializing SideNavController...");
38
- super(args);
39
- this.component = args.component;
42
+ super(controller);
43
+ this.component = controller.component;
40
44
  if (this.component.shadowed) {
41
45
  this.componentRoot = this.component.shadowRoot;
42
46
  } else {
@@ -44,7 +48,7 @@ Package("org.quickcorp.custom.controllers", [
44
48
  }
45
49
  }
46
50
 
47
- done (...args: any[]) {
51
+ done(...args: any[]) {
48
52
  const _ret_ = super.done(args);
49
53
  this.effect = New(Fade, {
50
54
  duration: 300
@@ -54,7 +58,7 @@ Package("org.quickcorp.custom.controllers", [
54
58
  return _ret_;
55
59
  }
56
60
 
57
- open () {
61
+ open() {
58
62
  if (this.componentRoot !== null) {
59
63
  if (this.effect != null) {
60
64
  this.effect.apply(this.componentRoot, 0, 1);
@@ -72,7 +76,7 @@ Package("org.quickcorp.custom.controllers", [
72
76
  return this.visibility;
73
77
  }
74
78
 
75
- close () {
79
+ close() {
76
80
  if (this.componentRoot !== null) {
77
81
  if (this.effect != null) {
78
82
  this.effect.apply(this.componentRoot, 1, 0);
@@ -88,7 +92,7 @@ Package("org.quickcorp.custom.controllers", [
88
92
  return this.visibility;
89
93
  }
90
94
 
91
- toggle () {
95
+ toggle() {
92
96
  if (this.visibility) {
93
97
  this.close();
94
98
  } else {
@@ -101,13 +105,15 @@ Package("org.quickcorp.custom.controllers", [
101
105
  installer: any;
102
106
  component!: Component;
103
107
 
104
- constructor(args:{component:Component, dependencies:Array<any>}){
105
- super(args);
108
+ constructor(controller: ControllerParams) {
109
+ super(controller);
106
110
  logger.debug("Header controller initialized");
107
111
  }
108
112
 
109
- loadInstallerButton () {
110
- const componentRoot = (this.component.shadowed != null) ? (this.component.shadowRoot as QCObjectsShadowedElement) : (this.component.body as QCObjectsElement);
113
+ loadInstallerButton() {
114
+ const componentRoot = (this.component.shadowed != null)
115
+ ? (this.component.shadowRoot as QCObjectsShadowedElement)
116
+ : (this.component.body as QCObjectsElement);
111
117
  componentRoot.subelements("#installerbutton").map(
112
118
  (element) => {
113
119
  this.installer = New(ClassFactory("Installer"), element);
@@ -116,7 +122,7 @@ Package("org.quickcorp.custom.controllers", [
116
122
  );
117
123
  }
118
124
 
119
- done (...args: never[]) {
125
+ done(...args: never[]) {
120
126
  const _ret_ = super.done(args);
121
127
  this.loadInstallerButton();
122
128
  return _ret_;
@@ -13,5 +13,20 @@ Package("org.quickcorp.custom.effects", [
13
13
 
14
14
  effects = ["Fade", "MoveYInFromBottom"];
15
15
  fitToHeight = true;
16
+ },
17
+
18
+ class SlideLeftTransitionEffect extends TransitionEffect {
19
+ duration = 450;
20
+
21
+ effects = ["Fade", "MoveXInFromLeft"];
22
+ fitToWidth = true;
23
+ },
24
+
25
+ class SlideRightTransitionEffect extends TransitionEffect {
26
+ duration = 450;
27
+
28
+ effects = ["Fade", "MoveXInFromRight"];
29
+ fitToWidth = true;
16
30
  }
31
+
17
32
  ]);
@@ -21,7 +21,10 @@
21
21
  .github-button:hover {
22
22
  box-shadow: rgba(228, 228, 234, 0.56) 0 22px 32px 0, rgba(228, 228, 234, 0.64) 0 9px 28px 0;
23
23
  }
24
- .github-button-p {
24
+ .github-button-p > a > b{
25
+ color:burlywood;
26
+ }
27
+ .github-button-p{
25
28
  font-size: small;
26
29
  }
27
30
  </style>