This commit is contained in:
parent
7a2bf53a77
commit
bfbef78977
4 changed files with 28 additions and 3 deletions
19
.forgejo/workflows/build.yaml
Normal file
19
.forgejo/workflows/build.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
name: Build
|
||||
on: [push]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: debian-12
|
||||
steps:
|
||||
- name: Install zip
|
||||
run: apt-get update && apt-get install zip
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
- name: Build extension
|
||||
run: ./build.sh
|
||||
- name: Upload extension
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Proxy Settings Extension
|
||||
path: proxy-settings.zip
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
node_modules
|
||||
*.js
|
||||
proxy-settings.zip
|
||||
|
|
5
build.sh
Executable file
5
build.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
npx tsc
|
||||
rm -f proxy-settings.zip
|
||||
zip proxy-settings manifest.json *.html *.js
|
|
@ -8,12 +8,12 @@
|
|||
|
||||
<body>
|
||||
<form id="proxySettings">
|
||||
<label>Active:</label>
|
||||
<label for="proxyActive">Active:</label>
|
||||
<input type="checkbox" id="proxyActive">
|
||||
<br>
|
||||
<label>Host:</label>
|
||||
<label for="proxyHost">Host:</label>
|
||||
<input type="text" id="proxyHost">
|
||||
<label>Port:</label>
|
||||
<label for="proxyPort">Port:</label>
|
||||
<input type="number" id="proxyPort">
|
||||
<br>
|
||||
<input type="submit" value="Save">
|
||||
|
|
Loading…
Add table
Reference in a new issue