]> git.example.dev Git - binbsis50-sm.git/commitdiff
not time to reowrk the front end
author2weiEmu <saalbach.robert@outlook.de>
Thu, 21 May 2026 14:52:53 +0000 (16:52 +0200)
committer2weiEmu <saalbach.robert@outlook.de>
Thu, 21 May 2026 14:52:53 +0000 (16:52 +0200)
public/index.html
public/js/index.js
songmanager

index 96815a7817d9cc8c2d2c392e8850aea4fc56fe90..3c1333dc76c6f2684b7731834424486b0c032de2 100644 (file)
@@ -9,65 +9,17 @@
        </head>
 
        <body>
-               <div>
-                       <h1>Current Status of db:</h1>
-                       <button type="button" onclick="get_updated_status()">Get Status</button>
-                       <h2>List of songs in the database:</h2>
-                       <p>Filter songs here:</p>
-                       <input id="allSongFilterList" type="text"></input>
-                       <ul style="max-height: 400px; overflow-y: auto" id="db_status_song_list">
-                       </ul>
-                       <h2>List of Song Files</h2>
-                       <ul style="max-height: 400px; overflow-y: auto" id="song_file_list">
-                               
-                       </ul>
 
-                       <h2>Which rooms these songs are applied to</h2>
-                       <ul id="list_of_rooms">
-                               
-                       </ul>
-               </div>
+               <div id="outerSongList">
+                       <h1><u>Song List</u></h1>
 
-               <div>
-                       <h1>Room Overview</h1>
-               </div>
+                       <input id="songFilterInput"></input>
+                       <div id="innerSongList">
 
-               <div>
-                       <h1>Song Overview</h1>
+                       </div>
                </div>
        </body>
 
-       <div id="editElement" style="display: none; position: absolute; top: 20px; left: 20px;">
-               <h2>Edit Song Menu</h2>
-               <button onclick="closeEditElement()">Close</button>
-
-               <p>Guessable Artist Names</p>
-               <input id="editArtistName" pattern="[a-zA-Z0-9~\!]" type="text"></input>
-
-               <p>Guessable Track Names</p>
-               <input id="editTrackName" pattern="[a-zA-Z0-9~\!]" type="text"></input>
-
-               <p>TrackViewURL (Not relevant)</p>
-               <input id="editTrackViewUrl" pattern="[a-zA-Z0-9~\!]" type="text"></input>
-
-               <p>Preview URL (which song file)</p>
-               <input id="editPreviewUrl" pattern="[a-zA-Z0-9~\!]" type="text"></input>
-               <button id="updateSongFile">Directly Rename Song File</button>
-
-               <p>Artwork URL 60</p>
-               <input id="editArtworkUrl60" pattern="[a-zA-Z0-9~\!]" type="text"></input>
-
-               <p>Artwork URL 100</p>
-               <input id="editArtworkUrl100" pattern="[a-zA-Z0-9~\!]" type="text"></input>
-
-               <p>Display Names for list of Artists</p>
-               <input id="editDisplayArtistNames" pattern="[a-zA-Z0-9~\!]" type="text"></input>
-               
-               <p>Display Names for track name</p>
-               <input id="editDisplayTrackName" pattern="[a-zA-Z0-9~\!]" type="text"></input>
-
-               <button onclick="setNewSongValue()">Insert Changes</button>
-       </div>
        <script type="text/javascript" src="/js/index.js"></script>
 </html>
 
index d87845ccc76e40a9bcf94ab0f48969fa5efca63d..ad72436f0b48e99032d50f1e909f64e3390c89b2 100644 (file)
@@ -1,3 +1,29 @@
+let songList = []
+
+/**
+ * Get all the songs
+ **/
+async function getSongList() {
+
+       
+}
+
+
+/**
+ * MAIN SONG ELEMENT
+ **/
+
+
+/**
+ * SONG FILTERING LOGIC
+ **/
+let songFilterInput = document.getElementById("songFilterInput")
+
+
+
+
+
+// ==============================================================
 let AllSongs = null
 let AllFilenames = null
 let currentEditSong = null
@@ -267,3 +293,4 @@ editPreviewUrl.addEventListener("focusout", closeIfNotInEditor)
 editArtworkUrl60.addEventListener("focusout", closeIfNotInEditor)
 editArtworkUrl100.addEventListener("focusout", closeIfNotInEditor)
 editDisplayArtistNames.addEventListener("focusout", closeIfNotInEditor)
+
index dd44eb6939e703fcbda991185c27a1fdcd36a368..e6ee821db88835c9e1ab36fbd3cfdd9b48cd39f3 100755 (executable)
Binary files a/songmanager and b/songmanager differ