Commit 27d62115 authored by ransome1's avatar ransome1
Browse files

Optimized CSS, added business days recurrence, removed autocreation of rec todos

parent eee8c3cf
......@@ -74,7 +74,10 @@
"every": "Tous",
"day": "jour",
"day_plural": "jours",
"bday": "jour ouvrable",
"bday_plural": "jours ouvrables",
"daily": "Tous les jours",
"bdaily": "Tous les jours ouvrables",
"week": "semaine",
"week_plural": "semaines",
"weekly": "Chaque semaine",
......
......@@ -72,7 +72,10 @@
"every": "A",
"day": "Giorno",
"day_plural": "Giorni",
"bday": "Giorno lavorativo",
"bday_plural": "Giorni lavorativi",
"daily": "Giornaliero",
"bdaily": "Ogni giorno lavorativo",
"week": "Settimana",
"week_plural": "Settimane",
"weekly": "Settimanale",
......
......@@ -235,12 +235,12 @@ const createWindow = async function() {
if(typeof userData.data.showDueIsPast != "boolean") userData.set("showDueIsPast", true);
if(typeof userData.data.showDueIsFuture != "boolean") userData.set("showDueIsFuture", true);
if(typeof userData.data.showDueIsToday != "boolean") userData.set("showDueIsToday", true);
if(typeof userData.data.showHidden != "boolean") userData.set("showHidden", true);
if(typeof userData.data.showHidden != "boolean") userData.set("showHidden", false);
if(typeof userData.data.showCompleted != "boolean") userData.set("showCompleted", true);
if(typeof userData.data.sortCompletedLast != "boolean") userData.set("sortCompletedLast", false);
if(typeof userData.data.sortBy != "string") userData.set("sortBy", "priority");
if(typeof userData.data.zoom != "string") userData.set("zoom", "100");
if(typeof appData.tray != "boolean") appData.tray = false;
if(typeof userData.data.tray != "boolean") userData.data.tray = false;
if(!Array.isArray(userData.data.dismissedNotifications)) userData.set("dismissedNotifications", []);
if(!Array.isArray(userData.data.dismissedMessages)) userData.set("dismissedMessages", []);
if(!Array.isArray(userData.data.hideFilterCategories)) userData.set("hideFilterCategories", []);
......@@ -264,8 +264,8 @@ const createWindow = async function() {
return Promise.resolve(i18next.getDataByLanguage(language).translation);
} catch (error) {
// trigger matomo event
if(userData.matomoEvents) _paq.push(["trackEvent", "Error", "configureLanguage()", error])
return Promise.reject("Error in configureLanguage(): " + error);
if(userData.matomoEvents) _paq.push(["trackEvent", "Error", "getTranslations()", error])
return Promise.reject("Error in getTranslations(): " + error);
}
}
userData = await getUserData();
......@@ -606,7 +606,7 @@ const createWindow = async function() {
if(translations) {
mainWindow.webContents.send("translations", translations);
} else {
configureLanguage(language).then(function(translations) {
getTranslations(language).then(function(translations) {
mainWindow.webContents.send("translations", translations)
});
}
......
......@@ -104,7 +104,8 @@ function configureMatomo() {
if(userData.sortBy)_paq.push(['setCustomDimension', 16, userData.sortBy]);
if(userData.zoom)_paq.push(['setCustomDimension', 17, userData.zoom]);
if(appData.channel)_paq.push(['setCustomDimension', 18, appData.channel]);
if(appData.tray)_paq.push(['setCustomDimension', 19, appData.tray]);
if(userData.tray)_paq.push(['setCustomDimension', 19, userData.tray]);
console.log(appData.tray);
_paq.push(['requireConsent']);
_paq.push(['setConsentGiven']);
_paq.push(['trackPageView']);
......@@ -613,6 +614,8 @@ function registerKeyboardShortcuts() {
}
function resetFilters() {
try {
// scroll back to top
document.getElementById("todoTableWrapper").scrollTo(0,0);
// clear the persisted filers, by setting it to undefined the object entry will be removed fully
setUserData("selectedFilters", new Array);
//
......@@ -819,7 +822,7 @@ function setFriendlyLanguageNames() {
friendlyLanguageName = "Français"
break;
case "cn":
friendlyLanguageName = "简体中文"
friendlyLanguageName = "Chinese (简体中文)"
break;
default:
return;
......
......@@ -5,6 +5,9 @@ body {
background-color: $almost-black;
color: $lighter-grey;
}
code, pre {
background-color: $almost-black!important;
}
a {
color: white;
}
......@@ -49,6 +52,10 @@ input[type="checkbox"]:active {
}
button {
color: white!important;
background: transparent!important;
i {
color: $lighter-grey!important;
}
}
button.is-link,
.button.is-link:hover {
......@@ -202,6 +209,9 @@ nav {
}
}
#modalForm {
i {
color: $lighter-grey!important;
}
button {
color: white;
border-color: $even-darker-grey!important;
......@@ -253,7 +263,9 @@ nav {
background: $even-darker-grey!important;
h4.is-4 {
color: white;
i {
color: $lighter-grey!important;
}
}
}
a.drawerClose {
......@@ -349,7 +361,7 @@ nav {
}
.column.content {
.button {
background: $darker-grey!important;
//background: $darker-grey!important;
}
}
.modal.content {
......@@ -405,6 +417,9 @@ nav {
}
.message.fixed {
background: transparent!important;
i {
color: white!important;
}
.message-body {
color: $lighter-grey;
background: $even-darker-grey!important;
......@@ -414,7 +429,6 @@ nav {
}
}
.dueDate {
svg,
#datePickerInput,
#datePickerInput::placeholder {
color: white!important;
......
......@@ -137,9 +137,6 @@ strong {
font-family: "FreeSansBold";
font-weight: normal!important;
}
/*svg {
color: $has-text-link;
}*/
code, pre {
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace!important;
background-color: $light-grey!important;
......@@ -231,7 +228,7 @@ nav {
padding: 0 .5em;
}
div.options {
width: 8em;
//width: 8em;
text-align: left;
}
#recurrencePickerDecrease,
......@@ -245,7 +242,7 @@ nav {
}
}
label {
width: 100%;
display: block;
padding: 0;
margin: .25em 0;
}
......@@ -1019,14 +1016,7 @@ nav {
}
table.settings tr td {
position: relative;
.toggle,
.field {
.select,
select {
width: 100%;
padding-right: 0;
}
}
.alert {
position: absolute;
top: 1em;
......@@ -1034,11 +1024,10 @@ nav {
}
}
table.settings tr td:first-child {
width: 80%;
padding-right: 3em;
}
table.settings tr td:last-child {
width: 20%;
width: 25%;
}
table.shortcuts td {
.tag {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment