Commit graph

284 commits

Author SHA1 Message Date
ditatompel
028e9c4854
Clean install npm when running go generate 2024-05-30 12:50:14 +07:00
ditatompel
0b331ec6c6
Lowercase & upperase initialism acronyms
See https://google.github.io/styleguide/go/decisions#initialisms
2024-05-30 12:46:33 +07:00
ditatompel
5fae3d565a
chore: Rename tools directory to deployment
The `tools` directory contains example ansible playbook, systemd
example, and Nginx configuration example for the server.

The directory name `deployment` for that stuffs much more suitable.
2024-05-30 12:02:11 +07:00
ditatompel
8df90ef5e2
chore: Fix formatting (prettier) 2024-05-28 10:03:29 +07:00
ditatompel
38320bc316
Rename NewProberRepo to NewProber
Also rename ProbersQueryParams to QueryProbers
2024-05-27 07:17:27 +07:00
ditatompel
ab82985bdf
Rename MoneroLogQueryParams to QueryLogs
The reason is same with commits reference 99a367f04b
2024-05-27 06:38:11 +07:00
ditatompel
6b5225758e
Rename NewMoneroRepo to just New
Just run `monero.New()` to initialize MoneroRepository.

The database connection is now called from the `New()` function
2024-05-27 06:15:40 +07:00
ditatompel
99a367f04b
chore: Renamed MoneroQueryParams
The `MoneroQueryParams` renamed to `QueryNodes`.
It become much more readable when calling it.

Also added some comment in some functions.
2024-05-27 05:13:03 +07:00
ditatompel
dc1a3b2b92
chore: Rename workflow.yml to lint.yml
Naming workflow for what it does not a bad idea. Even it just contain
single golang-lint check.
2024-05-27 05:07:08 +07:00
ditatompel
3dd6da9529
chore: Bump heaviest objects in the universe 2024-05-27 04:29:29 +07:00
ditatombot[bot]
1dc6f33597
Merge pull request #10 from ditatompel/dependabot/npm_and_yarn/frontend/skeletonlabs/tw-plugin-0.4.0
Merge pull request #10
2024-05-25 20:52:48 +00:00
ditatombot[bot]
ccbdf93f80
Merge pull request #9 from ditatompel/dependabot/npm_and_yarn/frontend/eslint-9.3.0
Merge pull request #9
2024-05-25 20:51:54 +00:00
dependabot[bot]
de4170c005
Bump eslint from 8.57.0 to 9.3.0 in /frontend
Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.3.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.57.0...v9.3.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-25 20:50:34 +00:00
ditatombot[bot]
ec88bcfbb6
Merge pull request #8 from ditatompel/dependabot/npm_and_yarn/frontend/autoprefixer-10.4.19
Merge pull request #8
2024-05-25 20:49:43 +00:00
ditatombot[bot]
01316dd839
Merge pull request #6 from ditatompel/dependabot/go_modules/golang.org/x/net-0.25.0
Merge pull request #6
2024-05-25 20:48:08 +00:00
dependabot[bot]
e7014ba327
Bump @skeletonlabs/tw-plugin from 0.3.1 to 0.4.0 in /frontend
Bumps [@skeletonlabs/tw-plugin](https://github.com/skeletonlabs/skeleton) from 0.3.1 to 0.4.0.
- [Release notes](https://github.com/skeletonlabs/skeleton/releases)
- [Commits](https://github.com/skeletonlabs/skeleton/compare/@skeletonlabs/tw-plugin@0.3.1...@skeletonlabs/tw-plugin@0.4.0)

---
updated-dependencies:
- dependency-name: "@skeletonlabs/tw-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-25 20:47:12 +00:00
ditatombot[bot]
1259ceed66
Merge pull request #7 from ditatompel/dependabot/npm_and_yarn/frontend/sveltejs/kit-2.5.10
Merge pull request #7
2024-05-25 20:46:19 +00:00
ditatombot[bot]
c187154e5d
Merge pull request #5 from ditatompel/dependabot/npm_and_yarn/frontend/prettier-plugin-svelte-3.2.3
Merge pull request #5
2024-05-25 03:22:38 +00:00
ditatompel
e9b2cb91d2
Adding .golangci.yaml to the repo 2024-05-24 06:16:37 +07:00
ditatompel
7a02672bbc
lint: go:embed tags 2024-05-24 05:48:45 +07:00
dependabot[bot]
b985d0b373
Bump autoprefixer from 10.4.18 to 10.4.19 in /frontend
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.4.18 to 10.4.19.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/10.4.18...10.4.19)

---
updated-dependencies:
- dependency-name: autoprefixer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-23 22:40:35 +00:00
dependabot[bot]
3988938ed8
Bump @sveltejs/kit from 2.5.2 to 2.5.10 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.5.2 to 2.5.10.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.5.10/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-23 22:40:29 +00:00
dependabot[bot]
1c3d809f76
Bump golang.org/x/net from 0.21.0 to 0.25.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.21.0 to 0.25.0.
- [Commits](https://github.com/golang/net/compare/v0.21.0...v0.25.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-23 22:40:17 +00:00
dependabot[bot]
3f11ddcf0d
Bump prettier-plugin-svelte from 3.2.2 to 3.2.3 in /frontend
Bumps [prettier-plugin-svelte](https://github.com/sveltejs/prettier-plugin-svelte) from 3.2.2 to 3.2.3.
- [Changelog](https://github.com/sveltejs/prettier-plugin-svelte/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/prettier-plugin-svelte/compare/v3.2.2...v3.2.3)

---
updated-dependencies:
- dependency-name: prettier-plugin-svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-23 22:40:16 +00:00
ditatompel
1ece270c00
Add golangci-lint test workflow 2024-05-24 05:38:58 +07:00
ditatompel
c25e9224b6
lint: No err check 2024-05-24 05:37:27 +07:00
ditatompel
062e0e90b1
Add and configure dependabot for Go and NPM 2024-05-24 04:56:55 +07:00
ditatompel
2270fe4deb
Secret key environment variable no longer needed 2024-05-23 03:57:29 +07:00
ditatompel
253230dc5a
Removing admin module and functions
The administration of the server is done using cli tools. So I don't
think that admin account and module is required. At least for now.

Note that this also remove `tbl_admin` creation in database migrate.
Since no release were made until this commit, the database migration
still in version 1. Manual removal database table for `tbl_admin`
is required on the existing running server.
2024-05-23 03:40:06 +07:00
ditatompel
40b9a6e1d6
Make sure cron goroutine is stopped
Adding struct chan to run cron Process to stop the goroutine.

Moving db migration inside `fiber.IsChild` block
to avoid multiple execution migration script when in prefork mode.

Give additional time for graceful shutdown.
2024-05-23 02:58:58 +07:00
ditatompel
8c1f6b0c43
Make cron as it's own package 2024-05-23 02:24:06 +07:00
ditatompel
c6efceb0ac
Adding some const error in client probe cmd 2024-05-23 00:40:13 +07:00
ditatompel
d44cea7e7c
Update the geoip package location 2024-05-23 00:39:31 +07:00
ditatompel
ddc448e90c
Moving monero.go to its own internal package 2024-05-22 22:45:38 +07:00
ditatompel
7d69e9af95
chore: Make SQL queries in more readable 2024-05-20 04:22:58 +07:00
ditatompel
fae32d9a74
chore: Make SQL queries in more readable 2024-05-20 03:08:48 +07:00
ditatompel
d99f8583c1
Open ASN link to new tab
This also remove unused global `dashboard-card` css class.
2024-05-20 02:34:42 +07:00
ditatompel
d13a427c6d
removing admin UI and layout #2
This become only one layout for Web UI
2024-05-18 20:36:33 +07:00
ditatompel
d5f510ae32
Remove admin login logout handler and endpoints #2 2024-05-18 20:27:30 +07:00
ditatompel
30b37b922f
Ability to list cron from CLI #2
Since `tbl_cron` will contain a few rows (for now just 1),
cron list function call is not using any arguments.

This commit also remove cron http handler and endpoint.
2024-05-18 20:13:00 +07:00
ditatompel
120ba51c87
Ability to edit prober name by ID from CLI #2 2024-05-18 19:50:20 +07:00
ditatompel
b5e2787420
Ability to delete prober by ID from CLI #2 2024-05-18 19:39:27 +07:00
ditatompel
d2f927e3db
Ability to add prober from CLI #2 2024-05-18 19:03:56 +07:00
ditatompel
7b6cfee31d
Set ./cmd/server/admin.go as entrypoint to server build 2024-05-18 18:42:32 +07:00
ditatompel
0f7029b939
Update deployment example (CPU arch aware) #3
The ansible playbook is now using ansible_facts to determinate target
server or prober CPU architecture. The final "production" binary name
and changed to just simply "xmr-nodes-{client,server}".
2024-05-18 18:09:36 +07:00
ditatompel
279b142e76
Build server tags in Makefile & air config #3
The build system is changed, now it build 2 different binary by using
go `-tags`. The local output binary also changed based on build tags.
2024-05-18 18:05:53 +07:00
ditatompel
7dea8380b8
Separating client and server package #3
The client and server package is now separated, so I can build
additional server package with `-tags server`.
2024-05-18 17:59:54 +07:00
ditatompel
e0cd343be7
List Probers as sub-command of probers cmd 2024-05-18 01:42:31 +07:00
ditatompel
59f1dd9421
List Probers CLI command #2
Listing probers is now only available from server CLI.

The `ProbersQueryParams` struct also changed. I don't think that I will
use more than 20 probers in this project, so paging is not required.

The search param also simplified in one field struct `Search" which
search both in `name` and `api_key` column.
2024-05-18 00:56:13 +07:00
ditatompel
49b786ed80
Stagenet majority fee 57000 2024-05-17 18:17:03 +07:00