Compare commits
66 Commits
81bcc648e3
...
v0.0.1-alp
| Author | SHA1 | Date | |
|---|---|---|---|
| a354004201 | |||
| 942be59715 | |||
| 70e376c939 | |||
| 62a1ad83ab | |||
| 47c5a47ffa | |||
| 9bd6e1fc04 | |||
| 73600055fc | |||
| 80907a89a9 | |||
| 2472374157 | |||
| b72a10db94 | |||
| d097988dfd | |||
| cb9e8e1107 | |||
| 7bb7df788e | |||
| f26cf6404e | |||
| 7f867b02d6 | |||
| 8c04e7ace5 | |||
| 74a05a39e1 | |||
| f11e402d16 | |||
| 19130e361d | |||
| af0670b9a0 | |||
| a236d96971 | |||
| 2fa142708e | |||
| 71b5017c82 | |||
| ac9ce206dd | |||
| 2b9a859e7e | |||
| 1e3b755b88 | |||
| 46579ac6d9 | |||
| cded5982d4 | |||
| e6041b03ee | |||
| 7cbc8c8b84 | |||
| 7b1a0b054b | |||
| d6dce0908e | |||
| 3661cf5c25 | |||
| b25debabb2 | |||
| 2646ecbdd2 | |||
| d7bfeabed1 | |||
| 83305031fd | |||
| 12c338581a | |||
| 8044547488 | |||
| 2397fc2004 | |||
| 120ee75bf7 | |||
| 8b814222c8 | |||
| c81ae4ee1c | |||
| 9e6d82b44d | |||
| 10fcdbe89f | |||
| 5342e60811 | |||
| ab1d8fa556 | |||
| 84091ecdba | |||
| 1ed753506d | |||
| 3d5a8ee464 | |||
| 1980a184e4 | |||
| 3d803dffdb | |||
| e3cba33ea1 | |||
| b07c33e5a3 | |||
| 8ba663c038 | |||
| 6a7fcadd2f | |||
| 710bdd878a | |||
| aeb154ad83 | |||
| d4575b15a4 | |||
| 1172fe8a7c | |||
| b7809c94d9 | |||
| b82438f2f5 | |||
| 78527307b2 | |||
| 211bad836e | |||
| 96292589b3 | |||
| 799be62f3c |
6
.gitignore
vendored
6
.gitignore
vendored
@@ -4,6 +4,9 @@ frontend/.tanstack/
|
|||||||
frontend/.output/
|
frontend/.output/
|
||||||
frontend/.nitro/
|
frontend/.nitro/
|
||||||
releases/
|
releases/
|
||||||
|
LstWrapper/bin
|
||||||
|
LstWrapper/publish
|
||||||
|
LstWrapper/obj
|
||||||
|
|
||||||
# ---> Go
|
# ---> Go
|
||||||
# If you prefer the allow list template instead of the deny list, see community template:
|
# If you prefer the allow list template instead of the deny list, see community template:
|
||||||
@@ -183,3 +186,6 @@ test-results/
|
|||||||
|
|
||||||
backend/go.sum
|
backend/go.sum
|
||||||
BUILD_NUMBER
|
BUILD_NUMBER
|
||||||
|
scripts/resetDanger.js
|
||||||
|
LstWrapper/Program_vite_as_Static.txt
|
||||||
|
scripts/stopPool.go
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
"git": {
|
"git": {
|
||||||
"commitMessage": "chore(release): v${version}",
|
"commitMessage": "chore(release): v${version}",
|
||||||
"tagName": "v${version}",
|
"tagName": "v${version}",
|
||||||
"requireCleanWorkingDir": true
|
"requireCleanWorkingDir": true,
|
||||||
|
"addUntrackedFiles": true
|
||||||
},
|
},
|
||||||
"npm": {
|
"npm": {
|
||||||
"publish": false
|
"publish": false
|
||||||
@@ -15,8 +16,7 @@
|
|||||||
"@release-it/conventional-changelog": {
|
"@release-it/conventional-changelog": {
|
||||||
"preset": "conventionalcommits",
|
"preset": "conventionalcommits",
|
||||||
"infile": "CHANGELOG.md",
|
"infile": "CHANGELOG.md",
|
||||||
"config": ".versionrc.json",
|
"config": ".versionrc.json"
|
||||||
"changelogCommand": "conventional-changelog -p conventionalcommits -r 1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"gitea": {
|
"gitea": {
|
||||||
@@ -24,5 +24,5 @@
|
|||||||
"tokenRef": "GITEA_TOKEN"
|
"tokenRef": "GITEA_TOKEN"
|
||||||
},
|
},
|
||||||
|
|
||||||
"files": ["package.json"]
|
"files": ["package.json", "CHANGELOG.md"]
|
||||||
}
|
}
|
||||||
|
|||||||
264
CHANGELOG.md
264
CHANGELOG.md
@@ -1,139 +1,213 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [0.0.1-alpha.2](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.1-alpha.1...v0.0.1-alpha.2) (2025-07-16)
|
||||||
|
|
||||||
|
## [0.0.3-alpha.22](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.21...v0.0.3-alpha.22) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **changelog:** moved packages ([f11e402](https://git.tuffraid.net/cowch/logistics_support_tool/commit/f11e402d16c750c3001ceebbdfd2f073de1e2703))
|
||||||
|
|
||||||
|
## [0.0.3-alpha.21](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.19...v0.0.3-alpha.21) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **package.json:** corrections to the commit changelog stuff ([a236d96](https://git.tuffraid.net/cowch/logistics_support_tool/commit/a236d9697198e5474a8c311984c22ae6f0d1901e))
|
||||||
|
|
||||||
|
## [0.0.3-alpha.20](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.19...v0.0.3-alpha.20) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **package.json:** corrections to the commit changelog stuff ([a236d96](https://git.tuffraid.net/cowch/logistics_support_tool/commit/a236d9697198e5474a8c311984c22ae6f0d1901e))
|
||||||
|
|
||||||
|
## [0.0.3-alpha.19](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.18...v0.0.3-alpha.19) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **changelog:** readd the header back in ([71b5017](https://git.tuffraid.net/cowch/logistics_support_tool/commit/71b5017c82e718f1c63f3862c0953d1554e7cf5b))
|
||||||
|
|
||||||
|
## [0.0.3-alpha.18](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.17...v0.0.3-alpha.18) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **build:** minor change to the build system to trigger new tags ([2b9a859](https://git.tuffraid.net/cowch/logistics_support_tool/commit/2b9a859e7e944eee590d0d51b95fa13405d21790))
|
||||||
|
|
||||||
|
## [0.0.3-alpha.17](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.16...v0.0.3-alpha.17) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **changelog:** changes here ([46579ac](https://git.tuffraid.net/cowch/logistics_support_tool/commit/46579ac6d9819085d183eba1dafb6b8873f2dd0e))
|
||||||
|
|
||||||
|
## [0.0.3-alpha.16](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.15...v0.0.3-alpha.16) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **h:** sssdasjhksdf ([e6041b0](https://git.tuffraid.net/cowch/logistics_support_tool/commit/e6041b03ee38888fa4e53a498b0414941ff701de))
|
||||||
|
|
||||||
|
## [0.0.3-alpha.15](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.14...v0.0.3-alpha.15) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **d:** d ([7b1a0b0](https://git.tuffraid.net/cowch/logistics_support_tool/commit/7b1a0b054b05e33ecd754b91a080fc83ff214630))
|
||||||
|
|
||||||
|
## [0.0.3-alpha.14](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.13...v0.0.3-alpha.14) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **changelog:** more change log stuff ([3661cf5](https://git.tuffraid.net/cowch/logistics_support_tool/commit/3661cf5c25b919035853a135bc89d1fc3d5df428))
|
||||||
|
|
||||||
|
## [0.0.3-alpha.12](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.11...v0.0.3-alpha.12) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **release:** re ([8330503](https://git.tuffraid.net/cowch/logistics_support_tool/commit/83305031fd8bbf7465269bd517a318d12f1e8414))
|
||||||
|
## [0.0.3-alpha.11](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.10...v0.0.3-alpha.11) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **bogus:** this is crap ([8044547](https://git.tuffraid.net/cowch/logistics_support_tool/commit/80445474881da87ee431d0c3212dcd458a3ec69d))
|
||||||
|
## [0.0.3-alpha.10](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.9...v0.0.3-alpha.10) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **jfhsldkfhja:** ghjskdhkflasfdfg ([120ee75](https://git.tuffraid.net/cowch/logistics_support_tool/commit/120ee75bf763a8a98aae1fd8f00925eee203af2a))
|
||||||
|
## [0.0.3-alpha.9](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.8...v0.0.3-alpha.9) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **fucl:** fuck ([c81ae4e](https://git.tuffraid.net/cowch/logistics_support_tool/commit/c81ae4ee1c28854313705786d1d03d9886abaca0))
|
||||||
|
## [0.0.3-alpha.8](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.7...v0.0.3-alpha.8) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **change:** fuck ([10fcdbe](https://git.tuffraid.net/cowch/logistics_support_tool/commit/10fcdbe89f54548800fbbca86a011ecb8a9c9234))
|
||||||
|
## [0.0.3-alpha.7](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.6...v0.0.3-alpha.7) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **release:** changes ([ab1d8fa](https://git.tuffraid.net/cowch/logistics_support_tool/commit/ab1d8fa5562f82f566d9777e61634e90bb6eb1e3))
|
||||||
|
## [0.0.3-alpha.6](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.5...v0.0.3-alpha.6) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **release:** more changes ([1ed7535](https://git.tuffraid.net/cowch/logistics_support_tool/commit/1ed753506d040e94fd8eb9c2978d96e8f38f1fc5))
|
||||||
|
## [0.0.3-alpha.5](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.4...v0.0.3-alpha.5) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **release:** changes to the changelog portion so its no longer a link ([1980a18](https://git.tuffraid.net/cowch/logistics_support_tool/commit/1980a184e4a6c4ddbd43f24771453e88d0e03198))
|
||||||
|
## [0.0.3-alpha.4](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.3...v0.0.3-alpha.4) (2025-07-12)
|
||||||
|
## [0.0.3-alpha.3](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.2...v0.0.3-alpha.3) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **release:** more fixes ([6a7fcad](https://git.tuffraid.net/cowch/logistics_support_tool/commit/6a7fcadd2f8c52faec33bab7b2e73b0ef9943895))
|
||||||
|
## [0.0.3-alpha.2](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.1...v0.0.3-alpha.2) (2025-07-12)
|
||||||
|
## [0.0.3-alpha.1](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2...v0.0.3-alpha.1) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **release:** something ([b7809c9](https://git.tuffraid.net/cowch/logistics_support_tool/commit/b7809c94d96a2168804e0b82413537af1c064b31))
|
||||||
|
## [0.0.2](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.15...v0.0.2) (2025-07-12)
|
||||||
|
## [0.0.2-alpha.15](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.14...v0.0.2-alpha.15) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **release:** cahgnes ([799be62](https://git.tuffraid.net/cowch/logistics_support_tool/commit/799be62f3c77631a4108ee9e92f19157ab597dff))
|
||||||
## [0.0.2-alpha.14](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.13...v0.0.2-alpha.14) (2025-07-12)
|
## [0.0.2-alpha.14](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.13...v0.0.2-alpha.14) (2025-07-12)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
* **release:** corrections ([2386a14](https://git.tuffraid.net/cowch/logistics_support_tool/commit/2386a14d7a76f89653a13de3a0d86e1bf55934d5))
|
* **release:** corrections ([2386a14](https://git.tuffraid.net/cowch/logistics_support_tool/commit/2386a14d7a76f89653a13de3a0d86e1bf55934d5))
|
||||||
|
|
||||||
## [0.0.2-alpha.13](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.12...v0.0.2-alpha.13) (2025-07-12)
|
## [0.0.2-alpha.13](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.12...v0.0.2-alpha.13) (2025-07-12)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
* **release:** conflicting tags ([f06b621](https://git.tuffraid.net/cowch/logistics_support_tool/commit/f06b621b8dc0cc8fc7084fa259408f0faafb6b74))
|
* **release:** conflicting tags ([f06b621](https://git.tuffraid.net/cowch/logistics_support_tool/commit/f06b621b8dc0cc8fc7084fa259408f0faafb6b74))
|
||||||
|
## [0.0.2-alpha.12](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.11...v0.0.2-alpha.12) (2025-07-12)
|
||||||
|
|
||||||
## <small>0.0.2-alpha.11 (2025-07-12)</small>
|
### Bug Fixes
|
||||||
|
|
||||||
* chore(release): v0.0.2-alpha.11 ([6c7f178](https://git.tuffraid.net/cowch/logistics_support_tool/commits/6c7f178))
|
* **release:** change to get the release to build then release stuff ([afab215](https://git.tuffraid.net/cowch/logistics_support_tool/commit/afab215a9e29732d8236c45c4a8417c9b1e02b1e))
|
||||||
* fix(release): var not defined ([a282940](https://git.tuffraid.net/cowch/logistics_support_tool/commits/a282940))
|
* **release:** removed the intial before bump ([cf24847](https://git.tuffraid.net/cowch/logistics_support_tool/commit/cf2484705a65d065ec75690e21bf6e8f2e32a0f5))
|
||||||
|
## [0.0.2-alpha.11](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.10...v0.0.2-alpha.11) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **release:** var not defined ([a282940](https://git.tuffraid.net/cowch/logistics_support_tool/commit/a282940d9b1334743af31b96fbb3fd8228ee290a))
|
||||||
|
## [0.0.2-alpha.10](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.9...v0.0.2-alpha.10) (2025-07-12)
|
||||||
|
|
||||||
## <small>0.0.2-alpha.10 (2025-07-12)</small>
|
### Bug Fixes
|
||||||
|
|
||||||
* chore(release): v0.0.2-alpha.10 ([36b1df7](https://git.tuffraid.net/cowch/logistics_support_tool/commits/36b1df7))
|
* **release:** error in function ([dc4beb2](https://git.tuffraid.net/cowch/logistics_support_tool/commit/dc4beb2d2768c8e5f5f3f629b13bb38373c2a0a2))
|
||||||
* fix(release): error in function ([dc4beb2](https://git.tuffraid.net/cowch/logistics_support_tool/commits/dc4beb2))
|
## [0.0.2-alpha.9](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.8...v0.0.2-alpha.9) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **release:** checking the build file failes but not sure why ([f429bd4](https://git.tuffraid.net/cowch/logistics_support_tool/commit/f429bd43ab85df0419c1f06fb551d9af5fd418ae))
|
||||||
|
## [0.0.2-alpha.8](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.7...v0.0.2-alpha.8) (2025-07-12)
|
||||||
|
## [0.0.2-alpha.7](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.6...v0.0.2-alpha.7) (2025-07-12)
|
||||||
|
|
||||||
## <small>0.0.2-alpha.9 (2025-07-12)</small>
|
### Bug Fixes
|
||||||
|
|
||||||
* chore(release): v0.0.2-alpha.9 ([3203f54](https://git.tuffraid.net/cowch/logistics_support_tool/commits/3203f54))
|
* **relrease:** maybe finally got it ([c0aa64d](https://git.tuffraid.net/cowch/logistics_support_tool/commit/c0aa64db634cff5a6597215035929f16b0edfca0))
|
||||||
* fix(release): checking the build file failes but not sure why ([f429bd4](https://git.tuffraid.net/cowch/logistics_support_tool/commits/f429bd4))
|
## [0.0.2-alpha.6](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.5...v0.0.2-alpha.6) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **release fixes:** more fixes ([6fc69fc](https://git.tuffraid.net/cowch/logistics_support_tool/commit/6fc69fc6bcbda7f978dbd332ef23ef0501653c50))
|
||||||
|
## [0.0.2-alpha.5](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.4...v0.0.2-alpha.5) (2025-07-12)
|
||||||
|
|
||||||
## <small>0.0.2-alpha.8 (2025-07-12)</small>
|
### Bug Fixes
|
||||||
|
|
||||||
* chore(release): v0.0.2-alpha.8 ([f7da816](https://git.tuffraid.net/cowch/logistics_support_tool/commits/f7da816))
|
* **release:** more fixes ([65873bd](https://git.tuffraid.net/cowch/logistics_support_tool/commit/65873bd31f4c4e5cc0a77aa171822cd842353e45))
|
||||||
* build(build): linked everything together ([fdf5e25](https://git.tuffraid.net/cowch/logistics_support_tool/commits/fdf5e25))
|
## [0.0.2-alpha.4](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.3...v0.0.2-alpha.4) (2025-07-12)
|
||||||
* ci(default): added in default configs so they work across everything ([8cb416e](https://git.tuffraid.net/cowch/logistics_support_tool/commits/8cb416e))
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **package:** added changes to the package.json so we see the release stuff ([494ee3f](https://git.tuffraid.net/cowch/logistics_support_tool/commit/494ee3f58ea5af3d18a640ffff99918f460fb4aa))
|
||||||
|
## [0.0.2-alpha.3](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.2...v0.0.2-alpha.3) (2025-07-12)
|
||||||
|
|
||||||
## <small>0.0.2-alpha.7 (2025-07-12)</small>
|
### Bug Fixes
|
||||||
|
|
||||||
* chore(release): v0.0.2-alpha.7 ([2c265d7](https://git.tuffraid.net/cowch/logistics_support_tool/commits/2c265d7))
|
* **release:** more bug fixes ([5b7f9f2](https://git.tuffraid.net/cowch/logistics_support_tool/commit/5b7f9f2c482531ea52100bff191b943e218e72df))
|
||||||
* fix(relrease): maybe finally got it ([c0aa64d](https://git.tuffraid.net/cowch/logistics_support_tool/commits/c0aa64d))
|
* **release:** more work on the release stuff ([233298d](https://git.tuffraid.net/cowch/logistics_support_tool/commit/233298daa5850178974be675bb8566fa8c0a8b0a))
|
||||||
|
## [0.0.2-alpha.2](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.1...v0.0.2-alpha.2) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **releases:** more fun release stuff ([f33554e](https://git.tuffraid.net/cowch/logistics_support_tool/commit/f33554ed973e65e2488512bfd8359577967698b7))
|
||||||
|
## [0.0.2-alpha.1](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.0...v0.0.2-alpha.1) (2025-07-12)
|
||||||
|
|
||||||
## <small>0.0.2-alpha.6 (2025-07-12)</small>
|
### Bug Fixes
|
||||||
|
|
||||||
* chore(release): v0.0.2-alpha.6 ([8622408](https://git.tuffraid.net/cowch/logistics_support_tool/commits/8622408))
|
* **package:** made changes to get the correct alpha passed over in the prerelease stuff ([09e5fdf](https://git.tuffraid.net/cowch/logistics_support_tool/commit/09e5fdf209f1a11f975d77e445f777623a5d3509))
|
||||||
* fix(release fixes): more fixes ([6fc69fc](https://git.tuffraid.net/cowch/logistics_support_tool/commits/6fc69fc))
|
* **release it:** type in how i wrote the release-it file ([8664703](https://git.tuffraid.net/cowch/logistics_support_tool/commit/86647034c8f5c9b04c6f51fb95b929de4f65fc63))
|
||||||
|
* **release:** removed version from being passed over ([30b39b8](https://git.tuffraid.net/cowch/logistics_support_tool/commit/30b39b836a8ac01aea3f7a4ddf3b6ec25d6a36cd))
|
||||||
|
## [0.0.1-alpha.4.14-cowch](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.1-alpha.3.14-cowch...v0.0.1-alpha.4.14-cowch) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **releaseit:** changes to get the version to update ([e084663](https://git.tuffraid.net/cowch/logistics_support_tool/commit/e084663f19ada722007bd00c73a4ca7015a4f71e))
|
||||||
|
## [0.0.1-alpha.3.14-cowch](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.1-alpha.2.14-cowch...v0.0.1-alpha.3.14-cowch) (2025-07-12)
|
||||||
|
|
||||||
## <small>0.0.2-alpha.5 (2025-07-12)</small>
|
### Bug Fixes
|
||||||
|
|
||||||
* chore(release): v0.0.2-alpha.5 ([6779d1c](https://git.tuffraid.net/cowch/logistics_support_tool/commits/6779d1c))
|
* **releaseit:** changes to get it to actaully run ([c680152](https://git.tuffraid.net/cowch/logistics_support_tool/commit/c680152004b85442cad5bf6eeac407de67fead32))
|
||||||
* fix(release): more fixes ([65873bd](https://git.tuffraid.net/cowch/logistics_support_tool/commits/65873bd))
|
## [0.0.1-alpha.2.14-cowch](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.1-alpha.1.14-cowch...v0.0.1-alpha.2.14-cowch) (2025-07-12)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **package json:** correction to the version ([8141c6a](https://git.tuffraid.net/cowch/logistics_support_tool/commit/8141c6ab698ce246f999ed304d306f72c50a2708))
|
||||||
|
* **releases:** a few more tweaks to the releasing ([587f1eb](https://git.tuffraid.net/cowch/logistics_support_tool/commit/587f1eb3a2841780903db6c9b6f4fa760baa29e9))
|
||||||
|
* **releases:** corrections to reduce the build number to be true ([18aa9e7](https://git.tuffraid.net/cowch/logistics_support_tool/commit/18aa9e7670ffd531c0c03b946dad599600bd5c5b))
|
||||||
|
## [0.0.1-alpha.1.14-cowch](https://git.tuffraid.net/cowch/logistics_support_tool/compare/0.0.2...v0.0.1-alpha.1.14-cowch) (2025-07-12)
|
||||||
|
## v0.0.1-alpha-1 (2025-07-12)
|
||||||
|
|
||||||
## <small>0.0.2-alpha.4 (2025-07-12)</small>
|
### Features
|
||||||
|
|
||||||
* chore(release): v0.0.2-alpha.4 ([5948c5c](https://git.tuffraid.net/cowch/logistics_support_tool/commits/5948c5c))
|
* **starter:** intial starter release ([b370cb1](https://git.tuffraid.net/cowch/logistics_support_tool/commit/b370cb17c86bb3f8727cebfa607bb6423fc89644))
|
||||||
* fix(package): added changes to the package.json so we see the release stuff ([494ee3f](https://git.tuffraid.net/cowch/logistics_support_tool/commits/494ee3f))
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **releases:** spawn fixes to overcome npx and powershell ([eed0119](https://git.tuffraid.net/cowch/logistics_support_tool/commit/eed01197c0825e9039c3a2f0d8845c3b21380faf))
|
||||||
## <small>0.0.2-alpha.3 (2025-07-12)</small>
|
|
||||||
|
|
||||||
* chore(release): v0.0.2-alpha.0 ([f83de9b](https://git.tuffraid.net/cowch/logistics_support_tool/commits/f83de9b))
|
|
||||||
* chore(release): v0.0.2-alpha.1 ([a087929](https://git.tuffraid.net/cowch/logistics_support_tool/commits/a087929))
|
|
||||||
* chore(release): v0.0.2-alpha.2 ([0a9ae10](https://git.tuffraid.net/cowch/logistics_support_tool/commits/0a9ae10))
|
|
||||||
* chore(release): v0.0.2-alpha.3 ([d266dbd](https://git.tuffraid.net/cowch/logistics_support_tool/commits/d266dbd))
|
|
||||||
* fix(release): more bug fixes ([5b7f9f2](https://git.tuffraid.net/cowch/logistics_support_tool/commits/5b7f9f2))
|
|
||||||
* fix(release): more work on the release stuff ([233298d](https://git.tuffraid.net/cowch/logistics_support_tool/commits/233298d))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## <small>0.0.2-alpha.2 (2025-07-12)</small>
|
|
||||||
|
|
||||||
* chore(release): v0.0.2-alpha.2 ([4b0028f](https://git.tuffraid.net/cowch/logistics_support_tool/commits/4b0028f))
|
|
||||||
* fix(releases): more fun release stuff ([f33554e](https://git.tuffraid.net/cowch/logistics_support_tool/commits/f33554e))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## <small>0.0.2-alpha.1 (2025-07-12)</small>
|
|
||||||
|
|
||||||
* chore(release): v0.0.2-alpha.0 ([8b40d3f](https://git.tuffraid.net/cowch/logistics_support_tool/commits/8b40d3f))
|
|
||||||
* chore(release): v0.0.2-alpha.1 ([4b9a225](https://git.tuffraid.net/cowch/logistics_support_tool/commits/4b9a225))
|
|
||||||
* fix(package): made changes to get the correct alpha passed over in the prerelease stuff ([09e5fdf](https://git.tuffraid.net/cowch/logistics_support_tool/commits/09e5fdf))
|
|
||||||
* fix(release it): type in how i wrote the release-it file ([8664703](https://git.tuffraid.net/cowch/logistics_support_tool/commits/8664703))
|
|
||||||
* fix(release): removed version from being passed over ([30b39b8](https://git.tuffraid.net/cowch/logistics_support_tool/commits/30b39b8))
|
|
||||||
* ci(pakcage.json): missing plugin ([772463e](https://git.tuffraid.net/cowch/logistics_support_tool/commits/772463e))
|
|
||||||
* refactor(backend): change to just get a version bump ([01e2d40](https://git.tuffraid.net/cowch/logistics_support_tool/commits/01e2d40))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## <small>0.0.1-alpha.4.14-cowch (2025-07-12)</small>
|
|
||||||
|
|
||||||
* fix(releaseit): changes to get the version to update ([e084663](https://git.tuffraid.net/cowch/logistics_support_tool/commits/e084663))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## <small>0.0.1-alpha.3.14-cowch (2025-07-12)</small>
|
|
||||||
|
|
||||||
* fix(releaseit): changes to get it to actaully run ([c680152](https://git.tuffraid.net/cowch/logistics_support_tool/commits/c680152))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## <small>0.0.1-alpha.2.14-cowch (2025-07-12)</small>
|
|
||||||
|
|
||||||
* refactor(package.json): added in prerelease so we can keep it as alpha for now ([e081951](https://git.tuffraid.net/cowch/logistics_support_tool/commits/e081951))
|
|
||||||
* fix(package json): correction to the version ([8141c6a](https://git.tuffraid.net/cowch/logistics_support_tool/commits/8141c6a))
|
|
||||||
* fix(releases): a few more tweaks to the releasing ([587f1eb](https://git.tuffraid.net/cowch/logistics_support_tool/commits/587f1eb))
|
|
||||||
* fix(releases): corrections to reduce the build number to be true ([18aa9e7](https://git.tuffraid.net/cowch/logistics_support_tool/commits/18aa9e7))
|
|
||||||
* build(changelog): commited change log ([508aab3](https://git.tuffraid.net/cowch/logistics_support_tool/commits/508aab3))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## <small>0.0.1-alpha.1.14-cowch (2025-07-12)</small>
|
|
||||||
|
|
||||||
* refactor(versionrc): alloed project changes to show in the changelog ([2a9b571](https://git.tuffraid.net/cowch/logistics_support_tool/commits/2a9b571))
|
|
||||||
* ci(builds): added better logic to building ([320968f](https://git.tuffraid.net/cowch/logistics_support_tool/commits/320968f))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## <small>v0.0.1-alpha-1 (2025-07-12)</small>
|
|
||||||
|
|
||||||
* fix(releases): spawn fixes to overcome npx and powershell ([eed0119](https://git.tuffraid.net/cowch/logistics_support_tool/commits/eed0119))
|
|
||||||
* refactor(releases): refactoring to get the actual release and changelog to show ([a20d377](https://git.tuffraid.net/cowch/logistics_support_tool/commits/a20d377))
|
|
||||||
* ci(package.json): missing scripts for committing ([0b17faf](https://git.tuffraid.net/cowch/logistics_support_tool/commits/0b17faf))
|
|
||||||
* ci(releases): added in release it to add to the build process ([1b07f56](https://git.tuffraid.net/cowch/logistics_support_tool/commits/1b07f56))
|
|
||||||
* feat(starter): intial starter release ([b370cb1](https://git.tuffraid.net/cowch/logistics_support_tool/commits/b370cb1))
|
|
||||||
* Initial commit ([e4d3fc9](https://git.tuffraid.net/cowch/logistics_support_tool/commits/e4d3fc9))
|
|
||||||
* Update README.md ([e081c8f](https://git.tuffraid.net/cowch/logistics_support_tool/commits/e081c8f))
|
|
||||||
|
|||||||
9
LstWrapper/LstWrapper.csproj
Normal file
9
LstWrapper/LstWrapper.csproj
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
85
LstWrapper/Program.cs
Normal file
85
LstWrapper/Program.cs
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
using Microsoft.AspNetCore.Builder;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
using System.Net.Http;
|
||||||
|
|
||||||
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
// to build the binary dotnet publish -c Release -o ./publish
|
||||||
|
// Go backend
|
||||||
|
builder.Services.AddHttpClient("GoBackend", client =>
|
||||||
|
{
|
||||||
|
client.BaseAddress = new Uri("http://localhost:8080");
|
||||||
|
client.Timeout = TimeSpan.FromSeconds(30);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Node frontend
|
||||||
|
builder.Services.AddHttpClient("NodeFrontend", client =>
|
||||||
|
{
|
||||||
|
client.BaseAddress = new Uri("http://localhost:3000");
|
||||||
|
client.Timeout = TimeSpan.FromSeconds(30);
|
||||||
|
});
|
||||||
|
|
||||||
|
var app = builder.Build();
|
||||||
|
|
||||||
|
app.UseStaticFiles();
|
||||||
|
|
||||||
|
app.Use((Func<HttpContext, Func<Task>, Task>)(async (context, next) =>
|
||||||
|
{
|
||||||
|
var clientFactory = context.RequestServices.GetRequiredService<IHttpClientFactory>();
|
||||||
|
|
||||||
|
var isApiRequest =
|
||||||
|
context.Request.Path.StartsWithSegments("/api") ||
|
||||||
|
context.Request.Path.StartsWithSegments("/graphql") ||
|
||||||
|
context.Request.Path.StartsWithSegments("/auth") ||
|
||||||
|
!context.Request.Method.Equals("GET", StringComparison.OrdinalIgnoreCase);
|
||||||
|
|
||||||
|
var client = clientFactory.CreateClient(isApiRequest ? "GoBackend" : "NodeFrontend");
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var requestUri = context.Request.Path + context.Request.QueryString;
|
||||||
|
|
||||||
|
var request = new HttpRequestMessage(
|
||||||
|
new HttpMethod(context.Request.Method),
|
||||||
|
requestUri);
|
||||||
|
|
||||||
|
foreach (var header in context.Request.Headers)
|
||||||
|
{
|
||||||
|
if (!request.Headers.TryAddWithoutValidation(header.Key, header.Value.ToArray()))
|
||||||
|
{
|
||||||
|
request.Content ??= new StreamContent(context.Request.Body);
|
||||||
|
request.Content.Headers.TryAddWithoutValidation(header.Key, header.Value.ToArray());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (context.Request.ContentLength > 0 || context.Request.Headers.ContainsKey("Transfer-Encoding"))
|
||||||
|
{
|
||||||
|
request.Content = new StreamContent(context.Request.Body);
|
||||||
|
}
|
||||||
|
|
||||||
|
var response = await client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, context.RequestAborted);
|
||||||
|
|
||||||
|
context.Response.StatusCode = (int)response.StatusCode;
|
||||||
|
|
||||||
|
foreach (var header in response.Headers)
|
||||||
|
{
|
||||||
|
context.Response.Headers[header.Key] = header.Value.ToArray();
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var header in response.Content.Headers)
|
||||||
|
{
|
||||||
|
context.Response.Headers[header.Key] = header.Value.ToArray();
|
||||||
|
}
|
||||||
|
|
||||||
|
context.Response.Headers.Remove("transfer-encoding");
|
||||||
|
|
||||||
|
await response.Content.CopyToAsync(context.Response.Body);
|
||||||
|
}
|
||||||
|
catch (HttpRequestException ex)
|
||||||
|
{
|
||||||
|
context.Response.StatusCode = isApiRequest ? 503 : 502;
|
||||||
|
await context.Response.WriteAsync($"{(isApiRequest ? "Go API" : "Frontend")} unavailable: {ex.Message}");
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
|
||||||
|
app.Run();
|
||||||
23
LstWrapper/Properties/launchSettings.json
Normal file
23
LstWrapper/Properties/launchSettings.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://json.schemastore.org/launchsettings.json",
|
||||||
|
"profiles": {
|
||||||
|
"http": {
|
||||||
|
"commandName": "Project",
|
||||||
|
"dotnetRunMessages": true,
|
||||||
|
"launchBrowser": true,
|
||||||
|
"applicationUrl": "http://localhost:5015",
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"https": {
|
||||||
|
"commandName": "Project",
|
||||||
|
"dotnetRunMessages": true,
|
||||||
|
"launchBrowser": true,
|
||||||
|
"applicationUrl": "https://localhost:7208;http://localhost:5015",
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
8
LstWrapper/appsettings.Development.json
Normal file
8
LstWrapper/appsettings.Development.json
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Information",
|
||||||
|
"Microsoft.AspNetCore": "Warning"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
9
LstWrapper/appsettings.json
Normal file
9
LstWrapper/appsettings.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Information",
|
||||||
|
"Microsoft.AspNetCore": "Warning"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"AllowedHosts": "*"
|
||||||
|
}
|
||||||
15
LstWrapper/web.config
Normal file
15
LstWrapper/web.config
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<location path="." inheritInChildApplications="false">
|
||||||
|
<system.webServer>
|
||||||
|
<handlers>
|
||||||
|
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
|
||||||
|
</handlers>
|
||||||
|
<aspNetCore processPath="dotnet"
|
||||||
|
arguments=".\LstWrapper.dll"
|
||||||
|
stdoutLogEnabled="true"
|
||||||
|
stdoutLogFile=".\logs\stdout"
|
||||||
|
hostingModel="inprocess" />
|
||||||
|
</system.webServer>
|
||||||
|
</location>
|
||||||
|
</configuration>
|
||||||
6
LstWrapper/wwwroot/index.html
Normal file
6
LstWrapper/wwwroot/index.html
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
<p>The new begining to lst</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -8,13 +8,22 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
fmt.Println("Welcome to lst backend where all the fun happens")
|
fmt.Println("Welcome to lst backend where all the fun happens.")
|
||||||
r := gin.Default()
|
r := gin.Default()
|
||||||
|
|
||||||
r.GET("/", errorLoc)
|
|
||||||
|
r.GET("/api/ping", func(c *gin.Context) {
|
||||||
|
c.JSON(200, gin.H{"message": "pong"})
|
||||||
|
})
|
||||||
|
|
||||||
|
r.Any("/api", errorApiLoc)
|
||||||
|
r.Any("/", errorLoc)
|
||||||
r.Run(":8080")
|
r.Run(":8080")
|
||||||
}
|
}
|
||||||
|
|
||||||
func errorLoc(c *gin.Context) {
|
func errorLoc(c *gin.Context) {
|
||||||
c.JSON(http.StatusOK, gin.H{"message": "welcome to lst system you might have just encountered an incorrect area of the app"})
|
c.JSON(http.StatusBadRequest, gin.H{"message": "welcome to lst system you might have just encountered an incorrect area of the app"})
|
||||||
|
}
|
||||||
|
func errorApiLoc(c *gin.Context) {
|
||||||
|
c.JSON(http.StatusBadRequest, gin.H{"message": "looks like you have encountered an api route that dose not exist"})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,16 +2,22 @@
|
|||||||
services:
|
services:
|
||||||
lst_backend:
|
lst_backend:
|
||||||
# build: . # Tell Docker Compose to build the image using the Dockerfile in the current directory
|
# build: . # Tell Docker Compose to build the image using the Dockerfile in the current directory
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: ./backend/Dockerfile
|
||||||
image: git.tuffraid.net/cowch/logistics_support_tool:backend-latest
|
image: git.tuffraid.net/cowch/logistics_support_tool:backend-latest
|
||||||
container_name: lst_backend # A friendly name for your running container
|
container_name: lst_backend # A friendly name for your running container
|
||||||
volumes:
|
volumes:
|
||||||
- /path/to/frontend/backend:/data
|
- /path/to/backend/data:/data
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
lst_frontend:
|
lst_frontend:
|
||||||
# build: . # Tell Docker Compose to build the image using the Dockerfile in the current directory
|
# build: . # Tell Docker Compose to build the image using the Dockerfile in the current directory
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: ./frontend/Dockerfile
|
||||||
image: git.tuffraid.net/cowch/logistics_support_tool:frontend-latest
|
image: git.tuffraid.net/cowch/logistics_support_tool:frontend-latest
|
||||||
container_name: lst_frontend # A friendly name for your running container
|
container_name: lst_frontend # A friendly name for your running container
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -1,48 +1,51 @@
|
|||||||
// src/routes/index.tsx
|
// src/routes/index.tsx
|
||||||
import * as fs from 'node:fs'
|
import * as fs from "node:fs";
|
||||||
import { createFileRoute, useRouter } from '@tanstack/react-router'
|
import { createFileRoute, useRouter } from "@tanstack/react-router";
|
||||||
import { createServerFn } from '@tanstack/react-start'
|
import { createServerFn } from "@tanstack/react-start";
|
||||||
|
|
||||||
const filePath = 'count.txt'
|
const filePath = "count.txt";
|
||||||
|
|
||||||
async function readCount() {
|
async function readCount() {
|
||||||
return parseInt(
|
return parseInt(
|
||||||
await fs.promises.readFile(filePath, 'utf-8').catch(() => '0'),
|
await fs.promises.readFile(filePath, "utf-8").catch(() => "0")
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const getCount = createServerFn({
|
const getCount = createServerFn({
|
||||||
method: 'GET',
|
method: "GET",
|
||||||
}).handler(() => {
|
}).handler(() => {
|
||||||
return readCount()
|
return readCount();
|
||||||
})
|
});
|
||||||
|
|
||||||
const updateCount = createServerFn({ method: 'POST' })
|
const updateCount = createServerFn({ method: "POST" })
|
||||||
.validator((d: number) => d)
|
.validator((d: number) => d)
|
||||||
.handler(async ({ data }) => {
|
.handler(async ({ data }) => {
|
||||||
const count = await readCount()
|
const count = await readCount();
|
||||||
await fs.promises.writeFile(filePath, `${count + data}`)
|
await fs.promises.writeFile(filePath, `${count + data}`);
|
||||||
})
|
});
|
||||||
|
|
||||||
export const Route = createFileRoute('/')({
|
export const Route = createFileRoute("/")({
|
||||||
component: Home,
|
component: Home,
|
||||||
loader: async () => await getCount(),
|
loader: async () => await getCount(),
|
||||||
})
|
});
|
||||||
|
|
||||||
function Home() {
|
function Home() {
|
||||||
const router = useRouter()
|
const router = useRouter();
|
||||||
const state = Route.useLoaderData()
|
const state = Route.useLoaderData();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<div>
|
||||||
|
<p>This is just something to put in here</p>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
updateCount({ data: 1 }).then(() => {
|
updateCount({ data: 1 }).then(() => {
|
||||||
router.invalidate()
|
router.invalidate();
|
||||||
})
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Add 1 to {state}?
|
Add 1 to {state}?
|
||||||
</button>
|
</button>
|
||||||
)
|
</div>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
257
package-lock.json
generated
257
package-lock.json
generated
@@ -1,15 +1,14 @@
|
|||||||
{
|
{
|
||||||
"name": "logistics_support_tool",
|
"name": "logistics_support_tool",
|
||||||
"version": "0.0.2-alpha.14",
|
"version": "0.0.1-alpha.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "logistics_support_tool",
|
"name": "logistics_support_tool",
|
||||||
"version": "0.0.2-alpha.14",
|
"version": "0.0.1-alpha.2",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"conventional-changelog": "^7.1.1",
|
|
||||||
"dotenv": "^17.2.0",
|
"dotenv": "^17.2.0",
|
||||||
"fs-extra": "^11.3.0",
|
"fs-extra": "^11.3.0",
|
||||||
"node-fetch": "^3.3.2"
|
"node-fetch": "^3.3.2"
|
||||||
@@ -1182,67 +1181,6 @@
|
|||||||
"url": "https://github.com/sponsors/sindresorhus"
|
"url": "https://github.com/sponsors/sindresorhus"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@simple-libs/child-process-utils": {
|
|
||||||
"version": "1.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@simple-libs/child-process-utils/-/child-process-utils-1.0.1.tgz",
|
|
||||||
"integrity": "sha512-3nWd8irxvDI6v856wpPCHZ+08iQR0oHTZfzAZmnbsLzf+Sf1odraP6uKOHDZToXq3RPRV/LbqGVlSCogm9cJjg==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@simple-libs/stream-utils": "^1.1.0",
|
|
||||||
"@types/node": "^22.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://ko-fi.com/dangreen"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@simple-libs/child-process-utils/node_modules/@types/node": {
|
|
||||||
"version": "22.16.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.16.3.tgz",
|
|
||||||
"integrity": "sha512-sr4Xz74KOUeYadexo1r8imhRtlVXcs+j3XK3TcoiYk7B1t3YRVJgtaD3cwX73NYb71pmVuMLNRhJ9XKdoDB74g==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"undici-types": "~6.21.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@simple-libs/child-process-utils/node_modules/undici-types": {
|
|
||||||
"version": "6.21.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
|
|
||||||
"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/@simple-libs/stream-utils": {
|
|
||||||
"version": "1.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@simple-libs/stream-utils/-/stream-utils-1.1.0.tgz",
|
|
||||||
"integrity": "sha512-6rsHTjodIn/t90lv5snQjRPVtOosM7Vp0AKdrObymq45ojlgVwnpAqdc+0OBBrpEiy31zZ6/TKeIVqV1HwvnuQ==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@types/node": "^22.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://ko-fi.com/dangreen"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@simple-libs/stream-utils/node_modules/@types/node": {
|
|
||||||
"version": "22.16.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.16.3.tgz",
|
|
||||||
"integrity": "sha512-sr4Xz74KOUeYadexo1r8imhRtlVXcs+j3XK3TcoiYk7B1t3YRVJgtaD3cwX73NYb71pmVuMLNRhJ9XKdoDB74g==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"undici-types": "~6.21.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@simple-libs/stream-utils/node_modules/undici-types": {
|
|
||||||
"version": "6.21.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
|
|
||||||
"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/@tootallnate/quickjs-emscripten": {
|
"node_modules/@tootallnate/quickjs-emscripten": {
|
||||||
"version": "0.23.0",
|
"version": "0.23.0",
|
||||||
"resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz",
|
"resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz",
|
||||||
@@ -1283,6 +1221,7 @@
|
|||||||
"version": "2.4.4",
|
"version": "2.4.4",
|
||||||
"resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz",
|
"resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz",
|
||||||
"integrity": "sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==",
|
"integrity": "sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==",
|
||||||
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@types/parse-path": {
|
"node_modules/@types/parse-path": {
|
||||||
@@ -1888,28 +1827,6 @@
|
|||||||
"node": "^14.18.0 || >=16.10.0"
|
"node": "^14.18.0 || >=16.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/conventional-changelog": {
|
|
||||||
"version": "7.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/conventional-changelog/-/conventional-changelog-7.1.1.tgz",
|
|
||||||
"integrity": "sha512-rlqa8Lgh8YzT3Akruk05DR79j5gN9NCglHtJZwpi6vxVeaoagz+84UAtKQj/sT+RsfGaZkt3cdFCjcN6yjr5sw==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@conventional-changelog/git-client": "^2.5.1",
|
|
||||||
"@types/normalize-package-data": "^2.4.4",
|
|
||||||
"conventional-changelog-preset-loader": "^5.0.0",
|
|
||||||
"conventional-changelog-writer": "^8.2.0",
|
|
||||||
"conventional-commits-parser": "^6.2.0",
|
|
||||||
"fd-package-json": "^2.0.0",
|
|
||||||
"meow": "^13.0.0",
|
|
||||||
"normalize-package-data": "^7.0.0"
|
|
||||||
},
|
|
||||||
"bin": {
|
|
||||||
"conventional-changelog": "dist/cli/index.js"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/conventional-changelog-angular": {
|
"node_modules/conventional-changelog-angular": {
|
||||||
"version": "5.0.13",
|
"version": "5.0.13",
|
||||||
"resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.13.tgz",
|
"resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.13.tgz",
|
||||||
@@ -1957,21 +1874,6 @@
|
|||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/conventional-changelog-conventionalcommits": {
|
|
||||||
"version": "4.6.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.6.3.tgz",
|
|
||||||
"integrity": "sha512-LTTQV4fwOM4oLPad317V/QNQ1FY4Hju5qeBIM1uTHbrnCE+Eg4CdRZ3gO2pUeR+tzWdp80M2j3qFFEDWVqOV4g==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"compare-func": "^2.0.0",
|
|
||||||
"lodash": "^4.17.15",
|
|
||||||
"q": "^1.5.1"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/conventional-changelog-core": {
|
"node_modules/conventional-changelog-core": {
|
||||||
"version": "4.2.4",
|
"version": "4.2.4",
|
||||||
"resolved": "https://registry.npmjs.org/conventional-changelog-core/-/conventional-changelog-core-4.2.4.tgz",
|
"resolved": "https://registry.npmjs.org/conventional-changelog-core/-/conventional-changelog-core-4.2.4.tgz",
|
||||||
@@ -2112,6 +2014,7 @@
|
|||||||
"version": "8.2.0",
|
"version": "8.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-8.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-8.2.0.tgz",
|
||||||
"integrity": "sha512-Y2aW4596l9AEvFJRwFGJGiQjt2sBYTjPD18DdvxX9Vpz0Z7HQ+g1Z+6iYDAm1vR3QOJrDBkRHixHK/+FhkR6Pw==",
|
"integrity": "sha512-Y2aW4596l9AEvFJRwFGJGiQjt2sBYTjPD18DdvxX9Vpz0Z7HQ+g1Z+6iYDAm1vR3QOJrDBkRHixHK/+FhkR6Pw==",
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"conventional-commits-filter": "^5.0.0",
|
"conventional-commits-filter": "^5.0.0",
|
||||||
@@ -2130,6 +2033,7 @@
|
|||||||
"version": "5.0.0",
|
"version": "5.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-5.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-5.0.0.tgz",
|
||||||
"integrity": "sha512-tQMagCOC59EVgNZcC5zl7XqO30Wki9i9J3acbUvkaosCT6JX3EeFwJD7Qqp4MCikRnzS18WXV3BLIQ66ytu6+Q==",
|
"integrity": "sha512-tQMagCOC59EVgNZcC5zl7XqO30Wki9i9J3acbUvkaosCT6JX3EeFwJD7Qqp4MCikRnzS18WXV3BLIQ66ytu6+Q==",
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
@@ -2139,6 +2043,7 @@
|
|||||||
"version": "13.2.0",
|
"version": "13.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/meow/-/meow-13.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/meow/-/meow-13.2.0.tgz",
|
||||||
"integrity": "sha512-pxQJQzB6djGPXh08dacEloMFopsOqGVRKFPYvPOt9XDZ1HasbgDZA74CJGreSU4G3Ak7EFJGoiH2auq+yXISgA==",
|
"integrity": "sha512-pxQJQzB6djGPXh08dacEloMFopsOqGVRKFPYvPOt9XDZ1HasbgDZA74CJGreSU4G3Ak7EFJGoiH2auq+yXISgA==",
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
@@ -2147,111 +2052,6 @@
|
|||||||
"url": "https://github.com/sponsors/sindresorhus"
|
"url": "https://github.com/sponsors/sindresorhus"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/conventional-changelog/node_modules/@conventional-changelog/git-client": {
|
|
||||||
"version": "2.5.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@conventional-changelog/git-client/-/git-client-2.5.1.tgz",
|
|
||||||
"integrity": "sha512-lAw7iA5oTPWOLjiweb7DlGEMDEvzqzLLa6aWOly2FSZ64IwLE8T458rC+o+WvI31Doz6joM7X2DoNog7mX8r4A==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@simple-libs/child-process-utils": "^1.0.0",
|
|
||||||
"@simple-libs/stream-utils": "^1.1.0",
|
|
||||||
"semver": "^7.5.2"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"conventional-commits-filter": "^5.0.0",
|
|
||||||
"conventional-commits-parser": "^6.1.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"conventional-commits-filter": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"conventional-commits-parser": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/conventional-changelog/node_modules/conventional-changelog-preset-loader": {
|
|
||||||
"version": "5.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/conventional-changelog-preset-loader/-/conventional-changelog-preset-loader-5.0.0.tgz",
|
|
||||||
"integrity": "sha512-SetDSntXLk8Jh1NOAl1Gu5uLiCNSYenB5tm0YVeZKePRIgDW9lQImromTwLa3c/Gae298tsgOM+/CYT9XAl0NA==",
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/conventional-changelog/node_modules/conventional-commits-filter": {
|
|
||||||
"version": "5.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-5.0.0.tgz",
|
|
||||||
"integrity": "sha512-tQMagCOC59EVgNZcC5zl7XqO30Wki9i9J3acbUvkaosCT6JX3EeFwJD7Qqp4MCikRnzS18WXV3BLIQ66ytu6+Q==",
|
|
||||||
"license": "MIT",
|
|
||||||
"optional": true,
|
|
||||||
"peer": true,
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/conventional-changelog/node_modules/conventional-commits-parser": {
|
|
||||||
"version": "6.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-6.2.0.tgz",
|
|
||||||
"integrity": "sha512-uLnoLeIW4XaoFtH37qEcg/SXMJmKF4vi7V0H2rnPueg+VEtFGA/asSCNTcq4M/GQ6QmlzchAEtOoDTtKqWeHag==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"meow": "^13.0.0"
|
|
||||||
},
|
|
||||||
"bin": {
|
|
||||||
"conventional-commits-parser": "dist/cli/index.js"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/conventional-changelog/node_modules/hosted-git-info": {
|
|
||||||
"version": "8.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-8.1.0.tgz",
|
|
||||||
"integrity": "sha512-Rw/B2DNQaPBICNXEm8balFz9a6WpZrkCGpcWFpy7nCj+NyhSdqXipmfvtmWt9xGfp0wZnBxB+iVpLmQMYt47Tw==",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"lru-cache": "^10.0.1"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "^18.17.0 || >=20.5.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/conventional-changelog/node_modules/lru-cache": {
|
|
||||||
"version": "10.4.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",
|
|
||||||
"integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",
|
|
||||||
"license": "ISC"
|
|
||||||
},
|
|
||||||
"node_modules/conventional-changelog/node_modules/meow": {
|
|
||||||
"version": "13.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/meow/-/meow-13.2.0.tgz",
|
|
||||||
"integrity": "sha512-pxQJQzB6djGPXh08dacEloMFopsOqGVRKFPYvPOt9XDZ1HasbgDZA74CJGreSU4G3Ak7EFJGoiH2auq+yXISgA==",
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/conventional-changelog/node_modules/normalize-package-data": {
|
|
||||||
"version": "7.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-7.0.0.tgz",
|
|
||||||
"integrity": "sha512-k6U0gKRIuNCTkwHGZqblCfLfBRh+w1vI6tBo+IeJwq2M8FUiOqhX7GH+GArQGScA7azd1WfyRCvxoXDO3hQDIA==",
|
|
||||||
"license": "BSD-2-Clause",
|
|
||||||
"dependencies": {
|
|
||||||
"hosted-git-info": "^8.0.0",
|
|
||||||
"semver": "^7.3.5",
|
|
||||||
"validate-npm-package-license": "^3.0.4"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "^18.17.0 || >=20.5.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/conventional-commit-types": {
|
"node_modules/conventional-commit-types": {
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/conventional-commit-types/-/conventional-commit-types-3.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/conventional-commit-types/-/conventional-commit-types-3.0.0.tgz",
|
||||||
@@ -2996,15 +2796,6 @@
|
|||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"node_modules/fd-package-json": {
|
|
||||||
"version": "2.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/fd-package-json/-/fd-package-json-2.0.0.tgz",
|
|
||||||
"integrity": "sha512-jKmm9YtsNXN789RS/0mSzOC1NUq9mkVd65vbSSVsKdjGvYXBuE4oWe2QOEoFeRmJg+lPuZxpmrfFclNhoRMneQ==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"walk-up-path": "^4.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/fetch-blob": {
|
"node_modules/fetch-blob": {
|
||||||
"version": "3.2.0",
|
"version": "3.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz",
|
||||||
@@ -3483,6 +3274,7 @@
|
|||||||
"version": "4.7.8",
|
"version": "4.7.8",
|
||||||
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz",
|
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz",
|
||||||
"integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==",
|
"integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==",
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"minimist": "^1.2.5",
|
"minimist": "^1.2.5",
|
||||||
@@ -4784,6 +4576,7 @@
|
|||||||
"version": "1.2.7",
|
"version": "1.2.7",
|
||||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz",
|
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz",
|
||||||
"integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==",
|
"integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==",
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
@@ -4832,6 +4625,7 @@
|
|||||||
"version": "2.6.2",
|
"version": "2.6.2",
|
||||||
"resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz",
|
"resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz",
|
||||||
"integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==",
|
"integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==",
|
||||||
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/netmask": {
|
"node_modules/netmask": {
|
||||||
@@ -6264,6 +6058,7 @@
|
|||||||
"version": "7.7.2",
|
"version": "7.7.2",
|
||||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz",
|
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz",
|
||||||
"integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==",
|
"integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==",
|
||||||
|
"dev": true,
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"bin": {
|
"bin": {
|
||||||
"semver": "bin/semver.js"
|
"semver": "bin/semver.js"
|
||||||
@@ -6347,6 +6142,7 @@
|
|||||||
"version": "0.6.1",
|
"version": "0.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
||||||
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
||||||
|
"dev": true,
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
@@ -6356,6 +6152,7 @@
|
|||||||
"version": "3.2.0",
|
"version": "3.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz",
|
||||||
"integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==",
|
"integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==",
|
||||||
|
"dev": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"spdx-expression-parse": "^3.0.0",
|
"spdx-expression-parse": "^3.0.0",
|
||||||
@@ -6366,12 +6163,14 @@
|
|||||||
"version": "2.5.0",
|
"version": "2.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz",
|
||||||
"integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==",
|
"integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==",
|
||||||
|
"dev": true,
|
||||||
"license": "CC-BY-3.0"
|
"license": "CC-BY-3.0"
|
||||||
},
|
},
|
||||||
"node_modules/spdx-expression-parse": {
|
"node_modules/spdx-expression-parse": {
|
||||||
"version": "3.0.1",
|
"version": "3.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz",
|
||||||
"integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==",
|
"integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==",
|
||||||
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"spdx-exceptions": "^2.1.0",
|
"spdx-exceptions": "^2.1.0",
|
||||||
@@ -6382,6 +6181,7 @@
|
|||||||
"version": "3.0.21",
|
"version": "3.0.21",
|
||||||
"resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.21.tgz",
|
"resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.21.tgz",
|
||||||
"integrity": "sha512-Bvg/8F5XephndSK3JffaRqdT+gyhfqIPwDHpX80tJrF8QQRYMo8sNMeaZ2Dp5+jhwKnUmIOyFFQfHRkjJm5nXg==",
|
"integrity": "sha512-Bvg/8F5XephndSK3JffaRqdT+gyhfqIPwDHpX80tJrF8QQRYMo8sNMeaZ2Dp5+jhwKnUmIOyFFQfHRkjJm5nXg==",
|
||||||
|
"dev": true,
|
||||||
"license": "CC0-1.0"
|
"license": "CC0-1.0"
|
||||||
},
|
},
|
||||||
"node_modules/split": {
|
"node_modules/split": {
|
||||||
@@ -6466,6 +6266,21 @@
|
|||||||
"node": ">=10"
|
"node": ">=10"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/standard-version/node_modules/conventional-changelog-conventionalcommits": {
|
||||||
|
"version": "4.6.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.6.3.tgz",
|
||||||
|
"integrity": "sha512-LTTQV4fwOM4oLPad317V/QNQ1FY4Hju5qeBIM1uTHbrnCE+Eg4CdRZ3gO2pUeR+tzWdp80M2j3qFFEDWVqOV4g==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "ISC",
|
||||||
|
"dependencies": {
|
||||||
|
"compare-func": "^2.0.0",
|
||||||
|
"lodash": "^4.17.15",
|
||||||
|
"q": "^1.5.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/stdin-discarder": {
|
"node_modules/stdin-discarder": {
|
||||||
"version": "0.2.2",
|
"version": "0.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.2.2.tgz",
|
"resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.2.2.tgz",
|
||||||
@@ -6762,6 +6577,7 @@
|
|||||||
"version": "3.19.3",
|
"version": "3.19.3",
|
||||||
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz",
|
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz",
|
||||||
"integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==",
|
"integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==",
|
||||||
|
"dev": true,
|
||||||
"license": "BSD-2-Clause",
|
"license": "BSD-2-Clause",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
@@ -6839,21 +6655,13 @@
|
|||||||
"version": "3.0.4",
|
"version": "3.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz",
|
||||||
"integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==",
|
"integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==",
|
||||||
|
"dev": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"spdx-correct": "^3.0.0",
|
"spdx-correct": "^3.0.0",
|
||||||
"spdx-expression-parse": "^3.0.0"
|
"spdx-expression-parse": "^3.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/walk-up-path": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/walk-up-path/-/walk-up-path-4.0.0.tgz",
|
|
||||||
"integrity": "sha512-3hu+tD8YzSLGuFYtPRb48vdhKMi0KQV5sn+uWr8+7dMEq/2G/dtLrdDinkLjqq5TIbIBjYJ4Ax/n3YiaW7QM8A==",
|
|
||||||
"license": "ISC",
|
|
||||||
"engines": {
|
|
||||||
"node": "20 || >=22"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/wcwidth": {
|
"node_modules/wcwidth": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz",
|
||||||
@@ -6923,6 +6731,7 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz",
|
||||||
"integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==",
|
"integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==",
|
||||||
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/wrap-ansi": {
|
"node_modules/wrap-ansi": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "logistics_support_tool",
|
"name": "logistics_support_tool",
|
||||||
"version": "0.0.2-alpha.14",
|
"version": "0.0.1-alpha.2",
|
||||||
"description": "This is the new logisitcs support tool",
|
"description": "This is the new logisitcs support tool",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
"docker": "powershell -File ./scripts/dockerBuild.ps1",
|
"docker": "powershell -File ./scripts/dockerBuild.ps1",
|
||||||
"release:createZip": "powershell -File ./scripts/release.ps1",
|
"release:createZip": "powershell -File ./scripts/release.ps1",
|
||||||
"release:gitea": "node ./scripts/create-gitea-release.js",
|
"release:gitea": "node ./scripts/create-gitea-release.js",
|
||||||
"release": "release-it --verbose --non-interactive --preRelease=alpha",
|
"release:publish": "release-it --verbose --non-interactive --preRelease=alpha",
|
||||||
"commit": "cz"
|
"commit": "cz"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
@@ -36,7 +36,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"conventional-changelog": "^7.1.1",
|
|
||||||
"dotenv": "^17.2.0",
|
"dotenv": "^17.2.0",
|
||||||
"fs-extra": "^11.3.0",
|
"fs-extra": "^11.3.0",
|
||||||
"node-fetch": "^3.3.2"
|
"node-fetch": "^3.3.2"
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ if (Test-Path $envFile) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (-not $env:BUILD_NAME) {
|
if (-not $env:BUILD_NAME) {
|
||||||
Write-Warning "BUILD_NAME environment variable is not set. Cannot create BUILD_NUMBER file."
|
Write-Warning "BUILD_NAME environment variable is not set. Please make sure you have entered the correct info the env"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,7 +100,7 @@ function Update-BuildNumber {
|
|||||||
Pop-Location
|
Pop-Location
|
||||||
|
|
||||||
Push-Location $rootDir/frontend
|
Push-Location $rootDir/frontend
|
||||||
Write-Host "Building the frontend"
|
Write-Host "Building the frontend."
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
if ($LASTEXITCODE -ne 0) {
|
if ($LASTEXITCODE -ne 0) {
|
||||||
@@ -110,11 +110,25 @@ function Update-BuildNumber {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "Fronend build finished successfully."
|
Write-Host "Fronend build finished successfully."
|
||||||
|
Pop-Location
|
||||||
|
|
||||||
|
Write-Host "Building wrapper"
|
||||||
|
Push-Location $rootDir/LstWrapper
|
||||||
|
dotnet publish -c Release -o ./publish
|
||||||
|
|
||||||
Pop-Location
|
Pop-Location
|
||||||
Update-BuildNumber
|
Update-BuildNumber
|
||||||
|
|
||||||
Write-Host "Zipping up the release"
|
Write-Host "Zipping up the release"
|
||||||
npm run release:createZip
|
npm run release:createZip
|
||||||
|
|
||||||
|
$choice = Read-Host "Are we going to create a release? y/N"
|
||||||
|
|
||||||
|
if ($choice -eq "y" -or $choice -eq "Y") {
|
||||||
|
npm run release:gitea $version
|
||||||
|
npm run release:publish
|
||||||
|
}
|
||||||
|
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ if (!version) {
|
|||||||
|
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import { spawnSync } from "child_process";
|
|
||||||
import { fileURLToPath } from "url";
|
import { fileURLToPath } from "url";
|
||||||
import fetch from "node-fetch";
|
import fetch from "node-fetch";
|
||||||
import dotenv from "dotenv";
|
import dotenv from "dotenv";
|
||||||
@@ -39,33 +38,97 @@ if (!GITEA_URL || !GITEA_USERNAME || !GITEA_REPO || !GITEA_TOKEN) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Step 1: Generate or update CHANGELOG.md
|
// Step 1: Generate or update CHANGELOG.md
|
||||||
console.log("Generating CHANGELOG.md...");
|
// console.log("Generating CHANGELOG.md...");
|
||||||
const result = spawnSync(
|
// const result = spawnSync(
|
||||||
"npx",
|
// "npx",
|
||||||
[
|
// [
|
||||||
"conventional-changelog",
|
// "conventional-changelog",
|
||||||
"-p",
|
// "-p",
|
||||||
"conventionalcommits",
|
// "conventionalcommits",
|
||||||
"-i",
|
// "-i",
|
||||||
"CHANGELOG.md",
|
// "CHANGELOG.md",
|
||||||
"-s",
|
// "-s",
|
||||||
"-r",
|
// "-r",
|
||||||
"0",
|
// "0",
|
||||||
],
|
// ],
|
||||||
{ stdio: "inherit", shell: true }
|
// { stdio: "inherit", shell: true }
|
||||||
);
|
// );
|
||||||
|
|
||||||
if (result.status !== 0) {
|
// if (result.status !== 0) {
|
||||||
console.error("Failed to generate changelog");
|
// console.error("Failed to generate changelog");
|
||||||
process.exit(1);
|
// process.exit(1);
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Step 2: Read changelog content for current version
|
// Corrected function to get the latest changelog entry from CHANGELOG.md
|
||||||
const changelog = await fs.readFile("CHANGELOG.md", "utf8");
|
const getLatestChangelog = async () => {
|
||||||
const regex = new RegExp(`## \\[${version}\\][\\s\\S]*?(?=## \\[|$)`, "m");
|
try {
|
||||||
const releaseNotes = changelog.match(regex)?.[0] || changelog;
|
const changelogPath = path.resolve(__dirname, "../CHANGELOG.md");
|
||||||
|
console.log(`Attempting to read changelog from: ${changelogPath}`); // Debugging line
|
||||||
|
const changelogContent = await fs.readFile(changelogPath, "utf8");
|
||||||
|
console.log(
|
||||||
|
"Changelog content read successfully (first 200 chars):",
|
||||||
|
changelogContent.substring(0, 200)
|
||||||
|
); // Debugging line
|
||||||
|
|
||||||
console.log(`Release notes for v${version} saved.`);
|
const lines = changelogContent.trim().split(/\r?\n/);
|
||||||
|
|
||||||
|
let latestReleaseNotes = [];
|
||||||
|
let inLatestRelease = false;
|
||||||
|
let foundFirstHeading = false;
|
||||||
|
|
||||||
|
// Regex to match a conventional changelog heading format: "## [version](url) (date)"
|
||||||
|
// The key is to correctly parse the URL part in parentheses.
|
||||||
|
const releaseHeadingRegex = /^## \[.*?\]\(.*?\)\s\(.*\)$/;
|
||||||
|
|
||||||
|
for (const line of lines) {
|
||||||
|
// Trim each line to handle potential leading/trailing spaces when matching
|
||||||
|
const trimmedLine = line.trim();
|
||||||
|
|
||||||
|
if (trimmedLine.match(releaseHeadingRegex)) {
|
||||||
|
if (!foundFirstHeading) {
|
||||||
|
// This is the first (latest) release heading we encounter
|
||||||
|
inLatestRelease = true;
|
||||||
|
foundFirstHeading = true;
|
||||||
|
// We skip the heading line itself from the notes body
|
||||||
|
continue;
|
||||||
|
} else {
|
||||||
|
// This is a subsequent release heading, meaning we've passed the latest release's content
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// If we are currently inside the latest release block, add the line
|
||||||
|
if (inLatestRelease) {
|
||||||
|
latestReleaseNotes.push(trimmedLine); // Use trimmedLine here
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Clean up the collected notes by filtering out empty lines if they are not meaningful content
|
||||||
|
// and joining them back, then trimming.
|
||||||
|
const cleanedNotes = latestReleaseNotes
|
||||||
|
.filter((line) => line !== "") // Remove truly empty lines
|
||||||
|
.join("\n")
|
||||||
|
.trim();
|
||||||
|
|
||||||
|
if (cleanedNotes) {
|
||||||
|
console.log(
|
||||||
|
"Successfully extracted latest changelog notes:\n",
|
||||||
|
cleanedNotes
|
||||||
|
);
|
||||||
|
return cleanedNotes;
|
||||||
|
} else {
|
||||||
|
console.warn(
|
||||||
|
"Could not find any content for the latest changelog entry in CHANGELOG.md. This might mean the file is empty, or the regex for headings is incorrect, or there's no content after the heading."
|
||||||
|
);
|
||||||
|
return "No changelog notes available.";
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.error("Error reading or parsing CHANGELOG.md:", err);
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const releaseNotes = await getLatestChangelog();
|
||||||
|
|
||||||
// Step 3: Create or update Gitea release
|
// Step 3: Create or update Gitea release
|
||||||
const createOrUpdateRelease = async () => {
|
const createOrUpdateRelease = async () => {
|
||||||
@@ -117,7 +180,7 @@ const createOrUpdateRelease = async () => {
|
|||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
tag_name: tagName,
|
tag_name: tagName,
|
||||||
name: tagName,
|
name: `Release ${fullVersion}`,
|
||||||
body: releaseNotes,
|
body: releaseNotes,
|
||||||
draft: false,
|
draft: false,
|
||||||
prerelease: true,
|
prerelease: true,
|
||||||
@@ -143,7 +206,6 @@ const createOrUpdateRelease = async () => {
|
|||||||
return release;
|
return release;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Step 4: Upload asset
|
|
||||||
const uploadAsset = async (release) => {
|
const uploadAsset = async (release) => {
|
||||||
const apiUrl = `https://${GITEA_URL}/api/v1/repos/${GITEA_USERNAME}/${GITEA_REPO}/releases/assets?tag=${release.tag_name}`;
|
const apiUrl = `https://${GITEA_URL}/api/v1/repos/${GITEA_USERNAME}/${GITEA_REPO}/releases/assets?tag=${release.tag_name}`;
|
||||||
const filePath = `releases/release-${fullVersion}.zip`;
|
const filePath = `releases/release-${fullVersion}.zip`;
|
||||||
@@ -182,7 +244,7 @@ const uploadAsset = async (release) => {
|
|||||||
(async () => {
|
(async () => {
|
||||||
try {
|
try {
|
||||||
const release = await createOrUpdateRelease();
|
const release = await createOrUpdateRelease();
|
||||||
await uploadAsset(release);
|
// await uploadAsset(release); // fix this later and just update the readme.
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Write-Host "Building the docker images for front and backend"
|
Write-Host "Building the docker images for front and backend"
|
||||||
docker build -t logistics_support_tool:frontend-latest -f ../frontend/Dockerfile ../frontend
|
docker build -t logistics_support_tool:frontend-latest -f ./frontend/Dockerfile --no-cache ./frontend
|
||||||
docker build -t logistics_support_tool:backend-latest -f ../backend/Dockerfile ../backend
|
docker build -t logistics_support_tool:backend-latest -f ./backend/Dockerfile --no-cache ./backend
|
||||||
|
|
||||||
Write-Host "Tagging the builds with latest this is for testing test basically."
|
Write-Host "Tagging the builds with latest this is for testing test basically."
|
||||||
docker tag logistics_support_tool:frontend-latest git.tuffraid.net/cowch/logistics_support_tool:frontend-latest
|
docker tag logistics_support_tool:frontend-latest git.tuffraid.net/cowch/logistics_support_tool:frontend-latest
|
||||||
|
|||||||
46
scripts/iisControls.ps1
Normal file
46
scripts/iisControls.ps1
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
param (
|
||||||
|
[string]$ServerName,
|
||||||
|
[string]$AppPoolName,
|
||||||
|
[string]$StopOrStart
|
||||||
|
)
|
||||||
|
|
||||||
|
write-host $StopOrStart
|
||||||
|
if ($StopOrStart -eq "stop") {
|
||||||
|
Invoke-Command -ComputerName $ServerName -Credential $cred -ScriptBlock {
|
||||||
|
param($AppPoolName)
|
||||||
|
|
||||||
|
Import-Module WebAdministration
|
||||||
|
Write-Host "Stopping AppPool '$AppPoolName' on $($env:COMPUTERNAME)"
|
||||||
|
|
||||||
|
try {
|
||||||
|
Stop-WebAppPool -Name $AppPoolName -ErrorAction Stop
|
||||||
|
|
||||||
|
Start-Sleep -Seconds 2
|
||||||
|
$state = (Get-WebAppPoolState -Name $AppPoolName).Value
|
||||||
|
Write-Host "Result: $state"
|
||||||
|
} catch {
|
||||||
|
Write-Error $_.Exception.Message
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
} -ArgumentList $AppPoolName
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($StopOrStart -eq "start"){
|
||||||
|
Invoke-Command -ComputerName $ServerName -Credential $cred -ScriptBlock {
|
||||||
|
param($AppPoolName)
|
||||||
|
|
||||||
|
Import-Module WebAdministration
|
||||||
|
Write-Host "Starting AppPool '$AppPoolName' on $($env:COMPUTERNAME)"
|
||||||
|
|
||||||
|
try {
|
||||||
|
Start-WebAppPool -Name $AppPoolName
|
||||||
|
Start-Sleep -Seconds 2
|
||||||
|
$state = (Get-WebAppPoolState -Name $AppPoolName).Value
|
||||||
|
Write-Host "Result: $state"
|
||||||
|
} catch {
|
||||||
|
Write-Error $_.Exception.Message
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
} -ArgumentList $AppPoolName
|
||||||
|
}
|
||||||
|
|
||||||
@@ -66,17 +66,38 @@ if ($existingZips.Count -gt $keepReleases) {
|
|||||||
|
|
||||||
Write-Host "`nPackaging release: $($zipName)"
|
Write-Host "`nPackaging release: $($zipName)"
|
||||||
|
|
||||||
$filesToInclude = @(
|
# Create a temporary staging directory
|
||||||
"backend\lst_backend.exe",
|
$tempStageDir = New-Item -ItemType Directory -Path (Join-Path $env:TEMP "lst_staging") -Force
|
||||||
"frontend\.nitro",
|
|
||||||
"frontend\.tanstack",
|
# Copy files to organized structure
|
||||||
"frontend\.output",
|
$filesToCopy = @(
|
||||||
"frontend\public",
|
@{ Source = "backend\lst_backend.exe"; Destination = "backend\lst_backend.exe" },
|
||||||
"package.json",
|
@{ Source = "LstWrapper\publish"; Destination = "lstwrapper\" },
|
||||||
"CHANGELOG.md",
|
@{ Source = "frontend\.nitro"; Destination = "frontend\.nitro" },
|
||||||
"README.md"
|
@{ Source = "frontend\.tanstack"; Destination = "frontend\.tanstack" },
|
||||||
|
@{ Source = "frontend\.output"; Destination = "frontend\.output" },
|
||||||
|
@{ Source = "frontend\public"; Destination = "frontend\public" },
|
||||||
|
@{ Source = "package.json"; Destination = "package.json" },
|
||||||
|
@{ Source = "CHANGELOG.md"; Destination = "CHANGELOG.md" },
|
||||||
|
@{ Source = "README.md"; Destination = "README.md" }
|
||||||
)
|
)
|
||||||
|
|
||||||
Compress-Archive -Path $filesToInclude -DestinationPath $zipPath
|
foreach ($file in $filesToCopy) {
|
||||||
|
$destPath = Join-Path $tempStageDir $file.Destination
|
||||||
|
New-Item -ItemType Directory -Path (Split-Path $destPath -Parent) -Force | Out-Null
|
||||||
|
Copy-Item -Path $file.Source -Destination $destPath -Recurse -Force
|
||||||
|
}
|
||||||
|
|
||||||
|
# Create the zip from the staged directory
|
||||||
|
Compress-Archive -Path "$tempStageDir\*" -DestinationPath $zipPath
|
||||||
|
|
||||||
|
# Clean up temporary directory
|
||||||
|
Remove-Item $tempStageDir -Recurse -Force
|
||||||
|
|
||||||
Write-Host "`nRelease package created at: $($zipPath)"
|
Write-Host "`nRelease package created at: $($zipPath)"
|
||||||
|
Write-Host "Organized structure:"
|
||||||
|
Write-Host "- backend/"
|
||||||
|
Write-Host "- frontend/"
|
||||||
|
Write-Host "- lstwrapper/"
|
||||||
|
Write-Host "- CHANGELOG.md"
|
||||||
|
Write-Host "- README.md"
|
||||||
Reference in New Issue
Block a user