Commit graph

272 commits

Author SHA1 Message Date
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
ditatompel
a31f436218
Fix mobile logo display
This commit also remove unused css in logo element
2024-05-17 17:50:56 +07:00
ditatompel
598adac908
Adding repo description and update requirements 2024-05-17 17:40:22 +07:00
ditatompel
e65e81d3c3
Use app.d.ts for login form JSDoc formResult 2024-05-15 18:05:43 +07:00
ditatompel
8f3f9392b7
Adding the Nginx vhost config example for the app 2024-05-14 19:39:23 +07:00
ditatompel
46bc3dc2e8
Using slog for logging level
The log level for the apps is using `log/slog` from Go standard library.
This commit change log format for fiber http logger to match with
the slog standard log format (date and time).

This commit also remove `APP_DEBUG` field from config struct.

TODO:
Use `slog` for default app output. Note that in this commit, the `slog`
output only implemented in `cron` "db migrate" and probe client.
2024-05-13 18:40:01 +07:00
ditatompel
ce830c393b
Change PRC prober user agent info
Use the repository URL instead my email address for prober user agent
information.
2024-05-13 14:56:29 +07:00
ditatompel
d3113bf598
feat: MySQL db migration
Create database schema migration for this app that run when the `serve`
command is executed.
2024-05-12 04:19:40 +07:00
ditatompel
bd37f17072
Include date_entered when inporting from old API
When importing from old API endpoint, also get the `date_entered` field
and insert to database.
2024-05-12 01:35:41 +07:00
ditatompel
df8b933374
Change remote-nodes page meta tags 2024-05-11 21:39:26 +07:00
ditatompel
e349f1d297
Change the default frontpage meta tags 2024-05-11 21:31:39 +07:00
ditatompel
80039700c2
Change sort_name and description in manifest.json 2024-05-11 21:02:48 +07:00
ditatompel
8a4a7b4494
Exclude ./tools dir from air watch dir
This also remove non-existence `vendor` directory from air's excluded
directories.
2024-05-11 20:54:28 +07:00