This repository has been archived by the owner on Feb 19, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
469 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ npm-debug.log | |
/build | ||
/webapp/webapp-bundle* | ||
/webapp/tests/testing-bundle* | ||
/examples/media-editor/built/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
body { | ||
font-family: sans-serif; | ||
color: #444; | ||
font-size: 12px; | ||
} | ||
|
||
input[type=text] { | ||
width: 300px; | ||
height: 12px; | ||
line-height: 12px; | ||
padding: 1px; | ||
} | ||
label { | ||
display: inline-block; | ||
width: 200px; | ||
} | ||
|
||
h3 { | ||
text-align: center; | ||
height: 40px; | ||
line-height: 40px; | ||
margin: -10px -10px 10px; | ||
background: #aaa; | ||
height: 24px; | ||
line-height: 24px; | ||
color: white; | ||
font-size: 10px; | ||
text-transform: uppercase; | ||
} | ||
|
||
.revision-history-container { | ||
width: 200px; | ||
float: left; | ||
} | ||
|
||
.history-original { | ||
margin: 0 10px 10px; | ||
border: 1px solid #bbb; | ||
padding: 10px; | ||
font-size: 12px; | ||
background-color: white; | ||
} | ||
|
||
.history-original img { | ||
width: 100%; | ||
} | ||
|
||
#revision-history-wrapper { | ||
border: 1px solid #aaa; | ||
margin: 10px; | ||
} | ||
|
||
#revision-history-wrapper h3 { | ||
margin: 0 0 10px; | ||
} | ||
|
||
#revision-history .image-container { | ||
margin: 5px 5%; | ||
width: 90%; | ||
box-sizing: border-box; | ||
} | ||
|
||
#revision-history { | ||
overflow-y: auto; | ||
height: 400px; | ||
} | ||
|
||
#revision-history img { | ||
width: 100%; | ||
min-height: 50px; | ||
} | ||
|
||
.image-container { | ||
border: 1px solid #eee; | ||
background-color: #fafafa; | ||
padding: 9px; | ||
margin-left: 15px; | ||
float: left; | ||
} | ||
|
||
.image-container { | ||
position: relative; | ||
width: 300px; | ||
} | ||
|
||
.image-container .image-summary { | ||
} | ||
|
||
.image-container .image-summary span { | ||
display: block; | ||
font-size: 10px; | ||
} | ||
|
||
.image-container .image-summary span.image-revision-number { | ||
font-size: 10px; | ||
font-weight: bold; | ||
position: absolute; | ||
top: 1px; | ||
left: 1px; | ||
background-color: white; | ||
padding: 0 3px; | ||
border: 1px solid #eee; | ||
border-radius: 3px; | ||
height: 20px; | ||
line-height: 20px; | ||
text-align: center; | ||
} | ||
|
||
#image-node { | ||
border: 1px solid #f0f0f0; | ||
background-position: 50% 50%; | ||
width: 100%; | ||
height: 300px; | ||
background-size: contain; | ||
background-repeat: no-repeat; | ||
background-color: white; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>wpcom.js over iframe proxy Media Upload Test Page</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<link rel="stylesheet" type="text/css" href="app.css"> | ||
</head> | ||
|
||
<body> | ||
<div> | ||
<label>site ID</label> | ||
<input type="text" id="site-node" value="" /> | ||
<br /> | ||
|
||
<label>image ID</label> | ||
<input type="text" id="image-node-id"/> | ||
<br /> | ||
|
||
<label>Title</label> | ||
<input type="text" id="image-node-title" /> | ||
<br /> | ||
|
||
<label>Caption</label> | ||
<input type="text" id="image-node-caption" /> | ||
<br /> | ||
|
||
<label>Description</label> | ||
<input type="text" id="image-node-description" /> | ||
|
||
<hr /> | ||
|
||
<input type="file" id="file" disabled /> | ||
</div> | ||
<hr /> | ||
|
||
|
||
<div class="revision-history-container"> | ||
<div class="history-original"> | ||
<h3>Original</h3> | ||
<img id="revision-history-original" /> | ||
<div id="revision-history-details"></div> | ||
</div> | ||
|
||
<div id="revision-history-wrapper"> | ||
<h3>Revision History</h3> | ||
<div id="revision-history"> | ||
<div class="revision-history-container"></div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="image-container" id="image-container"> | ||
<h3>Current media</h3> | ||
<div id="image-node"></div> | ||
<div id="image-details"></div> | ||
<div id="image-actions"> | ||
<a href="#" id="image-delete">delete</a> | ||
</div> | ||
</div> | ||
|
||
<script src="built/app.js"></script> | ||
<script> | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.