-
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.
- Loading branch information
Showing
20 changed files
with
746 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [18.x, 20.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
|
||
- name: Setup Bun | ||
uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: latest | ||
|
||
- name: Install dependencies | ||
run: bun install | ||
|
||
- name: Build | ||
run: bun run build:prod | ||
|
||
- name: Check build artifacts | ||
run: | | ||
if [ ! -d "dist" ]; then | ||
echo "dist directory does not exist" | ||
exit 1 | ||
fi | ||
if [ ! -f "dist/manifest.json" ]; then | ||
echo "manifest.json is missing in dist" | ||
exit 1 | ||
fi | ||
if [ ! -f "dist/content.js" ]; then | ||
echo "content.js is missing in dist" | ||
exit 1 | ||
fi | ||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: extension-build-${{ matrix.node-version }} | ||
path: dist/ | ||
retention-days: 7 |
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,38 @@ | ||
name: Type Check & Lint | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [18.x, 20.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
|
||
- name: Setup Bun | ||
uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: latest | ||
|
||
- name: Install dependencies | ||
run: bun install | ||
|
||
- name: Type check | ||
run: bun run type-check | ||
|
||
- name: Lint | ||
run: bun run lint |
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,8 @@ | ||
{ | ||
"semi": true, | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"trailingComma": "es5", | ||
"printWidth": 100, | ||
"bracketSpacing": true | ||
} |
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,34 @@ | ||
# Privacy Policy | ||
|
||
NanoKVM Capture (hereinafter referred to as "this extension") respects user privacy and handles data in accordance with the following policy. | ||
|
||
## Information We Collect | ||
|
||
This extension only collects the following information: | ||
|
||
- Screenshots of the NanoKVM interface (only when explicitly captured by the user) | ||
- Screen recordings of the NanoKVM interface (only when recording is explicitly initiated by the user) | ||
|
||
## How We Use Your Data | ||
|
||
- All collected data (screenshots and recordings) is stored only in your local environment | ||
- Collected data is never transmitted to external servers | ||
- Collected data is retained in your local environment unless explicitly deleted by you | ||
|
||
## Data Sharing | ||
|
||
This extension does not share any collected data with third parties. | ||
|
||
## Security | ||
|
||
This extension handles all collected data only in your local environment and implements appropriate security measures. | ||
|
||
## Changes to This Privacy Policy | ||
|
||
This privacy policy may be updated as needed. We will notify you of any significant changes through extension updates. | ||
|
||
## Contact Us | ||
|
||
If you have any questions or concerns about this privacy policy, please contact us through the GitHub Issues page. | ||
|
||
Last Updated: January 12, 2024 |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import eslint from '@eslint/js'; | ||
import tseslint from '@typescript-eslint/eslint-plugin'; | ||
import tseslintParser from '@typescript-eslint/parser'; | ||
import prettierPlugin from 'eslint-plugin-prettier'; | ||
import prettierConfig from 'eslint-config-prettier'; | ||
import globals from 'globals'; | ||
|
||
export default [ | ||
{ | ||
ignores: ['dist/**', 'node_modules/**'], | ||
}, | ||
eslint.configs.recommended, | ||
{ | ||
files: ['**/*.ts'], | ||
languageOptions: { | ||
parser: tseslintParser, | ||
parserOptions: { | ||
ecmaVersion: 2021, | ||
sourceType: 'module', | ||
}, | ||
globals: { | ||
...globals.browser, | ||
chrome: 'readonly', | ||
}, | ||
}, | ||
plugins: { | ||
'@typescript-eslint': tseslint, | ||
'prettier': prettierPlugin, | ||
}, | ||
rules: { | ||
...tseslint.configs.recommended.rules, | ||
...prettierConfig.rules, | ||
'prettier/prettier': 'error', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/no-explicit-any': 'warn', | ||
'@typescript-eslint/no-unused-vars': 'warn', | ||
'no-undef': 'off', | ||
}, | ||
}, | ||
]; |
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
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
Oops, something went wrong.