diff --git a/config/homepage/bookmarks.yaml b/config/homepage/bookmarks.yaml deleted file mode 100644 index 91f51fb..0000000 --- a/config/homepage/bookmarks.yaml +++ /dev/null @@ -1,18 +0,0 @@ ---- -# For configuration options and examples, please see: -# https://gethomepage.dev/configs/bookmarks - -- My Projects: - - Github: - - abbr: GH - href: https://github.com/kiskaadee?tab=repositories - -- Social Media: - - Instagram: - - abbr: IN - href: https://www.instagram.com/tierraenmisbotas// - -- Learning Content: - - YouTube: - - abbr: YT - href: https://www.youtube.com/@scicreep8979 diff --git a/config/homepage/custom.css b/config/homepage/custom.css deleted file mode 100644 index e36f34a..0000000 --- a/config/homepage/custom.css +++ /dev/null @@ -1,211 +0,0 @@ -.hp-kanban-section { - width: 100% !important; - flex-basis: 100% !important; - margin-top: 2rem !important; - display: block !important; -} - -.hp-section-header { - display: flex; - justify-content: space-between; - align-items: center; - margin-bottom: 1.5rem; - padding-bottom: 0.5rem; - border-bottom: 1px solid rgba(51, 65, 85, 0.5); -} - -.hp-section-header h2 { - margin: 0 !important; - font-size: 1.5rem !important; -} - -.hp-kanban-board { - display: flex; - gap: 20px; - margin: 10px 0 30px 0; - width: 100%; -} - -.hp-kanban-col { - flex: 1; - background: rgba(15, 23, 42, 0.4); - border: 1px solid rgba(51, 65, 85, 0.3); - border-radius: 12px; - padding: 20px; - min-height: 600px; /* Enforce min height for 3-4 courses */ - backdrop-filter: blur(4px); - display: flex; - flex-direction: column; -} - -.hp-kanban-col h3 { - font-size: 0.9rem !important; - margin: 0 0 1.5rem 0 !important; - text-transform: uppercase; - color: #f1f5f9; - text-align: center; - letter-spacing: 0.1em; - font-weight: 700; - padding-bottom: 0.5rem; - border-bottom: 2px solid rgba(56, 189, 248, 0.3); -} - -.hp-kanban-list { - display: flex; - flex-direction: column; - gap: 12px; - flex: 1; -} - -.hp-kanban-card { - background: rgba(30, 41, 59, 0.8); - border: 1px solid rgba(51, 65, 85, 0.5); - border-radius: 8px; - padding: 15px; - cursor: grab; - position: relative; - transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); -} - -.hp-kanban-card:hover { - border-color: #3b82f6; - transform: translateY(-2px); - background: #1e293b; - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); -} - -.hp-kanban-card-title { - font-size: 0.95rem; - font-weight: 700; - margin-bottom: 6px; - color: #f8fafc; - padding-right: 40px; -} - -.hp-kanban-card-desc { - font-size: 0.8rem; - color: #94a3b8; - margin-bottom: 12px; - line-height: 1.4; -} - -.hp-kanban-card-links { - display: flex; - flex-direction: column; - gap: 8px; - border-top: 1px solid rgba(51, 65, 85, 0.3); - padding-top: 10px; -} - -.hp-kanban-card-links a { - text-decoration: none; - font-weight: 600; - font-size: 0.75rem; - padding: 4px 8px; - border-radius: 4px; - text-align: center; -} - -.milestone-link { - background: #3b82f6; - color: white !important; -} - -.hub-link { - background: rgba(51, 65, 85, 0.5); - color: #94a3b8 !important; -} - -.milestone-link:hover { background: #2563eb; } -.hub-link:hover { background: rgba(51, 65, 85, 0.8); color: white !important; } - -.hp-kanban-card.dragging { - opacity: 0.1; - transform: scale(0.9); -} - -.hp-kanban-card-actions { - position: absolute; - top: 10px; - right: 10px; - display: flex; - gap: 6px; - opacity: 0; - transition: opacity 0.2s; -} - -.hp-kanban-card:hover .hp-kanban-card-actions { - opacity: 1; -} - -.hp-kanban-card-actions button { - background: none; - border: none; - cursor: pointer; - font-size: 0.8rem; -} - -.hp-add-btn { - background: #3b82f6; - color: white; - border: none; - padding: 6px 16px; - border-radius: 6px; - font-size: 0.85rem; - font-weight: 600; - cursor: pointer; - transition: background 0.2s; -} - -.hp-add-btn:hover { background: #2563eb; } - -/* Modal Styles */ -.hp-modal { - display: none; - position: fixed; - z-index: 10000; - inset: 0; - background: rgba(0,0,0,0.8); - backdrop-filter: blur(4px); - align-items: center; - justify-content: center; -} - -.hp-modal-content { - background: #1e293b; - padding: 2rem; - border-radius: 12px; - width: 90%; - max-width: 450px; - border: 1px solid #334155; -} - -.hp-form-group { margin-bottom: 1rem; } -.hp-form-group label { display: block; font-size: 0.8rem; color: #94a3b8; margin-bottom: 4px; } -.hp-form-group input, .hp-form-group textarea, .hp-form-group select { - width: 100%; - background: #0f172a; - border: 1px solid #334155; - color: white; - padding: 8px; - border-radius: 6px; -} - -.hp-modal-actions { - display: flex; - justify-content: flex-end; - gap: 12px; - margin-top: 1.5rem; -} - -.hp-modal-actions button { - padding: 8px 18px; - border-radius: 6px; - cursor: pointer; - font-weight: 600; -} - -.hp-kanban-board ~ ul, -.hp-kanban-board ~ .grid { - display: none !important; -} diff --git a/config/homepage/custom.js b/config/homepage/custom.js deleted file mode 100644 index e967832..0000000 --- a/config/homepage/custom.js +++ /dev/null @@ -1,234 +0,0 @@ -/** - * Learning Kanban Native Integration for Homepage (v4 - Autonomous & Anchorless) - */ - -function getApiBase() { - return `https://learning.arch-services.mywire.org`; -} - -const API_BASE = getApiBase(); -let allCourses = []; - -async function fetchCourses() { - try { - const response = await fetch(`${API_BASE}/api/courses`); - if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`); - allCourses = await response.json(); - return allCourses; - } catch (e) { - console.warn("Failed to fetch courses", e); - return []; - } -} - -async function updateCourseStatus(courseId, newStatus) { - try { - const course = allCourses.find(c => c.id == courseId); - if (!course) return; - course.status = newStatus; - await fetch(`${API_BASE}/api/courses/${courseId}`, { - method: 'PUT', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify(course) - }); - } catch (e) { - console.error("Failed to update course", e); - } -} - -function createKanbanCard(course) { - return ` -
-
- - -
-
${course.title}
-
${course.description || ''}
- -
- `; -} - -async function renderKanban() { - // Look for the main services grid - this is our insertion point - const servicesGrid = document.getElementById('services'); - if (!servicesGrid) return; - - // Check if we already created our section - let section = document.getElementById('hp-learning-hub-section'); - - if (!section) { - section = document.createElement('section'); - section.id = 'hp-learning-hub-section'; - section.className = 'hp-kanban-section'; - // Insert after services grid - servicesGrid.after(section); - - section.innerHTML = ` -
-

Learning Hub

- -
-
-
-

🚀 In Progress

-
-
-
-

📅 Planning

-
-
-
-

📦 Archive

-
-
-
- `; - injectModal(); - } - - await refreshBoardContent(section); -} - -async function refreshBoardContent(section) { - const courses = await fetchCourses(); - const board = section.querySelector('.hp-kanban-board'); - if (!board) return; - - board.querySelectorAll('.hp-kanban-list').forEach(l => l.innerHTML = ''); - - courses.forEach(course => { - const list = board.querySelector(`.hp-kanban-col[data-status="${course.status}"] .hp-kanban-list`); - if (list) list.innerHTML += createKanbanCard(course); - }); - - // Re-bind Drag & Drop - const cards = board.querySelectorAll('.hp-kanban-card'); - cards.forEach(card => { - card.addEventListener('dragstart', (e) => { - e.dataTransfer.setData('text/plain', card.dataset.id); - card.classList.add('dragging'); - }); - card.addEventListener('dragend', () => card.classList.remove('dragging')); - }); - - const cols = board.querySelectorAll('.hp-kanban-col'); - cols.forEach(col => { - col.addEventListener('dragover', (e) => e.preventDefault()); - col.addEventListener('drop', async (e) => { - e.preventDefault(); - const id = e.dataTransfer.getData('text/plain'); - const status = col.dataset.status; - const draggingCard = document.querySelector(`.hp-kanban-card[data-id="${id}"]`); - if (draggingCard) col.querySelector('.hp-kanban-list').appendChild(draggingCard); - await updateCourseStatus(id, status); - }); - }); -} - -// Modal Logic -window.hpShowCourseModal = function(id = null) { - const modal = document.getElementById('hp-course-modal'); - if (!modal) return; - const form = document.getElementById('hp-course-form'); - modal.style.display = 'flex'; - if (id) { - const course = allCourses.find(c => c.id == id); - if (!course) return; - document.getElementById('hp-modal-title').innerText = 'Edit Course'; - document.getElementById('hp-course-id').value = course.id; - document.getElementById('hp-title').value = course.title; - document.getElementById('hp-description').value = course.description || ''; - document.getElementById('hp-main_link').value = course.main_link; - document.getElementById('hp-last_link').value = course.last_link || ''; - document.getElementById('hp-status').value = course.status; - } else { - document.getElementById('hp-modal-title').innerText = 'Add New Course'; - form.reset(); - document.getElementById('hp-course-id').value = ''; - } -}; - -window.hpCloseModal = () => { - const modal = document.getElementById('hp-course-modal'); - if (modal) modal.style.display = 'none'; -}; - -window.hpDeleteCourse = async (id) => { - if (confirm('Delete this course?')) { - await fetch(`${API_BASE}/api/courses/${id}`, { method: 'DELETE' }); - const section = document.getElementById('hp-learning-hub-section'); - if (section) refreshBoardContent(section); - } -}; - -function injectModal() { - if (document.getElementById('hp-course-modal')) return; - const modalHtml = ` -
-
-

Add Course

-
- -
-
-
-
-
- -
-
- - -
-
-
-
- `; - document.body.insertAdjacentHTML('beforeend', modalHtml); - - document.getElementById('hp-course-form').onsubmit = async (e) => { - e.preventDefault(); - const id = document.getElementById('hp-course-id').value; - const data = { - title: document.getElementById('hp-title').value, - description: document.getElementById('hp-description').value, - main_link: document.getElementById('hp-main_link').value, - last_link: document.getElementById('hp-last_link').value, - status: document.getElementById('hp-status').value - }; - const method = id ? 'PUT' : 'POST'; - const url = id ? `${API_BASE}/api/courses/${id}` : `${API_BASE}/api/courses`; - await fetch(url, { - method, - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify(data) - }); - window.hpCloseModal(); - const section = document.getElementById('hp-learning-hub-section'); - if (section) refreshBoardContent(section); - }; -} - -// Observer -let debounceTimer; -const observer = new MutationObserver(() => { - clearTimeout(debounceTimer); - debounceTimer = setTimeout(() => { - const servicesGrid = document.getElementById('services'); - if (servicesGrid && !document.getElementById('hp-learning-hub-section')) { - renderKanban(); - } - }, 500); -}); - -observer.observe(document.body, { childList: true, subtree: true }); -renderKanban(); diff --git a/config/homepage/docker.yaml b/config/homepage/docker.yaml deleted file mode 100644 index 8f8ee8c..0000000 --- a/config/homepage/docker.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -# For configuration options and examples, please see: -# https://gethomepage.dev/configs/docker/ - -my-docker: - host: socket-proxy - port: 2375 diff --git a/config/homepage/kubernetes.yaml b/config/homepage/kubernetes.yaml deleted file mode 100644 index aca6e82..0000000 --- a/config/homepage/kubernetes.yaml +++ /dev/null @@ -1,2 +0,0 @@ ---- -# sample kubernetes config diff --git a/config/homepage/proxmox.yaml b/config/homepage/proxmox.yaml deleted file mode 100644 index 90aacd7..0000000 --- a/config/homepage/proxmox.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# pve: -# url: https://proxmox.host.or.ip:8006 -# token: username@pam!Token ID -# secret: secret diff --git a/config/homepage/services.yaml b/config/homepage/services.yaml deleted file mode 100644 index 680e698..0000000 --- a/config/homepage/services.yaml +++ /dev/null @@ -1,46 +0,0 @@ ---- -# Applications Group -- Applications: - # - Gitea: - # icon: gitea.png - # href: https://gitea.arch-services.mywire.org - # description: Git Service - # server: my-docker - # container: gitea - # - Ollama: - # icon: ollama.png - # href: https://ollama.arch-services.mywire.org - # description: AI Model Runner - # server: my-docker - # container: ollama-ollama-1 - - Jellyfin: - icon: jellyfin.png - href: https://jellyfin.arch-services.mywire.org - description: Media Server - server: my-docker - container: jellyfin - - Excalidraw: - icon: excalidraw.png - href: https://excalidraw.arch-services.mywire.org - description: Sketching Tool - server: my-docker - container: excalidraw-excalidraw-1 - - Mermaid: - icon: mermaid.png - href: https://mermaid.arch-services.mywire.org - description: Diagramming Tool - server: my-docker - container: mermaid-live-editor - - Docs-Viewer: - icon: files.png - href: https://docs.arch-services.mywire.org - description: Reactive docs viewer - server: my-docker - container: docs - - Minecraft: - icon: minecraft.png - href: https://minecraft.arch-services.mywire.org - description: Self hosted Minecraft server - server: my-docker - container: minecraft-server - diff --git a/config/homepage/settings.yaml b/config/homepage/settings.yaml deleted file mode 100644 index 2e828c0..0000000 --- a/config/homepage/settings.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -# For configuration options and examples, please see: -# https://gethomepage.dev/configs/settings/ - -providers: - openweathermap: openweathermapapikey - weatherapi: weatherapiapikey diff --git a/config/homepage/widgets.yaml b/config/homepage/widgets.yaml deleted file mode 100644 index f195daf..0000000 --- a/config/homepage/widgets.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -# For configuration options and examples, please see: -# https://gethomepage.dev/configs/info-widgets/ - -- resources: - cpu: true - memory: true - -- search: - provider: google - target: _blank diff --git a/docker-compose.yml b/docker-compose.yml index 708ddf8..aeb93ff 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -200,31 +200,6 @@ services: networks: - socket-net - homepage: - image: ghcr.io/gethomepage/homepage:latest - container_name: homepage - restart: always - volumes: - - ./config/homepage:/app/config - - /home:/home:ro - environment: - - HOMEPAGE_ALLOWED_HOSTS=${DOMAIN} - networks: - - proxy-net - - socket-net - labels: - - "traefik.enable=true" - # Public (HTTPS) - - "traefik.http.routers.homepage.rule=Host(`${DOMAIN}`)" - - "traefik.http.routers.homepage.entrypoints=websecure" - - "traefik.http.routers.homepage.tls=true" - - "traefik.http.routers.homepage.service=homepage-svc" - # Public (Redirect) - - "traefik.http.routers.homepage-red.rule=Host(`${DOMAIN}`)" - - "traefik.http.routers.homepage-red.entrypoints=web" - - "traefik.http.routers.homepage-red.middlewares=https-redirect@docker" - - "traefik.http.services.homepage-svc.loadbalancer.server.port=3000" - networks: proxy-net: external: true