Skip to content

Commit d205412

Browse files
committed
Change title and TODO sort
1 parent f78e99e commit d205412

8 files changed

+16
-7
lines changed

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Zero(Beta)",
3-
"version": "0.0.2",
3+
"version": "0.1.0",
44
"manifest_version": 2,
55
"description": "An extension to manage todo list.",
66
"icons": {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zero",
3-
"version": "0.0.2",
3+
"version": "0.1.0",
44
"description": "An lightweight chrome extension to manage daily todo list.",
55
"main": "index.js",
66
"directories": {

src/App/index.vue

+11-2
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@
7373
var date = this.getCurrentDate();
7474
var day = date.getDay();
7575
day = weekObj[day];
76+
if (this.today === this.currentDate) {
77+
return '<b>Today</b>'
78+
}
7679
return '<b>' + day + '</b>' + ' ' + this.currentDate;
7780
}
7881
},
@@ -98,9 +101,15 @@
98101
date: _this.currentDate
99102
}, function(response) {
100103
if (!response.map) return;
101-
response.map(function(v, i) {
104+
response.forEach((v, i) => {
102105
v.showAction = false;
103-
return v;
106+
})
107+
response.sort((a, b) => {
108+
if (a.status === 'done') {
109+
return 1;
110+
} else {
111+
return -1;
112+
}
104113
});
105114
_this.todos = response;
106115
});

zero.crx

20 Bytes
Binary file not shown.

zero/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html><html><head><title>Todo List</title><meta http-equiv=content-type content="text/html;charset=utf-8"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link href=./static/css/app.32ebd0a07eb8535f025a5b194057bd48.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.a55df547cd90ecd2f408.js></script><script type=text/javascript src=./static/js/vendor.8a872037d85a01d1e372.js></script><script type=text/javascript src=./static/js/app.d122638bce916f1a0846.js></script></body></html>
1+
<!DOCTYPE html><html><head><title>Todo List</title><meta http-equiv=content-type content="text/html;charset=utf-8"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link href=./static/css/app.32ebd0a07eb8535f025a5b194057bd48.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.1ed57e6027cbd9f17cdb.js></script><script type=text/javascript src=./static/js/vendor.8a872037d85a01d1e372.js></script><script type=text/javascript src=./static/js/app.419f2d52c3e1dbaa01cd.js></script></body></html>

zero/static/js/app.419f2d52c3e1dbaa01cd.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

zero/static/js/app.d122638bce916f1a0846.js

-1
This file was deleted.

zero/static/js/manifest.a55df547cd90ecd2f408.js zero/static/js/manifest.1ed57e6027cbd9f17cdb.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)