refactor http-client service

Open
#136 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
electron, typescript
Domain
desktop, web-dev

Research direction

Locate the http-client service and identify the methods that check globals.iselectron; the issue does not name its file or any tests. First map how the service is used in the Electron and web entry points, then determine the interface and class boundaries. Done means both implementations follow the interface and the repeated environment checks are removed.

Written by the indexing model from the issue text.

Description

internal priority

the service should be refactored into two separate classes which implement an interface, one for electron and one for web. This eliminates the need to add `if(globals.iselectron) in every method

Dominant language
TypeScript
Stars
59
Forks
19
Avg merge
32m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CCDirectLink/crosscode-map-editor

All issues in CCDirectLink/crosscode-map-editor

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.