mirror of
https://github.com/status-im/universal-links-handler.git
synced 2025-02-23 08:08:08 +00:00
Remove unused js files. Change title with id on view.
Signed-off-by: Nistor Cristian <contact@nistorcristian.com>
This commit is contained in:
parent
79e58864b9
commit
9d82580da7
@ -55,6 +55,7 @@ img.qr-code{
|
||||
width: 180px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.break-word{
|
||||
|
@ -36,6 +36,10 @@
|
||||
}
|
||||
});
|
||||
|
||||
$('.copy a').on('click', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
var clipboard = new ClipboardJS('.copy a');
|
||||
|
||||
clipboard.on('success', function(e) {
|
||||
|
@ -49,7 +49,8 @@ router.get('/chat/:chatType/:chatId', function(req, res, next) {
|
||||
const { chatId, chatType } = req.params;
|
||||
res.render('index', {
|
||||
title: `Join the ${chatType} chat: #${chatId} in Status`,
|
||||
path: req.originalUrl
|
||||
path: req.originalUrl,
|
||||
id: `${chatId}`
|
||||
});
|
||||
});
|
||||
|
||||
@ -58,6 +59,7 @@ router.get('/user/:userId', function(req, res, next) {
|
||||
const options = {
|
||||
title: `View user ${userId} profile in Status`,
|
||||
path: req.originalUrl,
|
||||
id: `${userId}`
|
||||
};
|
||||
makeQrCodeDataUri(userId).then(
|
||||
qrCodeDataUri => res.render('index', { ...options, qrCodeDataUri }),
|
||||
@ -70,6 +72,7 @@ router.get('/extension/:extensionEndpoint', function(req, res, next) {
|
||||
const options = {
|
||||
title: `Open extension ${extensionEndpoint} in Status`,
|
||||
path: req.originalUrl,
|
||||
id: `${extensionEndpoint}`
|
||||
};
|
||||
makeQrCodeDataUri('https://get.status.im/extension/' + extensionEndpoint).then(
|
||||
qrCodeDataUri => res.render('index', { ...options, qrCodeDataUri }),
|
||||
@ -80,7 +83,8 @@ router.get('/extension/:extensionEndpoint', function(req, res, next) {
|
||||
router.get('/browse/:url(*)', function(req, res, next) {
|
||||
res.render('index', {
|
||||
title: `Browse to ${req.params.url} in Status`,
|
||||
path: req.originalUrl
|
||||
path: req.originalUrl,
|
||||
id: `${req.params.url}`
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -163,19 +163,19 @@
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h3 class="break-word"><%= title %></h3>
|
||||
<h3 class="break-word"><%= id %></h3>
|
||||
<%if (locals.qrCodeDataUri) { %>
|
||||
<img class="qr-code" src="<%= qrCodeDataUri %>" />
|
||||
<% } %>
|
||||
<div class="row">
|
||||
<div class="col-md-6 ml-auto mr-auto text-center">
|
||||
<div class="copy">
|
||||
<div class="inner" id="copy-target"><%= title %></div>
|
||||
<div class="inner" id="copy-target"><%= id %></div>
|
||||
<a href="#" data-clipboard-target="#copy-target">Copy</a>
|
||||
</div>
|
||||
<a href="status-im:/<%= path %>" class="btn btn-purple-fill">Download Status</a>
|
||||
<a href="https://status.im/get/" class="btn btn-purple-fill">Download Status</a>
|
||||
<div class="info">
|
||||
Chat and transact with <span><%= title %></span> in Status.
|
||||
Chat and transact with <span><%= id %></span> in Status.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -360,11 +360,7 @@
|
||||
</div>
|
||||
</footer>
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.min.js" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
|
||||
<script type="text/javascript" src="/js/dev.js"></script>
|
||||
<script src="https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js"></script>
|
||||
<script type='text/javascript' src='/js/app.js'></script>
|
||||
</body>
|
||||
|
Loading…
x
Reference in New Issue
Block a user