refactor: reorganize assets to dist directory

Moved JavaScript and other assets to a 'dist' directory for better
project structure. Updated script paths in views accordingly.

This change helps in maintaining a cleaner and more organized
directory structure, facilitating easier asset management
and potentially improving build processes.
This commit is contained in:
Kumi 2024-06-15 16:44:42 +02:00
parent b3616ec183
commit 32e6a5e429
Signed by: kumi
GPG key ID: ECBCC9082395383F
3 changed files with 5 additions and 3 deletions

2
.gitattributes vendored
View file

@ -1 +1 @@
public/js/webtorrent.min.js linguist-vendored public/dist/** linguist-vendored

View file

@ -3,13 +3,15 @@
<head> <head>
<title>Transfer.coffee</title> <title>Transfer.coffee</title>
<link rel="stylesheet" href="/css/style.css" /> <link rel="stylesheet" href="/css/style.css" />
<script src="/js/webtorrent.min.js"></script> <script src="dist/js/webtorrent.min.js"></script>
<link rel="icon" type="image/png" href="/img/logo.png" /> <link rel="icon" type="image/png" href="/img/logo.png" />
</head> </head>
<body> <body>
<div class="container"> <div class="container">
<header> <header>
<a href="/" class="home"><img src="/img/logo.png" alt="Transfer.coffee Logo" class="logo" /></a> <a href="/" class="home"
><img src="/img/logo.png" alt="Transfer.coffee Logo" class="logo"
/></a>
<a href="/"><h1>Transfer.coffee</h1></a> <a href="/"><h1>Transfer.coffee</h1></a>
</header> </header>
<div class="section" id="intro"> <div class="section" id="intro">