jerith666 / elbum Goto Github PK
View Code? Open in Web Editor NEWWeb photo album generator in Elm and Haskell
Home Page: https://jerith666.github.io/elbum-demo/
License: Other
Web photo album generator in Elm and Haskell
Home Page: https://jerith666.github.io/elbum-demo/
License: Other
The first thing I did with this was run it on my phone photos folder, just to see what the output looked like. That's 9673 images. The result was my machine UI froze, ha. Last update from btop showed 19G memory usage from elbum (I have 32G), but hard to say what final memory usage was as the screen was frozen, mouse pointer wouldn't move, etc. Rebooted and ran on a smaller folder with fewer images, but still impressive memory usage of like 5.4G. So it works, but better for a curated gallery than a comprehensive catalog it seems.
Include tests with images of the same and different heights. Include tests with images whose combined width is large enough to induce multiple images in the same column. Include tests with images of different widths, requiring them to be scaled to fit the column width.
src/client/src/ThumbPageTests.elm
✅ Commit b6e5a5b
• Create a new Elm test file named
ThumbPageTests.elm
in thesrc/client/src/
directory.
• Import theThumbPage
module, theelm-test
library, and any other necessary dependencies at the top of the file.
• Define a suite of tests for thespreadThumbs
function. Each test should cover a different scenario as described in the issue.
• For each test, create a set of input data that matches the scenario, call thespreadThumbs
function with this data, and assert that the output is as expected.
• Group all the tests into a test suite using thesuite
function from theelm-test
library.Sandbox Execution Logs
Sandbox logs 1/3
⡿ Downloading Trunk 1.15.0... ⢿ Downloading Trunk 1.15.0... ⣻ Downloading Trunk 1.15.0... ⣽ Downloading Trunk 1.15.0... ⣾ Downloading Trunk 1.15.0... ⣷ Downloading Trunk 1.15.0... ⣯ Downloading Trunk 1.15.0... ⣟ Downloading Trunk 1.15.0... ⡿ Downloading Trunk 1.15.0... ⢿ Downloading Trunk 1.15.0... ⣻ Downloading Trunk 1.15.0... ⣽ Downloading Trunk 1.15.0... ⣾ Downloading Trunk 1.15.0... ⣷ Downloading Trunk 1.15.0... ✔ Downloading Trunk 1.15.0... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done
✔ 12 linters were enabled (.trunk/trunk.yaml)
actionlint 1.6.25 (2 github-workflow files)
checkov 2.4.9 (5 json, 6 yaml files)
git-diff-check (80 files)
markdownlint 0.36.0 (2 markdown files) (created .markdownlint.yaml)
nixpkgs-fmt 1.3.0 (13 nix files)
osv-scanner 1.3.6 (1 lockfile file)
prettier 3.0.3 (2 html, 4 json, 2 markdown, 6 yaml files)
shellcheck 0.9.0 (8 shell files) (created .shellcheckrc)
shfmt 3.6.0 (8 shell files)
trivy 0.45.0 (1 lockfile, 6 yaml files)
trufflehog 3.54.4 (81 files)
yamllint 1.32.0 (6 yaml files) (created .yamllint.yaml)Next Steps
Read documentation
Our documentation can be found at https://docs.trunk.ioGet help and give feedback
Join the Trunk community at https://slack.trunk.io</details> <details > <summary>Sandbox logs 2/3</summary>
Checked 1 file
✔ No issues</details> <details open> <summary>Sandbox logs 3/3</summary>
Found no applicable linters for the requested path
</details> </details>
Looks like a submodule is needed for the nix-build to succeed! You may want to update your readme.
I did git submodule update --init --recursive
and then the build succeeded. But without that you get:
-- MISSING SOURCE DIRECTORY ------------------------------------------- elm.json
I need a valid elm.json file, but the "source-directories" field lists the
following directory:
vendor/elm-route-url/src
I cannot find it though. Is it missing? Is there a typo?
error: builder for '/nix/store/zx7vpvdd26q365l8q8x86fchq1r8bqm7-jerith666-elbum-0.1.0.drv' failed with exit code 1;
last 10 log lines:
> Dependencies ready!
> -- MISSING SOURCE DIRECTORY ------------------------------------------- elm.json
>
> I need a valid elm.json file, but the "source-directories" field lists the
> following directory:
>
> vendor/elm-route-url/src
>
> I cannot find it though. Is it missing? Is there a typo?
>
For full logs, run 'nix log /nix/store/zx7vpvdd26q365l8q8x86fchq1r8bqm7-jerith666-elbum-0.1.0.drv'.
error: 1 dependencies of derivation '/nix/store/1avqhga2z3xlyir6jy03ql4faxcd3rgh-elbum.drv' failed to build
I've also used nix build "git+file://$(pwd)?submodules=1"
before so that's maybe an option?
https://github.com/elm/compiler/blob/master/upgrade-docs/0.19.md
Incompatible dependencies reported by elm-upgrade
:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.