Skip to content

Commit

Permalink
ArcFox V2!
Browse files Browse the repository at this point in the history
  • Loading branch information
LuanderFarias authored Apr 22, 2023
1 parent 5923742 commit 9716d6a
Show file tree
Hide file tree
Showing 14 changed files with 662 additions and 302 deletions.
18 changes: 14 additions & 4 deletions core/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "ArcFox",
"version": "1.3.6",
"version": "2.0.3",
"description": "Make firefox flow like arc.",
"icons": {
"16": "icon.png",
Expand All @@ -10,20 +10,30 @@
},
"permissions": [
"activeTab",
"bookmarks",
"tabs"
],
"background": {
"scripts": ["src/sidebar.js"]
"scripts": ["src/background.js"]
},
"browser_action": {
"default_title": "ArcFox",
"default_icon": {
"48": "icon.png"
}
},
"commands": {
"open-sidebar": {
"suggested_key": {
"default": "Alt+Q"
},
"description": "Open the extension sidebar"
}
},
"sidebar_action": {
"default_panel": "src/sidebar.html",
"default_panel": "src/sidebar/sidebar.html",
"default_icon": {
"48": "icon.png"
}
}
}
}
6 changes: 6 additions & 0 deletions core/src/background.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Called when the user presses Alt+Q
function handleShortcut(command) {
browser.sidebarAction.open();
}

browser.commands.onCommand.addListener(handleShortcut);
Empty file added core/src/launch/launch.css
Empty file.
13 changes: 13 additions & 0 deletions core/src/launch/launch.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>arcfox-core</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css">
</head>
<body>
<h1>Coming Soon</h1>
<script src="sidebar.js"></script>
</body>
</html>
Empty file added core/src/launch/launch.js
Empty file.
Empty file added core/src/library/library.css
Empty file.
13 changes: 13 additions & 0 deletions core/src/library/library.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>arcfox-core</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css">
</head>
<body>
<h1>Coming Soon</h1>
<script src="sidebar.js"></script>
</body>
</html>
Empty file added core/src/library/library.js
Empty file.
255 changes: 0 additions & 255 deletions core/src/sidebar.js

This file was deleted.

14 changes: 10 additions & 4 deletions core/src/sidebar.html → core/src/sidebar/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,27 @@
<div id="sidebar-header">
<div id="page-control">
<div id="action-buttons">
<button id="close"><i class="fa-solid fa-circle-xmark"></i></button>
<button id="size"><i class="fa-solid fa-circle-stop"></i></button>
<button id="hide"><i class="fa-solid fa-circle-minus"></i></button>
<button id="close"><i class="fa-solid fa-circle"></i></button>
<button id="size"><i class="fa-solid fa-circle"></i></button>
<button id="hide"><i class="fa-solid fa-circle"></i></button>
</div>
<button id="back"><i class="fa-solid fa-arrow-left"></i></button>
<button id="front"><i class="fa-solid fa-arrow-right"></i></button>
<button id="refresh"><i class="fa-solid fa-rotate-right"></i></button>
</div>
<input id="search-input" type="text" placeholder="Search...">
<div class="address-bar">
<input id="search-input" type="text" placeholder="Search...">
</div>
</div>
<div id="sidebar-content">
<button id="new-tab-button">+ New Tab</button>
<ul id="tab-list"></ul>
</div>
</div>
<div class="footer">
<button id="archive"><i class="fa-solid fa-box-archive"></i></button>
<button id="new"><i class="fa-solid fa-square-plus"></i></button>
</div>
<script src="sidebar.js"></script>
</body>
</html>
Loading

0 comments on commit 9716d6a

Please sign in to comment.