|
4 | 4 | <meta charset="UTF-8" /> |
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
6 | 6 | <title>PaperDebugger Settings</title> |
7 | | - <style> |
8 | | - * { |
9 | | - margin: 0; |
10 | | - padding: 0; |
11 | | - box-sizing: border-box; |
12 | | - } |
13 | | - |
14 | | - body { |
15 | | - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; |
16 | | - background: #f5f5f5; |
17 | | - color: #333; |
18 | | - padding: 20px; |
19 | | - min-height: 100vh; |
20 | | - } |
21 | | - |
22 | | - .container { |
23 | | - max-width: 800px; |
24 | | - margin: 0 auto; |
25 | | - background: white; |
26 | | - border-radius: 8px; |
27 | | - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); |
28 | | - padding: 30px; |
29 | | - } |
30 | | - |
31 | | - h1 { |
32 | | - font-size: 24px; |
33 | | - font-weight: 600; |
34 | | - margin-bottom: 10px; |
35 | | - color: #222; |
36 | | - } |
37 | | - |
38 | | - .subtitle { |
39 | | - color: #666; |
40 | | - font-size: 14px; |
41 | | - margin-bottom: 30px; |
42 | | - } |
43 | | - |
44 | | - .section { |
45 | | - margin-bottom: 30px; |
46 | | - padding-bottom: 30px; |
47 | | - border-bottom: 1px solid #eee; |
48 | | - } |
49 | | - |
50 | | - .section:last-child { |
51 | | - border-bottom: none; |
52 | | - margin-bottom: 0; |
53 | | - padding-bottom: 0; |
54 | | - } |
55 | | - |
56 | | - .section-title { |
57 | | - font-size: 18px; |
58 | | - font-weight: 600; |
59 | | - margin-bottom: 15px; |
60 | | - color: #333; |
61 | | - } |
62 | | - |
63 | | - .section-description { |
64 | | - color: #666; |
65 | | - font-size: 14px; |
66 | | - margin-bottom: 20px; |
67 | | - line-height: 1.6; |
68 | | - } |
69 | | - |
70 | | - .permission-item { |
71 | | - background: #f9f9f9; |
72 | | - border: 1px solid #e0e0e0; |
73 | | - border-radius: 6px; |
74 | | - padding: 15px; |
75 | | - margin-bottom: 15px; |
76 | | - display: flex; |
77 | | - justify-content: space-between; |
78 | | - align-items: center; |
79 | | - } |
80 | | - |
81 | | - .permission-info { |
82 | | - flex: 1; |
83 | | - } |
84 | | - |
85 | | - .permission-url { |
86 | | - font-family: monospace; |
87 | | - font-size: 13px; |
88 | | - color: #3b82f6; |
89 | | - margin-top: 5px; |
90 | | - } |
91 | | - |
92 | | - .permission-status { |
93 | | - font-size: 12px; |
94 | | - padding: 4px 8px; |
95 | | - border-radius: 4px; |
96 | | - margin-left: 15px; |
97 | | - } |
98 | | - |
99 | | - .permission-status.granted { |
100 | | - background: #d1fae5; |
101 | | - color: #065f46; |
102 | | - } |
103 | | - |
104 | | - .permission-status.not-granted { |
105 | | - background: #fee2e2; |
106 | | - color: #991b1b; |
107 | | - } |
108 | | - |
109 | | - button { |
110 | | - background: #3b82f6; |
111 | | - color: white; |
112 | | - border: none; |
113 | | - padding: 10px 20px; |
114 | | - border-radius: 6px; |
115 | | - font-size: 14px; |
116 | | - font-weight: 500; |
117 | | - cursor: pointer; |
118 | | - transition: background 0.2s; |
119 | | - } |
120 | | - |
121 | | - button:hover { |
122 | | - background: #2563eb; |
123 | | - } |
124 | | - |
125 | | - button:disabled { |
126 | | - background: #9ca3af; |
127 | | - cursor: not-allowed; |
128 | | - } |
129 | | - |
130 | | - .input-group { |
131 | | - margin-bottom: 15px; |
132 | | - } |
133 | | - |
134 | | - label { |
135 | | - display: block; |
136 | | - font-size: 14px; |
137 | | - font-weight: 500; |
138 | | - margin-bottom: 8px; |
139 | | - color: #333; |
140 | | - } |
141 | | - |
142 | | - input[type="text"] { |
143 | | - width: 100%; |
144 | | - padding: 10px; |
145 | | - border: 1px solid #d1d5db; |
146 | | - border-radius: 6px; |
147 | | - font-size: 14px; |
148 | | - font-family: monospace; |
149 | | - } |
150 | | - |
151 | | - input[type="text"]:focus { |
152 | | - outline: none; |
153 | | - border-color: #3b82f6; |
154 | | - box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); |
155 | | - } |
156 | | - |
157 | | - .message { |
158 | | - padding: 12px; |
159 | | - border-radius: 6px; |
160 | | - margin-top: 15px; |
161 | | - font-size: 14px; |
162 | | - } |
163 | | - |
164 | | - .message.success { |
165 | | - background: #d1fae5; |
166 | | - color: #065f46; |
167 | | - border: 1px solid #a7f3d0; |
168 | | - } |
169 | | - |
170 | | - .message.error { |
171 | | - background: #fee2e2; |
172 | | - color: #991b1b; |
173 | | - border: 1px solid #fecaca; |
174 | | - } |
175 | | - |
176 | | - .message.info { |
177 | | - background: #dbeafe; |
178 | | - color: #1e40af; |
179 | | - border: 1px solid #bfdbfe; |
180 | | - } |
181 | | - </style> |
182 | 7 | </head> |
183 | 8 | <body> |
184 | | - <div class="container"> |
185 | | - <h1>PaperDebugger Settings</h1> |
186 | | - <p class="subtitle">Manage extension permissions and settings</p> |
187 | | - |
188 | | - <div class="section"> |
189 | | - <div class="section-title">Host Permissions</div> |
190 | | - <div class="section-description"> |
191 | | - Request permissions to access specific websites. These permissions allow the extension to interact with the specified domains. |
192 | | - </div> |
193 | | - |
194 | | - <div class="input-group"> |
195 | | - <label for="permissionUrl">Website URL:</label> |
196 | | - <input |
197 | | - type="text" |
198 | | - id="permissionUrl" |
199 | | - placeholder="https://www.example.com/" |
200 | | - value="https://www.google.com/" |
201 | | - /> |
202 | | - </div> |
203 | | - |
204 | | - <button id="requestPermissionBtn">Request Permission</button> |
205 | | - <div id="message"></div> |
206 | | - |
207 | | - <div id="permissionsList" style="margin-top: 20px;"></div> |
208 | | - </div> |
209 | | - </div> |
210 | | - |
211 | | - <script src="settings.js"></script> |
| 9 | + <div id="root"></div> |
| 10 | + <script type="module" src="settings.js"></script> |
212 | 11 | </body> |
213 | 12 | </html> |
214 | 13 |
|
0 commit comments