Commit graph

244 commits

Author SHA1 Message Date
Christian Ditaputratama
c250e8e3bb
feat!: Moving handler to internal/handler
So people aware that the package is internal use and not using that
on their projects.
2024-07-07 01:42:29 +07:00
Christian Ditaputratama
4c7d53547b
feat!: Change the module name to "URL based"
This make me easier to test the module with external services.
2024-07-07 01:28:44 +07:00
Christian Ditaputratama
be43734663
chore(test): Add test shortcut to Makefile
Also rename `.github/workflows/lint.yml` to `.github/workflows/test.yml`
2024-07-07 00:51:54 +07:00
Christian Ditaputratama
02a4728574
chore: Just use "XMR Nodes Aggregator" for Fiber app name
Some checks failed
Build / build (push) Has been cancelled
Test / lint (push) Has been cancelled
2024-07-04 04:21:33 +07:00
Christian Ditaputratama
64cd0c4e19
chore: Remove link to my site in the Footer
This commit also open soruce code repository link (GitHub) with new tab.
2024-07-04 04:17:03 +07:00
Christian Ditaputratama
05d4182723
fix: Invalid main branch name
Our main branch is `main`, not `master`.
2024-07-04 04:10:46 +07:00
Christian Ditaputratama
0d72dd9995
build: Inject version when build the binaries
The version include git current commit and branch info.
2024-07-04 03:45:37 +07:00
Christian Ditaputratama
f69a232c22
chore: Start v0.0.3 2024-07-04 02:04:22 +07:00
ditatombot[bot]
ac97ff1972
Merge pull request #42 from ditatompel/dependabot/go_modules/github.com/gofiber/fiber/v2-2.52.5
Some checks failed
Build / build (push) Has been cancelled
Test / lint (push) Has been cancelled
Merge pull request #42

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-07-02 12:50:11 +00:00
ditatombot[bot]
6ad2a6fc52
Merge pull request #45 from ditatompel/dependabot/npm_and_yarn/frontend/typescript-5.5.2
Merge pull request #45

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-07-02 12:49:25 +00:00
ditatombot[bot]
94e0368123
Merge pull request #44 from ditatompel/dependabot/npm_and_yarn/frontend/eslint-plugin-svelte-2.41.0
Merge pull request #44

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-07-02 12:47:16 +00:00
ditatombot[bot]
d237f228fd
Merge pull request #46 from ditatompel/dependabot/npm_and_yarn/frontend/floating-ui/dom-1.6.7
Merge pull request #46

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-07-02 12:46:26 +00:00
dependabot[bot]
3b9348ebc8
build(deps-dev): bump eslint-plugin-svelte in /frontend
Bumps [eslint-plugin-svelte](https://github.com/sveltejs/eslint-plugin-svelte) from 2.39.5 to 2.41.0.
- [Release notes](https://github.com/sveltejs/eslint-plugin-svelte/releases)
- [Commits](https://github.com/sveltejs/eslint-plugin-svelte/compare/eslint-plugin-svelte@2.39.5...eslint-plugin-svelte@2.41.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-02 12:45:08 +00:00
ditatombot[bot]
1a796ad2f7
Merge pull request #47 from ditatompel/dependabot/npm_and_yarn/frontend/prettier-plugin-svelte-3.2.5
Merge pull request #47

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-07-02 12:44:29 +00:00
dependabot[bot]
c1bb650d9d
build(deps-dev): bump prettier-plugin-svelte in /frontend
Bumps [prettier-plugin-svelte](https://github.com/sveltejs/prettier-plugin-svelte) from 3.2.4 to 3.2.5.
- [Changelog](https://github.com/sveltejs/prettier-plugin-svelte/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/prettier-plugin-svelte/compare/v3.2.4...v3.2.5)

---
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-07-02 12:42:07 +00:00
ditatombot[bot]
7d7d7695ea
Merge pull request #43 from ditatompel/dependabot/npm_and_yarn/frontend/postcss-8.4.39
Merge pull request #43

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-07-02 12:41:24 +00:00
dependabot[bot]
e5750a8010
build(deps-dev): bump @floating-ui/dom from 1.6.5 to 1.6.7 in /frontend
Bumps [@floating-ui/dom](https://github.com/floating-ui/floating-ui/tree/HEAD/packages/dom) from 1.6.5 to 1.6.7.
- [Release notes](https://github.com/floating-ui/floating-ui/releases)
- [Changelog](https://github.com/floating-ui/floating-ui/blob/master/packages/dom/CHANGELOG.md)
- [Commits](https://github.com/floating-ui/floating-ui/commits/@floating-ui/dom@1.6.7/packages/dom)

---
updated-dependencies:
- dependency-name: "@floating-ui/dom"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 05:28:54 +00:00
dependabot[bot]
8959c1a48a
build(deps-dev): bump typescript from 5.4.5 to 5.5.2 in /frontend
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.4.5 to 5.5.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.4.5...v5.5.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 05:28:46 +00:00
dependabot[bot]
032cacd73b
build(deps-dev): bump postcss from 8.4.38 to 8.4.39 in /frontend
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.38 to 8.4.39.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.38...8.4.39)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 05:28:30 +00:00
dependabot[bot]
3e0a6deafc
build(deps): bump github.com/gofiber/fiber/v2 from 2.52.4 to 2.52.5
Bumps [github.com/gofiber/fiber/v2](https://github.com/gofiber/fiber) from 2.52.4 to 2.52.5.
- [Release notes](https://github.com/gofiber/fiber/releases)
- [Commits](https://github.com/gofiber/fiber/compare/v2.52.4...v2.52.5)

---
updated-dependencies:
- dependency-name: github.com/gofiber/fiber/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 05:12:42 +00:00
ditatombot[bot]
1aa5f87e4d
Merge pull request #41 from ditatompel/dependabot/npm_and_yarn/frontend/svelte-check-3.8.1
Some checks failed
Build / build (push) Has been cancelled
Test / lint (push) Has been cancelled
Merge pull request #41

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-06-24 12:04:50 +00:00
dependabot[bot]
79231210c9
build(deps-dev): bump svelte-check from 3.8.0 to 3.8.1 in /frontend
Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 3.8.0 to 3.8.1.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](https://github.com/sveltejs/language-tools/compare/svelte-check-3.8.0...svelte-check-3.8.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-24 12:01:52 +00:00
ditatombot[bot]
382d5c72c1
Merge pull request #40 from ditatompel/dependabot/npm_and_yarn/frontend/sveltejs/kit-2.5.17
Merge pull request #40

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-06-24 12:01:19 +00:00
dependabot[bot]
88d3b6a49f
build(deps-dev): bump @sveltejs/kit from 2.5.10 to 2.5.17 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.5.10 to 2.5.17.
- [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.17/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-06-24 11:59:13 +00:00
ditatombot[bot]
df2ed465e3
Merge pull request #38 from ditatompel/dependabot/npm_and_yarn/frontend/tailwindcss-3.4.4
Merge pull request #38

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-06-24 11:59:11 +00:00
ditatombot[bot]
b668cd5f97
Merge pull request #37 from ditatompel/dependabot/npm_and_yarn/frontend/skeletonlabs/skeleton-2.10.1
Merge pull request #37

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-06-24 11:57:14 +00:00
dependabot[bot]
2e54ba8df1
build(deps-dev): bump tailwindcss from 3.4.3 to 3.4.4 in /frontend
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 3.4.3 to 3.4.4.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/v3.4.4/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v3.4.3...v3.4.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-24 05:44:31 +00:00
dependabot[bot]
0982ada713
build(deps-dev): bump @skeletonlabs/skeleton in /frontend
Bumps [@skeletonlabs/skeleton](https://github.com/skeletonlabs/skeleton) from 2.10.0 to 2.10.1.
- [Release notes](https://github.com/skeletonlabs/skeleton/releases)
- [Commits](https://github.com/skeletonlabs/skeleton/compare/@skeletonlabs/skeleton@2.10.0...@skeletonlabs/skeleton@2.10.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-24 05:44:23 +00:00
ditatompel
029996e5f0
chore: Update .gitattributes Nginx cfg location
Some checks are pending
Build / build (push) Waiting to run
Test / lint (push) Waiting to run
Forgot to change the `.gitattributes` file when moving `tools`
directory to `deployment`. Ref: 5fae3d5
2024-06-23 22:29:11 +07:00
ditatompel
2576d53c35
feat: Only return exit code 1 for specific err
Some checks failed
Build / build (push) Has been cancelled
Test / lint (push) Has been cancelled
Only return with status code `1` if error type is `errProber` which one
of this following const:
errNoEndpoint, errNoTorSocks, errNoAPIKey, and errInvalidCredentials.
2024-06-19 18:46:12 +07:00
ditatompel
aa8ecc6b61
fix(lint): Deprecated linters.errcheck.ignore 2024-06-19 16:54:40 +07:00
ditatompel
0321006eb3
feat: Allow user to specify endpoint from CLI flag
`--no-tor` also added to `probe` CLI flags to force probing clearnet
nodes only.
2024-06-19 16:32:40 +07:00
ditatompel
c0885f5e5a
chore: default ACCEPT_TOR and APP_PREFORK to false
Also change allow-origin CORS from ditatompel.com to xmr.ditatompel.com
2024-06-19 16:25:53 +07:00
ditatompel
3f5c0c9472
refactor: Lowercase & upperase initialism acronyms 2024-06-19 16:24:18 +07:00
ditatompel
e9cacb478c
feat: Allow user to specify custom .env location
Some checks failed
Build / build (push) Has been cancelled
Test / lint (push) Has been cancelled
This feature can also be useful for running tests in CI.
2024-06-18 04:23:08 +07:00
ditatompel
6ba79cc00b
feat: No img src to external URL
Some checks are pending
Build / build (push) Waiting to run
Test / lint (push) Waiting to run
This is useful if we want to expose this service to the Tor network
because browsers usually refuse serving images from https protocol
to insecure http protocol.
2024-06-17 22:16:01 +07:00
ditatompel
0229eaddbd
feat: Not using external URL for country flag icon
The country flag icons no longer use edge.ditatompel.com. It's compiled
to the server binary.

I'm using https://github.com/hampusborgos/country-flags for country flag
svg icons, but the commited svgs was optimized using `svgo`.
2024-06-17 21:53:58 +07:00
ditatompel
90f59dabb5
build(dev-deps): Remove @sveltejs/adapter-auto 2024-06-17 21:08:38 +07:00
ditatombot[bot]
cac48a2fe0
Merge pull request #32 from ditatompel/dependabot/npm_and_yarn/frontend/eslint-plugin-svelte-2.39.5
Merge pull request #32

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-06-17 13:51:41 +00:00
ditatombot[bot]
3e07aab4aa
Merge pull request #31 from ditatompel/dependabot/npm_and_yarn/frontend/sveltejs/adapter-auto-3.2.2
Merge pull request #31

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-06-17 13:50:18 +00:00
ditatombot[bot]
1729be7618
Merge pull request #30 from ditatompel/dependabot/npm_and_yarn/frontend/vite-5.3.1
Merge pull request #30

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-06-17 13:48:14 +00:00
dependabot[bot]
2d1f4ca673
build(deps-dev): bump eslint-plugin-svelte in /frontend
Bumps [eslint-plugin-svelte](https://github.com/sveltejs/eslint-plugin-svelte) from 2.39.3 to 2.39.5.
- [Release notes](https://github.com/sveltejs/eslint-plugin-svelte/releases)
- [Commits](https://github.com/sveltejs/eslint-plugin-svelte/compare/eslint-plugin-svelte@2.39.3...eslint-plugin-svelte@2.39.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-17 13:46:54 +00:00
ditatombot[bot]
a678d311eb
Merge pull request #28 from ditatompel/dependabot/npm_and_yarn/frontend/prettier-3.3.2
Merge pull request #28

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-06-17 13:45:50 +00:00
dependabot[bot]
2817abc15d
build(deps-dev): bump @sveltejs/adapter-auto in /frontend
Bumps [@sveltejs/adapter-auto](https://github.com/sveltejs/kit/tree/HEAD/packages/adapter-auto) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/adapter-auto/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/adapter-auto@3.2.2/packages/adapter-auto)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-17 13:44:01 +00:00
dependabot[bot]
87892768de
build(deps-dev): bump vite from 5.2.12 to 5.3.1 in /frontend
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.2.12 to 5.3.1.
- [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.3.1/packages/vite)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-17 13:43:43 +00:00
ditatombot[bot]
000b830459
Merge pull request #27 from ditatompel/dependabot/npm_and_yarn/frontend/sveltejs/adapter-static-3.0.2
Merge pull request #27

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-06-17 13:43:00 +00:00
ditatombot[bot]
5094efd6c4
Merge pull request #26 from ditatompel/dependabot/go_modules/github.com/spf13/cobra-1.8.1
Merge pull request #26

This merge action was created automatically.

Reviewed-by: ditatompel <ditatompel@users.noreply.github.com>
2024-06-17 13:40:32 +00:00
dependabot[bot]
1a5d2f8b2d
build(deps-dev): bump prettier from 3.3.1 to 3.3.2 in /frontend
Bumps [prettier](https://github.com/prettier/prettier) from 3.3.1 to 3.3.2.
- [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.3.1...3.3.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-17 05:28:27 +00:00
dependabot[bot]
ebf1d89481
build(deps-dev): bump @sveltejs/adapter-static in /frontend
Bumps [@sveltejs/adapter-static](https://github.com/sveltejs/kit/tree/HEAD/packages/adapter-static) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/adapter-static/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/adapter-static@3.0.2/packages/adapter-static)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-17 05:28:19 +00:00
dependabot[bot]
f8b7bc59ba
build(deps): bump github.com/spf13/cobra from 1.8.0 to 1.8.1
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-17 05:18:26 +00:00