2014-01-08 03:41:58 +00:00
|
|
|
<!--
|
Rename import paths from camlistore.org to perkeep.org.
Part of the project renaming, issue #981.
After this, users will need to mv their $GOPATH/src/camlistore.org to
$GOPATH/src/perkeep.org. Sorry.
This doesn't yet rename the tools like camlistored, camput, camget,
camtool, etc.
Also, this only moves the lru package to internal. More will move to
internal later.
Also, this doesn't yet remove the "/pkg/" directory. That'll likely
happen later.
This updates some docs, but not all.
devcam test now passes again, even with Go 1.10 (which requires vet
checks are clean too). So a bunch of vet tests are fixed in this CL
too, and a bunch of other broken tests are now fixed (introduced from
the past week of merging the CL backlog).
Change-Id: If580db1691b5b99f8ed6195070789b1f44877dd4
2018-01-01 22:41:41 +00:00
|
|
|
Copyright 2012 The Perkeep Authors
|
2014-01-08 03:41:58 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
-->
|
|
|
|
|
2011-06-17 04:18:04 +00:00
|
|
|
<!doctype html>
|
2011-05-30 04:39:23 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
2013-06-11 09:50:56 +00:00
|
|
|
<title>Permanode</title>
|
|
|
|
<script src="closure/goog/base.js"></script>
|
|
|
|
<script src="./deps.js"></script>
|
2014-01-08 03:41:58 +00:00
|
|
|
<script src="?camli.mode=config&var=CAMLISTORE_CONFIG"></script>
|
2013-06-11 09:50:56 +00:00
|
|
|
<script>
|
2014-01-08 05:28:01 +00:00
|
|
|
goog.require('cam.PermanodePage');
|
2013-06-11 09:50:56 +00:00
|
|
|
</script>
|
|
|
|
<link rel="stylesheet" href="permanode.css">
|
|
|
|
<link rel="stylesheet" href="blob_item.css">
|
|
|
|
<link rel="stylesheet" href="blob_item_container.css">
|
2011-05-30 04:39:23 +00:00
|
|
|
</head>
|
2013-06-11 09:50:56 +00:00
|
|
|
<body class="cam-permanode-page">
|
Aspects: A new idea for the detail page.
http://imgur.com/Re14XKc,6fYHJqp,39nnQiT#0
Camlistore is built around the idea that every object is a blob,
but blobs can also self-describe themselves as more than a blob.
For example, some blobs are also files, or images, or sets, or
permanodes, or movies, or foursquare checkins. Etc.
Here is an idea for the detail page that reflects that underlying
reality of Camlistore.
Each blob has a single canonical URL in the web UI for its detail
page. Currently this is /?p=<...>, but should ideally be just
/<blobref>.
Within the web UI, many "aspects" register interest in providing
views on blobs. Each time the user navigates to a detail page,
each aspects gets to say whether it can provide a useful view on
the blob.
Aspects are currently rendered (crappily) as tabs along the bottom
of the UI. I'm not sure how they should actually be rendered, this
is temporary.
This patch includes the following aspects:
- image (the old image detail)
- permanode (the old old permanode page)
- blob (the old old blob page)
Change-Id: Idb3cdbb203799a5d9c113d1b37b67a2724040085
2014-04-14 16:20:22 +00:00
|
|
|
<div class="cam-permanode-nav"><a href="./" target="_top">Home</a></div>
|
2014-07-29 22:50:53 +00:00
|
|
|
<h1 id="mainTitle">Permanode</h1>
|
2011-05-30 20:00:15 +00:00
|
|
|
|
2013-06-11 09:50:56 +00:00
|
|
|
<p>
|
|
|
|
Permalink:
|
|
|
|
<span id="permanode"></span>
|
|
|
|
<span id="permanodeBlob" class="cam-permanode-nav"></span>
|
|
|
|
</p>
|
2011-06-01 06:25:24 +00:00
|
|
|
|
2013-06-11 09:50:56 +00:00
|
|
|
<form id="formTitle">
|
|
|
|
<p>
|
|
|
|
Title:
|
|
|
|
<input type="text" id="inputTitle" size="30" value="(loading)" disabled="disabled">
|
|
|
|
<input type="submit" id="btnSaveTitle" value="Save" disabled="disabled">
|
|
|
|
</p>
|
|
|
|
</form>
|
2011-06-01 06:25:24 +00:00
|
|
|
|
2013-06-11 09:50:56 +00:00
|
|
|
<form id="formTags">
|
|
|
|
<p>
|
|
|
|
Tags:
|
|
|
|
<span id="spanTags"></span>
|
|
|
|
<input id="inputNewTag" placeholder="tag1, tag2, tag3">
|
|
|
|
<input type="submit" id="btnAddTag" value="Add Tag(s)">
|
|
|
|
</form>
|
2011-06-17 04:18:04 +00:00
|
|
|
|
2013-06-11 09:50:56 +00:00
|
|
|
<form id="formAccess">
|
|
|
|
<p>
|
|
|
|
Access:
|
|
|
|
<select id="selectAccess" disabled="disabled">
|
|
|
|
<option value="private">Private</option>
|
|
|
|
<option value="public">Public</option>
|
|
|
|
</select>
|
|
|
|
<input type="submit" id="btnSaveAccess" value="Save" disabled="disabled">
|
2011-06-19 21:52:36 +00:00
|
|
|
|
2013-06-11 09:50:56 +00:00
|
|
|
... with URL:
|
|
|
|
<select id="selectPublishRoot">
|
|
|
|
<option value=""></option>
|
|
|
|
</select>
|
|
|
|
<input type="text" id="publishSuffix" size="40">
|
|
|
|
<input type="submit" id="btnSavePublish" value="Set URL">
|
|
|
|
</p>
|
|
|
|
</form>
|
2011-06-17 03:25:55 +00:00
|
|
|
|
2013-06-11 09:50:56 +00:00
|
|
|
<div id="existingPaths"></div>
|
2011-06-26 00:50:38 +00:00
|
|
|
|
2013-06-11 09:50:56 +00:00
|
|
|
<div id="cammountTip"></div>
|
2011-06-10 22:03:01 +00:00
|
|
|
|
2013-06-11 09:50:56 +00:00
|
|
|
<div id="members"></div>
|
|
|
|
<div id="membersList"></div>
|
2011-06-17 03:25:55 +00:00
|
|
|
|
2013-06-11 09:50:56 +00:00
|
|
|
<div id="content"></div>
|
2011-07-04 11:39:04 +00:00
|
|
|
|
2013-06-11 09:50:56 +00:00
|
|
|
<div id="dnd" class="cam-permanode-dnd">
|
|
|
|
<form id="fileForm">
|
|
|
|
<input type="file" id="fileInput" multiple="true" onchange="">
|
|
|
|
<input type="submit" id="fileUploadBtn" value="Upload">
|
|
|
|
</form>
|
|
|
|
<p id='filelist'>
|
|
|
|
<em>or drag & drop files here</em>
|
|
|
|
</p>
|
|
|
|
<pre id="info"></pre>
|
|
|
|
</div>
|
2011-07-03 22:24:58 +00:00
|
|
|
|
2013-06-11 09:50:56 +00:00
|
|
|
<h3>Current object attributes</h3>
|
|
|
|
<pre id="debugattrs" style="font-size: 8pt"></pre>
|
2011-07-02 17:36:32 +00:00
|
|
|
|
2013-06-11 09:50:56 +00:00
|
|
|
<script>
|
2014-01-08 05:28:01 +00:00
|
|
|
var page = new cam.PermanodePage(CAMLISTORE_CONFIG);
|
2013-06-11 09:50:56 +00:00
|
|
|
page.decorate(document.body);
|
|
|
|
</script>
|
2011-05-30 04:39:23 +00:00
|
|
|
</body>
|
|
|
|
</html>
|