aboutsummaryrefslogtreecommitdiffstats
path: root/src/api
Commit message (Collapse)AuthorAge
* refactor: remove unused code with knip (#1492)Libravatar MCMXC2023-12-22
| | | - remove unused code snippets flagged by `npx knip`
* refactor: code cleanup (#1476)Libravatar MCMXC2023-12-07
| | | | | - auto update `settings.json` due to new vscode version - replace deprecated `e.keyCode` with `e.key` - fix various code snippets with sonarlint and other lint plugins
* chore: project maintenance (#1466)Libravatar MCMXC2023-12-03
| | | | | | | | | | - temporarily disable newly introduced `jsx-a11y/control-has-associated-label` rule - add `--quiet` flag to lint command to see issues with error level only - reuse `lint` command for `lint:fix` command - use `--cache` flag for `prettier` and `eslint` commands - upgrade all non-major dependencies to latest except for `esbuild` - run `pnpm dedupe` to simplify lockfile - autofix various `.ts` and `.tsx` files with `pnpm prepare-code` command - disable newly discovered lint issue in `SearchInput`
* Add new token request (#1384)Libravatar André Oliveira2023-10-13
| | | | | | | | | | | | | | | | | * Add new token request This exists so that the user generates a new JWT token with the new adonisjs update on the server (that is now stored - hashed and using the adonis5-jwt package - which previously wasn't). This logic enhances security as we can delete the tokens on the jwt_tokens database in order to log-off users in case the APP_KEY is compromised (if we are hacked, for instance). After some time (maybe months after the migration) we can delete the old code on the server side that handles the deprecated JWT tokens (and possibly change the APP_KEY used to sign the old certificates - we can now probably use certs to sign the JWT - to enhance security as well). * Update src/api/server/ServerApi.ts Co-authored-by: MCMXC <16797721+mcmxcdev@users.noreply.github.com> * Update src/stores/UserStore.ts Co-authored-by: MCMXC <16797721+mcmxcdev@users.noreply.github.com> --------- Co-authored-by: MCMXC <16797721+mcmxcdev@users.noreply.github.com>
* fix: login and signup error messagesLibravatar André Oliveira2023-09-30
|
* refactor: more lint improvementsLibravatar MCMXC2023-07-30
| | | | | | | | | - set parserOptions.ecmaVersion to latest and env to es2024 in eslint config - install missing types libraries - install eslint-plugin-sonar - enable eslint-plugin-sonar recommended rules and declare jsx-runtime for react in eslint config - clean up disabled lint rules which don't inflict problems anymore - disable various lint issues and fix others
* refactor: various improvements (#1296)Libravatar MCMXC2023-07-30
| | | | | | | | | | | | | | | | | | | | | | | | | * refactor: various improvements - enable no-use-before-define eslint rule - shuffle code to conform to no-use-before-define eslint rule - remove btoa dependency which is deprecated and replace with Buffer.from(string).toString('base64') - convert some any types into useful ones - add type annotations where possible - remove unused @types/expect.js - install @types/semver and ts-node which were missing - repair and rewrite add-crowdin-contributors script - remove export keyword from variables which are never consumed in another file - remove unity indicator hack where linked issue was closed - remove module declaration for kebab-case which is unused - add missing state interface for certain components - remove default exports for files which already have a named export - export IRecipePreview so it can be used throughout codebase - remove unused removeCacheForCallWith method from CachedRequest.ts - cleanup unused colors and styles inside legacy theme * - improve ColorPickerInput - fix invalid DOM nesting with div inside p in EditSettingsForm - fix progressbarAccentColor color picker not updating input when using slider - install missing @types/react-color dependency
* chore: improve lint setupLibravatar MCMXC2023-07-25
| | | | | | | | | | | | | | | - update eslint config - merged eslint rules for JS and TS to avoid duplicates - extended stricter lint ruleset from typescript-eslint - corrected wrong setup for certain eslint rulesets - opt in to reportUnusedDisableDirectives config option - fix or disable a lot of lint issues throughout codebase - remove trailingComma: all from prettier config which is default in prettier v3 - add volta configuration to package.json to autoload correct node and pnpm versions - upgrade all eslint and prettier related dependencies to latest - remove config options from settings.json which are default anyways - remove config options from settings.json which are outdated/unknown - set up prettier as default formatter in settings.json
* Upgrade npm modulesLibravatar Vijay A2023-05-24
|
* eslint needs to be executed at the top-level to actually workv6.0.1-nightly.3Libravatar Vijay A2022-07-25
|
* Handle both ferdi and ferdium servers for transferring from (#473)Libravatar Vijay Aravamudhan2022-07-13
|
* refactor: local server import/exportLibravatar Kristóf Marussy2022-07-11
| | | | Signed-off-by: Kristóf Marussy <kristof@marussy.com>
* chore: Mobx & React-Router upgrade (#406)Libravatar Ricardo Cino2022-07-07
| | | Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
* Add Server Information to About Dialog and to Global Messages (#425)Libravatar André Oliveira2022-07-05
| | | Add Server Information to About Dialog and to Global Messages
* Use default exports instead of named exportsLibravatar Vijay A2022-07-02
|
* Change login screen layout (#345)Libravatar André Oliveira2022-06-23
|
* Workaroud for in-app Password Recovery (#342)Libravatar André Oliveira2022-06-23
| | | | | * Change funtion name [skip ci] * Workaround #312
* chore: Transform AppStore.js into Typescript (#329)Libravatar Ricardo Cino2022-06-21
| | | | | * turn actions into typescript * correct tsconfig * added TypedStore
* Change the termBase for accountless mode (#160)Libravatar André Oliveira2022-05-16
|
* New fix for fixing URLs with '//' (#105)Libravatar Vijay Aravamudhan2022-05-07
|
* Add Ferdi server to hosted services (#49)Libravatar André Oliveira2022-04-27
| | | | * 'SettingsNavigation.js' and 'TeamDashboard.js' also have a call to 'LIVE_FERDI_API', but it handles the teams feature that I think neither Ferdi or Ferdium provide. * Removes comment on 'apiBase.ts' because I tested and the Terms was redirecting fine on the 'Help' Menu.
* 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
|
* Remove try/catch in getRecipePackageLibravatar kytwb2022-01-07
|
* Use window.fetch in getRecipePackage, removes electron-fetchLibravatar kytwb2022-01-07
|
* Revert "Removed straggling code related to popular services."Libravatar kytwb2022-01-02
| | | | This reverts commit a9c1abc6f11cb193388fad505c0304f1efe60a30.
* chore: convert various files to TS (#2246)Libravatar Markus Hatvan2021-11-18
| | | | | | * convert various files to TS * removed outdated docs/example-feature folder * turn off unicorn/no-empty-file * update eslint config
* 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
* chore: remove all code related to news (#2069)Libravatar Markus Hatvan2021-10-14
|
* chore: replace deprecated du with fast-folder-size (#2050)Libravatar Markus Hatvan2021-10-12
|
* refactor: use correct datatypes in ts filesLibravatar Vijay A2021-10-03
|
* chore: convert various files from JS to TS (#2010)Libravatar Markus Hatvan2021-10-02
|
* 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
|
* refactor: remove references to 'electron/remote' - part deux (#1987)Libravatar Vijay Aravamudhan2021-09-26
|
* fix: fix issue with new API of 'du' npm moduleLibravatar Vijay A2021-09-25
|
* fix: remove reference to '@electron/remote' module (#1967)Libravatar Vijay Aravamudhan2021-09-19
|
* feat: add eslint-plugin-unicorn (#1936)Libravatar Markus Hatvan2021-09-14
|
* chore: codebase improvements (#1930)Libravatar Markus Hatvan2021-09-14
|
* refactor: add debug statements [skip ci]Libravatar Vijay A2021-08-21
|
* refactor(cleanup): remove code that refers to paid subscriptionLibravatar Vijay A2021-08-21
| | | | (since we are always premium/free)
* chore: typescript conversion of some minor utilitiesLibravatar Vijay A2021-08-15
| | | | Also removed 'targz' unused package from runtime.
* chore: Refactoring to reuse already defined constantsLibravatar Vijay A2021-08-13
|
* cleanup: Removed commented out code [skip ci]Libravatar Vijay A2021-08-12
|
* fix: fix the changelog api to handle nightly buildsLibravatar Vijay A2021-08-08
|
* 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/
* fix: change all occurrences of hard-coded ip address '127.0.0.1' to 'localhost'Libravatar Vijay A2021-08-05
| | | | | | | Also refactored to make this a constant defined in a single file where it is imported for all other uses. fixes #1253
* 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
* refactor: minor refactoring: solve name-clash of env vars vs vars in the programLibravatar Vijay A2021-08-05
|