Commit 01a5fa45 authored by ransome1's avatar ransome1
Browse files

Refactoring filters.mjs (WIP)

parent b0f2e00e
......@@ -16,12 +16,9 @@ class Store {
userDataPath = path.dirname(process.execPath);
//if(!fs.existsSync(userDataPath)) fs.mkdirSync(userDataPath, {recursive: true});
} else if(process.env.NODE_ENV==="testing" && process.env.CUSTOM_PREFERENCES_FOLDER) {
userDataPath = path.join(electron.app.getAppPath(), "test", process.env.CUSTOM_PREFERENCES_FOLDER)
// in development environment switch to specific userData folder
} else if(process.env.NODE_ENV === "development") {
userDataPath = path.join((electron.app || electron.remote.app).getPath("userData"), "..", "sleek_development");
// in development or testing environment switch to specific userData folder
} else if(process.env.NODE_ENV === "development" || process.env.NODE_ENV === "testing") {
userDataPath = path.join((electron.app || electron.remote.app).getPath("userData"), "..", "sleek_" + process.env.NODE_ENV);
} else {
userDataPath = (electron.app || electron.remote.app).getPath("userData");
......
......@@ -1540,8 +1540,13 @@ body.compact #autoCompleteContainer h4 {
white-space: pre;
}
#drawerContainer .drawer section .todoFilterHint {
cursor: pointer;
opacity: 0.5;
cursor: help;
opacity: 0.4;
}
#drawerContainer .drawer section .todoFilterHint code {
color: white !important;
background: #2d2d2d !important;
border-radius: 0.65em;
}
#drawerContainer .drawer table tr td:nth-child(odd) {
width: auto;
......
This diff is collapsed.
This diff is collapsed.
......@@ -255,6 +255,11 @@ function addInputEvents(element) {
element.onfocus = function() {
modalForm.classList.add("is-focused");
// hide autocomplete container
autoCompleteContainer.blur();
autoCompleteContainer.innerHTML = "";
autoCompleteContainer.classList.remove("is-active");
}
element.onblur = function() {
......
......@@ -170,7 +170,9 @@
"deleteCategoryPrompt": "Tento filtr bude nenávratně odebrán ze všech úkolů.",
"modalBackgroundAttention": "Toto okno bude uzavřeno a všechen obsah smazán.",
"deferredTodos": "Prahová hodnota v budoucnosti",
"noFiltersFound": "Nebyly nalezeny žádné filtry",
"fileRemovalPrompt": "Toto pouze odebere soubor z vašeho seznamu souborů. Neodebere jej z vašeho disku.",
"fileTabsHeadline": "Záložky"
"fileTabsHeadline": "Záložky",
"hint_priority": "Úkoly mají prioritu <code>(A...Z)</code>",
"hint_contexts": "Symbol @ přidává k úkolům <code>@kontexty</code>",
"hint_projects": "<code>+projekty</code> se přidávají pomocí symbolu +"
}
......@@ -173,7 +173,9 @@
"deleteCategoryPrompt": "Dieser Filter wird unwiderruflich aus allen Todos entfernt.",
"modalBackgroundAttention": "Dieses Fenster wird geschlossen, dabei gehen vorgenommene Änderungen verloren.",
"deferredTodos": "Verzögertes Datum",
"noFiltersFound": "Keine Filter gefunden",
"fileRemovalPrompt": "Die Datei wird lediglich aus dieser Liste entfernt, dabei aber nicht von der Festplatte gelöscht.",
"fileTabsHeadline": "Reiter"
"fileTabsHeadline": "Reiter",
"hint_priority": "Mit <code>(A...Z)</code> werden Todos priorisiert",
"hint_contexts": "Das @ Symbol fügt <code>@kontexte</code> zu den Todos hinzu",
"hint_projects": "<code>+projekte</code> werden mithilfe des + Symbols hinzugefügt"
}
{
"kdfhdsfjkfhskj": "kdfhdsfjkfhskj"
}
\ No newline at end of file
......@@ -172,7 +172,9 @@
"deleteCategoryPrompt": "This filter will be irrevocably removed from all todos.",
"modalBackgroundAttention": "This window will be closed and its contents cleared.",
"deferredTodos": "Threshold date in the future",
"noFiltersFound": "No filters found",
"fileRemovalPrompt": "This will only remove the file from your file list, it will not be deleted from your drive.",
"fileTabsHeadline": "Tabs"
"fileTabsHeadline": "Tabs",
"hint_priority": "Todos are prioritized with <code>(A...Z)</code>",
"hint_contexts": "The @ symbol adds <code>@contexts</code> to todos",
"hint_projects": "<code>+projects</code> are added using the + symbol"
}
{
"kdfhdsfjkfhskj": "kdfhdsfjkfhskj"
}
\ No newline at end of file
......@@ -170,7 +170,9 @@
"deleteCategoryPrompt": "Este filtro se eliminará irrevocablemente de todas las tareas.",
"modalBackgroundAttention": "Esta ventana se cerrará y se borrará su contenido.",
"deferredTodos": "Fecha límite en el futuro",
"noFiltersFound": "No se encontraron filtros",
"fileRemovalPrompt": "Esto solo eliminará el archivo de su lista de archivos, no se eliminará de su unidad.",
"fileTabsHeadline": "Pestañas"
"fileTabsHeadline": "Pestañas",
"hint_priority": "Todas tienen prioridad con <code> (A ... Z) </code>",
"hint_contexts": "El símbolo @ agrega <code>@contexts</code> a todos",
"hint_projects": "<code>+proyectos</code> se agregan usando el símbolo +"
}
......@@ -170,7 +170,9 @@
"deleteCategoryPrompt": "Ce filtre sera irrévocablement supprimé de toutes les tâches.",
"modalBackgroundAttention": "Cette fenêtre sera fermée et son contenu effacé.",
"deferredTodos": "Date seuil dans le futur",
"noFiltersFound": "Aucun filtre trouvé",
"fileRemovalPrompt": "Cela supprimera uniquement le fichier de votre liste de fichiers, il ne sera pas supprimé de votre lecteur.",
"fileTabsHeadline": "Onglets"
"fileTabsHeadline": "Onglets",
"hint_priority": "Les tâches sont priorisées avec <code>(A...Z)</code>",
"hint_contexts": "Le symbole @ ajoute <code>@contexts</code> aux tâches",
"hint_projects": "Les <code>+projets</code> sont ajoutés à l'aide du symbole +"
}
......@@ -170,7 +170,9 @@
"deleteCategoryPrompt": "Ez a szűrő visszavonhatatlanul el lesz távolítva az összes tennivalóból.",
"modalBackgroundAttention": "Ez az ablak be lesz zárva, és a tartalma törlődik.",
"deferredTodos": "Küszöbszintdátum a jövőben",
"noFiltersFound": "Nem találhatók szűrők",
"fileRemovalPrompt": "Ez csak a fájllistából távolítja el a fájlt, nem lesz törölve a meghajtóról.",
"fileTabsHeadline": "Lapok"
"fileTabsHeadline": "Lapok",
"hint_priority": "A feladatok prioritása <code>(A...Z)</code>",
"hint_contexts": "A @ szimbólum <code>@contexts</code>-t ad a feladatokhoz",
"hint_projects": "A <code>+projektek</code> a + szimbólum használatával kerülnek hozzáadásra"
}
......@@ -169,7 +169,9 @@
"deleteCategoryPrompt": "Questo filtro verrà irrevocabilmente rimosso da tutte le attività.",
"modalBackgroundAttention": "Questa finestra verrà chiusa e il suo contenuto cancellato.",
"deferredTodos": "Data limite nel futuro",
"noFiltersFound": "Nessun filtro trovato",
"fileRemovalPrompt": "Questo rimuoverà solo il file dall'elenco dei file, non verrà eliminato dall'unità.",
"fileTabsHeadline": "Schede"
"fileTabsHeadline": "Schede",
"hint_priority": "Le cose da fare hanno la priorità con <code>(A...Z)</code>",
"hint_contexts": "Il simbolo @ aggiunge <code>@contexts</code> alle cose da fare",
"hint_projects": "<code>+progetti</code> vengono aggiunti usando il simbolo +"
}
......@@ -170,7 +170,9 @@
"deleteCategoryPrompt": "このフィルターは、すべてのタスクから取り消せないほど削除されます。.",
"modalBackgroundAttention": "このウィンドウは閉じられ、その内容はクリアされます。",
"deferredTodos": "将来のしきい値",
"noFiltersFound": "フィルタが見つかりません",
"fileRemovalPrompt": "これにより、ファイルリストからファイルが削除されるだけで、ドライブからは削除されません。",
"fileTabsHeadline": "タブ"
"fileTabsHeadline": "タブ",
"hint_priority": "Todoは<code>(A...Z)</code>で優先されます",
"hint_contexts": "@記号は、todosに<code> @contexts</code>を追加します",
"hint_projects": "<code> + projects </code>は、+記号を使用して追加されます"
}
......@@ -173,7 +173,9 @@
"deleteCategoryPrompt": "Ten filtr zostanie nieodwołalnie usunięty ze wszystkich zadań.",
"modalBackgroundAttention": "To okno zostanie zamknięte, a jego zawartość wyczyszczona.",
"deferredTodos": "Próg widoczności w przyszłości",
"noFiltersFound": "Nie znaleziono filtrów",
"fileRemovalPrompt": "Spowoduje to tylko usunięcie pliku z listy plików, nie zostanie on usunięty z dysku.",
"fileTabsHeadline": "Karty"
"fileTabsHeadline": "Karty",
"hint_priority": "Zadania są traktowane priorytetowo za pomocą <code>(A...Z)</code>",
"hint_contexts": "Symbol @ dodaje <code>@contexts</code> do listy zadań",
"hint_projects": "<code>+projekty</code> są dodawane za pomocą symbolu +"
}
......@@ -172,5 +172,8 @@
"deferredTodos": "Data limite no futuro",
"noFiltersFound": "Nenhum filtro encontrado",
"fileRemovalPrompt": "Isso removerá apenas o arquivo da lista de arquivos, não será excluído da unidade.",
"fileTabsHeadline": "Abas"
"fileTabsHeadline": "Abas",
"hint_priority": "Todos são priorizados com <code>(A...Z)</code>",
"hint_contexts": "O símbolo @ adiciona <code>@contexts</code> a todos",
"hint_projects": "<code>+projetos</code> são adicionados usando o símbolo +"
}
......@@ -170,7 +170,9 @@
"deleteCategoryPrompt": "Bu filtre geri alınamaz bir şekilde tüm yapılacaklardan kaldırılacaktır.",
"modalBackgroundAttention": "Bu pencere kapatılacak ve içeriği temizlenecek.",
"deferredTodos": "Gelecek eşik değeri",
"noFiltersFound": "Filtre bulunamadı",
"fileRemovalPrompt": "Bu yalnızca dosyayı listenizden silecek, dosya sürücünüzden silinmeyecek.",
"fileTabsHeadline": "Sekmeler"
"fileTabsHeadline": "Sekmeler",
"hint_priority": "Yapılacak işler <code>(A...Z)</code> ile önceliklendirilir",
"hint_contexts": "@ sembolü, todos'a <code>@contexts</code> ekler",
"hint_projects": "<code>+projeler</code>, + sembolü kullanılarak eklenir"
}
......@@ -170,7 +170,9 @@
"deleteCategoryPrompt": "此过滤器将从所有任务中不可撤销地删除。.",
"modalBackgroundAttention": "此窗口将关闭并清除其内容。",
"deferredTodos": "未来的阈值日期",
"noFiltersFound": "未找到过滤器",
"fileRemovalPrompt": "这只会从您的文件列表中删除该文件,而不会从您的驱动器中删除它。",
"fileTabsHeadline": "标签"
"fileTabsHeadline": "标签",
"hint_priority": "待办事项以 <code>(A...Z)</code> 为优先级",
"hint_contexts": "@ 符号将 <code>@contexts</code> 添加到 todos",
"hint_projects": "<code>+projects</code> 使用 + 符号添加"
}
......@@ -143,8 +143,13 @@
white-space: pre;
}
.todoFilterHint {
cursor: pointer;
opacity: 0.5;
cursor: help;
opacity: 0.4;
code {
color: white!important;
background: $darker-grey!important;
border-radius: $radius;
}
}
}
table tr td:nth-child(odd) {
......
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