GithubHelp home page GithubHelp logo

nicosh / chrome-dev-newtab Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 7.0 1.87 MB

A dev friendly new tab for Google Chrome.

JavaScript 83.49% HTML 6.08% Shell 0.40% CSS 10.02%
extension chrome react hacktoberfest chrome-extension javascript hacktoberfest2022

chrome-dev-newtab's Introduction

Chrome Dev Newtab

A dev friendly new tab for Google Chrome.
Google chrome extension that turn a new tab into a productive dashboard.

Picture

๐Ÿšง Features ๐Ÿšง :

  • Works offline โœ…
  • Show memory and cpu usage โœ…
  • Google or Stackoverflow search bar โœ…
  • Easily delete browser data โœ…
  • Easy access to the browser history โœ…
  • Javascript sandbox โœ…
  • Kanban board (with local storage data persistence) โœ…
  • Lighthouse integration โœ…
  • Markdown editor (with local storage data persistence) โœ…
  • Github ready โœ…
  • Trending posts from CS related subreddits โœ…
  • Light and dark theme โณ

Installation

  • Go to chrome://extensions/ and check the box for Developer mode in the top right.
  • Download and unzip extension.zip from the last release
  • Drag and drop the dist folder into extensions tab
  • Activate the extension

Development

Since Chrome apis cannot be used outside extension scope (chrome-extension://) you cannot run the app as you would normally do with a react application.

  • Go to chrome://extensions/ and check the box for Developer mode in the top right.
  • Fork the repo and clone it locally
  • Install dependencies with npm install.
  • Do a build first with npm run build
  • Run npm run start
  • In another shell tab run npm run watch
  • Open extensions tab in google chrome
  • Drag and drop the build folder into extensions tab
  • Activate the extension
  • Start coding

Every time you make a change inside the src folder npm run watch will make a new build and you just need to refresh the tab for see changes.

chrome-dev-newtab's People

Contributors

amreshsinha avatar croustys avatar d4rkener avatar dolamanee6122 avatar girish-bharadwaj avatar lucasgmelo avatar nicosh avatar semantic-release-bot avatar xfra96 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

chrome-dev-newtab's Issues

Improve dark theme

Body background in dark mode should be #121212
Cards background should be #272727
Searchbar text should be #fff

Any other suggestion / improvement is welcome (ex. change link colors)

Fix dark theme

At the moment dark theme needs some tweaks :

  1. Performance chart labels are not changing color
  2. Tabs labels are not changing color
  3. Reddit title section is not changing color

Problem when opening Todo Tab

When clicking on todo open blank page.

This is the report from devtools

SyntaxError: Unexpected token o in JSON at position 1 at JSON.parse (<anonymous>) at main.c7b55b5f.chunk.js:1 at Ic (2.f518325e.chunk.js:2) at t.unstable_runWithPriority (2.f518325e.chunk.js:2) at Uo (2.f518325e.chunk.js:2) at Pc (2.f518325e.chunk.js:2) at 2.f518325e.chunk.js:2 at R (2.f518325e.chunk.js:2) at MessagePort.w.port1.onmessage (2.f518325e.chunk.js:2)

use chrome.storage instead that localStorage

Use chrome apis chrome.storage for storage purposes instead that localStorage everywhere is needed.

Ex :

let savedBoard = localStorage.getItem("board") ? localStorage.getItem("board") : defaultBoard;

const currentTheme = localStorage.getItem("theme") || "light";

localStorage.setItem('theme', newTheme);

localStorage.setItem('board', newBoard);

const gitUser = localStorage.getItem("git_username");
const gitToken = localStorage.getItem("git_token");

if (response.status != 200) {
localStorage.removeItem("git_username");
localStorage.removeItem("git_token");
setError(true)
setErrorMessage("Error")
setData(false)
} else {
let data = await response.json()
if (reposListType === 1) {
data = data.data.user.repositories.nodes
}
if (n) {
localStorage.setItem('git_username', n)
} else {
localStorage.removeItem("git_username");
}
if (t) {
localStorage.setItem('git_token', t)
} else {
localStorage.removeItem("git_token");
}

useEffect(()=>{
let text = localStorage.getItem("notestext") || "Write something...";
setNotes(text)
},[])
const onChange = (value) => {
localStorage.setItem('notestext', value);
setNotes(value);
};
return <SimpleMDE value={notes} onChange={onChange} />
}

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.