diff --git a/src/append_to_file.js b/src/components/js/append_to_file.js similarity index 100% rename from src/append_to_file.js rename to src/components/js/append_to_file.js diff --git a/src/data_structure.js b/src/components/js/data_structure.js similarity index 100% rename from src/data_structure.js rename to src/components/js/data_structure.js diff --git a/src/download.js b/src/components/js/download.js similarity index 100% rename from src/download.js rename to src/components/js/download.js diff --git a/src/getFiles.js b/src/components/js/getFiles.js similarity index 100% rename from src/getFiles.js rename to src/components/js/getFiles.js diff --git a/src/git_ops.js b/src/components/js/git_ops.js similarity index 100% rename from src/git_ops.js rename to src/components/js/git_ops.js diff --git a/src/html_elements.js b/src/components/js/html_elements.js similarity index 88% rename from src/html_elements.js rename to src/components/js/html_elements.js index d036009..d6e9b85 100644 --- a/src/html_elements.js +++ b/src/components/js/html_elements.js @@ -1,5 +1,5 @@ // Global Variabels -let selectDirBtn = document.getElementById('select-dir'); +let settingsProfileDirselectbutton = document.getElementById('settingsProfileDirselectbutton'); let dirBox = document.getElementById('dirBox'); let usernameInput = document.getElementById('username'); let passwordInput = document.getElementById('password'); @@ -30,6 +30,6 @@ saveCredBtn.addEventListener('click', (e) => { save(); }); -selectDirBtn.addEventListener('click', (e) => { +settingsProfileDirselectbutton.addEventListener('click', (e) => { changeUserpath(); }); \ No newline at end of file diff --git a/src/components/js/loople.js b/src/components/js/loople.js index 0de984a..961c7a6 100644 --- a/src/components/js/loople.js +++ b/src/components/js/loople.js @@ -6,10 +6,7 @@ document.querySelector('.loopple-alert.loopple-alert-dismissible .close').onclic }, 1000);} document.getElementById('download').addEventListener('click', () => { - - }, - - ); + }); diff --git a/src/preload.js b/src/components/js/preload.js similarity index 55% rename from src/preload.js rename to src/components/js/preload.js index bebb932..a06343a 100644 --- a/src/preload.js +++ b/src/components/js/preload.js @@ -2,8 +2,8 @@ const { contextBridge, ipcRenderer } = require('electron') process.once('loaded', () => { window.addEventListener('message', evt => { - if (evt.data.type === 'select-dirs') { - ipcRenderer.send('select-dirs') + if (evt.data.type === 'settingsProfileDirselectbutton') { + ipcRenderer.send('settingsProfileDirselectbutton') } }) }) \ No newline at end of file diff --git a/src/save.js b/src/components/js/save.js similarity index 100% rename from src/save.js rename to src/components/js/save.js diff --git a/src/startup.js b/src/components/js/startup.js similarity index 100% rename from src/startup.js rename to src/components/js/startup.js diff --git a/src/index.html b/src/index.html index 338d377..3a68fa3 100644 --- a/src/index.html +++ b/src/index.html @@ -14,12 +14,6 @@ - @@ -27,7 +21,7 @@

Settings

- +

@@ -175,15 +169,16 @@
- - - - - - - - - + + + + + + + + + + \ No newline at end of file diff --git a/src/index1.html b/src/index1.html index 573cde3..83ee87b 100644 --- a/src/index1.html +++ b/src/index1.html @@ -31,5 +31,14 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/renderer.js b/src/renderer.js index 3abc99b..1286fdc 100644 --- a/src/renderer.js +++ b/src/renderer.js @@ -26,7 +26,7 @@ function removeFileItems() { } } -function changeUserpath() { +export function changeUserpath() { ipcRenderer.send('app-path'); } diff --git a/src/settings.html b/src/settings.html deleted file mode 100644 index e342fd7..0000000 --- a/src/settings.html +++ /dev/null @@ -1,278 +0,0 @@ - - - - -
- - - - - -
-
-
-
-
-
Credentials
-
-
-
-
-
-
-
- - - -
-
-
-
- - -
-
-
-
-
-
- - -
-
-
- - -
-
- - -
- - -
- -
- -
-
-
-
-
-
- - - - -
- - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/syncing.html b/src/syncing.html deleted file mode 100644 index 52dc49c..0000000 --- a/src/syncing.html +++ /dev/null @@ -1,265 +0,0 @@ - - - - -
- - - - - -
-
-
-
-
-
Syncing
-
-
-
-
-
Apply to Update
-
    -
  • -
    - - -
    -
  • -
  • -
    - - -
    -
  • - -
- -
-
- -
-
- - - - - - - - - - - - - - \ No newline at end of file