Files
Claper/mix.exs
Alex Lion 5bd4793b6e Version 2.4.0
## ⚠️ Breaking changes

- S3 variables are now named: S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY, S3_REGION and S3_BUCKET
- Users now have roles. Refer to the `roles` table and assign a role to a user with the `role_id` column in the `users` table.

## Features

- Add Admin Panel to manage users and presentations
- Add user roles: user, admin
- Add `LANGUAGES` setting to configure available languages in the app
- Add hideable presenter attendee count (#183 #155)
- Add Hungarian translation (#161)
- Add Latvian translation (#163)
- Add custom S3 endpoint with `S3_SCHEME`, `S3_HOST`, `S3_PORT` and `S3_PUBLIC_URL`

## Fixes and improvements

- Upgrade JS dependencies
- Upgrade Elixir dependencies, including Phoenix Live View to 1.0.17
- Upgrade to Tailwind 4+
- Refactor view templates to use {} instead of <%= %>
- Fix event name validation to be required
- Docker image is now using Ubuntu instead of Alpine for better dependencies support
- Fix scrollbar not showing in event manager when no presentation file (#164) (@aryel780)
- Fix settings scroll for small screen (#168)
- Fix duplicate key quiz when duplicate (#182)
- Fix email change confirmation (#172)
- Fix italian translation (#179)
- Fix random poll choices (#184)
2025-12-26 14:46:16 +01:00

146 lines
4.2 KiB
Elixir

defmodule Claper.MixProject do
use Mix.Project
@version "2.4.0"
def project do
[
app: :claper,
version: @version,
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
# Docs
name: "Claper",
source_url: "https://github.com/ClaperCo/Claper",
homepage_url: "https://claper.co",
docs: [
logo: "priv/static/images/logo.png",
groups_for_modules: [
"User management": [
~r/Claper\.Account\.?/,
~r/ClaperWeb\.UserRegistration\.?/,
~r/ClaperWeb\.UserSession\.?/,
~r/ClaperWeb\.UserLiveAuth\.?/,
~r/ClaperWeb\.UserConfirmation\.?/,
~r/ClaperWeb\.UserSettings\.?/,
~r/ClaperWeb\.UserReset\.?/,
~r/ClaperWeb\.Attendee\.?/,
~r/ClaperWeb\.UserAuth\.?/,
~r/ClaperWeb\.UserView\.?/
],
Events: [
~r/Claper\.Event\.?/,
~r/ClaperWeb\.Event\.?/
],
Forms: [
~r/Claper\.Forms\.?/,
~r/ClaperWeb\.Form\.?/
],
WebContent: [
~r/Claper\.Embed\.?/,
~r/ClaperWeb\.Embed\.?/
],
Polls: [
~r/Claper\.Polls\.?/,
~r/ClaperWeb\.Poll\.?/
],
Posts: [
~r/Claper\.Posts\.?/,
~r/ClaperWeb\.Post\.?/
]
]
]
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {Claper.Application, []},
extra_applications: [:logger, :runtime_tools, :ssl, :porcelain]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
{:ex_aws, "~> 2.5"},
{:ex_aws_s3, "~> 2.5"},
{:ex_doc, "~> 0.38", only: :dev, runtime: false},
{:bcrypt_elixir, "~> 3.3"},
{:phoenix, "~> 1.7"},
{:phoenix_ecto, "~> 4.6"},
{:ecto_sql, "~> 3.13"},
{:postgrex, "~> 0.20.0"},
{:phoenix_html, "~> 4.2"},
{:phoenix_html_helpers, "~> 1.0"},
{:phoenix_live_reload, "~> 1.6", only: :dev},
{:phoenix_live_view, "~> 1.0"},
{:phoenix_swoosh, "~> 1.2.1"},
{:phoenix_view, "~> 2.0"},
{:floki, ">= 0.36.1", only: :test},
{:phoenix_live_dashboard, "~> 0.8"},
{:esbuild, "~> 0.10", runtime: Mix.env() == :dev},
{:dart_sass, "~> 0.7", runtime: Mix.env() == :dev},
{:swoosh, "~> 1.19"},
{:finch, "~> 0.19"},
{:telemetry_metrics, "~> 1.1"},
{:telemetry_poller, "~> 1.2"},
{:gettext, "~> 0.26"},
{:jason, "~> 1.4"},
{:sweet_xml, "~> 0.7"},
{:plug_cowboy, "~> 2.7"},
{:hashids, "~> 2.1"},
{:libcluster, "~> 3.5"},
{:porcelain, "~> 2.0"},
{:hackney, "~> 1.24"},
{:csv, "~> 3.2"},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:joken, "~> 2.6"},
{:jose, "~> 1.11"},
{:req, "~> 0.5"},
{:uuid, "~> 1.1"},
{:oidcc, "~> 3.5"},
{:oban, "~> 2.19"},
{:mua, "~> 0.2"},
{:mail, "~> 0.5"},
{:tailwind, "~> 0.3", runtime: Mix.env() == :dev}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to install project dependencies and perform other setup tasks, run:
#
# $ mix setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
setup: ["deps.get", "ecto.setup"],
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"],
"assets.deploy": [
"cmd --cd assets npm install",
"tailwind default --minify",
"tailwind admin --minify",
"esbuild default --minify",
"sass default --no-source-map --style=compressed",
"phx.digest"
]
]
end
end