1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2025-01-03 23:10:11 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
4fcba32f74
apidocs: re-version, set up for hosted ui
swagger.json is uploaded after each build, and is hosted at
api.jfa-go.com.
2021-11-15 00:19:52 +00:00
b39ad5c688
site: add features, dono button 2021-11-14 23:06:15 +00:00
6 changed files with 34 additions and 8 deletions

View File

@ -80,12 +80,15 @@ steps:
volumes:
- name: ssh_key
path: /id_rsa
- name: ssh_key2
path: /id_rsa2
commands:
- curl -sL https://git.io/goreleaser > goreleaser
- chmod +x goreleaser
- ./scripts/version.sh ./goreleaser --snapshot --skip-publish --rm-dist
- wget https://builds.hrfee.pw/upload.py
- pip3 install requests
- bash -c 'sftp -i /id_rsa2 -o StrictHostKeyChecking=no root@161.97.102.153:/mnt/redoc <<< $"put docs/swagger.json jfa-go.json"'
- bash -c 'sftp -P 2022 -i /id_rsa -o StrictHostKeyChecking=no root@161.97.102.153:/repo/incoming <<< $"put dist/*.deb"'
# - bash -c 'ssh -i /id_rsa root@161.97.102.153 -p 2022 "reprepro -Vb /repo remove trusty-unstable jfa-go"'
# - bash -c 'ssh -i /id_rsa root@161.97.102.153 -p 2022 "reprepro -Vb /repo remove trusty-unstable jfa-go-tray"'
@ -99,6 +102,9 @@ volumes:
- name: ssh_key
host:
path: /root/.ssh/id_rsa_packaging
- name: ssh_key2
host:
path: /root/.ssh/docker-build
trigger:
branch:
- main

View File

@ -100,7 +100,7 @@ type getTokenDTO struct {
}
// @Summary Grabs an API token using username & password.
// @description Click the lock icon next to this, login with your normal jfa-go credentials. Click 'try it out', then 'execute' and an API Key will be returned, copy it (not including quotes). On any of the other routes, click the lock icon and set the API key as "Bearer `your api key`".
// @description If viewing docs locally, click the lock icon next to this, login with your normal jfa-go credentials. Click 'try it out', then 'execute' and an API Key will be returned, copy it (not including quotes). On any of the other routes, click the lock icon and set the API key as "Bearer `your api key`".
// @Produce json
// @Success 200 {object} getTokenDTO
// @Failure 401 {object} stringResponse

View File

@ -622,7 +622,7 @@ func flagPassed(name string) (found bool) {
}
// @title jfa-go internal API
// @version 0.3.6
// @version 0.3.10
// @description API for the jfa-go frontend
// @contact.name Harvey Tindall
// @contact.email hrfee@hrfee.dev
@ -638,7 +638,7 @@ func flagPassed(name string) (found bool) {
// @name getTokenAuth
// @tag.name Auth
// @tag.description --------Get a token here first!--------
// @tag.description -Get a token here if running swagger UI locally.-
// @tag.name Users
// @tag.description Jellyfin user related operations.

View File

@ -59,12 +59,35 @@ sudo apt-get install jfa-go-tray
</div>
<div class="row col flex center">
<p class="content">a better way to manage your Jellyfin users.</p>
<ul class="support">
<li>Send invite links to your users, let them sign up themselves</li>
<li>Create setting profiles to restrict permissions of new users</li>
<li>Handles password resets without your intervention</li>
<li>Enforce password requirements on sign-up</li>
<li>Send messages & notifications to your users (email, discord, telegram, matrix available)</li>
<li>Set accounts to expire after a specified time</li>
<li>Manage your users in bulk</li>
<li><a href="https://github.com/hrfee/jfa-go#features" target="_blank">More</a></li>
</ul>
</div>
<span class="row col flex center supra">links</span>
<div class="row col flex center">
<a class="button ~info mr-half mt-1 mb-1" href="https://github.com/hrfee/jfa-go">github</a>
<a class="button ~neutral mr-half mt-1 mb-1" href="https://github.com/hrfee/jfa-go">github</a>
<a class="button ~urge mt-1 mb-1 mr-half" href="https://wiki.jfa-go.com">wiki/docs</a>
<a class="button ~positive mt-1 mb-1 mr-half" href="https://weblate.jfa-go.com">translation</a>
<div class="dropdown" tabindex="0">
<a href="https://github.com/sponsors/hrfee" target="_blank" class="button ~info mt-1 mb-1 dropdown-button">
<i class="ri-hand-heart-line mr-half"></i>
donate
<span class="ml-1 chev"></span>
</a>
<div class="dropdown-display">
<div class="card ~info !low">
<a href="https://github.com/sponsors/hrfee" target="_blank" class="button input ~neutral field mb-half lang-link">GitHub</a>
<a href="https://ko-fi.com/hrfee" target="_blank" class="button input ~neutral field mb-half lang-link">Ko-fi</a>
</div>
</div>
</div>
</div>
<p class="row col flex center supra">downloads</p>
<p class="row col flex center support">instructions can be found&nbsp<a target="_blank" href="https://github.com/hrfee/jfa-go#install">here</a></p>
@ -84,7 +107,7 @@ sudo apt-get install jfa-go-tray
</div>
</div>
<div class="mt-1 unfocused" id="sect-unstable">
<p class="row center">These are built on every commit, so may include incomplete/broken features.</p>
<p class="row center">These are built on every commit, so may include incomplete/broken features. Take care.</p>
<div class="row col flex center">
<a class="button ~info mr-half mb-half lang-link" target="_blank" href="https://dl.jfa-go.com/view/hrfee/jfa-go">windows/mac/linux</a>
<a class="button ~info mr-half mb-half lang-link" id="download-docker-unstable">docker</a>

View File

@ -221,5 +221,3 @@ export function insertText(textarea: HTMLTextAreaElement, text: string) {
textarea.focus();
}
}

View File

@ -37,4 +37,3 @@ export class Tabs implements Tabs {
}
}
}