Skip to content

Commit 9d8b0a2

Browse files
committedMar 24, 2017
Add screenshots
1 parent 5c5d009 commit 9d8b0a2

34 files changed

+596
-8406
lines changed
 

‎architecture.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ <h3 id="upload-helper">Upload Helper</h3>
7676
<h2 id="further-detail">Further Detail</h2>
7777
<p>See &quot;<a href="./running.html">installation guide</a>&quot; for further details on how the components fit together.</p>
7878

79-
<div class="timestamp">Last updated: 2017-03-23T06:56:58Z</div>
79+
<div class="timestamp">Last updated: 2017-03-24T02:02:10Z</div>
8080
</article>
8181
<footer>
8282
<p>Want to know more?</p>
31.6 KB
Loading
123 KB
Loading
124 KB
Loading
54.9 KB
Loading

‎index.html

+7-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ <h3 id="workflow">Workflow</h3>
6868
<p>In this example, Alice saves a<sub>1</sub> and shares it with Bob. Bob then creates b<sub>1</sub> to continue working. Bob saves b<sub>1</sub> and continues work in b<sub>2</sub>, but doesn&#39;t like how things have turned out. He discards b<sub>2</sub> and begins work from b<sub>1</sub> again with b<sub>3</sub>.</p>
6969
<p>Both Alice and Bob finish their work, and export their environment so others can reproduce their analysis in future.</p>
7070
<hr>
71+
<h3 id="screenshots">Screenshots</h3>
72+
<p><img src="/images/screenshots/portal_instances.png" alt="Portal Instances"></p>
73+
<p><img src="/images/screenshots/instance_landing_page.png" alt="Instance Landing Page"></p>
74+
<p><img src="/images/screenshots/instance_rstudio.png" alt="Instance RStudio"></p>
75+
<p><img src="/images/screenshots/instance_terminal.png" alt="Instance Terminal"></p>
76+
<hr>
7177
<h3 id="architecture">Architecture</h3>
7278
<p>To improve scalability and security, DIT4C runs all containers on compute nodes separate from the portal.</p>
7379
<p>A portal can have multiple schedulers, each able to start containers on compute nodes. Through the use of routing servers, DIT4C is able to allow compute nodes and schedulers to exist on private networks with no open inbound ports, providing better security for compute and data.</p>
@@ -79,7 +85,7 @@ <h3 id="running">Running</h3>
7985
<h3 id="release-signing-key">Release Signing Key</h3>
8086
<p><a href="./release-signing-key.asc">Download release-signing-key.asc</a></p>
8187

82-
<div class="timestamp">Last updated: 2017-03-23T06:56:58Z</div>
88+
<div class="timestamp">Last updated: 2017-03-24T02:02:10Z</div>
8389
</article>
8490
<footer>
8591
<p>Want to know more?</p>

‎libs/webcomponentsjs/.bower.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "webcomponentsjs",
33
"main": "webcomponents.js",
4-
"version": "1.0.0-rc.6",
4+
"version": "1.0.0-rc.7",
55
"homepage": "http://webcomponents.org",
66
"authors": [
77
"The Polymer Authors"
@@ -16,7 +16,7 @@
1616
"license": "BSD",
1717
"ignore": [],
1818
"devDependencies": {
19-
"web-component-tester": "^5",
19+
"web-component-tester": "^v6.0.0-prerelease.7",
2020
"custom-elements": "webcomponents/custom-elements#^v1.0.0-rc.1",
2121
"es6-promise": "stefanpenner/es6-promise#^4.0.0",
2222
"html-imports": "webcomponents/html-imports#^v1.0.0-rc.2",
@@ -25,11 +25,11 @@
2525
"template": "webcomponents/template#^v1.0.0-rc.1",
2626
"webcomponents-platform": "webcomponents/webcomponents-platform#^v1.0.0-rc.1"
2727
},
28-
"_release": "1.0.0-rc.6",
28+
"_release": "1.0.0-rc.7",
2929
"_resolution": {
3030
"type": "version",
31-
"tag": "v1.0.0-rc.6",
32-
"commit": "3b3bd26f285fd337fce2457f2c8eb1eff339d7b5"
31+
"tag": "v1.0.0-rc.7",
32+
"commit": "9b0c8b24b11d709fc6f725afe38250e682b86c4d"
3333
},
3434
"_source": "https://github.com/Polymer/webcomponentsjs.git",
3535
"_target": "^v1.0.0-rc.5",

‎libs/webcomponentsjs/README.md

+15-6
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,24 @@ elements, etc.). Here's an example:
6060
</script>
6161
```
6262

63-
## `webcomponents-es5-loader.js`
63+
## `custom-elements-es5-adapter.js`
6464
According to the spec, Custom Elements must be ES6 classes (https://html.spec.whatwg.org/multipage/scripting.html#custom-element-conformance). Since most projects need to support a wide range of browsers that don't necessary support ES6, it may make sense to compile your project to ES5. However, ES5-style custom element classes will **not** work with native Custom Elements because ES5-style classes cannot properly extend ES6 classes, like `HTMLElement`.
6565

66-
To work around this, `webcomponents-es5-loader.js` first loads an extra ES5 compatibility [shim](https://github.com/webcomponents/custom-elements/blob/master/src/native-shim.js) before
67-
loading the minimum polyfill bundle, like `webcomponents-loader.js` does.
66+
To work around this, load `custom-elements-es5-adapter.js` before declaring new Custom Elements.
6867

69-
The reason for having two different loaders (`webcomponents-loader.js` for ES6 deployed code and `webcomponents-es5-loader.js` for ES5) is that the polyfill can't know if you're deploying ES5 or ES6 code -- it runs before your code, and only _you_ as an author of the code know what you're going to deploy. This means that _you_ have to make the decision about which loader to use.
70-
**TL; DR: ** Use `webcomponents-es5-loader.js` only if you want to deploy ES5 code to _all_ browsers (both with and without native custom elements support) -- if this isn't a requirement, then use
71-
`webcomponents-loader.js` instead.
68+
**The adapter must NOT be compiled.**
69+
70+
```html
71+
<!-- Load Custom Elements es5 adapter -->
72+
<script src="bower_components/webcomponentsjs/custom-elements-es5-adapter.js"></script>
73+
<!-- Load polyfills; note that "loader" will load these async -->
74+
<script src="bower_components/webcomponentsjs/webcomponents-loader.js"></script>
75+
<!-- Load the es5 compiled custom element definition -->
76+
<link rel="import" href="my-es5-element.html">
77+
78+
<!-- Use the custom element -->
79+
<my-es5-element></my-es5-element>
80+
```
7281

7382
## Browser Support
7483

‎libs/webcomponentsjs/bower.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "webcomponentsjs",
33
"main": "webcomponents.js",
4-
"version": "1.0.0-rc.6",
4+
"version": "1.0.0-rc.7",
55
"homepage": "http://webcomponents.org",
66
"authors": [
77
"The Polymer Authors"
@@ -16,7 +16,7 @@
1616
"license": "BSD",
1717
"ignore": [],
1818
"devDependencies": {
19-
"web-component-tester": "^5",
19+
"web-component-tester": "^v6.0.0-prerelease.7",
2020
"custom-elements": "webcomponents/custom-elements#^v1.0.0-rc.1",
2121
"es6-promise": "stefanpenner/es6-promise#^4.0.0",
2222
"html-imports": "webcomponents/html-imports#^v1.0.0-rc.2",

‎libs/webcomponentsjs/webcomponents-ce-es5.js ‎libs/webcomponentsjs/custom-elements-es5-adapter.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
(()=>{'use strict';if(!window.customElements)return;const a=window.HTMLElement,b=window.customElements.define,c=window.customElements.get,d=new Map,e=new Map;let f=!1,g=!1;window.HTMLElement=function(){if(!f){const h=d.get(this.constructor),i=c.call(window.customElements,h);g=!0;const j=new i;return j}f=!1;},window.HTMLElement.prototype=a.prototype,window.customElements.define=(h,i)=>{const j=i.prototype,k=class extends a{constructor(){super(),Object.setPrototypeOf(this,j),g||(f=!0,i.call(this)),g=!1;}},l=k.prototype;k.observedAttributes=i.observedAttributes,l.connectedCallback=j.connectedCallback,l.disconnectedCallback=j.disconnectedCallback,l.attributeChangedCallback=j.attributeChangedCallback,l.adoptedCallback=j.adoptedCallback,d.set(i,h),e.set(h,i),b.call(window.customElements,h,k);},window.customElements.get=(h)=>e.get(h);})();
55

6-
(function(){'use strict';var a=document.createElement('style');a.textContent='body {transition: opacity ease-in 0.2s; } \\nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \\n';var b=document.querySelector('head');b.insertBefore(a,b.firstChild);})();
7-
86
/**
97
@license
108
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -13,6 +11,6 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1311
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1412
Code distributed by Google as part of the polymer project is also
1513
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
16-
*/requestAnimationFrame(()=>{window.dispatchEvent(new CustomEvent('WebComponentsReady'));});
14+
*/
1715

1816
}());

‎libs/webcomponentsjs/entrypoints/webcomponents-ce-es5-index.js ‎libs/webcomponentsjs/entrypoints/custom-elements-es5-adapter-index.js

-7
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1111

1212
/*
1313
* Polyfills loaded: Custom Elements ES5 Shim
14-
* Used in: Chrome
1514
*/
1615

1716
import '../bower_components/custom-elements/src/native-shim.js'
18-
19-
import '../src/unresolved.js'
20-
21-
requestAnimationFrame(() => {
22-
window.dispatchEvent(new CustomEvent('WebComponentsReady'));
23-
});

‎libs/webcomponentsjs/entrypoints/webcomponents-hi-ce-es5-index.js

-21
This file was deleted.

‎libs/webcomponentsjs/entrypoints/webcomponents-sd-ce-index.js

+4
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1717
import '../bower_components/shadydom/src/shadydom.js'
1818
import '../bower_components/custom-elements/src/custom-elements.js'
1919
import '../bower_components/shadycss/entrypoints/scoping-shim.js'
20+
21+
requestAnimationFrame(() => {
22+
window.dispatchEvent(new CustomEvent('WebComponentsReady'));
23+
});

‎libs/webcomponentsjs/gulpfile.js

+5-11
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,10 @@ const babelOptions = {
162162
shouldPrintComment: singleLicenseComment()
163163
};
164164

165-
gulp.task('debugify-ce-es5', () => {
166-
return debugify('webcomponents-ce-es5', '', {plugins: [babel(babelOptions)]});
165+
gulp.task('debugify-ce-es5-adapter', () => {
166+
return debugify('custom-elements-es5-adapter', '', {plugins: [babel(babelOptions)]});
167167
});
168168

169-
gulp.task('debugify-hi-ce-es5', () => {
170-
return debugify('webcomponents-hi-ce-es5', '', {plugins: [babel(babelOptions)]});
171-
})
172-
173169
gulp.task('refresh-bower', () => {
174170
return del('bower_components').then(() => {
175171
let resolve, reject;
@@ -184,7 +180,7 @@ gulp.task('default', (cb) => {
184180
});
185181

186182
gulp.task('clean-builds', () => {
187-
return del(['webcomponents*.js{,.map}', '!webcomponents-{es5-,}loader.js']);
183+
return del(['custom-elements-es5-adapter.js{,.map}', 'webcomponents*.js{,.map}', '!webcomponents-loader.js']);
188184
});
189185

190186
gulp.task('debug', (cb) => {
@@ -194,8 +190,7 @@ gulp.task('debug', (cb) => {
194190
'debugify-hi-sd-ce',
195191
'debugify-hi-sd-ce-pf',
196192
'debugify-sd-ce',
197-
'debugify-ce-es5',
198-
'debugify-hi-ce-es5'
193+
'debugify-ce-es5-adapter'
199194
];
200195
runseq('clean-builds', tasks, cb);
201196
});
@@ -207,8 +202,7 @@ gulp.task('closure', (cb) => {
207202
'closurify-hi-sd-ce',
208203
'closurify-hi-sd-ce-pf',
209204
'closurify-sd-ce',
210-
'debugify-ce-es5',
211-
'debugify-hi-ce-es5'
205+
'debugify-ce-es5-adapter'
212206
];
213207
runseq('clean-builds', ...tasks, cb);
214208
});

‎libs/webcomponentsjs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webcomponents.js",
3-
"version": "1.0.0-rc.6",
3+
"version": "1.0.0-rc.7",
44
"description": "webcomponents.js",
55
"main": "webcomponents.js",
66
"directories": {

‎libs/webcomponentsjs/tests/ce-import-upgrade-async.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<head>
1313
<title></title>
1414
<meta charset="UTF-8">
15-
<script src="../../web-component-tester/browser.js"></script>
1615
<script src="../webcomponents-loader.js"></script>
16+
<script src="../../web-component-tester/browser.js"></script>
1717
</head>
1818
<body>
1919
<script>

‎libs/webcomponentsjs/tests/ce-import-upgrade.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<head>
1313
<title></title>
1414
<meta charset="UTF-8">
15-
<script src="../../web-component-tester/browser.js"></script>
1615
<script src="../webcomponents-loader.js"></script>
16+
<script src="../../web-component-tester/browser.js"></script>
1717
<link rel="import" href="imports/a1-import.html">
1818
</head>
1919
<body>

‎libs/webcomponentsjs/tests/ce-import.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<head>
1313
<title></title>
1414
<meta charset="UTF-8">
15-
<script src="../../web-component-tester/browser.js"></script>
1615
<script src="../webcomponents-loader.js"></script>
16+
<script src="../../web-component-tester/browser.js"></script>
1717
</head>
1818
<body>
1919
<x-foo></x-foo>

‎libs/webcomponentsjs/tests/ce-upgradedocumenttree.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
}
2020
}
2121
</script>
22-
<script src="../../web-component-tester/browser.js"></script>
2322
<script src="../webcomponents-loader.js"></script>
23+
<script src="../../web-component-tester/browser.js"></script>
2424
<link rel="import" href="imports/element-import-a.html">
2525
</head>
2626
<body>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!doctype html>
2+
<!--
3+
@license
4+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
5+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
6+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
8+
Code distributed by Google as part of the polymer project is also
9+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
10+
-->
11+
<html>
12+
13+
<head>
14+
<title>Force polyfills</title>
15+
<meta charset="UTF-8">
16+
<script>
17+
window.ShadyDOM = {
18+
force: true
19+
};
20+
if (window.customElements) customElements.forcePolyfill = true;
21+
window.webComponentsReadyCount = 0;
22+
window.addEventListener('WebComponentsReady', function() {
23+
window.webComponentsReadyCount++;
24+
});
25+
</script>
26+
<script src="../webcomponents-loader.js"></script>
27+
<script src="../../web-component-tester/browser.js"></script>
28+
</head>
29+
30+
<body>
31+
<script>
32+
suite('Force polyfill', function() {
33+
test('expected boot', function() {
34+
assert.equal(window.webComponentsReadyCount, 1, 'failed to fire WebComponentsReady');
35+
});
36+
});
37+
</script>
38+
</body>
39+
40+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<!--
2+
@license
3+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
4+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7+
Code distributed by Google as part of the polymer project is also
8+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9+
-->
10+
11+
<script>
12+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
14+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
15+
16+
// Kick off shady CSS.
17+
var template = document.createElement('template');
18+
template.innerHTML =
19+
`
20+
<style>:host {color: blue;} .red-text {color: red;} </style>
21+
<p class="red-text">Shadow DOM</p>
22+
<slot id="slot"></slot>
23+
`;
24+
if (template) {
25+
if (window.ShadyCSS) {
26+
window.ShadyCSS.prepareTemplate(template, 'simple-element');
27+
}
28+
}
29+
30+
var SimpleElement = function (_HTMLElement) {
31+
_inherits(SimpleElement, _HTMLElement);
32+
33+
function SimpleElement() {
34+
_classCallCheck(this, SimpleElement);
35+
36+
var _this = _possibleConstructorReturn(this, (SimpleElement.__proto__ || Object.getPrototypeOf(SimpleElement)).call(this));
37+
38+
_this.bestName = 'batman';
39+
if (window.ShadyCSS) {
40+
window.ShadyCSS.styleElement(_this);
41+
}
42+
43+
if (template && !_this.shadowRoot) {
44+
_this.attachShadow({ mode: 'open' });
45+
_this.shadowRoot.appendChild(document.importNode(template.content, true));
46+
}
47+
return _this;
48+
}
49+
50+
return SimpleElement;
51+
}(HTMLElement);
52+
53+
window.customElements.define('simple-element', SimpleElement);
54+
</script>

0 commit comments

Comments
 (0)
Please sign in to comment.