Giter VIP home page Giter VIP logo

crane-app's Introduction

Hi there ๐Ÿ‘‹

Tom here, passionate Full-Stack dev with a love for Typescript-React-Nodejs-projects (c).

  • ๐Ÿ”ญ Iโ€™m currently working on some absolutely awesome, very secret stuff around Typescript, React, PWAs and Nodejs
  • ๐ŸŒฑ Iโ€™m currently learning Rust to broaden my skills and also expanding my knowledge about management
  • ๐Ÿ’ฌ Ask me about Typescript, React, Nodejs, Firebase, GCP, Google App Script, Frontend, Backend, or just about anything!
  • ๐Ÿ“ซ How to reach me: [email protected]

crane-app's People

Contributors

flaming-codes avatar spacecowboy-71 avatar tom-bywild avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

crane-app's Issues

๐Ÿ’ก Make Typeahead-DB self cache-aware

Implementation PR

No response

Reference Issues

No response

Summary

The current implementation uses the ServiceWorker to host our Typeahead database. This was implemented due the following reasons:

  • instance off the main thread, as ServiceWorker has its own process
  • SW proxies as requests to the typeahead-URL, which makes the implementation in FE very nice, as the client only calls the endpoint
  • gets updated w/ new SW-updates

Although its working nicely, the setup can be improved by using a WebWorker as host for the DB:

  • better separation of concerns, as SW will be reduced to its work as network proxy
  • clearer implementation for new devs, as the DB doesn't get hidden away in SW
  • less time for SW in install-phase

Basic Example

  1. PWA gets requested by client
  2. The search-component spawns + sends an init-event to the DB-WebWorker
  3. DB either initialises from scratch (first call) or checks if the cache timestamp is outdated and initialises if so
  4. if init: load latest items, store them via IDB, populate Loki, send init/201 event

At this point, the worker is ready to accept queries for Typeahead-suggestions.

Drawbacks

We'll use commlink as helper lib. Thankfully, its size-footprint is very small, yet it introduces great DX-enhancements for WebWorker communication.

Unresolved questions

No response

Copy install command shortcut not working

Describe the bug
While on a package detail page, the shortcut for copying the install command (ctrl + shift + C) does not work.

To Reproduce

  1. Go to a package detail page
  2. Press ctrl + shift + C
  3. Notice no popup and command is not in clipboard

Expected behavior
Command should have been added to clipboard with a popup notifying of the copying

Desktop (please complete the following information):

  • OS: Win 11
  • Browser: Chrome, Edge

๐Ÿ› [BUG] - Clicking links opens two tabs to the same URL

Description

For any package listed on on the website, if I click on the github-link it will open a new window to the repository, but at the same time it redirects the original site to the same link.

Reproduction steps

1. Go to https://www.cran-e.com/package/tidyverse
2. Scroll down to `About`
3. Click on the github-link

Browsers

Firefox

OS

Windows

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.