Version Description
05/09/2020 =
Fix - WP 5.5 compatibility
Improvement - Switch to Gulp
Download this release
Release Info
Developer | sormano |
Plugin | WP Dashboard Notes |
Version | 1.0.10 |
Comparing to | |
See all releases |
Code changes from version 1.0.9 to 1.0.10
- assets/css/wp-dashboard-notes-admin.min.css +1 -335
- assets/css/wp-dashboard-notes-admin.scss +11 -1
- assets/js/wp-dashboard-notes-admin.js +1 -1
- assets/js/wp-dashboard-notes-admin.min.js +1 -1
- gulpfile.js +38 -0
- readme.txt +7 -2
- wp-dashboard-notes.php +6 -5
assets/css/wp-dashboard-notes-admin.min.css
CHANGED
@@ -1,335 +1 @@
|
|
1 |
-
input[type=text].add-list-item {
|
2 |
-
line-height: normal;
|
3 |
-
border-radius: 3px;
|
4 |
-
height: 35px;
|
5 |
-
padding: 5px 10px;
|
6 |
-
width: 75%;
|
7 |
-
border-color: #555;
|
8 |
-
background-color: rgba(255, 255, 255, 0.6); }
|
9 |
-
|
10 |
-
input[type=text].add-list-item::-webkit-input-placeholder {
|
11 |
-
color: #555; }
|
12 |
-
|
13 |
-
input[type=text].add-list-item:-moz-placeholder {
|
14 |
-
color: #555; }
|
15 |
-
|
16 |
-
input[type=text].add-list-item::-moz-placeholder {
|
17 |
-
color: #555; }
|
18 |
-
|
19 |
-
input[type=text].add-list-item:-ms-input-placeholder {
|
20 |
-
color: #555; }
|
21 |
-
|
22 |
-
.wp-dashboard-note {
|
23 |
-
line-height: 1.5;
|
24 |
-
font-size: 14px;
|
25 |
-
min-height: 30px; }
|
26 |
-
|
27 |
-
.wp-dashboard-note-wrap {
|
28 |
-
padding-bottom: 40px; }
|
29 |
-
|
30 |
-
.wp-dashboard-note-options {
|
31 |
-
text-align: left; }
|
32 |
-
|
33 |
-
.list-note .wp-dashboard-note-options {
|
34 |
-
margin-top: 15px; }
|
35 |
-
|
36 |
-
.wp-dashboard-note .list-item {
|
37 |
-
min-height: 30px;
|
38 |
-
line-height: 30px;
|
39 |
-
width: 100%;
|
40 |
-
display: block; }
|
41 |
-
|
42 |
-
.wp-dashboard-note div:last-child {
|
43 |
-
border-bottom: 0; }
|
44 |
-
|
45 |
-
/* Sortable */
|
46 |
-
.wpdn-note-sortable {
|
47 |
-
color: #6f6f6f;
|
48 |
-
margin-right: 5px;
|
49 |
-
cursor: move;
|
50 |
-
line-height: inherit;
|
51 |
-
opacity: 0; }
|
52 |
-
|
53 |
-
.list-item:hover .wpdn-note-sortable {
|
54 |
-
opacity: 1; }
|
55 |
-
|
56 |
-
.list-item .dashicons-no-alt {
|
57 |
-
color: rgba(0, 0, 0, 0.3);
|
58 |
-
text-align: right;
|
59 |
-
float: right;
|
60 |
-
cursor: pointer;
|
61 |
-
line-height: inherit; }
|
62 |
-
|
63 |
-
.list-item input[type=checkbox] {
|
64 |
-
margin-right: 15px;
|
65 |
-
background: transparent;
|
66 |
-
border-color: #555; }
|
67 |
-
|
68 |
-
.list-item input[type=checkbox]:checked:before {
|
69 |
-
color: #555; }
|
70 |
-
|
71 |
-
.list-item input[type=checkbox]:checked ~ span {
|
72 |
-
text-decoration: line-through;
|
73 |
-
color: #6f6f6f; }
|
74 |
-
|
75 |
-
.list-item .dashicons-no-alt:hover {
|
76 |
-
color: #999; }
|
77 |
-
|
78 |
-
.list-item:hover .dashicons-no-alt {
|
79 |
-
visibility: visible; }
|
80 |
-
|
81 |
-
.list-item .dashicons-no-alt {
|
82 |
-
visibility: hidden; }
|
83 |
-
|
84 |
-
.wp-dashboard-note-wrap .wpdn-add-item {
|
85 |
-
line-height: 2; }
|
86 |
-
|
87 |
-
.list-item .wpdn-add-item {
|
88 |
-
color: #ccc;
|
89 |
-
margin-right: 8px; }
|
90 |
-
|
91 |
-
.list-item-content {
|
92 |
-
line-height: 1; }
|
93 |
-
|
94 |
-
.wp-dashboard-note-wrap:hover .wpdn-extra {
|
95 |
-
opacity: 1; }
|
96 |
-
|
97 |
-
.wpdn-extra {
|
98 |
-
background: rgba(76, 76, 76, 0.9);
|
99 |
-
position: absolute;
|
100 |
-
opacity: 0;
|
101 |
-
width: 100%;
|
102 |
-
left: 0;
|
103 |
-
bottom: 0;
|
104 |
-
height: 40px;
|
105 |
-
padding-left: 12px;
|
106 |
-
box-sizing: border-box;
|
107 |
-
-webkit-transition: opacity 0.3s ease-in-out;
|
108 |
-
transition: opacity 0.2s ease-in-out; }
|
109 |
-
|
110 |
-
.wpdn-extra * {
|
111 |
-
color: #fff; }
|
112 |
-
|
113 |
-
.wpdn-extra .dashicons:hover {
|
114 |
-
color: #ccc;
|
115 |
-
cursor: pointer; }
|
116 |
-
|
117 |
-
[data-note-type=list] .saved-icon .dashicons,
|
118 |
-
.wpdn-extra .dashicons {
|
119 |
-
line-height: 2; }
|
120 |
-
|
121 |
-
.wpdn-extra .dashicons {
|
122 |
-
margin-left: 5px; }
|
123 |
-
|
124 |
-
[data-note-type=regular] .saved-icon .dashicons {
|
125 |
-
line-height: 1; }
|
126 |
-
|
127 |
-
.hndle span {
|
128 |
-
cursor: text;
|
129 |
-
-webkit-user-select: text;
|
130 |
-
-moz-user-select: text;
|
131 |
-
-ms-user-select: text;
|
132 |
-
-o-user-select: text;
|
133 |
-
user-select: text; }
|
134 |
-
|
135 |
-
.hndle .wpdn-edit-title {
|
136 |
-
display: none;
|
137 |
-
height: 19px;
|
138 |
-
color: #222;
|
139 |
-
cursor: pointer;
|
140 |
-
margin-left: 5px; }
|
141 |
-
|
142 |
-
.hndle:hover .dashicons {
|
143 |
-
display: inline-block; }
|
144 |
-
|
145 |
-
[id^=note_] .handlediv {
|
146 |
-
color: #222;
|
147 |
-
color: transparent; }
|
148 |
-
|
149 |
-
/* Open Link */
|
150 |
-
.wp-dashboard-note-wrap a {
|
151 |
-
position: relative; }
|
152 |
-
|
153 |
-
.wp-dashboard-note-wrap :focus {
|
154 |
-
outline: none; }
|
155 |
-
|
156 |
-
.link-hover {
|
157 |
-
background: rgba(76, 76, 76, 0.9);
|
158 |
-
position: absolute;
|
159 |
-
left: 0px;
|
160 |
-
top: 1.6em;
|
161 |
-
padding: 5px;
|
162 |
-
border-radius: 4px;
|
163 |
-
font-size: 12px;
|
164 |
-
z-index: 99;
|
165 |
-
min-width: 55px;
|
166 |
-
text-align: center; }
|
167 |
-
|
168 |
-
.link-hover a {
|
169 |
-
color: white; }
|
170 |
-
|
171 |
-
/* Saving */
|
172 |
-
.hndle .status {
|
173 |
-
float: right; }
|
174 |
-
|
175 |
-
.saving-icon img {
|
176 |
-
vertical-align: middle; }
|
177 |
-
|
178 |
-
.saved-icon,
|
179 |
-
.saving-icon {
|
180 |
-
color: #222;
|
181 |
-
font-weight: normal;
|
182 |
-
font-size: 13px; }
|
183 |
-
|
184 |
-
/* Hide pencil at screen options titles */
|
185 |
-
.metabox-prefs .wpdn-edit-title.dashicons-edit {
|
186 |
-
display: none; }
|
187 |
-
|
188 |
-
/****************************
|
189 |
-
* Colors
|
190 |
-
****************************/
|
191 |
-
span.wpdn-color-note:hover .wpdn-color-palette {
|
192 |
-
display: inline-block; }
|
193 |
-
|
194 |
-
.wpdn-color-palette {
|
195 |
-
min-width: 50px;
|
196 |
-
width: auto;
|
197 |
-
padding: 4px 8px 2px 8px;
|
198 |
-
margin-left: -8px;
|
199 |
-
position: absolute;
|
200 |
-
top: -24px;
|
201 |
-
background-color: rgba(76, 76, 76, 0.9);
|
202 |
-
height: 18px;
|
203 |
-
display: none; }
|
204 |
-
|
205 |
-
.color {
|
206 |
-
width: 10px;
|
207 |
-
height: 10px;
|
208 |
-
border: 1px solid transparent;
|
209 |
-
margin: 2.5px;
|
210 |
-
display: inline-block; }
|
211 |
-
|
212 |
-
.color:hover {
|
213 |
-
border: 1px solid #ccc;
|
214 |
-
cursor: pointer; }
|
215 |
-
|
216 |
-
.color-white {
|
217 |
-
background-color: #ffffff; }
|
218 |
-
|
219 |
-
.color-red {
|
220 |
-
background-color: #f7846a; }
|
221 |
-
|
222 |
-
.color-orange {
|
223 |
-
background-color: #ffbd22; }
|
224 |
-
|
225 |
-
.color-yellow {
|
226 |
-
background-color: #eeee22; }
|
227 |
-
|
228 |
-
.color-blue {
|
229 |
-
background-color: #66ccdd; }
|
230 |
-
|
231 |
-
.color-green {
|
232 |
-
background-color: #bbe535; }
|
233 |
-
|
234 |
-
.color-black {
|
235 |
-
background-color: #777777; }
|
236 |
-
|
237 |
-
/****************************
|
238 |
-
* Black
|
239 |
-
****************************/
|
240 |
-
[data-color-text=black] {
|
241 |
-
color: white; }
|
242 |
-
|
243 |
-
[data-color-text=black] .wpdn-note-sortable {
|
244 |
-
color: white; }
|
245 |
-
|
246 |
-
[data-color-text=black] .wpdn-add-item {
|
247 |
-
color: white; }
|
248 |
-
|
249 |
-
[data-color-text=black] .wp-dashboard-note .list-item {
|
250 |
-
border-color: white; }
|
251 |
-
|
252 |
-
[data-color-text=black] input[type=checkbox] {
|
253 |
-
border: 1px solid white; }
|
254 |
-
|
255 |
-
[data-color-text=black] .list-item input[type=checkbox]:checked ~ span {
|
256 |
-
color: white; }
|
257 |
-
|
258 |
-
[data-color-text=black] [id^=note] .handlediv {
|
259 |
-
color: white; }
|
260 |
-
|
261 |
-
[data-color-text=black] input[type=text].add-list-item {
|
262 |
-
border-color: #FFF;
|
263 |
-
color: #FFF;
|
264 |
-
background: rgba(255, 255, 255, 0.3); }
|
265 |
-
|
266 |
-
[data-color-text=black] input[type=text].add-list-item::-webkit-input-placeholder {
|
267 |
-
color: white; }
|
268 |
-
|
269 |
-
[data-color-text=black] input[type=text].add-list-item:-moz-placeholder {
|
270 |
-
color: white; }
|
271 |
-
|
272 |
-
[data-color-text=black] input[type=text].add-list-item::-moz-placeholder {
|
273 |
-
color: white; }
|
274 |
-
|
275 |
-
[data-color-text=black] input[type=text].add-list-item:-ms-input-placeholder {
|
276 |
-
color: white; }
|
277 |
-
|
278 |
-
[data-color-text=black] .saved-icon,
|
279 |
-
[data-color-text=black] .saving-icon {
|
280 |
-
color: white; }
|
281 |
-
|
282 |
-
/****************************
|
283 |
-
* Template
|
284 |
-
****************************/
|
285 |
-
[data-color-text=template] {
|
286 |
-
color: inherit; }
|
287 |
-
|
288 |
-
[data-color-text=template] .wpdn-note-sortable {
|
289 |
-
color: inherit; }
|
290 |
-
|
291 |
-
[data-color-text=template] .wpdn-add-item {
|
292 |
-
color: inherit; }
|
293 |
-
|
294 |
-
[data-color-text=template] .wp-dashboard-note .list-item {
|
295 |
-
border-color: inherit; }
|
296 |
-
|
297 |
-
[data-color-text=template] input[type=checkbox] {
|
298 |
-
border: 1px solid inherit; }
|
299 |
-
|
300 |
-
[data-color-text=template] .list-item input[type=checkbox]:checked ~ span {
|
301 |
-
color: inherit; }
|
302 |
-
|
303 |
-
[data-color-text=template] [id^=note] .handlediv {
|
304 |
-
color: inherit; }
|
305 |
-
|
306 |
-
[data-color-text=template] input[type=text].add-list-item {
|
307 |
-
border-color: inherit;
|
308 |
-
color: inherit;
|
309 |
-
background: inherit; }
|
310 |
-
|
311 |
-
[data-color-text=template] input[type=text].add-list-item::-webkit-input-placeholder {
|
312 |
-
color: inherit; }
|
313 |
-
|
314 |
-
[data-color-text=template] input[type=text].add-list-item:-moz-placeholder {
|
315 |
-
color: inherit; }
|
316 |
-
|
317 |
-
[data-color-text=template] input[type=text].add-list-item::-moz-placeholder {
|
318 |
-
color: inherit; }
|
319 |
-
|
320 |
-
[data-color-text=template] input[type=text].add-list-item:-ms-input-placeholder {
|
321 |
-
color: inherit; }
|
322 |
-
|
323 |
-
[data-color-text=template] .saved-icon,
|
324 |
-
[data-color-text=template] .saving-icon {
|
325 |
-
color: inherit; }
|
326 |
-
|
327 |
-
/****************************
|
328 |
-
* Mobile Adjustments
|
329 |
-
****************************/
|
330 |
-
@media only screen and (max-device-width: 1024px) {
|
331 |
-
.wpdn-extra {
|
332 |
-
opacity: 1; }
|
333 |
-
|
334 |
-
.wpdn-edit-title {
|
335 |
-
display: inline-block !important; } }
|
1 |
+
input[type=text].add-list-item{line-height:normal;border-radius:3px;height:35px;padding:5px 10px;width:75%;border-color:#555;background-color:rgba(255,255,255,0.6)}input[type=text].add-list-item::-webkit-input-placeholder{color:#555}input[type=text].add-list-item:-moz-placeholder{color:#555}input[type=text].add-list-item::-moz-placeholder{color:#555}input[type=text].add-list-item:-ms-input-placeholder{color:#555}.wp-dashboard-note{line-height:1.5;font-size:14px;min-height:30px}.wp-dashboard-note-wrap{padding-bottom:40px}.wp-dashboard-note-options{text-align:left}.list-note .wp-dashboard-note-options{margin-top:15px}.wp-dashboard-note .list-item{min-height:30px;line-height:30px;width:100%;display:block}.wp-dashboard-note div:last-child,[id^=note_] .postbox-header{border-bottom:0}.wpdn-note-sortable{color:#6f6f6f;margin-right:5px;cursor:move;line-height:inherit;opacity:0}.list-item:hover .wpdn-note-sortable{opacity:1}.list-item .dashicons-no-alt{color:rgba(0,0,0,0.3);text-align:right;float:right;cursor:pointer;line-height:inherit}.list-item input[type=checkbox]{margin-right:15px;background:transparent;border-color:#555}.list-item input[type=checkbox]:checked:before{color:#555}.list-item input[type=checkbox]:checked ~ span{text-decoration:line-through;color:#6f6f6f}.list-item .dashicons-no-alt:hover{color:#999}.list-item:hover .dashicons-no-alt{visibility:visible}.list-item .dashicons-no-alt{visibility:hidden}.wp-dashboard-note-wrap .wpdn-add-item{line-height:2}.list-item .wpdn-add-item{color:#ccc;margin-right:8px}.list-item-content{line-height:1}.wp-dashboard-note-wrap:hover .wpdn-extra{opacity:1}.wpdn-extra{background:rgba(76,76,76,0.9);position:absolute;opacity:0;width:100%;left:0;bottom:0;height:40px;padding-left:12px;box-sizing:border-box;-webkit-transition:opacity 0.3s ease-in-out;transition:opacity 0.2s ease-in-out}.wpdn-extra *{color:#fff}.wpdn-extra .dashicons:hover{color:#ccc;cursor:pointer}[data-note-type=list] .saved-icon .dashicons,.wpdn-extra .dashicons{line-height:2}.wpdn-extra .dashicons{margin-left:5px}[data-note-type=regular] .saved-icon .dashicons{line-height:1}.hndle span{cursor:text;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;-o-user-select:text;user-select:text}[id^=note_] .postbox-header .hndle{justify-content:flex-start}.hndle .wpdn-title:focus{outline:none !important}.hndle .wpdn-edit-title{display:none;height:19px;color:#222;cursor:pointer;margin-left:5px}.hndle:hover .dashicons{display:inline-block}[id^=note_] .handlediv{color:#222;color:transparent}.wp-dashboard-note-wrap a{position:relative}.wp-dashboard-note-wrap :focus{outline:none}.link-hover{background:rgba(76,76,76,0.9);position:absolute;left:0px;top:1.6em;padding:5px;border-radius:4px;font-size:12px;z-index:99;min-width:55px;text-align:center}.link-hover a{color:white}.hndle .status{float:right}.saving-icon img{vertical-align:middle}.saved-icon,.saving-icon{color:#222;font-weight:normal;font-size:13px}.metabox-prefs .wpdn-edit-title.dashicons-edit{display:none}span.wpdn-color-note:hover .wpdn-color-palette{display:inline-block}.wpdn-color-palette{min-width:50px;width:auto;padding:4px 8px 2px 8px;margin-left:-8px;position:absolute;top:-24px;background-color:rgba(76,76,76,0.9);height:18px;display:none}.color{width:10px;height:10px;border:1px solid transparent;margin:2.5px;display:inline-block}.color:hover{border:1px solid #ccc;cursor:pointer}.color-white{background-color:#ffffff}.color-red{background-color:#f7846a}.color-orange{background-color:#ffbd22}.color-yellow{background-color:#eeee22}.color-blue{background-color:#66ccdd}.color-green{background-color:#bbe535}.color-black{background-color:#777777}[data-color-text=black]{color:white}[data-color-text=black] .wpdn-note-sortable{color:white}[data-color-text=black] .wpdn-add-item{color:white}[data-color-text=black] .wp-dashboard-note .list-item{border-color:white}[data-color-text=black] input[type=checkbox]{border:1px solid white}[data-color-text=black] .list-item input[type=checkbox]:checked ~ span{color:white}[data-color-text=black] [id^=note] .handlediv{color:white}[data-color-text=black] input[type=text].add-list-item{border-color:#FFF;color:#FFF;background:rgba(255,255,255,0.3)}[data-color-text=black] input[type=text].add-list-item::-webkit-input-placeholder{color:white}[data-color-text=black] input[type=text].add-list-item:-moz-placeholder{color:white}[data-color-text=black] input[type=text].add-list-item::-moz-placeholder{color:white}[data-color-text=black] input[type=text].add-list-item:-ms-input-placeholder{color:white}[data-color-text=black] .saved-icon,[data-color-text=black] .saving-icon{color:white}[data-color-text=template]{color:inherit}[data-color-text=template] .wpdn-note-sortable{color:inherit}[data-color-text=template] .wpdn-add-item{color:inherit}[data-color-text=template] .wp-dashboard-note .list-item{border-color:inherit}[data-color-text=template] input[type=checkbox]{border:1px solid inherit}[data-color-text=template] .list-item input[type=checkbox]:checked ~ span{color:inherit}[data-color-text=template] [id^=note] .handlediv{color:inherit}[data-color-text=template] input[type=text].add-list-item{border-color:inherit;color:inherit;background:inherit}[data-color-text=template] input[type=text].add-list-item::-webkit-input-placeholder{color:inherit}[data-color-text=template] input[type=text].add-list-item:-moz-placeholder{color:inherit}[data-color-text=template] input[type=text].add-list-item::-moz-placeholder{color:inherit}[data-color-text=template] input[type=text].add-list-item:-ms-input-placeholder{color:inherit}[data-color-text=template] .saved-icon,[data-color-text=template] .saving-icon{color:inherit}@media only screen and (max-device-width: 1024px){.wpdn-extra{opacity:1}.wpdn-edit-title{display:inline-block !important}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/css/wp-dashboard-notes-admin.scss
CHANGED
@@ -43,7 +43,7 @@ input[type=text].add-list-item:-ms-input-placeholder {
|
|
43 |
width: 100%;
|
44 |
display: block;
|
45 |
}
|
46 |
-
.wp-dashboard-note div:last-child {
|
47 |
border-bottom: 0;
|
48 |
}
|
49 |
|
@@ -138,6 +138,16 @@ input[type=text].add-list-item:-ms-input-placeholder {
|
|
138 |
-o-user-select: text;
|
139 |
user-select: text;
|
140 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
.hndle .wpdn-edit-title {
|
142 |
display: none;
|
143 |
height: 19px;
|
43 |
width: 100%;
|
44 |
display: block;
|
45 |
}
|
46 |
+
.wp-dashboard-note div:last-child, [id^=note_] .postbox-header {
|
47 |
border-bottom: 0;
|
48 |
}
|
49 |
|
138 |
-o-user-select: text;
|
139 |
user-select: text;
|
140 |
}
|
141 |
+
|
142 |
+
[id^=note_] .postbox-header .hndle {
|
143 |
+
justify-content: flex-start;
|
144 |
+
}
|
145 |
+
.hndle .wpdn-title {
|
146 |
+
|
147 |
+
&:focus {
|
148 |
+
outline: none !important;
|
149 |
+
}
|
150 |
+
}
|
151 |
.hndle .wpdn-edit-title {
|
152 |
display: none;
|
153 |
height: 19px;
|
assets/js/wp-dashboard-notes-admin.js
CHANGED
@@ -97,7 +97,7 @@ jQuery( document ).ready( function($) {
|
|
97 |
action: 'wpdn_update_note',
|
98 |
post_id: post_id.replace( 'note_', '' ),
|
99 |
post_content: $( '#' + post_id + ' div.wp-dashboard-note' ).html(),
|
100 |
-
post_title: $( '#' + post_id + '
|
101 |
note_visibility: $( '#' + post_id + ' [data-visibility]' ).attr( 'data-visibility' ),
|
102 |
note_color_text: $( '#' + post_id + ' [data-color-text]' ).attr( 'data-color-text' ),
|
103 |
note_color: $( '#' + post_id + ' [data-note-color]' ).attr( 'data-note-color' ),
|
97 |
action: 'wpdn_update_note',
|
98 |
post_id: post_id.replace( 'note_', '' ),
|
99 |
post_content: $( '#' + post_id + ' div.wp-dashboard-note' ).html(),
|
100 |
+
post_title: $( '#' + post_id + ' .hndle .wpdn-title' ).html(),
|
101 |
note_visibility: $( '#' + post_id + ' [data-visibility]' ).attr( 'data-visibility' ),
|
102 |
note_color_text: $( '#' + post_id + ' [data-color-text]' ).attr( 'data-color-text' ),
|
103 |
note_color: $( '#' + post_id + ' [data-note-color]' ).attr( 'data-note-color' ),
|
assets/js/wp-dashboard-notes-admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(
|
1 |
+
"use strict";jQuery(document).ready(function(i){i("body, .list-item-content").on("keydown",".add-list-item",function(t){if(13==t.keyCode&&""!=i(this).val()){var e=i(this).closest(".postbox").attr("id"),o='<div class="list-item"><div class="dashicons dashicons-menu wpdn-note-sortable"></div><input type="checkbox"><span class="list-item-content" contenteditable="true">'+i(this).val()+'</span><div class="delete-item dashicons dashicons-no-alt"></div></div>';i("#"+e+" div.wp-dashboard-note").append(o),i(this).val(""),i(this).trigger("note-sortable"),i(this).trigger("wpdn-update",this)}}),i(document.body).on("click",".delete-item",function(){var t=i(this).closest(".postbox").attr("id");i(this).parent(".list-item").remove(),i(document.body).trigger("wpdn-update",["",t])}),i(document.body).on("click",".wpdn-visibility",function(){i(this).toggleClass("dashicons-admin-users dashicons-groups"),"public"==i(this).parent().attr("data-visibility")?(i(this).parent(".wpdn-toggle-visibility").attr("data-visibility","private"),i(this).parent(".wpdn-toggle-visibility").attr("title","Visibility: Just me")):(i(this).parent(".wpdn-toggle-visibility").attr("data-visibility","public"),i(this).parent(".wpdn-toggle-visibility").attr("title","Visibility: Everyone")),i(this).trigger("wpdn-update",this)}),i(document.body).on("click",".wpdn-note-type",function(){i(this).toggleClass("dashicons-list-view dashicons-welcome-write-blog");var t=i(this).closest("[data-note-type]").attr("data-note-type");"regular"==t?i(this).closest("[data-note-type]").attr("data-note-type","list"):i(this).closest("[data-note-type]").attr("data-note-type","regular");var e={action:"wpdn_toggle_note",post_id:i(this).closest(".postbox").attr("id").replace("note_",""),note_type:"regular"==t?"list":"regular",nonce:wpdn.nonce};i.post(ajaxurl,e,function(t){i("#note_"+e.post_id+" .inside").html(t).trigger("note-sortable")}),i(this).trigger("wpdn-update",this)}),i(document.body).on("wpdn-update",function(t,e,o){if(""!=e&&(o=i(e).closest(".postbox").attr("id")),o){i("#"+o+" .hndle .status").html('<span class="saving-icon"><img src="images/wpspin_light.gif"/> saving...</span>');var n={action:"wpdn_update_note",post_id:o.replace("note_",""),post_content:i("#"+o+" div.wp-dashboard-note").html(),post_title:i("#"+o+" .hndle .wpdn-title").html(),note_visibility:i("#"+o+" [data-visibility]").attr("data-visibility"),note_color_text:i("#"+o+" [data-color-text]").attr("data-color-text"),note_color:i("#"+o+" [data-note-color]").attr("data-note-color"),note_type:i("#"+o+" [data-note-type]").attr("data-note-type"),nonce:wpdn.nonce};i.post(ajaxurl,n,function(t){i("#"+o+" .hndle .status").html('<span class="saved-icon"><div class="dashicons dashicons-yes"></div> saved!</span>'),i("#"+o+" .hndle .status *").fadeOut(1e3,function(){i(this).html("")})})}}),i(document.body).on("click",".wpdn-delete-note",function(){var t=i(this).closest(".postbox").attr("id");i("#"+t).slideUp(500,function(){i(this).remove()});var e={action:"wpdn_delete_note",post_id:t.replace("note_",""),nonce:wpdn.nonce};i.post(ajaxurl,e)}),i(document.body).on("click",".wpdn-add-note, #wp-admin-bar-wpdn-add-note a",function(t){var e={action:"wpdn_add_note",nonce:wpdn.nonce};i.post(ajaxurl,e,function(t){t=jQuery.parseJSON(t),jQuery("#postbox-container-1 #normal-sortables").append(t.note),jQuery("body, html").animate({scrollTop:i("#note_"+t.post_id).offset().top-50},750),jQuery("#note_"+t.post_id+" .add-list-item").focus()}),i("html, body").bind("scroll mousedown DOMMouseScroll mousewheel keyup",function(t){(0<t.which||"mousedown"===t.type||"mousewheel"===t.type)&&i("html, body").stop().unbind("scroll mousedown DOMMouseScroll mousewheel keyup")}),t.preventDefault()}),i(document.body).on("click",".color",function(){var t=i(this).attr("data-select-color"),e=i(this).attr("data-select-color-text");i(this).closest(".postbox").css("background-color",t),i(this).closest(".wp-dashboard-note-wrap").attr("data-color-text",e),i(this).closest("[data-note-color]").attr("data-note-color",t),i(this).closest("[data-color-text]").attr("data-color-text",e),i(this).trigger("wpdn-update",this)}),i(document.body).on("blur",".list-item-content, [contenteditable=true]",function(){i(this).trigger("wpdn-update",this)}),i(document.body).on("keydown","[data-note-type=list], .wpdn-title, .list-item-content",function(t){if(13==t.keyCode)return i(this).trigger("wpdn-update",this),i(this).blur(),!1}),i(document.body).on("keydown","[data-note-type=regular] .wp-dashboard-note",function(t){if(13==t.keyCode&&(t.ctrlKey||t.metaKey))return i(this).trigger("wpdn-update",this),i(this).blur(),!1}),i("body, .postbox .hndle").on("click",".wpdn-edit-title",function(t){i(this).prev().focus(),document.execCommand("selectAll",!1,null),t.stopPropagation()}),i("input[type=checkbox]").change(function(){this.checked?i(this).attr("checked","checked"):i(this).removeAttr("checked"),i(this).trigger("wpdn-update",this)}),i(document.body).on("note-sortable",function(){i(".wp-dashboard-note").sortable({handle:".wpdn-note-sortable",update:function(t,e){i(this).trigger("wpdn-update",this)},connectWith:[".wp-dashboard-note"],axis:"y"})}).trigger("note-sortable"),i(".wp-dashboard-note-wrap a").hover(function(){i(this).append('<span class="link-hover" contenteditable="false"><a href="'+i(this).attr("href")+'" target="_blank" contenteditable="false">Open link</a></span>')},function(){i(".link-hover").remove()}),i(document.body).on("paste","[contenteditable]",function(t){t.preventDefault();var e=(t.originalEvent||t).clipboardData.getData("text/plain");document.execCommand("insertText",!1,e)})});
|
gulpfile.js
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
'use strict';
|
2 |
+
|
3 |
+
const gulp = require('gulp');
|
4 |
+
const sass = require('gulp-sass');
|
5 |
+
const uglify = require('gulp-uglify');
|
6 |
+
const rename = require("gulp-rename");
|
7 |
+
const sourcemaps = require('gulp-sourcemaps');
|
8 |
+
const babel = require('gulp-babel');
|
9 |
+
|
10 |
+
// CSS
|
11 |
+
gulp.task('sass', function () {
|
12 |
+
return gulp.src('./assets/**/css/*.scss')
|
13 |
+
// .pipe(sourcemaps.init())
|
14 |
+
.pipe(sass({errLogToConsole: true, outputStyle: 'compressed'}))
|
15 |
+
.pipe(rename({suffix: '.min'}))
|
16 |
+
// .pipe(sourcemaps.write('./'))
|
17 |
+
.pipe(gulp.dest('./assets'))
|
18 |
+
});
|
19 |
+
|
20 |
+
// JS
|
21 |
+
gulp.task('js', function () {
|
22 |
+
return gulp.src(['assets/**/js/*.js', '!assets/**/js/*.min.js'])
|
23 |
+
.pipe(babel({
|
24 |
+
presets: ['@babel/env']
|
25 |
+
}))
|
26 |
+
.pipe(uglify())
|
27 |
+
.pipe(rename({suffix: '.min'}))
|
28 |
+
.pipe(gulp.dest('./assets/'));
|
29 |
+
});
|
30 |
+
|
31 |
+
gulp.task('watch:sass', function () {
|
32 |
+
gulp.watch('./assets/**/css/*.scss', gulp.series('sass'));
|
33 |
+
});
|
34 |
+
gulp.task('watch:js', function () {
|
35 |
+
gulp.watch(['assets/**/js/*.js', '!assets/**/js/*.min.js'], gulp.series('js'));
|
36 |
+
});
|
37 |
+
|
38 |
+
gulp.task('watch', gulp.parallel('sass', 'js', 'watch:sass', 'watch:js'));
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: sormano
|
3 |
Tags: note, notes, dashboard notes, wordpress notes, admin note, private note, notification, collaboration, workflow, to do list, note list, note widget
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to:
|
6 |
-
Stable tag: 1.0.
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -139,6 +139,11 @@ function wpdn_add_style() {
|
|
139 |
|
140 |
== Changelog ==
|
141 |
|
|
|
|
|
|
|
|
|
|
|
142 |
= 1.0.9 - 05/12/2017 =
|
143 |
|
144 |
* Improvement - Make sure scripts are only loaded on the dashboard, not on any other page. Why wasn't this included before?!
|
2 |
Contributors: sormano
|
3 |
Tags: note, notes, dashboard notes, wordpress notes, admin note, private note, notification, collaboration, workflow, to do list, note list, note widget
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 6.0
|
6 |
+
Stable tag: 1.0.10
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
139 |
|
140 |
== Changelog ==
|
141 |
|
142 |
+
= 1.0.10 - 05/09/2020 =
|
143 |
+
|
144 |
+
* Fix - WP 5.5 compatibility
|
145 |
+
* Improvement - Switch to Gulp
|
146 |
+
|
147 |
= 1.0.9 - 05/12/2017 =
|
148 |
|
149 |
* Improvement - Make sure scripts are only loaded on the dashboard, not on any other page. Why wasn't this included before?!
|
wp-dashboard-notes.php
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
* Plugin Name: WP Dashboard Notes
|
4 |
* Plugin URI: https://wordpress.org/plugins/wp-dashboard-notes/
|
5 |
* Description: Working in a team? Want to make notes? You can do just that with WP Dashboard Notes. Create beautiful notes with a nice user experience.
|
6 |
-
* Version: 1.0.
|
7 |
* Author: Jeroen Sormani
|
8 |
-
* Author URI:
|
9 |
* Text Domain: wp-dashboard-notes
|
10 |
*/
|
11 |
|
@@ -30,7 +30,7 @@ class WP_Dashboard_Notes {
|
|
30 |
* @since 1.0.3
|
31 |
* @var string $version Plugin version number.
|
32 |
*/
|
33 |
-
public $version = '1.0.
|
34 |
|
35 |
|
36 |
/**
|
@@ -43,7 +43,7 @@ class WP_Dashboard_Notes {
|
|
43 |
|
44 |
|
45 |
/**
|
46 |
-
*
|
47 |
*
|
48 |
* @since 1.0.0
|
49 |
* @access private
|
@@ -151,12 +151,13 @@ class WP_Dashboard_Notes {
|
|
151 |
* @since 1.0.0
|
152 |
*/
|
153 |
public function admin_enqueue_scripts() {
|
|
|
154 |
|
155 |
// Javascript
|
156 |
wp_localize_script( 'wpdn_admin_js', 'wpdn', array(
|
157 |
'nonce' => wp_create_nonce( 'wpdn-ajax-nonce' ),
|
158 |
) );
|
159 |
-
wp_enqueue_script( 'wpdn_admin_js', plugin_dir_url( __FILE__ ) . 'assets/js/wp-dashboard-notes-admin.
|
160 |
|
161 |
// Stylesheet
|
162 |
wp_enqueue_style( 'wpdn_admin_css', plugin_dir_url( __FILE__ ) . 'assets/css/wp-dashboard-notes-admin.min.css', array( 'dashicons' ), $this->version );
|
3 |
* Plugin Name: WP Dashboard Notes
|
4 |
* Plugin URI: https://wordpress.org/plugins/wp-dashboard-notes/
|
5 |
* Description: Working in a team? Want to make notes? You can do just that with WP Dashboard Notes. Create beautiful notes with a nice user experience.
|
6 |
+
* Version: 1.0.10
|
7 |
* Author: Jeroen Sormani
|
8 |
+
* Author URI: https://jeroensormani.com/
|
9 |
* Text Domain: wp-dashboard-notes
|
10 |
*/
|
11 |
|
30 |
* @since 1.0.3
|
31 |
* @var string $version Plugin version number.
|
32 |
*/
|
33 |
+
public $version = '1.0.10';
|
34 |
|
35 |
|
36 |
/**
|
43 |
|
44 |
|
45 |
/**
|
46 |
+
* Instance of WP_Dashboard_Notes.
|
47 |
*
|
48 |
* @since 1.0.0
|
49 |
* @access private
|
151 |
* @since 1.0.0
|
152 |
*/
|
153 |
public function admin_enqueue_scripts() {
|
154 |
+
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
155 |
|
156 |
// Javascript
|
157 |
wp_localize_script( 'wpdn_admin_js', 'wpdn', array(
|
158 |
'nonce' => wp_create_nonce( 'wpdn-ajax-nonce' ),
|
159 |
) );
|
160 |
+
wp_enqueue_script( 'wpdn_admin_js', plugin_dir_url( __FILE__ ) . 'assets/js/wp-dashboard-notes-admin' . $suffix . '.js', array( 'jquery', 'jquery-ui-sortable' ), $this->version );
|
161 |
|
162 |
// Stylesheet
|
163 |
wp_enqueue_style( 'wpdn_admin_css', plugin_dir_url( __FILE__ ) . 'assets/css/wp-dashboard-notes-admin.min.css', array( 'dashicons' ), $this->version );
|