detached 4db9699

disable version check

commit
4db9699e38193b65113fe32702e3e98a093fbeb9
author
bnema · · 2024-04-19 17:26 UTC
parent
f6f7f5e
signature
unsigned
refs
tag: 0.1.22
2 files · +11 -7
M cmd/cli/main.go +6 -6
@@ -61,12 +61,12 @@ func main() {
6161 common.DockerInit(&s.Config.ContainerEngine)
6262
6363 // Check for new version
64- go func() {
65- msg, err := common.CheckVersionPeriodically(&s.Config)
66- if err != nil || msg != "" {
67- log.Printf("CheckVersionPeriodically: %v %s", err, msg)
68- }
69- }()
64+ //go func() {
65+ //msg, err := common.CheckVersionPeriodically(&s.Config)
66+ //if err != nil || msg != "" {
67+ //log.Printf("CheckVersionPeriodically: %v %s", err, msg)
68+ //}
69+ //}()
7070
7171 Execute(a, s)
7272 }
@@ -61,12 +61,12 @@ func main() {
61 common.DockerInit(&s.Config.ContainerEngine)61 common.DockerInit(&s.Config.ContainerEngine)
62 62
63 // Check for new version63 // Check for new version
64- go func() {64+ //go func() {
65- msg, err := common.CheckVersionPeriodically(&s.Config)65+ //msg, err := common.CheckVersionPeriodically(&s.Config)
66- if err != nil || msg != "" {66+ //if err != nil || msg != "" {
67- log.Printf("CheckVersionPeriodically: %v %s", err, msg)67+ //log.Printf("CheckVersionPeriodically: %v %s", err, msg)
68- }68+ //}
69- }()69+ //}()
70 70
71 Execute(a, s)71 Execute(a, s)
72 }72 }
M internal/webui/public/assets/js/custom.js +5 -1
@@ -1,3 +1,6 @@
1+import 'dotenv/config'; // Import dotenv to load environment variables
2+
3+
14 function initializeVersionCheck() {
25 // Dummy data for the remote version (as if fetched from a server)
36 const updateStrTemplate = "New version %VERSION% available, consider pulling the latest image";
@@ -19,7 +22,8 @@ function initializeVersionCheck() {
1922 };
2023
2124 const fetchVersionInfo = (currentVersion) => {
22- fetch("https://gordon-proxy.bnema.dev/version")
25+ // os.Get env proxy url + /version
26+ fetch(`${process.env.PROXY_URL}/version`)
2327 .then((response) => response.json())
2428 .then((versionData) => checkVersion(versionData, currentVersion))
2529 .catch((error) => console.error("Error fetching version:", error));
@@ -1,3 +1,6 @@
1+import 'dotenv/config'; // Import dotenv to load environment variables
2+
3+
1 function initializeVersionCheck() {4 function initializeVersionCheck() {
2 // Dummy data for the remote version (as if fetched from a server)5 // Dummy data for the remote version (as if fetched from a server)
3 const updateStrTemplate = "New version %VERSION% available, consider pulling the latest image";6 const updateStrTemplate = "New version %VERSION% available, consider pulling the latest image";
@@ -19,7 +22,8 @@ function initializeVersionCheck() {
19 };22 };
20 23
21 const fetchVersionInfo = (currentVersion) => {24 const fetchVersionInfo = (currentVersion) => {
22- fetch("https://gordon-proxy.bnema.dev/version")25+ // os.Get env proxy url + /version
26+ fetch(`${process.env.PROXY_URL}/version`)
23 .then((response) => response.json())27 .then((response) => response.json())
24 .then((versionData) => checkVersion(versionData, currentVersion))28 .then((versionData) => checkVersion(versionData, currentVersion))
25 .catch((error) => console.error("Error fetching version:", error));29 .catch((error) => console.error("Error fetching version:", error));

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close