Commit Graph
88 Commits
Author SHA1 Message Date
efim e4a18da5c2 docs(13): lessons learned fragments in thymeleaf 2023-07-06 06:16:55 +00:00
efim d73c39500b docs(12): lessons learned and docker deploy 2023-07-05 06:47:10 +00:00
efim 5dced77b4d docs(11): readme with lessons learned 2023-07-04 06:40:24 +00:00
efim 88e1d04e0d feat(11): docker image for price grid app 2023-07-04 05:19:57 +00:00
efim 572b63c82d feat(root): attempt to create combined project
right now struggling with making page relative links,
so that images would get pulled from "subproj/public" path
2023-07-03 07:34:41 +00:00
efim f6d8a1de8d feat(14): nix derivation to build docker image 2023-07-03 06:23:46 +00:00
efim 80af2e0fd0 feat(14): nix installation module for rps 2023-07-02 12:51:45 +00:00
efim 9ddd9d3943 fix(14): halo should be around winning hand 2023-07-02 12:31:18 +00:00
efim 59cab44920 feat(14): header desktop styling 2023-07-02 12:07:13 +00:00
efim a7dbfffa8e feat(14): styling of desktop rules modal 2023-07-02 11:50:47 +00:00
efim b67b3cdc89 feat(14): adding initial rules modal overlay 2023-07-02 11:41:31 +00:00
efim 372fb5a6ad feat(14): end of game animation
couldn't make circles grow from the center, they still had shared top
point.
the templates are certainly not quite plesant to look at, with 2 states
being showed into same big template.

i suppose that animations for both hands in the showdow, and for single
hand in showdown would be better stored in separate files.

and maybe appended by the htmx replacements, but i'm feeling rushed
2023-07-02 10:11:10 +00:00
efim 0c8a9b91e0 fix(14): winning logic for rock 2023-07-02 07:22:37 +00:00
efim 18d91b742e fix(14): prettier animation 2023-07-02 07:22:28 +00:00
efim 69dc59a1ed feat(14): animated countdown to house choice 2023-07-02 07:17:28 +00:00
efim 73ccfba393 feat(14): update and persist scores 2023-07-02 06:58:33 +00:00
efim 4a5a13f6d4 fix(14): styling and text of message 2023-07-02 06:26:28 +00:00
efim 697985a480 feat(14): appearing message, new game request 2023-07-02 06:15:11 +00:00
efim 4e1f4f4a8e feat(14): setting up result message with data
i think i should be able to make it appear with delay just with css
(and that would also mean that my initial delayed call to get house
choice is also not necessary, but oh well, this is still nice practice)
2023-07-02 06:01:00 +00:00
efim 02a5f41800 refactor: make choices object, move out style
this should allow to write 'isBeating' function over choices.
and maybe move to enums
2023-07-02 05:26:23 +00:00
efim 54af09d356 feat(14): easy htmx automatic timed request 2023-07-01 20:07:53 +00:00
efim de3d4781f0 feat(14): manual request of house choice
hodgepodge of 2 fragments which are put into house choice depending on
the state.

the alignment is done in a very not nice way.
2023-07-01 20:00:19 +00:00
efim 66013ae1c6 feat(14): template in showdown-table, show choice 2023-07-01 14:20:52 +00:00
efim 69a464a767 feat(14): controls generated from fragment
with their own ids and htmx requests to submit the vote
2023-07-01 13:40:48 +00:00
efim 560ce6896a feat(14): controls models for fragment rendering 2023-07-01 13:06:36 +00:00
efim 91c53429e0 feat(14): initial static section change
paper control switches "controls" to "showdown" - the fragment of
results page. yay
2023-07-01 13:05:55 +00:00
efim 726cadec19 feat(14): final static main stylig 2023-07-01 08:10:16 +00:00
efim 9fc2e959fa feat(14): initial static styling of showdown 2023-07-01 07:25:20 +00:00
efim bed0387575 feat(14): styled static selection screen 2023-07-01 06:09:06 +00:00
efim de431a4bc0 feat(14): styled 3 controls, with css vars
for size, colors, position, this should be what i need i hope
2023-07-01 05:38:59 +00:00
efim 364d8a737a feat: initial styling of control 2023-07-01 04:58:37 +00:00
efim 6aa5c25a5e feat(14): adding exercise resources and guide 2023-06-30 18:20:39 +00:00
efim 1c8bc38f29 feat(14): enabling tailwindcss
the command to generate
"tailwindcss -i ./src/input.css -o ./src/main/resources/public/output.css --watch"
and this should be same during dev and in install script,
but. we'll be committing the output.css, let's try that
2023-06-30 17:03:21 +00:00
efim 83c75ad3a9 feat(14): enabling public resource serving
this time with "staticResources" for files in 'main/resources' which
should be copied and put onto classpath by the scala compilation, yay
2023-06-30 16:40:40 +00:00
efim ec5cac0680 feat(11): enabled cask server with simple template 2023-06-30 14:06:15 +00:00
efim 770b4f6e87 init(14): scala project def with main args 2023-06-30 13:47:20 +00:00
efim b6ba1dfcd0 feat: installing htmx and toggling card size 2023-06-30 11:58:54 +00:00
efim 3e00aa5f3d feat(13): rest route get single testimonial card
not ideal, that i need separate file, even though i can use the fragment
from the main file.

and having th:eac in same place as th:fragment means rendering that
fragment and passing element over which i'm iterating doesn't help if
collection is empty
2023-06-30 03:44:41 +00:00
efim c9195759a8 feat(13): dynamic grid desktop layout 2023-06-29 19:30:12 +00:00
efim 36b91cd5d1 feat(13): desktop grid styling 2023-06-29 19:09:30 +00:00
efim 4248d1b047 feat(13): encoding data on server 2023-06-29 18:18:33 +00:00
efim 657d7c7407 feat: repeating dynamic testimonial section 2023-06-29 16:59:55 +00:00
efim 951d364380 feat: styling statically all other testimonials 2023-06-29 16:13:05 +00:00
efim 71be19c677 feat: styled first testimony as static page
bg - relative from 'output.css'
image - relative from templates/index.html

ideally i'll figure out how to lay out things, so that relative paths
would be same as paths during deploy
2023-06-29 15:54:47 +00:00
efim ec8c8bb678 feat: setting up mess of thymeleaf.
had problems with th:fragment, getting errors
Caused by: ognl.OgnlException: source is null for getProperty(null, "text")

now will try to style the page as if it's static page, and then add
thymeleaf things
2023-06-29 15:23:47 +00:00
efim 7fac41488c feat: project to play with simpler fragments
my problem was - thinking that th:fragment is not rendered
but it is, and i get null poniter error, because argument is not there

the object under name used in fragment should already be available, for
example take out of th:each
2023-06-29 15:20:59 +00:00
efim 2dff41f428 feat(13): style guide into config 2023-06-29 12:13:18 +00:00
efim d181064165 feat(13): setting up tailwindcss 2023-06-29 11:35:03 +00:00
efim df09abd9a4 feat(13) adding exercise resources 2023-06-29 11:32:14 +00:00
efim d35bf9735c feat(13): starting simple web server 2023-06-28 15:35:34 +00:00
efim 28f2cf281a init(13): new sbt project, main args 2023-06-28 15:24:03 +00:00
efim 2f1804a9fd feat(12): nix installation of exercise 2023-06-28 12:51:03 +00:00
efim abf0c7262d docs: saving some things about dev process 2023-06-28 12:28:59 +00:00
efim 520dd6de9c feat(12): moving order summary into template file 2023-06-28 12:16:52 +00:00
efim 1d7647bcdf feat(12): active states styled 2023-06-28 12:10:25 +00:00
efim 6cd6c8cc3e feat(12): desktop styling 2023-06-28 12:04:22 +00:00
efim 0816b79c26 feat(12): styling mobile 2023-06-28 11:53:11 +00:00
efim 578c5d7d05 feat(12): adding style guide to config 2023-06-28 08:55:01 +00:00
efim b8c5a0f19b feat(12): tailwindcss init 2023-06-28 08:43:28 +00:00
efim 3e395b5034 feat(12): adding assets of the exercise 2023-06-28 08:35:31 +00:00
efim 77dca6b951 feat(12): plugin to restart dev server in sbt 2023-06-28 08:29:38 +00:00
efim 509c45b357 feat(12): adding thymeleaf lib and template resp 2023-06-28 07:18:00 +00:00
efim d0f8cd771e init(12): new sbt project: static price component 2023-06-28 06:11:07 +00:00
efim e23afdab6f feat(11): adding reverse proxy to module 2023-06-27 15:53:28 +00:00
efim e618397eb8 fix(11): relative paths to resources 2023-06-27 14:37:43 +00:00
efim f37fc0da11 fix(11): adding missing systemd options
Configure unit start rate limiting. Units which are started more than startLimitBurst times within an interval time interval are not permitted to start any more.
https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=startLimit
2023-06-27 13:49:20 +00:00
efim 73bd2eba84 feat(11): initial module with a service 2023-06-27 13:19:23 +00:00
efim e7594ef2eb feat: nix build enabled 2023-06-26 20:52:44 +00:00
efim ef63cd474f feat: adding assebly
run with
 java -jar ./target/scala-3.3.0/priceGrid-assembly-0.0.1.jar
build with
assebly command in sbt
2023-06-26 18:50:36 +00:00
efim 44340882ab feat: moving to sbt for building
it will be able to build into nix with sbt-derivation
oh well
2023-06-26 18:42:42 +00:00
efim dbe2cd47da feat: accepting port and host
using lihaoyi mainargs, yay
and running .main on custom cask.Main

had a problem with run arguments "port" and "host" having same name as
inner attributes of cask.Main and i guess infinite recursion when i
tried to reference outer args, the more you know
2023-06-26 16:43:05 +00:00
efim a5402c1fe2 refactor(11): allow passing routes configuration 2023-06-26 15:37:30 +00:00
efim e5210fb26f fix(11): style & sizes 2023-06-26 14:14:48 +00:00
efim 57e0347c53 feat(11): adding font from google fonts 2023-06-26 14:03:42 +00:00
efim 88fe55bf45 feat(11): styling for mobile and desktop 2023-06-26 13:58:59 +00:00
efim 5294516707 refactor(11): putting index.html into scalatags 2023-06-26 10:35:08 +00:00
efim 05cdea56de feat(11): adding static files and task style guide 2023-06-26 08:02:26 +00:00
efim 6fec3d54ee init(11): setting up tailwindcss 2023-06-26 06:55:28 +00:00
efim 4475943a98 init(11): simplest scala scaffolding 2023-06-26 06:55:23 +00:00
efim fd75be6abe feat: enabling TailwindCSS styling
with manual running of cli:
tailwindcss -i ./src/input.css -o ./dist/output.css --watch
2023-06-26 06:01:03 +00:00
efim 98d6f77014 feat: returning some basic pages 2023-06-25 19:47:09 +00:00
efim d44a6a545d feat: adding simplest cask routes 2023-06-25 14:49:55 +00:00
efim 44cc9209b4 init: scala-cli project with some dependencies 2023-06-25 13:59:51 +00:00
efim 8164f46045 docs: readme for metals setup 2023-06-25 13:20:10 +00:00
efim 64b2f06aca docs: readme with things that work and links 2023-06-25 13:19:48 +00:00
efim 1bfd0b1097 init: attempting to joing metals and scala-cli 2023-06-25 13:02:59 +00:00
efim 43ed6c456d init: project attempting to use scala-cli 2023-06-25 13:02:47 +00:00
efim 2727bbc4e6 init: repo with steps of learning htmx 2023-06-25 12:18:37 +00:00