Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite in Phoenix #5

Merged
merged 33 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
4cfe77e
inititial commit
KasperVaessen Dec 4, 2024
de70acc
daily data
KasperVaessen Dec 4, 2024
cdd91ec
working first page
KasperVaessen Dec 4, 2024
84c6379
all pages working
KasperVaessen Dec 4, 2024
d85222f
somewhat responsive
KasperVaessen Dec 4, 2024
adb0bd3
allow url year and day selection
KasperVaessen Dec 4, 2024
981f23f
make prod ready
KasperVaessen Dec 4, 2024
cb658df
actions deploy, hopefully works
KasperVaessen Dec 4, 2024
c6e165e
test push
KasperVaessen Dec 4, 2024
3f1a56d
oopsie
KasperVaessen Dec 4, 2024
6b543ef
lowercase container resistry url
KasperVaessen Dec 4, 2024
ecc835e
copy mistake
KasperVaessen Dec 4, 2024
92346a8
only show first challenge
KasperVaessen Dec 4, 2024
462843a
auto scrolling
KasperVaessen Dec 4, 2024
fa58f90
scroll less each time and also loop
KasperVaessen Dec 4, 2024
c506af6
cache output of processing function instead of raw data
KasperVaessen Dec 5, 2024
74711e8
added owls }:>
KasperVaessen Dec 5, 2024
e7b259c
page_title
KasperVaessen Dec 5, 2024
71a99bf
favicons
KasperVaessen Dec 5, 2024
f62e4de
added data api
KasperVaessen Dec 5, 2024
c8161a4
remove coming conflicts
KasperVaessen Dec 5, 2024
22b7d7f
Merge branch 'aoch-branch'
KasperVaessen Dec 5, 2024
216550c
remove old files
KasperVaessen Dec 5, 2024
15a329f
update readme and user-agent
KasperVaessen Dec 5, 2024
95e64bf
remove unused parts
KasperVaessen Dec 5, 2024
2de9e5b
remove gettext
KasperVaessen Dec 5, 2024
4f1e607
home screen is day leaderboard
KasperVaessen Dec 5, 2024
5496e76
change port to 8080
KasperVaessen Dec 5, 2024
ff2ce35
update readme
KasperVaessen Dec 5, 2024
3ae925f
add expose to dockerfile
KasperVaessen Dec 5, 2024
cb0f46f
fix dockerfile for refactoring
KasperVaessen Dec 5, 2024
5d7559c
expose port again
KasperVaessen Dec 5, 2024
9c286e0
update readme to include env variables
KasperVaessen Dec 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This file excludes paths from the Docker build context.
#
# By default, Docker's build context includes all files (and folders) in the
# current directory. Even if a file isn't copied into the container it is still sent to
# the Docker daemon.
#
# There are multiple reasons to exclude files from the build context:
#
# 1. Prevent nested folders from being copied into the container (ex: exclude
# /assets/node_modules when copying /assets)
# 2. Reduce the size of the build context and improve build time (ex. /build, /deps, /doc)
# 3. Avoid sending files containing sensitive information
#
# More information on using .dockerignore is available here:
# https://docs.docker.com/engine/reference/builder/#dockerignore-file

.dockerignore

# Ignore git, but keep git HEAD and refs to access current commit hash if needed:
#
# $ cat .git/HEAD | awk '{print ".git/"$2}' | xargs cat
# d0b8727759e1e0e7aa3d41707d12376e373d5ecc
.git
!.git/HEAD
!.git/refs

# Common development/test artifacts
/cover/
/doc/
/test/
/tmp/
.elixir_ls

# Mix artifacts
/_build/
/deps/
*.ez

# Generated on crash by the VM
erl_crash.dump

# Static artifacts - These should be fetched and built inside the Docker image
/assets/node_modules/
/priv/static/assets/
/priv/static/cache_manifest.json
5 changes: 5 additions & 0 deletions .formatter.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[
import_deps: [:phoenix],
plugins: [Phoenix.LiveView.HTMLFormatter],
inputs: ["*.{heex,ex,exs}", "{config,lib,test}/**/*.{heex,ex,exs}"]
]
190 changes: 25 additions & 165 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,177 +1,37 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# The directory Mix will write compiled artifacts to.
/_build/

# C extensions
*.so
# If you run "mix test --cover", coverage assets end up here.
/cover/

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# The directory Mix downloads your dependencies sources to.
/deps/

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Where 3rd-party dependencies like ExDoc output generated docs.
/doc/

# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Ignore .fetch files in case you like to edit your project deps locally.
/.fetch

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/
# If the VM crashes, it generates a dump, let's ignore it too.
erl_crash.dump

# Translations
*.mo
*.pot
# Also ignore archive artifacts (built via "mix archive.build").
*.ez

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal
# Temporary files, for example, from tests.
/tmp/

# Flask stuff:
instance/
.webassets-cache
# Ignore package tarball (built via "mix hex.build").
aoch-*.tar

# Scrapy stuff:
.scrapy
# Ignore assets that are produced by build tools.
/priv/static/assets/

# Sphinx documentation
docs/_build/
# Ignore digested assets cache.
/priv/static/cache_manifest.json

# PyBuilder
.pybuilder/
target/
# In case you use Node.js/npm, you want to ignore these.
npm-debug.log
/assets/node_modules/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

# Ignore tmp folder
tmp/

# VSCode
.vscode/*
# !.vscode/settings.json
# !.vscode/tasks.json
# !.vscode/launch.json
# !.vscode/extensions.json
# !.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix
Loading
Loading