-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
138 lines (131 loc) · 2.99 KB
/
Copy pathpopup.html
File metadata and controls
138 lines (131 loc) · 2.99 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Paperless-ngx Saver</title>
<style>
body {
width: 350px;
padding: 15px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
margin: 0;
}
h2 {
margin-top: 0;
font-size: 18px;
color: #333;
}
.status {
padding: 8px;
margin-bottom: 15px;
border-radius: 4px;
font-size: 13px;
}
.status.success {
background-color: #d4edda;
color: #155724;
}
.status.error {
background-color: #f8d7da;
color: #721c24;
}
.status.warning {
background-color: #fff3cd;
color: #856404;
}
.status.hidden {
display: none;
}
.input-group {
margin-bottom: 12px;
}
label {
display: block;
margin-bottom: 5px;
font-size: 13px;
font-weight: 500;
color: #555;
}
input, textarea {
width: 100%;
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 13px;
box-sizing: border-box;
}
textarea {
resize: vertical;
min-height: 60px;
}
button {
width: 100%;
padding: 10px;
margin-top: 5px;
border: none;
border-radius: 4px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s;
}
.btn-primary {
background-color: #007bff;
color: white;
}
.btn-primary:hover {
background-color: #0056b3;
}
.btn-primary:disabled {
background-color: #6c757d;
cursor: not-allowed;
}
.btn-secondary {
background-color: #6c757d;
color: white;
}
.btn-secondary:hover {
background-color: #545b62;
}
.settings-link {
text-align: center;
margin-top: 15px;
font-size: 12px;
}
.settings-link a {
color: #007bff;
text-decoration: none;
}
.settings-link a:hover {
text-decoration: underline;
}
.page-type {
font-size: 12px;
color: #666;
margin-bottom: 15px;
padding: 6px 10px;
background-color: #f8f9fa;
border-radius: 4px;
}
</style>
</head>
<body>
<h2>Save to Paperless-ngx</h2>
<div id="status" class="status hidden"></div>
<div id="pageType" class="page-type"></div>
<div class="input-group">
<label for="title">Document Title (optional)</label>
<input type="text" id="title" placeholder="Auto-generated from page title">
</div>
<div class="input-group">
<label for="tags">Tags (comma-separated)</label>
<input type="text" id="tags" placeholder="e.g., web, article, research">
</div>
<button id="saveBtn" class="btn-primary">Save to Paperless</button>
<div class="settings-link">
<a href="#" id="settingsLink">Configure Paperless-ngx Settings</a>
</div>
<script src="popup.js"></script>
</body>
</html>