Skip to content

Commit 62b6433

Browse files
LightLight
authored andcommitted
feat: Function implementation
0 parents  commit 62b6433

File tree

18 files changed

+1832
-0
lines changed

18 files changed

+1832
-0
lines changed

.eslintrc.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module.exports = {
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"node": true
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/recommended"
10+
],
11+
"overrides": [
12+
],
13+
"parser": "@typescript-eslint/parser",
14+
"parserOptions": {
15+
"ecmaVersion": "latest",
16+
"sourceType": "module"
17+
},
18+
"plugins": [
19+
"@typescript-eslint"
20+
],
21+
"rules": {
22+
}
23+
}

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Light
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Tab Groups Simple Controller
2+
3+
[![Release](https://img.shields.io/github/v/release/LightAPIs/tab-groups-simple-controller.svg?color=orange)](https://github.com/LightAPIs/tab-groups-simple-controller/releases/latest) [![Chrome Web Store](https://img.shields.io/chrome-web-store/v/mjialhppamjollamccganlonpgpchjib.svg?maxAge=86400)](https://chrome.google.com/webstore/detail/mjialhppamjollamccganlonpgpchjib) [![GPLv3](https://img.shields.io/github/license/LightAPIs/tab-groups-simple-controller.svg)](/LICENSE.md)
4+
5+
## Introduction
6+
7+
This is a simple tab group controller that automatic collapse or expand of tab groups on browser startup, and allow clicking to collapse or expand all groups.
8+
9+
## Usage
10+
11+
Click the icon to collapse or expand all groups. Actions at browser startup can be set in the extension context menu.
12+
13+
## Credits
14+
15+
- [jakearchibald/idb](https://github.com/jakearchibald/idb)
16+
17+
## License
18+
19+
[MIT](/LICENSE.md) License

package.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "tab-groups-simple-controller",
3+
"version": "0.1.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1",
8+
"build": "rollup --config rollup.config.mjs",
9+
"watch": "rollup --config rollup.config.mjs --watch"
10+
},
11+
"keywords": [],
12+
"author": "Light",
13+
"license": "MIT",
14+
"devDependencies": {
15+
"@rollup/plugin-node-resolve": "^15.0.2",
16+
"@rollup/plugin-terser": "^0.4.3",
17+
"@rollup/plugin-typescript": "^11.1.1",
18+
"@types/chrome": "^0.0.237",
19+
"@typescript-eslint/eslint-plugin": "^5.59.7",
20+
"@typescript-eslint/parser": "^5.59.7",
21+
"eslint": "^8.41.0",
22+
"rollup": "^3.23.0",
23+
"rollup-plugin-copy": "^3.4.0",
24+
"typescript": "^5.0.4"
25+
},
26+
"dependencies": {
27+
"idb": "^7.1.1"
28+
}
29+
}

0 commit comments

Comments
 (0)