1
0
Fork 0
mirror of https://github.com/Luzifer/past3.git synced 2024-12-22 20:31:16 +00:00
past3/index.html
Knut Ahlers 6d3cab3e05
Fix: Include the dist version of AWS SDK
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-02-01 11:35:15 +01:00

177 lines
8.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>PaS(t)3 - S3 file editor</title>
{% if config.bootswatch_theme %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootswatch@4.2.1/dist/{{ config.bootswatch_theme }}/bootstrap.min.css" />
{% else %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.2.1/dist/css/bootstrap.min.css"
integrity="sha256-azvvU9xKluwHFJ0Cpgtf0CYzK7zgtOznnzxV4924X1w=" crossorigin="anonymous">
{% endif %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/codemirror@5.43.0/lib/codemirror.css"
integrity="sha256-o/v/5fOniPHMAww4EAIfRBFV0SeoqksPrY0Yq5x+wSM=" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css"
integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<style>
.file-mgmt { width: 100%; }
.modal-body { text-align: center; }
#signInButton { margin: 20px 164px 0; }
.CodeMirror pre { font-size: 0.85rem; }
</style>
<!-- Sign-In with Google -->
<meta name="google-signin-client_id" content="{{ config.google_client_id }}">
<!-- Configure PaS(t)3 -->
<script>
window.past3_config = {{ config|tojson }};
</script>
</head>
<body>
<!-- NAV -->
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand" href="#">
<i class="fas fa-fw fa-clipboard-list"></i>
Pa<em>S(t)<strong>3</strong></em>
</a>
</nav>
<div class="container-fluid mt-3">
<div class="row">
<div class="col-md-3">
<div class="card">
<div class="card-header">
<i class="fas fa-fw fa-file"></i> Files in your namespace
</div>
<div class="list-group list-group-flush" id="fileList">
<!--
<a href="#" class="list-group-item active">
<span class="badge">2006-01-02 15:04:05</span>
README.md
</a>
-->
</div>
</div>
</div>
<div class="col-md-9">
<div class="row">
<div class="col-md-10">
<div class="form-group">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-fw fa-tag"></i> Filename</span>
</div>
<input type="text" class="form-control" id="filename" placeholder="untitled">
</div>
</div>
</div> <!-- /.col-md-10 -->
<div class="col-md-2">
<button class="btn btn-primary col-md-12" id="newFile" title="New File (Ctrl + N)"><i class="fas fa-fw fa-file"></i> New File</button>
</div>
</div>
<div class="row">
<div class="col-md-10">
<div class="form-group">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-fw fa-link"></i> File-URL</span>
</div>
<input type="text" class="form-control" id="file-url" placeholder="n/a" readonly>
<div class="input-group-append">
<button type="button" class="btn btn-outline-info" id="acl" title="Change ACL (Ctrl + L)"><i class="fas fa-fw fa-lock"></i></button>
<button type="button" class="btn btn-primary" id="copyURL" title="Copy share URL"><i class="fas fa-fw fa-clipboard"></i></button>
</div>
</div>
</div>
</div> <!-- /.col-md-10 -->
<div class="col-md-2">
<div class="btn-group file-mgmt" role="group">
<button type="button" class="btn btn-success col-md-9" id="saveFile" title="Save (Ctrl + S)"><i class="fas fa-fw fa-save"></i> Save</button>
<button type="button" class="btn btn-danger col-md-3" id="deleteFile"><i class="fas fa-fw fa-trash"></i></button>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12" id="errorDisplay"></div>
</div>
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<i class="fas fa-fw fa-file-alt"></i> File content
</div>
<textarea style="height:100%;width:100%;" id="editor"></textarea>
</div>
</div>
</div>
</div> <!-- /.col-md-9 -->
</div>
</div>
<div class="modal fade" tabindex="-1" role="dialog" id="signin">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">You need to sign in!</h4>
</div>
<div class="modal-body">
<p>
To get access to your files you need to sign in with your Google Account.
</p>
<div id="signInButton"></div>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<a href="https://github.com/Luzifer/past3" class="github-corner" aria-label="View source on Github"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#70B7FD; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/moment@2.24.0/moment.js"
integrity="sha256-H9jAz//QLkDOy/nzE9G4aYijQtkLt9FvGmdUTwBk6gs=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.2.1/dist/js/bootstrap.min.js"
integrity="sha256-63ld7aiYP6UxBifJWEzz87ldJyVnETUABZAYs5Qcsmc=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/aws-sdk@2.395.0/dist/aws-sdk.min.js"
integrity="sha256-MzHoRWZbQFlUwgngJEQv5lqQ2EtwUYnE0M53wDmpkkk=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/codemirror@5.43.0/lib/codemirror.js"
integrity="sha256-hfrh94yIofvTL6wibCN7M4INZZ1CjyxQnHt+cXXm2Tw=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/codemirror@5.43.0/addon/mode/loadmode.js"
integrity="sha256-FUiE+wlCEXQFUy8sn3HhxGwIy1HbblIMpCDt1o/4kJw=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/codemirror@5.43.0/mode/meta.js"
integrity="sha256-RM2UdNwztCIJ51VS9I53w7iw8HlgmkhvjvUp1fowK4M=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.4/dist/clipboard.min.js"
integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>
<script src="app.js"></script>
<script src="https://apis.google.com/js/platform.js?onload=renderButton" async defer></script>
</body>
</html>