3 Commits

Author SHA1 Message Date
jamie 00014903d5 Merge pull request 'fix: 🐛 copy private key button didn't work' (#16) from v1.4.1 into main
SonarQube / SonarQube (push) Successful in 23s
Reviewed-on: http://git.jdbnet.co.uk/jamie/opnsense-sftp/pulls/16
2026-06-10 22:51:45 +01:00
jamie fe1b9d4803 fix: 🐛 copy private key button didn't work
SonarQube / SonarQube (push) Successful in 22s
Release / release (pull_request) Successful in 23s
2026-06-10 22:51:35 +01:00
jamie 8a9bbc18af ci: 🚀 sonarqube
SonarQube / SonarQube (push) Successful in 30s
2026-05-07 00:54:37 +01:00
2 changed files with 37 additions and 4 deletions
+33
View File
@@ -0,0 +1,33 @@
name: SonarQube
on:
push:
jobs:
sonarqube:
name: SonarQube
runs-on: build-htz-01
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create Valid Project Key
id: sonar_setup
run: |
CLEAN_KEY=$(echo "${{ gitea.repository }}" | tr '/' ':')
echo "key=$CLEAN_KEY" >> $GITHUB_OUTPUT
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
continue-on-error: true
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
with:
args: >
-Dsonar.projectKey=${{ steps.sonar_setup.outputs.key }}
-Dsonar.projectName=${{ gitea.repository }}
-Dsonar.qualitygate.wait=true
+4 -4
View File
@@ -19,11 +19,11 @@
<h2 class="text-xl font-bold text-neutral-100 mb-4">SFTP Target Location (URI)</h2> <h2 class="text-xl font-bold text-neutral-100 mb-4">SFTP Target Location (URI)</h2>
<p class="text-sm text-neutral-400 mb-4">Use this URI format in OPNsense backup configuration:</p> <p class="text-sm text-neutral-400 mb-4">Use this URI format in OPNsense backup configuration:</p>
<div class="bg-neutral-900 rounded-md p-4 border border-neutral-600 mb-4"> <div class="bg-neutral-900 rounded-md p-4 border border-neutral-600 mb-4">
<code class="text-sm text-orange-400 break-all block">{{ sftp_uri }}</code> <code id="sftp-uri-content" class="text-sm text-orange-400 break-all block">{{ sftp_uri }}</code>
</div> </div>
<div class="flex items-center space-x-2"> <div class="flex items-center space-x-2">
<button <button
onclick="copyToClipboard('{{ sftp_uri }}')" onclick="copyToClipboard(document.getElementById('sftp-uri-content').textContent)"
class="bg-orange-500 hover:bg-orange-600 text-white font-medium py-2 px-4 rounded-md transition-colors duration-200 text-sm" class="bg-orange-500 hover:bg-orange-600 text-white font-medium py-2 px-4 rounded-md transition-colors duration-200 text-sm"
> >
Copy URI Copy URI
@@ -46,11 +46,11 @@
</p> </p>
{% if private_key_content %} {% if private_key_content %}
<div class="bg-neutral-900 rounded-md p-4 border border-neutral-600 mb-4"> <div class="bg-neutral-900 rounded-md p-4 border border-neutral-600 mb-4">
<code class="text-sm text-neutral-300 whitespace-pre-wrap break-all block">{{ private_key_content }}</code> <code id="private-key-content" class="text-sm text-neutral-300 whitespace-pre-wrap break-all block">{{ private_key_content }}</code>
</div> </div>
<div class="flex items-center space-x-2"> <div class="flex items-center space-x-2">
<button <button
onclick="copyToClipboard('{{ private_key_content }}')" onclick="copyToClipboard(document.getElementById('private-key-content').textContent)"
class="bg-orange-500 hover:bg-orange-600 text-white font-medium py-2 px-4 rounded-md transition-colors duration-200 text-sm" class="bg-orange-500 hover:bg-orange-600 text-white font-medium py-2 px-4 rounded-md transition-colors duration-200 text-sm"
> >
Copy Private Key Copy Private Key