initialization

This commit is contained in:
zhangwenwen 2021-04-23 12:15:32 +08:00
parent 212c010853
commit dc68d2a9f1
10 changed files with 53 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
._*

View File

@ -1,2 +1,4 @@
# Tab-Restore # Tab-Restore
A chrome extensional tool for store current pages and restore stored pages in another day.

13
buttion.css Normal file
View File

@ -0,0 +1,13 @@
button {
height: 30px;
width: 30px;
outline: none;
margin: 10px;
border: none;
border-radius: 2px;
}
button.current {
box-shadow: 0 0 0 2px white,
0 0 0 4px black;
}

BIN
images/get_started128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
images/get_started16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 495 B

BIN
images/get_started32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 814 B

BIN
images/get_started48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

21
manifest.json Normal file
View File

@ -0,0 +1,21 @@
{
"name":"Tab-Restore",
"description":"A tool for restoring pages that you want to explore from yestoday.",
"version":"1.0",
"permissions":["storage"],
"action":{
"default_popup":"popup.html",
"default_icon": {
"16": "/images/get_started16.png",
"32": "/images/get_started32.png",
"48": "/images/get_started48.png",
"128": "/images/get_started128.png"
}
},
"icons":{
"16": "/images/get_started16.png",
"32": "/images/get_started32.png",
"48": "/images/get_started48.png",
"128": "/images/get_started128.png"
}
}

13
popup.html Normal file
View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="button.css">
</head>
<body>
<button id="store">Store</button>
<button id="restore">Restore</button>
<button id="clear">Clear</button>
<script src="popup.js"></script>
</body>
</html>

3
popup.js Normal file
View File

@ -0,0 +1,3 @@
store.addEventListener("click",async()=>{
});