From f31602b4fb9f3bdca29ddc9dbe09bfe5339c8b13 Mon Sep 17 00:00:00 2001 From: HerrHase Date: Thu, 6 Oct 2022 00:41:43 +0200 Subject: [PATCH] update comments and license --- LICENSE | 2 +- README.md | 11 ++++++----- src/js/database/tags.js | 14 ++++++++------ src/js/stores/tags.js | 4 ++-- 4 files changed, 17 insertions(+), 14 deletions(-) diff --git a/LICENSE b/LICENSE index 2f31491..cd6fa7a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 Neutralinojs and contributors +Copyright (c) 2022 Björn Hase Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 25d546f..0470840 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,13 @@ # Potato launcher -I know there a many Launcher on the Market, and they are all damn Beautiful, this -App is not Beautiful, it's only starts App, it is really simple, no fancy dancy Functions. +There a many Launchers for Desktops and they are all fancy. But this one +is damn simple, no fancy dancy functions only add Apps from your file +system or commands, add a image or not. -And it is not finish! +This Launcher use Electron, Riotjs, Plain-UI and Pouchdb. ## Next Goals * Change Format of Images -* Adding Function to Filter Results -* Keyboard- and Controller-Control +* Keyboard- and Controller-Support for navigation +* Kiosk-Modus diff --git a/src/js/database/tags.js b/src/js/database/tags.js index 6a221f7..788c025 100644 --- a/src/js/database/tags.js +++ b/src/js/database/tags.js @@ -3,7 +3,7 @@ import AppsStore from './apps.js' import tagsStore from './../stores/tags.js' /** - * apps + * tags * * @author Björn Hase * @license hhttps://www.gnu.org/licenses/gpl-3.0.en.html GPL-3 @@ -22,12 +22,13 @@ class TagsDatabase extends DatabaseHandler { } /** - * + * adding new tags, if tags are already + * exists skip tag * * @param {object} data * */ - async update(tags) { + update(tags) { const query = { 'selector': { @@ -52,7 +53,7 @@ class TagsDatabase extends DatabaseHandler { 'name': tags[i] }).then(() => { - // last tag, then remove + // last tag, then check for remove if (i === (tags.length - 1)) { this.removeNotNeeded() } @@ -63,6 +64,8 @@ class TagsDatabase extends DatabaseHandler { } /** + * search for tags in apps and remove + * tags that not longer exists in apps * * */ @@ -138,8 +141,7 @@ class TagsDatabase extends DatabaseHandler { /** * find apps * - * - * @return + * @return {array} * */ find() { diff --git a/src/js/stores/tags.js b/src/js/stores/tags.js index b5d34d9..35ff6cd 100644 --- a/src/js/stores/tags.js +++ b/src/js/stores/tags.js @@ -1,5 +1,5 @@ /** - * + * Store for tags * * @author Björn Hase * @license hhttps://www.gnu.org/licenses/gpl-3.0.en.html GPL-3 @@ -13,7 +13,7 @@ import observable from '@riotjs/observable' export default observable({ /** - * getting all apps + * get all tags * */ get() {