From e7e163a8ec1a94d6bf987e1531f1abc8785f9e0a Mon Sep 17 00:00:00 2001 From: Taiju Aoki Date: Sun, 26 Nov 2023 23:35:54 +0900 Subject: [PATCH] Add Romnibar (#29) --- README.md | 8 ++- css/style.css | 15 ++++++ index.html | 8 +-- manifest.json | 91 ++++++++++++++++++++++++----------- package.json | 9 ++-- src/const.js | 2 +- src/main.js | 18 ++++++- src/romnibar/contentScript.js | 16 ++++++ src/romnibar/rexioryWorker.js | 30 ++++++++++++ 9 files changed, 158 insertions(+), 39 deletions(-) create mode 100644 src/romnibar/contentScript.js create mode 100644 src/romnibar/rexioryWorker.js diff --git a/README.md b/README.md index 5c1e5c8..06cce9d 100644 --- a/README.md +++ b/README.md @@ -5,12 +5,17 @@ [![CI](https://github.com/blue0513/RexiOry/actions/workflows/ci.yml/badge.svg)](https://github.com/blue0513/RexiOry/actions/workflows/ci.yml) RexiOry is a Chrome extension that extends the "New Tab Page" and supports fast offline fuzzy searches of History & Bookmarks. +Additionally, by displaying _Romnibar_ on the current tab, you can quickly access Rexiory. - *This extension is strongly inspired by [chikamichi](https://github.com/kawamataryo/chikamichi) and pays the utmost respect!* - *This extension is a prototype. We do destructive changes from time to time* +### New Tab Page ![output](https://user-images.githubusercontent.com/8979468/222137781-7b02f2ad-b052-4995-9e07-24b31f8c47ba.gif) +### Romnibar +![Romnibar](https://github.com/blue0513/RexiOry/assets/8979468/0028a03a-e457-4042-ad6a-d709353e1fa5) + ## Features - Simple UI with shortcuts @@ -20,7 +25,7 @@ RexiOry is a Chrome extension that extends the "New Tab Page" and supports fast ## Usage 1. Just follow [official instruction](https://developer.chrome.com/docs/extensions/) and install this extension -1. Just open "New Tab Page"! +1. Just open "New Tab Page", or `Alt+R` to show _Romnibar_ ### Shortcuts @@ -31,6 +36,7 @@ RexiOry is a Chrome extension that extends the "New Tab Page" and supports fast | `Cmd + c` | Copy URL | | `Cmd + k` | Delete history, bookmark | | `Ctrl + n/p/f/b` | Select candidates | +| `Alt + r` | Show Romnibar | ## Acknowledgments diff --git a/css/style.css b/css/style.css index 975b81a..68b2cd1 100644 --- a/css/style.css +++ b/css/style.css @@ -51,3 +51,18 @@ a:focus { font-weight: 400; font-size: 1rem; } + +#iframe-container iframe { + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + + width: 70%; + min-width: 780px; + height: 70%; + z-index: 9999; + + border: 1px solid black; + box-shadow: 0 0 15px rgba(0, 0, 0, 0.7); +} diff --git a/index.html b/index.html index e4dee9e..ccb0a7d 100644 --- a/index.html +++ b/index.html @@ -42,8 +42,8 @@ style="width: 50%; margin-bottom: 15px" >