auto-git:
[change] renderer.js
This commit is contained in:
37
renderer.js
37
renderer.js
@@ -84,13 +84,13 @@ window.addEventListener('DOMContentLoaded', async () => {
|
|||||||
li.innerHTML = `
|
li.innerHTML = `
|
||||||
<div class="flex items-center space-x-2 overflow-hidden">
|
<div class="flex items-center space-x-2 overflow-hidden">
|
||||||
<!-- links: Icon + Name -->
|
<!-- links: Icon + Name -->
|
||||||
<svg xmlns="http://www.w3.org/2000/svg"
|
<svg xmlns="http://www.w3.org/2000/svg"
|
||||||
class="h-5 w-5 flex-shrink-0"
|
class="h-5 w-5 flex-shrink-0"
|
||||||
fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
||||||
d="M3 7a2 2 0 012-2h4l2 2h6a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V7"/>
|
d="M3 7a2 2 0 012-2h4l2 2h6a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V7"/>
|
||||||
</svg>
|
</svg>
|
||||||
<span class="truncate text-sm font-medium">${basename(folder)}</span>
|
<span class="truncate text-sm font-medium">${basename(folder)}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center space-x-2">
|
<div class="flex items-center space-x-2">
|
||||||
<!-- Play/Pause -->
|
<!-- Play/Pause -->
|
||||||
@@ -99,23 +99,24 @@ li.innerHTML = `
|
|||||||
title="${isMonitoring ? 'Monitoring pausieren' : 'Monitoring starten'}"
|
title="${isMonitoring ? 'Monitoring pausieren' : 'Monitoring starten'}"
|
||||||
>
|
>
|
||||||
${isMonitoring
|
${isMonitoring
|
||||||
? `<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
? `<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||||
<rect x="6" y="5" width="4" height="14" rx="1" fill="currentColor"/>
|
<rect x="6" y="5" width="4" height="14" rx="1" fill="currentColor"/>
|
||||||
<rect x="14" y="5" width="4" height="14" rx="1" fill="currentColor"/>
|
<rect x="14" y="5" width="4" height="14" rx="1" fill="currentColor"/>
|
||||||
</svg>`
|
</svg>`
|
||||||
: `<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
: `<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||||
<polygon points="7,5 19,12 7,19" fill="currentColor"/>
|
<polygon points="7,5 19,12 7,19" fill="currentColor"/>
|
||||||
</svg>`;
|
</svg>`
|
||||||
}
|
}
|
||||||
</button>
|
</button>
|
||||||
<!-- Entfernen -->
|
<!-- Entfernen -->
|
||||||
<button class="remove-btn p-1 rounded">
|
<button class="remove-btn p-1 rounded" title="Ordner entfernen">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" …>…</svg>
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
||||||
|
d="M6 18L18 6M6 6l12 12"/>
|
||||||
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|
||||||
pausePlayBtn.addEventListener('click', async e => {
|
pausePlayBtn.addEventListener('click', async e => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
await window.electronAPI.setMonitoring(folderObj, !isMonitoring);
|
await window.electronAPI.setMonitoring(folderObj, !isMonitoring);
|
||||||
|
|||||||
Reference in New Issue
Block a user