-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditor.html
More file actions
230 lines (229 loc) · 12.8 KB
/
Copy patheditor.html
File metadata and controls
230 lines (229 loc) · 12.8 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Solaxnm - Full Editor</title>
<style>
/* Prevent FOUC and ensure full-screen editor */
body {
margin: 0;
padding: 0;
width: 100vw;
height: 100vh;
overflow: hidden;
background: linear-gradient(135deg, #1a1d29 0%, #2d1b69 100%);
}
#root {
width: 100%;
height: 100%;
}
/* Comprehensive Tailwind CSS utilities for editor */
.absolute { position: absolute; }
.relative { position: relative; }
.fixed { position: fixed; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.block { display: block; }
.hidden { display: none; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(0.625rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.625rem * var(--tw-space-y-reverse)); }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(1rem * var(--tw-space-y-reverse)); }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(1.5rem * var(--tw-space-y-reverse)); }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.w-1 { width: 0.25rem; }
.w-5 { width: 1.25rem; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0px; }
.h-1 { height: 0.25rem; }
.h-2 { height: 0.5rem; }
.h-5 { height: 1.25rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }
.min-h-\[500px\] { min-height: 500px; }
.max-h-\[600px\] { max-height: 600px; }
.max-h-\[calc\(100vh-420px\)\] { max-height: calc(100vh - 420px); }
.max-w-full { max-width: 100%; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-6xl { max-width: 72rem; }
.flex-shrink-0 { flex-shrink: 0; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-12 { padding: 3rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-\[10px\] { font-size: 10px; line-height: 1rem; }
.text-\[11px\] { font-size: 11px; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Monaco, Inconsolata, "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace; }
.leading-relaxed { line-height: 1.625; }
.tracking-wider { letter-spacing: 0.05em; }
.text-white { color: rgb(255 255 255 / var(--tw-text-opacity)); }
.text-white\/30 { color: rgb(255 255 255 / 0.3); }
.text-white\/40 { color: rgb(255 255 255 / 0.4); }
.text-white\/50 { color: rgb(255 255 255 / 0.5); }
.text-white\/60 { color: rgb(255 255 255 / 0.6); }
.text-base-content { color: var(--text-base-content); }
.text-base-content-secondary { color: var(--text-base-content-secondary); }
.text-foreground { color: var(--text-foreground); }
.text-muted-foreground { color: var(--text-muted-foreground); }
.text-primary { color: var(--text-primary); }
.text-primary-foreground { color: var(--text-primary-foreground); }
.text-accent-primary { color: var(--accent-primary); }
.text-blue-500 { color: rgb(59 130 246 / var(--tw-text-opacity)); }
.text-green-500 { color: rgb(34 197 94 / var(--tw-text-opacity)); }
.text-purple-400 { color: rgb(196 181 253 / var(--tw-text-opacity)); }
.bg-base-100 { background-color: var(--bg-base-100); }
.bg-base-200 { background-color: var(--bg-base-200); }
.bg-base-300 { background-color: var(--bg-base-300); }
.bg-background { background-color: var(--bg-background); }
.bg-background\/40 { background-color: rgb(255 255 255 / 0.4); }
.bg-background\/50 { background-color: rgb(255 255 255 / 0.5); }
.bg-card { background-color: var(--bg-card); }
.bg-muted\/20 { background-color: rgb(161 161 170 / 0.2); }
.bg-muted\/30 { background-color: rgb(161 161 170 / 0.3); }
.bg-primary { background-color: var(--primary); }
.bg-primary\/10 { background-color: rgb(147 51 234 / 0.1); }
.bg-primary\/15 { background-color: rgb(147 51 234 / 0.15); }
.bg-primary\/20 { background-color: rgb(147 51 234 / 0.2); }
.bg-purple-500\/20 { background-color: rgb(168 85 247 / 0.2); }
.bg-purple-500\/5 { background-color: rgb(168 85 247 / 0.05); }
.bg-slate-900 { background-color: rgb(15 23 42 / var(--tw-bg-opacity)); }
.bg-black\/60 { background-color: rgb(0 0 0 / 0.6); }
.bg-black\/80 { background-color: rgb(0 0 0 / 0.8); }
.bg-white\/5 { background-color: rgb(255 255 255 / 0.05); }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-base { border-color: var(--border-base); }
.\/50 { border-color: rgb(161 161 170 / 0.5); }
.\/60 { border-color: rgb(161 161 170 / 0.6); }
.border-primary\/20 { border-color: rgb(147 51 234 / 0.2); }
.border-accent-primary { border-color: var(--accent-primary); }
.border-purple-500 { border-color: rgb(168 85 247 / var(--tw-border-opacity)); }
.border-white\/\[0\.08\] { border-color: rgb(255 255 255 / 0.08); }
.border-white\/10 { border-color: rgb(255 255 255 / 0.1); }
.border-t-transparent { border-top-color: transparent; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.ring-1 { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow); }
.ring-white\/10 { --tw-ring-color: rgb(255 255 255 / 0.1); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.animate-spin { animation: spin 1s linear infinite; }
.cursor-pointer { cursor: pointer; }
.cursor-move { cursor: move; }
.inset-0 { top: 0px; right: 0px; bottom: 0px; left: 0px; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.opacity-0 { opacity: 0; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lg\:grid-cols-\[1fr_400px\] { grid-template-columns: 1fr 400px; }
.lg\:min-h-\[600px\] { min-height: 600px; }
.sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sm\:grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-110 { scale: 1.1; }
.hover\:bg-base-200:hover { background-color: var(--bg-base-200); }
.hover\:bg-muted:hover { background-color: var(--bg-muted); }
.hover\:bg-muted\/50:hover { background-color: rgb(161 161 170 / 0.5); }
.hover\:bg-primary\/5:hover { background-color: rgb(147 51 234 / 0.05); }
.hover\:bg-primary\/90:hover { background-color: rgb(147 51 234 / 0.9); }
.hover\:border-primary:hover { border-color: var(--primary); }
.hover\:border-purple-500\/30:hover { border-color: rgb(168 85 247 / 0.3); }
.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.hover\:shadow-purple-500\/10:hover { box-shadow: 0 10px 15px -3px rgb(168 85 247 / 0.1), 0 4px 6px -4px rgb(168 85 247 / 0.1); }
.hover\:text-accent-secondary:hover { color: var(--accent-secondary); }
.hover\:text-foreground:hover { color: var(--text-foreground); }
.hover\:underline:hover { text-decoration-line: underline; }
.active\:bg-muted:active { background-color: var(--bg-muted); }
.active\:scale-95:active { scale: 0.95; }
.focus\:border-primary:focus { border-color: var(--primary); }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow); }
.focus\:ring-primary\/20:focus { --tw-ring-color: rgb(147 51 234 / 0.2); }
.uppercase { text-transform: uppercase; }
</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="./src/editor.tsx"></script>
</body>
</html>