From 0173fbb679bd2f888852aa00caec4ab8892b1f67 Mon Sep 17 00:00:00 2001 From: z0rayy Date: Thu, 4 Jun 2026 16:39:49 +0700 Subject: [PATCH 01/36] chore: inisialisasi environment node dan penambahan dependensi --- groups/RODA/package-lock.json | 13 +++++++++++++ groups/RODA/package.json | 14 ++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 groups/RODA/package-lock.json create mode 100644 groups/RODA/package.json diff --git a/groups/RODA/package-lock.json b/groups/RODA/package-lock.json new file mode 100644 index 0000000..2155203 --- /dev/null +++ b/groups/RODA/package-lock.json @@ -0,0 +1,13 @@ +{ + "name": "roda", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "roda", + "version": "1.0.0", + "license": "ISC" + } + } +} diff --git a/groups/RODA/package.json b/groups/RODA/package.json new file mode 100644 index 0000000..b0606c6 --- /dev/null +++ b/groups/RODA/package.json @@ -0,0 +1,14 @@ +{ + "name": "roda", + "version": "1.0.0", + "description": "Project website untuk menampilkan sorotan dan prestasi karya mahasiswa program studi Informatika Universitas Tanjungpura.", + "main": "server.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "start": "node server.js", + "dev": "node server.js" + }, + "keywords": [], + "author": "", + "license": "ISC" +} \ No newline at end of file From c9ae01f9ae7ce09c14e18d5f31630d44d14f73cf Mon Sep 17 00:00:00 2001 From: z0rayy Date: Thu, 4 Jun 2026 16:40:24 +0700 Subject: [PATCH 02/36] feat: implementasi server lokal untuk injeksi konfigurasi dinamis --- groups/RODA/.env | 4 + groups/RODA/server.js | 279 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 283 insertions(+) create mode 100644 groups/RODA/.env create mode 100644 groups/RODA/server.js diff --git a/groups/RODA/.env b/groups/RODA/.env new file mode 100644 index 0000000..ffbaf40 --- /dev/null +++ b/groups/RODA/.env @@ -0,0 +1,4 @@ +DASHBOARD_TARGET_URL=https://dashboard.informatika.untan.ac.id/index.php?penelitian +DASHBOARD_PROXY_1=https://api.allorigins.win/get?url={{url}}&ts={{ts}} +DASHBOARD_PROXY_2=https://api.codetabs.com/v1/proxy?quest={{url}} +DASHBOARD_PROXY_3=https://thingproxy.freeboard.io/fetch/{{rawUrl}} \ No newline at end of file diff --git a/groups/RODA/server.js b/groups/RODA/server.js new file mode 100644 index 0000000..42dd119 --- /dev/null +++ b/groups/RODA/server.js @@ -0,0 +1,279 @@ +const fs = require('fs'); +const http = require('http'); +const path = require('path'); +const { URL } = require('url'); + +const ROOT_DIR = __dirname; +const PARENT_DIR = path.join(__dirname, '..', '..'); +const INDEX_PATH = path.join(ROOT_DIR, 'index.html'); +const ENV_PATH = path.join(ROOT_DIR, '.env'); +const HOST = '127.0.0.1'; +const PORT = Number(process.env.PORT || 3000); + +function logServerError(scope, error, extra = {}) { + console.error(`[${scope}]`, error && error.stack ? error.stack : error, extra); +} + +function parseEnvFile(filePath) { + if (!fs.existsSync(filePath)) { + return {}; + } + + const env = {}; + const lines = fs.readFileSync(filePath, 'utf8').split(/\r?\n/); + + for (const rawLine of lines) { + const line = rawLine.trim(); + if (!line || line.startsWith('#')) { + continue; + } + + const separatorIndex = line.indexOf('='); + if (separatorIndex === -1) { + continue; + } + + const key = line.slice(0, separatorIndex).trim(); + let value = line.slice(separatorIndex + 1).trim(); + + if ( + (value.startsWith('"') && value.endsWith('"')) || + (value.startsWith("'") && value.endsWith("'")) + ) { + value = value.slice(1, -1); + } + + env[key] = value; + } + + return env; +} + +function getAppConfig() { + const env = { + ...parseEnvFile(ENV_PATH), + ...process.env + }; + + const dashboardProxyTemplates = [ + env.DASHBOARD_PROXY_1, + env.DASHBOARD_PROXY_2, + env.DASHBOARD_PROXY_3 + ].filter(Boolean); + + return { + dashboardTargetUrl: env.DASHBOARD_TARGET_URL || '', + dashboardProxyTemplates + }; +} + +const DASHBOARD_CACHE_TTL_MS = 5 * 60 * 1000; +let dashboardCache = { html: null, timestamp: 0 }; + +async function fetchDashboardHtml() { + const targetUrl = getAppConfig().dashboardTargetUrl; + if (!targetUrl) { + throw new Error('DASHBOARD_TARGET_URL kosong'); + } + + const now = Date.now(); + if (dashboardCache.html && (now - dashboardCache.timestamp) < DASHBOARD_CACHE_TTL_MS) { + return { html: dashboardCache.html, cached: 'HIT' }; + } + + const controller = new AbortController(); + const timeoutId = setTimeout(() => controller.abort(), 12000); + try { + const response = await fetch(targetUrl, { + signal: controller.signal, + headers: { + 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0 Safari/537.36' + } + }); + if (!response.ok) { + throw new Error(`HTTP_ERROR_${response.status}`); + } + const html = await response.text(); + dashboardCache = { html, timestamp: Date.now() }; + return { html, cached: 'MISS' }; + } catch (error) { + if (dashboardCache.html) { + return { html: dashboardCache.html, cached: 'STALE' }; + } + throw error; + } finally { + clearTimeout(timeoutId); + } +} + +function validateAppConfig(config) { + const errors = []; + + if (!config.dashboardTargetUrl) { + errors.push('DASHBOARD_TARGET_URL belum diisi.'); + } + + if (!Array.isArray(config.dashboardProxyTemplates) || !config.dashboardProxyTemplates.length) { + errors.push('Minimal satu DASHBOARD_PROXY_* harus diisi.'); + } + + return errors; +} + +function injectConfig(html) { + const configScript = ``; + const defaultConfigScript = ''; + + if (html.includes(defaultConfigScript)) { + return html.replace(defaultConfigScript, configScript); + } + + return html.replace('', ` ${configScript}\n`); +} + +function sendHtml(res) { + try { + const html = fs.readFileSync(INDEX_PATH, 'utf8'); + const configErrors = validateAppConfig(getAppConfig()); + if (configErrors.length) { + logServerError('config', new Error('Invalid app config'), { configErrors }); + } + + const withConfig = injectConfig(html); + res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' }); + res.end(withConfig); + } catch (error) { + logServerError('sendHtml', error); + res.writeHead(500, { 'Content-Type': 'text/plain; charset=utf-8' }); + res.end('Internal Server Error'); + } +} + +function getMimeType(pathname) { + const ext = path.extname(pathname).toLowerCase(); + const mimeTypes = { + '.html': 'text/html; charset=utf-8', + '.css': 'text/css; charset=utf-8', + '.js': 'application/javascript; charset=utf-8', + '.json': 'application/json; charset=utf-8', + '.png': 'image/png', + '.jpg': 'image/jpeg', + '.jpeg': 'image/jpeg', + '.gif': 'image/gif', + '.svg': 'image/svg+xml', + '.ico': 'image/x-icon', + '.webp': 'image/webp', + '.woff': 'font/woff', + '.woff2': 'font/woff2', + '.ttf': 'font/ttf', + '.eot': 'application/vnd.ms-fontobject' + }; + return mimeTypes[ext] || 'application/octet-stream'; +} + +function sendStaticFile(res, filepath) { + try { + if (!fs.existsSync(filepath)) { + res.writeHead(404, { 'Content-Type': 'text/plain; charset=utf-8' }); + res.end('Not found'); + return; + } + + const content = fs.readFileSync(filepath); + const mimeType = getMimeType(filepath); + res.writeHead(200, { 'Content-Type': mimeType }); + res.end(content); + } catch (error) { + logServerError('sendStaticFile', error, { filepath }); + res.writeHead(500, { 'Content-Type': 'text/plain; charset=utf-8' }); + res.end('Internal Server Error'); + } +} + +function sendNotFound(res) { + res.writeHead(404, { 'Content-Type': 'text/plain; charset=utf-8' }); + res.end('Not found'); +} + +const server = http.createServer((req, res) => { + try { + const requestUrl = new URL(req.url, `http://${req.headers.host}`); + const pathname = requestUrl.pathname; + + if (pathname === '/' || pathname === '/index.html') { + sendHtml(res); + return; + } + + if (pathname === '/api/dashboard') { + fetchDashboardHtml() + .then(({ html, cached }) => { + res.writeHead(200, { + 'Content-Type': 'text/html; charset=utf-8', + 'X-Cache': cached + }); + res.end(html); + }) + .catch((error) => { + logServerError('api-dashboard', error); + res.writeHead(502, { 'Content-Type': 'text/plain; charset=utf-8' }); + res.end('DASHBOARD_FETCH_FAILED'); + }); + return; + } + + // Handle /assets/ from parent directory + if (pathname.startsWith('/assets/')) { + const assetsFilepath = path.join(PARENT_DIR, pathname); + const normalizedAssetsPath = path.normalize(assetsFilepath); + + if (!normalizedAssetsPath.startsWith(path.normalize(PARENT_DIR))) { + sendNotFound(res); + return; + } + + sendStaticFile(res, normalizedAssetsPath); + return; + } + + // Serve static files from ROOT_DIR + const filepath = path.join(ROOT_DIR, pathname); + const normalizedPath = path.normalize(filepath); + + // Security check: ensure the requested file is within ROOT_DIR + if (!normalizedPath.startsWith(path.normalize(ROOT_DIR))) { + sendNotFound(res); + return; + } + + sendStaticFile(res, normalizedPath); + } catch (error) { + logServerError('request-handler', error, { url: req.url }); + res.writeHead(500, { 'Content-Type': 'text/plain; charset=utf-8' }); + res.end('Internal Server Error'); + } +}); + +server.on('clientError', (error, socket) => { + logServerError('clientError', error); + socket.end('HTTP/1.1 400 Bad Request\r\n\r\n'); +}); + +server.listen(PORT, HOST, () => { + console.log(`Server ready at http://${HOST}:${PORT}`); +}); + +server.on('error', (error) => { + logServerError('server', error, { host: HOST, port: PORT }); + process.exitCode = 1; +}); + +process.on('uncaughtException', (error) => { + logServerError('uncaughtException', error); + process.exitCode = 1; +}); + +process.on('unhandledRejection', (reason) => { + logServerError('unhandledRejection', reason instanceof Error ? reason : new Error(String(reason))); + process.exitCode = 1; +}); From 3c540474746520fef5c604c8cb23e18986761337 Mon Sep 17 00:00:00 2001 From: z0rayy Date: Thu, 4 Jun 2026 16:41:07 +0700 Subject: [PATCH 03/36] style: penyempurnaan gaya komponen dan penyesuaian tata letak responsif --- groups/RODA/style.css | 333 +++++++++++++++++++++++++++++++++++++----- 1 file changed, 295 insertions(+), 38 deletions(-) diff --git a/groups/RODA/style.css b/groups/RODA/style.css index 2bc5542..653b8d6 100644 --- a/groups/RODA/style.css +++ b/groups/RODA/style.css @@ -1,48 +1,305 @@ -:root { - --brand-navy: #003150; - --brand-yellow: #feb401; - --text-main: #1e293b; - --text-soft: #64748b; - --bg-soft: #f8fafc; - --line: #e2e8f0; +.bg-pattern { + background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); } -* { box-sizing: border-box; } -html, body { margin: 0; padding: 0; } -body { font-family: "Roboto", Arial, sans-serif; color: var(--text-main); background: #fff; line-height: 1.6; } -.container { width: min(1100px, 92%); margin-inline: auto; } +/* Navbar & Accessibility Fixes */ +#nav-wrapper { + position: fixed !important; + top: 0; + left: 0; + right: 0; + z-index: 50; + backface-visibility: hidden; + -webkit-backface-visibility: hidden; + will-change: box-shadow; +} -.nav { background: var(--brand-navy); color: #fff; border-bottom: 4px solid var(--brand-yellow); padding: 14px 0; } -.brand { font-size: 1.1rem; font-weight: 700; letter-spacing: .02em; } +#nav-wrapper>div:first-child { + transform: translateZ(0); + -webkit-transform: translateZ(0); +} -.hero { position: relative; color: #fff; min-height: 220px; display: flex; align-items: flex-end; overflow: hidden; } -.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45); } -.hero-inner { position: relative; z-index: 1; padding: 36px 0; } -.badge { display: inline-block; background: var(--brand-yellow); color: #111827; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: .2rem .45rem; margin-bottom: 12px; } -.hero h1 { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.8rem); line-height: 1.2; } +@media (max-width: 1023px) { + #nav-wrapper>div:first-child { + min-height: 0 !important; + max-height: none; + } +} -.layout { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0 4rem; } -@media (min-width: 1024px) { .layout { grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); } } +html { + scroll-behavior: smooth; +} -.meta { font-size: .78rem; text-transform: uppercase; color: #475569; display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-bottom: 1rem; } -.cover { background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 1.5rem; } -.cover img { width: 100%; height: auto; display: block; } +.ticker-wrap { + mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%); + -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%); +} -.article-body > * + * { margin-top: 1.1em; } -.article-body h2 { font-size: 1.35rem; margin: 1.6em 0 .5em; } -.article-body h3 { font-size: 1.1rem; margin: 1.4em 0 .4em; } -.article-body p { margin: 0 0 1em; } -.article-body ul, .article-body ol { padding-left: 1.4rem; } -.article-body blockquote { border-left: 4px solid #005eb8; background: #eef6ff; padding: .8rem 1rem; color: #334155; } -.article-body a { color: #005eb8; } -.article-body img { max-width: 100%; border-radius: 8px; } -.article-body code { background: #f1f5f9; padding: .1em .35em; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; } +.ticker-track { + display: inline-flex; + white-space: nowrap; + min-width: max-content; + animation: tickerMove 30s linear infinite; + will-change: transform; +} -.note { border: 1px solid var(--line); background: var(--bg-soft); padding: 1rem; } -.note h3 { margin: 0 0 .5rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: #475569; } +.ticker-wrap:hover .ticker-track { + animation-play-state: paused; +} -.footer { margin-top: 2rem; background: var(--brand-navy); color: #fff; border-top: 4px solid var(--brand-yellow); } -.footer-inner { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: 1rem 0; } -.footer-logo { height: 28px; width: auto; } -.footer-ornament { width: 100%; display: block; opacity: .9; } +@keyframes tickerMove { + 0% { + transform: translateX(0); + } + + 100% { + transform: translateX(-50%); + } +} + +/* Responsive animation timing */ +@media (max-width: 768px) { + .ticker-track { + animation-duration: 25s; + } +} + +@media (min-width: 1366px) { + .ticker-track { + animation-duration: 35s; + } +} + +.line-clamp-1 { + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 1; +} + +.line-clamp-2 { + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; +} + +.line-clamp-3 { + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 3; +} + +.reveal { + opacity: 1; + transform: none; +} + +.reveal-ready .reveal { + opacity: 0; + transform: translateY(24px); + transition: opacity 0.65s ease, transform 0.65s ease; +} + +.reveal-ready .reveal.is-visible { + opacity: 1; + transform: translateY(0); +} + +@media (prefers-reduced-motion: reduce) { + html { + scroll-behavior: auto; + } + + .ticker-track { + animation: none; + } + + .reveal { + opacity: 1; + transform: none; + transition: none; + } +} + +/* Dosen grid: subgrid rows agar header & footer setiap card sejajar */ +@media (min-width: 1024px) { + #dosen-grid { + grid-template-rows: auto auto; + } + #dosen-grid > a { + grid-row: span 2; + display: grid; + grid-template-rows: subgrid; + } + /* White section: flex column so expertise sits at top, rank/link pinned to bottom */ + #dosen-grid > a > div:last-child { + display: flex !important; + flex-direction: column !important; + padding-top: 1rem !important; + } + #dosen-grid > a > div:last-child > div:last-child { + margin-top: auto; + } +} + +/* Custom responsive breakpoints - overriding Tailwind CDN defaults */ +/* Mobile: 390px and up */ +@media (min-width: 390px) { + body { + font-size: 14px; + } +} + +/* Tablet: 768px and up */ +@media (min-width: 768px) { + #kbk-card-grid { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } +} + +/* Laptop/Desktop: 1024px and up */ +@media (min-width: 1024px) { + nav.bg-\[#feb401\] { + display: block !important; + } + + #lang-toggle-btn { + display: flex !important; + } + + .hidden.lg\:flex { + display: flex !important; + } + + #kbk-card-grid { + grid-template-columns: repeat(4, minmax(0, 1fr)); + } + + #dosen-grid { + grid-template-columns: repeat(4, minmax(0, 1fr)); + } + + #riset-grid { + grid-template-columns: repeat(3, minmax(0, 1fr)); + } +} + +/* Desktop: 1366px and up */ +@media (min-width: 1366px) { + #kbk-card-grid { + grid-template-columns: repeat(4, minmax(0, 1fr)); + } + + #riset-grid { + grid-template-columns: repeat(3, minmax(0, 1fr)); + } + + #dosen-grid { + grid-template-columns: repeat(4, minmax(0, 1fr)); + } +} + +/* Extra Large Desktop: 1920px and up */ +@media (min-width: 1920px) { + body { + font-size: 16px; + } +} + +/* ===== MEGA MENU STYLES FROM LIMAEM ===== */ +.mega-panel { + opacity: 0; + visibility: hidden; + transition: opacity 0.2s ease, visibility 0.2s ease; + position: absolute; + top: 100%; + left: 0; + right: 0; +} + +.mega-panel.active { + opacity: 1; + visibility: visible; +} + +#mega-overlay { + opacity: 0; + visibility: hidden; + transition: opacity 0.2s ease, visibility 0.2s ease; + pointer-events: none; +} + +#mega-overlay.active { + opacity: 1; + visibility: visible; + pointer-events: auto; +} + +.mega-link-card { + display: flex; + align-items: flex-start; + gap: 1rem; + padding: 1rem; + border-radius: 0.75rem; + border: 1px solid #e2e8f0; + background: white; + transition: all 0.2s ease; +} + +.mega-link-card:hover { + border-color: #3b82f6; + box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15); + transform: translateY(-2px); +} + +.mega-link-icon { + width: 2.5rem; + height: 2.5rem; + border-radius: 0.5rem; + display: flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + transition: all 0.2s ease; +} + +.nav-menu-btn.active { + background: rgba(255, 255, 255, 0.9); + color: #1e40af; +} + +.nav-menu-btn:hover { + background: rgba(255, 255, 255, 0.8); +} + +#main-nav { + position: relative; +} + +#mega-menu-container { + position: absolute; + top: 100%; + left: 0; + right: 0; + pointer-events: none; +} + +#mega-menu-container .mega-panel { + pointer-events: auto; +} + +.nav-menu-item { + position: relative; +} + +.nav-menu-item::after { + content: ''; + position: absolute; + bottom: -12px; + left: 0; + right: 0; + height: 12px; +} From f27b2a901ae0f5b94eb42914da48b0dfbeabb26f Mon Sep 17 00:00:00 2001 From: z0rayy Date: Thu, 4 Jun 2026 16:41:39 +0700 Subject: [PATCH 04/36] feat: integrasi konfigurasi environment proxy pada antarmuka utama --- groups/RODA/index.html | 2572 +++++++++++++++++++++++++--------------- 1 file changed, 1615 insertions(+), 957 deletions(-) diff --git a/groups/RODA/index.html b/groups/RODA/index.html index 720a508..96aa64b 100644 --- a/groups/RODA/index.html +++ b/groups/RODA/index.html @@ -1,302 +1,94 @@ - - + + + - Group 08 – RODA | Informatika UNTAN - - - - + Sorotan dan Prestasi Karya Mahasiswa | Informatika UNTAN + + + - + + + - - + + -
- Beranda - - - - - - - - - - - -
- Fasilitas - -
- - -
- Karya & - Agenda - -
- - - + +
+
+ BERANDA / RISET & KBK
-
-
-
- Tugas Halaman Statis -

Riset & Kelompok Bidang Keahlian (KBK)

-

Kelompok 08 — RODA  ·  Informatika UNTAN 2026

+ +
+
+
+ Riset & Kelompok Bidang Keahlian
-
- -

Tulis konten halaman kelompok di sini.

-

Subjudul

-

Gunakan paragraf, list, tabel, gambar, dan elemen konten lainnya.

- +

+ Riset & Kelompok Bidang Keahlian +

+

+ Kenali Kelompok Bidang Keahlian (KBK) kami. Jelajahi riset unggulan dosen dan mahasiswa di bidang + Kecerdasan Buatan (AI), Rekayasa Perangkat Lunak, hingga IoT +

+
-
+ + + +
+ +
+
+
+ Kelompok Bidang Keahlian +

+ 4 Pilar Keilmuan Informatika UNTAN

+

Setiap KBK berfokus pada + topik riset spesifik, dipimpin dosen berpengalaman, dan terbuka untuk kolaborasi.

+
-
+
+ +
+
+ +
+

Kecerdasan Buatan

+

Sistem cerdas berbasis AI, deep + learning, vision, dan NLP untuk solusi nyata.

+
+ Vision + NLP +
+
+
+
+ AS
+
+ RH
+
+ +6
+
+ +
+
+ + +
+
+ +
+

Rekayasa Perangkat + Lunak

+

Metodologi, arsitektur, dan + kualitas perangkat lunak modern serta DevOps.

+
+ DevOps + Agile +
+
+
+
+ DW
+
+ PN
+
+ +8
+
+ +
+
+ + +
+
+ +
+

Jaringan & Keamanan +

+

Infrastruktur jaringan handal, + keamanan siber, dan teknologi Cloud/IoT.

+
+ Cybersec + IoT +
+
+
+
+ HF
+
+ SA
+
+ +5
+
+ +
+
+ + +
+
+ +
+

Sistem Informasi

+

Manajemen informasi, GIS, big + data, dan sistem pendukung keputusan.

+
+ Big + Data + GIS +
+
+
+
+ LP
+
+ FN
+
+ +4
+
+ +
+
+
+ +
+
+
+
+ + KBK Insight +
+

+

+
+

+
+
+
+
+

+

+
+
+
+
+
+
+
+

+

+
+
+

+

+
+
+

+

+
+
+
+

+
+
+
+
+
+
+ + + +
+
+
+
+
+
400+
+

+ Hasil Penelitian

+
+
+
7.555
+

Skor SINTA

+
+
+
33
+

Dosen Homebase

+
+
+
10+
+

Kerjasama Aktif

+
+
+
518
+

Mahasiswa Aktif

+
+
+
+
+ + +
+
+
+
+ Academic + Achievements +

Publikasi & Penelitian Terkini

+
+
+ + +
+ +
+ + + +
+
+
+ + + + + + +
+ +
+ Tampilkan: +
+ + + + + +
+
+
+
+ Menghitung data... +
+
+
+ +
+ +
+ + +
+
+ + +
+
+
+ Experts + Directory +

+ Peneliti & Dosen per Kelompok Keahlian

+

Bagian ini menampilkan + ketua setiap KBK. Pilih kartu untuk melihat dosen lain di kelompok keahlian tersebut.

+
+ +
+ +
+
+
+ + +
+
+
+
+

Laboratorium Pendukung Riset

+

5 laboratorium modern dengan 93 unit PC All-in-One + yang mendukung kegiatan riset strategis dan pengembangan teknologi dosen serta mahasiswa. +

+
+
+
+
05
+
Labs Modern +
+
+
+
+ +
+ +
+
+
+ +
+
+ + 25 PC + + + 25 Mahasiswa + +
+
+

Lab Komputer & Pemrograman

+

LAB/D48 — Kepala: Helen Sastypratiwi, S.T., M.Eng.

+

Mendukung mata kuliah pemrograman dasar hingga lanjut, pengembangan aplikasi web, mobile, dan rekayasa perangkat lunak.

+
+ VS Code + Node.js + Android Studio + Python 3 +
+
+ + +
+
+
+ +
+
+

Lab Jaringan, Keamanan & IoT

+

LAB/02 — Kepala: Heri Priyanto, ST., MT.

+

Sarana praktik jaringan, konfigurasi router/switch, keamanan siber, administrasi sistem, dan pengembangan perangkat IoT.

+
+ Cisco Packet + Wireshark + Raspberry Pi +
+
+ + +
+
+
+ +
+
+ + 25 PC + + + 25 Mahasiswa + +
+
+

Lab Rekayasa PL & Data

+

LAB/03 — Kepala: Rudy Dwi Nyoto, ST., M.Eng.

+

Mendukung pembelajaran basis data, pemodelan data, data warehousing, dan analitik data skala besar.

+
+ MySQL + PostgreSQL + MongoDB + RapidMiner +
+
+ + +
+
+
+ +
+
+ + 21 PC + + + 21 Mahasiswa + +
+
+

Lab Teknologi & Sistem Informasi

+

LAB/04 — Kepala: Anggi Srimurdianti Sukamto, ST., MT.

+

Merancang arsitektur sistem informasi, memodelkan proses bisnis digital, serta menumbuhkan jiwa technopreneurship.

+
+ Bizagi + Power BI + Figma +
+
+ + +
+
+
+ +
+
+ + 22 PC + + + 22 Mahasiswa + +
+
+

Lab Komputasi & Kecerdasan Buatan

+

LAB/05 — Kepala: Tursina, ST, M.Cs.

+

Pusat riset machine learning, deep learning, computer vision, NLP, dan pengembangan sistem kecerdasan buatan berbasis data.

+
+ TensorFlow + PyTorch + OpenCV + Jupyter +
+
+
+
+
+ + +
+
+
+ +
+

Tertarik Berkolaborasi dengan KBK Kami?

+

+ Kami membuka peluang kerja sama riset lintas institusi, kemitraan strategis dengan industri, serta + riset mahasiswa (skripsi/tesis) di bawah supervisi ahli kami. +

+ +
+
+ + + +

@@ -1219,6 +1067,815 @@ style="object-position: bottom;">

+ + + + - - - + + \ No newline at end of file From 3dd522de3d7b8ef1a180c4eecfcdb07ed722dd0a Mon Sep 17 00:00:00 2001 From: z0rayy Date: Thu, 4 Jun 2026 16:41:58 +0700 Subject: [PATCH 05/36] chore: update package-lock.json dependencies --- package-lock.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index a16578c..43e70d0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -917,7 +917,6 @@ "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, From 123ce1be047b89ece1e7e51cf6d0444004261736 Mon Sep 17 00:00:00 2001 From: Rayhan Date: Thu, 4 Jun 2026 09:55:17 +0000 Subject: [PATCH 06/36] Update package-lock.json --- package-lock.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package-lock.json b/package-lock.json index 43e70d0..a16578c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -917,6 +917,7 @@ "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, From 263ffd1924d170501f9f06daf7fc5b0bc306a501 Mon Sep 17 00:00:00 2001 From: z0rayy Date: Thu, 4 Jun 2026 17:15:03 +0700 Subject: [PATCH 07/36] feat: penyesuaian hamburger menu dan penyempurnaan navigasi responsif --- groups/RODA/index.html | 136 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) diff --git a/groups/RODA/index.html b/groups/RODA/index.html index 96aa64b..cb8ea85 100644 --- a/groups/RODA/index.html +++ b/groups/RODA/index.html @@ -430,6 +430,142 @@
+ + +
From fbdcbe6472741045f9a3dd539e4240f4ec914d90 Mon Sep 17 00:00:00 2001 From: z0rayy Date: Thu, 4 Jun 2026 17:29:18 +0700 Subject: [PATCH 08/36] feat: menghapus breadcrumb dan menambahkan timestamp last updated di section publikasi & penelitian terkini --- groups/RODA/index.html | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/groups/RODA/index.html b/groups/RODA/index.html index cb8ea85..d05912c 100644 --- a/groups/RODA/index.html +++ b/groups/RODA/index.html @@ -565,15 +565,7 @@
- - -
-
- BERANDA / RISET & KBK -
-
- +
@@ -927,6 +919,12 @@
+

This page was last updated on:

+ +
Menghitung data... From 46a7921bf0d8bbcae71cf5f1f8dec47f8ff1302a Mon Sep 17 00:00:00 2001 From: Raditya_Indra_Putranto Date: Thu, 4 Jun 2026 17:35:25 +0700 Subject: [PATCH 09/36] chore: configure Netlify deployment --- README.md | 10 ++++++++++ netlify.toml | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 netlify.toml diff --git a/README.md b/README.md index 50cdb3e..c8edaee 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,16 @@ Buka URL dari Vite (default: `http://localhost:5173`) lalu akses launcher di `/` | `npm run build` | Build static output ke folder `dist` | | `npm run preview` | Preview hasil build | +## Deploy Netlify + +Project ini sudah punya konfigurasi Netlify di `netlify.toml`. + +Saat membuat site di Netlify: +- Repository: `GuavaPopper/PPL_Staging` +- Branch deploy: `Staging` +- Build command: `npm run build` +- Publish directory: `dist` + ## Struktur Folder ``` diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..0cab1ff --- /dev/null +++ b/netlify.toml @@ -0,0 +1,6 @@ +[build] + command = "npm run build" + publish = "dist" + +[build.environment] + NODE_VERSION = "22" From 6cb0ffc571adce167c4c1c6205fd64d084efb307 Mon Sep 17 00:00:00 2001 From: z0rayy Date: Thu, 4 Jun 2026 17:40:01 +0700 Subject: [PATCH 10/36] feat: menyesuaikan kembali untuk fitur bilingual --- groups/RODA/index.html | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/groups/RODA/index.html b/groups/RODA/index.html index d05912c..421a461 100644 --- a/groups/RODA/index.html +++ b/groups/RODA/index.html @@ -919,11 +919,7 @@
-

This page was last updated on:

- +

This page was last updated on:

@@ -972,7 +968,7 @@

Laboratorium Pendukung Riset

-

5 laboratorium modern dengan 93 unit PC All-in-One +

5 laboratorium modern dengan 93 unit PC All-in-One yang mendukung kegiatan riset strategis dan pengembangan teknologi dosen serta mahasiswa.

@@ -1384,7 +1380,10 @@ ctaBtn: 'Hubungi Kami', viewAll: 'Lihat Semua', facultyDirectory: 'Direktori Dosen', - expertise: 'Keahlian' + expertise: 'Keahlian', + lastUpdatedText: 'Halaman ini terakhir diperbarui pada: ', + showingPubs: 'Menampilkan {0} dari {1} publikasi', + labDesc: '5 laboratorium modern dengan 93 unit PC All-in-One yang mendukung kegiatan riset strategis dan pengembangan teknologi dosen serta mahasiswa.' }, en: { info: 'LATEST INFO', @@ -1440,7 +1439,10 @@ ctaBtn: 'Contact Us', viewAll: 'View All', facultyDirectory: 'Faculty Directory', - expertise: 'Expertise' + expertise: 'Expertise', + lastUpdatedText: 'This page was last updated on: ', + showingPubs: 'Showing {0} of {1} publications', + labDesc: '5 modern laboratories with 93 All-in-One PCs supporting strategic research and technological development for faculty and students.' } }; @@ -1702,7 +1704,8 @@ // Update info jumlah data yang ditampilkan const countInfo = document.getElementById('riset-count-info'); if (countInfo) { - countInfo.innerText = `Menampilkan ${itemsToShow.length} dari ${filteredItems.length} publikasi`; + const template = translations[currentLang].showingPubs || `Menampilkan {0} dari {1} publikasi`; + countInfo.innerText = template.replace('{0}', itemsToShow.length).replace('{1}', filteredItems.length); } // Tampilkan/Sembunyikan tombol "Lihat Semua" berdasarkan sisa data @@ -1926,6 +1929,11 @@ renderKbkInsight(); renderRisetCards(); renderDosenCards(); + + const lastUpdatedEl = document.getElementById("last-updated"); + if (lastUpdatedEl) { + lastUpdatedEl.innerHTML = new Date(document.lastModified).toLocaleString(lang === 'id' ? 'id-ID' : 'en-US'); + } }; window.addEventListener('error', (event) => { From c64abd8083fa419b028992110a058216945e0a4a Mon Sep 17 00:00:00 2001 From: Raditya_Indra_Putranto Date: Thu, 4 Jun 2026 17:46:03 +0700 Subject: [PATCH 11/36] fix: include static pages in Netlify build --- package.json | 3 +- scripts/verify-netlify-build.mjs | 48 +++++++++++++++++++++++++++ vite.config.js | 57 ++++++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+), 1 deletion(-) create mode 100644 scripts/verify-netlify-build.mjs create mode 100644 vite.config.js diff --git a/package.json b/package.json index 31e8272..1374213 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "dev": "vite", "build": "vite build", - "preview": "vite preview" + "preview": "vite preview", + "test:netlify-build": "node scripts/verify-netlify-build.mjs" }, "devDependencies": { "vite": "^7.1.0" diff --git a/scripts/verify-netlify-build.mjs b/scripts/verify-netlify-build.mjs new file mode 100644 index 0000000..18535d5 --- /dev/null +++ b/scripts/verify-netlify-build.mjs @@ -0,0 +1,48 @@ +import { existsSync, readdirSync, statSync } from 'node:fs'; +import path from 'node:path'; + +const root = process.cwd(); +const dist = path.join(root, 'dist'); +const excludedDirs = new Set(['.git', 'dist', 'node_modules']); + +function collectFiles(dir, predicate = () => true) { + const entries = readdirSync(dir, { withFileTypes: true }); + const files = []; + + for (const entry of entries) { + const fullPath = path.join(dir, entry.name); + + if (entry.isDirectory()) { + if (!excludedDirs.has(entry.name)) { + files.push(...collectFiles(fullPath, predicate)); + } + continue; + } + + if (entry.isFile() && predicate(fullPath)) { + files.push(fullPath); + } + } + + return files; +} + +if (!existsSync(dist) || !statSync(dist).isDirectory()) { + throw new Error('Missing dist directory. Run `npm run build` first.'); +} + +const missingHtmlFiles = collectFiles(root, (file) => file.endsWith('.html')) + .map((file) => path.relative(root, file)) + .filter((relativePath) => !existsSync(path.join(dist, relativePath))); + +const missingAssetFiles = collectFiles(path.join(root, 'assets')) + .map((file) => path.relative(root, file)) + .filter((relativePath) => !existsSync(path.join(dist, relativePath))); + +const missingFiles = [...missingHtmlFiles, ...missingAssetFiles]; + +if (missingFiles.length > 0) { + throw new Error(`Missing built files:\n${missingFiles.join('\n')}`); +} + +console.log('All source HTML and static asset files are present in dist.'); diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..891b74f --- /dev/null +++ b/vite.config.js @@ -0,0 +1,57 @@ +import { cpSync, existsSync, readdirSync } from 'node:fs'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { defineConfig } from 'vite'; + +const root = path.dirname(fileURLToPath(import.meta.url)); +const excludedDirs = new Set(['.git', 'dist', 'node_modules']); + +function collectHtmlInputs(dir) { + const inputs = {}; + const entries = readdirSync(dir, { withFileTypes: true }); + + for (const entry of entries) { + const fullPath = path.join(dir, entry.name); + + if (entry.isDirectory()) { + if (!excludedDirs.has(entry.name)) { + Object.assign(inputs, collectHtmlInputs(fullPath)); + } + continue; + } + + if (entry.isFile() && entry.name.endsWith('.html')) { + const relativePath = path.relative(root, fullPath); + const inputName = relativePath + .replace(/\.html$/, '') + .replace(/[^a-zA-Z0-9_-]+/g, '_'); + + inputs[inputName] = fullPath; + } + } + + return inputs; +} + +function copyStaticAssets() { + return { + name: 'copy-static-assets', + closeBundle() { + const source = path.join(root, 'assets'); + const destination = path.join(root, 'dist', 'assets'); + + if (existsSync(source)) { + cpSync(source, destination, { recursive: true }); + } + }, + }; +} + +export default defineConfig({ + plugins: [copyStaticAssets()], + build: { + rollupOptions: { + input: collectHtmlInputs(root), + }, + }, +}); From d1a80838a5ea4ece59f9bd1d1dfd24a83947ec5e Mon Sep 17 00:00:00 2001 From: z0rayy Date: Thu, 4 Jun 2026 17:55:01 +0700 Subject: [PATCH 12/36] fix: memperbarui tautan kartu dosen KBK ke direktori resmi --- groups/RODA/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groups/RODA/index.html b/groups/RODA/index.html index 421a461..377afc9 100644 --- a/groups/RODA/index.html +++ b/groups/RODA/index.html @@ -1764,7 +1764,7 @@ const rank = currentLang === 'id' ? leader.badge_id : leader.badge_en; return ` - +
From 6f1e7d744b12a7c8529da1c134a8b8e6d76a1a0b Mon Sep 17 00:00:00 2001 From: Raditya_Indra_Putranto Date: Thu, 4 Jun 2026 18:19:11 +0700 Subject: [PATCH 13/36] fix: improve RODA dosen cards on mobile --- groups/RODA/index.html | 6 +++--- package.json | 3 ++- scripts/verify-mobile-layout.mjs | 31 +++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 scripts/verify-mobile-layout.mjs diff --git a/groups/RODA/index.html b/groups/RODA/index.html index 377afc9..5fa7b93 100644 --- a/groups/RODA/index.html +++ b/groups/RODA/index.html @@ -955,7 +955,7 @@ ketua setiap KBK. Pilih kartu untuk melihat dosen lain di kelompok keahlian tersebut.

-
+
@@ -1785,7 +1785,7 @@ ${rank.split(' ').join('
')}
- + ${translations[currentLang].viewMembers} @@ -2135,4 +2135,4 @@ - \ No newline at end of file + diff --git a/package.json b/package.json index 1374213..52d04a1 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "dev": "vite", "build": "vite build", "preview": "vite preview", - "test:netlify-build": "node scripts/verify-netlify-build.mjs" + "test:netlify-build": "node scripts/verify-netlify-build.mjs", + "test:mobile-layout": "node scripts/verify-mobile-layout.mjs" }, "devDependencies": { "vite": "^7.1.0" diff --git a/scripts/verify-mobile-layout.mjs b/scripts/verify-mobile-layout.mjs new file mode 100644 index 0000000..615c106 --- /dev/null +++ b/scripts/verify-mobile-layout.mjs @@ -0,0 +1,31 @@ +import { readFileSync } from 'node:fs'; + +const rodaPage = readFileSync('groups/RODA/index.html', 'utf8'); + +const gridMatch = rodaPage.match(/
]*>\s*\$\{translations\[currentLang\]\.viewMembers\}/); + +if (!viewMembersMatch) { + throw new Error('Missing view members link in dosen card template.'); +} + +if (viewMembersMatch[1].split(/\s+/).includes('whitespace-nowrap')) { + throw new Error('View members link must be allowed to wrap instead of clipping on narrow cards.'); +} + +console.log('Mobile layout classes keep dosen cards readable on phone viewports.'); From 11b8e518ac5a61d6623335ce36cf425af2cdc0a9 Mon Sep 17 00:00:00 2001 From: Raditya_Indra_Putranto Date: Thu, 4 Jun 2026 18:23:57 +0700 Subject: [PATCH 14/36] chore: remove verification scripts --- package.json | 4 +-- scripts/verify-mobile-layout.mjs | 31 --------------------- scripts/verify-netlify-build.mjs | 48 -------------------------------- 3 files changed, 1 insertion(+), 82 deletions(-) delete mode 100644 scripts/verify-mobile-layout.mjs delete mode 100644 scripts/verify-netlify-build.mjs diff --git a/package.json b/package.json index 52d04a1..31e8272 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,7 @@ "scripts": { "dev": "vite", "build": "vite build", - "preview": "vite preview", - "test:netlify-build": "node scripts/verify-netlify-build.mjs", - "test:mobile-layout": "node scripts/verify-mobile-layout.mjs" + "preview": "vite preview" }, "devDependencies": { "vite": "^7.1.0" diff --git a/scripts/verify-mobile-layout.mjs b/scripts/verify-mobile-layout.mjs deleted file mode 100644 index 615c106..0000000 --- a/scripts/verify-mobile-layout.mjs +++ /dev/null @@ -1,31 +0,0 @@ -import { readFileSync } from 'node:fs'; - -const rodaPage = readFileSync('groups/RODA/index.html', 'utf8'); - -const gridMatch = rodaPage.match(/
]*>\s*\$\{translations\[currentLang\]\.viewMembers\}/); - -if (!viewMembersMatch) { - throw new Error('Missing view members link in dosen card template.'); -} - -if (viewMembersMatch[1].split(/\s+/).includes('whitespace-nowrap')) { - throw new Error('View members link must be allowed to wrap instead of clipping on narrow cards.'); -} - -console.log('Mobile layout classes keep dosen cards readable on phone viewports.'); diff --git a/scripts/verify-netlify-build.mjs b/scripts/verify-netlify-build.mjs deleted file mode 100644 index 18535d5..0000000 --- a/scripts/verify-netlify-build.mjs +++ /dev/null @@ -1,48 +0,0 @@ -import { existsSync, readdirSync, statSync } from 'node:fs'; -import path from 'node:path'; - -const root = process.cwd(); -const dist = path.join(root, 'dist'); -const excludedDirs = new Set(['.git', 'dist', 'node_modules']); - -function collectFiles(dir, predicate = () => true) { - const entries = readdirSync(dir, { withFileTypes: true }); - const files = []; - - for (const entry of entries) { - const fullPath = path.join(dir, entry.name); - - if (entry.isDirectory()) { - if (!excludedDirs.has(entry.name)) { - files.push(...collectFiles(fullPath, predicate)); - } - continue; - } - - if (entry.isFile() && predicate(fullPath)) { - files.push(fullPath); - } - } - - return files; -} - -if (!existsSync(dist) || !statSync(dist).isDirectory()) { - throw new Error('Missing dist directory. Run `npm run build` first.'); -} - -const missingHtmlFiles = collectFiles(root, (file) => file.endsWith('.html')) - .map((file) => path.relative(root, file)) - .filter((relativePath) => !existsSync(path.join(dist, relativePath))); - -const missingAssetFiles = collectFiles(path.join(root, 'assets')) - .map((file) => path.relative(root, file)) - .filter((relativePath) => !existsSync(path.join(dist, relativePath))); - -const missingFiles = [...missingHtmlFiles, ...missingAssetFiles]; - -if (missingFiles.length > 0) { - throw new Error(`Missing built files:\n${missingFiles.join('\n')}`); -} - -console.log('All source HTML and static asset files are present in dist.'); From 793a9e1dbc2cc4e78fba1d65dbb17d8adc71329c Mon Sep 17 00:00:00 2001 From: Raditya_Indra_Putranto Date: Thu, 4 Jun 2026 18:36:25 +0700 Subject: [PATCH 15/36] fix: stack RODA KBK cards on mobile --- groups/RODA/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groups/RODA/index.html b/groups/RODA/index.html index 5fa7b93..e87b2b8 100644 --- a/groups/RODA/index.html +++ b/groups/RODA/index.html @@ -611,7 +611,7 @@ topik riset spesifik, dipimpin dosen berpengalaman, dan terbuka untuk kolaborasi.

-
+
From 97a7cd1369d580429a82c6ad5af655eeb47bf6ee Mon Sep 17 00:00:00 2001 From: Raditya_Indra_Putranto Date: Thu, 4 Jun 2026 18:44:26 +0700 Subject: [PATCH 16/36] fix: improve RODA publication cards on mobile --- groups/RODA/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/groups/RODA/index.html b/groups/RODA/index.html index e87b2b8..87c4cbc 100644 --- a/groups/RODA/index.html +++ b/groups/RODA/index.html @@ -928,7 +928,7 @@
-
+
@@ -1728,9 +1728,9 @@ } grid.innerHTML = itemsToShow.map((item) => ` -
+
- ${currentLang === 'id' ? item.badge_id : item.badge_en} + ${currentLang === 'id' ? item.badge_id : item.badge_en}

${currentLang === 'id' ? item.title_id : item.title_en}

${item.authors}

From 1d5b807fc7f2a80f024c5d571913755b8d1a2bb3 Mon Sep 17 00:00:00 2001 From: Raditya_Indra_Putranto Date: Thu, 4 Jun 2026 18:53:02 +0700 Subject: [PATCH 17/36] fix: proxy dashboard through Netlify function --- netlify.toml | 9 +++++ netlify/functions/dashboard.js | 68 ++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 netlify/functions/dashboard.js diff --git a/netlify.toml b/netlify.toml index 0cab1ff..2a8fe6c 100644 --- a/netlify.toml +++ b/netlify.toml @@ -4,3 +4,12 @@ [build.environment] NODE_VERSION = "22" + +[functions] + directory = "netlify/functions" + node_bundler = "esbuild" + +[[redirects]] + from = "/api/dashboard" + to = "/.netlify/functions/dashboard" + status = 200 diff --git a/netlify/functions/dashboard.js b/netlify/functions/dashboard.js new file mode 100644 index 0000000..c9fad0d --- /dev/null +++ b/netlify/functions/dashboard.js @@ -0,0 +1,68 @@ +const DEFAULT_DASHBOARD_URL = 'https://dashboard.informatika.untan.ac.id/index.php?penelitian'; +const CACHE_TTL_MS = 5 * 60 * 1000; + +let dashboardCache = { + html: '', + timestamp: 0, +}; + +function getDashboardUrl() { + return process.env.DASHBOARD_TARGET_URL || DEFAULT_DASHBOARD_URL; +} + +function response(statusCode, body, extraHeaders = {}) { + return { + statusCode, + headers: { + 'Content-Type': 'text/html; charset=utf-8', + 'Cache-Control': 'public, max-age=60, stale-while-revalidate=300', + ...extraHeaders, + }, + body, + }; +} + +exports.handler = async () => { + const now = Date.now(); + + if (dashboardCache.html && now - dashboardCache.timestamp < CACHE_TTL_MS) { + return response(200, dashboardCache.html, { 'X-Cache': 'HIT' }); + } + + const controller = new AbortController(); + const timeoutId = setTimeout(() => controller.abort(), 12000); + + try { + const dashboardResponse = await fetch(getDashboardUrl(), { + signal: controller.signal, + headers: { + 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0 Safari/537.36', + }, + }); + + if (!dashboardResponse.ok) { + throw new Error(`HTTP_ERROR_${dashboardResponse.status}`); + } + + const html = await dashboardResponse.text(); + dashboardCache = { html, timestamp: Date.now() }; + + return response(200, html, { 'X-Cache': 'MISS' }); + } catch (error) { + if (dashboardCache.html) { + return response(200, dashboardCache.html, { 'X-Cache': 'STALE' }); + } + + return { + statusCode: 502, + headers: { + 'Content-Type': 'text/plain; charset=utf-8', + }, + body: error && error.name === 'AbortError' + ? 'DASHBOARD_FETCH_TIMEOUT' + : 'DASHBOARD_FETCH_FAILED', + }; + } finally { + clearTimeout(timeoutId); + } +}; From 3b749e4c994dcb5f93c96748ef9372ba3bacab3d Mon Sep 17 00:00:00 2001 From: Raditya_Indra_Putranto Date: Thu, 4 Jun 2026 19:03:28 +0700 Subject: [PATCH 18/36] fix: use RODA dashboard proxy config --- groups/RODA/index.html | 15 ++++++-- netlify.toml | 9 ----- netlify/functions/dashboard.js | 68 ---------------------------------- 3 files changed, 12 insertions(+), 80 deletions(-) delete mode 100644 netlify/functions/dashboard.js diff --git a/groups/RODA/index.html b/groups/RODA/index.html index 87c4cbc..1fd1020 100644 --- a/groups/RODA/index.html +++ b/groups/RODA/index.html @@ -1541,6 +1541,11 @@ return rows; } + function shouldUseLocalDashboardProxy() { + const hostname = window.location.hostname; + return hostname === 'localhost' || hostname === '127.0.0.1' || hostname === ''; + } + async function fetchDashboardData() { const grid = document.getElementById('riset-grid'); if (grid) { @@ -1557,10 +1562,10 @@ ? window.APP_CONFIG.dashboardProxyTemplates.filter(Boolean) : []; - // Sumber utama: endpoint proxy lokal (server.js fetch server-side, tanpa CORS). - const proxyServers = [() => '/api/dashboard']; + // Endpoint server.js hanya ada saat development lokal. + const proxyServers = shouldUseLocalDashboardProxy() ? [() => '/api/dashboard'] : []; - // Fallback: proxy publik (butuh targetUrl untuk membangun URL). + // Deployment static memakai proxy publik karena tidak menjalankan server.js. if (targetUrl) { proxyTemplates.forEach((template) => { proxyServers.push((url) => template @@ -1570,6 +1575,10 @@ }); } + if (!proxyServers.length) { + throw new Error('DASHBOARD_PROXY_NOT_CONFIGURED'); + } + let lastError = null; for (const getProxyUrl of proxyServers) { diff --git a/netlify.toml b/netlify.toml index 2a8fe6c..0cab1ff 100644 --- a/netlify.toml +++ b/netlify.toml @@ -4,12 +4,3 @@ [build.environment] NODE_VERSION = "22" - -[functions] - directory = "netlify/functions" - node_bundler = "esbuild" - -[[redirects]] - from = "/api/dashboard" - to = "/.netlify/functions/dashboard" - status = 200 diff --git a/netlify/functions/dashboard.js b/netlify/functions/dashboard.js deleted file mode 100644 index c9fad0d..0000000 --- a/netlify/functions/dashboard.js +++ /dev/null @@ -1,68 +0,0 @@ -const DEFAULT_DASHBOARD_URL = 'https://dashboard.informatika.untan.ac.id/index.php?penelitian'; -const CACHE_TTL_MS = 5 * 60 * 1000; - -let dashboardCache = { - html: '', - timestamp: 0, -}; - -function getDashboardUrl() { - return process.env.DASHBOARD_TARGET_URL || DEFAULT_DASHBOARD_URL; -} - -function response(statusCode, body, extraHeaders = {}) { - return { - statusCode, - headers: { - 'Content-Type': 'text/html; charset=utf-8', - 'Cache-Control': 'public, max-age=60, stale-while-revalidate=300', - ...extraHeaders, - }, - body, - }; -} - -exports.handler = async () => { - const now = Date.now(); - - if (dashboardCache.html && now - dashboardCache.timestamp < CACHE_TTL_MS) { - return response(200, dashboardCache.html, { 'X-Cache': 'HIT' }); - } - - const controller = new AbortController(); - const timeoutId = setTimeout(() => controller.abort(), 12000); - - try { - const dashboardResponse = await fetch(getDashboardUrl(), { - signal: controller.signal, - headers: { - 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0 Safari/537.36', - }, - }); - - if (!dashboardResponse.ok) { - throw new Error(`HTTP_ERROR_${dashboardResponse.status}`); - } - - const html = await dashboardResponse.text(); - dashboardCache = { html, timestamp: Date.now() }; - - return response(200, html, { 'X-Cache': 'MISS' }); - } catch (error) { - if (dashboardCache.html) { - return response(200, dashboardCache.html, { 'X-Cache': 'STALE' }); - } - - return { - statusCode: 502, - headers: { - 'Content-Type': 'text/plain; charset=utf-8', - }, - body: error && error.name === 'AbortError' - ? 'DASHBOARD_FETCH_TIMEOUT' - : 'DASHBOARD_FETCH_FAILED', - }; - } finally { - clearTimeout(timeoutId); - } -}; From 56c34eddc344080a3f06b21879b799f12ec58be2 Mon Sep 17 00:00:00 2001 From: Raditya_Indra_Putranto Date: Thu, 4 Jun 2026 19:12:21 +0700 Subject: [PATCH 19/36] fix: silence RODA dashboard proxy logs --- groups/RODA/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/groups/RODA/index.html b/groups/RODA/index.html index 1fd1020..d3d46c4 100644 --- a/groups/RODA/index.html +++ b/groups/RODA/index.html @@ -74,6 +74,7 @@ + @@ -1484,6 +1486,7 @@ if (error.message === 'EMPTY_RESPONSE') return 'Dashboard mengembalikan data kosong atau struktur halaman berubah.'; if (error.message === 'NO_ROWS_FOUND') return 'Data penelitian tidak ditemukan pada halaman dashboard.'; if (error.message === 'DASHBOARD_PROXY_NOT_CONFIGURED') return 'Proxy dashboard belum dikonfigurasi.'; + if (error.message === 'DASHBOARD_RUNTIME_FETCH_DISABLED') return 'Data publikasi belum tersedia pada build ini.'; if (error.message?.startsWith('HTTP_ERROR_')) return `Proxy merespons gagal (${error.message.replace('HTTP_ERROR_', 'HTTP ')}).`; return 'Gagal mengambil data. Server dashboard mungkin sedang sibuk atau memblokir akses.'; } @@ -1549,6 +1552,75 @@ return hostname === 'localhost' || hostname === '127.0.0.1' || hostname === ''; } + function isDashboardRuntimeFetchAllowed() { + const mode = window.APP_CONFIG?.dashboardRuntimeFetch; + return mode === true || mode === 'always' || (mode === 'local' && shouldUseLocalDashboardProxy()); + } + + function readEmbeddedDashboardHtml() { + const source = document.getElementById('roda-dashboard-html'); + if (!source) return ''; + + try { + return JSON.parse(source.textContent || '""') || ''; + } catch (error) { + return source.textContent || ''; + } + } + + function applyDashboardRows(rows) { + const newData = []; + rows.forEach((row) => { + const cols = row.querySelectorAll('td'); + if (cols.length >= 3) { + const indexVal = cols[0].innerText.trim(); + + // Mencari elemen judul (biasanya di dalam
atau ) + const linkEl = cols[1].querySelector('a'); + const titleEl = linkEl || cols[1].querySelector('b') || cols[1]; + const url = linkEl ? linkEl.getAttribute('href') : '#'; + const title = titleEl.innerText.trim(); + + // Skip jika baris ini adalah header atau bukan data penelitian (berdasarkan index atau judul) + if (isNaN(parseInt(indexVal)) || title === "Bidang Riset" || title === "Thn Jlh") { + return; + } + + // Mencari elemen penulis (biasanya di dalam tag dengan size 11px) + const authorsEl = cols[1].querySelector('font'); + const authors = authorsEl ? authorsEl.innerText.trim() : 'Peneliti Informatika'; + + // Tahun biasanya ada di kolom berikutnya + const year = cols[2]?.innerText.trim() || '2025'; + + const kbk = categorizeByKeywords(title); + const kbkInfo = kbkMeta[kbk]; + + newData.push({ + id: parseInt(indexVal) || (newData.length + 1), + kbk: kbk, + title_id: title, + title_en: title, + authors: authors, + year: year, + url: url, + venue: 'Dashboard Informatika', + badge_id: kbkInfo.label_id, + badge_en: kbkInfo.label_en + }); + } + }); + + if (!newData.length) { + throw new Error('NO_ROWS_FOUND'); + } + + risetData = newData; + isLoadingData = false; + renderRisetCards(); + updateStatPub(newData.length); + } + async function fetchDashboardData() { const grid = document.getElementById('riset-grid'); if (grid) { @@ -1560,6 +1632,22 @@ `; } + let lastError = null; + const embeddedHtml = readEmbeddedDashboardHtml(); + if (embeddedHtml) { + try { + applyDashboardRows(parseDashboardRows(embeddedHtml)); + return; + } catch (error) { + lastError = error; + } + } + + if (!isDashboardRuntimeFetchAllowed()) { + renderRisetFeedback('Pemuatan Data Gagal', getDashboardErrorMessage(lastError || new Error('DASHBOARD_RUNTIME_FETCH_DISABLED')), 'Coba Lagi', 'fetchDashboardData()'); + return; + } + const targetUrl = window.APP_CONFIG?.dashboardTargetUrl?.trim(); const proxyTemplates = Array.isArray(window.APP_CONFIG?.dashboardProxyTemplates) ? window.APP_CONFIG.dashboardProxyTemplates.filter(Boolean) @@ -1583,8 +1671,6 @@ return; } - let lastError = null; - for (const getProxyUrl of proxyServers) { const controller = new AbortController(); const timeoutId = setTimeout(() => controller.abort(), 15000); @@ -1600,58 +1686,8 @@ const responseData = await response.text(); const html = extractDashboardHtml(responseData); const rows = parseDashboardRows(html); - - const newData = []; - rows.forEach((row, index) => { - const cols = row.querySelectorAll('td'); - if (cols.length >= 3) { - const indexVal = cols[0].innerText.trim(); - - // Mencari elemen judul (biasanya di dalam atau ) - const linkEl = cols[1].querySelector('a'); - const titleEl = linkEl || cols[1].querySelector('b') || cols[1]; - const url = linkEl ? linkEl.getAttribute('href') : '#'; - const title = titleEl.innerText.trim(); - - // Skip jika baris ini adalah header atau bukan data penelitian (berdasarkan index atau judul) - if (isNaN(parseInt(indexVal)) || title === "Bidang Riset" || title === "Thn Jlh") { - return; - } - - // Mencari elemen penulis (biasanya di dalam tag dengan size 11px) - const authorsEl = cols[1].querySelector('font'); - const authors = authorsEl ? authorsEl.innerText.trim() : 'Peneliti Informatika'; - - // Tahun biasanya ada di kolom berikutnya - const year = cols[2]?.innerText.trim() || '2025'; - - const kbk = categorizeByKeywords(title); - const kbkInfo = kbkMeta[kbk]; - - newData.push({ - id: parseInt(indexVal) || (newData.length + 1), - kbk: kbk, - title_id: title, - title_en: title, - authors: authors, - year: year, - url: url, - venue: 'Dashboard Informatika', - badge_id: kbkInfo.label_id, - badge_en: kbkInfo.label_en - }); - } - }); - - if (newData.length > 0) { - risetData = newData; - isLoadingData = false; - renderRisetCards(); - updateStatPub(newData.length); - return; // Berhasil! Keluar dari loop - } - - throw new Error('NO_ROWS_FOUND'); + applyDashboardRows(rows); + return; // Berhasil! Keluar dari loop } catch (error) { clearTimeout(timeoutId); lastError = error; diff --git a/vite.config.js b/vite.config.js index 891b74f..e65cacf 100644 --- a/vite.config.js +++ b/vite.config.js @@ -5,6 +5,9 @@ import { defineConfig } from 'vite'; const root = path.dirname(fileURLToPath(import.meta.url)); const excludedDirs = new Set(['.git', 'dist', 'node_modules']); +const rodaDashboardUrl = 'https://dashboard.informatika.untan.ac.id/index.php?penelitian'; + +let rodaDashboardHtmlCache; function collectHtmlInputs(dir) { const inputs = {}; @@ -47,8 +50,73 @@ function copyStaticAssets() { }; } +async function fetchRodaDashboardHtml() { + if (rodaDashboardHtmlCache !== undefined) { + return rodaDashboardHtmlCache; + } + + const controller = new AbortController(); + const timeoutId = setTimeout(() => controller.abort(), 12000); + + try { + const response = await fetch(rodaDashboardUrl, { + signal: controller.signal, + headers: { + 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0 Safari/537.36', + }, + }); + + if (!response.ok) { + throw new Error(`HTTP ${response.status}`); + } + + rodaDashboardHtmlCache = await response.text(); + } catch (error) { + const message = error instanceof Error ? error.message : String(error); + console.warn(`[roda-dashboard] Build-time dashboard fetch skipped: ${message}`); + rodaDashboardHtmlCache = ''; + } finally { + clearTimeout(timeoutId); + } + + return rodaDashboardHtmlCache; +} + +function escapeJsonScriptContent(value) { + return JSON.stringify(value) + .replaceAll('<', '\\u003c') + .replaceAll('>', '\\u003e') + .replaceAll('&', '\\u0026') + .replaceAll('\u2028', '\\u2028') + .replaceAll('\u2029', '\\u2029'); +} + +function embedRodaDashboardData() { + let command = 'serve'; + + return { + name: 'embed-roda-dashboard-data', + configResolved(config) { + command = config.command; + }, + async transformIndexHtml(html, context) { + const filename = context?.filename ? path.resolve(context.filename) : ''; + const rodaIndex = path.join(root, 'groups', 'RODA', 'index.html'); + + if (filename !== rodaIndex || command !== 'build') { + return html.replace('', ''); + } + + const dashboardHtml = await fetchRodaDashboardHtml(); + const payload = ``; + + return html.replace('', payload); + }, + }; +} + export default defineConfig({ - plugins: [copyStaticAssets()], + plugins: [embedRodaDashboardData(), copyStaticAssets()], build: { rollupOptions: { input: collectHtmlInputs(root), From 91136a58a10a5d194dd077f479d80ae10412d794 Mon Sep 17 00:00:00 2001 From: Raditya_Indra_Putranto Date: Thu, 4 Jun 2026 19:50:37 +0700 Subject: [PATCH 21/36] fix:Nambah animasi statistik counter --- groups/RODA/index.html | 49 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/groups/RODA/index.html b/groups/RODA/index.html index 6f8cfc0..cbb4f6b 100644 --- a/groups/RODA/index.html +++ b/groups/RODA/index.html @@ -2178,6 +2178,55 @@ } })(); + + From 027bd253594b8886df0aabbcba1aad49540d99da Mon Sep 17 00:00:00 2001 From: z0rayy Date: Thu, 4 Jun 2026 20:24:38 +0700 Subject: [PATCH 22/36] chore: inisialisasi environment node dan penambahan dependensi --- groups/RODA/package-lock.json | 13 +++++++++++++ groups/RODA/package.json | 14 ++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 groups/RODA/package-lock.json create mode 100644 groups/RODA/package.json diff --git a/groups/RODA/package-lock.json b/groups/RODA/package-lock.json new file mode 100644 index 0000000..41aefa8 --- /dev/null +++ b/groups/RODA/package-lock.json @@ -0,0 +1,13 @@ +{ + "name": "roda", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "roda", + "version": "1.0.0", + "license": "ISC" + } + } +} \ No newline at end of file diff --git a/groups/RODA/package.json b/groups/RODA/package.json new file mode 100644 index 0000000..8602450 --- /dev/null +++ b/groups/RODA/package.json @@ -0,0 +1,14 @@ +{ + "name": "roda", + "version": "1.0.0", + "description": "Project website untuk menampilkan sorotan dan prestasi karya mahasiswa program studi Informatika Universitas Tanjungpura.", + "main": "server.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "start": "node server.js", + "dev": "node server.js" + }, + "keywords": [], + "author": "", + "license": "ISC" +} From 112447c6bc3ef9afd178226d86c0fc497f3e605f Mon Sep 17 00:00:00 2001 From: z0rayy Date: Thu, 4 Jun 2026 20:24:55 +0700 Subject: [PATCH 23/36] feat: implementasi server lokal untuk injeksi konfigurasi dinamis --- groups/RODA/.env | 4 + groups/RODA/server.js | 279 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 283 insertions(+) create mode 100644 groups/RODA/.env create mode 100644 groups/RODA/server.js diff --git a/groups/RODA/.env b/groups/RODA/.env new file mode 100644 index 0000000..ffbaf40 --- /dev/null +++ b/groups/RODA/.env @@ -0,0 +1,4 @@ +DASHBOARD_TARGET_URL=https://dashboard.informatika.untan.ac.id/index.php?penelitian +DASHBOARD_PROXY_1=https://api.allorigins.win/get?url={{url}}&ts={{ts}} +DASHBOARD_PROXY_2=https://api.codetabs.com/v1/proxy?quest={{url}} +DASHBOARD_PROXY_3=https://thingproxy.freeboard.io/fetch/{{rawUrl}} \ No newline at end of file diff --git a/groups/RODA/server.js b/groups/RODA/server.js new file mode 100644 index 0000000..42dd119 --- /dev/null +++ b/groups/RODA/server.js @@ -0,0 +1,279 @@ +const fs = require('fs'); +const http = require('http'); +const path = require('path'); +const { URL } = require('url'); + +const ROOT_DIR = __dirname; +const PARENT_DIR = path.join(__dirname, '..', '..'); +const INDEX_PATH = path.join(ROOT_DIR, 'index.html'); +const ENV_PATH = path.join(ROOT_DIR, '.env'); +const HOST = '127.0.0.1'; +const PORT = Number(process.env.PORT || 3000); + +function logServerError(scope, error, extra = {}) { + console.error(`[${scope}]`, error && error.stack ? error.stack : error, extra); +} + +function parseEnvFile(filePath) { + if (!fs.existsSync(filePath)) { + return {}; + } + + const env = {}; + const lines = fs.readFileSync(filePath, 'utf8').split(/\r?\n/); + + for (const rawLine of lines) { + const line = rawLine.trim(); + if (!line || line.startsWith('#')) { + continue; + } + + const separatorIndex = line.indexOf('='); + if (separatorIndex === -1) { + continue; + } + + const key = line.slice(0, separatorIndex).trim(); + let value = line.slice(separatorIndex + 1).trim(); + + if ( + (value.startsWith('"') && value.endsWith('"')) || + (value.startsWith("'") && value.endsWith("'")) + ) { + value = value.slice(1, -1); + } + + env[key] = value; + } + + return env; +} + +function getAppConfig() { + const env = { + ...parseEnvFile(ENV_PATH), + ...process.env + }; + + const dashboardProxyTemplates = [ + env.DASHBOARD_PROXY_1, + env.DASHBOARD_PROXY_2, + env.DASHBOARD_PROXY_3 + ].filter(Boolean); + + return { + dashboardTargetUrl: env.DASHBOARD_TARGET_URL || '', + dashboardProxyTemplates + }; +} + +const DASHBOARD_CACHE_TTL_MS = 5 * 60 * 1000; +let dashboardCache = { html: null, timestamp: 0 }; + +async function fetchDashboardHtml() { + const targetUrl = getAppConfig().dashboardTargetUrl; + if (!targetUrl) { + throw new Error('DASHBOARD_TARGET_URL kosong'); + } + + const now = Date.now(); + if (dashboardCache.html && (now - dashboardCache.timestamp) < DASHBOARD_CACHE_TTL_MS) { + return { html: dashboardCache.html, cached: 'HIT' }; + } + + const controller = new AbortController(); + const timeoutId = setTimeout(() => controller.abort(), 12000); + try { + const response = await fetch(targetUrl, { + signal: controller.signal, + headers: { + 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0 Safari/537.36' + } + }); + if (!response.ok) { + throw new Error(`HTTP_ERROR_${response.status}`); + } + const html = await response.text(); + dashboardCache = { html, timestamp: Date.now() }; + return { html, cached: 'MISS' }; + } catch (error) { + if (dashboardCache.html) { + return { html: dashboardCache.html, cached: 'STALE' }; + } + throw error; + } finally { + clearTimeout(timeoutId); + } +} + +function validateAppConfig(config) { + const errors = []; + + if (!config.dashboardTargetUrl) { + errors.push('DASHBOARD_TARGET_URL belum diisi.'); + } + + if (!Array.isArray(config.dashboardProxyTemplates) || !config.dashboardProxyTemplates.length) { + errors.push('Minimal satu DASHBOARD_PROXY_* harus diisi.'); + } + + return errors; +} + +function injectConfig(html) { + const configScript = ``; + const defaultConfigScript = ''; + + if (html.includes(defaultConfigScript)) { + return html.replace(defaultConfigScript, configScript); + } + + return html.replace('', ` ${configScript}\n`); +} + +function sendHtml(res) { + try { + const html = fs.readFileSync(INDEX_PATH, 'utf8'); + const configErrors = validateAppConfig(getAppConfig()); + if (configErrors.length) { + logServerError('config', new Error('Invalid app config'), { configErrors }); + } + + const withConfig = injectConfig(html); + res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' }); + res.end(withConfig); + } catch (error) { + logServerError('sendHtml', error); + res.writeHead(500, { 'Content-Type': 'text/plain; charset=utf-8' }); + res.end('Internal Server Error'); + } +} + +function getMimeType(pathname) { + const ext = path.extname(pathname).toLowerCase(); + const mimeTypes = { + '.html': 'text/html; charset=utf-8', + '.css': 'text/css; charset=utf-8', + '.js': 'application/javascript; charset=utf-8', + '.json': 'application/json; charset=utf-8', + '.png': 'image/png', + '.jpg': 'image/jpeg', + '.jpeg': 'image/jpeg', + '.gif': 'image/gif', + '.svg': 'image/svg+xml', + '.ico': 'image/x-icon', + '.webp': 'image/webp', + '.woff': 'font/woff', + '.woff2': 'font/woff2', + '.ttf': 'font/ttf', + '.eot': 'application/vnd.ms-fontobject' + }; + return mimeTypes[ext] || 'application/octet-stream'; +} + +function sendStaticFile(res, filepath) { + try { + if (!fs.existsSync(filepath)) { + res.writeHead(404, { 'Content-Type': 'text/plain; charset=utf-8' }); + res.end('Not found'); + return; + } + + const content = fs.readFileSync(filepath); + const mimeType = getMimeType(filepath); + res.writeHead(200, { 'Content-Type': mimeType }); + res.end(content); + } catch (error) { + logServerError('sendStaticFile', error, { filepath }); + res.writeHead(500, { 'Content-Type': 'text/plain; charset=utf-8' }); + res.end('Internal Server Error'); + } +} + +function sendNotFound(res) { + res.writeHead(404, { 'Content-Type': 'text/plain; charset=utf-8' }); + res.end('Not found'); +} + +const server = http.createServer((req, res) => { + try { + const requestUrl = new URL(req.url, `http://${req.headers.host}`); + const pathname = requestUrl.pathname; + + if (pathname === '/' || pathname === '/index.html') { + sendHtml(res); + return; + } + + if (pathname === '/api/dashboard') { + fetchDashboardHtml() + .then(({ html, cached }) => { + res.writeHead(200, { + 'Content-Type': 'text/html; charset=utf-8', + 'X-Cache': cached + }); + res.end(html); + }) + .catch((error) => { + logServerError('api-dashboard', error); + res.writeHead(502, { 'Content-Type': 'text/plain; charset=utf-8' }); + res.end('DASHBOARD_FETCH_FAILED'); + }); + return; + } + + // Handle /assets/ from parent directory + if (pathname.startsWith('/assets/')) { + const assetsFilepath = path.join(PARENT_DIR, pathname); + const normalizedAssetsPath = path.normalize(assetsFilepath); + + if (!normalizedAssetsPath.startsWith(path.normalize(PARENT_DIR))) { + sendNotFound(res); + return; + } + + sendStaticFile(res, normalizedAssetsPath); + return; + } + + // Serve static files from ROOT_DIR + const filepath = path.join(ROOT_DIR, pathname); + const normalizedPath = path.normalize(filepath); + + // Security check: ensure the requested file is within ROOT_DIR + if (!normalizedPath.startsWith(path.normalize(ROOT_DIR))) { + sendNotFound(res); + return; + } + + sendStaticFile(res, normalizedPath); + } catch (error) { + logServerError('request-handler', error, { url: req.url }); + res.writeHead(500, { 'Content-Type': 'text/plain; charset=utf-8' }); + res.end('Internal Server Error'); + } +}); + +server.on('clientError', (error, socket) => { + logServerError('clientError', error); + socket.end('HTTP/1.1 400 Bad Request\r\n\r\n'); +}); + +server.listen(PORT, HOST, () => { + console.log(`Server ready at http://${HOST}:${PORT}`); +}); + +server.on('error', (error) => { + logServerError('server', error, { host: HOST, port: PORT }); + process.exitCode = 1; +}); + +process.on('uncaughtException', (error) => { + logServerError('uncaughtException', error); + process.exitCode = 1; +}); + +process.on('unhandledRejection', (reason) => { + logServerError('unhandledRejection', reason instanceof Error ? reason : new Error(String(reason))); + process.exitCode = 1; +}); From 4d828814da89db1e949072bc57eb3fc6bed8a7c1 Mon Sep 17 00:00:00 2001 From: z0rayy Date: Thu, 4 Jun 2026 20:25:03 +0700 Subject: [PATCH 24/36] style: penyempurnaan gaya komponen dan penyesuaian tata letak responsif --- groups/RODA/style.css | 333 +++++++++++++++++++++++++++++++++++++----- 1 file changed, 295 insertions(+), 38 deletions(-) diff --git a/groups/RODA/style.css b/groups/RODA/style.css index 2bc5542..653b8d6 100644 --- a/groups/RODA/style.css +++ b/groups/RODA/style.css @@ -1,48 +1,305 @@ -:root { - --brand-navy: #003150; - --brand-yellow: #feb401; - --text-main: #1e293b; - --text-soft: #64748b; - --bg-soft: #f8fafc; - --line: #e2e8f0; +.bg-pattern { + background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); } -* { box-sizing: border-box; } -html, body { margin: 0; padding: 0; } -body { font-family: "Roboto", Arial, sans-serif; color: var(--text-main); background: #fff; line-height: 1.6; } -.container { width: min(1100px, 92%); margin-inline: auto; } +/* Navbar & Accessibility Fixes */ +#nav-wrapper { + position: fixed !important; + top: 0; + left: 0; + right: 0; + z-index: 50; + backface-visibility: hidden; + -webkit-backface-visibility: hidden; + will-change: box-shadow; +} -.nav { background: var(--brand-navy); color: #fff; border-bottom: 4px solid var(--brand-yellow); padding: 14px 0; } -.brand { font-size: 1.1rem; font-weight: 700; letter-spacing: .02em; } +#nav-wrapper>div:first-child { + transform: translateZ(0); + -webkit-transform: translateZ(0); +} -.hero { position: relative; color: #fff; min-height: 220px; display: flex; align-items: flex-end; overflow: hidden; } -.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45); } -.hero-inner { position: relative; z-index: 1; padding: 36px 0; } -.badge { display: inline-block; background: var(--brand-yellow); color: #111827; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: .2rem .45rem; margin-bottom: 12px; } -.hero h1 { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.8rem); line-height: 1.2; } +@media (max-width: 1023px) { + #nav-wrapper>div:first-child { + min-height: 0 !important; + max-height: none; + } +} -.layout { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0 4rem; } -@media (min-width: 1024px) { .layout { grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); } } +html { + scroll-behavior: smooth; +} -.meta { font-size: .78rem; text-transform: uppercase; color: #475569; display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-bottom: 1rem; } -.cover { background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 1.5rem; } -.cover img { width: 100%; height: auto; display: block; } +.ticker-wrap { + mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%); + -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%); +} -.article-body > * + * { margin-top: 1.1em; } -.article-body h2 { font-size: 1.35rem; margin: 1.6em 0 .5em; } -.article-body h3 { font-size: 1.1rem; margin: 1.4em 0 .4em; } -.article-body p { margin: 0 0 1em; } -.article-body ul, .article-body ol { padding-left: 1.4rem; } -.article-body blockquote { border-left: 4px solid #005eb8; background: #eef6ff; padding: .8rem 1rem; color: #334155; } -.article-body a { color: #005eb8; } -.article-body img { max-width: 100%; border-radius: 8px; } -.article-body code { background: #f1f5f9; padding: .1em .35em; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; } +.ticker-track { + display: inline-flex; + white-space: nowrap; + min-width: max-content; + animation: tickerMove 30s linear infinite; + will-change: transform; +} -.note { border: 1px solid var(--line); background: var(--bg-soft); padding: 1rem; } -.note h3 { margin: 0 0 .5rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: #475569; } +.ticker-wrap:hover .ticker-track { + animation-play-state: paused; +} -.footer { margin-top: 2rem; background: var(--brand-navy); color: #fff; border-top: 4px solid var(--brand-yellow); } -.footer-inner { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: 1rem 0; } -.footer-logo { height: 28px; width: auto; } -.footer-ornament { width: 100%; display: block; opacity: .9; } +@keyframes tickerMove { + 0% { + transform: translateX(0); + } + + 100% { + transform: translateX(-50%); + } +} + +/* Responsive animation timing */ +@media (max-width: 768px) { + .ticker-track { + animation-duration: 25s; + } +} + +@media (min-width: 1366px) { + .ticker-track { + animation-duration: 35s; + } +} + +.line-clamp-1 { + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 1; +} + +.line-clamp-2 { + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; +} + +.line-clamp-3 { + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 3; +} + +.reveal { + opacity: 1; + transform: none; +} + +.reveal-ready .reveal { + opacity: 0; + transform: translateY(24px); + transition: opacity 0.65s ease, transform 0.65s ease; +} + +.reveal-ready .reveal.is-visible { + opacity: 1; + transform: translateY(0); +} + +@media (prefers-reduced-motion: reduce) { + html { + scroll-behavior: auto; + } + + .ticker-track { + animation: none; + } + + .reveal { + opacity: 1; + transform: none; + transition: none; + } +} + +/* Dosen grid: subgrid rows agar header & footer setiap card sejajar */ +@media (min-width: 1024px) { + #dosen-grid { + grid-template-rows: auto auto; + } + #dosen-grid > a { + grid-row: span 2; + display: grid; + grid-template-rows: subgrid; + } + /* White section: flex column so expertise sits at top, rank/link pinned to bottom */ + #dosen-grid > a > div:last-child { + display: flex !important; + flex-direction: column !important; + padding-top: 1rem !important; + } + #dosen-grid > a > div:last-child > div:last-child { + margin-top: auto; + } +} + +/* Custom responsive breakpoints - overriding Tailwind CDN defaults */ +/* Mobile: 390px and up */ +@media (min-width: 390px) { + body { + font-size: 14px; + } +} + +/* Tablet: 768px and up */ +@media (min-width: 768px) { + #kbk-card-grid { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } +} + +/* Laptop/Desktop: 1024px and up */ +@media (min-width: 1024px) { + nav.bg-\[#feb401\] { + display: block !important; + } + + #lang-toggle-btn { + display: flex !important; + } + + .hidden.lg\:flex { + display: flex !important; + } + + #kbk-card-grid { + grid-template-columns: repeat(4, minmax(0, 1fr)); + } + + #dosen-grid { + grid-template-columns: repeat(4, minmax(0, 1fr)); + } + + #riset-grid { + grid-template-columns: repeat(3, minmax(0, 1fr)); + } +} + +/* Desktop: 1366px and up */ +@media (min-width: 1366px) { + #kbk-card-grid { + grid-template-columns: repeat(4, minmax(0, 1fr)); + } + + #riset-grid { + grid-template-columns: repeat(3, minmax(0, 1fr)); + } + + #dosen-grid { + grid-template-columns: repeat(4, minmax(0, 1fr)); + } +} + +/* Extra Large Desktop: 1920px and up */ +@media (min-width: 1920px) { + body { + font-size: 16px; + } +} + +/* ===== MEGA MENU STYLES FROM LIMAEM ===== */ +.mega-panel { + opacity: 0; + visibility: hidden; + transition: opacity 0.2s ease, visibility 0.2s ease; + position: absolute; + top: 100%; + left: 0; + right: 0; +} + +.mega-panel.active { + opacity: 1; + visibility: visible; +} + +#mega-overlay { + opacity: 0; + visibility: hidden; + transition: opacity 0.2s ease, visibility 0.2s ease; + pointer-events: none; +} + +#mega-overlay.active { + opacity: 1; + visibility: visible; + pointer-events: auto; +} + +.mega-link-card { + display: flex; + align-items: flex-start; + gap: 1rem; + padding: 1rem; + border-radius: 0.75rem; + border: 1px solid #e2e8f0; + background: white; + transition: all 0.2s ease; +} + +.mega-link-card:hover { + border-color: #3b82f6; + box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15); + transform: translateY(-2px); +} + +.mega-link-icon { + width: 2.5rem; + height: 2.5rem; + border-radius: 0.5rem; + display: flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + transition: all 0.2s ease; +} + +.nav-menu-btn.active { + background: rgba(255, 255, 255, 0.9); + color: #1e40af; +} + +.nav-menu-btn:hover { + background: rgba(255, 255, 255, 0.8); +} + +#main-nav { + position: relative; +} + +#mega-menu-container { + position: absolute; + top: 100%; + left: 0; + right: 0; + pointer-events: none; +} + +#mega-menu-container .mega-panel { + pointer-events: auto; +} + +.nav-menu-item { + position: relative; +} + +.nav-menu-item::after { + content: ''; + position: absolute; + bottom: -12px; + left: 0; + right: 0; + height: 12px; +} From 49cd290d5a739daacf9b003167edd5cf0b4ce0e9 Mon Sep 17 00:00:00 2001 From: z0rayy Date: Thu, 4 Jun 2026 20:25:09 +0700 Subject: [PATCH 25/36] feat: integrasi konfigurasi environment proxy pada antarmuka utama --- groups/RODA/index.html | 2570 +++++++++++++++++++++++++--------------- 1 file changed, 1614 insertions(+), 956 deletions(-) diff --git a/groups/RODA/index.html b/groups/RODA/index.html index 720a508..276d378 100644 --- a/groups/RODA/index.html +++ b/groups/RODA/index.html @@ -1,302 +1,94 @@  - + + - Group 08 – RODA | Informatika UNTAN - - - - + Sorotan dan Prestasi Karya Mahasiswa | Informatika UNTAN + + + - + + + - - + + -
- Beranda - - - - - - - - - - - -
- Fasilitas - -
- - -
- Karya & - Agenda - -
- - - + +
+
+ BERANDA / RISET & KBK
-
-
-
- Tugas Halaman Statis -

Riset & Kelompok Bidang Keahlian (KBK)

-

Kelompok 08 — RODA  ·  Informatika UNTAN 2026

+ +
+
+
+ Riset & Kelompok Bidang Keahlian
-
- -

Tulis konten halaman kelompok di sini.

-

Subjudul

-

Gunakan paragraf, list, tabel, gambar, dan elemen konten lainnya.

- +

+ Riset & Kelompok Bidang Keahlian +

+

+ Kenali Kelompok Bidang Keahlian (KBK) kami. Jelajahi riset unggulan dosen dan mahasiswa di bidang + Kecerdasan Buatan (AI), Rekayasa Perangkat Lunak, hingga IoT +

+
-
+
+ + +
+ +
+
+
+ Kelompok Bidang Keahlian +

+ 4 Pilar Keilmuan Informatika UNTAN

+

Setiap KBK berfokus pada + topik riset spesifik, dipimpin dosen berpengalaman, dan terbuka untuk kolaborasi.

+
-
+
+ +
+
+ +
+

Kecerdasan Buatan

+

Sistem cerdas berbasis AI, deep + learning, vision, dan NLP untuk solusi nyata.

+
+ Vision + NLP +
+
+
+
+ AS
+
+ RH
+
+ +6
+
+ +
+
+ + +
+
+ +
+

Rekayasa Perangkat + Lunak

+

Metodologi, arsitektur, dan + kualitas perangkat lunak modern serta DevOps.

+
+ DevOps + Agile +
+
+
+
+ DW
+
+ PN
+
+ +8
+
+ +
+
+ + +
+
+ +
+

Jaringan & Keamanan +

+

Infrastruktur jaringan handal, + keamanan siber, dan teknologi Cloud/IoT.

+
+ Cybersec + IoT +
+
+
+
+ HF
+
+ SA
+
+ +5
+
+ +
+
+ + +
+
+ +
+

Sistem Informasi

+

Manajemen informasi, GIS, big + data, dan sistem pendukung keputusan.

+
+ Big + Data + GIS +
+
+
+
+ LP
+
+ FN
+
+ +4
+
+ +
+
+
+ +
+
+
+
+ + KBK Insight +
+

+

+
+

+
+
+
+
+

+

+
+
+
+
+
+
+
+

+

+
+
+

+

+
+
+

+

+
+
+
+

+
+
+
+
+
+ +
+ + +
+
+
+
+
+
400+
+

+ Hasil Penelitian

+
+
+
7.555
+

Skor SINTA

+
+
+
33
+

Dosen Homebase

+
+
+
10+
+

Kerjasama Aktif

+
+
+
518
+

Mahasiswa Aktif

+
+
+
+
+ + +
+
+
+
+ Academic + Achievements +

Publikasi & Penelitian Terkini

+
+
+ + +
+ +
+ + + +
+
+
+ + + + + + +
+ +
+ Tampilkan: +
+ + + + + +
+
+
+
+ Menghitung data... +
+
+
+ +
+ +
+ + +
+
+ + +
+
+
+ Experts + Directory +

+ Peneliti & Dosen per Kelompok Keahlian

+

Bagian ini menampilkan + ketua setiap KBK. Pilih kartu untuk melihat dosen lain di kelompok keahlian tersebut.

+
+ +
+ +
+
+
+ + +
+
+
+
+

Laboratorium Pendukung Riset

+

5 laboratorium modern dengan 93 unit PC All-in-One + yang mendukung kegiatan riset strategis dan pengembangan teknologi dosen serta mahasiswa. +

+
+
+
+
05
+
Labs Modern +
+
+
+
+ +
+ +
+
+
+ +
+
+ + 25 PC + + + 25 Mahasiswa + +
+
+

Lab Komputer & Pemrograman

+

LAB/D48 — Kepala: Helen Sastypratiwi, S.T., M.Eng.

+

Mendukung mata kuliah pemrograman dasar hingga lanjut, pengembangan aplikasi web, mobile, dan rekayasa perangkat lunak.

+
+ VS Code + Node.js + Android Studio + Python 3 +
+
+ + +
+
+
+ +
+
+

Lab Jaringan, Keamanan & IoT

+

LAB/02 — Kepala: Heri Priyanto, ST., MT.

+

Sarana praktik jaringan, konfigurasi router/switch, keamanan siber, administrasi sistem, dan pengembangan perangkat IoT.

+
+ Cisco Packet + Wireshark + Raspberry Pi +
+
+ + +
+
+
+ +
+
+ + 25 PC + + + 25 Mahasiswa + +
+
+

Lab Rekayasa PL & Data

+

LAB/03 — Kepala: Rudy Dwi Nyoto, ST., M.Eng.

+

Mendukung pembelajaran basis data, pemodelan data, data warehousing, dan analitik data skala besar.

+
+ MySQL + PostgreSQL + MongoDB + RapidMiner +
+
+ + +
+
+
+ +
+
+ + 21 PC + + + 21 Mahasiswa + +
+
+

Lab Teknologi & Sistem Informasi

+

LAB/04 — Kepala: Anggi Srimurdianti Sukamto, ST., MT.

+

Merancang arsitektur sistem informasi, memodelkan proses bisnis digital, serta menumbuhkan jiwa technopreneurship.

+
+ Bizagi + Power BI + Figma +
+
+ + +
+
+
+ +
+
+ + 22 PC + + + 22 Mahasiswa + +
+
+

Lab Komputasi & Kecerdasan Buatan

+

LAB/05 — Kepala: Tursina, ST, M.Cs.

+

Pusat riset machine learning, deep learning, computer vision, NLP, dan pengembangan sistem kecerdasan buatan berbasis data.

+
+ TensorFlow + PyTorch + OpenCV + Jupyter +
+
+
+
+
+ + +
+
+
+ +
+

Tertarik Berkolaborasi dengan KBK Kami?

+

+ Kami membuka peluang kerja sama riset lintas institusi, kemitraan strategis dengan industri, serta + riset mahasiswa (skripsi/tesis) di bawah supervisi ahli kami. +

+ +
+
+
+ + +

@@ -1219,6 +1067,815 @@ style="object-position: bottom;">

+ + + + - - - + + \ No newline at end of file From 30091e68cce7b760e95568a840f01b29a433b866 Mon Sep 17 00:00:00 2001 From: Tazyeuu <126654209+Tazyeuu@users.noreply.github.com> Date: Thu, 4 Jun 2026 22:03:30 +0700 Subject: [PATCH 26/36] fix hamburger --- groups/ACAAB/index.html | 3239 +++++++++++++++++++++++---------------- groups/RODA/index.html | 79 +- groups/RODA/style.css | 7 +- 3 files changed, 1994 insertions(+), 1331 deletions(-) diff --git a/groups/ACAAB/index.html b/groups/ACAAB/index.html index a781215..ec40fee 100644 --- a/groups/ACAAB/index.html +++ b/groups/ACAAB/index.html @@ -1,1338 +1,2017 @@ - + - - - + + + Group 06 – ACAAB | Informatika UNTAN - - - - - - - - + + + - +