mirror of
https://github.com/Luzifer/past3.git
synced 2024-12-22 20:31:16 +00:00
177 lines
8.7 KiB
HTML
177 lines
8.7 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://cdnjs.cloudflare.com/ajax/libs/bootswatch/4.1.3/{{ config.bootswatch_theme }}/bootstrap.min.css" />
|
|
{% else %}
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css"
|
|
integrity="sha256-eSi1q2PG6J7g7ib17yAaWMcrr5GrtohYChqibrV7PBE=" crossorigin="anonymous" />
|
|
{% endif %}
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.40.2/codemirror.min.css"
|
|
integrity="sha256-I8NyGs4wjbMuBSUE40o55W6k6P7tu/7G28/JGUUYCIs=" 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://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"
|
|
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js"
|
|
integrity="sha256-CutOzxCRucUsn6C6TcEYsauvvYilEniTXldPa6/wu0k=" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/js/bootstrap.min.js"
|
|
integrity="sha256-VsEqElsCHSGmnmHXGQzvoWjWwoznFSZc6hs7ARLRacQ=" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/aws-sdk/2.320.0/aws-sdk.min.js"
|
|
integrity="sha256-Yz6bx7+bZiZo2xpUubQIftoUNZA4GX7ryPJtmBH1CHk=" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.40.2/codemirror.min.js"
|
|
integrity="sha256-hY4lHTn7c3QSwGpgxj3OAYynw9Etpx530BNJHTmhvYA=" crossorigin="anonymous"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.40.2/addon/mode/loadmode.min.js"
|
|
integrity="sha256-lV0GDqbsqZWyDhAX82N2eYbx+qydYmXOitWgRqQI9Ao=" crossorigin="anonymous"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.40.2/mode/meta.min.js"
|
|
integrity="sha256-+YoTLm1iuD8g9GwmNrGt+xLBvrfbd2B+6C38qtkNE28=" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.1/clipboard.min.js"
|
|
integrity="sha256-hIvIxeqhGZF+VVeM55k0mJvWpQ6gTkWk3Emc+NmowYA=" crossorigin="anonymous"></script>
|
|
|
|
<script src="app.js"></script>
|
|
<script src="https://apis.google.com/js/platform.js?onload=renderButton" async defer></script>
|
|
</body>
|
|
</html>
|