-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsources.html
More file actions
87 lines (79 loc) · 3.46 KB
/
sources.html
File metadata and controls
87 lines (79 loc) · 3.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#000000" media="(prefers-color-scheme: dark)">
<title>Manage Sources</title>
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<div id="splash">
<div class="splash-content">
<div class="splash-logo">RipeStore</div>
<div class="splash-loader"></div>
<div id="splash-status">Loading sources...</div>
</div>
</div>
<nav class="navbar glass">
<div class="nav-content">
<a href="./" class="back-link">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M15 18l-6-6 6-6"/></svg>
Home
</a>
<div class="nav-brand">Sources</div>
<div class="w-60"></div> <!-- spacer -->
</div>
</nav>
<main>
<section class="section">
<h2 class="section-title">Add Source</h2>
<div class="flex gap-10">
<input id="newSource" type="text" placeholder="https://example.com/repo.json" class="input-main flex-1">
<button id="addBtn" class="btn-primary">Add</button>
</div>
</section>
<section class="section hidden" id="suggestedSection">
<h2 class="section-title">Suggested Repos</h2>
<div id="suggestedList" class="flex flex-wrap gap-10"></div>
</section>
<section class="section">
<h2 class="section-title">Backup & Restore</h2>
<div class="flex gap-10">
<button id="exportMenuBtn" class="btn-secondary flex-1">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="17 8 12 3 7 8"/><line x1="12" y1="3" x2="12" y2="15"/></svg>
Export
</button>
<button id="importMenuBtn" class="btn-secondary flex-1">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
Import
</button>
</div>
<input type="file" id="importFileInput" class="hidden" accept=".txt,.json,.list">
</section>
<!-- IO Modal -->
<div id="io-modal" class="modal-overlay">
<div class="modal-content">
<div class="modal-header">
<h3 id="io-title">Options</h3>
<button id="close-io" class="close-btn">×</button>
</div>
<div id="io-list" class="modal-body list-menu">
<!-- Dynamic Content -->
</div>
</div>
</div>
<section class="section">
<div class="flex justify-between items-center mb-16">
<h2 class="section-title m-0">My Sources</h2>
<button id="updateBtn" class="btn-text">Update Repos</button>
</div>
<div id="sourceList" class="info-list source-list-container"></div>
</section>
</main>
<script type="module" src="assets/js/ui/sources.js"></script>
</body>
</html>