2014-01-07 04:52:30 +00:00
|
|
|
<!--
|
|
|
|
Copyright 2013 The Camlistore Authors
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
|
|
|
|
2012-12-23 19:45:22 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
2014-01-07 04:52:30 +00:00
|
|
|
<head>
|
|
|
|
<script src="closure/goog/base.js"></script>
|
|
|
|
<script src="./deps.js"></script>
|
|
|
|
<script>
|
2014-01-08 05:28:01 +00:00
|
|
|
goog.require('cam.BlobItem');
|
2014-01-07 04:52:30 +00:00
|
|
|
</script>
|
|
|
|
<link rel="stylesheet" href="blob_item.css" type="text/css">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<script>
|
|
|
|
var blobRef = 'sha1-5660088af0aa0d4f2294088f41284002a1baaa29';
|
|
|
|
var metaBag = {
|
|
|
|
'sha1-5660088af0aa0d4f2294088f41284002a1baaa29': {
|
|
|
|
'blobRef': 'sha1-5660088af0aa0d4f2294088f41284002a1baaa29',
|
|
|
|
'camliType': 'permanode',
|
|
|
|
'mimeType': 'application/json; camliType=permanode',
|
|
|
|
'permanode': {
|
|
|
|
'attr': {
|
|
|
|
'camliContent': ['sha1-c2379bcf77848c90d2c83709aaf7f628a21ff725']
|
|
|
|
}
|
|
|
|
},
|
|
|
|
'size': 556,
|
|
|
|
'thumbnailHeight': 100,
|
|
|
|
'thumbnailSrc': 'thumbnail/sha1-c2379bcf77848c90d2c83709aaf7f628a21ff725/leisure-suit-tony.gif?mw=100&mh=100',
|
|
|
|
'thumbnailWidth': 100
|
|
|
|
},
|
|
|
|
'sha1-c2379bcf77848c90d2c83709aaf7f628a21ff725': {
|
|
|
|
'blobRef': 'sha1-c2379bcf77848c90d2c83709aaf7f628a21ff725',
|
|
|
|
'camliType': 'file',
|
|
|
|
'file': {
|
|
|
|
'size': 37741,
|
|
|
|
'fileName': 'leisure-suit-tony.gif',
|
|
|
|
'mimeType': 'image/gif'
|
|
|
|
},
|
|
|
|
'mimeType': 'application/json; camliType=file',
|
|
|
|
'size': 198
|
|
|
|
}
|
|
|
|
};
|
2012-12-23 20:43:46 +00:00
|
|
|
|
2014-01-08 05:28:01 +00:00
|
|
|
var x = new cam.BlobItem(blobRef, metaBag);
|
2014-01-07 04:52:30 +00:00
|
|
|
x.render(document.body);
|
|
|
|
</script>
|
|
|
|
</body>
|
2012-12-23 19:45:22 +00:00
|
|
|
</html>
|