generated from chibat/chrome-extension-typescript-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feats: - Storing distribution area and power station in extension options - Showing areas without electrical power per selected area and station - Up to three days future search - Detecting expected power outage for user street - Localization: DE, EN, HR, HU and SL
- Loading branch information
Showing
72 changed files
with
5,179 additions
and
2,259 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: lint:test:build | ||
|
||
on: | ||
push: | ||
branches: [master, develop] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout commit | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14 | ||
|
||
- run: npm ci | ||
- run: npm run lint | ||
- run: npm run test | ||
- run: npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
npm-debug.log | ||
node_modules/ | ||
dist/ | ||
tmp/ | ||
tmp/ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
strict-peer-dependencies=false | ||
auto-install-peers=true | ||
always-auth=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Add files here to ignore them from prettier formatting | ||
|
||
/dist | ||
/coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"arrowParens": "avoid", | ||
"printWidth": 80, | ||
"proseWrap": "always", | ||
"singleQuote": true, | ||
"trailingComma": "none" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"command": "npm", | ||
"tasks": [ | ||
{ | ||
"label": "install", | ||
"type": "shell", | ||
"command": "npm", | ||
"args": ["install"] | ||
}, | ||
{ | ||
"label": "update", | ||
"type": "shell", | ||
"command": "npm", | ||
"args": ["update"] | ||
}, | ||
{ | ||
"label": "test", | ||
"type": "shell", | ||
"command": "npm", | ||
"args": ["run", "test"] | ||
}, | ||
{ | ||
"label": "build", | ||
"type": "shell", | ||
"group": "build", | ||
"command": "npm", | ||
"args": ["run", "watch"] | ||
} | ||
] | ||
} | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"command": "npm", | ||
"tasks": [ | ||
{ | ||
"label": "install", | ||
"type": "shell", | ||
"command": "npm", | ||
"args": ["install"] | ||
}, | ||
{ | ||
"label": "update", | ||
"type": "shell", | ||
"command": "npm", | ||
"args": ["update"] | ||
}, | ||
{ | ||
"label": "test", | ||
"type": "shell", | ||
"command": "npm", | ||
"args": ["run", "test"] | ||
}, | ||
{ | ||
"label": "build", | ||
"type": "shell", | ||
"group": "build", | ||
"command": "npm", | ||
"args": ["run", "watch"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# 0.0.1 | ||
|
||
Initial development. | ||
|
||
## Feats included: | ||
|
||
- Storing distribution area and power station in extension options | ||
- Showing areas without electrical power per selected area and station | ||
- Up to three days future search | ||
- Detecting expected power outage for user street | ||
- Localization: DE, EN, HR, HU and SL | ||
|
||
# 1.0.0 | ||
|
||
TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,41 @@ | ||
# Chrome Extension TypeScript Starter | ||
<img align="left" width="64" height="64" src="https://github.com/dineeek/hep-bez-struje/blob/develop/assets/icons/icon.png" alt="Extension icon"> | ||
|
||
![build](https://github.com/chibat/chrome-extension-typescript-starter/workflows/build/badge.svg) | ||
# Hep - bez struje | ||
|
||
Chrome Extension, TypeScript and Visual Studio Code | ||
![version](https://img.shields.io/github/v/release/hep-bez-struje/hep-bez-struje?label=version&sort=semver) | ||
[![lint:test:build](https://github.com/dineeek/hep-bez-struje/actions/workflows/lint-test-build.yml/badge.svg?branch=develop)](https://github.com/dineeek/hep-bez-struje/actions/workflows/lint-test-build.yml) | ||
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) | ||
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity) | ||
|
||
## Prerequisites | ||
Chrome extension for checking HEP areas without electric power. Based on HEP web | ||
page data scrapping, TypeScript & React. | ||
|
||
* [node + npm](https://nodejs.org/) (Current Version) | ||
<p align="center"> | ||
<img src="https://github.com/dineeek/hep-bez-struje/blob/develop/assets/screenshots/en/slideshow.gif" alt="Slideshow" /> | ||
</p> | ||
|
||
## Option | ||
## Download | ||
|
||
* [Visual Studio Code](https://code.visualstudio.com/) | ||
TODO + download badges | ||
|
||
## Includes the following | ||
## Features | ||
|
||
* TypeScript | ||
* Webpack | ||
* React | ||
* Jest | ||
* Example Code | ||
* Chrome Storage | ||
* Options Version 2 | ||
* content script | ||
* count up badge number | ||
* background | ||
- Storing distribution area and power station in extension options | ||
- Showing areas without electrical power per selected area and station | ||
- Up to three days future search | ||
- Detecting expected power outage for user street | ||
- Localization: DE, EN, HR, HU and SL | ||
|
||
## Project Structure | ||
## Permissions | ||
|
||
* src/typescript: TypeScript source files | ||
* src/assets: static files | ||
* dist: Chrome Extension directory | ||
* dist/js: Generated JavaScript files | ||
The extensions needs permissions for storing selected options preferences. | ||
|
||
## Setup | ||
# Contributing | ||
|
||
``` | ||
npm install | ||
``` | ||
Contributions are welcome! | ||
|
||
## Import as Visual Studio Code project | ||
# License | ||
|
||
... | ||
MIT License | ||
|
||
## Build | ||
|
||
``` | ||
npm run build | ||
``` | ||
|
||
## Build in watch mode | ||
|
||
### terminal | ||
|
||
``` | ||
npm run watch | ||
``` | ||
|
||
### Visual Studio Code | ||
|
||
Run watch mode. | ||
|
||
type `Ctrl + Shift + B` | ||
|
||
## Load extension to chrome | ||
|
||
Load `dist` directory | ||
|
||
## Test | ||
`npx jest` or `npm run test` | ||
Copyright (c) 2023 Dino Klicek |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
module.exports = { | ||
"roots": [ | ||
"src" | ||
], | ||
"transform": { | ||
"^.+\\.ts$": "ts-jest" | ||
}, | ||
}; | ||
roots: ["src"], | ||
testMatch: ["**/__tests__/**/*.+(spec.ts)"], | ||
transform: { | ||
"^.+\\.ts$": "ts-jest", | ||
}, | ||
testEnvironment: "jsdom", | ||
}; |
Oops, something went wrong.