-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
165 lines (140 loc) · 2.85 KB
/
Copy pathindex.html
File metadata and controls
165 lines (140 loc) · 2.85 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>FolderMaster</title>
<style>
:root {
--bg: #1e1e1e;
--panel: #252526;
--border: #3c3c3c;
--text: #d4d4d4;
--muted: #9da3a6;
--accent: #3b82f6;
--hover: #2a2d2e;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: system-ui, "Segoe UI", Roboto, sans-serif;
background: var(--bg);
color: var(--text);
height: 100vh;
display: flex;
flex-direction: column;
}
.toolbar {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
background: var(--panel);
border-bottom: 1px solid var(--border);
}
.toolbar-title {
font-weight: 600;
margin-right: auto;
}
button {
background: transparent;
color: var(--text);
border: 1px solid var(--border);
padding: 6px 12px;
border-radius: 4px;
font-size: 13px;
cursor: pointer;
}
button:hover {
background: var(--hover);
}
button.primary {
background: var(--accent);
border-color: var(--accent);
color: white;
}
button.primary:hover {
background: #2563eb;
}
.main {
flex: 1;
display: flex;
overflow: hidden;
}
.tree-panel {
flex: 1;
padding: 10px;
overflow-y: auto;
font-family: Consolas, "Courier New", monospace;
font-size: 13px;
}
.tree-item {
padding: 2px 6px;
white-space: nowrap;
cursor: default;
}
.tree-item:hover {
background: var(--hover);
}
.folder {
color: #4fc1ff;
font-weight: 500;
}
.file {
color: var(--text);
}
.size {
color: var(--muted);
margin-left: 8px;
font-size: 11px;
}
.empty {
color: var(--muted);
text-align: center;
margin-top: 60px;
font-family: system-ui;
}
#text-output {
width: 100%;
height: 100%;
background: var(--bg);
color: var(--text);
border: none;
padding: 12px;
font-family: Consolas, monospace;
font-size: 13px;
resize: none;
outline: none;
}
.hidden {
display: none;
}
</style>
</head>
<body>
<!--Toolbar-->
<div class="toolbar">
<div class="toolbar-title">FolderMaster</div>
<button class="primary" onclick="selectFolder()">Open Folder</button>
<button id="show-text-btn" class="hidden" onclick="toggleTextView()">View as Text</button>
<button id="copy-btn" class="hidden" onclick="copyToClipboard()">Copy</button>
</div>
<div class="main">
<div id="tree-container" class="tree-panel">
<div class="empty">
No folder selected<br />
<span style="font-size: 12px;">Use “Open Folder” to start</span>
</div>
</div>
<textarea id="text-output" class="hidden" readonly></textarea>
</div>
<div style="padding: 12px; text-align: center; border-top: 1px solid var(--border); background: var(--panel);">
<button class="primary" onclick="window.open('https://github.com/deeemx/FolderMaster', '_blank')">
View on GitHub
</button>
</div>
<script src="renderer.js"></script>
</body>
</html>