mirror of
https://github.com/MatMoul/quickdial-webext.git
synced 2026-07-22 08:30:12 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b1f76dadde | ||
|
|
7dc29e5a70 | ||
|
|
3fd4cd6d3b | ||
|
|
42800d31c1 | ||
|
|
9cab257540 | ||
|
|
5a8e8bb745 | ||
|
|
8a54056392 | ||
|
|
20c106d5fa | ||
|
|
137bd470cf | ||
|
|
a312b0b2d4 | ||
|
|
806e134b52 | ||
|
|
633c5756a1 | ||
|
|
d2ea81d2ca | ||
|
|
86f8063b11 | ||
|
|
95a1ca420d | ||
|
|
41fc29660f | ||
|
|
725ad53d92 | ||
|
|
929431e66f | ||
|
|
75a6649b6c | ||
|
|
941772844a | ||
|
|
cc1006042d | ||
|
|
f992b75f45 | ||
|
|
3a3337b19c | ||
|
|
ab3072cc21 | ||
|
|
5bc78f7da6 | ||
|
|
67fea9aa9c | ||
|
|
c68d2d4cfb | ||
|
|
f07e530446 | ||
|
|
8abd79bc5f | ||
|
|
723724f50b | ||
|
|
ddd081672f |
@@ -31,6 +31,7 @@ git checkout beta
|
||||
version=$1
|
||||
|
||||
sed -i "/\"version\":/c\ \ \"version\": \"$version\"," src/manifest.json
|
||||
sed -i 's/quickdial@matmoul.com/quickdialtest@matmoul.com/' src/manifest.json
|
||||
|
||||
git commit -a -m "Beta Version $version"
|
||||
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"menuAddToQuickDial": {
|
||||
"message": "הוסף לחיוג מהיר",
|
||||
"description": "Text of add bookmark menu item."
|
||||
},
|
||||
|
||||
"menuNew": {
|
||||
"message": "חדש",
|
||||
"description": "Text of new menu item."
|
||||
},
|
||||
|
||||
"menuNewBookmark": {
|
||||
"message": "מועדף",
|
||||
"description": "Text of add bookmark menu item."
|
||||
},
|
||||
|
||||
"AddBookmarkPrompt": {
|
||||
"message": "הכנס קישור חדש למועדף :",
|
||||
"description": "Text of the add bookmark prompt."
|
||||
},
|
||||
|
||||
"menuNewFolder": {
|
||||
"message": "תיקייה",
|
||||
"description": "Text of add folder menu item."
|
||||
},
|
||||
|
||||
"AddFolderPrompt": {
|
||||
"message": "הכנס שם חדש לתיקייה :",
|
||||
"description": "Text of the add folder prompt."
|
||||
},
|
||||
|
||||
"menuProperties": {
|
||||
"message": "מאפיינים",
|
||||
"description": "Text of properties menu item."
|
||||
},
|
||||
|
||||
"menuRefreshItem": {
|
||||
"message": "רענן",
|
||||
"description": "Text of refresh menu item."
|
||||
},
|
||||
|
||||
"menuCaptureHere": {
|
||||
"message": "צלם מסך כאן",
|
||||
"description": "Text of capture here menu item."
|
||||
},
|
||||
|
||||
"menuCapturePage": {
|
||||
"message": "צלם מסך בלשונית חדשה",
|
||||
"description": "Text of capture menu item."
|
||||
},
|
||||
|
||||
"menuDeleteItem": {
|
||||
"message": "מחק",
|
||||
"description": "Text of delete menu item."
|
||||
},
|
||||
|
||||
"deleteItemConfimation": {
|
||||
"message": "האם למחוק $1 ?",
|
||||
"description": "Text of delete confirmation."
|
||||
},
|
||||
|
||||
"menuSettings": {
|
||||
"message": "הגדרות חיוג מהיר",
|
||||
"description": "Text of settings menu item."
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"menuAddToQuickDial": {
|
||||
"message": "Dodaj do Quick Dial",
|
||||
"description": "Text of add bookmark menu item."
|
||||
},
|
||||
|
||||
"menuNew": {
|
||||
"message": "Nowy",
|
||||
"description": "Text of new menu item."
|
||||
},
|
||||
|
||||
"menuNewBookmark": {
|
||||
"message": "Zakładka",
|
||||
"description": "Text of add bookmark menu item."
|
||||
},
|
||||
|
||||
"AddBookmarkPrompt": {
|
||||
"message": "Wprowadź nowy adres URL zakładki:",
|
||||
"description": "Text of the add bookmark prompt."
|
||||
},
|
||||
|
||||
"menuNewFolder": {
|
||||
"message": "Folder",
|
||||
"description": "Text of add folder menu item."
|
||||
},
|
||||
|
||||
"AddFolderPrompt": {
|
||||
"message": "Wprowadź nazwę nowego folderu:",
|
||||
"description": "Text of the add folder prompt."
|
||||
},
|
||||
|
||||
"menuProperties": {
|
||||
"message": "Właściwości",
|
||||
"description": "Text of properties menu item."
|
||||
},
|
||||
|
||||
"menuRefreshItem": {
|
||||
"message": "Odśwież",
|
||||
"description": "Text of refresh menu item."
|
||||
},
|
||||
|
||||
"menuCaptureHere": {
|
||||
"message": "Zdjęcie tutaj",
|
||||
"description": "Text of capture here menu item."
|
||||
},
|
||||
|
||||
"menuCapturePage": {
|
||||
"message": "Zdjęcie na nowej karcie",
|
||||
"description": "Text of capture menu item."
|
||||
},
|
||||
|
||||
"menuDeleteItem": {
|
||||
"message": "Usuń",
|
||||
"description": "Text of delete menu item."
|
||||
},
|
||||
|
||||
"deleteItemConfimation": {
|
||||
"message": "Usuń $1 ?",
|
||||
"description": "Text of delete confirmation."
|
||||
},
|
||||
|
||||
"menuSettings": {
|
||||
"message": "Ustawienia Quick Dial",
|
||||
"description": "Text of settings menu item."
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"menuAddToQuickDial": {
|
||||
"message": "Додати до Quick Dial",
|
||||
"description": "Text of add bookmark menu item."
|
||||
},
|
||||
|
||||
"menuNew": {
|
||||
"message": "Додати",
|
||||
"description": "Text of new menu item."
|
||||
},
|
||||
|
||||
"menuNewBookmark": {
|
||||
"message": "Закладку",
|
||||
"description": "Text of add bookmark menu item."
|
||||
},
|
||||
|
||||
"AddBookmarkPrompt": {
|
||||
"message": "Введіть URL-адресу нової закладки:",
|
||||
"description": "Text of the add bookmark prompt."
|
||||
},
|
||||
|
||||
"menuNewFolder": {
|
||||
"message": "Папку",
|
||||
"description": "Text of add folder menu item."
|
||||
},
|
||||
|
||||
"AddFolderPrompt": {
|
||||
"message": "Введіть им'я нової папки:",
|
||||
"description": "Text of the add folder prompt."
|
||||
},
|
||||
|
||||
"menuProperties": {
|
||||
"message": "Властивості",
|
||||
"description": "Text of properties menu item."
|
||||
},
|
||||
|
||||
"menuRefreshItem": {
|
||||
"message": "Оновити",
|
||||
"description": "Text of refresh menu item."
|
||||
},
|
||||
|
||||
"menuCaptureHere": {
|
||||
"message": "Захватити тут",
|
||||
"description": "Text of capture here menu item."
|
||||
},
|
||||
|
||||
"menuCapturePage": {
|
||||
"message": "Захватити на новій вкладці",
|
||||
"description": "Text of capture menu item."
|
||||
},
|
||||
|
||||
"menuDeleteItem": {
|
||||
"message": "Видалити",
|
||||
"description": "Text of delete menu item."
|
||||
},
|
||||
|
||||
"deleteItemConfimation": {
|
||||
"message": "Видалити $1?",
|
||||
"description": "Text of delete confirmation."
|
||||
},
|
||||
|
||||
"menuSettings": {
|
||||
"message": "Налаштування Quick Dial",
|
||||
"description": "Text of settings menu item."
|
||||
}
|
||||
|
||||
}
|
||||
@@ -68,6 +68,10 @@
|
||||
<td><input id="ButtonOpenInNewPage" type="checkbox"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Startpage timeout :</td>
|
||||
<td><input id="StartupTimeout" type="number"></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
@@ -246,4 +250,4 @@
|
||||
<button id="BtnCancel">Cancel</button>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
+907
-773
File diff suppressed because it is too large
Load Diff
+41
-4
@@ -84,7 +84,15 @@ app.Messages.Commands = {
|
||||
refreshNode: 9,
|
||||
capturePage: 10,
|
||||
settingsChanged: 100,
|
||||
gridNodesLoaded: 101
|
||||
gridNodesLoaded: 101,
|
||||
menuCreateBookmark: 200,
|
||||
menuCreateFolder: 201,
|
||||
menuEditSettings: 202,
|
||||
menuEditProperties: 203,
|
||||
menuRefreshNode: 204,
|
||||
menuCaptureHere: 205,
|
||||
menuCapturePage: 206,
|
||||
menuDeleteNode: 207
|
||||
};
|
||||
app.Messages.init = function(){
|
||||
browser.runtime.onMessage.addListener(function(request, sender, sendResponse){
|
||||
@@ -95,6 +103,30 @@ app.Messages.init = function(){
|
||||
case app.Messages.Commands.gridNodesLoaded:
|
||||
if(dial.skipUpdate!=true) app.Messages.getNode(dial.path, app.GridNodes._changed);
|
||||
break;
|
||||
case app.Messages.Commands.menuCreateBookmark:
|
||||
dial.createBookmark();
|
||||
break;
|
||||
case app.Messages.Commands.menuCreateFolder:
|
||||
dial.createFolder();
|
||||
break;
|
||||
case app.Messages.Commands.menuEditSettings:
|
||||
dial.editSettings();
|
||||
break;
|
||||
case app.Messages.Commands.menuEditProperties:
|
||||
dial.editProperties(dial._selectedItem);
|
||||
break;
|
||||
case app.Messages.Commands.menuRefreshNode:
|
||||
dial.refreshNode(dial._selectedItem);
|
||||
break;
|
||||
case app.Messages.Commands.menuCaptureHere:
|
||||
dial.captureHere(dial._selectedItem);
|
||||
break;
|
||||
case app.Messages.Commands.menuCapturePage:
|
||||
dial.capturePage(dial._selectedItem);
|
||||
break;
|
||||
case app.Messages.Commands.menuDeleteNode:
|
||||
dial.deleteNode();
|
||||
break;
|
||||
}
|
||||
});
|
||||
};
|
||||
@@ -163,10 +195,11 @@ app.GridNodes._changed = function(node){
|
||||
|
||||
|
||||
dial.init = function(){
|
||||
dial.initMenus();
|
||||
//dial.initMenus();
|
||||
dial.Title = document.createElement('title');
|
||||
document.head.appendChild(dial.Title);
|
||||
};
|
||||
/*
|
||||
dial.initMenus = function(){
|
||||
document.body.setAttribute('contextmenu', 'page');
|
||||
dial.PageMenu = document.createElement('menu');
|
||||
@@ -250,6 +283,7 @@ dial.initMenus = function(){
|
||||
dial.ItemMenu.appendChild(dial.ItemMenuSettings);
|
||||
document.body.appendChild(dial.ItemMenu);
|
||||
}
|
||||
*/
|
||||
dial.initStyles = function(){
|
||||
function applyImageMode(imageMode, target){
|
||||
switch(imageMode){
|
||||
@@ -279,7 +313,7 @@ dial.initStyles = function(){
|
||||
document.head.appendChild(dial.Style);
|
||||
dial.styles = {};
|
||||
dial.styles.html = dial.Style.sheet.cssRules[dial.Style.sheet.insertRule('html { height: 100%; }')].style;
|
||||
dial.styles.body = dial.Style.sheet.cssRules[dial.Style.sheet.insertRule('body { user-select: none; -moz-user-select: none; display: flex; width: 100%; height: 100%; margin: 0px; padding: 0px; background-color: ' + app.settings.backgroundColor + '; background-image: ' + app.settings.backgroundImage + '; }')].style;
|
||||
dial.styles.body = dial.Style.sheet.cssRules[dial.Style.sheet.insertRule('body { user-select: none; -moz-user-select: none; display: flex; width: 100%; height: 100%; margin: 0px; padding: 0px; background-color: ' + app.settings.backgroundColor + '; background-image: ' + app.settings.backgroundImage + '; }')].style;
|
||||
applyImageMode(app.settings.backgroundMode, dial.styles.body);
|
||||
dial.styles.grid = {};
|
||||
dial.styles.grid.grid = dial.Style.sheet.cssRules[dial.Style.sheet.insertRule('.Grid { border-collapse: collapse; margin: auto; }')].style;
|
||||
@@ -292,7 +326,7 @@ dial.initStyles = function(){
|
||||
dial.styles.grid.linkPanelHover = dial.Style.sheet.cssRules[dial.Style.sheet.insertRule('.Grid td>a:hover>div:first-child { }')].style;
|
||||
if(app.settings.grid.cells.backgroundColorHover) dial.styles.grid.linkPanelHover.backgroundColor = app.settings.grid.cells.backgroundColorHover;
|
||||
else dial.styles.grid.linkPanelHover.backgroundColor = 'transparent';
|
||||
dial.styles.grid.linkTitle = dial.Style.sheet.cssRules[dial.Style.sheet.insertRule('.Grid td>a>div:last-child { height: ' + app.settings.grid.cells.titleHeight + 'px; font-size: ' + app.settings.grid.cells.titleFontSize + 'pt; font-family: ' + app.settings.grid.cells.titleFont + 'pt; text-align: center; overflow: hidden; color: ' + app.settings.grid.cells.titleColor + '; border-top: ' + app.settings.grid.cells.titleBorderSize + 'px solid ' + app.settings.grid.cells.borderColor + '; }')].style;
|
||||
dial.styles.grid.linkTitle = dial.Style.sheet.cssRules[dial.Style.sheet.insertRule('.Grid td>a>div:last-child { height: ' + app.settings.grid.cells.titleHeight + 'px; font-size: ' + app.settings.grid.cells.titleFontSize + 'pt; font-family: ' + app.settings.grid.cells.titleFont + '; text-align: center; overflow: hidden; color: ' + app.settings.grid.cells.titleColor + '; border-top: ' + app.settings.grid.cells.titleBorderSize + 'px solid ' + app.settings.grid.cells.borderColor + '; }')].style;
|
||||
if(app.settings.grid.cells.titleBackgroundColor) dial.styles.grid.linkTitle.backgroundColor = app.settings.grid.cells.titleBackgroundColor;
|
||||
else dial.styles.grid.linkTitle.backgroundColor = 'transparent';
|
||||
dial.styles.grid.linkTitleHover = dial.Style.sheet.cssRules[dial.Style.sheet.insertRule('.Grid td>a:hover>div:last-child { font-size: ' + app.settings.grid.cells.titleFontSizeHover + 'pt; color: ' + app.settings.grid.cells.titleColorHover + '; border-top-width: ' + app.settings.grid.cells.titleBorderSizeHover + 'px; border-top-color: ' + app.settings.grid.cells.borderColorHover + ' }')].style;
|
||||
@@ -328,6 +362,7 @@ dial.initGrid = function(){
|
||||
link.appendChild(document.createElement('div'));
|
||||
link.onmousedown = function(){
|
||||
dial._selectedItem = this;
|
||||
/*
|
||||
if(dial._selectedItem.Node){
|
||||
switch(dial._selectedItem.Node.type){
|
||||
case app.GridNodes.GridNodeType.folder:
|
||||
@@ -339,6 +374,7 @@ dial.initGrid = function(){
|
||||
break;
|
||||
}
|
||||
}
|
||||
*/
|
||||
};
|
||||
|
||||
function dragstart_handler(ev) {
|
||||
@@ -346,6 +382,7 @@ dial.initGrid = function(){
|
||||
ev.preventDefault();
|
||||
return;
|
||||
}
|
||||
if(dial.page == 0) dial.page = 1;
|
||||
var index = (dial.page - 1) * (app.settings.grid.rows * app.settings.grid.columns) + +(ev.target.parentElement.getAttribute('gridindex'));
|
||||
if(app.settings.grid.backNode && dial.path != '/') index -= dial.page;
|
||||
ev.dataTransfer.setData("text/plain", JSON.stringify({parentId: app.node.id, index: index}));
|
||||
|
||||
@@ -28,6 +28,7 @@ app.init = function(){
|
||||
BackgroundPreview.style.backgroundRepeat = 'no-repeat';
|
||||
BackgroundPreview.style.backgroundSize = '100% 100%';
|
||||
ButtonOpenInNewPage.checked = app.settings.openQuickDialInNewPage;
|
||||
StartupTimeout.value = app.settings.startpageTimeout;
|
||||
GridRoot.value = app.settings.grid.root;
|
||||
GridRows.value = app.settings.grid.rows;
|
||||
GridRatioX.value = app.settings.grid.ratioX;
|
||||
@@ -88,6 +89,7 @@ app.init = function(){
|
||||
app.settings.backgroundImage = BackgroundImage;
|
||||
app.settings.backgroundMode = +(BackgroundMode.value);
|
||||
app.settings.openQuickDialInNewPage = ButtonOpenInNewPage.checked;
|
||||
app.settings.startpageTimeout = StartupTimeout.value;
|
||||
app.settings.grid.rows = +(GridRows.value);
|
||||
app.settings.grid.margin = +(GridMargins.value);
|
||||
app.settings.grid.columns = +(GridColumns.value);
|
||||
|
||||
+7
-4
@@ -2,7 +2,7 @@
|
||||
|
||||
"manifest_version": 2,
|
||||
"name": "Quick Dial",
|
||||
"version": "0.1.14",
|
||||
"version": "0.1.24",
|
||||
"author": "MatMoul",
|
||||
"homepage_url": "https://github.com/MatMoul/quickdial-webext",
|
||||
"developer": {
|
||||
@@ -37,13 +37,16 @@
|
||||
},
|
||||
|
||||
"chrome_url_overrides" : {
|
||||
"newtab": "dial"
|
||||
"newtab": "dial.html"
|
||||
},
|
||||
|
||||
"applications": {
|
||||
"browser_specific_settings": {
|
||||
"gecko": {
|
||||
"id": "quickdial@matmoul.com",
|
||||
"strict_min_version": "52.0"
|
||||
"strict_min_version": "140.0",
|
||||
"data_collection_permissions": {
|
||||
"required": ["none"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user