Skip to content

Commit 1add074

Browse files
committed
Add UI
1 parent 7bc22f3 commit 1add074

25 files changed

Lines changed: 3684 additions & 1 deletion

‎.github/workflows/deploy-pages.yml‎

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Deploy Svelte UI to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
defaults:
21+
run:
22+
working-directory: ui
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: actions/setup-node@v4
26+
with:
27+
node-version: 22
28+
cache: npm
29+
cache-dependency-path: ui/package-lock.json
30+
- run: npm ci
31+
- run: npm run build
32+
- uses: actions/configure-pages@v5
33+
- uses: actions/upload-pages-artifact@v3
34+
with:
35+
path: ui/dist
36+
37+
deploy:
38+
environment:
39+
name: github-pages
40+
url: ${{ steps.deployment.outputs.page_url }}
41+
runs-on: ubuntu-latest
42+
needs: build
43+
steps:
44+
- name: Deploy to GitHub Pages
45+
id: deployment
46+
uses: actions/deploy-pages@v4

‎.gitignore‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,9 @@ Thumbs.db
99
$RECYCLE.BIN/
1010

1111
# Windows shortcuts
12-
*.lnk
12+
*.lnk
13+
14+
### Svelte UI
15+
ui/node_modules/
16+
ui/dist/
17+
ui/public/data/

‎README.md‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
</p>
1010

1111
<p align="center">
12+
<a href="#data-explorer">Data Explorer</a> •
1213
<a href="#ikhtisar-direktori-data">Ikhtisar Data</a> •
1314
<a href="#integrasi-api">Integrasi API</a> •
1415
<a href="#contoh-aplikasi">Contoh Aplikasi</a> •
@@ -17,6 +18,24 @@
1718

1819
---
1920

21+
## Data Explorer
22+
23+
Antarmuka berbasis Svelte tersedia di direktori [`ui`](ui/) untuk menjelajahi
24+
kamus utama, kata baku dan nonbaku, sinonim, serta antonim secara interaktif.
25+
Data kamus yang besar diproses menjadi indeks pencarian dan shard per huruf
26+
agar tidak membebani pemuatan awal.
27+
28+
```bash
29+
cd ui
30+
npm install
31+
npm run dev
32+
```
33+
34+
Gunakan `npm run build` untuk menyiapkan data dan membuat build produksi.
35+
Workflow `.github/workflows/deploy-pages.yml` akan menerbitkan UI ke GitHub
36+
Pages setiap kali branch `main` diperbarui. Aktifkan **Pages → Source → GitHub
37+
Actions** pada pengaturan repositori.
38+
2039
## Ringkasan Data
2140

2241
Repositori ini menyimpan total data bahasa Indonesia dengan rincian sebagai berikut:

‎ui/index.html‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!doctype html>
2+
<html lang="id">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<meta
7+
name="description"
8+
content="Jelajahi dataset open-source berisi entri KBBI, kata baku dan nonbaku, sinonim, serta antonim. Bukan layanan resmi KBBI."
9+
/>
10+
<meta name="theme-color" content="#111111" />
11+
<meta name="robots" content="index, follow, max-image-preview:large" />
12+
<link
13+
rel="canonical"
14+
href="https://dyazincahya.github.io/KBBI-SQL-database/"
15+
/>
16+
<meta property="og:type" content="website" />
17+
<meta property="og:title" content="KBBI Data Explorer" />
18+
<meta
19+
property="og:description"
20+
content="Explorer dataset Bahasa Indonesia open-source untuk mencari arti, kata baku, sinonim, dan antonim. Bukan layanan resmi KBBI."
21+
/>
22+
<meta
23+
property="og:url"
24+
content="https://dyazincahya.github.io/KBBI-SQL-database/"
25+
/>
26+
<meta name="twitter:card" content="summary" />
27+
<link rel="preconnect" href="https://fonts.googleapis.com" />
28+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
29+
<link
30+
href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,600&display=swap"
31+
rel="stylesheet"
32+
/>
33+
<title>KBBI Data Explorer</title>
34+
</head>
35+
<body>
36+
<div id="app"></div>
37+
<noscript
38+
>Aplikasi penjelajah KBBI memerlukan JavaScript untuk memuat
39+
dataset.</noscript
40+
>
41+
<script type="module" src="/src/main.js"></script>
42+
</body>
43+
</html>

0 commit comments

Comments
 (0)