-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
3,680 additions
and
312 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -14,4 +14,4 @@ | |
node_modules/ | ||
|
||
# dist | ||
dist/js/ | ||
dist/ |
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 @@ | ||
singleQuote: true |
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 |
---|---|---|
@@ -1,24 +1,32 @@ | ||
{ | ||
"name": "steelseries-cinema", | ||
"version": "0.1.0", | ||
"description": "Allows to subscribe to browser fullscreen event to control steelseries gears lighting", | ||
"main": "index.js", | ||
"repository": "[email protected]:meskill/steelseries-fullscreenhandler.git", | ||
"author": "meskill <[email protected]>", | ||
"license": "MIT", | ||
"private": true, | ||
"scripts": { | ||
"build": "tsc", | ||
"watch": "tsc --watch" | ||
}, | ||
"devDependencies": { | ||
"@types/chrome": "^0.0.154", | ||
"@typescript-eslint/eslint-plugin": "^4.29.3", | ||
"@typescript-eslint/parser": "^4.29.3", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-prettier": "^3.4.1", | ||
"prettier": "^2.3.2", | ||
"typescript": "^4.3.5" | ||
} | ||
} | ||
"name": "steelseries-cinema", | ||
"version": "0.1.0", | ||
"description": "Allows to subscribe to browser fullscreen event to control steelseries gears lighting", | ||
"main": "index.js", | ||
"repository": "[email protected]:meskill/steelseries-fullscreenhandler.git", | ||
"author": "meskill <[email protected]>", | ||
"license": "MIT", | ||
"private": true, | ||
"scripts": { | ||
"build": "webpack build --config ./tools/webpack/config/prod.js", | ||
"watch": "webpack watch --config ./tools/webpack/config/dev.js", | ||
"lint": "eslint ./src/**/*.ts && eslint ./tools/**/*.js" | ||
}, | ||
"devDependencies": { | ||
"@types/chrome": "^0.0.154", | ||
"@typescript-eslint/eslint-plugin": "^4.29.3", | ||
"@typescript-eslint/parser": "^4.29.3", | ||
"clean-webpack-plugin": "^4.0.0-alpha.0", | ||
"copy-webpack-plugin": "^9.0.1", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-prettier": "^3.4.1", | ||
"prettier": "^2.3.2", | ||
"ts-loader": "^9.2.5", | ||
"typescript": "^4.3.5", | ||
"webpack": "^5.51.1", | ||
"webpack-cli": "^4.8.0", | ||
"webpack-dev-server": "^4.0.0", | ||
"webpack-merge": "^5.8.0" | ||
} | ||
} |
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
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,26 @@ | ||
{ | ||
"name": "SteelSeries fullscreen", | ||
"version": "0.1.0", | ||
"description": "Allows to subscribe to browser fullscreen event to control steelseries gears lighting", | ||
"manifest_version": 2, | ||
"permissions": [ | ||
"activeTab", | ||
"file://*/*" | ||
], | ||
"background": { | ||
"scripts": [ | ||
"background.js" | ||
], | ||
"persistent": false | ||
}, | ||
"content_scripts": [ | ||
{ | ||
"matches": [ | ||
"https://*/*" | ||
], | ||
"js": [ | ||
"handler.js" | ||
] | ||
} | ||
] | ||
} |
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 @@ | ||
JSON.parse(document.body.firstChild.innerText); |
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,24 @@ | ||
root: true | ||
env: | ||
browser: true | ||
commonjs: true | ||
es2021: true | ||
node: true | ||
extends: | ||
- "eslint:recommended" | ||
- "plugin:prettier/recommended" | ||
parserOptions: | ||
ecmaVersion: 12 | ||
rules: | ||
indent: | ||
- error | ||
- tab | ||
linebreak-style: | ||
- error | ||
- unix | ||
quotes: | ||
- error | ||
- single | ||
semi: | ||
- error | ||
- always |
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,35 @@ | ||
const path = require('path'); | ||
const CopyPlugin = require('copy-webpack-plugin'); | ||
|
||
/** | ||
* @type {import('webpack').Configuration} | ||
*/ | ||
const config = { | ||
entry: { | ||
background: './src/background.ts', | ||
handler: './src/handler.ts', | ||
}, | ||
output: { | ||
path: path.resolve(__dirname, '..', '..', '..', 'dist'), | ||
filename: '[name].js', | ||
}, | ||
plugins: [ | ||
new CopyPlugin({ | ||
patterns: [{ from: 'src/manifest.json' }, { from: 'src/readAddress.js' }], | ||
}), | ||
], | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.ts(x)?$/, | ||
loader: 'ts-loader', | ||
exclude: /node_modules/, | ||
}, | ||
], | ||
}, | ||
resolve: { | ||
extensions: ['.tsx', '.ts', '.js'], | ||
}, | ||
}; | ||
|
||
module.exports = config; |
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,12 @@ | ||
const { merge } = require('webpack-merge'); | ||
const common = require('./common'); | ||
|
||
/** | ||
* @type {import('webpack').Configuration} | ||
*/ | ||
const config = { | ||
mode: 'development', | ||
devtool: false, | ||
}; | ||
|
||
module.exports = merge(common, config); |
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,13 @@ | ||
const { merge } = require('webpack-merge'); | ||
const { CleanWebpackPlugin } = require('clean-webpack-plugin'); | ||
const common = require('./common'); | ||
|
||
/** | ||
* @type {import('webpack').Configuration} | ||
*/ | ||
const config = { | ||
mode: 'production', | ||
plugins: [new CleanWebpackPlugin()], | ||
}; | ||
|
||
module.exports = merge(common, config); |
Oops, something went wrong.