-
Notifications
You must be signed in to change notification settings - Fork 6
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
7 changed files
with
223 additions
and
144 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,31 @@ | ||
name: Create Release | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
permissions: | ||
contents: write | ||
packages: write | ||
|
||
jobs: | ||
create-release: | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Create Release | ||
uses: softprops/action-gh-release@v2 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- run: npx changelogithub | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,100 +1,157 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Gopeed</title> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
width: 300px; | ||
padding: 20px; | ||
background-color: #f5f5f5; | ||
} | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Gopeed</title> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
background-color: #f4f4f4; | ||
margin: 20px; | ||
min-width: 300px; | ||
} | ||
|
||
.container { | ||
max-width: 300px; | ||
margin: 0 auto; | ||
} | ||
|
||
h2 { | ||
text-align: center; | ||
color: #333; | ||
} | ||
|
||
form { | ||
background-color: #fff; | ||
padding: 20px; | ||
border-radius: 8px; | ||
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
label { | ||
display: block; | ||
margin-bottom: 5px; | ||
color: #111; | ||
} | ||
|
||
input[type="text"] { | ||
width: calc(100% - 12px); | ||
padding: 8px; | ||
border: 1px solid #ccc; | ||
border-radius: 4px; | ||
margin-bottom: 10px; | ||
background-color: #fff; | ||
} | ||
|
||
button { | ||
background-color: #39c5bb; | ||
color: #fff; | ||
border: none; | ||
padding: 10px 20px; | ||
border-radius: 4px; | ||
cursor: pointer; | ||
width: 100%; | ||
} | ||
|
||
button:hover { | ||
background-color: #2aae9e; | ||
} | ||
|
||
.success-message { | ||
display: none; | ||
background-color: #4caf50; | ||
color: white; | ||
text-align: center; | ||
padding: 10px; | ||
margin-top: 10px; | ||
border-radius: 4px; | ||
opacity: 1; | ||
transition: opacity 0.5s ease-out; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<form> | ||
<h2>Gopeed Settings</h2> | ||
<div> | ||
<label for="host">Host:</label> | ||
<input type="text" id="host" name="host" /> | ||
</div> | ||
<div> | ||
<label for="token">Token:</label> | ||
<input type="text" id="token" name="token" /> | ||
</div> | ||
<div> | ||
<input type="checkbox" id="enableNotification" name="enableNotification">Enable Notification | ||
</div> | ||
</div> | ||
<button type="button" id="saveButton">Save</button> | ||
<div class="success-message" id="successMessage"> | ||
Settings saved successfully! | ||
</div> | ||
</form> | ||
</body> | ||
|
||
<script src="popup.js"></script> | ||
|
||
</html> | ||
h2 { | ||
color: #333; | ||
margin-bottom: 20px; | ||
text-align: center; | ||
} | ||
|
||
form { | ||
background-color: #fff; | ||
padding: 20px; | ||
border-radius: 8px; | ||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
label { | ||
display: block; | ||
margin-bottom: 5px; | ||
color: #666; | ||
} | ||
|
||
input[type="text"] { | ||
width: 100%; | ||
padding: 8px; | ||
margin-bottom: 15px; | ||
border: 1px solid #ddd; | ||
border-radius: 4px; | ||
transition: border-color 0.3s ease; | ||
} | ||
|
||
input[type="text"]:focus { | ||
border-color: #4caf50; | ||
outline: none; | ||
} | ||
|
||
button { | ||
background-color: #4caf50; | ||
color: white; | ||
border: none; | ||
padding: 10px 15px; | ||
border-radius: 4px; | ||
cursor: pointer; | ||
transition: background-color 0.3s ease; | ||
} | ||
|
||
button:hover { | ||
background-color: #45a049; | ||
} | ||
|
||
.success-message { | ||
display: none; | ||
color: #4caf50; | ||
text-align: center; | ||
margin-top: 10px; | ||
opacity: 0; | ||
transition: opacity 0.5s ease; | ||
} | ||
|
||
.checkbox-group { | ||
display: flex; | ||
justify-content: space-between; | ||
margin-bottom: 15px; | ||
} | ||
|
||
.modern-checkbox { | ||
display: flex; | ||
align-items: center; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.modern-checkbox input[type="checkbox"] { | ||
display: none; | ||
} | ||
|
||
.modern-checkbox label { | ||
position: relative; | ||
padding-left: 30px; | ||
cursor: pointer; | ||
font-size: 14px; | ||
color: #333; | ||
} | ||
|
||
.modern-checkbox label:before { | ||
content: ""; | ||
position: absolute; | ||
left: 0; | ||
top: 0; | ||
width: 20px; | ||
height: 20px; | ||
border: 2px solid #4caf50; | ||
background-color: #fff; | ||
border-radius: 3px; | ||
transition: all 0.3s ease; | ||
} | ||
|
||
.modern-checkbox input[type="checkbox"]:checked + label:before { | ||
background-color: #4caf50; | ||
} | ||
|
||
.modern-checkbox label:after { | ||
content: "\2714"; | ||
position: absolute; | ||
top: 0; | ||
left: 5px; | ||
font-size: 14px; | ||
color: #fff; | ||
transition: all 0.3s ease; | ||
opacity: 0; | ||
} | ||
|
||
.modern-checkbox input[type="checkbox"]:checked + label:after { | ||
opacity: 1; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<form> | ||
<h2>Gopeed Settings</h2> | ||
<div> | ||
<label for="host">Host:</label> | ||
<input type="text" id="host" name="host" /> | ||
<label for="token">Token:</label> | ||
<input type="text" id="token" name="token" /> | ||
<div class="checkbox-group"> | ||
<div class="modern-checkbox"> | ||
<input type="checkbox" id="enabled" name="enabled" /> | ||
<label for="enabled">接管下载</label> | ||
</div> | ||
<div class="modern-checkbox"> | ||
<input | ||
type="checkbox" | ||
id="enableNotification" | ||
name="enableNotification" | ||
/> | ||
<label for="enableNotification">启用通知</label> | ||
</div> | ||
</div> | ||
</div> | ||
<button type="button" id="saveButton">保存</button> | ||
<div class="success-message" id="successMessage">设置已保存</div> | ||
</form> | ||
<script src="popup.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.