aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers
Commit message (Collapse)AuthorAge
* eslint needs to be executed at the top-level to actually workv6.0.1-nightly.3Libravatar Vijay A2022-07-25
|
* Feature: Add Release Notes (#491)Libravatar André Oliveira2022-07-19
| | | | Co-authored-by: Vijay A <vraravam@users.noreply.github.com> Co-authored-by: Ricardo Cino <ricardo@cino.io>
* Use default exports instead of named exportsLibravatar Vijay A2022-07-02
|
* chore: transform containers/settings from js to tsx (#384)Libravatar Ricardo Cino2022-06-27
|
* chore: turned all auth containers into typescript (#375)Libravatar Ricardo Cino2022-06-26
|
* chore: moved tests to ./test directory (#366)Libravatar Ricardo Cino2022-06-25
| | | * chore: allow coverage to be generated from non-tested files
* Extract utility functions for JSON parsingLibravatar Vijay A2022-05-15
|
* Fix issue where the replacement of double-slash was over-aggressive (#151)Libravatar Vijay Aravamudhan2022-05-15
|
* Add Unit Testing for `url-helpers.ts`; Moved all tests into single pattern ↵Libravatar Aditya Mangalampalli2022-05-12
| | | | | so they are run as a suite (#112) Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
* New fix for fixing URLs with '//' (#105)Libravatar Vijay Aravamudhan2022-05-07
|
* New Crowdin updates (#117) [skip ci]Libravatar Vijay Aravamudhan2022-05-07
|
* Do not allow http urls that end in '/' (fixes #102) (#103)Libravatar Vijay Aravamudhan2022-05-05
|
* fix: modify user agent string on Linux (#99)Libravatar Max Wipfli2022-05-05
| | | | | | | | | | On Linux, the user agent includes 'X11; Ubuntu; Linux ${arch}'. This user agent string break the Google Calendar service because the server decides to serve to mobile site instead of the desktop site based on that string. On my non-Ubuntu Linux machine, the UA used is almost identical, except for the 'Ubuntu; ' part. Removing that part from the default UA we use fixes that particular error and seems no to break any other services.
* Feature: makes Services location in sidebar changeable (#95)Libravatar André Oliveira2022-05-05
|
* Preload safe debug shim (#29)Libravatar Kristóf Marussy2022-04-22
| | | | | | | | | | | | | | | | In https://github.com/ferdium/ferdium-app/pull/23 we removed usages of the debug package due to an electron bug. This patch aims to restore some debug functionality by introducing a shim. The shim detect whether if it is being introduced in a preload script where the electron but would be triggered, and falls back to a simple replacement for debug. However, in the main and renderer processes, where a preload script is not being used, we still get full debug functionality. In this way, a module can be used both in a preload script and outside of it, while still preserving debug functionality whenever possible. Signed-off-by: Kristóf Marussy <kristof@marussy.com>
* Turn off usage of 'debug' npm package using with electron-16 (fixes #17)Libravatar Vijay Aravamudhan2022-04-22
|
* Matched casing for almost all replacementsLibravatar Aditya Mangalampalli2022-04-16
|
* chore: update eslint deps to latest (#2213)Libravatar Markus Hatvan2021-11-12
| | | | | - update eslint deps to latest - disable new react/function-component-definition rule - fix/disable newly reported issues
* feature: allow 'file' urls for services (fixes #2118) (#2130)Libravatar Vijay Aravamudhan2021-10-26
|
* chore: update eslint setup (#2074)Libravatar Markus Hatvan2021-10-15
|
* chore: convert files to TS (#2066)Libravatar Markus Hatvan2021-10-14
|
* refactor: locale selection cleanup (#2031)Libravatar Markus Hatvan2021-10-07
|
* refactor: use correct datatypes in ts filesLibravatar Vijay A2021-10-03
|
* 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
|
* feat: add eslint-plugin-unicorn (#1936)Libravatar Markus Hatvan2021-09-14
|
* refactor: revert the text for some more fields.Libravatar Vijay A2021-09-14
|
* chore: codebase improvements (#1930)Libravatar Markus Hatvan2021-09-14
|
* chore: upgrade intl dependencies (#1920)Libravatar Markus Hatvan2021-09-13
|
* refactor: Minor refactoring to handle NaN in 'setBadge'Libravatar Vijay A2021-08-17
|
* Revert "chore: update outdated node_modules (#1807)"Libravatar Vijay A2021-08-16
| | | | This reverts commit 26a9dba22236bc22a7612107630282cfe02d20e0.
* chore: update outdated node_modules (#1807)Libravatar Markus Hatvan2021-08-16
| | | | - upgrade 'uuid', '@types/uuid', 'macos-version', 'normalize-url' and 'os-name' dependencies to latest - updated 'macos-version' imports to named imports
* fix: fix issue with left-clicking regressionLibravatar Vijay A2021-08-16
| | | | (was introduced due to the typescript conversion)
* chore: typescript conversion of some minor utilitiesLibravatar Vijay A2021-08-15
| | | | Also removed 'targz' unused package from runtime.
* Initial plumbing and conversion of a simple javascript to typescript (#1790)Libravatar Vijay Raghavan Aravamudhan2021-08-15
| | | | | * initial conversion of a simple script * Moved some of the 'gulp' and related npm modules from being runtime dependencies to development dependencies.
* 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
|
* 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/
* 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>
* Removed Franz paid plans features:Libravatar Vijay A2021-07-20
| | | | | | | | - serviceLimit - planSelection - trialStatusBar and other Franz features that were for different tiers of subscription.
* Minor perf tweaks to evaluate capturing of env-specific values only once in ↵Libravatar Vijay A2021-07-15
| | | | the application.
* Use 'useragent-generator' to generate the user-agent string rather than ↵Libravatar Vijay Raghavan Aravamudhan2021-07-12
| | | | manually building it. (#1592)
* Use utility methods from 'electron-util'Libravatar Vijay A2021-07-04
| | | | (already a dependency) rather than re-implementing by ourselves.
* 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>
* Expose Chrome version to todos webview (fix #1211) (#1478)Libravatar Kristóf Marussy2021-06-03
| | | | | | | | | | | | | | | | | * Expose Chrome version to todos webview (fix #1211) The TickTick todo service fails to load if the Chrome version number does not appear in the User-Agent string. However, login to Google Tasks is prevented by the same. We adopt the "chromeless" User-Agent logic from the service webview, which selectively exposes the Chrome version everywhere except the Google login screen. The common logic was moved into the userAgent-helpers module. * Refactor user agent switching * "Chromeless" user agent switching is extracted into a separate model * Both the service and the todos webview uses the same model
* Replace 'remote' with 'electron/remote' (#1448)Libravatar Vijay Raghavan Aravamudhan2021-05-26
| | | * Locked new version of 'recipes' submodule with corresponding changes.
* Method reuse (#1379)Libravatar Vijay Raghavan Aravamudhan2021-05-11
| | | | | * Used already exported common functions to avoid the same logic being repeated. * Use a different package to retrieve the os-name for the 'About Dialog'.
* Synchronize with Franz 5.6.0 (#1033)Libravatar Amine El Mouafik2021-02-08
| | | | | | | Co-authored-by: FranzBot <i18n@meetfranz.com> Co-authored-by: vantezzen <hello@vantezzen.io> Co-authored-by: Makazzz <makazzzpro@live.ca> Co-authored-by: Stefan Malzner <stefan@adlk.io> Co-authored-by: Amine Mouafik <amine@mouafik.fr>
* Remove Ferdi string from default user agent (#806)Libravatar Danny Qiu2020-09-22
|
* Update global user agent to conform with spec (#779)Libravatar Danny Qiu2020-05-28
| | | The default user agent string places Electron/8.2.3 inside parenthesis, which is defined as a comment according to https://tools.ietf.org/html/rfc7231#section-5.5.3. However, Electron should instead be specified as a product and formatted with whitespace instead of parenthesis.