Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: various improvements #1296

Merged
merged 2 commits into from
Jul 30, 2023

Conversation

mcmxcdev
Copy link
Contributor

@mcmxcdev mcmxcdev commented Jul 30, 2023

Pre-flight Checklist

Please ensure you've completed all of the following.

Description of Change

  • 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 warning with div inside p in EditSettingsForm
  • fix progressbarAccentColor color picker not updating input when using slider
  • install missing @types/react-color dependency

Motivation and Context

My initial intention was to get rid of as many any as possible, but then I stumpled upon many more code to improve!

Sorry for the chaotic scope of this one but it's an important one :)

Screenshots

Checklist

  • My pull request is properly named
  • The changes respect the code style of the project (pnpm prepare-code)
  • pnpm test passes
  • I tested/previewed my changes locally

Release Notes

package.json Show resolved Hide resolved
src/index.ts Show resolved Hide resolved
@mcmxcdev mcmxcdev marked this pull request as ready for review July 30, 2023 02:27
@mcmxcdev mcmxcdev requested a review from a team as a code owner July 30, 2023 02:27
- 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
- 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
@vraravam vraravam force-pushed the refactor/various-improvements branch from 6eab850 to bdf30d2 Compare July 30, 2023 03:06
@vraravam vraravam merged commit 32f76b7 into ferdium:develop Jul 30, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants