diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..e796b06 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,19 @@ +module.exports = { + env: { + browser: true, + commonjs: true, + es6: true, + }, + extends: [ + 'airbnb-base', + ], + globals: { + Atomics: 'readonly', + SharedArrayBuffer: 'readonly', + }, + parserOptions: { + ecmaVersion: 2018, + }, + rules: { + }, +}; diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a36861b --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Created by .ignore support plugin (hsz.mobi) +.idea diff --git a/README.md b/README.md index eedb78d..48beb8f 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,14 @@ -# Peek-a-tab, tabs manager for Google Chrome™ +# 谷歌标签页管理器 -> Search, preview, jump across, and close tabs quickly in your chrome browser +> 支持在谷歌浏览器器进行快速标签搜索、预览、跳转、关闭等操作 -[Chrome Store link](https://chrome.google.com/webstore/detail/peek-a-tab/nnpdamdaknpnohmlbnmgphiodghbohop) +你是否苦于chrome中的大量标签页而无法管理呢?这个插件能帮你从苦恼中解脱💐 -Do you have a lot of tabs opened in your browser and find it cumbersome to manage them, well, here's the solution. - -#### Features -* Use Alt+Space (Option+Space for mac) to get a **list of all the tabs** from all the windows. -* **Search** in the title & url to quickly get the tab you want. -* **Preview** a tab on mouse hover or on click. -* **Jump across** between tabs quickly, even in different windows. -* **Close** unnecessary tabs quickly. +#### 功能 +* 通过 Command+E 获取到浏览器中**所有的标签列表** +* 根据 title、url 等进行快速搜索**搜索** +* 通过鼠标点击或悬浮即可**预览**特定的标签 +* 可快速在大量标签中**跳转**(跨window也是支持的) +* 极速**关闭**无用标签页 diff --git a/app.css b/app.css index ddf7b3b..2dfafa9 100644 --- a/app.css +++ b/app.css @@ -309,16 +309,6 @@ body { display: block; } -#announcement-container { - position: absolute; - width: 100%; - bottom: 0; - padding: 0; - background: #d3eae0; - box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.2); - transform: translateY(100%); - transition: 0.3s; -} #announcement_header { height: 40px; @@ -357,7 +347,3 @@ body { margin-bottom: 6px; color: #00733d; } - -#announcement-container.visible { - transform: translateY(0) -} \ No newline at end of file diff --git a/app.html b/app.html index 825073e..dbb133c 100644 --- a/app.html +++ b/app.html @@ -1,7 +1,7 @@
-- Change Tab on hover, single click to shift to the tab and - close tabs list. + 悬浮切换tab,单击列表即切换到对应tab并关闭列表
- Shift to the tab and close tabs list with a single click. + 单击列表即切换到对应tab并关闭列表
@@ -66,42 +65,21 @@ src="./images/cursor-pointer-click.png" />- Change Tab on click, double click to shift to the tab and - close tabs list. + 点击切换,双击切换tab并关闭列表
- - - - - - - - - - -