Giter Club home page Giter Club logo

productive-cycles-webext's Introduction

Productive Cycles

Pomodoro-inspired timer extension for Firefox and Google Chrome

This article from the Trello blog explains it nicely

Features

  • Timer with configurable minutes
  • Configurable cycles - number of periods the user wants the timer to repeat itself for
  • Tracker for completed cycles during each session
  • Notifications sent to the user once the timer expires

Inspiration

  • A hands-on project to practice Javascript, and to learn more about listeners + asynchronous programming
  • Automating a technique that has worked really well for me
  • Chrome extension vs. mobile app: quicker deployment
  • This became an opportunity to publish a piece of software in a store for the first time

License

MIT License; check out the LICENSE.md file in the repo

References

Icons

From the open source collection Font Awesome


Manual Installation

  1. Clone the repository git clone https://github.com/diegoserranor/productive-cycles-webext.git

  2. Install the necessary modules npm install (assuming you have Node installed)

  3. Run a production build with npm run build

  4. Load the extension to the browser:

    • Firefox - Visit about:debugging and load it as a temporary extension

    • Chrome - Visit chrome:extensions, enable the developer mode, and load it as an unpacked extension

productive-cycles-webext's People

Stargazers

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

Watchers

 avatar

productive-cycles-webext's Issues

Warnings for innerHTML and Function() eval in production

Using the web-ext lint tool in production builds gives warnings on the use of innerHTML and eval(). This could delay or prevent publications of the extension for both Firefox and Chrome, especially as Manifest V3 is adopted.

Warnings (3 total):

  • 2 x UNSAFE_VAR_ASSIGNMENT: Unsafe assignment to innerHTML
  • 1 x DANGEROUS_EVAL: The Function constructor is eval.

Attempts to fix:

  • Changing targets in babel configuration to include very recent browsers only (e.g. Chrome 88 and up)
  • Removing all SVG imports
  • Removing all CSS imports
  • Removing fonts in CSS files

Removing the font imports from the CSS files cleared the DANGEROUS_EVAL warning.
This seems to be a webpack-specific issue.

Next steps:

  • Experiment with tsc builds and static assets folder (no bundling)
  • Experiment with Parcel V2 once released
  • Experiment with Vite

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.