Commit graph

179 commits

Author SHA1 Message Date
ditatompel
acf99a3ca8
chore(ci): Release action (test) 2024-06-11 01:38:30 +07:00
ditatompel
c65c939d36
Add build workflow 2024-06-10 23:44:01 +07:00
ditatompel
0fdce5cc81
Make this project public, add link & license info
> When I wrote this, only God and I understood what I was doing.
> Now, only God knows.

Shout to https://github.com/me-shaon/GLWTPL
2024-06-10 22:40:44 +07:00
ditatompel
70c371a9b4
chore: Add similar projects to the README.md 2024-06-10 21:32:01 +07:00
ditatompel
1429cde662
Uppercase CheckAPI test func
Ref cd52dc7
2024-06-10 03:23:03 +07:00
ditatompel
cd52dc7b70
Lowercase & upperase initialism acronyms
See https://google.github.io/styleguide/go/decisions#initialisms
2024-06-10 03:03:23 +07:00
ditatompel
5f5ebd81a9
Reuse existing db connection (if any) 2024-06-10 02:47:44 +07:00
ditatompel
70372e58ab
Changed the initialization of the countries slice 2024-06-08 00:53:28 +07:00
ditatompel
054a4809dd
No need to use ptr for NetFee 2024-06-08 00:37:26 +07:00
ditatompel
459271408d
test: Unit test for parseStatuses() 2024-06-03 22:18:24 +07:00
ditatompel
58e2da0a67
Change NodeInfo struct to Node
Adapt with previous commit ref 20d8d67
2024-06-03 22:15:32 +07:00
ditatompel
ced90fde8e
feat: Function to parse node statuses from report 2024-06-03 22:13:12 +07:00
ditatompel
85f3169689
Only call time.Now() once 2024-06-03 19:26:12 +07:00
ditatombot[bot]
a0ff254f55
Merge pull request #11 from ditatompel/dependabot/go_modules/github.com/oschwald/geoip2-golang-1.11.0
Merge pull request #11

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-06-03 10:52:27 +00:00
ditatompel
9923eb95d4
chore: Remove unused data 2024-06-03 17:15:50 +07:00
ditatompel
f3fee53ac8
chore: move to eslint flat config 2024-06-03 15:33:31 +07:00
ditatombot[bot]
45d94e0e74
Merge pull request #15 from ditatompel/dependabot/npm_and_yarn/frontend/prettier-3.3.0
Merge pull request #15

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-06-03 07:50:19 +00:00
dependabot[bot]
f9f9c54db1
Bump prettier from 3.2.5 to 3.3.0 in /frontend
Bumps [prettier](https://github.com/prettier/prettier) from 3.2.5 to 3.3.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.2.5...3.3.0)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-03 07:49:14 +00:00
ditatombot[bot]
06fbe7dce7
Merge pull request #13 from ditatompel/dependabot/npm_and_yarn/frontend/svelte-check-3.8.0
Merge pull request #13

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-06-03 07:48:55 +00:00
ditatombot[bot]
be27560409
Merge pull request #12 from ditatompel/dependabot/npm_and_yarn/frontend/eslint-9.4.0
Merge pull request #12

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-06-03 07:47:19 +00:00
dependabot[bot]
75adb8b662
Bump eslint from 9.3.0 to 9.4.0 in /frontend
Bumps [eslint](https://github.com/eslint/eslint) from 9.3.0 to 9.4.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/v9.3.0...v9.4.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-03 07:45:00 +00:00
dependabot[bot]
c4efa8b57b
Bump svelte-check from 3.7.1 to 3.8.0 in /frontend
Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 3.7.1 to 3.8.0.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](https://github.com/sveltejs/language-tools/compare/svelte-check-3.7.1...svelte-check-3.8.0)

---
updated-dependencies:
- dependency-name: svelte-check
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-03 07:44:03 +00:00
ditatombot[bot]
17c2079699
Merge pull request #16 from ditatompel/dependabot/npm_and_yarn/frontend/sveltejs/vite-plugin-svelte-3.1.1
Merge pull request #16

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-06-03 07:43:21 +00:00
ditatombot[bot]
e0a0603e2c
Merge pull request #14 from ditatompel/dependabot/npm_and_yarn/frontend/vite-5.2.12
Merge pull request #14

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-06-03 07:42:21 +00:00
ditatompel
d9017a47b9
docs: Add handler function info 2024-06-03 14:20:10 +07:00
ditatompel
e01c28d966
change MoneroNode and MoneroNodes handler name
MoneroNode -> Node
MoneroNodes -> Nodes
2024-06-03 14:17:51 +07:00
ditatompel
9323e63405
docs: Add build requirement information 2024-06-03 13:37:18 +07:00
ditatompel
54d82e0c8f
fix: RowsPerPage nodes API return zero
Forget to set RowsPerPage response
2024-06-03 13:18:52 +07:00
ditatompel
33efa8fd31
Fetch estimate fee has it own function 2024-06-03 13:10:35 +07:00
dependabot[bot]
98a078c287
Bump @sveltejs/vite-plugin-svelte from 3.1.0 to 3.1.1 in /frontend
Bumps [@sveltejs/vite-plugin-svelte](https://github.com/sveltejs/vite-plugin-svelte/tree/HEAD/packages/vite-plugin-svelte) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/sveltejs/vite-plugin-svelte/releases)
- [Changelog](https://github.com/sveltejs/vite-plugin-svelte/blob/@sveltejs/vite-plugin-svelte@3.1.1/packages/vite-plugin-svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/vite-plugin-svelte/commits/@sveltejs/vite-plugin-svelte@3.1.1/packages/vite-plugin-svelte)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-03 05:48:42 +00:00
dependabot[bot]
9b0b380001
Bump vite from 5.2.11 to 5.2.12 in /frontend
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.2.11 to 5.2.12.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.2.12/packages/vite)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-03 05:48:28 +00:00
dependabot[bot]
570ad170bc
Bump github.com/oschwald/geoip2-golang from 1.9.0 to 1.11.0
Bumps [github.com/oschwald/geoip2-golang](https://github.com/oschwald/geoip2-golang) from 1.9.0 to 1.11.0.
- [Release notes](https://github.com/oschwald/geoip2-golang/releases)
- [Commits](https://github.com/oschwald/geoip2-golang/compare/v1.9.0...v1.11.0)

---
updated-dependencies:
- dependency-name: github.com/oschwald/geoip2-golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-03 05:18:45 +00:00
ditatompel
c6d48764a2
Update readme on how the site works 2024-05-31 18:24:45 +07:00
ditatompel
e983db2b29
Adding jtgrassie/monero-pool copyright attribution 2024-05-31 17:40:20 +07:00
ditatompel
db2d2195e9
chore: Adding JSdoc 2024-05-31 17:40:02 +07:00
ditatompel
009faa6aa8
Call handler after loadFees return the data 2024-05-31 17:36:03 +07:00
ditatompel
48fe09c1cb
Adding table tbl_fee
This table used to store majority fee of monero nettype.
By calculating majority fee via "cron" every 300s, the function to
get majority fee for nettypes can be done with single query.

The frontend majority static data in the frontend removed and
now use `/api/v1/fees` endpoint to get majority fee value.

Note: Don't know if it works well with `onload` method or not. Let see.
2024-05-31 16:28:21 +07:00
ditatompel
55f6af1f22
Change estimate fee for stagenet to 56000
TODO: Create in-memory cache for NetFees function.
2024-05-31 13:30:56 +07:00
ditatompel
e83045f8b5
toSQL function for QueryLog struct 2024-05-31 13:04:53 +07:00
ditatompel
8b5bdc7523
toSQL function for QueryProber struct
Make the unit test easier
2024-05-30 20:14:16 +07:00
ditatompel
acc70111c8
fix: slog args message become slog.Attr 2024-05-30 19:41:03 +07:00
ditatompel
a11986ac0c
Separating QueryNode to it's own sql builder func
A quick note that is's ok to use "*" all columns on nodes query
since all columns really want to be displayed to the frontend.
2024-05-30 19:19:03 +07:00
ditatompel
4800bb3284
Adding test and bench example 2024-05-30 15:47:27 +07:00
ditatompel
130cd06dc4
Make X-Prober-Api-Key as constant 2024-05-30 13:40:57 +07:00
ditatompel
c6e0ce751e
Remove import command
It's no longer needed since any new subbmision is now from xmr.ditatompel.com
2024-05-30 13:17:43 +07:00
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