Skip to content

Commit

Permalink
Big cleanup in the frontend, removing unused libraries, fixing favico
Browse files Browse the repository at this point in the history
  • Loading branch information
pbu88 committed Jan 23, 2022
1 parent ef0b84c commit 181f05c
Show file tree
Hide file tree
Showing 14 changed files with 8 additions and 969 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ WORKDIR /diffy/backend
RUN npm install
RUN npm run-script build

# Models
COPY ./models/ /diffy/models/
WORKDIR /diffy/models
RUN npm install
RUN npm run-script build

# By default expose port 3000 and run `node /diffy/src/app.js` when executing the image
EXPOSE 3000
CMD ["npm", "start"]
File renamed without changes.
49 changes: 1 addition & 48 deletions frontend/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Diffy - share diff output in your browser</title>
<base href="/">

<link rel="icon" href="/static/img/favicon.ico" type="image/x-icon">
<link rel="icon" href="/assets/img/favicon.ico" type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--<link rel="icon" type="image/x-icon" href="favicon.ico">-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
Expand Down Expand Up @@ -40,13 +40,6 @@
<p class="credit">Created by <a href="https://paulobu.com" target="_blank">Paulo Bu</a></p>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<!--<script src="./Cover Template for Bootstrap_files/ie10-viewport-bug-workaround.js"></script>-->
<script>
var x='REPLACE_ME_GA_ANALITYCS_KEY';
if (!x.startsWith('REPLACE_ME')) {
Expand All @@ -61,46 +54,6 @@
window.ga = function() { console.log("dummy ga") };
}
</script>
<script>
$(function() {
$('[data-toggle="tooltip"]').tooltip();
});

//$(function() {
// $('#submit-file').change(function(evt) {
// var files = evt.target.files;
// var reader = new FileReader();
// reader.onload = function(e) {
// var text = e.target.result
// $('#diffTextArea').val(text);
// var element = document.getElementById('diffTextArea');
// var event = new Event('change', { bubbles: true });
// element.dispatchEvent(event);
// };
//
// reader.readAsText(files[0]);
// });
//});

</script>
<!--<script src="/static/clipboard.js"></script>-->
<!-- Javascripts -->
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/highlight.min.js"></script>-->
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/languages/scala.min.js"></script>-->
<!--<script type="text/javascript" src="/static/vendor/diff2html/diff2html-ui.js"></script>-->
<script>
$(document).ready(function() {
$('.d2h-file-wrapper').each(function(i, wrapper) {
var $wrapper = $(wrapper);
var lang = $wrapper.data('lang');
$wrapper.find('.d2h-code-line-ctn').each(function(i, line) {
var $line = $(line);
$line.addClass(lang);
//hljs.highlightBlock(line);
});
});
});
</script>

</body>
</html>
27 changes: 0 additions & 27 deletions static/diff.css

This file was deleted.

64 changes: 0 additions & 64 deletions static/fileTree.css

This file was deleted.

Binary file removed static/img/diffy-logo.gif
Binary file not shown.
21 changes: 0 additions & 21 deletions static/index.css

This file was deleted.

18 changes: 0 additions & 18 deletions static/js/Application.js

This file was deleted.

25 changes: 0 additions & 25 deletions static/js/CountdownClock.js

This file was deleted.

16 changes: 0 additions & 16 deletions static/js/DiffArea.js

This file was deleted.

19 changes: 0 additions & 19 deletions static/js/FileTree.js

This file was deleted.

Loading

0 comments on commit 181f05c

Please sign in to comment.