aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores
Commit message (Collapse)AuthorAge
* refactor: move 'DEFAULT_APP_SETTINGS' from 'environment' to 'config' since ↵Libravatar Vijay A2021-10-01
| | | | it doesn't depend on the running process any more.
* refactor: split 'environment' into 'environment-remote' with only the remote ↵Libravatar Vijay A2021-10-01
| | | | | | module dependency (might be a pre-requisite for the electron v14 upgrade)
* refactor: move 'asarRecipesPath' into 'asar-helpers'Libravatar Vijay A2021-10-01
|
* fix: Switching services via keyboard does not switch focus (#2004)Libravatar Markus Hatvan2021-10-01
|
* refactor: remove references to 'electron/remote' - part deux (#1987)Libravatar Vijay Aravamudhan2021-09-26
|
* refactor: clean up old migrations - we need not support versions <= 5.5Libravatar Vijay A2021-09-25
|
* Enable Split View Mode (#1926)Libravatar niu tech2021-09-15
|
* feat: add eslint-plugin-unicorn (#1936)Libravatar Markus Hatvan2021-09-14
|
* chore: codebase improvements (#1930)Libravatar Markus Hatvan2021-09-14
|
* Revert "refactor: trying to fix zoom in/out being sticky for the last active ↵Libravatar Vijay A2021-09-06
| | | | | | service when started up" This reverts commit 947a776e1ed902a218af0f634bfa9d320678ce93.
* fix: sidebar context menu not synced when toggling via the context menu (#1871)Libravatar Sadetdin EYILI2021-09-06
| | | fixes #1772
* refactor: trying to fix zoom in/out being sticky for the last active service ↵Libravatar Vijay A2021-09-06
| | | | when started up
* fix: ferdi locking with lock feature disabled (#1866)Libravatar Sadetdin EYILI2021-09-05
| | | | | | Set run the inactivity timeout only if lock feature is enabled, and use same condition between lock screen and locked menu fix #1862
* chore: remove what's new functionality (#1864)Libravatar Markus Hatvan2021-09-04
|
* chore: specify the channel to check if it fixes the in-app updater.Libravatar Vijay A2021-08-26
|
* chore: linter fixes [skip ci]Libravatar Vijay A2021-08-23
|
* fix: Fixing bug where the service-defaults are not mergedLibravatar Vijay A2021-08-23
| | | | (when a user signs up for a service)
* refactor (perf): Do not double-loop through the same list of services while ↵Libravatar Vijay A2021-08-22
| | | | marking inactive.
* fix: audio toggle is now decoupled from notification toggleLibravatar Vijay A2021-08-22
| | | | fixes #1691
* style: consistent syntax style [skip ci]Libravatar Vijay A2021-08-21
|
* chore: remove 'shareFranz' feature since its always turned off for FerdiLibravatar Vijay A2021-08-21
|
* chore: typescript conversionLibravatar Vijay A2021-08-21
|
* revert: reverting back from 'dayjs' to 'momentjs'Libravatar Vijay A2021-08-18
|
* chore: replace moment.js with day.js (#1804)Libravatar Markus Hatvan2021-08-16
|
* Refactoring: Url helpers (#1789)Libravatar Vijay Raghavan Aravamudhan2021-08-14
| | | | | | | These changes are mainly to ensure that 'shell.open*' invocations are only in a single file. * Moved 'openPath' into the 'url-helpers' file. * Extract 'openExternalUrl' into a common location in 'url-helpers' This is done so that we can then apply vetting rules to ensure that there is no security concern as described in https://benjamin-altpeter.de/shell-openexternal-dangers/
* fix(App): Fix app focus detectionLibravatar Vijay A2021-08-13
|
* chore: Refactoring to reuse already defined constantsLibravatar Vijay A2021-08-13
|
* feat: allow the user to enable/disable dark modeLibravatar Vijay A2021-08-11
| | | | (from the sidebar context menu)
* refactor: fix issue with db migrationLibravatar Vijay A2021-08-08
| | | | Fixes the issue where a migration with the same name would never run.
* refactor: path-references refactoring and using 'import' instead of ↵Libravatar Vijay Raghavan Aravamudhan2021-08-08
| | | | | | 'require' (#1752) * refactor references to 'userData' and 'appData' directories to move hardcoding into single location * convert to es6 for lower memory usage as per https://codesource.io/the-difference-between-import-and-require-in-javascript/
* refactor: general code improvementsLibravatar mhatvan2021-08-05
| | | | | | | | | | - replace deprecated fs.exists with fs.existsSync - replace console.log with debug - replace hardcoded FERDI_VERSION in start.js with dynamic one from package.json - correct JSDoc annotations in Handler.js - simplify macOSPermissions.js - updates to various eslint rules - add FileReader to known globals
* Removed straggling code related to 'popular services'.Libravatar Vijay A2021-08-03
|
* chore: migrate from tslint to @typescript-eslint (#1706)Libravatar Markus Hatvan2021-07-30
| | | | | | | | | | - update .eslintrc to work for .js and .ts - update devDependencies - lint properly both root /src and nested /packages - update webhint recommended setting for tsconfig.json to shrink output - Manage all eslint rules from the repo root - escape single quotes in scripts to please windows build Co-authored-by: Vijay A <avijayr@protonmail.com>
* Added a 'wakeUpStrategy' that the user can control to wake up a previously ↵Libravatar Vijay Raghavan Aravamudhan2021-07-23
| | | | hibernated service (#1680)
* Fix hibernation mode (#1486)Libravatar kytwb2021-07-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use hibernation strategy from settings instead of hardcoded 5 minutes * Fix conditions with isHibernationEnabled, previously disableHibernation * Make service hibernation obey global setting Also refactors hibernation to move some hibernation enablement logic into the Service model * Remove global hibernation enable switch Implements option 4 from https://github.com/getferdi/ferdi/pull/1486#issuecomment-860290992 according to https://github.com/getferdi/ferdi/pull/1486#issuecomment-876558694 * Implements #865 : Add 'hibernate service' and 'wake up service' in the sidebar context menu. * Removed 'hibernationEnabled' check on main settings screen Since this is an (imo) incongruous behavior for the first time user. They will see a message, but with no ability to choose the hibernation strategy. * Autogenerated files from conflict fixes Co-authored-by: Kristóf Marussy <kristof@marussy.com> Co-authored-by: Vijay A <avijayr@protonmail.com>
* Removed Franz paid plans features:Libravatar Vijay A2021-07-20
| | | | | | | | - serviceLimit - planSelection - trialStatusBar and other Franz features that were for different tiers of subscription.
* Added debug logs for auto-updater. [skip ci]Libravatar Vijay A2021-07-18
|
* Minor perf tweaks to evaluate capturing of env-specific values only once in ↵Libravatar Vijay A2021-07-15
| | | | the application.
* Use utility methods from 'electron-util'Libravatar Vijay A2021-07-04
| | | | (already a dependency) rather than re-implementing by ourselves.
* Upgrade various dependencies to latest part 2 (#1557)Libravatar Markus Hatvan2021-07-03
| | | | | | | | * Upgrade various dependencies to latest, remove unnecessary electron-hunspell - upgrade eslint and friends to latest - remove deprecated 'node-sass' in favor of 'sass' - disable new rules from 'eslint-config-airbnb' that are conflicting with current code style - add workspace config for 'vscode' that silences 'experimentalDecorator' warning and forces 'prettier' to single quote * Run yarn lint to autofix with new ruleset and worked down lint issues to zero
* Minor refactoring to move all runtime configs from 'config.js' into ↵Libravatar Vijay Raghavan Aravamudhan2021-07-03
| | | | 'environment.js'. (#1588)
* Removed the cyclical dependency (#1519) (#1539)Libravatar Markandan R2021-06-22
|
* User agent as a user-preference (#1535)Libravatar Vijay Raghavan Aravamudhan2021-06-17
| | | | | | | | | | | | | | | | | | | | Introduced a global and a service-specific 'user-agent' value that can be set by the user from the preference section. The global override is in Advanced, while the service override was moved to the bottom of the service editor form (and now occupies the full width of the form). Show 'restart reqd' prompt for user-agent setting. The order of the user-agent is the following: 1. Any request header overrides in the recipe will still override the user agent string. 2. If the user has set a user agent override for the service, use that. 3. If the recipe has a predefined user agent, use that. 4. If the user has set a global user agent override, use that. 5. Otherwise, use the user agent string corresponding to the underlying Electron version. If the current webpage is the Google login form, we still remove the Chrome version number from the user agent string. The value that would be used if no custom override is set (recipe-provided value or global override for the service, current Electron instance for the global override) is shown as a placeholder in the input box on the corresponding setting screen. Co-authored-by: Kristóf Marussy <kristof@marussy.com>
* Fix active Todos service behaviour (#1481)Libravatar kytwb2021-06-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Return false instead of null in isTodosServiceAdded * Resolve from TODOS_RECIPES_ID instead of hardcoded TODOS_RECIPE_ID * Fix TodosWebview width toggling when isTodosServiceActive * Add more todo service recipe IDs * Refactor todos state management * Moved todos service URL and recipe ID computation logic to todos/store * Simplified TodosWebview by delegating to the store for the URL and removing the (unused) payment logic * Made the todos service computation logic in the Service model depend on the logic in todos/store * Made ServicesStore depend on the todos service logic from the Service model * Todos appearance fixes * Hide double horizontal rules if todo settings are hidden due to an added todo service * Hide todos panel border when the panel is hidden or expanded * Make expanded todos panel obey sidebar width and vertical style settings * Make todos/store use isValidExternalURL * Harden isValidExternalURL against malformed URLs * Reduce todo URL string duplication in config.js Co-authored-by: Kristóf Marussy <kristof@marussy.com>
* Added ability to turn off notifications for clipboard events generated by ↵Libravatar Vijay Raghavan Aravamudhan2021-06-05
| | | | context menu actions (#1494)
* Clean up RecipeWebview.setBadge (#1461)Libravatar Kristóf Marussy2021-05-28
| | | | | Extracted from 240c3a72363e7388779c9ed3c6467ec63bb64d94 according to https://github.com/getferdi/ferdi/pull/1456#discussion_r641182688 and https://github.com/getferdi/ferdi/pull/1456#discussion_r641183662
* Replace 'remote' with 'electron/remote' (#1448)Libravatar Vijay Raghavan Aravamudhan2021-05-26
| | | * Locked new version of 'recipes' submodule with corresponding changes.
* Adding DuckDuckGo as an alternative search engine (#1414)Libravatar Vijay Raghavan Aravamudhan2021-05-15
| | | | | | | * Adding DuckDuckGo as an alternative search engine. * Fixing review comments. * Fixing review comments.
* Lazily compute cache size (#1404)Libravatar Kristóf Marussy2021-05-13
| | | | | | | | | | | | Computing the cache size can take a long time if the cache is large. Previously, cache size computation was triggered by opening the Settings pane, which slowed down changing settings even if the user wasn't interested in the cache size. This patch defers cache size computation until the Advanced tab is open in the Setting page. Additionally, cache size rendering (in MB / GB) is moved from the AppStore into the EditSettingsForm to fix the notCleared functionality.
* Fix some appearance issues (#1398)Libravatar Kristóf Marussy2021-05-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix property spelling in Sidebar component * Fix typo in todos partition name * Use the FerdiDev setting.json in dev mode The app.setPath calls are still a mess and need to be fixed, but this at least allows me to experiment locally. * Make @meetfranz/theme follow the accent color We inject the value of the accent color into the themes, so the buttons show the appropriate color. This allows removing some existing css hacks. In order to do this, the themes had to be turned into functions that take the brand color (accent color) as an argument instead of hard-coding it. The css-based accent color for legacy components is left unchanged. * Remove superfluous scrollbars While overflow: scroll doesn't look ugly on macs, because the system hides scrollbars by default (except on hower), on Linux and Windows, the disabled scrollbars appearing by default look ugly. We set overflow-y: auto instead to display a scrollbar only when needed. * Simplify theme generation in @meetfranz/themes * Remove default accent color code duplication * Apply accent color to styles not in themeInfo.json Some colors are darkened/lightened versions of the primary brand color, so they are not caught by build-theme-info. We create these styles with `color` manually. * Inset shadow on sidebar This creates a more flat look that projecting a shadow over the service, and avoid compositing a shadow over the webview. * Apply accent color to vertical style tab bar * Workspace drawer styling in vertical mode * Fix sidebar layout In vertical mode, the top of the service was clipped by the sidebar Also removes unnecessary whitespace in sidebar * Fix 1px wide line on right when todos are hidden * Fix window menu When building the menu bar, the File / app menu is added later, so we must be careful about indexing the menu bar. * Update locale files * Report the default accent color accurately * Fix inverted button with dark theme * Fix crash with invalid accent color Fall back to the default accent color instead * Darker secondary buttons in dark mode * Vertical workspace drawer style outside debug mode In order to reliably apply the style, we need to add a class name to the drawer manually, as component names only appear in class names in debug mode.