Compare commits

...

162 Commits
v1.1.0 ... main

Author SHA1 Message Date
4b6770e12e fix: start script for npm 2025-03-09 05:58:49 +00:00
ac149d0e6b [m] docs: fossa is terrible 2025-03-08 00:43:06 -05:00
27aa7b6165 [m] docs: update badge 2025-03-08 00:34:11 -05:00
167cc952e1 docs: update to match new changes 2025-03-08 00:30:05 -05:00
ec233989b2 chore: upgrade to tailwind v4 2025-03-08 00:29:23 -05:00
c44357b398 chore: upgrade to tailwind v4, introduce new build scripts, clean up, add version number 2025-03-07 23:56:45 -05:00
40620b9835 [m] design: better status and help displays 2025-03-07 23:54:32 -05:00
b9a079396a fix/style: use ! instead of . for done, better statuses on creation, cleaned up styling, handle building correctly 2025-03-07 23:50:22 -05:00
214692db21 feat/style: updated style for consistent/readable design, selection for bun and nodejs/npm for install, move config check to function, clean up node dependency install process, persist storage of nodejs provider 2025-03-07 23:07:05 -05:00
c58b58d36a ignore: add nodejs provider file 2025-03-07 23:05:24 -05:00
270d4e17d0 lint 2025-03-07 21:16:45 -05:00
1163c9e75b fix/feat: clean installation process (use log file), require curl and lsof, minor clarity/design fixes 2025-03-07 21:15:15 -05:00
ef84204725 feat: added distro checking, arch linux support, update system before install 2025-03-07 20:46:40 -05:00
a03c433277 ignore: bun 2025-03-07 20:18:11 -05:00
a10e9e7291 fix mobile menu links, add aidxn.cc to navbar, fix telegram, remove aia email 2025-01-27 09:05:02 -05:00
3efb1c12cc revert 4733c8f97ec95c038bb0d052faed00ead0cd9c6a
Some checks failed
Codacy Security Scan / Codacy Security Scan (push) Has been cancelled
revert Delete old GitHub configs
2025-01-23 20:23:23 +00:00
4733c8f97e Delete old GitHub configs 2025-01-23 14:15:02 -05:00
a5209e3b89 add glow effect to header text 2024-12-31 14:28:30 -05:00
361d219171
Merge pull request #33 from ihatenodejs/dependabot/npm_and_yarn/commander-13.0.0
Bump commander from 12.1.0 to 13.0.0
2024-12-30 15:48:23 -06:00
dependabot[bot]
bf59a04c98
Bump commander from 12.1.0 to 13.0.0
Bumps [commander](https://github.com/tj/commander.js) from 12.1.0 to 13.0.0.
- [Release notes](https://github.com/tj/commander.js/releases)
- [Changelog](https://github.com/tj/commander.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tj/commander.js/compare/v12.1.0...v13.0.0)

---
updated-dependencies:
- dependency-name: commander
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-30 19:47:04 +00:00
285ae6b2d2
add 2 todo items 2024-12-23 00:55:01 -05:00
419b063ae7
added content, improved header design, added remark about windows support, fix design issue with status page 2024-12-21 15:44:41 -05:00
92b0900c3b
Merge remote-tracking branch 'origin/main' 2024-12-20 01:52:58 -05:00
7a0278fc93
add scripts for copying favicon 2024-12-20 01:52:44 -05:00
c186a8b746
add latest version badge 2024-12-19 22:49:42 -05:00
08bcb5b826
improve logic of checking status, opt to restart server instead of exit, add comments, improve checking deps 2024-12-19 22:44:33 -05:00
353c0d35fb
improve ping testing 2024-12-19 22:32:08 -05:00
223e0f7f09
improve wording for alert 2024-12-19 22:19:29 -05:00
1c75722705
Merge remote-tracking branch 'origin/main'
# Conflicts:
#	src/favicon.ico
2024-12-19 22:19:06 -05:00
060a88509b
add favicon.ico 2024-12-19 22:18:09 -05:00
186e1c6e13
add matrix, fix colors 2024-12-19 08:44:48 -05:00
Aidan
ad46a3978e
add favicon 2024-12-19 08:03:02 -05:00
eecde1fd54
update p0ntus mail url 2024-12-18 11:38:37 -05:00
6c3fd9d907
add modules project, fix error in spelling of p0ntus mail 2024-12-17 18:01:39 -05:00
8dc4f67b9d
Merge remote-tracking branch 'origin/main' 2024-12-17 18:00:59 -05:00
f25fe5be60
upgrades 2024-12-17 18:00:51 -05:00
aa438e855d
Merge pull request #32 from ihatenodejs/dependabot/npm_and_yarn/path-key-4.0.0
Bump path-key from 3.1.1 to 4.0.0
2024-12-15 12:21:53 -05:00
2cdd55a800
Merge pull request #31 from ihatenodejs/dependabot/npm_and_yarn/lilconfig-3.1.3
Bump lilconfig from 2.1.0 to 3.1.3
2024-12-15 12:20:48 -05:00
009326ce7b
Merge pull request #30 from ihatenodejs/dependabot/npm_and_yarn/brace-expansion-4.0.0
Bump brace-expansion from 2.0.1 to 4.0.0
2024-12-15 12:20:05 -05:00
56e460f16f
Merge pull request #29 from ihatenodejs/dependabot/npm_and_yarn/eastasianwidth-0.3.0
Bump eastasianwidth from 0.2.0 to 0.3.0
2024-12-15 12:19:08 -05:00
760142c255
Merge pull request #28 from ihatenodejs/dependabot/npm_and_yarn/picomatch-4.0.2
Bump picomatch from 2.3.1 to 4.0.2
2024-12-15 12:18:29 -05:00
dependabot[bot]
44ad3e523b
Bump path-key from 3.1.1 to 4.0.0
Bumps [path-key](https://github.com/sindresorhus/path-key) from 3.1.1 to 4.0.0.
- [Release notes](https://github.com/sindresorhus/path-key/releases)
- [Commits](https://github.com/sindresorhus/path-key/compare/v3.1.1...v4.0.0)

---
updated-dependencies:
- dependency-name: path-key
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-13 20:02:10 +00:00
dependabot[bot]
a1d2d42182
Bump lilconfig from 2.1.0 to 3.1.3
Bumps [lilconfig](https://github.com/antonk52/lilconfig) from 2.1.0 to 3.1.3.
- [Release notes](https://github.com/antonk52/lilconfig/releases)
- [Commits](https://github.com/antonk52/lilconfig/compare/v2.1.0...v3.1.3)

---
updated-dependencies:
- dependency-name: lilconfig
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-13 20:02:06 +00:00
dependabot[bot]
d13f0a2645
Bump brace-expansion from 2.0.1 to 4.0.0
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 2.0.1 to 4.0.0.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/v2.0.1...v4.0.0)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-13 20:01:58 +00:00
dependabot[bot]
ba161ed056
Bump eastasianwidth from 0.2.0 to 0.3.0
Bumps [eastasianwidth](https://github.com/komagata/eastasianwidth) from 0.2.0 to 0.3.0.
- [Commits](https://github.com/komagata/eastasianwidth/commits)

---
updated-dependencies:
- dependency-name: eastasianwidth
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-13 20:01:50 +00:00
dependabot[bot]
c7749727a7
Bump picomatch from 2.3.1 to 4.0.2
Bumps [picomatch](https://github.com/micromatch/picomatch) from 2.3.1 to 4.0.2.
- [Release notes](https://github.com/micromatch/picomatch/releases)
- [Changelog](https://github.com/micromatch/picomatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/picomatch/compare/2.3.1...4.0.2)

---
updated-dependencies:
- dependency-name: picomatch
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-13 20:01:32 +00:00
bfcc3ba519
Merge pull request #24 from ihatenodejs/dependabot/npm_and_yarn/string-width-7.2.0
Bump string-width from 5.1.2 to 7.2.0
2024-12-13 10:53:17 -05:00
5fe327e8c7
Merge pull request #25 from ihatenodejs/dependabot/npm_and_yarn/chokidar-4.0.1
Bump chokidar from 3.6.0 to 4.0.1
2024-12-13 10:52:35 -05:00
33d191c483
Merge pull request #26 from ihatenodejs/dependabot/npm_and_yarn/jackspeak-4.0.2
Bump jackspeak from 3.4.3 to 4.0.2
2024-12-13 10:50:57 -05:00
d6dcaa4e2d
Merge pull request #27 from ihatenodejs/dependabot/npm_and_yarn/nanoid-5.0.9
Bump nanoid from 3.3.8 to 5.0.9
2024-12-13 10:49:48 -05:00
223e5d11b7
Merge pull request #23 from ihatenodejs/dependabot/npm_and_yarn/postcss-selector-parser-7.0.0
Bump postcss-selector-parser from 6.1.2 to 7.0.0
2024-12-13 10:47:42 -05:00
dependabot[bot]
49a3bacc97
Bump nanoid from 3.3.8 to 5.0.9
Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.8 to 5.0.9.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.3.8...5.0.9)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-11 19:29:47 +00:00
dependabot[bot]
5970bfdb6c
Bump jackspeak from 3.4.3 to 4.0.2
Bumps [jackspeak](https://github.com/isaacs/jackspeak) from 3.4.3 to 4.0.2.
- [Changelog](https://github.com/isaacs/jackspeak/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/jackspeak/compare/v3.4.3...v4.0.2)

---
updated-dependencies:
- dependency-name: jackspeak
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-11 19:29:43 +00:00
dependabot[bot]
7fd30b4ee5
Bump chokidar from 3.6.0 to 4.0.1
Bumps [chokidar](https://github.com/paulmillr/chokidar) from 3.6.0 to 4.0.1.
- [Release notes](https://github.com/paulmillr/chokidar/releases)
- [Commits](https://github.com/paulmillr/chokidar/compare/3.6.0...4.0.1)

---
updated-dependencies:
- dependency-name: chokidar
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-11 19:29:29 +00:00
dependabot[bot]
68a2ebf9fa
Bump string-width from 5.1.2 to 7.2.0
Bumps [string-width](https://github.com/sindresorhus/string-width) from 5.1.2 to 7.2.0.
- [Release notes](https://github.com/sindresorhus/string-width/releases)
- [Commits](https://github.com/sindresorhus/string-width/compare/v5.1.2...v7.2.0)

---
updated-dependencies:
- dependency-name: string-width
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-11 19:29:24 +00:00
dependabot[bot]
e719c865be
Bump postcss-selector-parser from 6.1.2 to 7.0.0
Bumps [postcss-selector-parser](https://github.com/postcss/postcss-selector-parser) from 6.1.2 to 7.0.0.
- [Release notes](https://github.com/postcss/postcss-selector-parser/releases)
- [Changelog](https://github.com/postcss/postcss-selector-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss-selector-parser/compare/v6.1.2...v7.0.0)

---
updated-dependencies:
- dependency-name: postcss-selector-parser
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-11 19:29:14 +00:00
ce2aeddf94
Merge pull request #20 from ihatenodejs/dependabot/npm_and_yarn/jiti-2.4.1
Bump jiti from 1.21.6 to 2.4.1
2024-12-10 17:12:25 -05:00
50bc6ba610
Merge pull request #19 from ihatenodejs/dependabot/npm_and_yarn/postcss-import-16.1.0
Bump postcss-import from 15.1.0 to 16.1.0
2024-12-10 17:09:59 -05:00
9be4a5ab31
Merge pull request #21 from ihatenodejs/dependabot/npm_and_yarn/is-fullwidth-code-point-5.0.0
Bump is-fullwidth-code-point from 3.0.0 to 5.0.0
2024-12-10 17:09:10 -05:00
619f76f971
Merge pull request #22 from ihatenodejs/dependabot/npm_and_yarn/glob-11.0.0
Bump glob from 10.4.5 to 11.0.0
2024-12-10 17:08:31 -05:00
44b49270e8
Merge pull request #18 from ihatenodejs/dependabot/npm_and_yarn/binary-extensions-3.0.0
Bump binary-extensions from 2.3.0 to 3.0.0
2024-12-10 17:05:41 -05:00
dependabot[bot]
29cbf83064
Bump glob from 10.4.5 to 11.0.0
Bumps [glob](https://github.com/isaacs/node-glob) from 10.4.5 to 11.0.0.
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/node-glob/compare/v10.4.5...v11.0.0)

---
updated-dependencies:
- dependency-name: glob
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-10 20:08:38 +00:00
dependabot[bot]
07e5d5a22d
Bump is-fullwidth-code-point from 3.0.0 to 5.0.0
Bumps [is-fullwidth-code-point](https://github.com/sindresorhus/is-fullwidth-code-point) from 3.0.0 to 5.0.0.
- [Release notes](https://github.com/sindresorhus/is-fullwidth-code-point/releases)
- [Commits](https://github.com/sindresorhus/is-fullwidth-code-point/compare/v3.0.0...v5.0.0)

---
updated-dependencies:
- dependency-name: is-fullwidth-code-point
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-10 20:08:20 +00:00
dependabot[bot]
fc9a25eca8
Bump jiti from 1.21.6 to 2.4.1
Bumps [jiti](https://github.com/unjs/jiti) from 1.21.6 to 2.4.1.
- [Release notes](https://github.com/unjs/jiti/releases)
- [Changelog](https://github.com/unjs/jiti/blob/main/CHANGELOG.md)
- [Commits](https://github.com/unjs/jiti/compare/v1.21.6...v2.4.1)

---
updated-dependencies:
- dependency-name: jiti
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-10 20:08:15 +00:00
dependabot[bot]
c391f408be
Bump postcss-import from 15.1.0 to 16.1.0
Bumps [postcss-import](https://github.com/postcss/postcss-import) from 15.1.0 to 16.1.0.
- [Release notes](https://github.com/postcss/postcss-import/releases)
- [Changelog](https://github.com/postcss/postcss-import/blob/master/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss-import/compare/15.1.0...16.1.0)

---
updated-dependencies:
- dependency-name: postcss-import
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-10 20:08:09 +00:00
dependabot[bot]
62d232fdf4
Bump binary-extensions from 2.3.0 to 3.0.0
Bumps [binary-extensions](https://github.com/sindresorhus/binary-extensions) from 2.3.0 to 3.0.0.
- [Release notes](https://github.com/sindresorhus/binary-extensions/releases)
- [Commits](https://github.com/sindresorhus/binary-extensions/compare/v2.3.0...v3.0.0)

---
updated-dependencies:
- dependency-name: binary-extensions
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-10 20:07:59 +00:00
e1c4e74415
Merge remote-tracking branch 'origin/main' 2024-12-09 22:03:34 -05:00
62a3b82b91
teeny tiny lint 2024-12-09 22:03:16 -05:00
e93815244f
rm (uses config by default) 2024-12-09 22:02:48 -05:00
707614eb5c
use config file 2024-12-09 21:58:43 -05:00
835068a231
Create .codacy.yml 2024-12-09 21:58:31 -05:00
5843c3e0d2
attempt successful rescan 2024-12-09 21:51:48 -05:00
Aidan
fe631fa199
retrigger analysis 2024-12-09 21:46:25 -05:00
582be75c23
syntax fixes 2024-12-09 21:40:18 -05:00
7c26e397bf
Merge remote-tracking branch 'origin/main' 2024-12-09 21:39:47 -05:00
7c9799ac2c
lint 2024-12-09 21:39:19 -05:00
Aidan
efb61ed10e
Create codacy.yml 2024-12-09 21:23:47 -05:00
Aidan
e497352026
Merge pull request #17 from ihatenodejs/dependabot/npm_and_yarn/postcss-load-config-6.0.1
Bump postcss-load-config from 4.0.2 to 6.0.1
2024-12-09 16:28:40 -05:00
Aidan
e9df556230
Merge pull request #16 from ihatenodejs/dependabot/npm_and_yarn/isexe-3.1.1
Bump isexe from 2.0.0 to 3.1.1
2024-12-09 16:27:51 -05:00
Aidan
0a9ecbc426
Merge pull request #15 from ihatenodejs/dependabot/npm_and_yarn/balanced-match-3.0.1
Bump balanced-match from 1.0.2 to 3.0.1
2024-12-09 16:26:51 -05:00
Aidan
25cfd935c3
Merge pull request #14 from ihatenodejs/dependabot/npm_and_yarn/readdirp-4.0.2
Bump readdirp from 3.6.0 to 4.0.2
2024-12-09 16:17:48 -05:00
Aidan
fd435078e8
Merge pull request #13 from ihatenodejs/dependabot/npm_and_yarn/lru-cache-11.0.2
Bump lru-cache from 10.4.3 to 11.0.2
2024-12-09 16:01:19 -05:00
dependabot[bot]
0747db52bb
Bump postcss-load-config from 4.0.2 to 6.0.1
Bumps [postcss-load-config](https://github.com/postcss/postcss-load-config) from 4.0.2 to 6.0.1.
- [Release notes](https://github.com/postcss/postcss-load-config/releases)
- [Changelog](https://github.com/postcss/postcss-load-config/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss-load-config/compare/v4.0.2...6.0.1)

---
updated-dependencies:
- dependency-name: postcss-load-config
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-09 19:16:45 +00:00
dependabot[bot]
6d45b3f339
Bump isexe from 2.0.0 to 3.1.1
Bumps [isexe](https://github.com/isaacs/isexe) from 2.0.0 to 3.1.1.
- [Commits](https://github.com/isaacs/isexe/compare/v2.0.0...v3.1.1)

---
updated-dependencies:
- dependency-name: isexe
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-09 19:16:39 +00:00
dependabot[bot]
7247cec5ae
Bump balanced-match from 1.0.2 to 3.0.1
Bumps [balanced-match](https://github.com/juliangruber/balanced-match) from 1.0.2 to 3.0.1.
- [Release notes](https://github.com/juliangruber/balanced-match/releases)
- [Commits](https://github.com/juliangruber/balanced-match/compare/v1.0.2...v3.0.1)

---
updated-dependencies:
- dependency-name: balanced-match
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-09 19:16:35 +00:00
dependabot[bot]
f8b4d3e529
Bump readdirp from 3.6.0 to 4.0.2
Bumps [readdirp](https://github.com/paulmillr/readdirp) from 3.6.0 to 4.0.2.
- [Release notes](https://github.com/paulmillr/readdirp/releases)
- [Commits](https://github.com/paulmillr/readdirp/compare/3.6.0...4.0.2)

---
updated-dependencies:
- dependency-name: readdirp
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-09 19:16:30 +00:00
dependabot[bot]
06a6e4985e
Bump lru-cache from 10.4.3 to 11.0.2
Bumps [lru-cache](https://github.com/isaacs/node-lru-cache) from 10.4.3 to 11.0.2.
- [Changelog](https://github.com/isaacs/node-lru-cache/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-lru-cache/compare/v10.4.3...v11.0.2)

---
updated-dependencies:
- dependency-name: lru-cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-09 19:16:25 +00:00
e7666863ef
add manifesto 2024-12-08 18:48:34 -05:00
Aidan
4fddbee31f
Merge pull request #8 from ihatenodejs/dependabot/npm_and_yarn/path-scurry-2.0.0
Bump path-scurry from 1.11.1 to 2.0.0
2024-12-06 15:27:06 -05:00
Aidan
47c44d590c
Merge pull request #9 from ihatenodejs/dependabot/npm_and_yarn/color-name-2.0.0
Bump color-name from 1.1.4 to 2.0.0
2024-12-06 15:25:53 -05:00
Aidan
758e788e99
Merge pull request #10 from ihatenodejs/dependabot/npm_and_yarn/minimatch-10.0.1
Bump minimatch from 9.0.5 to 10.0.1
2024-12-06 15:25:01 -05:00
Aidan
6402e6d359
Merge pull request #11 from ihatenodejs/dependabot/npm_and_yarn/postcss-nested-7.0.2
Bump postcss-nested from 6.2.0 to 7.0.2
2024-12-06 15:21:41 -05:00
Aidan
208d7bb42d
Merge pull request #12 from ihatenodejs/dependabot/npm_and_yarn/emoji-regex-10.4.0
Bump emoji-regex from 9.2.2 to 10.4.0
2024-12-06 15:19:49 -05:00
dependabot[bot]
0bd08a2267
Bump emoji-regex from 9.2.2 to 10.4.0
Bumps [emoji-regex](https://github.com/mathiasbynens/emoji-regex) from 9.2.2 to 10.4.0.
- [Commits](https://github.com/mathiasbynens/emoji-regex/compare/v9.2.2...v10.4.0)

---
updated-dependencies:
- dependency-name: emoji-regex
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-06 20:11:49 +00:00
dependabot[bot]
522e25f640
Bump postcss-nested from 6.2.0 to 7.0.2
Bumps [postcss-nested](https://github.com/postcss/postcss-nested) from 6.2.0 to 7.0.2.
- [Release notes](https://github.com/postcss/postcss-nested/releases)
- [Changelog](https://github.com/postcss/postcss-nested/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss-nested/compare/6.2.0...7.0.2)

---
updated-dependencies:
- dependency-name: postcss-nested
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-06 20:11:45 +00:00
dependabot[bot]
1b01c42e4a
Bump minimatch from 9.0.5 to 10.0.1
Bumps [minimatch](https://github.com/isaacs/minimatch) from 9.0.5 to 10.0.1.
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v9.0.5...v10.0.1)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-06 20:11:41 +00:00
dependabot[bot]
4aac8d6c21
Bump color-name from 1.1.4 to 2.0.0
Bumps [color-name](https://github.com/colorjs/color-name) from 1.1.4 to 2.0.0.
- [Release notes](https://github.com/colorjs/color-name/releases)
- [Commits](https://github.com/colorjs/color-name/compare/v1.1.4...v2.0.0)

---
updated-dependencies:
- dependency-name: color-name
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-06 20:11:35 +00:00
dependabot[bot]
8d53c67d56
Bump path-scurry from 1.11.1 to 2.0.0
Bumps [path-scurry](https://github.com/isaacs/path-scurry) from 1.11.1 to 2.0.0.
- [Changelog](https://github.com/isaacs/path-scurry/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/path-scurry/compare/v1.11.1...v2.0.0)

---
updated-dependencies:
- dependency-name: path-scurry
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-06 20:11:28 +00:00
Aidan
42e24ad07c
Merge pull request #4 from ihatenodejs/dependabot/npm_and_yarn/ts-interface-checker-1.0.2
Bump ts-interface-checker from 0.1.13 to 1.0.2
2024-12-05 17:33:19 -05:00
dependabot[bot]
34f7800b4f
Bump ts-interface-checker from 0.1.13 to 1.0.2
Bumps [ts-interface-checker](https://github.com/gristlabs/ts-interface-checker) from 0.1.13 to 1.0.2.
- [Changelog](https://github.com/gristlabs/ts-interface-checker/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gristlabs/ts-interface-checker/compare/v0.1.13...v1.0.2)

---
updated-dependencies:
- dependency-name: ts-interface-checker
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-05 22:32:14 +00:00
Aidan
ac4a60519f
Merge pull request #3 from ihatenodejs/dependabot/npm_and_yarn/shebang-regex-4.0.0
Bump shebang-regex from 3.0.0 to 4.0.0
2024-12-05 17:31:54 -05:00
Aidan
44410fc7a3
Merge pull request #5 from ihatenodejs/dependabot/npm_and_yarn/is-binary-path-3.0.0
Bump is-binary-path from 2.1.0 to 3.0.0
2024-12-05 17:30:56 -05:00
Aidan
4acd3c0466
Merge pull request #6 from ihatenodejs/dependabot/npm_and_yarn/wrap-ansi-9.0.0
Bump wrap-ansi from 8.1.0 to 9.0.0
2024-12-05 17:29:57 -05:00
Aidan
cd82d8d847
Merge pull request #7 from ihatenodejs/dependabot/npm_and_yarn/lines-and-columns-2.0.4
Bump lines-and-columns from 1.2.4 to 2.0.4
2024-12-05 17:28:42 -05:00
dependabot[bot]
c7ff9dbdeb
Bump lines-and-columns from 1.2.4 to 2.0.4
Bumps [lines-and-columns](https://github.com/eventualbuddha/lines-and-columns) from 1.2.4 to 2.0.4.
- [Release notes](https://github.com/eventualbuddha/lines-and-columns/releases)
- [Commits](https://github.com/eventualbuddha/lines-and-columns/commits/v2.0.4)

---
updated-dependencies:
- dependency-name: lines-and-columns
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-05 22:25:29 +00:00
dependabot[bot]
1abdc49ee1
Bump wrap-ansi from 8.1.0 to 9.0.0
Bumps [wrap-ansi](https://github.com/chalk/wrap-ansi) from 8.1.0 to 9.0.0.
- [Release notes](https://github.com/chalk/wrap-ansi/releases)
- [Commits](https://github.com/chalk/wrap-ansi/compare/v8.1.0...v9.0.0)

---
updated-dependencies:
- dependency-name: wrap-ansi
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-05 22:25:26 +00:00
dependabot[bot]
7438a57699
Bump is-binary-path from 2.1.0 to 3.0.0
Bumps [is-binary-path](https://github.com/sindresorhus/is-binary-path) from 2.1.0 to 3.0.0.
- [Release notes](https://github.com/sindresorhus/is-binary-path/releases)
- [Commits](https://github.com/sindresorhus/is-binary-path/compare/v2.1.0...v3.0.0)

---
updated-dependencies:
- dependency-name: is-binary-path
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-05 22:25:21 +00:00
dependabot[bot]
4b49fb02e0
Bump shebang-regex from 3.0.0 to 4.0.0
Bumps [shebang-regex](https://github.com/sindresorhus/shebang-regex) from 3.0.0 to 4.0.0.
- [Release notes](https://github.com/sindresorhus/shebang-regex/releases)
- [Commits](https://github.com/sindresorhus/shebang-regex/compare/v3.0.0...v4.0.0)

---
updated-dependencies:
- dependency-name: shebang-regex
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-05 22:25:05 +00:00
Aidan
1ac09f2838
add missing value 2024-12-05 17:24:02 -05:00
Aidan
28dea93a9e
Create dependabot.yml 2024-12-05 17:22:25 -05:00
Aidan
a7e5aa7e64
update todo 2024-12-05 10:30:47 -05:00
Aidan
69c8699ed4 add pontus mail project 2024-12-05 09:28:21 -05:00
Aidan
1f17f3f21d update pgp key 2024-12-05 00:57:08 -05:00
Aidan
8ea5753544 add notice about in-progress projects 2024-12-03 00:30:26 -05:00
Aidan
9e944de1ba rearrange items, add aidxnFUNretro 2024-12-03 00:05:39 -05:00
Aidan
7bd40e1590 add website to aia, add pontus-bot 2024-12-03 00:00:28 -05:00
Aidan
741ebcffee change title emoji for season 2024-12-01 23:34:19 -05:00
Aidan
34b78f655f label item correctly 2024-12-01 19:26:08 -05:00
Aidan
595678c8d6 add dropdown in header 2024-12-01 19:25:18 -05:00
Aidan
a915cf2e8a update js for dropdown support 2024-12-01 19:24:52 -05:00
Aidan
09db383f62 expand, reword about the design section 2024-12-01 17:14:10 -05:00
Aidan
84c8718895 expand about section, update title 2024-12-01 16:20:03 -05:00
Aidan
aa3c0ed1cf change blog (down) to archive site link 2024-11-26 10:54:15 -05:00
Aidan
bbe0474a23 hide incomplete privacy policy link 2024-11-26 10:54:03 -05:00
Aidan
4d5fb54797 update content about p0ntus archive site and blog 2024-11-26 10:53:48 -05:00
Aidan
b179dcee94 update content about p0ntus archive site 2024-11-26 10:53:29 -05:00
Aidan
efdb876c2e update with turkey instead of pumpkin (happy thanksgiving!) 2024-11-26 10:44:45 -05:00
Aidan
beba1ef7f9 update with more relevant/maintained project 2024-11-26 10:36:46 -05:00
Aidan
cfb5234e5b add addl contact methods 2024-11-26 10:36:27 -05:00
Aidan
75ac3dc443
add 512kb.club orange team badge 2024-11-14 12:10:46 -05:00
Aidan
5f8cd3719e
add 512kb club orange team badge 2024-11-14 11:48:43 -05:00
Aidan
36010e6087
change to better wording, remove ~ 2024-11-13 16:55:57 -05:00
Aidan
dac3eddaeb
hotfix: npm install in case user already has node 2024-11-13 16:36:31 -05:00
Aidan
a499c9219e
update active projects 2024-11-13 16:04:02 -05:00
Aidan
f68ee19974
update todo, update windows support plans 2024-11-13 15:34:48 -05:00
Aidan
48c74fc6a2
fix space on invalid command, remove unused option mention in help 2024-11-13 15:14:42 -05:00
Aidan
7d0d75a190
add better port activity checking 2024-11-13 15:08:33 -05:00
Aidan
4bb8beb6ce
exclude .idea/ folder 2024-11-13 14:56:17 -05:00
Aidan
d60a8ca194
add scripts for pgp folder 2024-11-13 14:55:19 -05:00
Aidan
0f8a16483f
upload pgp key 2024-11-13 14:55:05 -05:00
Aidan
d1b76e830b
add pgp verification support 2024-11-13 14:54:53 -05:00
Aidan
9aea40e3d1
add pgp folder support, increase version 2024-11-13 14:54:07 -05:00
Aidan
9eb313d862
add addl username, info about archive.org 2024-11-13 13:24:12 -05:00
Aidan
9acdb4761b add mention of pontus site 2024-11-12 10:53:34 -05:00
Aidan
1fa0b0784a clean up grammar, add mention of pontus site 2024-11-12 10:53:07 -05:00
Aidan
4102c6bf19 fix missing classes on p element 2024-11-08 09:19:43 -05:00
Aidan
b1e2386b84 update info about music 2024-11-08 09:18:16 -05:00
Aidan
7d92658519 slight increase in delay to wait for server 2024-11-08 08:45:31 -05:00
Aidan
0b0f6aaa50 reword several tiles for clarity/extra info 2024-11-08 08:43:57 -05:00
Aidan
ee88666ebb add more project details 2024-11-08 08:33:28 -05:00
Aidan
2fb7b189ac add missing br tag for spacing 2024-11-08 08:27:59 -05:00
Aidan
55c41ead60 remove colon 2024-11-08 01:46:16 -05:00
Aidan
7a0c905815 move music tile before design info 2024-11-08 01:43:16 -05:00
Aidan
79d9b3e2f0
style/wording changes, add todo item 2024-11-08 00:08:46 +00:00
Aidan
ad7fec8f88
minor format fix 2024-11-07 23:59:35 +00:00
Aidan
6205841264 add documentation for windows hosts 2024-11-07 18:58:04 -05:00
Aidan
83660d4438 add support for windows hosts 2024-11-07 18:57:13 -05:00
Aidan
0b1452906a update outdated server location 2024-11-07 15:10:14 -05:00
Aidan
f4c1697dc0 remove analytics system 2024-11-07 13:59:02 -05:00
Aidan
bdd7f6f7e9 remove api server pings 2024-11-07 13:39:22 -05:00
Aidan
8992facc1f remove unused server entry 2024-11-07 13:37:37 -05:00
Aidan
42cfdac1f8 remove outdated issue 2024-11-07 13:31:09 -05:00
29 changed files with 986 additions and 661 deletions

2
.codacy.yml Normal file
View File

@ -0,0 +1,2 @@
exclude_paths:
- "src/css/base.css"

11
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"

61
.github/workflows/codacy.yml vendored Normal file
View File

@ -0,0 +1,61 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow checks out code, performs a Codacy security scan
# and integrates the results with the
# GitHub Advanced Security code scanning feature. For more information on
# the Codacy security scan action usage and parameters, see
# https://github.com/codacy/codacy-analysis-cli-action.
# For more information on Codacy Analysis CLI in general, see
# https://github.com/codacy/codacy-analysis-cli.
name: Codacy Security Scan
on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '35 8 * * 2'
permissions:
contents: read
jobs:
codacy-security-scan:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
name: Codacy Security Scan
runs-on: ubuntu-latest
steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout code
uses: actions/checkout@v4
# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
- name: Run Codacy Analysis CLI
uses: codacy/codacy-analysis-cli-action@d840f886c4bd4edc059706d09c6a1586111c540b
with:
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository
# You can also omit the token and run the tools that support default configurations
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
verbose: true
output: results.sarif
format: sarif
# Adjust severity of non-security issues
gh-code-scanning-compat: true
# Force 0 exit code to allow SARIF file generation
# This will handover control about PR rejection to the GitHub side
max-allowed-issues: 2147483647
# Upload the SARIF file generated in the previous step
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif

8
.gitignore vendored
View File

@ -137,3 +137,11 @@ config.json
.db_init .db_init
public/ public/
src/css/main.css src/css/main.css
.njs.provider
# exclude idea folder
.idea/
# bun
bun.lock
bun.lockb

201
README.md
View File

@ -1,153 +1,140 @@
# aidxnFUN # aidxnFUN
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fihatenodejs%2FaidxnFUN.svg?type=shield&issueType=license)](https://app.fossa.com/projects/git%2Bgithub.com%2Fihatenodejs%2FaidxnFUN?ref=badge_shield&issueType=license)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fihatenodejs%2FaidxnFUN.svg?type=shield&issueType=security)](https://app.fossa.com/projects/git%2Bgithub.com%2Fihatenodejs%2FaidxnFUN?ref=badge_shield&issueType=security)
Built with Tailwind CSS, EJS, Express.js, and Node.js for a backend for it all. [![License: CC0-1.0](https://img.shields.io/badge/License-CC0_1.0-lightgrey.svg)](http://creativecommons.org/publicdomain/zero/1.0/)
This is a more modern version of design. [![Latest Release](https://img.shields.io/badge/latest_version-v.1.40-purple)](https://github.com/ihatenodejs/aidxnFUN/releases)
This project is released under the CC0-1.0 license. The code and content are in the public domain.
# Install and self-host <a href="https://512kb.club"><img src="https://512kb.club/assets/images/orange-team.svg" alt="a proud member of the orange team of 512KB club" /></a>
Have a weird obsession? Want a pre-built site you can use for free? Host aidxnFUN!
As the code is available under the CC0-1.0 license, which means you should feel free and encouraged to change content, design, whatever!
During this process, `node` (20.08.0), `npm`, and `docker` will be installed on your computer.
Please note the /status endpoint will be broken with the original servers as CORS is blocked on sites not requesting from my personal domain. The full code of my website, under the CC0-1.0 license (public domain). Built with Tailwind CSS, EJS, Express.js, and Node.js
## Install and self-host
Have a weird obsession? Want a pre-built site you can use for free? Host aidxnFUN! As the code is available under the CC0-1.0 license, which means you should feel free and encouraged to change content, design, whatever!
During this process, `node` (20.08.0), `npm`, and `netcat` will be installed. If you use Windows, you must manually install Node.js.
**Please note:** The /status endpoint will be broken with default servers (ones I own) as CORS will block requests not made from aidxn.fun
### Debian/Ubuntu/Arch Linux
## Debian/Ubuntu/Other Debian-based systems
1. Clone the repo 1. Clone the repo
```bash ```bash
git clone https://github.com/ihatenodejs/aidxnFUN git clone https://github.com/ihatenodejs/aidxnFUN
cd aidxnFUN cd aidxnFUN
``` ```
2. Setup `manage`
2. Setup `manage` (installs everything you need)
```bash ```bash
./manage setup ./manage setup
``` ```
3. Edit example files
```bash
nano docker-compose.yml # Edit Docker Compose (database server)
nano config.json # Edit config.json (database config)
```
When editing config.json, use server details from docker-compose.yml so they are linked together. Ensure you double-check the IP or hostname of the Docker container, and link that with the .env file. This is crucial, or your database will not be connected. 3. Start the server
Database features are only for analytics, at this time.
4. Start the server
```bash ```bash
./manage up ./manage up
``` ```
A server will now start on port :5566, and be accessible from your web browser at http://localhost:5566/. I highly suggest creating a NGINX reverse proxy for this, especially if you plan to point this to a domain. A server will now start on port :5566, and be accessible from your web browser at http://localhost:5566/. I highly suggest creating a NGINX reverse proxy for this, especially if you plan to point this to a domain.
## Windows ### Windows
Windows is currently not supported by aidxnFUN yet. I suggest you use WSL, and follow the Linux instructions, or purchase a server.
Windows-based hosts are only partially supported. I have no plans to write a script for Windows as of now, though that may change in the future, based on demand. However, `package.json` have bundled scripts to allow hosting on Windows. If you plan to host this website, I **STRONGLY** recommend that you use Linux.
**Windows hosting has not been tested in a while, and may not work perfectly.**
1. Install Node.js and NPM (or Bun) for Windows from [Node.js.org](https://nodejs.org/) or [bun.sh](https://bun.sh/)
2. Open a Node.js command prompt
3. Clone the repo
```bat
git clone https://github.com/ihatenodejs/aidxnFUN
cd aidxnFUN
```
4. Build the app
**Bun**
```bat
bun run build:win:bun
```
**NPM**
```bat
npm run build:win:npm
```
5. Run the app
**Bun**
```bat
set PORT=5566 && bun run start:win:bun
```
**NPM**
```bat
set PORT=5566 && npm run start:win:npm
```
You may use the `PORT` variable to set a custom port. While Windows tends to default to 3000, we will use 5566, which is the default for aidxnFUN on Linux.
## How it works
### Stack/Technical Stuff
This website uses Node.js, Express.js, EJS for templating, and Tailwind CSS.
# How it works
This website uses Node.js, Express.js for a server, EJS for templating, and Tailwind CSS for the frontend CSS. It additionally uses Docker (w/ MariaDB and optionally PhpMyAdmin) for managing the database, which is used in the analytics system.
The `manage` script uses all of those tools to manage the server for you executes the repetitive tasks for you automatically. The `manage` script uses all of those tools to manage the server for you executes the repetitive tasks for you automatically.
The views contain both regular page shards (full-ish pages) and generic shards (fragments of pages, widgets, etc.). I define a "shard" as an EJS template, which are pieced together into a pretty little website. The shards hold individual elements like music widgets, while a regular page shard is the page that contains the music widget, which the end user sees. This is helpful for understanding the code. The views contain both regular page shards (full-ish pages) and generic shards (fragments of pages, widgets, etc.). I define a "shard" as an EJS template, which are pieced together into a pretty little website. The shards hold individual elements like music widgets, while a regular page shard is the page that contains the music widget, which the end user sees. This is helpful for understanding the code.
Thus far, shards are included for a music widget, the header, and the footer of the pages. Thus far, shards are included for a music widget, the header, and the footer of the pages.
### Music
Music (as featured on the home page) is fetched from an API (hosted on https://biancarosa.com.br), which I am in the process of setting up for myself. It works with a LastFM account (I linked this to my Spotify) and can track your live listening with amazing accuracy. The repo can be found at [biancarosa/lastfm-last-played](https://github.com/biancarosa/lastfm-last-played). Music (as featured on the home page) is fetched from an API (hosted on https://biancarosa.com.br), which I am in the process of setting up for myself. It works with a LastFM account (I linked this to my Spotify) and can track your live listening with amazing accuracy. The repo can be found at [biancarosa/lastfm-last-played](https://github.com/biancarosa/lastfm-last-played).
# Sample docker-compose.yml - (suggested) I'm in the process of migrating this project over to MusicBrainz.
```dockerfile
services:
aidxnfun-db:
image: mariadb:latest
networks:
aidxnfun-n:
ipv4_address: 10.5.0.5
environment:
MYSQL_ROOT_PASSWORD: iloveaidxnfun123
MYSQL_DATABASE: aidxnfun
MYSQL_USER: aidxnfun
MYSQL_PASSWORD: iloveaidxnfun
volumes:
- ./db_storage:/var/lib/mysql
restart: unless-stopped
phpmyadmin:
image: phpmyadmin
restart: always
networks:
aidxnfun-n:
ipv4_address: 10.5.0.6
ports:
- 80:80
environment:
- PMA_ARBITRARY=1
networks: ## Using the `manage` script
aidxnfun-n:
external: true
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1
```
This can be used in conjunction with this example config.json file: You may have noticed you have a `manage` file after cloning. `manage` is a command-line tool to manage the server. It can automatically start, stop, and restart your instance. This script only supports Linux-based systems.
```json
{
"DB_HOST": "10.5.0.05",
"DB_PORT": 3306,
"DB_USER": "root",
"DB_PASSWORD": "iloveaidxnfun123",
"DB_NAME": "aidxnfun"
}
```
This config will create a MariaDB instance, with a pre-created database, as long well as supplied user credentials. A PhpMyAdmin instance will additionally be spun up for easy management and inspection of the database. You may plug in `10.5.0.5` as the host on [your ip]:80 in your web browser (on the computer running Docker).
# Using the `manage` script
You may have noticed you have a `manage` file after cloning.
`manage` is a command-line tool to manage the server. It can automatically start, stop, and restart your instance.
This script only supports Linux-based systems.
First, you must complete the setup with the following commands: First, you must complete the setup with the following commands:
```bash ```bash
chmod +x manage chmod +x manage
./manage setup ./manage setup
``` ```
After doing that, you are now ready to use the script. After doing that, you are now ready to use the script.
## Known issues and suggestions ### `manage` usage
### Issue 1
There is a known issue where Node.js will not wait for the database starts, before polling it.
### Issue 1 Workaround
I suggest doing the following commands to start your server
```bash
# if you haven't yet done this, run ./manage setup
./manage up
# once that command is finished (and waits the 30 seconds for database to come up)
./manage restart --db-alive
```
## `manage` usage
`./manage [command] [options]` `./manage [command] [options]`
## `manage` commands ### `manage` commands
+ `./manage up` - Builds the project and starts the server. + `./manage up` - Builds the project and starts the server
+ `./manage down` - Stops the server. + `./manage down` - Stops the server
+ `./manage restart` - Restarts the server. + `./manage restart` - Restarts the server
+ `./manage status, -s, --status` - Checks if the server is running. + `./manage status, -s, --status` - Checks if the server is running
+ `./manage help, -h, --help` - Shows the help message. + `./manage help, -h, --help` - Shows the help message
## `manage` options ## Troubleshooting
+ `--db-alive` - Do not restart Docker services (database).
# Troubleshooting I highly suggest you take a peek at the `node.log` file's contents. It's in the same directory as the `manage` script. This file contains the Node.js server logs, which can be very helpful for debugging and/or troubleshooting.
I highly suggest you take a peek at the `node.log` file's contents. It's in the same directory as the `manage` script. This shows the web server's full startup, which can help you find out if the database isn't configured right, or something else is going wrong.
If the database just started, give it 30 or so seconds and issue `./manage restart --db-alive` to restart the server without touching the database. It's common to get into a Docker-and-Node restart loop (which are not in sync) which I'm fixing. ## To-Do
# To-Do - [ ] Add instructions for setting up without `manage`
- [ ] Implement PGP message verification - [ ] Fix spacing issues with footer (not the same size across pages)
- [ ] Improve `manage` handling of waiting for database to start (switch from predefined number of seconds) - [ ] Fix status tracking and add tracking for latest servers
- [X] Improve dropdown menu style
- [X] Restructure menu with dropdowns
- [X] Implement PGP message verification
- [X] Add menu link to tilde website - [X] Add menu link to tilde website
- [X] Add database support
- [X] Add view counter
- [X] Update projects page to latest information - [X] Update projects page to latest information
# License
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fihatenodejs%2FaidxnFUN.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fihatenodejs%2FaidxnFUN?ref=badge_large)

132
app.js
View File

@ -1,104 +1,68 @@
const express = require('express'); const express = require('express');
const openpgp = require('openpgp');
const path = require('path'); const path = require('path');
const mysql = require('mysql2');
const fs = require('fs'); const fs = require('fs');
const config = JSON.parse(fs.readFileSync('./config.json', 'utf8'));
const app = express(); const app = express();
app.use(express.urlencoded({ extended: true }));
app.set('view engine', 'ejs'); app.set('view engine', 'ejs');
app.set('views', path.join(__dirname, 'views')); app.set('views', path.join(__dirname, 'views'));
app.use(express.static(path.join(__dirname, 'public'))); app.use(express.static(path.join(__dirname, 'public')));
app.use(express.json()); app.use(express.json());
const db = mysql.createConnection({ const PUBKEY = path.join(__dirname, 'src', 'pgp', 'publickey.asc');
host: config.DB_HOST,
port: config.DB_PORT,
user: config.DB_USER,
password: config.DB_PASSWORD,
database: config.DB_NAME,
});
const dbInit = () => { const routes = ['/', '/about', '/contact', '/status', '/design', '/projects', '/cloud'];
if (!fs.existsSync('.db_init')) {
console.log('.db_init not found, initializing db...');
const createVT = `
CREATE TABLE page_views (
page VARCHAR(255) PRIMARY KEY,
views INT DEFAULT 0
)`;
db.query(createVT, (error) => {
if (error) throw error;
console.log('Views table created successfully.');
insertPages();
fs.writeFileSync('.db_init', 'complete');
});
db.query(`SHOW TABLES LIKE 'page_views'`, (err, results) => {
if (err) throw err;
if (results.length === 0) {
const createVT = `
CREATE TABLE page_views (
page VARCHAR(255) PRIMARY KEY,
views INT DEFAULT 0
)`;
db.query(createVT, (error) => {
if (error) throw error;
console.log('Views table created successfully.');
insertPages();
fs.writeFileSync('.db_init', 'complete');
});
} else {
console.log('Views table already exists, skipping.');
insertPages();
}
});
} else {
console.log('.db_init file found, skipping database initialization.');
}
};
const insertPages = () => {
const pages = ['/', '/about', '/contact', '/verify', '/status', '/design', '/projects', '/cloud'];
pages.forEach(page => {
const sql = `INSERT IGNORE INTO page_views (page, views) VALUES (?, 0)`;
db.query(sql, [page], (error) => {
if (error) throw error;
});
});
};
db.connect((err) => {
if (err) throw err;
console.log('Connected to database.');
dbInit();
});
app.post('/api/log-view', (req, res) => {
const { page } = req.body;
const sql = `UPDATE page_views SET views = views + 1 WHERE page = ?`;
db.query(sql, [page], (error) => {
if (error) return res.status(500).json({ error });
const selectSql = `SELECT views FROM page_views WHERE page = ?`;
db.query(selectSql, [page], (error, results) => {
if (error) return res.status(500).json({ error });
res.json({ views: results[0].views });
});
});
});
const routes = ['/', '/about', '/contact', '/verify', '/status', '/design', '/projects', '/cloud'];
routes.forEach(route => { routes.forEach(route => {
app.get(route, (req, res) => { app.get(route, (req, res) => {
res.render(route === '/' ? 'index' : route.slice(1), { req }); res.render(route === '/' ? 'index' : route.slice(1), { req });
}); });
}); });
app.get('/verify', (req, res) => {
res.render('verify', { req, verifyResult: null });
});
app.get('/manifesto', (req, res) => {
res.render('manifesto', { req, verifyResult: null });
});
app.post('/verify', async (req, res) => {
const { pgpMessage } = req.body;
try {
const pubKeyArmored = fs.readFileSync(PUBKEY, 'utf8');
const pubKey = await openpgp.readKey({ armoredKey: pubKeyArmored });
const cleartextMessage = await openpgp.readCleartextMessage({ cleartextMessage: pgpMessage });
const verifyResult = await openpgp.verify({
message: cleartextMessage,
verificationKeys: pubKey,
});
const isValid = await verifyResult.signatures[0].verified;
let resultMessage;
if (isValid) {
resultMessage = '✅ Signature is valid!';
} else {
resultMessage = '❌ Signature is invalid or message has been tampered with.';
}
res.render('verify', { req, verifyResult: resultMessage });
} catch (error) {
if (error.message.includes("Could not find signing key")) {
console.error('Verification failed: Unknown/invalid signing key');
res.render('verify', { req, verifyResult: '❌ Signature is from unknown signer or invalid.' });
} else {
console.error('Verification failed:', error);
res.render('verify', { req, verifyResult: '❌ An error occurred during verification.' });
}
}
});
const PORT = process.env.PORT || 5566; const PORT = process.env.PORT || 5566;
app.listen(PORT, () => { app.listen(PORT, () => {
const now = new Date(); const now = new Date();

View File

@ -1,7 +0,0 @@
{
"DB_HOST": "10.5.0.5",
"DB_PORT": 3306,
"DB_USER": "root",
"DB_PASSWORD": "iloveaidxnfun123",
"DB_NAME": "aidxnfun"
}

View File

@ -1,11 +0,0 @@
services:
db:
image: mariadb:latest
environment:
MYSQL_ROOT_PASSWORD: iloveaidxnfun123
MYSQL_DATABASE: aidxnfun
MYSQL_USER: aidxnfun
MYSQL_PASSWORD: iloveaidxnfun
volumes:
- /docker/db/mysql:/var/lib/mysql
restart: unless-stopped

435
manage
View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
SC_VERSION=1.1.0 SC_VERSION=1.4.0
SC_CODENAME="bionic" SC_CODENAME="seahorse"
PORT=5566 PORT=5566
SETUP_FILE=".setup_complete" SETUP_FILE=".setup_complete"
COLOR_RESET="\033[0m" COLOR_RESET="\033[0m"
@ -10,119 +10,162 @@ COLOR_RED="\033[1;31m"
COLOR_YELLOW="\033[1;33m" COLOR_YELLOW="\033[1;33m"
COLOR_BLUE="\033[1;34m" COLOR_BLUE="\033[1;34m"
COLOR_CYAN="\033[1;36m" COLOR_CYAN="\033[1;36m"
DISTRO=$(grep '^NAME=' /etc/os-release | cut -d '=' -f2 | tr -d '"')
NOB="inactive"
check_db() { function command_exists() {
nc -z "$DB_HOST" "$DB_PORT" command -v "$1" &> /dev/null
}
function install_docker() {
sudo apt-get update
sudo apt-get install docker.io
echo -e "\n${COLOR_GREEN}Docker installed successfully.${COLOR_RESET}"
if [ ! -f "docker-compose.yml" ]; then
if [ ! -f "docker-compose.yml.example" ]; then
echo "Couldn't find example Docker Compose file"
else
sudo cp docker-compose.yml.example docker-compose.yml
echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
fi
else
echo -e "${COLOR_GREEN}Docker Compose file already exists, skipping.${COLOR_RESET}"
fi
echo -e "${COLOR_BLUE}Creating Docker network...${COLOR_RESET}"
if ! sudo docker network inspect aidxnfun-n >/dev/null 2>&1; then
sudo docker network create --subnet=10.5.0.0/16 aidxnfun-n >/dev/null 2>&1
echo "${COLOR_GREEN}Created Docker network.${COLOR_RESET}"
else
echo "${COLOR_YELLOW}Docker network already exists.${COLOR_RESET}"
fi
} }
function install_tools() { function install_tools() {
if ! command -v curl &> /dev/null 2>&1; then # Perform updates
echo -e "${COLOR_BLUE}Updating package lists...${COLOR_RESET}"
if [ "$DISTRO" == "Ubuntu" ]; then
# shellcheck disable=SC2024
sudo apt-get update >> install.log
echo -e "${COLOR_GREEN}Done!${COLOR_RESET}\n"
elif [ "$DISTRO" == "Arch Linux" ]; then
# shellcheck disable=SC2024
sudo pacman -Sy >> install.log
echo -e "${COLOR_GREEN}Done!${COLOR_RESET}\n"
fi
echo -e "${COLOR_BLUE}Starting system dependency install...${COLOR_RESET}"
# Check for curl, and install if not found
if ! command_exists curl; then
echo -e "${COLOR_RED}curl is not installed. Installing now...${COLOR_RESET}" echo -e "${COLOR_RED}curl is not installed. Installing now...${COLOR_RESET}"
echo -e "${COLOR_YELLOW}You may need to enter your sudo password.${COLOR_RESET}\n" if [ "$DISTRO" == "Ubuntu" ]; then
sudo apt-get install curl # shellcheck disable=SC2024
sudo apt-get install curl -y >> install.log
elif [ "$DISTRO" == "Arch Linux" ]; then
# shellcheck disable=SC2024
sudo pacman -S --noconfirm curl >> install.log
fi
echo -e "\n${COLOR_GREEN}curl installed successfully.${COLOR_RESET}\n" echo -e "\n${COLOR_GREEN}curl installed successfully.${COLOR_RESET}\n"
else else
echo -e "${COLOR_GREEN}curl is installed.${COLOR_RESET}" echo -e "${COLOR_GREEN}curl is installed.${COLOR_RESET}"
fi fi
if ! command -v node &> /dev/null 2>&1; then # Check for NodeJS/Bun and install if not found
echo -e "${COLOR_RED}NodeJS is not installed. Installing now...${COLOR_RESET}" if ! command_exists node && ! command_exists bun; then
echo -e "${COLOR_YELLOW}You may need to enter your sudo password.${COLOR_RESET}\n" for i in {1..3}; do
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash echo -e "${COLOR_BLUE}Do you want to install and use Node.js or Bun? (node/bun)${COLOR_RESET}"
read -r -p "" NOB
if [ "$NOB" == "node" ]; then
curl -o .install.sh https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh >> install.log
chmod +x .install.sh
bash .install.sh >> install.log
rm .install.sh # cleanup
# shellcheck disable=SC2155
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install 20.18.0 nvm install 23 >> install.log
echo -e "\n${COLOR_GREEN}NodeJS installed successfully.${COLOR_RESET}\n" echo -e "\n${COLOR_GREEN}NodeJS installed successfully.${COLOR_RESET}\n"
NOB="node_installed"
if ! command_exists npm; then
echo -e "${COLOR_RED}NPM is not installed. Installing now...${COLOR_RESET}"
if [ "$DISTRO" == "Ubuntu" ]; then
# shellcheck disable=SC2024
sudo apt-get install npm -y >> install.log
elif [ "$DISTRO" == "Arch Linux" ]; then
# shellcheck disable=SC2024
sudo pacman -S --noconfirm npm >> install.log
fi
echo -e "\n${COLOR_GREEN}NPM installed successfully.${COLOR_RESET}\n"
else else
echo -e "${COLOR_GREEN}NPM is installed. Version: $(npm -v)${COLOR_RESET}"
fi
break
elif [ "$NOB" == "bun" ]; then
curl -fsSL --output .install.sh https://bun.sh/install >> install.log
chmod +x .install.sh
bash .install.sh >> install.log
rm .install.sh # cleanup
# this puts bun in the path for the initial install, we later instruct the user to add it to their shell profile
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
echo -e "\n${COLOR_GREEN}Bun installed successfully.${COLOR_RESET}\n"
NOB="bun_installed"
break
else
echo -e "${COLOR_RED}Invalid option, please enter 'node' or 'bun'${COLOR_RESET}"
fi
done
if [ "$NOB" != "node_installed" ] && [ "$NOB" != "bun_installed" ]; then
# this is mainly intended to catch the case where the user doesn't enter anything 3+ times
echo -e "${COLOR_RED}[!] Failed to install, exiting.${COLOR_RESET}"
exit 1
fi
elif command_exists bun; then
echo -e "${COLOR_GREEN}NodeJS is installed (provided through Bun). Version: $(bun -v)${COLOR_RESET}"
elif command_exists node; then
echo -e "${COLOR_GREEN}NodeJS is installed. Version: $(node -v)${COLOR_RESET}" echo -e "${COLOR_GREEN}NodeJS is installed. Version: $(node -v)${COLOR_RESET}"
fi fi
if ! command -v nc &> /dev/null 2>&1; then # Check for Netcat, and install if not found
if ! command_exists nc; then
echo -e "${COLOR_RED}Netcat is not installed. Installing now...${COLOR_RESET}" echo -e "${COLOR_RED}Netcat is not installed. Installing now...${COLOR_RESET}"
echo -e "${COLOR_YELLOW}You may need to enter your sudo password.${COLOR_RESET}\n" if [ "$DISTRO" == "Ubuntu" ]; then
sudo apt-get install netcat-traditional # shellcheck disable=SC2024
sudo apt-get install netcat-traditional -y >> install.log
elif [ "$DISTRO" == "Arch Linux" ]; then
# shellcheck disable=SC2024
sudo pacman -S --noconfirm netcat >> install.log
fi
echo -e "\n${COLOR_GREEN}Netcat installed successfully.${COLOR_RESET}\n" echo -e "\n${COLOR_GREEN}Netcat installed successfully.${COLOR_RESET}\n"
else else
echo -e "${COLOR_GREEN}Netcat is installed.${COLOR_RESET}" echo -e "${COLOR_GREEN}Netcat is installed.${COLOR_RESET}"
fi fi
if ! command -v docker &> /dev/null 2>&1; then # Check for lsof, and install if not found
echo -e "${COLOR_RED}Docker is not installed. Installing now...${COLOR_RESET}" if ! command_exists lsof && [ "$DISTRO" == "Arch Linux" ]; then
echo -e "${COLOR_YELLOW}You may need to enter your sudo password.${COLOR_RESET}\n" echo -e "${COLOR_RED}lsof is not installed. Installing now...${COLOR_RESET}"
install_docker # shellcheck disable=SC2024
echo -e "\n${COLOR_GREEN}Docker installed successfully.${COLOR_RESET}\n" sudo pacman -S --noconfirm lsof >> install.log
echo -e "\n${COLOR_GREEN}lsof installed successfully.${COLOR_RESET}\n"
else else
echo -e "${COLOR_GREEN}Docker is installed. Version: $(docker --version)${COLOR_RESET}" echo -e "${COLOR_GREEN}lsof is installed.${COLOR_RESET}"
fi
if ! command -v npm &> /dev/null 2>&1; then
echo -e "${COLOR_RED}NPM is not installed. Installing now...${COLOR_RESET}"
echo -e "${COLOR_YELLOW}You may need to enter your sudo password.${COLOR_RESET}\n"
sudo apt-get update
sudo apt-get install npm
if [ ! -f "config.json" ]; then
echo -e "${COLOR_BLUE}Copying config file...${COLOR_RESET}"
if [ ! -f "config.json.example" ]; then
echo "Couldn't find example config file"
else
sudo cp config.json.example config.json
fi
else
echo -e "${COLOR_GREEN}config file already exists, skipping.${COLOR_RESET}"
fi
echo -e "${COLOR_BLUE}Installing NPM deps...${COLOR_RESET}"
npm install > node.log 2>&1
echo -e "\n${COLOR_GREEN}NPM installed successfully.${COLOR_RESET}\n"
touch $SETUP_FILE
else
echo -e "${COLOR_GREEN}NPM is installed. Version: $(npm -v)${COLOR_RESET}"
touch $SETUP_FILE
fi fi
} }
# Checks if a config.json file exists
function check_config() {
if [ ! -f "config.json" ]; then
echo -e "\n${COLOR_BLUE}Copying config file...${COLOR_RESET}"
if [ ! -f "config.json.example" ]; then
echo -e "${COLOR_RED}[!] Couldn't find example config file${COLOR_RESET}"
else
cp config.json.example config.json
echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
fi
else
echo -e "${COLOR_GREEN}Config file already exists, skipping.${COLOR_RESET}"
fi
}
# Show help message
function show_help() { function show_help() {
echo -e "${COLOR_GREEN}manage version:${COLOR_RESET} ${COLOR_BLUE}${SC_VERSION} ${SC_CODENAME}${COLOR_RESET}" echo -e "${COLOR_GREEN}manage for aidxnFUN:${COLOR_RESET} ${COLOR_BLUE}v${SC_VERSION} (${SC_CODENAME})${COLOR_RESET}"
echo -e "${COLOR_BLUE}Usage:${COLOR_RESET} ./manage [command] [options]\n" echo -e "${COLOR_BLUE}Usage:${COLOR_RESET} ./manage [command]\n"
echo -e "${COLOR_YELLOW}Commands:${COLOR_RESET}" echo -e "${COLOR_YELLOW}Commands:${COLOR_RESET}"
echo -e " ${COLOR_CYAN}help, -h, --help${COLOR_RESET} Shows this help message." echo -e " ${COLOR_CYAN}help, -h, --help${COLOR_RESET} Shows this help message."
echo -e " ${COLOR_CYAN}up${COLOR_RESET} Builds the project and starts the server." echo -e " ${COLOR_CYAN}up${COLOR_RESET} Builds the project and starts the server."
echo -e " ${COLOR_CYAN}down${COLOR_RESET} Stops the server." echo -e " ${COLOR_CYAN}down${COLOR_RESET} Stops the server."
echo -e " ${COLOR_CYAN}restart${COLOR_RESET} Restarts the server." echo -e " ${COLOR_CYAN}restart${COLOR_RESET} Restarts the server."
echo -e " ${COLOR_CYAN}status, -s, --status${COLOR_RESET} Checks if the server is running.\n" echo -e " ${COLOR_CYAN}status, -s, --status${COLOR_RESET} Checks if the server is running.\n"
echo -e "${COLOR_YELLOW}Options:${COLOR_RESET}"
echo -e " ${COLOR_CYAN}--db-alive${COLOR_RESET} Do not restart Docker services.\n"
} }
# Check if essential directories exist (mainly for server startup/shutdown), and create them if they don't already exist
function check_dirs() { function check_dirs() {
local action=$1 local action=$1
local created_count=0 local created_count=0
local deleted_count=0 local deleted_count=0
if [ "$action" == "create" ]; then if [ "$action" == "create" ]; then
for dir in "./public" "./public/js" "./public/css" "./src" "./src/css" "./src/img" "./src/js"; do for dir in "./public" "./public/js" "./public/css" "./public/pgp" "./src" "./src/css" "./src/img" "./src/js" "./src/pgp"; do
if [ ! -d "$dir" ]; then if [ ! -d "$dir" ]; then
echo -e "${COLOR_BLUE}Creating $dir...${COLOR_RESET}" echo -e "${COLOR_BLUE}Creating $dir...${COLOR_RESET}"
mkdir -p "$dir" mkdir -p "$dir"
@ -130,11 +173,10 @@ function check_dirs() {
fi fi
done done
if [ "$created_count" -gt 0 ]; then if [ "$created_count" -gt 0 ]; then
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}" echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
else else
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}" echo -e "${COLOR_YELLOW}Done, nothing created.${COLOR_RESET}"
fi fi
elif [ "$action" == "delete" ]; then elif [ "$action" == "delete" ]; then
if [ -d "./public" ]; then if [ -d "./public" ]; then
echo -e "${COLOR_BLUE}Deleting public directory...${COLOR_RESET}" echo -e "${COLOR_BLUE}Deleting public directory...${COLOR_RESET}"
@ -143,30 +185,27 @@ function check_dirs() {
fi fi
if [ "$deleted_count" -gt 0 ]; then if [ "$deleted_count" -gt 0 ]; then
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}" echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
else else
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}" echo -e "${COLOR_YELLOW}Done, nothing deleted.${COLOR_RESET}"
fi fi
else else
echo -e "${COLOR_RED}Invalid action: $action. Use 'create' or 'delete'.${COLOR_RESET}" echo -e "${COLOR_RED}Invalid action: $action. Use 'create' or 'delete'.${COLOR_RESET}"
fi fi
} }
# Handles restarting of server
function restart_server() { function restart_server() {
check_setup check_setup
if [ "$DB_ALIVE" == "true" ]; then
echo -e "${COLOR_YELLOW}Database services will not be restarted. Skipping Docker operations.${COLOR_RESET}"
else
if [ -d './public' ]; then if [ -d './public' ]; then
echo -e "${COLOR_BLUE}Deleting public directories...${COLOR_RESET}"
check_dirs "delete" check_dirs "delete"
fi fi
if [ -f './src/css/main.css' ]; then if [ -f './src/css/main.css' ]; then
echo -e "${COLOR_BLUE}Deleting old Tailwind CSS...${COLOR_RESET}" echo -e "${COLOR_BLUE}Deleting old Tailwind CSS...${COLOR_RESET}"
rm ./src/css/main.css rm ./src/css/main.css
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}" echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
fi fi
PIDS=$(lsof -t -i:$PORT) PIDS=$(lsof -t -i:$PORT)
@ -174,137 +213,178 @@ function restart_server() {
if [ -n "$PIDS" ]; then if [ -n "$PIDS" ]; then
echo -e "${COLOR_BLUE}Stopping server...${COLOR_RESET}" echo -e "${COLOR_BLUE}Stopping server...${COLOR_RESET}"
for PID in $PIDS; do for PID in $PIDS; do
kill "$PID" || echo -e "${COLOR_RED}Failed to kill PID: $PID${COLOR_RESET}" kill "$PID" >> /dev/null || echo -e "${COLOR_RED}Failed to kill PID: $PID${COLOR_RESET}"
done done
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}" echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
else else
echo -e "${COLOR_YELLOW}No process found on port $PORT.${COLOR_RESET}" echo -e "${COLOR_YELLOW}No process found on port $PORT.${COLOR_RESET}"
fi fi
echo -e "${COLOR_BLUE}Stopping database...${COLOR_RESET}"
echo "This may require your sudo password"
sudo docker compose down
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}"
echo -e "${COLOR_BLUE}Creating public directories...${COLOR_RESET}"
check_dirs "create" check_dirs "create"
echo -e "${COLOR_BLUE}Starting database...${COLOR_RESET}"
echo "This may require your sudo password"
sudo docker compose up -d
echo -e "${COLOR_BLUE}Waiting 30 seconds for database startup...${COLOR_RESET}"
sleep 30
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}"
fi
echo -e "${COLOR_BLUE}Building project...${COLOR_RESET}" echo -e "${COLOR_BLUE}Building project...${COLOR_RESET}"
if ! npm run build > node.log 2>&1; then if command_exists bun && command_exists bunx; then
if ! bun run build:linux:bun > node.log 2>&1; then
echo -e "${COLOR_RED}Build failed. Please check for errors above.${COLOR_RESET}" echo -e "${COLOR_RED}Build failed. Please check for errors above.${COLOR_RESET}"
exit 1 exit 1
else else
echo -e "${COLOR_GREEN}Done!${COLOR_RESET}" echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
fi fi
elif command_exists npm; then
if ! npm run build:linux:npm > node.log 2>&1; then
echo -e "${COLOR_RED}Build failed. Please check for errors above.${COLOR_RESET}"
exit 1
else
echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
fi
else
echo -e "${COLOR_RED}NodeJS is somehow not installed, exiting.${COLOR_RESET}"
exit 1
fi
if [ -f './public/css/base.css' ]; then if [ -f './public/css/base.css' ]; then
echo -e "${COLOR_BLUE}Cleaning up base Tailwind CSS file...${COLOR_RESET}" echo -e "${COLOR_BLUE}Cleaning up base Tailwind CSS file...${COLOR_RESET}"
rm ./public/css/base.css rm ./public/css/base.css
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}" echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
fi fi
if [ -f './node.log' ]; then if [ -f './node.log' ]; then
echo -e "${COLOR_BLUE}Deleting node log...${COLOR_RESET}" echo -e "${COLOR_BLUE}Deleting node log...${COLOR_RESET}"
rm ./node.log rm ./node.log
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}" echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
fi fi
echo -e "${COLOR_BLUE}Starting server...${COLOR_RESET}" echo -e "${COLOR_BLUE}Starting server...${COLOR_RESET}"
npm start > node.log 2>&1 & if command_exists bun; then
echo -e "${COLOR_GREEN}Done. Server up and running on port $PORT!${COLOR_RESET}" bun run start:bun > node.log 2>&1 &
elif command_exists npm; then
npm run start:npm > node.log 2>&1 &
fi
MAX_RETRIES=10
RETRY_INTERVAL=1
for ((i=1; i<=MAX_RETRIES; i++)); do
PIDS=$(lsof -t -i:$PORT)
if [ -n "$PIDS" ]; then
echo -e "${COLOR_GREEN}\nDone! Server up and running on port $PORT!\n${COLOR_RESET}"
break
else
echo -e "${COLOR_YELLOW}[WAITING FOR SERVER]${COLOR_RESET} Attempt $i/${MAX_RETRIES}"
sleep $RETRY_INTERVAL
fi
done
if [ -z "$PIDS" ]; then
echo -e "${COLOR_RED}Failed to start the server on port $PORT after $MAX_RETRIES attempts.${COLOR_RESET}"
fi
if [ -z "$PIDS" ]; then
echo -e "${COLOR_RED}Something went wrong... Check node.log for more details${COLOR_RESET} (no process on port)"
fi
} }
# Handles starting of server
function start_server() { function start_server() {
check_setup check_setup
if [ "$DB_ALIVE" == "true" ]; then
echo -e "${COLOR_YELLOW}Database services will not be restarted. Skipping Docker operations.${COLOR_RESET}"
else
echo -e "${COLOR_BLUE}Starting database...${COLOR_RESET}"
echo "This may require your sudo password"
sudo docker compose up -d
echo -e "${COLOR_BLUE}Waiting 30 seconds for database startup...${COLOR_RESET}"
sleep 30
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}"
fi
PID=$(lsof -t -i:$PORT) PID=$(lsof -t -i:$PORT)
if [ -n "$PID" ]; then if [ -n "$PID" ]; then
echo -e "${COLOR_YELLOW}Server process already running on port $PORT. Skipping server start.${COLOR_RESET}" echo -e "${COLOR_GREEN}Server already running on port $PORT, opting to restart.\n${COLOR_RESET}"
restart_server
return return
fi fi
echo -e "${COLOR_BLUE}Creating public directories...${COLOR_RESET}"
check_dirs "create" check_dirs "create"
if [ -f './src/css/main.css' ]; then if [ -f './src/css/main.css' ]; then
echo -e "${COLOR_BLUE}Deleting old Tailwind CSS...${COLOR_RESET}" echo -e "${COLOR_BLUE}Deleting old Tailwind CSS...${COLOR_RESET}"
rm ./src/css/main.css rm ./src/css/main.css
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}" echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
fi fi
if [ -f './node.log' ]; then if [ -f './node.log' ]; then
echo -e "${COLOR_BLUE}Deleting node log...${COLOR_RESET}" echo -e "${COLOR_BLUE}Deleting node log...${COLOR_RESET}"
rm ./node.log rm ./node.log
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}" echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
fi fi
echo -e "${COLOR_BLUE}Building project...${COLOR_RESET}" echo -e "${COLOR_BLUE}Building project...${COLOR_RESET}"
if ! npm run build > node.log 2>&1; then if command_exists bun && command_exists bunx; then
if ! bun run build:linux:bun > node.log 2>&1; then
echo -e "${COLOR_RED}Build failed. Please check for errors above.${COLOR_RESET}" echo -e "${COLOR_RED}Build failed. Please check for errors above.${COLOR_RESET}"
exit 1 exit 1
else else
echo -e "${COLOR_GREEN}Done!${COLOR_RESET}" echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
fi fi
elif command_exists npm; then
if ! npm run build:linux:npm > node.log 2>&1; then
echo -e "${COLOR_RED}Build failed. Please check for errors above.${COLOR_RESET}"
exit 1
else
echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
fi
else
echo -e "${COLOR_RED}NodeJS is somehow not installed, exiting.${COLOR_RESET}"
exit 1
fi
if [ -f './public/css/base.css' ]; then if [ -f './public/css/base.css' ]; then
echo -e "${COLOR_BLUE}Cleaning up base Tailwind CSS file...${COLOR_RESET}" echo -e "${COLOR_BLUE}Cleaning up base Tailwind CSS file...${COLOR_RESET}"
rm ./public/css/base.css rm ./public/css/base.css
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}" echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
fi fi
echo -e "${COLOR_BLUE}Starting server...${COLOR_RESET}" echo -e "${COLOR_BLUE}Starting server...${COLOR_RESET}"
npm start > node.log 2>&1 & if command_exists bun; then
echo -e "${COLOR_GREEN}Done. Server up and running on port $PORT!${COLOR_RESET}" bun run start:bun > node.log 2>&1 &
elif command_exists npm; then
npm run start:npm > node.log 2>&1 &
fi
MAX_RETRIES=10
RETRY_INTERVAL=1
for ((i=1; i<=MAX_RETRIES; i++)); do
PIDS=$(lsof -t -i:$PORT)
if [ -n "$PIDS" ]; then
echo -e "${COLOR_GREEN}\nDone! Server up and running on port $PORT!\n${COLOR_RESET}"
break
else
echo -e "${COLOR_YELLOW}[WAITING FOR SERVER]${COLOR_RESET} Attempt $i/${MAX_RETRIES}"
sleep $RETRY_INTERVAL
fi
done
if [ -z "$PIDS" ]; then
echo -e "${COLOR_RED}Failed to start the server on port $PORT after $MAX_RETRIES attempts.${COLOR_RESET}"
fi
if [ -z "$PIDS" ]; then
echo -e "${COLOR_RED}Something went wrong... Check node.log for more details${COLOR_RESET} (no process on port)"
fi
} }
# Handles stopping of server
function stop_server() { function stop_server() {
check_setup check_setup
PID=$(lsof -t -i:$PORT) PID=$(lsof -t -i:$PORT)
if [ "$DB_ALIVE" == "true" ]; then
echo -e "${COLOR_YELLOW}Database services will not be stopped. Skipping Docker operations.${COLOR_RESET}"
else
echo -e "${COLOR_BLUE}Stopping database...${COLOR_RESET}"
echo "This may require your sudo password"
sudo docker compose down
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}"
fi
if [ -d './public' ]; then if [ -d './public' ]; then
echo -e "${COLOR_BLUE}Deleting public directories...${COLOR_RESET}"
check_dirs "delete" check_dirs "delete"
fi fi
if [ -f './src/css/main.css' ]; then if [ -f './src/css/main.css' ]; then
echo -e "${COLOR_BLUE}Deleting Tailwind CSS...${COLOR_RESET}" echo -e "${COLOR_BLUE}Deleting Tailwind CSS...${COLOR_RESET}"
rm ./src/css/main.css rm ./src/css/main.css
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}" echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
fi fi
if [ -f './node.log' ]; then if [ -f './node.log' ]; then
echo -e "${COLOR_BLUE}Deleting node log...${COLOR_RESET}" echo -e "${COLOR_BLUE}Deleting node log...${COLOR_RESET}"
rm ./node.log rm ./node.log
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}" echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
fi fi
PIDS=$(lsof -t -i:$PORT) PIDS=$(lsof -t -i:$PORT)
@ -312,55 +392,96 @@ function stop_server() {
if [ -n "$PIDS" ]; then if [ -n "$PIDS" ]; then
echo -e "${COLOR_BLUE}Stopping server...${COLOR_RESET}" echo -e "${COLOR_BLUE}Stopping server...${COLOR_RESET}"
for PID in $PIDS; do for PID in $PIDS; do
kill "$PID" || echo -e "${COLOR_RED}Failed to kill PID: $PID${COLOR_RESET}" kill "$PID" >> /dev/null || echo -e "${COLOR_RED}Failed to kill PID: $PID${COLOR_RESET}"
done done
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}" echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
else else
echo -e "${COLOR_YELLOW}No process found on port $PORT.${COLOR_RESET}" echo -e "${COLOR_YELLOW}No process found on port $PORT.${COLOR_RESET}"
fi fi
} }
# Checks if server is running
function check_status() { function check_status() {
check_setup check_setup
PID=$(lsof -t -i:$PORT) PID=$(lsof -t -i:$PORT)
echo -e "${COLOR_GREEN}manage for aidxnFUN:${COLOR_RESET} ${COLOR_BLUE}v${SC_VERSION} (${SC_CODENAME})${COLOR_RESET}"
if [ -n "$PID" ]; then if [ -n "$PID" ]; then
echo -e "${COLOR_GREEN}Server running with PID: $PID${COLOR_RESET}" echo -e "${COLOR_GREEN}[SERVER]${COLOR_RESET} Running with PID: $PID"
else else
echo -e "${COLOR_RED}Server not running.${COLOR_RESET}" echo -e "${COLOR_RED}[SERVER]${COLOR_RESET} Down${COLOR_RESET}"
fi fi
} }
# Master setup function/process
function setup() { function setup() {
if [ "$DISTRO" != "Ubuntu" ] && [ "$DISTRO" != "Arch Linux" ]; then
echo -e "${COLOR_RED}This script is only supported on Ubuntu and Arch Linux${COLOR_RESET}"
exit 1
fi
clear clear
echo -e "${COLOR_BLUE}Welcome to the aidxnFUN 'manage' script setup!\n${COLOR_RESET}${COLOR_CYAN}You are running manage ${SC_VERSION} ${SC_CODENAME}${COLOR_RESET}\n" echo -e "${COLOR_BLUE}Welcome to the aidxnFUN 'manage' script setup!\n${COLOR_RESET}${COLOR_CYAN}You are running manage v${SC_VERSION} (${SC_CODENAME})${COLOR_RESET}\n"
echo -e "${COLOR_GREEN}A custom script built by ihatenodejs${COLOR_RESET}" echo -e "${COLOR_GREEN}A custom script built by ihatenodejs${COLOR_RESET}"
echo -e "${COLOR_YELLOW}and presented by forkers like you...${COLOR_RESET}" echo -e "${COLOR_YELLOW}and presented by forkers like you...${COLOR_RESET}"
echo -e "\nPress any key to continue..." echo -e "\nPress any key to continue..."
read -n 1 -s -r -p "" read -n 1 -s -r -p ""
clear clear
echo -e "This script requires Node.js, NPM, and Docker to be installed on your system." echo -e "${COLOR_BLUE}This script requires Node.js+NPM/Bun, curl, lsof, and Netcat to be installed on your system.${COLOR_RESET}"
echo "Please ensure you have these tools installed before proceeding." echo -e "${COLOR_BLUE}It will attempt to install all of the required dependencies, although this might not work every time.${COLOR_RESET}"
echo -e "${COLOR_YELLOW}You may need to enter your sudo password.${COLOR_RESET}"
echo -e "\nPress any key to continue with tool installation..." echo -e "\nPress any key to continue with tool installation..."
read -n 1 -s -r -p "" read -n 1 -s -r -p ""
clear clear
# Execute install tool script
install_tools install_tools
echo -e "\n${COLOR_GREEN}Dependancy installation complete!${COLOR_RESET}" # Check if config file exists
echo -e "\n${COLOR_BLUE}If you would like to view the install logs, please do so, or click [ENTER] to continue to the next step.${COLOR_RESET}\n" check_config
# Configure provider and install Node dependencies
if command_exists bun; then
echo -e "\n${COLOR_BLUE}Setting provider to Bun...${COLOR_RESET}"
echo "DO NOT EDIT THIS: bun" > .njs.provider
echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
echo -e "\n${COLOR_BLUE}Installing dependencies with Bun...${COLOR_RESET}"
bun install >> install.log
echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
elif command_exists npm; then
echo -e "\n${COLOR_BLUE}Setting provider to Node/NPM...${COLOR_RESET}"
echo "DO NOT EDIT THIS: node" > .njs.provider
echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
echo -e "\n${COLOR_BLUE}Installing dependencies with NPM...${COLOR_RESET}"
npm install >> install.log
echo -e "${COLOR_GREEN}Done!${COLOR_RESET}"
else
echo -e "${COLOR_RED}NodeJS is somehow not installed, exiting.${COLOR_RESET}"
exit 1
fi
echo -e "\n${COLOR_GREEN}Dependency installation complete!${COLOR_RESET}"
echo -e "${COLOR_BLUE}You can view the complete log of the installation process in the install.log file${COLOR_RESET}"
if [ "$NOB" == "bun_installed" ]; then
echo -e "\n${COLOR_RED}Make sure to add this to your shell profile (most likely ~/.bashrc):${COLOR_RESET}"
echo -e "${COLOR_GREEN}export BUN_INSTALL=\"$HOME/.bun\"${COLOR_RESET}"
echo -e "${COLOR_GREEN}export PATH=\"\$BUN_INSTALL/bin:\$PATH\"${COLOR_RESET}"
fi
echo -e "\nPress [ENTER] to continue to the next step."
read -n 1 -s -r -p "" read -n 1 -s -r -p ""
clear clear
echo -e "${COLOR_GREEN}Now, take a look at the commands you can use with this script:${COLOR_RESET}\n" echo -e "${COLOR_GREEN}Take a look at the tasks you can perform automatically with manage:${COLOR_RESET}\n"
# Show the user help message
show_help show_help
echo -e "\nPress any key to continue to the final step..." echo -e "\nPress any key to continue to the final step..."
read -n 1 -s -r -p "" read -n 1 -s -r -p ""
clear clear
echo -e "${COLOR_BLUE}Now, you should disconnect your SSH session or logout from your computer, and reconnect/login again for the best results.${COLOR_RESET}" # Quick commands
echo -e "\n${COLOR_BLUE}Then, start the server with this command:${COLOR_RESET}" echo -e "${COLOR_BLUE}Now, you may start the server with this command:${COLOR_RESET}"
echo -e "${COLOR_GREEN}./manage up${COLOR_RESET}\n" echo -e "${COLOR_GREEN}./manage up${COLOR_RESET}\n"
echo -e "\n${COLOR_BLUE}If you need help, or to get info about other commands, simply use:${COLOR_RESET}" echo -e "\n${COLOR_BLUE}If you need help, or to get info about other commands, simply use:${COLOR_RESET}"
echo -e "${COLOR_GREEN}./manage help${COLOR_RESET}" echo -e "${COLOR_GREEN}./manage help${COLOR_RESET}"
@ -368,28 +489,18 @@ function setup() {
read -n 1 -s -r -p "" read -n 1 -s -r -p ""
clear clear
echo -e "${COLOR_GREEN}Thank you for using manage ${SC_VERSION} ${SC_CODENAME}!${COLOR_RESET}\n" echo -e "${COLOR_GREEN}Thank you for using manage ${SC_VERSION} ${SC_CODENAME}!${COLOR_RESET}\n"
touch $SETUP_FILE
exit 0 exit 0
} }
function check_setup() { function check_setup() {
# Check if setup file exists
if [ ! -f "$SETUP_FILE" ]; then if [ ! -f "$SETUP_FILE" ]; then
setup setup
fi fi
} }
DB_ALIVE="false" # Handles user commands
if [[ $# -eq 0 ]]; then
show_help
exit 0
fi
for arg in "$@"; do
if [[ "$arg" == "--db-alive" ]]; then
DB_ALIVE="true"
break
fi
done
case $1 in case $1 in
up) up)
check_setup check_setup
@ -416,7 +527,7 @@ case $1 in
;; ;;
*) *)
check_setup check_setup
echo -e "${COLOR_RED}Invalid command: $1${COLOR_RESET}" echo -e "${COLOR_RED}Invalid command: $1\n${COLOR_RESET}"
show_help show_help
;; ;;
esac esac

View File

@ -1,99 +1,114 @@
{ {
"name": "aidxnfun", "name": "aidxnfun",
"version": "1.0.0", "version": "1.4.0",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"build:css": "npx tailwindcss -i ./src/css/base.css -o ./src/css/main.css && cp -r ./src/css ./public/", "build:css:linux:npx": "npx @tailwindcss/cli -i ./src/css/base.css -o ./src/css/main.css && cp -r ./src/css ./public/",
"build:js": "cp -r ./src/js ./public/", "build:css:linux:bunx": "bunx @tailwindcss/cli -i ./src/css/base.css -o ./src/css/main.css && cp -r ./src/css ./public/",
"build:img": "cp -r ./src/img ./public/", "build:js:linux": "cp -r ./src/js ./public/",
"build": "npm run build:css && npm run build:js && npm run build:img", "build:img:linux": "cp -r ./src/img ./public/",
"start": "node app.js" "build:pgp:linux": "cp -r ./src/pgp ./public/",
"copy:favicon:linux": "cp ./src/favicon.ico ./public/",
"build:css:win:npx": "npx @tailwindcss/cli -i ./src/css/base.css -o ./src/css/main.css && xcopy /E /I /Y \"./src/css\" \"./public/css\"",
"build:css:win:bunx": "npx @tailwindcss/cli -i ./src/css/base.css -o ./src/css/main.css && xcopy /E /I /Y \"./src/css\" \"./public/css\"",
"build:js:win": "xcopy /E /I /Y \"./src/js\" \"./public/js\"",
"build:img:win": "xcopy /E /I /Y \"./src/img\" \"./public/img\"",
"build:pgp:win": "xcopy /E /I /Y \"./src/pgp\" \"./public/pgp\"",
"copy:favicon:win": "copy /Y \"./src/favicon.ico\" \"./public/\"",
"build:linux:npm": "npm run build:css:linux:npx && npm run build:js:linux && npm run build:img:linux && npm run build:pgp:linux && npm run copy:favicon:linux",
"build:linux:bun": "bun run build:css:linux:bunx && bun run build:js:linux && bun run build:img:linux && bun run build:pgp:linux && bun run copy:favicon:linux",
"build:win:npm": "npm run build:css:win:npx && npm run build:js:win && npm run build:img:win && npm run build:pgp:win && npm run copy:favicon:win",
"build:win:bun": "bun run build:css:win:bunx && bun run build:js:win && bun run build:img:win && bun run build:pgp:win && bun run copy:favicon:win",
"start:bun": "bun app.js",
"start:npm": "node app.js"
}, },
"private": true, "private": true,
"devDependencies": { "devDependencies": {
"autoprefixer": "^10.4.20", "autoprefixer": "^10.4.20",
"postcss": "^8.4.47", "postcss": "^8.5.3",
"tailwindcss": "^3.4.13" "tailwindcss": "^4.0.12"
}, },
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-free": "^6.6.0", "@fortawesome/fontawesome-free": "^6.7.2",
"@tailwindcss/cli": "^4.0.12",
"ansi-regex": "^6.1.0", "ansi-regex": "^6.1.0",
"ansi-styles": "^6.2.1", "ansi-styles": "^6.2.1",
"any-promise": "^1.3.0", "any-promise": "^1.3.0",
"anymatch": "^3.1.3", "anymatch": "^3.1.3",
"arg": "^5.0.2", "arg": "^5.0.2",
"balanced-match": "^1.0.2", "balanced-match": "^3.0.1",
"binary-extensions": "^2.3.0", "binary-extensions": "^3.0.0",
"brace-expansion": "^2.0.1", "brace-expansion": "^4.0.0",
"braces": "^3.0.3", "braces": "^3.0.3",
"camelcase-css": "^2.0.1", "camelcase-css": "^2.0.1",
"chokidar": "^3.6.0", "chokidar": "^4.0.3",
"color-convert": "^2.0.1", "color-convert": "^2.0.1",
"color-name": "^1.1.4", "color-name": "^2.0.0",
"commander": "^12.1.0", "commander": "^13.1.0",
"cross-spawn": "^7.0.3", "cross-spawn": "^7.0.6",
"cssesc": "^3.0.0", "cssesc": "^3.0.0",
"didyoumean": "^1.2.2", "didyoumean": "^1.2.2",
"dlv": "^1.1.3", "dlv": "^1.1.3",
"eastasianwidth": "^0.2.0", "eastasianwidth": "^0.3.0",
"ejs": "^3.1.10", "ejs": "^3.1.10",
"emoji-regex": "^9.2.2", "emoji-regex": "^10.4.0",
"express": "^4.21.1", "express": "^4.21.2",
"fast-glob": "^3.3.2", "fast-glob": "^3.3.3",
"fastq": "^1.17.1", "fastq": "^1.19.1",
"fill-range": "^7.1.1", "fill-range": "^7.1.1",
"foreground-child": "^3.3.0", "foreground-child": "^3.3.1",
"function-bind": "^1.1.2", "function-bind": "^1.1.2",
"glob": "^10.4.5", "glob": "^11.0.1",
"glob-parent": "^6.0.2", "glob-parent": "^6.0.2",
"hasown": "^2.0.2", "hasown": "^2.0.2",
"is-binary-path": "^2.1.0", "is-binary-path": "^3.0.0",
"is-core-module": "^2.15.1", "is-core-module": "^2.16.1",
"is-extglob": "^2.1.1", "is-extglob": "^2.1.1",
"is-fullwidth-code-point": "^3.0.0", "is-fullwidth-code-point": "^5.0.0",
"is-glob": "^4.0.3", "is-glob": "^4.0.3",
"is-number": "^7.0.0", "is-number": "^7.0.0",
"isexe": "^2.0.0", "isexe": "^3.1.1",
"jackspeak": "^3.4.3", "jackspeak": "^4.1.0",
"jiti": "^1.21.6", "jiti": "^2.4.2",
"lilconfig": "^2.1.0", "lilconfig": "^3.1.3",
"lines-and-columns": "^1.2.4", "lines-and-columns": "^2.0.4",
"lru-cache": "^10.4.3", "lru-cache": "^11.0.2",
"merge2": "^1.4.1", "merge2": "^1.4.1",
"micromatch": "^4.0.8", "micromatch": "^4.0.8",
"minimatch": "^9.0.5", "minimatch": "^10.0.1",
"minipass": "^7.1.2", "minipass": "^7.1.2",
"mysql2": "^3.11.3", "mysql2": "^3.13.0",
"mz": "^2.7.0", "mz": "^2.7.0",
"nanoid": "^3.3.7", "nanoid": "^5.1.3",
"normalize-path": "^3.0.0", "normalize-path": "^3.0.0",
"object-assign": "^4.1.1", "object-assign": "^4.1.1",
"object-hash": "^3.0.0", "object-hash": "^3.0.0",
"openpgp": "^6.1.0",
"package-json-from-dist": "^1.0.1", "package-json-from-dist": "^1.0.1",
"path-key": "^3.1.1", "path-key": "^4.0.0",
"path-parse": "^1.0.7", "path-parse": "^1.0.7",
"path-scurry": "^1.11.1", "path-scurry": "^2.0.0",
"picocolors": "^1.1.0", "picocolors": "^1.1.1",
"picomatch": "^2.3.1", "picomatch": "^4.0.2",
"pify": "^6.1.0", "pify": "^6.1.0",
"pirates": "^4.0.6", "pirates": "^4.0.6",
"postcss-import": "^15.1.0", "postcss-import": "^16.1.0",
"postcss-js": "^4.0.1", "postcss-js": "^4.0.1",
"postcss-load-config": "^4.0.2", "postcss-load-config": "^6.0.1",
"postcss-nested": "^6.2.0", "postcss-nested": "^7.0.2",
"postcss-selector-parser": "^6.1.2", "postcss-selector-parser": "^7.1.0",
"postcss-value-parser": "^4.2.0", "postcss-value-parser": "^4.2.0",
"queue-microtask": "^1.2.3", "queue-microtask": "^1.2.3",
"read-cache": "^1.0.0", "read-cache": "^1.0.0",
"readdirp": "^3.6.0", "readdirp": "^4.1.2",
"resolve": "^1.22.8", "resolve": "^1.22.10",
"reusify": "^1.0.4", "reusify": "^1.1.0",
"run-parallel": "^1.2.0", "run-parallel": "^1.2.0",
"shebang-command": "^2.0.0", "shebang-command": "^2.0.0",
"shebang-regex": "^3.0.0", "shebang-regex": "^4.0.0",
"signal-exit": "^4.1.0", "signal-exit": "^4.1.0",
"source-map-js": "^1.2.1", "source-map-js": "^1.2.1",
"string-width": "^5.1.1", "string-width": "^7.2.0",
"string-width-cjs": "^5.1.1", "string-width-cjs": "^5.1.1",
"strip-ansi": "^7.1.0", "strip-ansi": "^7.1.0",
"strip-ansi-cjs": "^8.0.0", "strip-ansi-cjs": "^8.0.0",
@ -102,15 +117,18 @@
"thenify": "^3.3.1", "thenify": "^3.3.1",
"thenify-all": "^1.6.0", "thenify-all": "^1.6.0",
"to-regex-range": "^5.0.1", "to-regex-range": "^5.0.1",
"ts-interface-checker": "^0.1.13", "ts-interface-checker": "^1.0.2",
"util-deprecate": "^1.0.2", "util-deprecate": "^1.0.2",
"which": "^5.0.0", "which": "^5.0.0",
"wrap-ansi": "^8.1.0", "wrap-ansi": "^9.0.0",
"wrap-ansi-cjs": "^8.0.0", "wrap-ansi-cjs": "^8.0.0",
"yaml": "^2.5.1" "yaml": "^2.7.0"
}, },
"keywords": [], "keywords": [],
"author": "ihatenodejs", "author": "ihatenodejs",
"license": "CC0-1.0", "license": "CC0-1.0",
"description": "The full code of my website" "description": "The full code of my website",
"trustedDependencies": [
"@parcel/watcher"
]
} }

View File

View File

@ -1,9 +1,29 @@
@tailwind base; @import 'tailwindcss';
@tailwind components;
@tailwind utilities;
.glow { @theme {
box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); --font-afacad-flux: 'Afacad Flux', sans-serif;
}
/*
The default border color has changed to `currentColor` in Tailwind CSS v4,
so we've added these compatibility styles to make sure everything still
looks the same as it did with Tailwind CSS v3.
If we ever want to remove these styles, we need to add an explicit border
color utility to any element that depends on these defaults.
*/
@layer base {
*,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-gray-200, currentColor);
}
}
.glow-txt {
text-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.5), 0 0 30px rgba(255, 255, 255, 0.3);
} }
body { body {

BIN
src/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -3,8 +3,13 @@ const closeMenuBtn = document.getElementById('close-menu-btn');
const mobileMenu = document.getElementById('mobile-menu'); const mobileMenu = document.getElementById('mobile-menu');
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
const menuButton = document.getElementById('menu-button');
const dropdownMenu = menuButton.nextElementSibling;
const notificationBanner = document.getElementById('notification-banner'); const notificationBanner = document.getElementById('notification-banner');
const dismissButton = document.getElementById('dismiss-btn'); const dismissButton = document.getElementById('dismiss-btn');
const openMenuBtn = document.getElementById('open-menu-btn');
const closeMenuBtn = document.getElementById('close-menu-btn');
const mobileMenu = document.getElementById('mobile-menu');
if (localStorage.getItem('notificationDismissed')) { if (localStorage.getItem('notificationDismissed')) {
notificationBanner.style.display = 'none'; notificationBanner.style.display = 'none';
@ -14,6 +19,28 @@ document.addEventListener('DOMContentLoaded', () => {
notificationBanner.style.display = 'none'; notificationBanner.style.display = 'none';
localStorage.setItem('notificationDismissed', 'true'); localStorage.setItem('notificationDismissed', 'true');
}); });
menuButton.addEventListener('click', function(event) {
event.preventDefault();
const isExpanded = menuButton.getAttribute('aria-expanded') === 'true';
menuButton.setAttribute('aria-expanded', !isExpanded);
dropdownMenu.classList.toggle('hidden');
});
document.addEventListener('click', function(event) {
if (!menuButton.contains(event.target) && !dropdownMenu.contains(event.target)) {
menuButton.setAttribute('aria-expanded', 'false');
dropdownMenu.classList.add('hidden');
}
});
openMenuBtn.addEventListener('click', () => {
mobileMenu.style.display = 'block';
});
closeMenuBtn.addEventListener('click', () => {
mobileMenu.style.display = 'none';
});
}); });
openMenuBtn.addEventListener('click', () => { openMenuBtn.addEventListener('click', () => {

View File

@ -13,12 +13,12 @@ async function getLatestSong() {
if (lsResponse.ok) { if (lsResponse.ok) {
const latestSongJSON = await lsResponse.json(); const latestSongJSON = await lsResponse.json();
if (!latestSongJSON.track["@attr"]) { if (!latestSongJSON.track["@attr"]) {
albumlabel.textContent = "Last Listen:"; albumlabel.textContent = "Last Listen";
} else if (latestSongJSON.track["@attr"].nowplaying) { } else if (latestSongJSON.track["@attr"].nowplaying) {
albumlabel.textContent = "Now Playing:"; albumlabel.textContent = "Now Playing";
} else { } else {
console.warn("[WARN] Invalid now playing status."); console.warn("[WARN] Invalid now playing status.");
albumlabel.textContent = "Last Listen:"; albumlabel.textContent = "Last Listen";
} }
albumart.src = latestSongJSON.track.image[1]["#text"] || "/img/placeholder.png"; albumart.src = latestSongJSON.track.image[1]["#text"] || "/img/placeholder.png";

View File

@ -14,7 +14,6 @@ async function testPing() {
const urls = [ const urls = [
'https://aidxn.fun/ping', 'https://aidxn.fun/ping',
'https://kantor.aidxn.fun/ping', 'https://kantor.aidxn.fun/ping',
'https://api.aidxn.fun/ping'
]; ];
const pingResults = await Promise.all( const pingResults = await Promise.all(
@ -22,18 +21,13 @@ async function testPing() {
const time = await ping(url); const time = await ping(url);
if (url === 'https://aidxn.fun/ping') { if (url === 'https://aidxn.fun/ping') {
const website = document.getElementById("website"); const website = document.getElementById("website");
website.textContent = `[ONLINE - ${time} ms]` website.textContent = `[ONLINE - ${time} ms]`;
} }
if (url === 'https://kantor.aidxn.fun/ping') { if (url === 'https://kantor.aidxn.fun/ping') {
const status1 = document.getElementById("status1"); const status1 = document.getElementById("status1");
status1.textContent = `[ONLINE - ${time} ms]` status1.textContent = `[ONLINE - ${time} ms]`;
status1.className = 'text-green-500 font-bold'; status1.className = 'text-green-500 font-bold';
} }
if (url === 'https://api.aidxn.fun/ping') {
const api = document.getElementById("api");
api.textContent = `[ONLINE - ${time} ms]`
api.className = 'text-green-500 font-bold';
}
return { url, time }; return { url, time };
}) })
); );
@ -53,10 +47,9 @@ async function testPing() {
oldText = status1.textContent; oldText = status1.textContent;
status1.textContent = oldText + ' [FASTEST]'; status1.textContent = oldText + ' [FASTEST]';
} }
if (fastestServer === 'https://api.aidxn.fun/ping') {
oldText = api.textContent; document.getElementById('loading').classList.add('hidden');
api.textContent = oldText + ' [FASTEST]'; document.getElementById('content').classList.remove('hidden');
}
} }
window.onload = () => { window.onload = () => {

52
src/pgp/publickey.asc Normal file
View File

@ -0,0 +1,52 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGdRPukBEADF0gF7TMndak3zLle4M43OskFp3Scszi5ZWHm8FXO2q2IVwkrl
GzeCaTvSibOPgnqaIIcOt9vBEisXyhqctVneiQH31FH69zu6WGAysXAksglWqXZk
MmlBOBPZirqKasS6y93FChXJWnFFuGiDigbk6Ixll24bmnKfXELrq3x+ZfzV94so
1dCnZ/qZ6AeEyu6/4ptCUplYxcUBQUnuohn1i1bZ8TIg1Bq9pYOws0IFa3DTLaTi
dCCXR00OBVYwIlJj4ZYf30Y+iUKH3Vwl95fEQBasJX3b33m0+ij3prG+yZruMEpK
BxYdLLqbzdkhUsPH2/DX2y3vU0lekwNm+ZIeBfSNcdLs4JlvyFUnXNPvIXb83mHd
/kBV62x9CWPB9ZMIWI8VLzpMWSl9ntdxiqSQjjAl2+yoaeKFbpxJWK8R3SYUfURG
225C1lA6FR9LjERjnvCFQEFWTT40ARiPETRhmPiZp+lw3A+BgM9onVEkvpWW6JXL
6cJX0l3LTUQ3iM7V2JQBJUAj1blImYvqoL0MBSQjVkERpv20NB2oMAeb7u1JESyk
uVZ0b0Z0roOO4X3WPbd3qoExzXO0f+DkD4Ez37wwRFUyRQHNIensG/rGrVEV3Ddw
aFrhrxgmXqyHrICqYB3tn56OGQkQZ8629ImT1jnXg3xXbTtTTkUnQ2WMSwARAQAB
tB5BaWRhbiBIb25vciA8YWlkYW5AcDBudHVzLmNvbT6JAlQEEwEKAD4WIQQM0h30
rcG+vC96vsgXc6AfDv5PwQUCZ1E+6QIbAwUJA8MEJwULCQgHAgYVCgkICwIEFgID
AQIeAQIXgAAKCRAXc6AfDv5PwYwTD/4uEnder+3c1NVc0RNWz1I8ZA2Lw17bfn0Z
+ogkNeZY+t5wUmmsNOd7HHwBib/wGwScJyMWc67V7j+XpEFT0HKLlGaEP7GvF/kk
rDImF6RW/3NBaaVemys7l+cz4GUUC1AWMYkUOXzOLzwNmny/1FkP3MOcL6Ddlxgu
DMniZpF4cHDfBjJvB3AWmwPemOpjtZ3z8ZvPH/lLUHInYhzJ/a9rSgG35/31be0s
N7Ui2iWYHWJ9NE6x9lDmmtwrWzMc43HaPck/TXL2UKRZkKWp5II2tWhBoE6H9Iyb
3PPxKnPyrhq203YkVHyGig7dytixCN+ZSWf2h6DUQQ8NcrLa8JQUy3e9aWES5YTp
hQyb4iACGTUjFg20NU03ct/LY1Ig39a8nF8zKcI0R+X5grw5F6WjZtKHYZ5oh6DD
3rzD16lvXXT1oA5ZEmgqntEV2TbPugFzc4YB6IyusGESJLKYlVdbB9IaYoBr1ubd
WiLykajjzzr9CeR+CC1l6zHywCJwVscoNeacVn+reHJcVDW2fPSAZhWPODRcP084
YKNhnzGDRVFNYXCZoo7UJjbL2/3otbx6CrVWHkYhPUlLevHJfdjO3L9gKlWahwbq
rXFbIcUlxbeYLl2ZDBqmTuvgS5UBlj5oKYWrne1TT24LA4VgSJjTzUIJZOA3N6Yc
0lbzF2eYL7kCDQRnUT7pARAArhJthJJq6vRd8qN0XIRZNN4YULybxB7RMXF44f3G
/vut9skQnmJTdX9/pKTXbWR7m2XqFoh+/vr7uylDi8sIuyX6RywifO4wvIJ8CaLi
3SA5EqsYEO6q4g1MhRArnL4AyMkHmEk+Qmbby8kDbnEXv14pK0kBgE3NthdVs/lr
1w5exybTCCuG+WoPfFp7s/lEXtfg2UjVe6wyl6UvhqEP1KT2JLZxatpjhQRLGkLs
8o5WC1TCA3mOiv4IHHFM9df2ZZgzX6P48Ykm8mwCqwKU9bXcguESVJY9kImZaD9C
utmO3vHI98I1c/e4XwuN8DojcmtjwrFT+kOqXuV9oLn6vy04c7fxEg+htj0D8LGR
ryPGpVDuUJk+wcGZzY+iSliomjJwXtnxWIFO1dj3dkxgvbuaNUPzUJ1e/exSmvLi
ZHr2H1DkdkxvEGbX3FW9gBDCpO2Q5W8jsXBT/D93xzJausfiiPFEsOTZIs00wb1i
uQeKBpI8xRf8XVeC0NxvoI9B+gFXVmhDFB1cjCUYlV5Q9Y5BJw9YEmvBROpV+ev3
y9mSdkFENeCcAa3zv5c25w0/tCz80jhGmWzaiqAoh61XVK6cnlWsiZArBBkXxKsx
TU16oR4PBBYfC+CwynxWIBjI1Z2GyL/qFIr4LvmBMEiTt07duzGsE7Uhc0ZwH+R4
YTsAEQEAAYkCPAQYAQoAJhYhBAzSHfStwb68L3q+yBdzoB8O/k/BBQJnUT7pAhsM
BQkDwwQnAAoJEBdzoB8O/k/B8DwQALgtP1PtN7dBe+RxQ2Eh5XgBhAEgZOXOlFiS
GjYfwqWmrA/aenJaVY8K6m5OGLTvqHVLpZ+z8SsaM89/gIcBFZfu0wWdvD+CqgC/
PB1HtWCWLTDqK5L9m11twnYX/FVEjXv9sTmPNLagTZUVkrpkJdwq40vFaTN10Co2
cVq7GIiamQEDei/KzSdbZHYkpikQQtEkLa/LFkMumGdtxyqBoBpChQ7nzQaCHTn4
Xg6uWXgZpf89EGUUCaaDk6YeJOO6C+648gpLgDRgXRtyg0FNzeRlRTMt577qV+rM
8uds4mKjeW4+isC/FrfJmL1BjZXK12OMM1ekfKzuTpSr//VAFYWzU0k+0CB0kwY6
M5MEDnW7HmRwA7xGwkaFJh19nawgoR+ucsh6kegvKedozuv/nCHULpF4g8HZLPwY
KRLWo0gYCFKnPoZVLFsMANxPcIfMhIey3TQgbRzrrkLNlRro7kqw/27KenY3FbgL
mnz5Z1IwuJLcMiNilMe+nsYNVvdj7bfg0EiqgccKzpvo2KBii/uneyL50Bpg9A+D
MmMT5VHMNOlxSaXHrnT5geEDZd2z4hSfoKziy6gtqy/vZYYAK2zQWRNRD/tE45DP
Uv5XDJb/E9cO97PhEs4khismSuqWjeaL4OoeVtZ12ra8e4RQ0dnbD+J+KDaMrvOZ
l7A3Nlh8
=zowx
-----END PGP PUBLIC KEY BLOCK-----

View File

@ -1,13 +0,0 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./views/**/*.{ejs,js}"],
theme: {
extend: {
fontFamily: {
'afacad-flux': ['"Afacad Flux"', 'sans-serif'],
},
},
},
plugins: [],
}

View File

@ -3,28 +3,38 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🎃 aidxn.fun | about</title> <title>❄️ aidxn.fun | about</title>
<link href="/css/main.css" rel="stylesheet"> <link href="/css/main.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&display=swap" rel="stylesheet">
</head> </head>
<body class="bg-gradient-to-br from-slate-900 to-black text-white font-afacad-flux"> <body class="bg-linear-to-br from-slate-900 to-black text-white font-afacad-flux">
<%- include('shards/header.ejs', { req: req }) %> <%- include('shards/header.ejs', { req: req }) %>
<header class="flex flex-col items-center justify-center h-[40vh] p-6"> <header class="flex flex-col items-center justify-center h-[40vh] p-6">
<h1 class="text-5xl font-bold mb-2 text-center">About Me</h1> <h1 class="text-5xl font-bold mb-2 text-center">About Me</h1>
<p class="text-lg text-gray-300 max-w-xl text-center mt-3">Looking to learn more?</p> <p class="text-lg text-gray-300 max-w-xl text-center mt-3">Looking to learn more?</p>
</header> </header>
<div class="bg-gradient-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8 mx-4"> <div class="bg-linear-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8 mx-4">
<h3 class="text-2xl font-bold mb-4 text-white">What you're looking for</h3> <h3 class="text-2xl font-bold mb-4 text-white">What you're looking for</h3>
<p class="text-slate-300 mb-4">Heyo! I'm Aidan, and I'm a human being, like you. I'm a Wikipedia editor, hobbyist programmer (Python, Node.js and PHP) and student. I am a troubled teen industry survivor and I also <i>love</i> music! I love walking (pretty much anywhere), particularly Boston and some Mass suburbs. I'm a cryptocurrency user and love it way more than credit cards/cash. However, I am strongly opposed to the adoption of Web3 technology.</p> <p class="text-slate-300 mb-4">Heyo! I'm Aidan, and I'm a human being, like you. I'm a Wikipedia editor, hobbyist programmer (Python, Node.js and PHP) and student. I am a troubled teen industry survivor and I also <i>love</i> music! I love walking (pretty much anywhere), particularly Boston and some Mass suburbs. I'm a cryptocurrency user and love it way more than credit cards/cash. However, I am strongly opposed to the adoption of Web3 technology.</p>
<p class="text-slate-300 mb-4">I strive, as a person, to understand my peers in life. I consider myself to be extremely understanding and accepting, albeit nobody is perfect, and I still hold my biases.</p> <p class="text-slate-300 mb-4">I archive adverts and culture items (especially digital media) over on my secondary website for my online personality, <a href="https://p0ntus.com" class="underline">p0ntus.com</a>. Maybe give it a peek! Most items are uploaded in full quality, and files are served from a server in Michigan.</p>
<p class="text-slate-300 mb-4">I strive, as a person, to understand my peers in life. I consider myself to be extremely understanding and accepting, albeit nobody is perfect and I still have biases.</p>
<p class="text-slate-300 mb-4">Thus, I've tried to do about almost everything and learn about almost everything to get a better understanding of the world around me. I love to debate, talk and learn about other people's views, while keeping it judgement-free. I believe this has helped me find more diverse relationships.</p> <p class="text-slate-300 mb-4">Thus, I've tried to do about almost everything and learn about almost everything to get a better understanding of the world around me. I love to debate, talk and learn about other people's views, while keeping it judgement-free. I believe this has helped me find more diverse relationships.</p>
<p class="text-slate-300 mb-4">In politics, I'm a strong Democrat and a supporter of the <a class="underline" href="https://uspirates.org">Pirate Party</a>. I hope, by the time I die, that everyone may have fair human rights, open source is standard and the troubled teen industry is torn down or rebuilt into a truly healing environment. Also, let's try our best not to let AI take over too fast, eh?</p> <p class="text-slate-300 mb-4">In politics, I'm a strong Democrat and a supporter of the <a class="underline" href="https://uspirates.org">Pirate Party</a>. I hope, by the time I die, that everyone may have fair human rights, open source is standard and the troubled teen industry is torn down or rebuilt into a truly healing environment. Also, let's try our best not to let AI take over too fast, eh?</p>
<p class="text-slate-300 mb-4">If you want, you can check out my LastFM profile <a class="underline" href="https://last.fm/user/aidxn_">here</a>. If you don't already know what LastFM is, you can see more about my music taste there. It's where the sidebar fetches now playing stats from, too!</p> <p class="text-slate-300 mb-4">If you want, you can check out my LastFM profile <a class="underline" href="https://last.fm/user/aidxn_">here</a>. If you don't already know what LastFM is, you can see more about my music taste there. It's where the sidebar fetches now playing stats from, too!</p>
<h3 class="text-2xl font-bold mt-6 mb-4 text-white">Technology</h3> <h3 class="text-2xl font-bold mt-6 mb-4 text-white">Technology Experience</h3>
<p class="text-slate-300 mb-4">I have a lot of experience with varying types of technologies. From servers to old XP machines, I've tried it all. I currently administer two Linux servers, both running Ubuntu.</p> <p class="text-slate-300 mb-4">I have a lot of experience with varying types of technologies. From servers to old XP machines, I've tried it all. I currently administer three Linux servers, all running Ubuntu.</p>
<p class="text-slate-300 mb-4">I take great pride in my laptops, as I believe they have been pivotal to helping me learn Linux, programming, and helping to entertaining myself. I look at my dedication to these laptops as people who are passionate about their car(s). We both take great interest in customizing and maintaining our devices/cars.</p>
<p class="text-slate-300 mb-4">A lot of my projects include programming, which I keep on GitHub. In fact, this is one of my many free-and-open-source projects! Most of the code and content I create is released into the public domain.</p>
<p class="text-slate-300 mb-4">While this isn't the most common practice, I despise copyright and believe public domain content (whether it be code or images) has a heightened meaning.</p>
<h3 class="text-2xl font-bold mt-6 mb-4 text-white">My Setup</h3>
<p class="text-slate-300 mb-4">I have a pretty basic setup, hardware-wise (I'm not a millionaire, after all), although I like to say I put my things to good use. I own a lot of Apple devices, actually, despite despising them with all my heart. However, they do not run Apple software.</p>
<p class="text-slate-300 mb-4">My main laptop is a Thinkpad T470s. I have made upgrades to the memory (16GB), storage (2TB NVMe), and installed a new secondary battery. It is my pride and joy, and runs Arch Linux. I daily drive Xfce on it (I like the design) alongside GNOME and KDE Plasma. Depending on what I am doing with this laptop (programming, school, etc) defines which DE I use. I am a DWM warrior, so it may be installed on this laptop. I have had this laptop since December 2024.</p>
<p class="text-slate-300 mb-4">I also own three MacBook Air laptops. I purchased two (a 2013 and a 2015) for $15 each, and they were in rough shape, although functional. One is currently running Ubuntu 24.10 for Home Assistant, and the other runs Gentoo Linux. The system is not dependent on a server for building packages, and does it all on its own (4GB of RAM and a crappy CPU FTW!). The third MacBook Air is a 2020 M1 MacBook Air, which is used for school and runs macOS due to school policy.</p>
<p class="text-slate-300 mb-4">In terms of mobile technology, I own a Pixel 7 Pro and a Samsung A32 5G. The Pixel phone is rooted and runs crDroid Android 11.0 Beta, which is Android 15. The Samsung A32 5G is stuck on Android 14, and cannot be rooted due to restrictions on the bootloader unlocking, put in place by T-Mobile.
<h3 class="text-2xl font-bold mt-6 mb-4 text-white">Linux Distro Experience</h3> <h3 class="text-2xl font-bold mt-6 mb-4 text-white">Linux Distro Experience</h3>
<ul class="space-y-3"> <ul class="space-y-3">
@ -59,7 +69,8 @@
<h3 class="text-2xl font-bold mt-6 mb-4 text-white">Cloud</h3> <h3 class="text-2xl font-bold mt-6 mb-4 text-white">Cloud</h3>
<p class="text-slate-300 mb-4">I also work a <i class="mr-1">LOT</i> in the cloud, but not the type you might be thinking about. I almost have an obsession with enterprise cloud computing. Hell, you're actually connected to one... right now! Here are some of my favorite platforms, ranked.</p> <p class="text-slate-300 mb-4">I also work a <i class="mr-1">LOT</i> in the cloud, but not the type you might be thinking about. I almost have an obsession with enterprise cloud computing. Hell, you're actually connected to one... right now! Here are some of my favorite platforms, ranked.</p>
<p class="text-slate-300 mb-4">This section is a work in progress, for those who don't know cloud computing. I'm working to make the wording clearer, so the non-technical folk can still understand everything here!</p> <p class="text-slate-300 mb-4">I currently manage four servers, all operating in the cloud. They are from various providers, two coming from Oracle Cloud, one coming from Liquid Web, and another from Azure. They all have verying specifications, although my highest powered server has an 8vCPU Xeon paired with 24GB of RAM and ~400GB of SSD storage.</p>
<p class="text-slate-300 mb-4">As much as I would like to rant about cloud all day, I will opt keep it short. Here are my favorite cloud platforms, ranked:</p>
<ol class="list-decimal list-inside space-y-3"> <ol class="list-decimal list-inside space-y-3">
<li class="text-slate-300">Oracle Cloud</li> <li class="text-slate-300">Oracle Cloud</li>
@ -69,8 +80,5 @@
<p class="text-slate-300 mt-4">You can learn more about my opinions on cloud platforms <a class="underline" href="/cloud">on this page</a>.</p> <p class="text-slate-300 mt-4">You can learn more about my opinions on cloud platforms <a class="underline" href="/cloud">on this page</a>.</p>
</div> </div>
<div class="mt-3">
<%- include('shards/views.ejs') %>
</div>
<script src="js/main.js"></script> <script src="js/main.js"></script>
<%- include('shards/footer.ejs') %> <%- include('shards/footer.ejs') %>

View File

@ -3,19 +3,19 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🎃 aidxn.fun | cloud</title> <title>❄️ aidxn.fun | cloud</title>
<link href="/css/main.css" rel="stylesheet"> <link href="/css/main.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&display=swap" rel="stylesheet">
</head> </head>
<body class="bg-gradient-to-br from-slate-900 to-black text-white font-afacad-flux"> <body class="bg-linear-to-br from-slate-900 to-black text-white font-afacad-flux">
<%- include('shards/header.ejs', { req: req }) %> <%- include('shards/header.ejs', { req: req }) %>
<header class="flex flex-col items-center justify-center h-[40vh] p-6"> <header class="flex flex-col items-center justify-center h-[40vh] p-6">
<h1 class="text-5xl font-bold mb-2 text-center">Cloud</h1> <h1 class="text-5xl font-bold mb-2 text-center">Cloud</h1>
<p class="text-lg text-gray-300 max-w-xl text-center mt-3">Looking to learn about my experience with the cloud?</p> <p class="text-lg text-gray-300 max-w-xl text-center mt-3">Looking to learn about my experience with the cloud?</p>
</header> </header>
<div class="bg-gradient-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8 mx-4"> <div class="bg-linear-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8 mx-4">
<h3 class="text-2xl font-bold mb-4 text-white">Platforms</h3> <h3 class="text-2xl font-bold mb-4 text-white">Platforms</h3>
<p class="text-slate-300 mb-4">I also work a <i>LOT</i> in the cloud, but not the type you might be thinking about. I almost have an obsession to enterprise cloud computing. Hell, you're actually connected to one... right now! Here are some of my favorite platforms, ranked.</p> <p class="text-slate-300 mb-4">I also work a <i>LOT</i> in the cloud, but not the type you might be thinking about. I almost have an obsession to enterprise cloud computing. Hell, you're actually connected to one... right now! Here are some of my favorite platforms, ranked.</p>
<p class="text-slate-300 mb-4">This section is a work in progress, for those who don't know cloud computing. I'm working to make the wording clearer, so the non-technical folk can still understand everything here!</p> <p class="text-slate-300 mb-4">This section is a work in progress, for those who don't know cloud computing. I'm working to make the wording clearer, so the non-technical folk can still understand everything here!</p>
@ -38,8 +38,5 @@
</li> </li>
</ol> </ol>
</div> </div>
<div class="mt-3">
<%- include('shards/views.ejs') %>
</div>
<script src="js/main.js"></script> <script src="js/main.js"></script>
<%- include('shards/footer.ejs') %> <%- include('shards/footer.ejs') %>

View File

@ -3,14 +3,14 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🎃 aidxn.fun | contact</title> <title>❄️ aidxn.fun | contact</title>
<link href="/css/main.css" rel="stylesheet"> <link href="/css/main.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head> </head>
<body class="bg-gradient-to-br from-slate-900 to-black text-white font-afacad-flux"> <body class="bg-linear-to-br from-slate-900 to-black text-white font-afacad-flux">
<%- include('shards/header.ejs', { req: req }) %> <%- include('shards/header.ejs', { req: req }) %>
<header class="flex flex-col items-center justify-center h-[40vh] p-6"> <header class="flex flex-col items-center justify-center h-[40vh] p-6">
@ -18,7 +18,7 @@
<p class="text-lg text-gray-300 max-w-xl text-center mt-3">Looking to contact me? You found it!</p> <p class="text-lg text-gray-300 max-w-xl text-center mt-3">Looking to contact me? You found it!</p>
</header> </header>
<div class="bg-gradient-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8 mx-4"> <div class="bg-linear-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8 mx-4">
<h3 class="text-2xl font-bold mb-4 text-white">Contact Details</h3> <h3 class="text-2xl font-bold mb-4 text-white">Contact Details</h3>
<p class="text-slate-300 mb-4">This one can be a hard one for most people, as I'm not a fan of modern social media, albeit I give in here and there.</p> <p class="text-slate-300 mb-4">This one can be a hard one for most people, as I'm not a fan of modern social media, albeit I give in here and there.</p>
<p class="text-slate-300 mb-4">If you're looking for my email, simply replace the brackets with the character it's referencing, like so: test[at]test[dot]com becomes test@test.com. This is in order to prevent bots from contacting me!</p> <p class="text-slate-300 mb-4">If you're looking for my email, simply replace the brackets with the character it's referencing, like so: test[at]test[dot]com becomes test@test.com. This is in order to prevent bots from contacting me!</p>
@ -28,12 +28,20 @@
<b>Email:</b> <span class="text-slate-300 ml-1">i[at]aidxn[dot]fun (PGP encryption preferred)</span> <b>Email:</b> <span class="text-slate-300 ml-1">i[at]aidxn[dot]fun (PGP encryption preferred)</span>
</li> </li>
<li class="flex items-center"> <li class="flex items-center">
<i class="fas fa-comments text-green-400 mr-2"></i> <i class="fas fa-envelope text-pink-500 mr-2"></i>
<b>Email:</b> <span class="text-slate-300 ml-1">aidan[at]p0ntus[dot]com (PGP encryption preferred)</span>
</li>
<li class="flex items-center">
<i class="fas fa-comments text-blue-400 mr-2"></i>
<b>Signal:</b> <span class="text-slate-300 ml-1">[at]iusearchbtw.17</span> <b>Signal:</b> <span class="text-slate-300 ml-1">[at]iusearchbtw.17</span>
</li> </li>
<li class="flex items-center">
<i class="fas fa-comments text-green-400 mr-2"></i>
<b>Matrix:</b> <span class="text-slate-300 ml-1">@ihatenodejs:nope.chat</span>
</li>
<li class="flex items-center"> <li class="flex items-center">
<i class="fab fa-telegram-plane text-blue-400 mr-2"></i> <i class="fab fa-telegram-plane text-blue-400 mr-2"></i>
<b>Telegram:</b> <span class="text-slate-300 ml-1">[at]iusearchbtw42</span> <b>Telegram:</b> <span class="text-slate-300 ml-1">[at]p0ntu5</span>
</li> </li>
<li class="flex items-center"> <li class="flex items-center">
<i class="fas fa-phone-alt text-yellow-400 mr-2"></i> <i class="fas fa-phone-alt text-yellow-400 mr-2"></i>
@ -41,8 +49,5 @@
</li> </li>
</ul> </ul>
</div> </div>
<div class="mt-3">
<%- include('shards/views.ejs') %>
</div>
<script src="js/main.js"></script> <script src="js/main.js"></script>
<%- include('shards/footer.ejs') %> <%- include('shards/footer.ejs') %>

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🎃 aidxn.fun | home</title> <title>❄️ aidxn.fun | home</title>
<link href="/css/main.css" rel="stylesheet"> <link href="/css/main.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
@ -14,40 +14,41 @@
<div class="relative isolate px-6 pt-13 lg:px-8"> <div class="relative isolate px-6 pt-13 lg:px-8">
<div class="mx-auto py-32 sm:py-48 lg:py-56"> <div class="mx-auto py-32 sm:py-48 lg:py-56">
<div class="text-center"> <div class="text-center">
<h1 class="text-balance text-4xl font-bold tracking-tight text-slate-200 sm:text-6xl mb-2">Welcome to aidxnFUN</h1> <h1 class="text-balance text-4xl font-bold tracking-tight text-slate-200 sm:text-6xl mb-2 glow-txt">Aidan | lxu | pontus</h1>
<p class="mt-6 text-lg leading-8 text-slate-200">Welcome to my slice of the web... It's good to see you</p> <p class="mt-6 text-lg leading-8 text-slate-200">Personal systems administrator, hardcore Linux user, and casual developer.</p>
</div> </div>
</div> </div>
</div> </div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 p-4"> <div class="grid grid-cols-1 md:grid-cols-2 gap-6 p-4">
<div class="bg-gradient-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8"> <div class="bg-linear-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8">
<h1 class="text-4xl font-bold mb-4 text-white">Welcome!</h1> <h1 class="text-4xl font-bold mb-4 text-white">Welcome!</h1>
<p class="text-slate-300">My name is Aidan, but if you are on <a class="underline" href="https://tilde.club">tilde.club</a>, you will know me as <a class="underline" href="https://tilde.club/~lxu">~lxu</a>! I'm a technology enthusiast, and a Wikipedia editor, among other things.</p> <p class="text-slate-300">Outside of the internet, I am known as Aidan. If you are a <a class="underline" href="https://tilde.club">tilde.club</a> user, you will know me as <a class="underline" href="https://tilde.club/~lxu">~lxu</a>! I am a technology enthusiast, Wikipedia editor, personal systems administator, and Linux user.</p>
<p class="text-slate-300 mt-3">Here, you can learn more about me, enjoy a sleek design, and even have some fun along the way!</p> <p class="text-slate-300 mt-3">Here, you can learn more about me, put my programming skills to the test, and even have some fun along the way!</p>
<p class="text-slate-300 mt-3">This website is currently hosted in Frankfurt, Germany. Page load speeds may be impacted, however my website's data is hosted under stricter data protection laws. I'm not a millionaire, and thus helps me save money on hosting, and serve a wider range of countries with better speeds.</p> <p class="text-slate-300 mt-3">You can learn more about my online personality and archival work over on <a href="https://p0ntus.com" class="underline">p0ntus.com</a>. It has all the information you need, especially if you have interest in archiving things yourself! I also upload on <a href="https://archive.org/details/@p0ntu5">archive.org</a> occasionally.</p>
<p class="text-slate-300 mt-3">This website is currently hosted in Frankfurt, Germany. Page load speeds may be impacted, however my website's data is hosted under stricter data protection laws. I'm not a millionaire, and hosting out of Germany helps me save money on hosting, and serve a wider range of countries with better speeds.</p>
<p class="text-slate-300 mt-3">The content and code of this website is hereby released under the public domain. You are free to use this servers content for whatever you please, and you can additionally view this website's source code on GitHub <a class="underline" href="https://github.com/ihatenodejs/aidxnFUN/">here</a>.</p> <p class="text-slate-300 mt-3">The content and code of this website is hereby released under the public domain. You are free to use this servers content for whatever you please, and you can additionally view this website's source code on GitHub <a class="underline" href="https://github.com/ihatenodejs/aidxnFUN/">here</a>.</p>
</div> </div>
<div class="bg-gradient-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8"> <div class="bg-linear-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8">
<h1 class="text-4xl font-bold mb-4 text-white">Where to start</h1> <h1 class="text-4xl font-bold mb-4 text-white">Where to start</h1>
<p class="text-slate-300">This website has a lot of content, albeit spread apart. If you're interested in learning about me as a person, I'd obviously suggest <a class="underline" href="/about">my about page</a>.</p> <p class="text-slate-300">This website has a lot of content, albeit spread apart. If you're interested in learning about me as a person, I'd obviously suggest <a class="underline" href="/about">my about page</a>. For opinionated content, my <a class="underline" href="https://blog.aidxn.fun">blog</a> (currently down) is a great place to check out. I also write casually on my <a class="underline" href="https://tilde.club/~lxu">tilde site</a> hosted on <a class="underline" href="https://tilde.club/">tilde.club</a>.</p>
<p class="text-slate-300 mt-3">If you merely need to contact me, check out the <a class="underline" href="/contact">contact page</a> on the sidebar (or you could click that link).</p> <p class="text-slate-300 mt-3">If you merely need to contact me, check out the <a class="underline" href="/contact">contact page</a> on the sidebar (or you could click that link).</p>
<p class="text-slate-300 mt-3">This website is always a work in progress, and not every page is going to be finished, however I aim for every page to be functional and relevant. Content is always being added, as I progress through my life. Why not start early?</p> <p class="text-slate-300 mt-3">This website is always a work in progress, and not every page is going to be finished, however I aim for every page to be functional and relevant. Content is always being added, as I progress through my life. Why not start early?</p>
</div> </div>
<div class="bg-gradient-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8"> <div class="bg-linear-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8">
<h1 class="text-4xl font-bold mb-4 text-white">About the design</h1>
<p class="text-slate-300">With this revision, I was aiming to provide a modern design, with an easy-to-navigate interface.</p>
<p class="text-slate-300 mt-3">For this design, I chose Tailwind CSS. I appreciate their flexibility, though their documentation is terrible on purpose. They encourage purchasing their components subscription (which costs a lot of money!) all over the place. It has been a poor experience, but I have been able to figure it out with the help of their free elements, documentation, prior knowledge, and the docs.</p>
<p class="text-slate-300 mt-3">This code is also under Public Domain, and can be found <a class="underline" href="https://github.com/ihatenodejs/aidxnFUN">here</a>. Feel free to use the code and content how you wish. If you would like to respect my best wishes, please do not use this content or code for AI. Thanks, if you respect me! :]</p>
</div>
<div class="bg-gradient-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8">
<h1 class="text-4xl font-bold mb-4 text-white">Music</h1> <h1 class="text-4xl font-bold mb-4 text-white">Music</h1>
<%- include('shards/music.ejs') %> <%- include('shards/music.ejs') %>
<h1 class="text-3xl text-white py-3.5">My Music Taste</h1> <h1 class="text-3xl text-white py-3.5">My Music Taste</h1>
<p class="text-slate-300">I am mainly into hip hop and rap, but I appreciate a slower song, as opposed to the fast nature of some rap songs. I feel like I seek songs that match my current energy level, and I can tend to have a low energy level during the day.</p> <p class="text-slate-300">I am mainly into hip hop and rap, but I appreciate a slower song, as opposed to the fast nature of some rap songs. I feel like I seek songs that match my current energy level, and I can tend to have a low energy level during the day.</p>
<p class="text-slate-300 mt-3">Some of my favorite artists include tobi lou, Skizzy Mars, and Kali Uchis. Some of my classics are Mike Stud (before his name change to "mike."), Skizzy Mars, tobi lou, The Neighbourhood, and Ryan Caraveo.</p> <p class="text-slate-300 mt-3">Some of my favorite artists include tobi lou, Flyana Boss, and Kali Uchis. Some of my "classics" are Mike Stud (before his name change to "mike."), Skizzy Mars, tobi lou, The Neighbourhood, and Ryan Caraveo.</p>
<p class="text-slate-300 mt-3">If you are interested, you can check out my LastFM profile <a class="underline" href="https://www.last.fm/user/aidxn_">here</a>.
</div>
<div class="bg-linear-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8">
<h1 class="text-4xl font-bold mb-4 text-white">About the design</h1>
<p class="text-slate-300">With this revision, I was aiming to provide a modern design, with an easy-to-navigate interface. I always appreciate dark-themed websites, and decided to add some subtle gradients with glass effects to spice the design up. While I am a developer more than I am a designer, I quite favor this design and it has become the pinnacle of my design work.</p>
<p class="text-slate-300 mt-3">For this design, I chose Tailwind CSS. I appreciate their flexibility, although it appears their documentation poorly written on purpose. They encourage purchasing their components subscription (which costs a lot of money!) all over the documentation, especially in confusing ways. While it has been a poor experience there, I have been able to figure it out with the help of their free elements, documentation, prior knowledge, and the docs.</p>
<p class="text-slate-300 mt-3">This code is also under Public Domain, and can be found <a class="underline" href="https://github.com/ihatenodejs/aidxnFUN">here</a>. Feel free to use the code and content how you wish. If you would like to respect my best wishes, please do not use this content or code for AI. Thanks, if you respect me! :]</p>
</div> </div>
</div> </div>
<%- include('shards/views.ejs') %>
<script src="js/main.js"></script> <script src="js/main.js"></script>
<script src="js/music.js"></script> <script src="js/music.js"></script>
<%- include('shards/footer.ejs') %> <%- include('shards/footer.ejs') %>

48
views/manifesto.ejs Normal file
View File

@ -0,0 +1,48 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>❄️ aidxn.fun | digital manifesto</title>
<link href="/css/main.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&display=swap" rel="stylesheet">
</head>
<body class="bg-linear-to-br from-slate-900 to-black text-white font-afacad-flux">
<%- include('shards/header.ejs', { req: req }) %>
<header class="flex flex-col items-center justify-center h-[40vh] p-6">
<h1 class="text-5xl font-bold mb-2 text-center">Digital Manifesto</h1>
<p class="text-lg text-gray-300 max-w-xl text-center mt-3">A commitment from me for a better Internet space.</p>
</header>
<div class="bg-linear-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8 mx-4">
<h3 class="text-2xl font-bold mb-4 text-white">1. Empathy and Understanding</h3>
<p class="text-slate-300 mb-4">We live in a distant world. People I meet are from all over, which can be hard to understand for others. I aim to utilize my ability to connect by understanding and getting <i>interested</i> in people's lives. I pledge to:</p>
<ul class="list-disc pl-5 space-y-2">
<li class="text-white">Listen deeply and genuinely</li>
<li class="text-white">Suspend judgment and seek to understand</li>
<li class="text-white">Recognize the humanity in every digital interaction</li>
</ul>
<h3 class="text-2xl font-bold mb-4 mt-4 text-white">2. Unconditional Sharing</h3>
<p class="text-slate-300 mb-4">Information should be free and accessible to all. I will:</p>
<ul class="list-disc pl-5 space-y-2">
<li class="text-white">Make my contributions free and accessible to all (e.g. public domain Wikipedia contributions)</li>
<li class="text-white">Creating and sharing content for others benefit</li>
<li class="text-white">Supporting open-source principles</li>
<li class="text-white">Creating extensive documentation on all projects</li>
</ul>
<h3 class="text-2xl font-bold mb-4 mt-4 text-white">2. Genuine Human Connection</h3>
<p class="text-slate-300 mb-4">I aim to create a genuine human connection with all people I meet, regardless of who or where they are from.</p>
<h3 class="text-2xl font-bold mb-4 mt-4 text-white">3. Commitment to Privacy with Personal Services</h3>
<p class="text-slate-300 mb-4">In terms of my personal (some public) services, I commit to never selling, viewing or share personal information with third parties or myself. I will:</p>
<ul class="list-disc pl-5 space-y-2">
<li class="text-white">Respect user data as a fundamental human right</li>
<li class="text-white">Not implement tracking and/or monetization in my services</li>
<li class="text-white">Focus my services to focus on being free and open</li>
<li class="text-white">Suggest/support technologies that help privacy</li>
</ul>
<h3 class="text-2xl font-bold mb-4 mt-4 text-white">I commit</h3>
<p class="text-slate-300 mb-4">I am not perfect, that's for sure, but I am committed. I promise to continuously learn, grow, and adapt to my environment, goals, purpose, and the people around me.</p>
</div>
<script src="js/main.js"></script>
<%- include('shards/footer.ejs') %>

View File

@ -3,19 +3,19 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🎃 aidxn.fun | projects</title> <title>❄️ aidxn.fun | projects</title>
<link href="/css/main.css" rel="stylesheet"> <link href="/css/main.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&display=swap" rel="stylesheet">
</head> </head>
<body class="bg-gradient-to-br from-slate-900 to-black text-white font-afacad-flux"> <body class="bg-linear-to-br from-slate-900 to-black text-white font-afacad-flux">
<%- include('shards/header.ejs', { req: req }) %> <%- include('shards/header.ejs', { req: req }) %>
<header class="flex flex-col items-center justify-center h-[40vh] p-6"> <header class="flex flex-col items-center justify-center h-[40vh] p-6">
<h1 class="text-5xl font-bold mb-2 text-center">Projects</h1> <h1 class="text-5xl font-bold mb-2 text-center">Projects</h1>
<p class="text-lg text-gray-300 max-w-xl text-center mt-3">Looking to learn more about my projects?</p> <p class="text-lg text-gray-300 max-w-xl text-center mt-3">Looking to learn more about my projects?</p>
</header> </header>
<div class="bg-gradient-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8 mx-4"> <div class="bg-linear-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8 mx-4">
<h3 class="text-2xl font-bold mb-4 text-white">Currently working on</h3> <h3 class="text-2xl font-bold mb-4 text-white">Currently working on</h3>
<p class="text-slate-300 mb-4">You can check out my GitHub account right <a href="https://github.com/ihatenodejs">here</a>.</p> <p class="text-slate-300 mb-4">You can check out my GitHub account right <a href="https://github.com/ihatenodejs">here</a>.</p>
<p class="text-slate-300 mb-4">I am currently working on the following projects (in order of activity):</p> <p class="text-slate-300 mb-4">I am currently working on the following projects (in order of activity):</p>
@ -26,22 +26,50 @@
<span class="text-gray-300">The website you are currently viewing</span> <span class="text-gray-300">The website you are currently viewing</span>
</li> </li>
<li class="text-white"> <li class="text-white">
<strong>Untitled Project</strong><br> <strong>p0ntus mail</strong><br>
<span class="text-gray-300">Repo currently private</span><br> <a href="https://github.com/ihatenodejs/pontus-mail" class="text-gray-300 underline">Repo public</a> | <a href="https://pontusmail.org" class="text-gray-300 underline">Website</a><br>
<span class="text-gray-300">Content/file organization system</span> <span class="text-gray-300">Mailcow/Docker</span><br>
<span class="text-gray-300">Created for my upcoming public archive website</span> <span class="text-gray-300">My self-hosted public email service</span>
</li>
<li class="text-white">
<strong>modules</strong><br>
<a href="https://github.com/ihatenodejs/modules" class="text-gray-300 underline">Repo public</a> | <a href="https://modules.lol" class="text-gray-300 underline">Website</a><br>
<span class="text-gray-300">Docker/Node.js/Express/EJS</span><br>
<span class="text-gray-300">Magisk module and FOSS/root app "store."</span>
</li>
<li class="text-white">
<strong>pontus-bot</strong><br>
<a href="https://github.com/ihatenodejs/pontus-bot" class="text-gray-300 underline">Repo public</a> | <a href="https://github.com/ihatenodejs/pontus-bot/pkgs/container/pontus-bot/315781719?tag=main" class="text-gray-300 underline">Docker Image</a><br>
<span class="text-gray-300">Dockerized</span><br>
<span class="text-gray-300">Telegram file indexer bot</span>
</li>
<li class="text-white">
<strong>Android Integrity Alliance</strong><br>
<a href="https://github.com/AndroidIntegrity/website" class="text-gray-300 underline">Repo public</a> | <a href="https://androidintegrity.org" class="text-gray-300 underline">Website</a><br>
<span class="text-gray-300">Collaboration with several people</span><br>
<span class="text-gray-300">Website for petition against Google Play Integrity</span>
</li>
<li class="text-white">
<strong>pontus</strong><br>
<a href="https://github.com/ihatenodejs/pontus" class="text-gray-300 underline">Repo public</a> | <a href="https://p0ntus.com" class="text-gray-300 underline">Website</a><br>
<span class="text-gray-300">Website for my online self</span><br>
<span class="text-gray-300">Intended for showcasing online projects and storing archives</span>
<span class="text-gray-300">Replacement for scrapped project: Adderall.</span>
</li>
<li class="text-white">
<strong>aidxnFUNretro</strong><br>
<a href="https://github.com/ihatenodejs/aidxnFUNretro" class="text-gray-300 underline">Repo public</a> | <a href="https://old.aidxn.fun" class="text-gray-300 underline">Website</a><br>
<span class="text-gray-300">The retro style of my website</span>
</li> </li>
<li class="text-white"> <li class="text-white">
<strong>Overseerr</strong><br> <strong>Overseerr</strong><br>
<span class="text-gray-300">Repo currently private</span><br> <span class="text-gray-300">Repo currently private / In development (backburnered)</span><br>
<span class="text-gray-300">Manage your server from an easy-to-use and responsive interface</span> <span class="text-gray-300">Manage your server from an easy-to-use and responsive interface</span>
</li> </li>
</ul> </ul>
<h3 class="text-2xl font-bold mb-4 mt-4 text-white">Finished projects</h3> <h3 class="text-2xl font-bold mb-4 mt-4 text-white">Finished projects</h3>
<p class="text-slate-300 mb-4">I currently have only one public project which is in finished state. It's my old website, which is now being hosted at <a class="underline" href="https://old.aidxn.fun/">old.aidxn.fun</a>. It features a 2000s design and flashy graphics!</p> <p class="text-slate-300 mb-4">I currently have only one public project which is in finished state. It's my old website, which is now being hosted at <a class="underline" href="https://old.aidxn.fun/">old.aidxn.fun</a>. It features a 2000s design and flashy graphics!</p>
</div> <p class="text-slate-300 mb-4">Most of my projects are considered production-ready, although will always recieve updates and changes, thus being considered in progress.</p>
<div class="mt-3">
<%- include('shards/views.ejs') %>
</div> </div>
<script src="js/main.js"></script> <script src="js/main.js"></script>
<%- include('shards/footer.ejs') %> <%- include('shards/footer.ejs') %>

View File

@ -1,6 +1,7 @@
<footer class="rounded-lg border border-gray-300/50 backdrop-blur-md shadow-lg glow m-4"> <footer class="rounded-lg border border-gray-300/50 backdrop-blur-md shadow-lg glow m-4">
<div class="w-full mx-auto p-4 md:flex md:items-center md:justify-between"> <div class="w-full mx-auto p-4 md:flex md:items-center md:justify-between">
<span class="text-sm text-gray-500 sm:text-center dark:text-gray-200">Content and code released under public domain</span> <span class="text-sm text-gray-500 sm:text-center dark:text-gray-200">Content and code released under public domain</span>
<div style="align-content: center;"><a href="https://512kb.club"><img src="https://512kb.club/assets/images/orange-team.svg" alt="A proud member of the orange team of 512KB club" /></a></div>
<ul class="flex flex-wrap items-center mt-3 text-sm font-medium text-gray-500 dark:text-gray-200 sm:mt-0"> <ul class="flex flex-wrap items-center mt-3 text-sm font-medium text-gray-500 dark:text-gray-200 sm:mt-0">
<li> <li>
<a href="/" class="hover:underline me-4 md:me-6">Home</a> <a href="/" class="hover:underline me-4 md:me-6">Home</a>
@ -8,9 +9,9 @@
<li> <li>
<a href="/about" class="hover:underline me-4 md:me-6">About</a> <a href="/about" class="hover:underline me-4 md:me-6">About</a>
</li> </li>
<li> <!-- DISABLED FOR NOW - I forgot to do this a while ago, and need to get back to it <li>
<a href="/privacy" class="hover:underline me-4 md:me-6">Privacy Policy</a> <a href="/privacy" class="hover:underline me-4 md:me-6">Privacy Policy</a>
</li> </li> -->
<li> <li>
<a href="/contact" class="hover:underline">Contact</a> <a href="/contact" class="hover:underline">Contact</a>
</li> </li>

View File

@ -1,17 +1,17 @@
<!-- The body/head/html tag is purposely not included here, as it gives the user easier freedom to control the stying and details of the page (such as title) --> <!-- The body/head/html tag is purposely not included here, as it gives the user easier freedom to control the stying and details of the page (such as title) -->
<div id="notification-banner" class="relative isolate flex items-center gap-x-6 overflow-hidden bg-gray-800/50 backdrop-blur-md px-6 py-2.5 rounded-lg shadow-lg"> <div id="notification-banner" class="relative isolate flex items-center gap-x-6 overflow-hidden bg-gray-800/50 backdrop-blur-md px-6 py-2.5 rounded-lg shadow-lg">
<div class="absolute left-0 top-1/2 -z-10 -translate-y-1/2 transform-gpu blur-2xl"> <div class="absolute left-0 top-1/2 -z-10 -translate-y-1/2 transform-gpu blur-2xl">
<div class="aspect-[577/310] w-[36.0625rem] bg-gradient-to-r from-[#ff80b5] to-[#9089fc] opacity-30" style="clip-path: polygon(74.8% 41.9%, 97.2% 73.2%, 100% 34.9%, 92.5% 0.4%, 87.5% 0%, 75% 28.6%, 58.5% 54.6%, 50.1% 56.8%, 46.9% 44%, 48.3% 17.4%, 24.7% 53.9%, 0% 27.9%, 11.9% 74.2%, 24.9% 54.1%, 68.6% 100%, 74.8% 41.9%)"></div> <div class="aspect-577/310 w-[36.0625rem] bg-linear-to-r from-[#ff80b5] to-[#9089fc] opacity-30" style="clip-path: polygon(74.8% 41.9%, 97.2% 73.2%, 100% 34.9%, 92.5% 0.4%, 87.5% 0%, 75% 28.6%, 58.5% 54.6%, 50.1% 56.8%, 46.9% 44%, 48.3% 17.4%, 24.7% 53.9%, 0% 27.9%, 11.9% 74.2%, 24.9% 54.1%, 68.6% 100%, 74.8% 41.9%)"></div>
</div> </div>
<div class="flex flex-wrap items-center gap-x-4 gap-y-2"> <div class="flex flex-wrap items-center gap-x-4 gap-y-2">
<p class="text-sm leading-6 text-gray-100"> <p class="text-sm leading-6 text-gray-100">
<strong class="font-semibold">old.aidxn.fun</strong> <strong class="font-semibold">Do you prefer a retro design?</strong>
<svg viewBox="0 0 2 2" class="mx-2 inline h-0.5 w-0.5 fill-current" aria-hidden="true"> <svg viewBox="0 0 2 2" class="mx-2 inline h-0.5 w-0.5 fill-current" aria-hidden="true">
<circle cx="1" cy="1" r="1" /> <circle cx="1" cy="1" r="1" />
</svg> </svg>
Do you prefer a retro design? Check out old.aidxn.fun! Check out old.aidxn.fun for a retro experience!
</p> </p>
<a href="https://old.aidxn.fun" class="flex-none rounded-full bg-gray-900 px-3.5 py-1 text-sm font-semibold text-white shadow-sm hover:bg-gray-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-900">Go retro <span aria-hidden="true">&rarr;</span></a> <a href="https://old.aidxn.fun" class="flex-none rounded-full bg-gray-900 px-3.5 py-1 text-sm font-semibold text-white shadow-xs hover:bg-gray-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-slate-700">Go retro <span aria-hidden="true">&rarr;</span></a>
</div> </div>
<div class="flex flex-1 justify-end"> <div class="flex flex-1 justify-end">
<button type="button" id="dismiss-btn" class="-m-3 p-3 focus-visible:outline-offset-[-4px]"> <button type="button" id="dismiss-btn" class="-m-3 p-3 focus-visible:outline-offset-[-4px]">
@ -38,15 +38,30 @@
</svg> </svg>
</button> </button>
</div> </div>
<div class="hidden lg:flex lg:gap-x-12"> <div class="hidden lg:flex lg:gap-x-12 items-center">
<a href="/" class="text-sm font-semibold leading-6 text-slate-200">Home</a> <a href="/" class="text-sm font-semibold leading-6 text-slate-200">Home</a>
<a href="/about" class="text-sm font-semibold leading-6 text-slate-200">About</a> <a href="/about" class="text-sm font-semibold leading-6 text-slate-200">About</a>
<a href="https://blog.aidxn.fun" class="text-sm font-semibold leading-6 text-slate-200">Blog</a> <div class="relative inline-block text-left">
<a href="https://tilde.club/~lxu" class="text-sm font-semibold leading-6 text-slate-200">Tilde</a> <a href="#" class="text-sm font-semibold leading-6 text-slate-200 flex items-center" id="menu-button" aria-expanded="false" aria-haspopup="true">
Websites
<svg class="ml-1 h-5 w-5 text-slate-200" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" d="M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd" />
</svg>
</a>
<div class="absolute right-0 z-10 w-56 origin-top-right rounded-md bg-gray-800 shadow-lg ring-1 ring-gray-700 focus:outline-hidden mt-5 hidden" role="menu" aria-orientation="vertical" aria-labelledby="menu-button" tabindex="-1">
<div class="py-1" role="none">
<a href="https://aidxn.cc" class="block px-4 py-2 text-sm text-gray-100 hover:bg-gray-700" role="menuitem" tabindex="-1" id="menu-item-1">Main Site</a>
<a href="https://blog.aidxn.fun" class="block px-4 py-2 text-sm text-gray-100 hover:bg-gray-700" role="menuitem" tabindex="-1" id="menu-item-1">Blog</a>
<a href="https://tilde.club/~lxu" class="block px-4 py-2 text-sm text-gray-100 hover:bg-gray-700" role="menuitem" tabindex="-1" id="menu-item-0">Tilde</a>
<a href="https://p0ntus.com" class="block px-4 py-2 text-sm text-gray-100 hover:bg-gray-700" role="menuitem" tabindex="-1" id="menu-item-1">Archive</a>
</div>
</div>
</div>
<a href="/contact" class="text-sm font-semibold leading-6 text-slate-200">Contact</a> <a href="/contact" class="text-sm font-semibold leading-6 text-slate-200">Contact</a>
<a href="/verify" class="text-sm font-semibold leading-6 text-slate-200">Verify Message</a> <a href="/verify" class="text-sm font-semibold leading-6 text-slate-200">Verify Message</a>
<a href="/status" class="text-sm font-semibold leading-6 text-slate-200">Status</a> <a href="/status" class="text-sm font-semibold leading-6 text-slate-200">Status</a>
<a href="/projects" class="text-sm font-semibold leading-6 text-slate-200">Projects</a> <a href="/projects" class="text-sm font-semibold leading-6 text-slate-200">Projects</a>
<a href="/manifesto" class="text-sm font-semibold leading-6 text-slate-200">Manifesto</a>
</div> </div>
</nav> </nav>
<div class="lg:hidden" role="dialog" aria-modal="true" id="mobile-menu" style="display: none;"> <div class="lg:hidden" role="dialog" aria-modal="true" id="mobile-menu" style="display: none;">
@ -67,14 +82,17 @@
<div class="mt-6 flow-root"> <div class="mt-6 flow-root">
<div class="-my-6 divide-y divide-gray-500/10"> <div class="-my-6 divide-y divide-gray-500/10">
<div class="space-y-2 py-6"> <div class="space-y-2 py-6">
<a href="/" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-slate-200 hover:bg-gray-50">Home</a> <a href="/" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-slate-200 hover:bg-gray-900">Home</a>
<a href="/about" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-slate-200 hover:bg-gray-50">About</a> <a href="/about" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-slate-200 hover:bg-gray-900">About</a>
<a href="https://blog.aidxn.fun" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-slate-200 hover:bg-gray-50">Blog</a> <a href="https://aidxn.cc/" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-slate-200 hover:bg-gray-900">Main Website</a>
<a href="https://tilde.club/~lxu" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-slate-200 hover:bg-gray-50">Tilde</a> <a href="https://blog.aidxn.fun/" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-slate-200 hover:bg-gray-900">Blog</a>
<a href="/contact" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-slate-200 hover:bg-gray-50">Contact</a> <a href="https://tilde.club/~lxu" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-slate-200 hover:bg-gray-900">Tilde</a>
<a href="/verify" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-slate-200 hover:bg-gray-50">Verify Message</a> <a href="https://p0ntus.com" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-slate-200 hover:bg-gray-900">Archive</a>
<a href="/status" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-slate-200 hover:bg-gray-50">Status</a> <a href="/contact" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-slate-200 hover:bg-gray-900">Contact</a>
<a href="/projects" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-slate-200 hover:bg-gray-50">Projects</a> <a href="/verify" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-slate-200 hover:bg-gray-900">Verify Message</a>
<a href="/status" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-slate-200 hover:bg-gray-900">Status</a>
<a href="/projects" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-slate-200 hover:bg-gray-900">Projects</a>
<a href="/manifesto" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-slate-200 hover:bg-gray-900">Manifesto</a>
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,16 +0,0 @@
<div class="bg-gradient-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8 mx-4 mb-8">
<h1 class="text-4xl font-bold mb-2">Analytics</h1>
<p class="text-gray-400 italic mb-4">Our analytics system does not track you, ever. Only a simple counter is used, and your IP address is never stored or shared.</p>
<p>Total Views: <span id="totalViews">0</span></p>
</div>
<script>
fetch('/api/log-view', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ page: '<%= req.originalUrl %>' }),
})
.then(response => response.json())
.then(data => {
document.getElementById('totalViews').innerText = data.views;
});
</script>

View File

@ -3,14 +3,14 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🎃 aidxn.fun | status</title> <title>❄️ aidxn.fun | status</title>
<link href="/css/main.css" rel="stylesheet"> <link href="/css/main.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&display=swap" rel="stylesheet">
</head> </head>
<body class="bg-gradient-to-br from-slate-900 to-black text-white font-afacad-flux"> <body class="bg-linear-to-br from-slate-900 to-black text-white font-afacad-flux">
<%- include('shards/header.ejs', { req: req }) %> <%- include('shards/header.ejs', { req: req }) %>
<header class="flex flex-col items-center justify-center h-[40vh] p-6"> <header class="flex flex-col items-center justify-center h-[40vh] p-6">
@ -18,19 +18,25 @@
<p class="text-lg text-gray-300 max-w-xl text-center mt-3">Interested in my server uptime? Take a peek!</p> <p class="text-lg text-gray-300 max-w-xl text-center mt-3">Interested in my server uptime? Take a peek!</p>
</header> </header>
<div class="bg-gradient-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8 mx-4"> <div id="loading" class="flex flex-col items-center justify-center h-[40vh] p-6">
<i class="fas fa-spinner fa-spin text-5xl mb-4"></i>
<h1 class="text-2xl font-bold">Testing pings...</h1>
</div>
<div id="content" class="hidden bg-linear-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8 mx-4">
<div>
<h3 class="text-2xl font-bold mb-4 text-white">What is this page?</h3> <h3 class="text-2xl font-bold mb-4 text-white">What is this page?</h3>
<p class="text-slate-300 mb-4">This page displays information about the status of my personal servers. This excludes private servers, which are used for projects such as my "home" lab (it's hosted in the cloud).</p> <p class="text-slate-300 mb-4">This page displays information about the status of my personal servers. This excludes private servers, which are used for projects such as my "home" lab (it's hosted in the cloud).</p>
<p class="text-slate-300 mb-4">Most of these servers are what your computer connects to in order to fetch information, such as the status of the server, or what I'm listening to (see the home page). <p class="text-slate-300 mb-4">Most of these servers are what your computer connects to in order to fetch information, such as the status of the server, or what I'm listening to (see the home page).</p>
<h3 class="text-2xl font-bold mb-4 text-white">Status | Website</h3> <h3 class="text-2xl font-bold mb-4 text-white">Status | Website</h3>
<p class="text-slate-300 mb-4"><span class="text-green-500 font-bold" id="website">[ONLINE - LOADING ms]</span> aidxn.fun/lsd.aidxn.fun (DigitalOcean)</p> <p class="text-slate-300 mb-4"><span class="text-green-500 font-bold" id="website">[ONLINE - LOADING ms]</span> aidxn.fun/website.aidxn.fun (Oracle Cloud - Germany)</p>
<h3 class="text-2xl font-bold mb-4 text-white">Status | Backend</h3> <h3 class="text-2xl font-bold mb-4 text-white">Status | Backend</h3>
<p class="text-slate-300 mb-4"><span class="text-gray-500 font-bold" id="status1">[UNKNOWN - LOADING ms]</span> kantor.aidxn.fun (Oracle Cloud - Germany - backend server)</p> <p class="text-slate-300 mb-4"><span class="text-gray-500 font-bold" id="status1">[UNKNOWN - LOADING ms]</span> kantor.aidxn.fun (Oracle Cloud - Germany - backend server)</p>
<p class="text-slate-300"><span class="text-gray-500 font-bold" id="api">[UNKNOWN - LOADING ms]</span> api.aidxn.fun (Oracle Cloud - Germany - backend server)</p> </div>
</div>
<div class="mt-3">
<%- include('shards/views.ejs') %>
</div> </div>
<script src="js/main.js"></script> <script src="js/main.js"></script>
<script src="js/status.js"></script> <script src="js/status.js"></script>
<%- include('shards/footer.ejs') %> <%- include('shards/footer.ejs') %>
</body>
</html>

View File

@ -3,14 +3,14 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🎃 aidxn.fun | verify</title> <title>❄️ aidxn.fun | verify</title>
<link href="/css/main.css" rel="stylesheet"> <link href="/css/main.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&display=swap" rel="stylesheet">
</head> </head>
<body class="bg-gradient-to-br from-slate-900 to-black text-white font-afacad-flux"> <body class="bg-linear-to-br from-slate-900 to-black text-white font-afacad-flux">
<%- include('shards/header.ejs', { req: req }) %> <%- include('shards/header.ejs', { req: req }) %>
<header class="flex flex-col items-center justify-center h-[40vh] p-6"> <header class="flex flex-col items-center justify-center h-[40vh] p-6">
@ -18,16 +18,22 @@
<p class="text-lg text-gray-300 max-w-xl text-center mt-3">Let's check if that message really came from me!</p> <p class="text-lg text-gray-300 max-w-xl text-center mt-3">Let's check if that message really came from me!</p>
</header> </header>
<div class="bg-gradient-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8 mx-4"> <div class="bg-linear-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8 mx-4">
<h3 class="text-2xl font-bold mb-4 text-white">Introduction</h3> <h3 class="text-2xl font-bold mb-4 text-white">Introduction</h3>
<p class="text-slate-300 mb-4">Did I send you a PGP signed message? Let's check it's actually from me! The form below will verify the message was signed by my key.</p> <p class="text-slate-300 mb-4">Did I send you a PGP signed message? Let's check it's actually from me! The form below will verify the message was signed by my key.</p>
<p class="text-slate-300 mb-4"><span class="font-bold">Remember</span>, if you have confirmed my key in person, you should always trust that key over this page.</p> <p class="text-slate-300 mb-4"><span class="font-bold">Remember</span>, if you have confirmed my key in person, you should always trust that key over this page.</p>
<p class="text-slate-300 mb-4">The key this is being checked against is stored on my server, which can be prone to being hacked. Thus, this is better than nothing, but not the #1 option for verifying a message.</p> <p class="text-slate-300 mb-4">The key this is being checked against is stored on my server, which can be prone to being hacked. Thus, this is better than nothing, but not the #1 option for verifying a message. As of now, messages are checked by the server, not locally.</p>
<h3 class="text-2xl font-bold mb-4 text-white">Check Message</h3> <h3 class="text-2xl font-bold mb-4 text-white">Check Message</h3>
<p class="text-slate-300 font-bold">THIS FORM IS NOT CURRENTLY AVAILABLE</p> <form action="/verify" method="POST" class="space-y-4">
</div> <label for="pgpMessage" class="block text-slate-300">PGP Message:</label>
<div class="mt-3"> <textarea id="pgpMessage" name="pgpMessage" class="w-full p-2 bg-slate-800 text-slate-300 rounded-md" rows="10" placeholder="Paste a PGP-signed message here"></textarea>
<%- include('shards/views.ejs') %> <button type="submit" class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded-sm">Verify</button>
</form>
<% if (verifyResult) { %>
<div class="mt-4 p-4 rounded-sm bg-slate-800 text-white">
<p><%= verifyResult %></p>
</div>
<% } %>
</div> </div>
<script src="js/main.js"></script> <script src="js/main.js"></script>
<%- include('shards/footer.ejs') %> <%- include('shards/footer.ejs') %>