aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
Commit message (Collapse)AuthorAge
* refactor: prep for i18n of context menu itemsLibravatar Vijay A2021-08-06
|
* refactor: minor refactoring: solve name-clash of env vars vs vars in the programLibravatar Vijay A2021-08-05
|
* Removed straggling code related to 'popular services'.Libravatar Vijay A2021-08-03
|
* Fixed #1722 [skip ci]Libravatar Vijay A2021-08-02
|
* Removed 'Most Popular' services since it alludes to user-tracking (#1718)Libravatar Vijay Raghavan Aravamudhan2021-08-02
|
* Minor visual refactoring to hide double separator. [skip ci]Libravatar Vijay A2021-08-02
|
* 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>
* Recipe context isolation (#1456)Libravatar Kristóf Marussy2021-07-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Enable service contextIsolation * Enable contextIsolation on the service webviews * Expose a new API window.ferdi in the service main world to allow calling back into the service isolated world * Expose a new IPC message inject-js-unsafe from the service isolated world to execute Javascript in the service main world (i.e., run code without context isolation). While the name contains the "unsafe" suffix to show the lack of context isolation, this should mostly be safe, as no nodejs APIs are available in the injected code. * Refactor the Notifications shim into a part in the isolated world that handles displaying and modifying notifications, and a shim in the main world for the Notifications class. The two communicate via the window.ferdi endpoint and a Promise object can be used to detect notification clicks. * Refactor the screen sharing shim into a part in the isolated world that enumerated shareable screens and windows and a shim in the main world that displays the media selector and completes the media selection promise. * Expose the injectJSUnsafe API to recipes to inject javascript code into the main world without context isolation. * Expose setBadge to the main world The window.ferdi.setBadge API can be used to update the service badge from injected unsafe Javascript * Safer script injection into the service main world Make sure that we don't try to serialize stray objects back from the main world to the isolated world by always surrounding the script to be executed by an anonymous function. * Always read recipe assets as utf8 * Remove window.log from recipes We didn't use it anywhere and its behavior was confusing in production mode. * Inject multiple unsafe scripts at the same time * Find in page without remote module Remove the @electron/remote dependency from the find in page (Ctrl+F) functionality. The remote webContents is replaced with Electron IPC. Synchronous IPC messages are handled in the main Electron process, because the renderer process cannot reply to IPC messages synchronously. * Update to latest contextIsolation recipes * Fixing issue with missing 'fs' functions. 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)
* Removed unused i18n keys. [skip ci]Libravatar Vijay A2021-07-23
|
* 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.
* Minor refactoring to avoid leaking of objects.Libravatar Vijay A2021-07-19
|
* Update submodules, browserslist data updates and linter fixes [skip ci]Libravatar github-actions2021-07-16
|
* if changed with conditional operator + getOS removed and replaced with isWindowsLibravatar Pierluigi Minardi2021-07-16
|
* Fix the file path format + function to recognize the OSLibravatar Pierluigi Minardi2021-07-16
|
* Fix on the path format + function to recognize the OSLibravatar Pierluigi Minardi2021-07-16
|
* fix: fix breaking tab componentLibravatar mhatvan2021-07-07
| | | | | | - move active tab state from componentDidMount to constructor - fix toggle.tsx breaking tsc - add .prettierrc.js for consistent formatting
* Added new help text for lay-users to figure out what their user-agent value is.Libravatar Vijay A2021-07-06
|
* Fixed issue with not being able to add new service.Libravatar Vijay A2021-07-04
|
* 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)
* Upgrade various dependencies to latest, remove unnecessary electron-hunspellLibravatar mhatvan2021-06-24
|
* Upgraded eslint and fixed all the reported errors. (#1549)Libravatar Vijay Raghavan Aravamudhan2021-06-23
|
* Added new message when the user doesn't find a service (but that is present ↵Libravatar Vijay A2021-06-23
| | | | in the website).
* 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)
* Removed hardcoded strings and reused constants defined in config.js (#1499)Libravatar Vijay Raghavan Aravamudhan2021-06-05
|
* Upgraded electron to '13.1.0'.Libravatar Vijay A2021-06-03
|
* Replace 'remote' with 'electron/remote' (#1448)Libravatar Vijay Raghavan Aravamudhan2021-05-26
| | | * Locked new version of 'recipes' submodule with corresponding changes.
* Expose recipe version in 'Settings' dialog while adding or editing a ↵Libravatar Vijay Raghavan Aravamudhan2021-05-22
| | | | service. (#1439)
* Changed occurrences of 'Franz' to 'Ferdi' (probably missed earlier while ↵Libravatar Vijay A2021-05-17
| | | | catchup from Franz source). [skip ci]
* Separated privacy & security settings into its own tab in the preferences ↵Libravatar Vijay Raghavan Aravamudhan2021-05-15
| | | | | | | screen (#1416) * Separated privacy & security settings into its own tab in the preferences screen. * Fixing review comments.
* 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.
* 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'.
* Fix typo in Login.js (#1348)Libravatar Ikko Ashimine2021-05-05
|
* Delete service confirmation (#1328)Libravatar Vijay Raghavan Aravamudhan2021-05-03
|
* Electron 12 and nodejs 14 support (#1308)Libravatar Kristóf Marussy2021-04-29
|
* Removed electron-process-manager since its no longer supported by Ele… (#1313)Libravatar Vijay Raghavan Aravamudhan2021-04-29
|
* Displays search input when service is not found (#1212)Libravatar Yoga Setiawan2021-02-21
|
* 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>
* Show username and lastname fetched from server in account settingsLibravatar Michał Kostewicz2021-02-07
|
* Add new setting to minimize to tray when closing on Windows (#1093)Libravatar 1mm0rt41PC2021-01-06
| | | Co-authored-by: Amine El Mouafik <amine@mouafik.fr>
* Flash TaskBar (Windows) / Bounce Dock (Mac) on New Message (#1020)Libravatar Mahadevan Sreenivasan2020-10-14
| | | | | | - Add a new Toggle Field for Win32 and MacOS for NotifyTaskBarOnMessage in EditSettingsForm.js - Add notifyTaskbarOnMessage under messages Array in EditSettingsScreen.js - Update appIndicator.js to flash Windows TaskBar or Bounce the Dock on MacOS when a new message arrives - Update en-US.json to include settings.app.form.notifyTaskBarOnMessage string
* Add vertical style and "Always show workspace drawer" setting (#567)Libravatar Bennett2020-10-11
|
* Improve Ferdi's design (#977)Libravatar Bennett2020-10-11
| | | Co-authored-by: Amine Mouafik <amine@mouafik.fr>
* Merge #722Libravatar Bennett2020-10-11
|