1
0
mirror of https://github.com/MatMoul/quickdial-webext.git synced 2025-04-04 12:31:45 +00:00

Compare commits

...

25 Commits

Author SHA1 Message Date
806e134b52 Version 0.1.20 2021-01-30 15:12:34 +01:00
633c5756a1 Patch Context Menu 2021-01-30 15:09:03 +01:00
MatMoul
d2ea81d2ca
Merge pull request #165 from tamiros/locale/hebrew
Locale/hebrew
2021-01-27 20:04:19 +01:00
Tamir
86f8063b11 missed one 2021-01-27 10:53:56 +02:00
Tamir
95a1ca420d added heberw translation 2021-01-27 10:46:09 +02:00
41fc29660f Version 0.1.19 2019-03-17 19:05:31 +01:00
725ad53d92
Merge pull request #122 from WaldiSt/patch-1
Translation to Polish language
2019-01-23 00:08:02 +01:00
Waldemar Stoczkowski
929431e66f
Translation to Polish language
Added translation to Polish language
2019-01-20 11:46:47 +01:00
75a6649b6c Version 0.1.18 2019-01-03 21:09:25 +01:00
941772844a Add startpage timeout settings 2019-01-03 21:06:23 +01:00
cc1006042d
Merge pull request #117 from de-es/de-es-patch-1
Remove pt from font-family
2018-12-26 00:15:15 +01:00
f992b75f45
Merge pull request #114 from Gonimy-Vetrom/patch-1
Add Ukrainian
2018-12-26 00:14:53 +01:00
de-es
3a3337b19c
Remove pt from font-family 2018-12-11 00:16:55 +01:00
Gonimy-Vetrom
ab3072cc21
Create messages.json 2018-11-13 17:21:31 +02:00
5bc78f7da6 Version 0.1.17 2018-10-21 23:27:31 +02:00
67fea9aa9c Bug Can move tile when this is the first added item 2018-10-21 22:47:59 +02:00
c68d2d4cfb Version 0.1.16 2018-10-21 16:04:55 +02:00
f07e530446 Bug Startpage not loaded 2018-10-21 16:03:50 +02:00
8abd79bc5f Version 0.1.15 2018-10-21 04:37:05 +02:00
723724f50b Bug White page on first install 2018-10-21 04:36:25 +02:00
ddd081672f Update makebeta 2018-10-21 04:11:04 +02:00
e03e684fb7 Version 0.1.14 2018-10-21 02:07:08 +02:00
14ed1f4dd6 Patch Quick Dial as start page 2018-10-21 02:01:02 +02:00
7ccd9be787
Merge pull request #69 from eridanired/patch-1
Add Spanish translation
2017-12-11 19:51:41 +01:00
Eridani
67d950bfea
Add Spanish translation 2017-12-09 11:30:43 -06:00
10 changed files with 1212 additions and 781 deletions

View File

@ -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"

View File

@ -0,0 +1,67 @@
{
"menuAddToQuickDial": {
"message": "Agregar a Quick Dial",
"description": "Text of add bookmark menu item."
},
"menuNew": {
"message": "Nuevo",
"description": "Text of new menu item."
},
"menuNewBookmark": {
"message": "Marcador",
"description": "Text of add bookmark menu item."
},
"AddBookmarkPrompt": {
"message": "Dirección del nuevo marcador:",
"description": "Text of the add bookmark prompt."
},
"menuNewFolder": {
"message": "Carpeta",
"description": "Text of add folder menu item."
},
"AddFolderPrompt": {
"message": "Nombre de la nueva carpeta:",
"description": "Text of the add folder prompt."
},
"menuProperties": {
"message": "Propiedades",
"description": "Text of properties menu item."
},
"menuRefreshItem": {
"message": "Actualizar",
"description": "Text of refresh menu item."
},
"menuCaptureHere": {
"message": "Capturar aquí",
"description": "Text of capture here menu item."
},
"menuCapturePage": {
"message": "Capturar en una nueva pestaña",
"description": "Text of capture menu item."
},
"menuDeleteItem": {
"message": "Eliminar",
"description": "Text of delete menu item."
},
"deleteItemConfimation": {
"message": "¿Eliminar $1 ?",
"description": "Text of delete confirmation."
},
"menuSettings": {
"message": "Propiedades de Quick Dial",
"description": "Text of settings menu item."
}
}

View File

@ -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."
}
}

View File

@ -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."
}
}

View File

@ -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."
}
}

View File

@ -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>

File diff suppressed because it is too large Load Diff

View File

@ -7,9 +7,12 @@ var dial = {
};
document.addEventListener("DOMContentLoaded", function(event) {
document.body.style.backgroundColor = utils.getBackgroundColor();
document.body.style.backgroundColor = utils.getBackgroundColor();
app.init();
dial.init();
window.setTimeout(function(){
if(! app.settings) app.init();
}, 500);
});
window.addEventListener('resize', function(){
@ -102,7 +105,7 @@ app.Messages.getSettings = function(callback){
} else {
browser.runtime.sendMessage({ cmd: app.Messages.Commands.getSettings }).then(callback, callback);
}
});
}, callback);
};
app.Messages.getNode = function(path, callback){
browser.runtime.getBackgroundPage().then(function(page){
@ -160,10 +163,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');
@ -247,6 +251,7 @@ dial.initMenus = function(){
dial.ItemMenu.appendChild(dial.ItemMenuSettings);
document.body.appendChild(dial.ItemMenu);
}
*/
dial.initStyles = function(){
function applyImageMode(imageMode, target){
switch(imageMode){
@ -276,7 +281,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;
@ -289,7 +294,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;
@ -325,6 +330,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:
@ -336,6 +342,7 @@ dial.initGrid = function(){
break;
}
}
*/
};
function dragstart_handler(ev) {
@ -343,6 +350,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}));

View File

@ -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);

View File

@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Quick Dial",
"version": "0.1.13",
"version": "0.1.20",
"author": "MatMoul",
"homepage_url": "https://github.com/MatMoul/quickdial-webext",
"developer": {
@ -43,7 +43,7 @@
"applications": {
"gecko": {
"id": "quickdial@matmoul.com",
"strict_min_version": "52.0"
"strict_min_version": "70.0"
}
},