Compare commits
45 Commits
0.7.0
...
0c95fa88f4
Author | SHA1 | Date | |
---|---|---|---|
0c95fa88f4 | |||
61f8776d2e | |||
26f75c7d15 | |||
23f7af2a93 | |||
8e771a2d9a | |||
16155687c9 | |||
ef0d644ee3 | |||
faacf80b51 | |||
7a7754767f | |||
0894293620 | |||
58b32817ba | |||
45da547f62 | |||
3ea4b77b67 | |||
d743336868 | |||
c99fbabcaa | |||
95642061db | |||
11ef53d1bf | |||
757eca47f7 | |||
7191fe8e4b | |||
02253c74ac | |||
fa32b2a073 | |||
aa0ea10fa4 | |||
72ac611e15 | |||
ff0af84d5d | |||
851d0954ad | |||
ea4336adc5 | |||
fcce6a6f40 | |||
4d3085da2a | |||
2ec60ba342 | |||
e0ac714681 | |||
20a2311229 | |||
a6ae8a872d | |||
81e448afc4 | |||
dfebad713f | |||
bf0ea4168b | |||
5ffa627beb | |||
25d4f1916a | |||
fd583f2941 | |||
5cae646758 | |||
d389515f76 | |||
c2568b6521 | |||
60462877c5 | |||
ba5a4e69b2 | |||
ba36b4e4c5 | |||
f5a092e91f |
20
CHANGELOG.md
20
CHANGELOG.md
@ -1,3 +1,23 @@
|
||||
# v0.8.0
|
||||
- Add search to catalog, ammo, container, tag and range index pages
|
||||
- Tweak urls for catalog, ammo, containers, tags and shot records
|
||||
- Fix bug with shot group chart not drawing lines between days correctly
|
||||
- Improve cards across app (make them line up with each other)
|
||||
- Update translations and add spanish!!! (thank you Brea and Hannah!)
|
||||
|
||||
# v0.7.2
|
||||
- Code improvements
|
||||
|
||||
# v0.7.1
|
||||
- Fix table component alignment and styling
|
||||
- Fix toggle button styling
|
||||
- Miscellanous code improvements
|
||||
- Improve container index table
|
||||
- Fix bug with ammo not updating after deleting shot group
|
||||
- Replace ammo "added on" with "purchased on"
|
||||
- Miscellaneous wording improvements
|
||||
- Update translations
|
||||
|
||||
# v0.7.0
|
||||
- Add shading to table component
|
||||
- Fix chart to sum by day
|
||||
|
@ -17,8 +17,8 @@ If you're multilingual, this project can use your translations! Visit
|
||||
functions as short as possible while keeping variable names descriptive! For
|
||||
instance, use inline `do:` blocks for short functions and make your aliases as
|
||||
short as possible without introducing ambiguity.
|
||||
- I.e. since there's only one `Changeset` in the app, please alias
|
||||
`Changeset.t(Type.t())` instead of using `Ecto.Changeset.t(Long.Type.t())`
|
||||
- I.e. since there's only one `AmmoGroup` in the app, please alias
|
||||
`AmmoGroup.t()` instead of using `Cannery.Ammo.AmmoGroup.t()`
|
||||
- Use pipelines when possible. If only calling a single method, a pipeline isn't
|
||||
strictly necessary but still encouraged for future modification.
|
||||
- Please add typespecs to your functions! Even your private functions may be
|
||||
@ -144,3 +144,4 @@ Thank you so much for your contributions!
|
||||
- kaia (https://shitposter.club/users/kaia)
|
||||
- duponin (https://udongein.xyz/users/duponin)
|
||||
- kalli (https://twitter.com/t0kkuro)
|
||||
- brea (https://refusal.biz/users/tarperfume)
|
||||
|
@ -37,7 +37,7 @@ RUN mix do compile, release
|
||||
FROM alpine:latest AS app
|
||||
|
||||
RUN apk upgrade --no-cache && \
|
||||
apk add --no-cache bash openssl libgcc libstdc++ ncurses-libs
|
||||
apk add --no-cache bash openssl libssl1.1 libcrypto1.1 libgcc libstdc++ ncurses-libs
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
@ -80,6 +80,27 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
updateChart (el) {
|
||||
const data = JSON.parse(el.dataset.chartData)
|
||||
|
||||
this.el.chart.data = {
|
||||
datasets: [{
|
||||
label: el.dataset.label,
|
||||
data: data.map(({ date, count, label }) => ({
|
||||
label,
|
||||
x: date,
|
||||
y: count
|
||||
})),
|
||||
backgroundColor: `${el.dataset.color}77`,
|
||||
borderColor: el.dataset.color,
|
||||
fill: true,
|
||||
borderWidth: 3,
|
||||
pointBorderWidth: 1
|
||||
}]
|
||||
}
|
||||
|
||||
this.el.chart.update()
|
||||
},
|
||||
mounted () { this.initalizeChart(this.el) },
|
||||
updated () { this.initalizeChart(this.el) }
|
||||
updated () { this.updateChart(this.el) }
|
||||
}
|
||||
|
37
assets/package-lock.json
generated
37
assets/package-lock.json
generated
@ -4,6 +4,7 @@
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "assets",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-free": "^6.1.1",
|
||||
@ -6215,9 +6216,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/json5": {
|
||||
"version": "2.2.1",
|
||||
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz",
|
||||
"integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==",
|
||||
"version": "2.2.3",
|
||||
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
|
||||
"integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"json5": "lib/cli.js"
|
||||
@ -6333,9 +6334,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/loader-utils": {
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.3.tgz",
|
||||
"integrity": "sha512-THWqIsn8QRnvLl0shHYVBN9syumU8pYWEHPTmkiVGd+7K5eFNVSY6AJhRvgGF70gg1Dz+l/k8WicvFCxdEs60A==",
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz",
|
||||
"integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"big.js": "^5.2.2",
|
||||
@ -9639,9 +9640,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/tsconfig-paths/node_modules/json5": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz",
|
||||
"integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==",
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
|
||||
"integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"minimist": "^1.2.0"
|
||||
@ -14763,9 +14764,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"json5": {
|
||||
"version": "2.2.1",
|
||||
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz",
|
||||
"integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==",
|
||||
"version": "2.2.3",
|
||||
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
|
||||
"integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
|
||||
"dev": true
|
||||
},
|
||||
"jsx-ast-utils": {
|
||||
@ -14850,9 +14851,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"loader-utils": {
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.3.tgz",
|
||||
"integrity": "sha512-THWqIsn8QRnvLl0shHYVBN9syumU8pYWEHPTmkiVGd+7K5eFNVSY6AJhRvgGF70gg1Dz+l/k8WicvFCxdEs60A==",
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz",
|
||||
"integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"big.js": "^5.2.2",
|
||||
@ -17080,9 +17081,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"json5": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz",
|
||||
"integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==",
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
|
||||
"integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"minimist": "^1.2.0"
|
||||
|
@ -23,7 +23,7 @@ defmodule Cannery.Accounts do
|
||||
nil
|
||||
|
||||
"""
|
||||
@spec get_user_by_email(String.t()) :: User.t() | nil
|
||||
@spec get_user_by_email(email :: String.t()) :: User.t() | nil
|
||||
def get_user_by_email(email) when is_binary(email), do: Repo.get_by(User, email: email)
|
||||
|
||||
@doc """
|
||||
@ -38,7 +38,7 @@ defmodule Cannery.Accounts do
|
||||
nil
|
||||
|
||||
"""
|
||||
@spec get_user_by_email_and_password(String.t(), String.t()) ::
|
||||
@spec get_user_by_email_and_password(email :: String.t(), password :: String.t()) ::
|
||||
User.t() | nil
|
||||
def get_user_by_email_and_password(email, password)
|
||||
when is_binary(email) and is_binary(password) do
|
||||
@ -86,7 +86,7 @@ defmodule Cannery.Accounts do
|
||||
[%User{}]
|
||||
|
||||
"""
|
||||
@spec list_users_by_role(:admin | :user) :: [User.t()]
|
||||
@spec list_users_by_role(User.role()) :: [User.t()]
|
||||
def list_users_by_role(role) do
|
||||
role = role |> to_string()
|
||||
Repo.all(from u in User, where: u.role == ^role, order_by: u.email)
|
||||
@ -106,15 +106,21 @@ defmodule Cannery.Accounts do
|
||||
{:error, %Changeset{}}
|
||||
|
||||
"""
|
||||
@spec register_user(map()) :: {:ok, User.t()} | {:error, Changeset.t(User.new_user())}
|
||||
@spec register_user(attrs :: map()) :: {:ok, User.t()} | {:error, User.changeset()}
|
||||
def register_user(attrs) do
|
||||
# if no registered users, make first user an admin
|
||||
role =
|
||||
if Repo.one!(from u in User, select: count(u.id), distinct: true) == 0,
|
||||
do: "admin",
|
||||
else: "user"
|
||||
Multi.new()
|
||||
|> Multi.one(:users_count, from(u in User, select: count(u.id), distinct: true))
|
||||
|> Multi.insert(:add_user, fn %{users_count: count} ->
|
||||
# if no registered users, make first user an admin
|
||||
role = if count == 0, do: "admin", else: "user"
|
||||
|
||||
%User{} |> User.registration_changeset(attrs |> Map.put("role", role)) |> Repo.insert()
|
||||
User.registration_changeset(attrs) |> User.role_changeset(role)
|
||||
end)
|
||||
|> Repo.transaction()
|
||||
|> case do
|
||||
{:ok, %{add_user: user}} -> {:ok, user}
|
||||
{:error, :add_user, changeset, _changes_so_far} -> {:error, changeset}
|
||||
end
|
||||
end
|
||||
|
||||
@doc """
|
||||
@ -126,12 +132,10 @@ defmodule Cannery.Accounts do
|
||||
%Changeset{data: %User{}}
|
||||
|
||||
"""
|
||||
@spec change_user_registration(User.t() | User.new_user()) ::
|
||||
Changeset.t(User.t() | User.new_user())
|
||||
@spec change_user_registration(User.t() | User.new_user(), map()) ::
|
||||
Changeset.t(User.t() | User.new_user())
|
||||
def change_user_registration(user, attrs \\ %{}),
|
||||
do: User.registration_changeset(user, attrs, hash_password: false)
|
||||
@spec change_user_registration() :: User.changeset()
|
||||
@spec change_user_registration(attrs :: map()) :: User.changeset()
|
||||
def change_user_registration(attrs \\ %{}),
|
||||
do: User.registration_changeset(attrs, hash_password: false)
|
||||
|
||||
## Settings
|
||||
|
||||
@ -144,7 +148,8 @@ defmodule Cannery.Accounts do
|
||||
%Changeset{data: %User{}}
|
||||
|
||||
"""
|
||||
@spec change_user_email(User.t(), map()) :: Changeset.t(User.t())
|
||||
@spec change_user_email(User.t()) :: User.changeset()
|
||||
@spec change_user_email(User.t(), attrs :: map()) :: User.changeset()
|
||||
def change_user_email(user, attrs \\ %{}), do: User.email_changeset(user, attrs)
|
||||
|
||||
@doc """
|
||||
@ -156,7 +161,7 @@ defmodule Cannery.Accounts do
|
||||
%Changeset{data: %User{}}
|
||||
|
||||
"""
|
||||
@spec change_user_role(User.t(), atom()) :: Changeset.t(User.t())
|
||||
@spec change_user_role(User.t(), User.role()) :: User.changeset()
|
||||
def change_user_role(user, role), do: User.role_changeset(user, role)
|
||||
|
||||
@doc """
|
||||
@ -172,8 +177,8 @@ defmodule Cannery.Accounts do
|
||||
{:error, %Changeset{}}
|
||||
|
||||
"""
|
||||
@spec apply_user_email(User.t(), String.t(), map()) ::
|
||||
{:ok, User.t()} | {:error, Changeset.t(User.t())}
|
||||
@spec apply_user_email(User.t(), email :: String.t(), attrs :: map()) ::
|
||||
{:ok, User.t()} | {:error, User.changeset()}
|
||||
def apply_user_email(user, password, attrs) do
|
||||
user
|
||||
|> User.email_changeset(attrs)
|
||||
@ -187,7 +192,7 @@ defmodule Cannery.Accounts do
|
||||
If the token matches, the user email is updated and the token is deleted.
|
||||
The confirmed_at date is also updated to the current time.
|
||||
"""
|
||||
@spec update_user_email(User.t(), String.t()) :: :ok | :error
|
||||
@spec update_user_email(User.t(), token :: String.t()) :: :ok | :error
|
||||
def update_user_email(user, token) do
|
||||
context = "change:#{user.email}"
|
||||
|
||||
@ -200,7 +205,7 @@ defmodule Cannery.Accounts do
|
||||
end
|
||||
end
|
||||
|
||||
@spec user_email_multi(User.t(), String.t(), String.t()) :: Multi.t()
|
||||
@spec user_email_multi(User.t(), email :: String.t(), context :: String.t()) :: Multi.t()
|
||||
defp user_email_multi(user, email, context) do
|
||||
changeset = user |> User.email_changeset(%{email: email}) |> User.confirm_changeset()
|
||||
|
||||
@ -218,7 +223,8 @@ defmodule Cannery.Accounts do
|
||||
{:ok, %{to: ..., body: ...}}
|
||||
|
||||
"""
|
||||
@spec deliver_update_email_instructions(User.t(), String.t(), function) :: Job.t()
|
||||
@spec deliver_update_email_instructions(User.t(), current_email :: String.t(), function) ::
|
||||
Job.t()
|
||||
def deliver_update_email_instructions(user, current_email, update_email_url_fun)
|
||||
when is_function(update_email_url_fun, 1) do
|
||||
{encoded_token, user_token} = UserToken.build_email_token(user, "change:#{current_email}")
|
||||
@ -235,7 +241,7 @@ defmodule Cannery.Accounts do
|
||||
%Changeset{data: %User{}}
|
||||
|
||||
"""
|
||||
@spec change_user_password(User.t(), map()) :: Changeset.t(User.t())
|
||||
@spec change_user_password(User.t(), attrs :: map()) :: User.changeset()
|
||||
def change_user_password(user, attrs \\ %{}),
|
||||
do: User.password_changeset(user, attrs, hash_password: false)
|
||||
|
||||
@ -251,8 +257,8 @@ defmodule Cannery.Accounts do
|
||||
{:error, %Changeset{}}
|
||||
|
||||
"""
|
||||
@spec update_user_password(User.t(), String.t(), map()) ::
|
||||
{:ok, User.t()} | {:error, Changeset.t(User.t())}
|
||||
@spec update_user_password(User.t(), String.t(), attrs :: map()) ::
|
||||
{:ok, User.t()} | {:error, User.changeset()}
|
||||
def update_user_password(user, password, attrs) do
|
||||
changeset =
|
||||
user
|
||||
@ -278,7 +284,7 @@ defmodule Cannery.Accounts do
|
||||
%Changeset{data: %User{}}
|
||||
|
||||
"""
|
||||
@spec change_user_locale(User.t()) :: Changeset.t(User.t())
|
||||
@spec change_user_locale(User.t()) :: User.changeset()
|
||||
def change_user_locale(%{locale: locale} = user), do: User.locale_changeset(user, locale)
|
||||
|
||||
@doc """
|
||||
@ -294,7 +300,7 @@ defmodule Cannery.Accounts do
|
||||
|
||||
"""
|
||||
@spec update_user_locale(User.t(), locale :: String.t()) ::
|
||||
{:ok, User.t()} | {:error, Changeset.t(User.t())}
|
||||
{:ok, User.t()} | {:error, User.changeset()}
|
||||
def update_user_locale(user, locale),
|
||||
do: user |> User.locale_changeset(locale) |> Repo.update()
|
||||
|
||||
@ -310,7 +316,7 @@ defmodule Cannery.Accounts do
|
||||
%User{}
|
||||
|
||||
"""
|
||||
@spec delete_user!(User.t(), User.t()) :: User.t()
|
||||
@spec delete_user!(user_to_delete :: User.t(), User.t()) :: User.t()
|
||||
def delete_user!(user, %User{role: :admin}), do: user |> Repo.delete!()
|
||||
def delete_user!(%User{id: user_id} = user, %User{id: user_id}), do: user |> Repo.delete!()
|
||||
|
||||
@ -329,7 +335,7 @@ defmodule Cannery.Accounts do
|
||||
@doc """
|
||||
Gets the user with the given signed token.
|
||||
"""
|
||||
@spec get_user_by_session_token(String.t()) :: User.t()
|
||||
@spec get_user_by_session_token(token :: String.t()) :: User.t()
|
||||
def get_user_by_session_token(token) do
|
||||
{:ok, query} = UserToken.verify_session_token_query(token)
|
||||
Repo.one(query)
|
||||
@ -338,7 +344,7 @@ defmodule Cannery.Accounts do
|
||||
@doc """
|
||||
Deletes the signed token with the given context.
|
||||
"""
|
||||
@spec delete_session_token(String.t()) :: :ok
|
||||
@spec delete_session_token(token :: String.t()) :: :ok
|
||||
def delete_session_token(token) do
|
||||
Repo.delete_all(UserToken.token_and_context_query(token, "session"))
|
||||
:ok
|
||||
@ -394,7 +400,7 @@ defmodule Cannery.Accounts do
|
||||
If the token matches, the user account is marked as confirmed
|
||||
and the token is deleted.
|
||||
"""
|
||||
@spec confirm_user(String.t()) :: {:ok, User.t()} | atom()
|
||||
@spec confirm_user(token :: String.t()) :: {:ok, User.t()} | :error
|
||||
def confirm_user(token) do
|
||||
with {:ok, query} <- UserToken.verify_email_token_query(token, "confirm"),
|
||||
%User{} = user <- Repo.one(query),
|
||||
@ -443,7 +449,7 @@ defmodule Cannery.Accounts do
|
||||
nil
|
||||
|
||||
"""
|
||||
@spec get_user_by_reset_password_token(String.t()) :: User.t() | nil
|
||||
@spec get_user_by_reset_password_token(token :: String.t()) :: User.t() | nil
|
||||
def get_user_by_reset_password_token(token) do
|
||||
with {:ok, query} <- UserToken.verify_email_token_query(token, "reset_password"),
|
||||
%User{} = user <- Repo.one(query) do
|
||||
@ -465,7 +471,8 @@ defmodule Cannery.Accounts do
|
||||
{:error, %Changeset{}}
|
||||
|
||||
"""
|
||||
@spec reset_user_password(User.t(), map()) :: {:ok, User.t()} | {:error, Changeset.t(User.t())}
|
||||
@spec reset_user_password(User.t(), attrs :: map()) ::
|
||||
{:ok, User.t()} | {:error, User.changeset()}
|
||||
def reset_user_password(user, attrs) do
|
||||
Multi.new()
|
||||
|> Multi.update(:user, User.password_changeset(user, attrs))
|
||||
|
@ -39,7 +39,7 @@ defmodule Cannery.Accounts.User do
|
||||
password: String.t(),
|
||||
hashed_password: String.t(),
|
||||
confirmed_at: NaiveDateTime.t(),
|
||||
role: atom(),
|
||||
role: role(),
|
||||
locale: String.t() | nil,
|
||||
invites: [Invite.t()],
|
||||
inserted_at: NaiveDateTime.t(),
|
||||
@ -47,6 +47,8 @@ defmodule Cannery.Accounts.User do
|
||||
}
|
||||
@type new_user :: %User{}
|
||||
@type id :: UUID.t()
|
||||
@type changeset :: Changeset.t(t() | new_user())
|
||||
@type role :: :admin | :user | String.t()
|
||||
|
||||
@doc """
|
||||
A user changeset for registration.
|
||||
@ -65,26 +67,24 @@ defmodule Cannery.Accounts.User do
|
||||
validations on a LiveView form), this option can be set to `false`.
|
||||
Defaults to `true`.
|
||||
"""
|
||||
@spec registration_changeset(t() | new_user(), attrs :: map()) :: Changeset.t(t() | new_user())
|
||||
@spec registration_changeset(t() | new_user(), attrs :: map(), opts :: keyword()) ::
|
||||
Changeset.t(t() | new_user())
|
||||
def registration_changeset(user, attrs, opts \\ []) do
|
||||
user
|
||||
|> cast(attrs, [:email, :password, :role, :locale])
|
||||
@spec registration_changeset(attrs :: map()) :: changeset()
|
||||
@spec registration_changeset(attrs :: map(), opts :: keyword()) :: changeset()
|
||||
def registration_changeset(attrs, opts \\ []) do
|
||||
%User{}
|
||||
|> cast(attrs, [:email, :password, :locale])
|
||||
|> validate_email()
|
||||
|> validate_password(opts)
|
||||
end
|
||||
|
||||
@doc """
|
||||
A user changeset for role.
|
||||
|
||||
"""
|
||||
@spec role_changeset(t(), role :: atom()) :: Changeset.t(t())
|
||||
@spec role_changeset(t() | new_user() | changeset(), role()) :: changeset()
|
||||
def role_changeset(user, role) do
|
||||
user |> cast(%{"role" => role}, [:role])
|
||||
end
|
||||
|
||||
@spec validate_email(Changeset.t(t() | new_user())) :: Changeset.t(t() | new_user())
|
||||
@spec validate_email(changeset()) :: changeset()
|
||||
defp validate_email(changeset) do
|
||||
changeset
|
||||
|> validate_required([:email])
|
||||
@ -96,8 +96,8 @@ defmodule Cannery.Accounts.User do
|
||||
|> unique_constraint(:email)
|
||||
end
|
||||
|
||||
@spec validate_password(Changeset.t(t() | new_user()), opts :: keyword()) ::
|
||||
Changeset.t(t() | new_user())
|
||||
@spec validate_password(changeset(), opts :: keyword()) ::
|
||||
changeset()
|
||||
defp validate_password(changeset, opts) do
|
||||
changeset
|
||||
|> validate_required([:password])
|
||||
@ -108,8 +108,7 @@ defmodule Cannery.Accounts.User do
|
||||
|> maybe_hash_password(opts)
|
||||
end
|
||||
|
||||
@spec maybe_hash_password(Changeset.t(t() | new_user()), opts :: keyword()) ::
|
||||
Changeset.t(t() | new_user())
|
||||
@spec maybe_hash_password(changeset(), opts :: keyword()) :: changeset()
|
||||
defp maybe_hash_password(changeset, opts) do
|
||||
hash_password? = Keyword.get(opts, :hash_password, true)
|
||||
password = get_change(changeset, :password)
|
||||
@ -128,7 +127,7 @@ defmodule Cannery.Accounts.User do
|
||||
|
||||
It requires the email to change otherwise an error is added.
|
||||
"""
|
||||
@spec email_changeset(t(), attrs :: map()) :: Changeset.t(t())
|
||||
@spec email_changeset(t(), attrs :: map()) :: changeset()
|
||||
def email_changeset(user, attrs) do
|
||||
user
|
||||
|> cast(attrs, [:email])
|
||||
@ -151,8 +150,8 @@ defmodule Cannery.Accounts.User do
|
||||
validations on a LiveView form), this option can be set to `false`.
|
||||
Defaults to `true`.
|
||||
"""
|
||||
@spec password_changeset(t(), attrs :: map()) :: Changeset.t(t())
|
||||
@spec password_changeset(t(), attrs :: map(), opts :: keyword()) :: Changeset.t(t())
|
||||
@spec password_changeset(t(), attrs :: map()) :: changeset()
|
||||
@spec password_changeset(t(), attrs :: map(), opts :: keyword()) :: changeset()
|
||||
def password_changeset(user, attrs, opts \\ []) do
|
||||
user
|
||||
|> cast(attrs, [:password])
|
||||
@ -163,7 +162,7 @@ defmodule Cannery.Accounts.User do
|
||||
@doc """
|
||||
Confirms the account by setting `confirmed_at`.
|
||||
"""
|
||||
@spec confirm_changeset(t() | Changeset.t(t())) :: Changeset.t(t())
|
||||
@spec confirm_changeset(t() | changeset()) :: changeset()
|
||||
def confirm_changeset(user_or_changeset) do
|
||||
now = NaiveDateTime.utc_now() |> NaiveDateTime.truncate(:second)
|
||||
user_or_changeset |> change(confirmed_at: now)
|
||||
@ -189,7 +188,7 @@ defmodule Cannery.Accounts.User do
|
||||
@doc """
|
||||
Validates the current password otherwise adds an error to the changeset.
|
||||
"""
|
||||
@spec validate_current_password(Changeset.t(t()), String.t()) :: Changeset.t(t())
|
||||
@spec validate_current_password(changeset(), String.t()) :: changeset()
|
||||
def validate_current_password(changeset, password) do
|
||||
if valid_password?(changeset.data, password),
|
||||
do: changeset,
|
||||
@ -199,7 +198,7 @@ defmodule Cannery.Accounts.User do
|
||||
@doc """
|
||||
A changeset for changing the user's locale
|
||||
"""
|
||||
@spec locale_changeset(t() | Changeset.t(t()), locale :: String.t() | nil) :: Changeset.t(t())
|
||||
@spec locale_changeset(t() | changeset(), locale :: String.t() | nil) :: changeset()
|
||||
def locale_changeset(user_or_changeset, locale) do
|
||||
user_or_changeset
|
||||
|> cast(%{"locale" => locale}, [:locale])
|
||||
|
@ -5,7 +5,7 @@ defmodule Cannery.ActivityLog do
|
||||
|
||||
import Ecto.Query, warn: false
|
||||
alias Cannery.{Accounts.User, ActivityLog.ShotGroup, Ammo.AmmoGroup, Repo}
|
||||
alias Ecto.{Changeset, Multi}
|
||||
alias Ecto.Multi
|
||||
|
||||
@doc """
|
||||
Returns the list of shot_groups.
|
||||
@ -15,10 +15,50 @@ defmodule Cannery.ActivityLog do
|
||||
iex> list_shot_groups(%User{id: 123})
|
||||
[%ShotGroup{}, ...]
|
||||
|
||||
iex> list_shot_groups("cool", %User{id: 123})
|
||||
[%ShotGroup{notes: "My cool shot group"}, ...]
|
||||
|
||||
"""
|
||||
@spec list_shot_groups(User.t()) :: [ShotGroup.t()]
|
||||
def list_shot_groups(%User{id: user_id}) do
|
||||
Repo.all(from(sg in ShotGroup, where: sg.user_id == ^user_id))
|
||||
@spec list_shot_groups(search :: nil | String.t(), User.t()) :: [ShotGroup.t()]
|
||||
def list_shot_groups(search \\ nil, user)
|
||||
|
||||
def list_shot_groups(search, %{id: user_id}) when search |> is_nil() or search == "",
|
||||
do: Repo.all(from sg in ShotGroup, where: sg.user_id == ^user_id)
|
||||
|
||||
def list_shot_groups(search, %{id: user_id}) when search |> is_binary() do
|
||||
trimmed_search = String.trim(search)
|
||||
|
||||
Repo.all(
|
||||
from sg in ShotGroup,
|
||||
left_join: ag in assoc(sg, :ammo_group),
|
||||
left_join: at in assoc(ag, :ammo_type),
|
||||
where: sg.user_id == ^user_id,
|
||||
where:
|
||||
fragment(
|
||||
"? @@ websearch_to_tsquery('english', ?)",
|
||||
sg.search,
|
||||
^trimmed_search
|
||||
) or
|
||||
fragment(
|
||||
"? @@ websearch_to_tsquery('english', ?)",
|
||||
ag.search,
|
||||
^trimmed_search
|
||||
) or
|
||||
fragment(
|
||||
"? @@ websearch_to_tsquery('english', ?)",
|
||||
at.search,
|
||||
^trimmed_search
|
||||
),
|
||||
order_by: {
|
||||
:desc,
|
||||
fragment(
|
||||
"ts_rank_cd(?, websearch_to_tsquery('english', ?), 4)",
|
||||
sg.search,
|
||||
^trimmed_search
|
||||
)
|
||||
}
|
||||
)
|
||||
end
|
||||
|
||||
@doc """
|
||||
@ -58,7 +98,7 @@ defmodule Cannery.ActivityLog do
|
||||
|
||||
"""
|
||||
@spec create_shot_group(attrs :: map(), User.t(), AmmoGroup.t()) ::
|
||||
{:ok, ShotGroup.t()} | {:error, Changeset.t(ShotGroup.t()) | nil}
|
||||
{:ok, ShotGroup.t()} | {:error, ShotGroup.changeset() | nil}
|
||||
def create_shot_group(attrs, user, ammo_group) do
|
||||
Multi.new()
|
||||
|> Multi.insert(
|
||||
@ -99,7 +139,7 @@ defmodule Cannery.ActivityLog do
|
||||
|
||||
"""
|
||||
@spec update_shot_group(ShotGroup.t(), attrs :: map(), User.t()) ::
|
||||
{:ok, ShotGroup.t()} | {:error, Changeset.t(ShotGroup.t()) | nil}
|
||||
{:ok, ShotGroup.t()} | {:error, ShotGroup.changeset() | nil}
|
||||
def update_shot_group(
|
||||
%ShotGroup{count: count, user_id: user_id} = shot_group,
|
||||
attrs,
|
||||
@ -149,7 +189,7 @@ defmodule Cannery.ActivityLog do
|
||||
|
||||
"""
|
||||
@spec delete_shot_group(ShotGroup.t(), User.t()) ::
|
||||
{:ok, ShotGroup.t()} | {:error, Changeset.t(ShotGroup.t())}
|
||||
{:ok, ShotGroup.t()} | {:error, ShotGroup.changeset()}
|
||||
def delete_shot_group(
|
||||
%ShotGroup{user_id: user_id} = shot_group,
|
||||
%User{id: user_id}
|
||||
|
@ -44,6 +44,7 @@ defmodule Cannery.ActivityLog.ShotGroup do
|
||||
}
|
||||
@type new_shot_group :: %ShotGroup{}
|
||||
@type id :: UUID.t()
|
||||
@type changeset :: Changeset.t(t() | new_shot_group())
|
||||
|
||||
@doc false
|
||||
@spec create_changeset(
|
||||
@ -51,8 +52,7 @@ defmodule Cannery.ActivityLog.ShotGroup do
|
||||
User.t() | any(),
|
||||
AmmoGroup.t() | any(),
|
||||
attrs :: map()
|
||||
) ::
|
||||
Changeset.t(new_shot_group())
|
||||
) :: changeset()
|
||||
def create_changeset(
|
||||
shot_group,
|
||||
%User{id: user_id},
|
||||
@ -74,7 +74,7 @@ defmodule Cannery.ActivityLog.ShotGroup do
|
||||
|> cast(attrs, [:count, :notes, :date])
|
||||
|> validate_number(:count, greater_than: 0)
|
||||
|> validate_required([:count, :ammo_group_id, :user_id])
|
||||
|> add_error(:invalid, dgettext("errors", "Please select a valid user and ammo group"))
|
||||
|> add_error(:invalid, dgettext("errors", "Please select a valid user and ammo pack"))
|
||||
end
|
||||
|
||||
defp validate_create_shot_group_count(changeset, %AmmoGroup{count: ammo_group_count}) do
|
||||
@ -87,8 +87,7 @@ defmodule Cannery.ActivityLog.ShotGroup do
|
||||
end
|
||||
|
||||
@doc false
|
||||
@spec update_changeset(t() | new_shot_group(), User.t(), attrs :: map()) ::
|
||||
Changeset.t(t() | new_shot_group())
|
||||
@spec update_changeset(t() | new_shot_group(), User.t(), attrs :: map()) :: changeset()
|
||||
def update_changeset(
|
||||
%ShotGroup{user_id: user_id} = shot_group,
|
||||
%User{id: user_id} = user,
|
||||
|
@ -20,11 +20,38 @@ defmodule Cannery.Ammo do
|
||||
iex> list_ammo_types(%User{id: 123})
|
||||
[%AmmoType{}, ...]
|
||||
|
||||
iex> list_ammo_types("cool", %User{id: 123})
|
||||
[%AmmoType{name: "My cool ammo type"}, ...]
|
||||
|
||||
"""
|
||||
@spec list_ammo_types(User.t()) :: [AmmoType.t()]
|
||||
def list_ammo_types(%User{id: user_id}),
|
||||
@spec list_ammo_types(search :: nil | String.t(), User.t()) :: [AmmoType.t()]
|
||||
def list_ammo_types(search \\ nil, user)
|
||||
|
||||
def list_ammo_types(search, %{id: user_id}) when search |> is_nil() or search == "",
|
||||
do: Repo.all(from at in AmmoType, where: at.user_id == ^user_id, order_by: at.name)
|
||||
|
||||
def list_ammo_types(search, %{id: user_id}) when search |> is_binary() do
|
||||
trimmed_search = String.trim(search)
|
||||
|
||||
Repo.all(
|
||||
from at in AmmoType,
|
||||
where: at.user_id == ^user_id,
|
||||
where:
|
||||
fragment(
|
||||
"search @@ websearch_to_tsquery('english', ?)",
|
||||
^trimmed_search
|
||||
),
|
||||
order_by: {
|
||||
:desc,
|
||||
fragment(
|
||||
"ts_rank_cd(search, websearch_to_tsquery('english', ?), 4)",
|
||||
^trimmed_search
|
||||
)
|
||||
}
|
||||
)
|
||||
end
|
||||
|
||||
@doc """
|
||||
Returns a count of ammo_types.
|
||||
|
||||
@ -182,7 +209,7 @@ defmodule Cannery.Ammo do
|
||||
|
||||
"""
|
||||
@spec create_ammo_type(attrs :: map(), User.t()) ::
|
||||
{:ok, AmmoType.t()} | {:error, Changeset.t(AmmoType.new_ammo_type())}
|
||||
{:ok, AmmoType.t()} | {:error, AmmoType.changeset()}
|
||||
def create_ammo_type(attrs \\ %{}, %User{} = user),
|
||||
do: %AmmoType{} |> AmmoType.create_changeset(user, attrs) |> Repo.insert()
|
||||
|
||||
@ -199,7 +226,7 @@ defmodule Cannery.Ammo do
|
||||
|
||||
"""
|
||||
@spec update_ammo_type(AmmoType.t(), attrs :: map(), User.t()) ::
|
||||
{:ok, AmmoType.t()} | {:error, Changeset.t(AmmoType.t())}
|
||||
{:ok, AmmoType.t()} | {:error, AmmoType.changeset()}
|
||||
def update_ammo_type(%AmmoType{user_id: user_id} = ammo_type, attrs, %User{id: user_id}),
|
||||
do: ammo_type |> AmmoType.update_changeset(attrs) |> Repo.update()
|
||||
|
||||
@ -216,7 +243,7 @@ defmodule Cannery.Ammo do
|
||||
|
||||
"""
|
||||
@spec delete_ammo_type(AmmoType.t(), User.t()) ::
|
||||
{:ok, AmmoType.t()} | {:error, Changeset.t(AmmoType.t())}
|
||||
{:ok, AmmoType.t()} | {:error, AmmoType.changeset()}
|
||||
def delete_ammo_type(%AmmoType{user_id: user_id} = ammo_type, %User{id: user_id}),
|
||||
do: ammo_type |> Repo.delete()
|
||||
|
||||
@ -394,36 +421,86 @@ defmodule Cannery.Ammo do
|
||||
end
|
||||
|
||||
@doc """
|
||||
Returns the list of ammo_groups for a user.
|
||||
Returns the list of ammo_groups.
|
||||
|
||||
## Examples
|
||||
|
||||
iex> list_ammo_groups(%User{id: 123})
|
||||
[%AmmoGroup{}, ...]
|
||||
|
||||
iex> list_ammo_groups("cool", true, %User{id: 123})
|
||||
[%AmmoGroup{notes: "My cool ammo group"}, ...]
|
||||
|
||||
"""
|
||||
@spec list_ammo_groups(User.t()) :: [AmmoGroup.t()]
|
||||
@spec list_ammo_groups(User.t(), include_empty :: boolean()) :: [AmmoGroup.t()]
|
||||
def list_ammo_groups(user, include_empty \\ false)
|
||||
|
||||
def list_ammo_groups(%User{id: user_id}, true = _include_empty) do
|
||||
Repo.all(
|
||||
from ag in AmmoGroup,
|
||||
left_join: sg in assoc(ag, :shot_groups),
|
||||
where: ag.user_id == ^user_id,
|
||||
preload: [shot_groups: sg],
|
||||
order_by: ag.id
|
||||
@spec list_ammo_groups(search :: nil | String.t(), User.t()) :: [AmmoGroup.t()]
|
||||
@spec list_ammo_groups(search :: nil | String.t(), include_empty :: boolean(), User.t()) ::
|
||||
[AmmoGroup.t()]
|
||||
def list_ammo_groups(search \\ nil, include_empty \\ false, %{id: user_id}) do
|
||||
from(
|
||||
ag in AmmoGroup,
|
||||
as: :ag,
|
||||
left_join: sg in assoc(ag, :shot_groups),
|
||||
as: :sg,
|
||||
join: at in assoc(ag, :ammo_type),
|
||||
as: :at,
|
||||
join: c in assoc(ag, :container),
|
||||
as: :c,
|
||||
left_join: t in assoc(c, :tags),
|
||||
as: :t,
|
||||
where: ag.user_id == ^user_id,
|
||||
preload: [shot_groups: sg, ammo_type: at, container: {c, tags: t}],
|
||||
order_by: ag.id
|
||||
)
|
||||
|> list_ammo_groups_include_empty(include_empty)
|
||||
|> list_ammo_groups_search(search)
|
||||
|> Repo.all()
|
||||
end
|
||||
|
||||
def list_ammo_groups(%User{id: user_id}, false = _include_empty) do
|
||||
Repo.all(
|
||||
from ag in AmmoGroup,
|
||||
left_join: sg in assoc(ag, :shot_groups),
|
||||
where: ag.user_id == ^user_id,
|
||||
where: not (ag.count == 0),
|
||||
preload: [shot_groups: sg],
|
||||
order_by: ag.id
|
||||
defp list_ammo_groups_include_empty(query, true), do: query
|
||||
|
||||
defp list_ammo_groups_include_empty(query, false) do
|
||||
query |> where([ag], not (ag.count == 0))
|
||||
end
|
||||
|
||||
defp list_ammo_groups_search(query, nil), do: query
|
||||
defp list_ammo_groups_search(query, ""), do: query
|
||||
|
||||
defp list_ammo_groups_search(query, search) do
|
||||
trimmed_search = String.trim(search)
|
||||
|
||||
query
|
||||
|> where(
|
||||
[ag: ag, at: at, c: c, t: t],
|
||||
fragment(
|
||||
"? @@ websearch_to_tsquery('english', ?)",
|
||||
ag.search,
|
||||
^trimmed_search
|
||||
) or
|
||||
fragment(
|
||||
"? @@ websearch_to_tsquery('english', ?)",
|
||||
at.search,
|
||||
^trimmed_search
|
||||
) or
|
||||
fragment(
|
||||
"? @@ websearch_to_tsquery('english', ?)",
|
||||
c.search,
|
||||
^trimmed_search
|
||||
) or
|
||||
fragment(
|
||||
"? @@ websearch_to_tsquery('english', ?)",
|
||||
t.search,
|
||||
^trimmed_search
|
||||
)
|
||||
)
|
||||
|> order_by(
|
||||
[ag: ag],
|
||||
desc:
|
||||
fragment(
|
||||
"ts_rank_cd(?, websearch_to_tsquery('english', ?), 4)",
|
||||
ag.search,
|
||||
^trimmed_search
|
||||
)
|
||||
)
|
||||
end
|
||||
|
||||
@ -549,7 +626,7 @@ defmodule Cannery.Ammo do
|
||||
"""
|
||||
@spec create_ammo_groups(attrs :: map(), multiplier :: non_neg_integer(), User.t()) ::
|
||||
{:ok, {count :: non_neg_integer(), [AmmoGroup.t()] | nil}}
|
||||
| {:error, Changeset.t(AmmoGroup.new_ammo_group())}
|
||||
| {:error, AmmoGroup.changeset()}
|
||||
def create_ammo_groups(
|
||||
%{"ammo_type_id" => ammo_type_id, "container_id" => container_id} = attrs,
|
||||
multiplier,
|
||||
@ -628,7 +705,7 @@ defmodule Cannery.Ammo do
|
||||
|
||||
"""
|
||||
@spec update_ammo_group(AmmoGroup.t(), attrs :: map(), User.t()) ::
|
||||
{:ok, AmmoGroup.t()} | {:error, Changeset.t(AmmoGroup.t())}
|
||||
{:ok, AmmoGroup.t()} | {:error, AmmoGroup.changeset()}
|
||||
def update_ammo_group(
|
||||
%AmmoGroup{user_id: user_id} = ammo_group,
|
||||
attrs,
|
||||
@ -649,7 +726,7 @@ defmodule Cannery.Ammo do
|
||||
|
||||
"""
|
||||
@spec delete_ammo_group(AmmoGroup.t(), User.t()) ::
|
||||
{:ok, AmmoGroup.t()} | {:error, Changeset.t(AmmoGroup.t())}
|
||||
{:ok, AmmoGroup.t()} | {:error, AmmoGroup.changeset()}
|
||||
def delete_ammo_group(%AmmoGroup{user_id: user_id} = ammo_group, %User{id: user_id}),
|
||||
do: ammo_group |> Repo.delete()
|
||||
|
||||
|
@ -30,6 +30,7 @@ defmodule Cannery.Ammo.AmmoGroup do
|
||||
field :notes, :string
|
||||
field :price_paid, :float
|
||||
field :staged, :boolean, default: false
|
||||
field :purchased_on, :date
|
||||
|
||||
belongs_to :ammo_type, AmmoType
|
||||
belongs_to :container, Container
|
||||
@ -46,6 +47,7 @@ defmodule Cannery.Ammo.AmmoGroup do
|
||||
notes: String.t() | nil,
|
||||
price_paid: float() | nil,
|
||||
staged: boolean(),
|
||||
purchased_on: Date.t(),
|
||||
ammo_type: AmmoType.t() | nil,
|
||||
ammo_type_id: AmmoType.id(),
|
||||
container: Container.t() | nil,
|
||||
@ -57,6 +59,7 @@ defmodule Cannery.Ammo.AmmoGroup do
|
||||
}
|
||||
@type new_ammo_group :: %AmmoGroup{}
|
||||
@type id :: UUID.t()
|
||||
@type changeset :: Changeset.t(t() | new_ammo_group())
|
||||
|
||||
@doc false
|
||||
@spec create_changeset(
|
||||
@ -65,7 +68,7 @@ defmodule Cannery.Ammo.AmmoGroup do
|
||||
Container.t() | nil,
|
||||
User.t(),
|
||||
attrs :: map()
|
||||
) :: Changeset.t(new_ammo_group())
|
||||
) :: changeset()
|
||||
def create_changeset(
|
||||
ammo_group,
|
||||
%AmmoType{id: ammo_type_id},
|
||||
@ -79,9 +82,9 @@ defmodule Cannery.Ammo.AmmoGroup do
|
||||
|> change(ammo_type_id: ammo_type_id)
|
||||
|> change(user_id: user_id)
|
||||
|> change(container_id: container_id)
|
||||
|> cast(attrs, [:count, :price_paid, :notes, :staged])
|
||||
|> cast(attrs, [:count, :price_paid, :notes, :staged, :purchased_on])
|
||||
|> validate_number(:count, greater_than: 0)
|
||||
|> validate_required([:count, :staged, :ammo_type_id, :container_id, :user_id])
|
||||
|> validate_required([:count, :staged, :purchased_on, :ammo_type_id, :container_id, :user_id])
|
||||
end
|
||||
|
||||
@doc """
|
||||
@ -95,14 +98,13 @@ defmodule Cannery.Ammo.AmmoGroup do
|
||||
end
|
||||
|
||||
@doc false
|
||||
@spec update_changeset(t() | new_ammo_group(), attrs :: map(), User.t()) ::
|
||||
Changeset.t(t() | new_ammo_group())
|
||||
@spec update_changeset(t() | new_ammo_group(), attrs :: map(), User.t()) :: changeset()
|
||||
def update_changeset(ammo_group, attrs, user) do
|
||||
ammo_group
|
||||
|> cast(attrs, [:count, :price_paid, :notes, :staged, :container_id])
|
||||
|> cast(attrs, [:count, :price_paid, :notes, :staged, :purchased_on, :container_id])
|
||||
|> validate_number(:count, greater_than_or_equal_to: 0)
|
||||
|> validate_container_id(user)
|
||||
|> validate_required([:count, :staged, :container_id])
|
||||
|> validate_required([:count, :staged, :purchased_on, :container_id])
|
||||
end
|
||||
|
||||
defp validate_container_id(changeset, user) do
|
||||
@ -119,8 +121,7 @@ defmodule Cannery.Ammo.AmmoGroup do
|
||||
This range changeset is used when "using up" ammo groups, and allows for
|
||||
updating the count to 0
|
||||
"""
|
||||
@spec range_changeset(t() | new_ammo_group(), attrs :: map()) ::
|
||||
Changeset.t(t() | new_ammo_group())
|
||||
@spec range_changeset(t() | new_ammo_group(), attrs :: map()) :: changeset()
|
||||
def range_changeset(ammo_group, attrs) do
|
||||
ammo_group
|
||||
|> cast(attrs, [:count, :staged])
|
||||
|
@ -102,6 +102,7 @@ defmodule Cannery.Ammo.AmmoType do
|
||||
}
|
||||
@type new_ammo_type :: %AmmoType{}
|
||||
@type id :: UUID.t()
|
||||
@type changeset :: Changeset.t(t() | new_ammo_type())
|
||||
|
||||
@spec changeset_fields() :: [atom()]
|
||||
defp changeset_fields,
|
||||
@ -130,8 +131,7 @@ defmodule Cannery.Ammo.AmmoType do
|
||||
]
|
||||
|
||||
@doc false
|
||||
@spec create_changeset(new_ammo_type(), User.t(), attrs :: map()) ::
|
||||
Changeset.t(new_ammo_type())
|
||||
@spec create_changeset(new_ammo_type(), User.t(), attrs :: map()) :: changeset()
|
||||
def create_changeset(ammo_type, %User{id: user_id}, attrs) do
|
||||
ammo_type
|
||||
|> change(user_id: user_id)
|
||||
@ -140,8 +140,7 @@ defmodule Cannery.Ammo.AmmoType do
|
||||
end
|
||||
|
||||
@doc false
|
||||
@spec update_changeset(t() | new_ammo_type(), attrs :: map()) ::
|
||||
Changeset.t(t() | new_ammo_type())
|
||||
@spec update_changeset(t() | new_ammo_type(), attrs :: map()) :: changeset()
|
||||
def update_changeset(ammo_type, attrs) do
|
||||
ammo_type
|
||||
|> cast(attrs, changeset_fields())
|
||||
|
@ -17,16 +17,55 @@ defmodule Cannery.Containers do
|
||||
iex> list_containers(%User{id: 123})
|
||||
[%Container{}, ...]
|
||||
|
||||
iex> list_containers("cool", %User{id: 123})
|
||||
[%Container{name: "my cool container"}, ...]
|
||||
|
||||
"""
|
||||
@spec list_containers(User.t()) :: [Container.t()]
|
||||
def list_containers(%User{id: user_id}) do
|
||||
Repo.all(
|
||||
from c in Container,
|
||||
left_join: t in assoc(c, :tags),
|
||||
left_join: ag in assoc(c, :ammo_groups),
|
||||
where: c.user_id == ^user_id,
|
||||
order_by: c.name,
|
||||
preload: [tags: t, ammo_groups: ag]
|
||||
@spec list_containers(search :: nil | String.t(), User.t()) :: [Container.t()]
|
||||
def list_containers(search \\ nil, %User{id: user_id}) do
|
||||
from(c in Container,
|
||||
as: :c,
|
||||
left_join: t in assoc(c, :tags),
|
||||
as: :t,
|
||||
left_join: ag in assoc(c, :ammo_groups),
|
||||
as: :ag,
|
||||
where: c.user_id == ^user_id,
|
||||
order_by: c.name,
|
||||
preload: [tags: t, ammo_groups: ag]
|
||||
)
|
||||
|> list_containers_search(search)
|
||||
|> Repo.all()
|
||||
end
|
||||
|
||||
defp list_containers_search(query, nil), do: query
|
||||
defp list_containers_search(query, ""), do: query
|
||||
|
||||
defp list_containers_search(query, search) do
|
||||
trimmed_search = String.trim(search)
|
||||
|
||||
query
|
||||
|> where(
|
||||
[c: c, t: t],
|
||||
fragment(
|
||||
"? @@ websearch_to_tsquery('english', ?)",
|
||||
c.search,
|
||||
^trimmed_search
|
||||
) or
|
||||
fragment(
|
||||
"? @@ websearch_to_tsquery('english', ?)",
|
||||
t.search,
|
||||
^trimmed_search
|
||||
)
|
||||
)
|
||||
|> order_by(
|
||||
[c: c],
|
||||
desc:
|
||||
fragment(
|
||||
"ts_rank_cd(?, websearch_to_tsquery('english', ?), 4)",
|
||||
c.search,
|
||||
^trimmed_search
|
||||
)
|
||||
)
|
||||
end
|
||||
|
||||
@ -89,7 +128,7 @@ defmodule Cannery.Containers do
|
||||
|
||||
"""
|
||||
@spec create_container(attrs :: map(), User.t()) ::
|
||||
{:ok, Container.t()} | {:error, Changeset.t(Container.new_container())}
|
||||
{:ok, Container.t()} | {:error, Container.changeset()}
|
||||
def create_container(attrs, %User{} = user) do
|
||||
%Container{} |> Container.create_changeset(user, attrs) |> Repo.insert()
|
||||
end
|
||||
@ -107,7 +146,7 @@ defmodule Cannery.Containers do
|
||||
|
||||
"""
|
||||
@spec update_container(Container.t(), User.t(), attrs :: map()) ::
|
||||
{:ok, Container.t()} | {:error, Changeset.t(Container.t())}
|
||||
{:ok, Container.t()} | {:error, Container.changeset()}
|
||||
def update_container(%Container{user_id: user_id} = container, %User{id: user_id}, attrs) do
|
||||
container |> Container.update_changeset(attrs) |> Repo.update()
|
||||
end
|
||||
@ -125,7 +164,7 @@ defmodule Cannery.Containers do
|
||||
|
||||
"""
|
||||
@spec delete_container(Container.t(), User.t()) ::
|
||||
{:ok, Container.t()} | {:error, Changeset.t(Container.t())}
|
||||
{:ok, Container.t()} | {:error, Container.changeset()}
|
||||
def delete_container(%Container{user_id: user_id} = container, %User{id: user_id}) do
|
||||
Repo.one(
|
||||
from ag in AmmoGroup,
|
||||
|
@ -49,10 +49,10 @@ defmodule Cannery.Containers.Container do
|
||||
}
|
||||
@type new_container :: %Container{}
|
||||
@type id :: UUID.t()
|
||||
@type changeset :: Changeset.t(t() | new_container())
|
||||
|
||||
@doc false
|
||||
@spec create_changeset(new_container(), User.t(), attrs :: map()) ::
|
||||
Changeset.t(new_container())
|
||||
@spec create_changeset(new_container(), User.t(), attrs :: map()) :: changeset()
|
||||
def create_changeset(container, %User{id: user_id}, attrs) do
|
||||
container
|
||||
|> change(user_id: user_id)
|
||||
@ -61,8 +61,7 @@ defmodule Cannery.Containers.Container do
|
||||
end
|
||||
|
||||
@doc false
|
||||
@spec update_changeset(t() | new_container(), attrs :: map()) ::
|
||||
Changeset.t(t() | new_container())
|
||||
@spec update_changeset(t() | new_container(), attrs :: map()) :: changeset()
|
||||
def update_changeset(container, attrs) do
|
||||
container
|
||||
|> cast(attrs, [:name, :desc, :type, :location])
|
||||
|
@ -29,10 +29,10 @@ defmodule Cannery.Containers.ContainerTag do
|
||||
}
|
||||
@type new_container_tag :: %ContainerTag{}
|
||||
@type id :: UUID.t()
|
||||
@type changeset :: Changeset.t(t() | new_container_tag())
|
||||
|
||||
@doc false
|
||||
@spec create_changeset(new_container_tag(), Tag.t(), Container.t()) ::
|
||||
Changeset.t(new_container_tag())
|
||||
@spec create_changeset(new_container_tag(), Tag.t(), Container.t()) :: changeset()
|
||||
def create_changeset(
|
||||
container_tag,
|
||||
%Tag{id: tag_id, user_id: user_id},
|
||||
|
@ -5,7 +5,6 @@ defmodule Cannery.Invites do
|
||||
|
||||
import Ecto.Query, warn: false
|
||||
alias Cannery.{Accounts.User, Invites.Invite, Repo}
|
||||
alias Ecto.Changeset
|
||||
|
||||
@invite_token_length 20
|
||||
|
||||
@ -99,14 +98,14 @@ defmodule Cannery.Invites do
|
||||
|
||||
"""
|
||||
@spec create_invite(User.t(), attrs :: map()) ::
|
||||
{:ok, Invite.t()} | {:error, Changeset.t(Invite.new_invite())}
|
||||
{:ok, Invite.t()} | {:error, Invite.changeset()}
|
||||
def create_invite(%User{role: :admin} = user, attrs) do
|
||||
token =
|
||||
:crypto.strong_rand_bytes(@invite_token_length)
|
||||
|> Base.url_encode64()
|
||||
|> binary_part(0, @invite_token_length)
|
||||
|
||||
%Invite{} |> Invite.create_changeset(user, token, attrs) |> Repo.insert()
|
||||
Invite.create_changeset(user, token, attrs) |> Repo.insert()
|
||||
end
|
||||
|
||||
@doc """
|
||||
@ -122,7 +121,7 @@ defmodule Cannery.Invites do
|
||||
|
||||
"""
|
||||
@spec update_invite(Invite.t(), attrs :: map(), User.t()) ::
|
||||
{:ok, Invite.t()} | {:error, Changeset.t(Invite.t())}
|
||||
{:ok, Invite.t()} | {:error, Invite.changeset()}
|
||||
def update_invite(invite, attrs, %User{role: :admin}),
|
||||
do: invite |> Invite.update_changeset(attrs) |> Repo.update()
|
||||
|
||||
@ -139,7 +138,7 @@ defmodule Cannery.Invites do
|
||||
|
||||
"""
|
||||
@spec delete_invite(Invite.t(), User.t()) ::
|
||||
{:ok, Invite.t()} | {:error, Changeset.t(Invite.t())}
|
||||
{:ok, Invite.t()} | {:error, Invite.changeset()}
|
||||
def delete_invite(invite, %User{role: :admin}), do: invite |> Repo.delete()
|
||||
|
||||
@doc """
|
||||
|
@ -36,12 +36,12 @@ defmodule Cannery.Invites.Invite do
|
||||
}
|
||||
@type new_invite :: %Invite{}
|
||||
@type id :: UUID.t()
|
||||
@type changeset :: Changeset.t(t() | new_invite())
|
||||
|
||||
@doc false
|
||||
@spec create_changeset(new_invite(), User.t(), token :: binary(), attrs :: map()) ::
|
||||
Changeset.t(new_invite())
|
||||
def create_changeset(invite, %User{id: user_id}, token, attrs) do
|
||||
invite
|
||||
@spec create_changeset(User.t(), token :: binary(), attrs :: map()) :: changeset()
|
||||
def create_changeset(%User{id: user_id}, token, attrs) do
|
||||
%Invite{}
|
||||
|> change(token: token, user_id: user_id)
|
||||
|> cast(attrs, [:name, :uses_left, :disabled_at])
|
||||
|> validate_required([:name, :token, :user_id])
|
||||
@ -49,7 +49,7 @@ defmodule Cannery.Invites.Invite do
|
||||
end
|
||||
|
||||
@doc false
|
||||
@spec update_changeset(t() | new_invite(), attrs :: map()) :: Changeset.t(t() | new_invite())
|
||||
@spec update_changeset(t() | new_invite(), attrs :: map()) :: changeset()
|
||||
def update_changeset(invite, attrs) do
|
||||
invite
|
||||
|> cast(attrs, [:name, :uses_left, :disabled_at])
|
||||
|
@ -6,7 +6,6 @@ defmodule Cannery.Tags do
|
||||
import Ecto.Query, warn: false
|
||||
import CanneryWeb.Gettext
|
||||
alias Cannery.{Accounts.User, Repo, Tags.Tag}
|
||||
alias Ecto.Changeset
|
||||
|
||||
@doc """
|
||||
Returns the list of tags.
|
||||
@ -16,11 +15,38 @@ defmodule Cannery.Tags do
|
||||
iex> list_tags(%User{id: 123})
|
||||
[%Tag{}, ...]
|
||||
|
||||
iex> list_tags("cool", %User{id: 123})
|
||||
[%Tag{name: "my cool tag"}, ...]
|
||||
|
||||
"""
|
||||
@spec list_tags(User.t()) :: [Tag.t()]
|
||||
def list_tags(%{id: user_id}),
|
||||
@spec list_tags(search :: nil | String.t(), User.t()) :: [Tag.t()]
|
||||
def list_tags(search \\ nil, user)
|
||||
|
||||
def list_tags(search, %{id: user_id}) when search |> is_nil() or search == "",
|
||||
do: Repo.all(from t in Tag, where: t.user_id == ^user_id, order_by: t.name)
|
||||
|
||||
def list_tags(search, %{id: user_id}) when search |> is_binary() do
|
||||
trimmed_search = String.trim(search)
|
||||
|
||||
Repo.all(
|
||||
from t in Tag,
|
||||
where: t.user_id == ^user_id,
|
||||
where:
|
||||
fragment(
|
||||
"search @@ websearch_to_tsquery('english', ?)",
|
||||
^trimmed_search
|
||||
),
|
||||
order_by: {
|
||||
:desc,
|
||||
fragment(
|
||||
"ts_rank_cd(search, websearch_to_tsquery('english', ?), 4)",
|
||||
^trimmed_search
|
||||
)
|
||||
}
|
||||
)
|
||||
end
|
||||
|
||||
@doc """
|
||||
Gets a single tag.
|
||||
|
||||
@ -73,7 +99,7 @@ defmodule Cannery.Tags do
|
||||
|
||||
"""
|
||||
@spec create_tag(attrs :: map(), User.t()) ::
|
||||
{:ok, Tag.t()} | {:error, Changeset.t(Tag.new_tag())}
|
||||
{:ok, Tag.t()} | {:error, Tag.changeset()}
|
||||
def create_tag(attrs, %User{} = user),
|
||||
do: %Tag{} |> Tag.create_changeset(user, attrs) |> Repo.insert()
|
||||
|
||||
@ -90,7 +116,7 @@ defmodule Cannery.Tags do
|
||||
|
||||
"""
|
||||
@spec update_tag(Tag.t(), attrs :: map(), User.t()) ::
|
||||
{:ok, Tag.t()} | {:error, Changeset.t(Tag.t())}
|
||||
{:ok, Tag.t()} | {:error, Tag.changeset()}
|
||||
def update_tag(%Tag{user_id: user_id} = tag, attrs, %User{id: user_id}),
|
||||
do: tag |> Tag.update_changeset(attrs) |> Repo.update()
|
||||
|
||||
@ -106,7 +132,7 @@ defmodule Cannery.Tags do
|
||||
{:error, %Changeset{}}
|
||||
|
||||
"""
|
||||
@spec delete_tag(Tag.t(), User.t()) :: {:ok, Tag.t()} | {:error, Changeset.t(Tag.t())}
|
||||
@spec delete_tag(Tag.t(), User.t()) :: {:ok, Tag.t()} | {:error, Tag.changeset()}
|
||||
def delete_tag(%Tag{user_id: user_id} = tag, %User{id: user_id}), do: tag |> Repo.delete()
|
||||
|
||||
@doc """
|
||||
|
@ -40,9 +40,10 @@ defmodule Cannery.Tags.Tag do
|
||||
}
|
||||
@type new_tag() :: %Tag{}
|
||||
@type id() :: UUID.t()
|
||||
@type changeset() :: Changeset.t(t() | new_tag())
|
||||
|
||||
@doc false
|
||||
@spec create_changeset(new_tag(), User.t(), attrs :: map()) :: Changeset.t(new_tag())
|
||||
@spec create_changeset(new_tag(), User.t(), attrs :: map()) :: changeset()
|
||||
def create_changeset(tag, %User{id: user_id}, attrs) do
|
||||
tag
|
||||
|> change(user_id: user_id)
|
||||
@ -51,7 +52,7 @@ defmodule Cannery.Tags.Tag do
|
||||
end
|
||||
|
||||
@doc false
|
||||
@spec update_changeset(t() | new_tag(), attrs :: map()) :: Changeset.t(t() | new_tag())
|
||||
@spec update_changeset(t() | new_tag(), attrs :: map()) :: changeset()
|
||||
def update_changeset(tag, attrs) do
|
||||
tag
|
||||
|> cast(attrs, [:name, :bg_color, :text_color])
|
||||
|
@ -104,6 +104,7 @@ defmodule CanneryWeb do
|
||||
|
||||
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
||||
import CanneryWeb.{ErrorHelpers, Gettext, LiveHelpers, ViewHelpers}
|
||||
alias CanneryWeb.Endpoint
|
||||
alias CanneryWeb.Router.Helpers, as: Routes
|
||||
end
|
||||
end
|
||||
|
@ -42,7 +42,7 @@
|
||||
) %>
|
||||
<%= error_tag(f, :notes, "col-span-3") %>
|
||||
|
||||
<%= label(f, :date, gettext("Date (UTC)"), class: "title text-lg text-primary-600") %>
|
||||
<%= label(f, :date, gettext("Date"), class: "title text-lg text-primary-600") %>
|
||||
<%= date_input(f, :date,
|
||||
class: "input input-primary col-span-2",
|
||||
phx_update: "ignore",
|
||||
|
@ -54,13 +54,13 @@ defmodule CanneryWeb.Components.AmmoGroupCard do
|
||||
<% end %>
|
||||
|
||||
<span class="rounded-lg title text-lg">
|
||||
<%= gettext("Added on:") %>
|
||||
<%= @ammo_group.inserted_at |> display_datetime() %>
|
||||
<%= gettext("Purchased on:") %>
|
||||
<%= @ammo_group.purchased_on |> display_date() %>
|
||||
</span>
|
||||
|
||||
<%= if @ammo_group.count == 0 do %>
|
||||
<%= if @ammo_group |> Ammo.get_last_used_shot_group() do %>
|
||||
<span class="rounded-lg title text-lg">
|
||||
<%= gettext("Used up on:") %>
|
||||
<%= gettext("Last used on:") %>
|
||||
<%= @ammo_group |> Ammo.get_last_used_shot_group() |> Map.get(:date) |> display_date() %>
|
||||
</span>
|
||||
<% end %>
|
||||
|
@ -13,7 +13,6 @@ defmodule CanneryWeb.Components.AmmoGroupTableComponent do
|
||||
required(:id) => UUID.t(),
|
||||
required(:current_user) => User.t(),
|
||||
required(:ammo_groups) => [AmmoGroup.t()],
|
||||
optional(:show_used) => boolean(),
|
||||
optional(:ammo_type) => Rendered.t(),
|
||||
optional(:range) => Rendered.t(),
|
||||
optional(:container) => Rendered.t(),
|
||||
@ -26,7 +25,6 @@ defmodule CanneryWeb.Components.AmmoGroupTableComponent do
|
||||
socket =
|
||||
socket
|
||||
|> assign(assigns)
|
||||
|> assign_new(:show_used, fn -> false end)
|
||||
|> assign_new(:ammo_type, fn -> [] end)
|
||||
|> assign_new(:range, fn -> [] end)
|
||||
|> assign_new(:container, fn -> [] end)
|
||||
@ -41,7 +39,6 @@ defmodule CanneryWeb.Components.AmmoGroupTableComponent do
|
||||
assigns: %{
|
||||
ammo_groups: ammo_groups,
|
||||
current_user: current_user,
|
||||
show_used: show_used,
|
||||
ammo_type: ammo_type,
|
||||
range: range,
|
||||
container: container,
|
||||
@ -56,14 +53,10 @@ defmodule CanneryWeb.Components.AmmoGroupTableComponent do
|
||||
[%{label: nil, key: :actions, sortable: false}]
|
||||
end
|
||||
|
||||
columns =
|
||||
if show_used do
|
||||
[%{label: gettext("Used up on"), key: :used_up_on} | columns]
|
||||
else
|
||||
columns
|
||||
end
|
||||
|
||||
columns = [%{label: gettext("Added on"), key: :added_on} | columns]
|
||||
columns = [
|
||||
%{label: gettext("Purchased on"), key: :purchased_on},
|
||||
%{label: gettext("Last used on"), key: :used_up_on} | columns
|
||||
]
|
||||
|
||||
columns =
|
||||
if container == [] do
|
||||
@ -96,19 +89,20 @@ defmodule CanneryWeb.Components.AmmoGroupTableComponent do
|
||||
[%{label: gettext("Ammo type"), key: :ammo_type} | columns]
|
||||
end
|
||||
|
||||
extra_data = %{
|
||||
current_user: current_user,
|
||||
ammo_type: ammo_type,
|
||||
columns: columns,
|
||||
container: container,
|
||||
actions: actions,
|
||||
range: range
|
||||
}
|
||||
|
||||
rows =
|
||||
ammo_groups
|
||||
|> Repo.preload([:ammo_type, :container])
|
||||
|> Enum.map(fn ammo_group ->
|
||||
ammo_group
|
||||
|> get_row_data_for_ammo_group(%{
|
||||
current_user: current_user,
|
||||
ammo_type: ammo_type,
|
||||
columns: columns,
|
||||
container: container,
|
||||
actions: actions,
|
||||
range: range
|
||||
})
|
||||
ammo_group |> get_row_data_for_ammo_group(extra_data)
|
||||
end)
|
||||
|
||||
socket |> assign(columns: columns, rows: rows)
|
||||
@ -117,10 +111,10 @@ defmodule CanneryWeb.Components.AmmoGroupTableComponent do
|
||||
@impl true
|
||||
def render(assigns) do
|
||||
~H"""
|
||||
<div class="w-full">
|
||||
<div id={@id} class="w-full">
|
||||
<.live_component
|
||||
module={CanneryWeb.Components.TableComponent}
|
||||
id={@id}
|
||||
id={"table-#{@id}"}
|
||||
columns={@columns}
|
||||
rows={@rows}
|
||||
/>
|
||||
@ -158,12 +152,12 @@ defmodule CanneryWeb.Components.AmmoGroupTableComponent do
|
||||
defp get_value_for_key(:price_paid, %{price_paid: price_paid}, _additional_data),
|
||||
do: gettext("$%{amount}", amount: price_paid |> :erlang.float_to_binary(decimals: 2))
|
||||
|
||||
defp get_value_for_key(:added_on, %{inserted_at: inserted_at}, _additional_data) do
|
||||
assigns = %{inserted_at: inserted_at}
|
||||
defp get_value_for_key(:purchased_on, %{purchased_on: purchased_on}, _additional_data) do
|
||||
assigns = %{purchased_on: purchased_on}
|
||||
|
||||
{inserted_at,
|
||||
{purchased_on,
|
||||
~H"""
|
||||
<%= @inserted_at |> display_datetime() %>
|
||||
<%= @purchased_on |> display_date() %>
|
||||
"""}
|
||||
end
|
||||
|
||||
@ -178,7 +172,11 @@ defmodule CanneryWeb.Components.AmmoGroupTableComponent do
|
||||
|
||||
{last_shot_group_date,
|
||||
~H"""
|
||||
<%= @last_shot_group_date |> display_date() %>
|
||||
<%= if @last_shot_group_date do %>
|
||||
<%= @last_shot_group_date |> display_date() %>
|
||||
<% else %>
|
||||
<%= gettext("Never used") %>
|
||||
<% end %>
|
||||
"""}
|
||||
end
|
||||
|
||||
|
209
lib/cannery_web/components/ammo_type_table_component.ex
Normal file
209
lib/cannery_web/components/ammo_type_table_component.ex
Normal file
@ -0,0 +1,209 @@
|
||||
defmodule CanneryWeb.Components.AmmoTypeTableComponent do
|
||||
@moduledoc """
|
||||
A component that displays a list of ammo type
|
||||
"""
|
||||
use CanneryWeb, :live_component
|
||||
alias Cannery.{Accounts.User, Ammo, Ammo.AmmoType}
|
||||
alias Ecto.UUID
|
||||
alias Phoenix.LiveView.{Rendered, Socket}
|
||||
|
||||
@impl true
|
||||
@spec update(
|
||||
%{
|
||||
required(:id) => UUID.t(),
|
||||
required(:current_user) => User.t(),
|
||||
optional(:show_used) => boolean(),
|
||||
optional(:ammo_types) => [AmmoType.t()],
|
||||
optional(:actions) => Rendered.t(),
|
||||
optional(any()) => any()
|
||||
},
|
||||
Socket.t()
|
||||
) :: {:ok, Socket.t()}
|
||||
def update(%{id: _id, ammo_types: _ammo_types, current_user: _current_user} = assigns, socket) do
|
||||
socket =
|
||||
socket
|
||||
|> assign(assigns)
|
||||
|> assign_new(:show_used, fn -> false end)
|
||||
|> assign_new(:actions, fn -> [] end)
|
||||
|> display_ammo_types()
|
||||
|
||||
{:ok, socket}
|
||||
end
|
||||
|
||||
defp display_ammo_types(
|
||||
%{
|
||||
assigns: %{
|
||||
ammo_types: ammo_types,
|
||||
current_user: current_user,
|
||||
show_used: show_used,
|
||||
actions: actions
|
||||
}
|
||||
} = socket
|
||||
) do
|
||||
columns =
|
||||
[
|
||||
%{label: gettext("Name"), key: :name, type: :name},
|
||||
%{label: gettext("Bullet type"), key: :bullet_type, type: :string},
|
||||
%{label: gettext("Bullet core"), key: :bullet_core, type: :string},
|
||||
%{label: gettext("Cartridge"), key: :cartridge, type: :string},
|
||||
%{label: gettext("Caliber"), key: :caliber, type: :string},
|
||||
%{label: gettext("Case material"), key: :case_material, type: :string},
|
||||
%{label: gettext("Jacket type"), key: :jacket_type, type: :string},
|
||||
%{label: gettext("Muzzle velocity"), key: :muzzle_velocity, type: :string},
|
||||
%{label: gettext("Powder type"), key: :powder_type, type: :string},
|
||||
%{
|
||||
label: gettext("Powder grains per charge"),
|
||||
key: :powder_grains_per_charge,
|
||||
type: :string
|
||||
},
|
||||
%{label: gettext("Grains"), key: :grains, type: :string},
|
||||
%{label: gettext("Pressure"), key: :pressure, type: :string},
|
||||
%{label: gettext("Primer type"), key: :primer_type, type: :string},
|
||||
%{label: gettext("Firing type"), key: :firing_type, type: :string},
|
||||
%{label: gettext("Tracer"), key: :tracer, type: :boolean},
|
||||
%{label: gettext("Incendiary"), key: :incendiary, type: :boolean},
|
||||
%{label: gettext("Blank"), key: :blank, type: :boolean},
|
||||
%{label: gettext("Corrosive"), key: :corrosive, type: :boolean},
|
||||
%{label: gettext("Manufacturer"), key: :manufacturer, type: :string},
|
||||
%{label: gettext("UPC"), key: "upc", type: :string}
|
||||
]
|
||||
|> Enum.filter(fn %{key: key, type: type} ->
|
||||
# remove columns if all values match defaults
|
||||
default_value = if type == :boolean, do: false, else: nil
|
||||
|
||||
ammo_types
|
||||
|> Enum.any?(fn ammo_type ->
|
||||
not (ammo_type |> Map.get(key) == default_value)
|
||||
end)
|
||||
end)
|
||||
|> Kernel.++([
|
||||
%{label: gettext("Rounds"), key: :round_count, type: :round_count}
|
||||
])
|
||||
|> Kernel.++(
|
||||
if show_used do
|
||||
[
|
||||
%{
|
||||
label: gettext("Used rounds"),
|
||||
key: :used_round_count,
|
||||
type: :used_round_count
|
||||
},
|
||||
%{
|
||||
label: gettext("Total ever rounds"),
|
||||
key: :historical_round_count,
|
||||
type: :historical_round_count
|
||||
}
|
||||
]
|
||||
else
|
||||
[]
|
||||
end
|
||||
)
|
||||
|> Kernel.++([%{label: gettext("Packs"), key: :ammo_count, type: :ammo_count}])
|
||||
|> Kernel.++(
|
||||
if show_used do
|
||||
[
|
||||
%{
|
||||
label: gettext("Used packs"),
|
||||
key: :used_ammo_count,
|
||||
type: :used_ammo_count
|
||||
},
|
||||
%{
|
||||
label: gettext("Total ever packs"),
|
||||
key: :historical_ammo_count,
|
||||
type: :historical_ammo_count
|
||||
}
|
||||
]
|
||||
else
|
||||
[]
|
||||
end
|
||||
)
|
||||
|> Kernel.++([
|
||||
%{label: gettext("Average CPR"), key: :avg_price_paid, type: :avg_price_paid},
|
||||
%{label: nil, key: "actions", type: :actions, sortable: false}
|
||||
])
|
||||
|
||||
extra_data = %{actions: actions, current_user: current_user}
|
||||
|
||||
rows =
|
||||
ammo_types
|
||||
|> Enum.map(fn ammo_type ->
|
||||
ammo_type |> get_ammo_type_values(columns, extra_data)
|
||||
end)
|
||||
|
||||
socket |> assign(columns: columns, rows: rows)
|
||||
end
|
||||
|
||||
@impl true
|
||||
def render(assigns) do
|
||||
~H"""
|
||||
<div id={@id} class="w-full">
|
||||
<.live_component
|
||||
module={CanneryWeb.Components.TableComponent}
|
||||
id={"table-#{@id}"}
|
||||
columns={@columns}
|
||||
rows={@rows}
|
||||
/>
|
||||
</div>
|
||||
"""
|
||||
end
|
||||
|
||||
defp get_ammo_type_values(ammo_type, columns, extra_data) do
|
||||
columns
|
||||
|> Map.new(fn %{key: key, type: type} ->
|
||||
{key, get_ammo_type_value(type, key, ammo_type, extra_data)}
|
||||
end)
|
||||
end
|
||||
|
||||
defp get_ammo_type_value(:boolean, key, ammo_type, _other_data),
|
||||
do: ammo_type |> Map.get(key) |> humanize()
|
||||
|
||||
defp get_ammo_type_value(:round_count, _key, ammo_type, %{current_user: current_user}),
|
||||
do: ammo_type |> Ammo.get_round_count_for_ammo_type(current_user)
|
||||
|
||||
defp get_ammo_type_value(:historical_round_count, _key, ammo_type, %{current_user: current_user}),
|
||||
do: ammo_type |> Ammo.get_historical_count_for_ammo_type(current_user)
|
||||
|
||||
defp get_ammo_type_value(:used_round_count, _key, ammo_type, %{current_user: current_user}),
|
||||
do: ammo_type |> Ammo.get_used_count_for_ammo_type(current_user)
|
||||
|
||||
defp get_ammo_type_value(:historical_ammo_count, _key, ammo_type, %{current_user: current_user}),
|
||||
do: ammo_type |> Ammo.get_ammo_groups_count_for_type(current_user, true)
|
||||
|
||||
defp get_ammo_type_value(:used_ammo_count, _key, ammo_type, %{current_user: current_user}),
|
||||
do: ammo_type |> Ammo.get_used_ammo_groups_count_for_type(current_user)
|
||||
|
||||
defp get_ammo_type_value(:ammo_count, _key, ammo_type, %{current_user: current_user}),
|
||||
do: ammo_type |> Ammo.get_ammo_groups_count_for_type(current_user)
|
||||
|
||||
defp get_ammo_type_value(:avg_price_paid, _key, ammo_type, %{current_user: current_user}) do
|
||||
case ammo_type |> Ammo.get_average_cost_for_ammo_type!(current_user) do
|
||||
nil -> gettext("No cost information")
|
||||
count -> gettext("$%{amount}", amount: count |> :erlang.float_to_binary(decimals: 2))
|
||||
end
|
||||
end
|
||||
|
||||
defp get_ammo_type_value(:name, _key, ammo_type, _other_data) do
|
||||
assigns = %{ammo_type: ammo_type}
|
||||
|
||||
~H"""
|
||||
<.link
|
||||
navigate={Routes.ammo_type_show_path(Endpoint, :show, @ammo_type)}
|
||||
class="link"
|
||||
data-qa={"view-name-#{@ammo_type.id}"}
|
||||
>
|
||||
<%= @ammo_type.name %>
|
||||
</.link>
|
||||
"""
|
||||
end
|
||||
|
||||
defp get_ammo_type_value(:actions, _key, ammo_type, %{actions: actions}) do
|
||||
assigns = %{actions: actions, ammo_type: ammo_type}
|
||||
|
||||
~H"""
|
||||
<%= render_slot(@actions, @ammo_type) %>
|
||||
"""
|
||||
end
|
||||
|
||||
defp get_ammo_type_value(nil, _key, _ammo_type, _other_data), do: nil
|
||||
|
||||
defp get_ammo_type_value(_other, key, ammo_type, _other_data), do: ammo_type |> Map.get(key)
|
||||
end
|
@ -23,7 +23,7 @@ defmodule CanneryWeb.Components.ContainerCard do
|
||||
~H"""
|
||||
<div
|
||||
id={"container-#{@container.id}"}
|
||||
class="overflow-hidden max-w-full mx-4 my-2 px-8 py-4 flex flex-col justify-center items-center space-y-4
|
||||
class="overflow-hidden max-w-full mx-4 mb-4 px-8 py-4 flex flex-col justify-center items-center space-y-4
|
||||
border border-gray-400 rounded-lg shadow-lg hover:shadow-md
|
||||
transition-all duration-300 ease-in-out"
|
||||
>
|
||||
|
158
lib/cannery_web/components/container_table_component.ex
Normal file
158
lib/cannery_web/components/container_table_component.ex
Normal file
@ -0,0 +1,158 @@
|
||||
defmodule CanneryWeb.Components.ContainerTableComponent do
|
||||
@moduledoc """
|
||||
A component that displays a list of containers
|
||||
"""
|
||||
use CanneryWeb, :live_component
|
||||
alias Cannery.{Accounts.User, Containers, Containers.Container, Repo}
|
||||
alias CanneryWeb.Components.TagCard
|
||||
alias Ecto.UUID
|
||||
alias Phoenix.LiveView.{Rendered, Socket}
|
||||
|
||||
@impl true
|
||||
@spec update(
|
||||
%{
|
||||
required(:id) => UUID.t(),
|
||||
required(:current_user) => User.t(),
|
||||
optional(:containers) => [Container.t()],
|
||||
optional(:tag_actions) => Rendered.t(),
|
||||
optional(:actions) => Rendered.t(),
|
||||
optional(any()) => any()
|
||||
},
|
||||
Socket.t()
|
||||
) :: {:ok, Socket.t()}
|
||||
def update(%{id: _id, containers: _containers, current_user: _current_user} = assigns, socket) do
|
||||
socket =
|
||||
socket
|
||||
|> assign(assigns)
|
||||
|> assign_new(:tag_actions, fn -> [] end)
|
||||
|> assign_new(:actions, fn -> [] end)
|
||||
|> display_containers()
|
||||
|
||||
{:ok, socket}
|
||||
end
|
||||
|
||||
defp display_containers(
|
||||
%{
|
||||
assigns: %{
|
||||
containers: containers,
|
||||
current_user: current_user,
|
||||
tag_actions: tag_actions,
|
||||
actions: actions
|
||||
}
|
||||
} = socket
|
||||
) do
|
||||
columns =
|
||||
[
|
||||
%{label: gettext("Name"), key: :name, type: :string},
|
||||
%{label: gettext("Description"), key: :desc, type: :string},
|
||||
%{label: gettext("Location"), key: :location, type: :string},
|
||||
%{label: gettext("Type"), key: :type, type: :string},
|
||||
%{label: gettext("Packs"), key: :packs, type: :integer},
|
||||
%{label: gettext("Rounds"), key: :rounds, type: :string},
|
||||
%{label: gettext("Tags"), key: :tags, type: :tags},
|
||||
%{label: nil, key: :actions, sortable: false, type: :actions}
|
||||
]
|
||||
|> Enum.filter(fn %{key: key, type: type} ->
|
||||
# remove columns if all values match defaults
|
||||
default_value =
|
||||
case type do
|
||||
:boolean -> false
|
||||
_other_type -> nil
|
||||
end
|
||||
|
||||
containers
|
||||
|> Enum.any?(fn container ->
|
||||
type in [:tags, :actions] or not (container |> Map.get(key) == default_value)
|
||||
end)
|
||||
end)
|
||||
|
||||
extra_data = %{
|
||||
current_user: current_user,
|
||||
tag_actions: tag_actions,
|
||||
actions: actions
|
||||
}
|
||||
|
||||
rows =
|
||||
containers
|
||||
|> Enum.map(fn container ->
|
||||
container |> get_row_data_for_container(columns, extra_data)
|
||||
end)
|
||||
|
||||
socket
|
||||
|> assign(
|
||||
columns: columns,
|
||||
rows: rows
|
||||
)
|
||||
end
|
||||
|
||||
@impl true
|
||||
def render(assigns) do
|
||||
~H"""
|
||||
<div id={@id} class="w-full">
|
||||
<.live_component
|
||||
module={CanneryWeb.Components.TableComponent}
|
||||
id={"table-#{@id}"}
|
||||
columns={@columns}
|
||||
rows={@rows}
|
||||
/>
|
||||
</div>
|
||||
"""
|
||||
end
|
||||
|
||||
@spec get_row_data_for_container(Container.t(), columns :: [map()], extra_data :: map) :: map()
|
||||
defp get_row_data_for_container(container, columns, extra_data) do
|
||||
container = container |> Repo.preload([:ammo_groups, :tags])
|
||||
|
||||
columns
|
||||
|> Map.new(fn %{key: key} -> {key, get_value_for_key(key, container, extra_data)} end)
|
||||
end
|
||||
|
||||
@spec get_value_for_key(atom(), Container.t(), extra_data :: map) :: any()
|
||||
defp get_value_for_key(:name, %{id: id, name: container_name}, _extra_data) do
|
||||
assigns = %{id: id, container_name: container_name}
|
||||
|
||||
{container_name,
|
||||
~H"""
|
||||
<div class="flex flex-wrap justify-center items-center">
|
||||
<.link navigate={Routes.container_show_path(Endpoint, :show, @id)} class="link">
|
||||
<%= @container_name %>
|
||||
</.link>
|
||||
</div>
|
||||
"""}
|
||||
end
|
||||
|
||||
defp get_value_for_key(:packs, container, _extra_data) do
|
||||
container |> Containers.get_container_ammo_group_count!()
|
||||
end
|
||||
|
||||
defp get_value_for_key(:rounds, container, _extra_data) do
|
||||
container |> Containers.get_container_rounds!()
|
||||
end
|
||||
|
||||
defp get_value_for_key(:tags, container, %{tag_actions: tag_actions}) do
|
||||
assigns = %{tag_actions: tag_actions, container: container}
|
||||
|
||||
{container.tags |> Enum.map(fn %{name: name} -> name end),
|
||||
~H"""
|
||||
<div class="flex flex-wrap justify-center items-center">
|
||||
<%= unless @container.tags |> Enum.empty?() do %>
|
||||
<%= for tag <- @container.tags do %>
|
||||
<TagCard.simple_tag_card tag={tag} />
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<%= render_slot(@tag_actions, @container) %>
|
||||
</div>
|
||||
"""}
|
||||
end
|
||||
|
||||
defp get_value_for_key(:actions, container, %{actions: actions}) do
|
||||
assigns = %{actions: actions, container: container}
|
||||
|
||||
~H"""
|
||||
<%= render_slot(@actions, @container) %>
|
||||
"""
|
||||
end
|
||||
|
||||
defp get_value_for_key(key, container, _extra_data), do: container |> Map.get(key)
|
||||
end
|
@ -15,9 +15,12 @@ defmodule CanneryWeb.Components.InviteCard do
|
||||
assigns = assigns |> assign_new(:code_actions, fn -> [] end)
|
||||
|
||||
~H"""
|
||||
<div class="mx-4 my-2 px-8 py-4 flex flex-col justify-center items-center space-y-4
|
||||
<div
|
||||
id={"invite-#{@invite.id}"}
|
||||
class="mx-4 my-2 px-8 py-4 flex flex-col justify-center items-center space-y-4
|
||||
border border-gray-400 rounded-lg shadow-lg hover:shadow-md
|
||||
transition-all duration-300 ease-in-out">
|
||||
transition-all duration-300 ease-in-out"
|
||||
>
|
||||
<h1 class="title text-xl">
|
||||
<%= @invite.name %>
|
||||
</h1>
|
||||
|
117
lib/cannery_web/components/shot_group_table_component.ex
Normal file
117
lib/cannery_web/components/shot_group_table_component.ex
Normal file
@ -0,0 +1,117 @@
|
||||
defmodule CanneryWeb.Components.ShotGroupTableComponent do
|
||||
@moduledoc """
|
||||
A component that displays a list of shot groups
|
||||
"""
|
||||
use CanneryWeb, :live_component
|
||||
alias Cannery.{Accounts.User, ActivityLog.ShotGroup, Repo}
|
||||
alias Ecto.UUID
|
||||
alias Phoenix.LiveView.{Rendered, Socket}
|
||||
|
||||
@impl true
|
||||
@spec update(
|
||||
%{
|
||||
required(:id) => UUID.t(),
|
||||
required(:current_user) => User.t(),
|
||||
optional(:shot_groups) => [ShotGroup.t()],
|
||||
optional(:actions) => Rendered.t(),
|
||||
optional(any()) => any()
|
||||
},
|
||||
Socket.t()
|
||||
) :: {:ok, Socket.t()}
|
||||
def update(%{id: _id, shot_groups: _shot_groups, current_user: _current_user} = assigns, socket) do
|
||||
socket =
|
||||
socket
|
||||
|> assign(assigns)
|
||||
|> assign_new(:actions, fn -> [] end)
|
||||
|> display_shot_groups()
|
||||
|
||||
{:ok, socket}
|
||||
end
|
||||
|
||||
defp display_shot_groups(
|
||||
%{
|
||||
assigns: %{
|
||||
shot_groups: shot_groups,
|
||||
current_user: current_user,
|
||||
actions: actions
|
||||
}
|
||||
} = socket
|
||||
) do
|
||||
columns = [
|
||||
%{label: gettext("Ammo"), key: :name},
|
||||
%{label: gettext("Rounds shot"), key: :count},
|
||||
%{label: gettext("Notes"), key: :notes},
|
||||
%{label: gettext("Date"), key: :date},
|
||||
%{label: nil, key: :actions, sortable: false}
|
||||
]
|
||||
|
||||
extra_data = %{current_user: current_user, actions: actions}
|
||||
|
||||
rows =
|
||||
shot_groups
|
||||
|> Enum.map(fn shot_group ->
|
||||
shot_group |> get_row_data_for_shot_group(columns, extra_data)
|
||||
end)
|
||||
|
||||
socket
|
||||
|> assign(
|
||||
columns: columns,
|
||||
rows: rows
|
||||
)
|
||||
end
|
||||
|
||||
@impl true
|
||||
def render(assigns) do
|
||||
~H"""
|
||||
<div id={@id} class="w-full">
|
||||
<.live_component
|
||||
module={CanneryWeb.Components.TableComponent}
|
||||
id={"table-#{@id}"}
|
||||
columns={@columns}
|
||||
rows={@rows}
|
||||
initial_key={:date}
|
||||
initial_sort_mode={:desc}
|
||||
/>
|
||||
</div>
|
||||
"""
|
||||
end
|
||||
|
||||
@spec get_row_data_for_shot_group(ShotGroup.t(), columns :: [map()], extra_data :: map()) ::
|
||||
map()
|
||||
defp get_row_data_for_shot_group(shot_group, columns, extra_data) do
|
||||
shot_group = shot_group |> Repo.preload(ammo_group: :ammo_type)
|
||||
|
||||
columns
|
||||
|> Map.new(fn %{key: key} ->
|
||||
{key, get_row_value(key, shot_group, extra_data)}
|
||||
end)
|
||||
end
|
||||
|
||||
defp get_row_value(
|
||||
:name,
|
||||
%{ammo_group: %{ammo_type: %{name: ammo_type_name} = ammo_group}},
|
||||
_extra_data
|
||||
) do
|
||||
assigns = %{ammo_group: ammo_group, ammo_type_name: ammo_type_name}
|
||||
|
||||
name_block = ~H"""
|
||||
<.link navigate={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)} class="link">
|
||||
<%= @ammo_type_name %>
|
||||
</.link>
|
||||
"""
|
||||
|
||||
{ammo_type_name, name_block}
|
||||
end
|
||||
|
||||
defp get_row_value(:date, %{date: date}, _extra_data), do: date |> display_date()
|
||||
|
||||
defp get_row_value(:actions, shot_group, %{actions: actions}) do
|
||||
assigns = %{actions: actions, shot_group: shot_group}
|
||||
|
||||
~H"""
|
||||
<%= render_slot(@actions, @shot_group) %>
|
||||
"""
|
||||
end
|
||||
|
||||
defp get_row_value(key, shot_group, _extra_data), do: shot_group |> Map.get(key)
|
||||
end
|
@ -1,4 +1,4 @@
|
||||
<div id={@id} class="w-full overflow-x-auto border border-gray-600 rounded-lg shadow-lg bg-black">
|
||||
<div id={@id} class="w-full overflow-x-auto border border-gray-600 rounded-lg shadow-lg bg-white">
|
||||
<table class="min-w-full table-auto text-center bg-white">
|
||||
<thead class="border-b border-primary-600">
|
||||
<tr>
|
||||
@ -11,21 +11,22 @@
|
||||
phx-value-sort-key={key}
|
||||
phx-target={@myself}
|
||||
>
|
||||
<span class="underline"><%= label %></span>
|
||||
<i class="w-0 float-right fas fa-sm fa-chevron-up opacity-0"></i>
|
||||
<span class={if @last_sort_key == key, do: "underline"}><%= label %></span>
|
||||
<%= if @last_sort_key == key do %>
|
||||
<%= case @sort_mode do %>
|
||||
<% :asc -> %>
|
||||
<i class="fas fa-sm fa-chevron-down"></i>
|
||||
<i class="w-0 float-right fas fa-sm fa-chevron-down"></i>
|
||||
<% :desc -> %>
|
||||
<i class="fas fa-sm fa-chevron-up"></i>
|
||||
<i class="w-0 float-right fas fa-sm fa-chevron-up"></i>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<i class="fas fa-sm fa-chevron-up opacity-0"></i>
|
||||
<i class="w-0 float-right fas fa-sm fa-chevron-up opacity-0"></i>
|
||||
<% end %>
|
||||
</span>
|
||||
</th>
|
||||
<% else %>
|
||||
<th class={"p-2 #{column[:class]}"}>
|
||||
<th class={"p-2 cursor-not-allowed #{column[:class]}"}>
|
||||
<%= label %>
|
||||
</th>
|
||||
<% end %>
|
||||
|
@ -13,7 +13,7 @@ defmodule CanneryWeb.Components.TagCard do
|
||||
~H"""
|
||||
<div
|
||||
id={"tag-#{@tag.id}"}
|
||||
class="mx-4 my-2 px-8 py-4 space-x-4 flex justify-center items-center
|
||||
class="mx-4 mb-4 px-8 py-4 space-x-4 flex justify-center items-center
|
||||
border border-gray-400 rounded-lg shadow-lg hover:shadow-md
|
||||
transition-all duration-300 ease-in-out"
|
||||
>
|
||||
|
@ -23,7 +23,7 @@ defmodule CanneryWeb.ExportController do
|
||||
end)
|
||||
|
||||
ammo_groups =
|
||||
Ammo.list_ammo_groups(current_user, true)
|
||||
Ammo.list_ammo_groups(nil, true, current_user)
|
||||
|> Enum.map(fn ammo_group ->
|
||||
cpr = ammo_group |> Ammo.get_cpr()
|
||||
used_count = ammo_group |> Ammo.get_used_count()
|
||||
|
@ -2,7 +2,6 @@ defmodule CanneryWeb.UserRegistrationController do
|
||||
use CanneryWeb, :controller
|
||||
import CanneryWeb.Gettext
|
||||
alias Cannery.{Accounts, Invites}
|
||||
alias Cannery.Accounts.User
|
||||
alias CanneryWeb.{Endpoint, HomeLive}
|
||||
|
||||
def new(conn, %{"invite" => invite_token}) do
|
||||
@ -30,7 +29,7 @@ defmodule CanneryWeb.UserRegistrationController do
|
||||
# renders new user registration page
|
||||
defp render_new(conn, invite \\ nil) do
|
||||
render(conn, "new.html",
|
||||
changeset: Accounts.change_user_registration(%User{}),
|
||||
changeset: Accounts.change_user_registration(),
|
||||
invite: invite,
|
||||
page_title: gettext("Register")
|
||||
)
|
||||
|
@ -38,6 +38,14 @@
|
||||
) %>
|
||||
<%= error_tag(f, :price_paid, "col-span-3 text-center") %>
|
||||
|
||||
<%= label(f, :purchased_on, gettext("Purchased on"), class: "title text-lg text-primary-600") %>
|
||||
<%= date_input(f, :purchased_on,
|
||||
class: "input input-primary col-span-2",
|
||||
phx_update: "ignore",
|
||||
value: @changeset |> Changeset.get_field(:purchased_on) || Date.utc_today()
|
||||
) %>
|
||||
<%= error_tag(f, :purchased_on, "col-span-3 text-center") %>
|
||||
|
||||
<%= label(f, :notes, gettext("Notes"), class: "title text-lg text-primary-600") %>
|
||||
<%= textarea(f, :notes,
|
||||
class: "text-center col-span-2 input input-primary",
|
||||
|
@ -4,12 +4,15 @@ defmodule CanneryWeb.AmmoGroupLive.Index do
|
||||
"""
|
||||
|
||||
use CanneryWeb, :live_view
|
||||
alias Cannery.{Ammo, Ammo.AmmoGroup, Containers, Repo}
|
||||
alias CanneryWeb.Endpoint
|
||||
alias Cannery.{Ammo, Ammo.AmmoGroup, Containers}
|
||||
|
||||
@impl true
|
||||
def mount(%{"search" => search}, _session, socket) do
|
||||
{:ok, socket |> assign(show_used: false, search: search) |> display_ammo_groups()}
|
||||
end
|
||||
|
||||
def mount(_params, _session, socket) do
|
||||
{:ok, socket |> assign(show_used: false)}
|
||||
{:ok, socket |> assign(show_used: false, search: nil) |> display_ammo_groups()}
|
||||
end
|
||||
|
||||
@impl true
|
||||
@ -23,45 +26,67 @@ defmodule CanneryWeb.AmmoGroupLive.Index do
|
||||
%{"id" => id}
|
||||
) do
|
||||
socket
|
||||
|> assign(:page_title, gettext("Record shots"))
|
||||
|> assign(:ammo_group, Ammo.get_ammo_group!(id, current_user))
|
||||
|> assign(
|
||||
page_title: gettext("Record shots"),
|
||||
ammo_group: Ammo.get_ammo_group!(id, current_user)
|
||||
)
|
||||
end
|
||||
|
||||
defp apply_action(%{assigns: %{current_user: current_user}} = socket, :move, %{"id" => id}) do
|
||||
socket
|
||||
|> assign(:page_title, gettext("Move Ammo group"))
|
||||
|> assign(:ammo_group, Ammo.get_ammo_group!(id, current_user))
|
||||
|> assign(
|
||||
page_title: gettext("Move ammo"),
|
||||
ammo_group: Ammo.get_ammo_group!(id, current_user)
|
||||
)
|
||||
end
|
||||
|
||||
defp apply_action(%{assigns: %{current_user: current_user}} = socket, :edit, %{"id" => id}) do
|
||||
socket
|
||||
|> assign(:page_title, gettext("Edit Ammo group"))
|
||||
|> assign(:ammo_group, Ammo.get_ammo_group!(id, current_user))
|
||||
|> assign(
|
||||
page_title: gettext("Edit ammo"),
|
||||
ammo_group: Ammo.get_ammo_group!(id, current_user)
|
||||
)
|
||||
end
|
||||
|
||||
defp apply_action(%{assigns: %{current_user: current_user}} = socket, :clone, %{"id" => id}) do
|
||||
socket
|
||||
|> assign(:page_title, dgettext("actions", "Add Ammo"))
|
||||
|> assign(:ammo_group, %{Ammo.get_ammo_group!(id, current_user) | id: nil})
|
||||
|> assign(
|
||||
page_title: dgettext("actions", "Add Ammo"),
|
||||
ammo_group: %{Ammo.get_ammo_group!(id, current_user) | id: nil}
|
||||
)
|
||||
end
|
||||
|
||||
defp apply_action(socket, :new, _params) do
|
||||
socket
|
||||
|> assign(:page_title, dgettext("actions", "Add Ammo"))
|
||||
|> assign(:ammo_group, %AmmoGroup{})
|
||||
|> assign(
|
||||
page_title: dgettext("actions", "Add Ammo"),
|
||||
ammo_group: %AmmoGroup{}
|
||||
)
|
||||
end
|
||||
|
||||
defp apply_action(socket, :index, _params) do
|
||||
socket
|
||||
|> assign(:page_title, gettext("Ammo groups"))
|
||||
|> assign(:ammo_group, nil)
|
||||
|> assign(
|
||||
page_title: gettext("Ammo"),
|
||||
search: nil,
|
||||
ammo_group: nil
|
||||
)
|
||||
end
|
||||
|
||||
defp apply_action(socket, :search, %{"search" => search}) do
|
||||
socket
|
||||
|> assign(
|
||||
page_title: gettext("Ammo"),
|
||||
search: search,
|
||||
ammo_group: nil
|
||||
)
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_event("delete", %{"id" => id}, %{assigns: %{current_user: current_user}} = socket) do
|
||||
Ammo.get_ammo_group!(id, current_user) |> Ammo.delete_ammo_group!(current_user)
|
||||
|
||||
prompt = dgettext("prompts", "Ammo group deleted succesfully")
|
||||
prompt = dgettext("prompts", "Ammo deleted succesfully")
|
||||
|
||||
{:noreply, socket |> put_flash(:info, prompt) |> display_ammo_groups()}
|
||||
end
|
||||
@ -85,13 +110,22 @@ defmodule CanneryWeb.AmmoGroupLive.Index do
|
||||
{:noreply, socket |> assign(:show_used, !show_used) |> display_ammo_groups()}
|
||||
end
|
||||
|
||||
defp display_ammo_groups(
|
||||
%{assigns: %{current_user: current_user, show_used: show_used}} = socket
|
||||
) do
|
||||
ammo_groups =
|
||||
Ammo.list_ammo_groups(current_user, show_used)
|
||||
|> Repo.preload([:ammo_type, :container], force: true)
|
||||
@impl true
|
||||
def handle_event("search", %{"search" => %{"search_term" => ""}}, socket) do
|
||||
{:noreply, socket |> push_patch(to: Routes.ammo_group_index_path(Endpoint, :index))}
|
||||
end
|
||||
|
||||
def handle_event("search", %{"search" => %{"search_term" => search_term}}, socket) do
|
||||
socket =
|
||||
socket |> push_patch(to: Routes.ammo_group_index_path(Endpoint, :search, search_term))
|
||||
|
||||
{:noreply, socket}
|
||||
end
|
||||
|
||||
defp display_ammo_groups(
|
||||
%{assigns: %{search: search, current_user: current_user, show_used: show_used}} = socket
|
||||
) do
|
||||
ammo_groups = Ammo.list_ammo_groups(search, show_used, current_user)
|
||||
ammo_types_count = Ammo.get_ammo_types_count!(current_user)
|
||||
containers_count = Containers.get_containers_count!(current_user)
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
<%= gettext("Ammo") %>
|
||||
</h1>
|
||||
|
||||
<%= if @ammo_groups |> Enum.empty?() do %>
|
||||
<%= if @ammo_groups |> Enum.empty?() and @search |> is_nil() do %>
|
||||
<h2 class="title text-xl text-primary-600">
|
||||
<%= gettext("No Ammo") %>
|
||||
<%= display_emoji("😔") %>
|
||||
@ -31,7 +31,7 @@
|
||||
<%= dgettext("actions", "add an ammo type first") %>
|
||||
</.link>
|
||||
</div>
|
||||
<% @ammo_groups |> Enum.empty?() -> %>
|
||||
<% @ammo_groups |> Enum.empty?() and @search |> is_nil() -> %>
|
||||
<.link patch={Routes.ammo_group_index_path(Endpoint, :new)} class="btn btn-primary">
|
||||
<%= dgettext("actions", "Add your first box!") %>
|
||||
</.link>
|
||||
@ -41,21 +41,41 @@
|
||||
</.link>
|
||||
<% end %>
|
||||
|
||||
<%= unless @ammo_groups |> Enum.empty?() do %>
|
||||
<div class="flex flex-col space-y-4 justify-center items-center">
|
||||
<.toggle_button action="toggle_show_used" value={@show_used}>
|
||||
<span class="title text-lg text-primary-600">
|
||||
<%= gettext("Show used") %>
|
||||
</span>
|
||||
</.toggle_button>
|
||||
</div>
|
||||
<div class="w-full flex flex-col sm:flex-row justify-center items-center space-y-4 sm:space-y-0 sm:space-x-4 max-w-xl">
|
||||
<.form
|
||||
:let={f}
|
||||
for={:search}
|
||||
phx-change="search"
|
||||
phx-submit="search"
|
||||
class="grow self-stretch flex flex-col items-stretch"
|
||||
data-qa="ammo_group_search"
|
||||
>
|
||||
<%= text_input(f, :search_term,
|
||||
class: "input input-primary",
|
||||
value: @search,
|
||||
phx_debounce: 300,
|
||||
placeholder: gettext("Search ammo")
|
||||
) %>
|
||||
</.form>
|
||||
|
||||
<.toggle_button action="toggle_show_used" value={@show_used}>
|
||||
<span class="title text-lg text-primary-600">
|
||||
<%= gettext("Show used") %>
|
||||
</span>
|
||||
</.toggle_button>
|
||||
</div>
|
||||
|
||||
<%= if @ammo_groups |> Enum.empty?() do %>
|
||||
<h2 class="title text-xl text-primary-600">
|
||||
<%= gettext("No Ammo") %>
|
||||
<%= display_emoji("😔") %>
|
||||
</h2>
|
||||
<% else %>
|
||||
<.live_component
|
||||
module={CanneryWeb.Components.AmmoGroupTableComponent}
|
||||
id="ammo-group-index-table"
|
||||
ammo_groups={@ammo_groups}
|
||||
current_user={@current_user}
|
||||
show_used={@show_used}
|
||||
>
|
||||
<:ammo_type :let={%{name: ammo_type_name} = ammo_type}>
|
||||
<.link navigate={Routes.ammo_type_show_path(Endpoint, :show, ammo_type)} class="link">
|
||||
|
@ -30,7 +30,12 @@ defmodule CanneryWeb.AmmoGroupLive.Show do
|
||||
|
||||
@impl true
|
||||
def handle_params(%{"id" => id}, _url, %{assigns: %{live_action: live_action}} = socket) do
|
||||
{:noreply, socket |> assign(page_title: page_title(live_action)) |> display_ammo_group(id)}
|
||||
socket =
|
||||
socket
|
||||
|> assign(page_title: page_title(live_action))
|
||||
|> display_ammo_group(id)
|
||||
|
||||
{:noreply, socket}
|
||||
end
|
||||
|
||||
defp page_title(:add_shot_group), do: gettext("Record Shots")
|
||||
@ -69,14 +74,14 @@ defmodule CanneryWeb.AmmoGroupLive.Show do
|
||||
def handle_event(
|
||||
"delete_shot_group",
|
||||
%{"id" => id},
|
||||
%{assigns: %{ammo_group: ammo_group, current_user: current_user}} = socket
|
||||
%{assigns: %{ammo_group: %{id: ammo_group_id}, current_user: current_user}} = socket
|
||||
) do
|
||||
{:ok, _} =
|
||||
ActivityLog.get_shot_group!(id, current_user)
|
||||
|> ActivityLog.delete_shot_group(current_user)
|
||||
|
||||
prompt = dgettext("prompts", "Shot records deleted succesfully")
|
||||
{:noreply, socket |> put_flash(:info, prompt) |> display_ammo_group(ammo_group)}
|
||||
{:noreply, socket |> put_flash(:info, prompt) |> display_ammo_group(ammo_group_id)}
|
||||
end
|
||||
|
||||
@spec display_ammo_group(Socket.t(), AmmoGroup.t() | AmmoGroup.id()) :: Socket.t()
|
||||
|
@ -27,8 +27,8 @@
|
||||
<% end %>
|
||||
|
||||
<span class="rounded-lg title text-lg">
|
||||
<%= gettext("Added on:") %>
|
||||
<%= @ammo_group.inserted_at |> display_datetime() %>
|
||||
<%= gettext("Purchased on:") %>
|
||||
<%= @ammo_group.purchased_on |> display_date() %>
|
||||
</span>
|
||||
|
||||
<%= if @ammo_group.price_paid do %>
|
||||
|
@ -4,13 +4,15 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
||||
"""
|
||||
|
||||
use CanneryWeb, :live_view
|
||||
|
||||
alias Cannery.{Ammo, Ammo.AmmoType}
|
||||
alias CanneryWeb.Endpoint
|
||||
|
||||
@impl true
|
||||
def mount(%{"search" => search}, _session, socket) do
|
||||
{:ok, socket |> assign(show_used: false, search: search) |> list_ammo_types()}
|
||||
end
|
||||
|
||||
def mount(_params, _session, socket) do
|
||||
{:ok, socket |> assign(:show_used, false) |> list_ammo_types()}
|
||||
{:ok, socket |> assign(show_used: false, search: nil) |> list_ammo_types()}
|
||||
end
|
||||
|
||||
@impl true
|
||||
@ -19,25 +21,49 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
||||
end
|
||||
|
||||
defp apply_action(%{assigns: %{current_user: current_user}} = socket, :edit, %{"id" => id}) do
|
||||
%{name: ammo_type_name} = ammo_type = Ammo.get_ammo_type!(id, current_user)
|
||||
|
||||
socket
|
||||
|> assign(:page_title, gettext("Edit Ammo type"))
|
||||
|> assign(:ammo_type, Ammo.get_ammo_type!(id, current_user))
|
||||
|> assign(
|
||||
page_title: gettext("Edit %{ammo_type_name}", ammo_type_name: ammo_type_name),
|
||||
ammo_type: ammo_type
|
||||
)
|
||||
end
|
||||
|
||||
defp apply_action(%{assigns: %{current_user: current_user}} = socket, :clone, %{"id" => id}) do
|
||||
socket
|
||||
|> assign(:page_title, gettext("New Ammo type"))
|
||||
|> assign(:ammo_type, %{Ammo.get_ammo_type!(id, current_user) | id: nil})
|
||||
|> assign(
|
||||
page_title: gettext("New Ammo type"),
|
||||
ammo_type: %{Ammo.get_ammo_type!(id, current_user) | id: nil}
|
||||
)
|
||||
end
|
||||
|
||||
defp apply_action(socket, :new, _params) do
|
||||
socket
|
||||
|> assign(:page_title, gettext("New Ammo type"))
|
||||
|> assign(:ammo_type, %AmmoType{})
|
||||
|> assign(
|
||||
page_title: gettext("New Ammo type"),
|
||||
ammo_type: %AmmoType{}
|
||||
)
|
||||
end
|
||||
|
||||
defp apply_action(socket, :index, _params) do
|
||||
socket |> assign(:page_title, gettext("Ammo types")) |> assign(:ammo_type, nil)
|
||||
socket
|
||||
|> assign(
|
||||
page_title: gettext("Catalog"),
|
||||
search: nil,
|
||||
ammo_type: nil
|
||||
)
|
||||
|> list_ammo_types()
|
||||
end
|
||||
|
||||
defp apply_action(socket, :search, %{"search" => search}) do
|
||||
socket
|
||||
|> assign(
|
||||
page_title: gettext("Catalog"),
|
||||
search: search,
|
||||
ammo_type: nil
|
||||
)
|
||||
|> list_ammo_types()
|
||||
end
|
||||
|
||||
@impl true
|
||||
@ -54,196 +80,17 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
||||
{:noreply, socket |> assign(:show_used, !show_used) |> list_ammo_types()}
|
||||
end
|
||||
|
||||
defp list_ammo_types(%{assigns: %{current_user: current_user, show_used: show_used}} = socket) do
|
||||
ammo_types = Ammo.list_ammo_types(current_user)
|
||||
|
||||
columns =
|
||||
[
|
||||
%{label: gettext("Name"), key: :name, type: :name},
|
||||
%{label: gettext("Bullet type"), key: :bullet_type, type: :string},
|
||||
%{label: gettext("Bullet core"), key: :bullet_core, type: :string},
|
||||
%{label: gettext("Cartridge"), key: :cartridge, type: :string},
|
||||
%{label: gettext("Caliber"), key: :caliber, type: :string},
|
||||
%{label: gettext("Case material"), key: :case_material, type: :string},
|
||||
%{label: gettext("Jacket type"), key: :jacket_type, type: :string},
|
||||
%{label: gettext("Muzzle velocity"), key: :muzzle_velocity, type: :string},
|
||||
%{label: gettext("Powder type"), key: :powder_type, type: :string},
|
||||
%{
|
||||
label: gettext("Powder grains per charge"),
|
||||
key: :powder_grains_per_charge,
|
||||
type: :string
|
||||
},
|
||||
%{label: gettext("Grains"), key: :grains, type: :string},
|
||||
%{label: gettext("Pressure"), key: :pressure, type: :string},
|
||||
%{label: gettext("Primer type"), key: :primer_type, type: :string},
|
||||
%{label: gettext("Firing type"), key: :firing_type, type: :string},
|
||||
%{label: gettext("Tracer"), key: :tracer, type: :boolean},
|
||||
%{label: gettext("Incendiary"), key: :incendiary, type: :boolean},
|
||||
%{label: gettext("Blank"), key: :blank, type: :boolean},
|
||||
%{label: gettext("Corrosive"), key: :corrosive, type: :boolean},
|
||||
%{label: gettext("Manufacturer"), key: :manufacturer, type: :string},
|
||||
%{label: gettext("UPC"), key: "upc", type: :string}
|
||||
]
|
||||
|> Enum.filter(fn %{key: key, type: type} ->
|
||||
# remove columns if all values match defaults
|
||||
default_value = if type == :boolean, do: false, else: nil
|
||||
|
||||
ammo_types
|
||||
|> Enum.any?(fn ammo_type ->
|
||||
not (ammo_type |> Map.get(key) == default_value)
|
||||
end)
|
||||
end)
|
||||
|> Kernel.++([
|
||||
%{label: gettext("Rounds"), key: :round_count, type: :round_count}
|
||||
])
|
||||
|> Kernel.++(
|
||||
if show_used do
|
||||
[
|
||||
%{
|
||||
label: gettext("Used rounds"),
|
||||
key: :used_round_count,
|
||||
type: :used_round_count
|
||||
},
|
||||
%{
|
||||
label: gettext("Total ever rounds"),
|
||||
key: :historical_round_count,
|
||||
type: :historical_round_count
|
||||
}
|
||||
]
|
||||
else
|
||||
[]
|
||||
end
|
||||
)
|
||||
|> Kernel.++([%{label: gettext("Packs"), key: :ammo_count, type: :ammo_count}])
|
||||
|> Kernel.++(
|
||||
if show_used do
|
||||
[
|
||||
%{
|
||||
label: gettext("Used packs"),
|
||||
key: :used_ammo_count,
|
||||
type: :used_ammo_count
|
||||
},
|
||||
%{
|
||||
label: gettext("Total ever packs"),
|
||||
key: :historical_ammo_count,
|
||||
type: :historical_ammo_count
|
||||
}
|
||||
]
|
||||
else
|
||||
[]
|
||||
end
|
||||
)
|
||||
|> Kernel.++([
|
||||
%{label: gettext("Average CPR"), key: :avg_price_paid, type: :avg_price_paid},
|
||||
%{label: nil, key: "actions", type: :actions, sortable: false}
|
||||
])
|
||||
|
||||
rows =
|
||||
ammo_types
|
||||
|> Enum.map(fn ammo_type -> ammo_type |> get_ammo_type_values(columns, current_user) end)
|
||||
|
||||
socket |> assign(columns: columns, rows: rows)
|
||||
@impl true
|
||||
def handle_event("search", %{"search" => %{"search_term" => ""}}, socket) do
|
||||
{:noreply, socket |> push_patch(to: Routes.ammo_type_index_path(Endpoint, :index))}
|
||||
end
|
||||
|
||||
defp get_ammo_type_values(ammo_type, columns, current_user) do
|
||||
columns
|
||||
|> Map.new(fn %{key: key, type: type} ->
|
||||
{key, get_ammo_type_value(type, key, ammo_type, current_user)}
|
||||
end)
|
||||
def handle_event("search", %{"search" => %{"search_term" => search_term}}, socket) do
|
||||
{:noreply,
|
||||
socket |> push_patch(to: Routes.ammo_type_index_path(Endpoint, :search, search_term))}
|
||||
end
|
||||
|
||||
defp get_ammo_type_value(:boolean, key, ammo_type, _current_user),
|
||||
do: ammo_type |> Map.get(key) |> humanize()
|
||||
|
||||
defp get_ammo_type_value(:round_count, _key, ammo_type, current_user),
|
||||
do: ammo_type |> Ammo.get_round_count_for_ammo_type(current_user)
|
||||
|
||||
defp get_ammo_type_value(:historical_round_count, _key, ammo_type, current_user),
|
||||
do: ammo_type |> Ammo.get_historical_count_for_ammo_type(current_user)
|
||||
|
||||
defp get_ammo_type_value(:used_round_count, _key, ammo_type, current_user),
|
||||
do: ammo_type |> Ammo.get_used_count_for_ammo_type(current_user)
|
||||
|
||||
defp get_ammo_type_value(:historical_ammo_count, _key, ammo_type, current_user),
|
||||
do: ammo_type |> Ammo.get_ammo_groups_count_for_type(current_user, true)
|
||||
|
||||
defp get_ammo_type_value(:used_ammo_count, _key, ammo_type, current_user),
|
||||
do: ammo_type |> Ammo.get_used_ammo_groups_count_for_type(current_user)
|
||||
|
||||
defp get_ammo_type_value(:ammo_count, _key, ammo_type, current_user),
|
||||
do: ammo_type |> Ammo.get_ammo_groups_count_for_type(current_user)
|
||||
|
||||
defp get_ammo_type_value(:avg_price_paid, _key, ammo_type, current_user) do
|
||||
case ammo_type |> Ammo.get_average_cost_for_ammo_type!(current_user) do
|
||||
nil -> gettext("No cost information")
|
||||
count -> gettext("$%{amount}", amount: count |> :erlang.float_to_binary(decimals: 2))
|
||||
end
|
||||
defp list_ammo_types(%{assigns: %{search: search, current_user: current_user}} = socket) do
|
||||
socket |> assign(ammo_types: Ammo.list_ammo_types(search, current_user))
|
||||
end
|
||||
|
||||
defp get_ammo_type_value(:name, _key, ammo_type, _current_user) do
|
||||
assigns = %{ammo_type: ammo_type}
|
||||
|
||||
~H"""
|
||||
<.link
|
||||
navigate={Routes.ammo_type_show_path(Endpoint, :show, @ammo_type)}
|
||||
class="link"
|
||||
data-qa={"view-name-#{@ammo_type.id}"}
|
||||
>
|
||||
<%= @ammo_type.name %>
|
||||
</.link>
|
||||
"""
|
||||
end
|
||||
|
||||
defp get_ammo_type_value(:actions, _key, ammo_type, _current_user) do
|
||||
assigns = %{ammo_type: ammo_type}
|
||||
|
||||
~H"""
|
||||
<div class="px-4 py-2 space-x-4 flex justify-center items-center">
|
||||
<.link
|
||||
navigate={Routes.ammo_type_show_path(Endpoint, :show, @ammo_type)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"view-#{@ammo_type.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-eye"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
patch={Routes.ammo_type_index_path(Endpoint, :edit, @ammo_type)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"edit-#{@ammo_type.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
patch={Routes.ammo_type_index_path(Endpoint, :clone, @ammo_type)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"clone-#{@ammo_type.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-copy"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
href="#"
|
||||
class="text-primary-600 link"
|
||||
phx-click="delete"
|
||||
phx-value-id={@ammo_type.id}
|
||||
data-confirm={
|
||||
dgettext(
|
||||
"prompts",
|
||||
"Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!",
|
||||
name: @ammo_type.name
|
||||
)
|
||||
}
|
||||
data-qa={"delete-#{@ammo_type.id}"}
|
||||
>
|
||||
<i class="fa-lg fas fa-trash"></i>
|
||||
</.link>
|
||||
</div>
|
||||
"""
|
||||
end
|
||||
|
||||
defp get_ammo_type_value(nil, _key, _ammo_type, _current_user), do: nil
|
||||
|
||||
defp get_ammo_type_value(_other, key, ammo_type, _current_user), do: ammo_type |> Map.get(key)
|
||||
end
|
||||
|
@ -3,9 +3,9 @@
|
||||
<%= gettext("Catalog") %>
|
||||
</h1>
|
||||
|
||||
<%= if @rows |> Enum.empty?() do %>
|
||||
<%= if @ammo_types |> Enum.empty?() and @search |> is_nil() do %>
|
||||
<h2 class="title text-xl text-primary-600">
|
||||
<%= gettext("No Ammo Types") %>
|
||||
<%= gettext("No Ammo types") %>
|
||||
<%= display_emoji("😔") %>
|
||||
</h2>
|
||||
|
||||
@ -17,7 +17,23 @@
|
||||
<%= dgettext("actions", "New Ammo type") %>
|
||||
</.link>
|
||||
|
||||
<div class="flex flex-col justify-center items-center">
|
||||
<div class="w-full flex flex-col sm:flex-row justify-center items-center space-y-4 sm:space-y-0 sm:space-x-4 max-w-xl">
|
||||
<.form
|
||||
:let={f}
|
||||
for={:search}
|
||||
phx-change="search"
|
||||
phx-submit="search"
|
||||
class="grow self-stretch flex flex-col items-stretch"
|
||||
data-qa="ammo_type_search"
|
||||
>
|
||||
<%= text_input(f, :search_term,
|
||||
class: "input input-primary",
|
||||
value: @search,
|
||||
phx_debounce: 300,
|
||||
placeholder: gettext("Search catalog")
|
||||
) %>
|
||||
</.form>
|
||||
|
||||
<.toggle_button action="toggle_show_used" value={@show_used}>
|
||||
<span class="title text-lg text-primary-600">
|
||||
<%= gettext("Show used") %>
|
||||
@ -25,13 +41,66 @@
|
||||
</.toggle_button>
|
||||
</div>
|
||||
|
||||
<.live_component
|
||||
module={CanneryWeb.Components.TableComponent}
|
||||
id="ammo_types_index_table"
|
||||
action={@live_action}
|
||||
columns={@columns}
|
||||
rows={@rows}
|
||||
/>
|
||||
<%= if @ammo_types |> Enum.empty?() do %>
|
||||
<h2 class="title text-xl text-primary-600">
|
||||
<%= gettext("No Ammo types") %>
|
||||
<%= display_emoji("😔") %>
|
||||
</h2>
|
||||
<% else %>
|
||||
<.live_component
|
||||
module={CanneryWeb.Components.AmmoTypeTableComponent}
|
||||
id="ammo_types_index_table"
|
||||
action={@live_action}
|
||||
ammo_types={@ammo_types}
|
||||
current_user={@current_user}
|
||||
show_used={@show_used}
|
||||
>
|
||||
<:actions :let={ammo_type}>
|
||||
<div class="px-4 py-2 space-x-4 flex justify-center items-center">
|
||||
<.link
|
||||
navigate={Routes.ammo_type_show_path(Endpoint, :show, ammo_type)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"view-#{ammo_type.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-eye"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
patch={Routes.ammo_type_index_path(Endpoint, :edit, ammo_type)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"edit-#{ammo_type.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
patch={Routes.ammo_type_index_path(Endpoint, :clone, ammo_type)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"clone-#{ammo_type.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-copy"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
href="#"
|
||||
class="text-primary-600 link"
|
||||
phx-click="delete"
|
||||
phx-value-id={ammo_type.id}
|
||||
data-confirm={
|
||||
dgettext(
|
||||
"prompts",
|
||||
"Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!",
|
||||
name: ammo_type.name
|
||||
)
|
||||
}
|
||||
data-qa={"delete-#{ammo_type.id}"}
|
||||
>
|
||||
<i class="fa-lg fas fa-trash"></i>
|
||||
</.link>
|
||||
</div>
|
||||
</:actions>
|
||||
</.live_component>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
@ -5,7 +5,7 @@ defmodule CanneryWeb.AmmoTypeLive.Show do
|
||||
|
||||
use CanneryWeb, :live_view
|
||||
import CanneryWeb.Components.AmmoGroupCard
|
||||
alias Cannery.Ammo
|
||||
alias Cannery.{Ammo, Ammo.AmmoType}
|
||||
alias CanneryWeb.Endpoint
|
||||
|
||||
@fields_list [
|
||||
@ -31,17 +31,16 @@ defmodule CanneryWeb.AmmoTypeLive.Show do
|
||||
]
|
||||
|
||||
@impl true
|
||||
def mount(_params, _session, socket),
|
||||
do: {:ok, socket |> assign(show_used: false, view_table: false)}
|
||||
def mount(_params, _session, %{assigns: %{live_action: live_action}} = socket),
|
||||
do: {:ok, socket |> assign(show_used: false, view_table: live_action == :table)}
|
||||
|
||||
@impl true
|
||||
def handle_params(
|
||||
%{"id" => id},
|
||||
_params,
|
||||
%{assigns: %{current_user: current_user, live_action: live_action}} = socket
|
||||
) do
|
||||
ammo_type = Ammo.get_ammo_type!(id, current_user)
|
||||
socket = socket |> assign(view_table: live_action == :table) |> display_ammo_type(ammo_type)
|
||||
def handle_params(%{"id" => id}, _params, %{assigns: %{live_action: live_action}} = socket) do
|
||||
socket =
|
||||
socket
|
||||
|> assign(view_table: live_action == :table)
|
||||
|> display_ammo_type(id)
|
||||
|
||||
{:noreply, socket}
|
||||
end
|
||||
|
||||
@ -75,13 +74,13 @@ defmodule CanneryWeb.AmmoTypeLive.Show do
|
||||
do: Routes.ammo_type_show_path(Endpoint, :show, ammo_type),
|
||||
else: Routes.ammo_type_show_path(Endpoint, :table, ammo_type)
|
||||
|
||||
{:noreply, socket |> assign(view_table: !view_table) |> push_patch(to: new_path)}
|
||||
{:noreply, socket |> push_patch(to: new_path)}
|
||||
end
|
||||
|
||||
defp display_ammo_type(
|
||||
%{assigns: %{live_action: live_action, current_user: current_user, show_used: show_used}} =
|
||||
socket,
|
||||
ammo_type
|
||||
%AmmoType{} = ammo_type
|
||||
) do
|
||||
fields_to_display =
|
||||
@fields_list
|
||||
@ -106,6 +105,10 @@ defmodule CanneryWeb.AmmoTypeLive.Show do
|
||||
)
|
||||
end
|
||||
|
||||
defp display_ammo_type(%{assigns: %{current_user: current_user}} = socket, ammo_type_id) do
|
||||
socket |> display_ammo_type(Ammo.get_ammo_type!(ammo_type_id, current_user))
|
||||
end
|
||||
|
||||
defp display_ammo_type(%{assigns: %{ammo_type: ammo_type}} = socket) do
|
||||
socket |> display_ammo_type(ammo_type)
|
||||
end
|
||||
|
@ -173,7 +173,6 @@
|
||||
id="ammo-type-show-table"
|
||||
ammo_groups={@ammo_groups}
|
||||
current_user={@current_user}
|
||||
show_used={@show_used}
|
||||
>
|
||||
<:container :let={%{container: %{name: container_name} = container}}>
|
||||
<.link
|
||||
@ -185,7 +184,7 @@
|
||||
</:container>
|
||||
</.live_component>
|
||||
<% else %>
|
||||
<div class="flex flex-wrap justify-center items-center">
|
||||
<div class="flex flex-wrap justify-center items-stretch">
|
||||
<%= for ammo_group <- @ammo_groups do %>
|
||||
<.ammo_group_card ammo_group={ammo_group} show_container={true} />
|
||||
<% end %>
|
||||
|
@ -6,11 +6,16 @@ defmodule CanneryWeb.ContainerLive.Index do
|
||||
use CanneryWeb, :live_view
|
||||
import CanneryWeb.Components.ContainerCard
|
||||
alias Cannery.{Containers, Containers.Container, Repo}
|
||||
alias CanneryWeb.{Components.TagCard, Endpoint}
|
||||
alias Ecto.Changeset
|
||||
|
||||
@impl true
|
||||
def mount(_params, _session, socket), do: {:ok, socket |> assign(view_table: false)}
|
||||
def mount(%{"search" => search}, _session, socket) do
|
||||
{:ok, socket |> assign(view_table: true, search: search) |> display_containers()}
|
||||
end
|
||||
|
||||
def mount(_params, _session, socket) do
|
||||
{:ok, socket |> assign(view_table: true, search: nil) |> display_containers()}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_params(params, _url, %{assigns: %{live_action: live_action}} = socket) do
|
||||
@ -21,7 +26,7 @@ defmodule CanneryWeb.ContainerLive.Index do
|
||||
%{name: container_name} =
|
||||
container =
|
||||
Containers.get_container!(id, current_user)
|
||||
|> Repo.preload([:tags, :ammo_groups], force: true)
|
||||
|> Repo.preload([:tags, :ammo_groups])
|
||||
|
||||
socket
|
||||
|> assign(page_title: gettext("Edit %{name}", name: container_name), container: container)
|
||||
@ -42,19 +47,18 @@ defmodule CanneryWeb.ContainerLive.Index do
|
||||
socket
|
||||
|> assign(
|
||||
page_title: gettext("Containers"),
|
||||
container: nil
|
||||
container: nil,
|
||||
search: nil
|
||||
)
|
||||
|> display_containers()
|
||||
end
|
||||
|
||||
defp apply_action(socket, :table, _params) do
|
||||
defp apply_action(socket, :search, %{"search" => search}) do
|
||||
socket
|
||||
|> assign(
|
||||
page_title: gettext("Containers"),
|
||||
container: nil,
|
||||
view_table: true
|
||||
search: search
|
||||
)
|
||||
|> display_containers()
|
||||
end
|
||||
|
||||
defp apply_action(%{assigns: %{current_user: current_user}} = socket, :edit_tags, %{"id" => id}) do
|
||||
@ -104,133 +108,24 @@ defmodule CanneryWeb.ContainerLive.Index do
|
||||
|
||||
@impl true
|
||||
def handle_event("toggle_table", _params, %{assigns: %{view_table: view_table}} = socket) do
|
||||
new_path =
|
||||
if view_table,
|
||||
do: Routes.container_index_path(Endpoint, :index),
|
||||
else: Routes.container_index_path(Endpoint, :table)
|
||||
|
||||
{:noreply, socket |> assign(view_table: !view_table) |> push_patch(to: new_path)}
|
||||
{:noreply, socket |> assign(:view_table, !view_table) |> display_containers()}
|
||||
end
|
||||
|
||||
defp display_containers(%{assigns: %{current_user: current_user}} = socket) do
|
||||
@impl true
|
||||
def handle_event("search", %{"search" => %{"search_term" => ""}}, socket) do
|
||||
{:noreply, socket |> push_patch(to: Routes.container_index_path(Endpoint, :index))}
|
||||
end
|
||||
|
||||
def handle_event("search", %{"search" => %{"search_term" => search_term}}, socket) do
|
||||
{:noreply,
|
||||
socket |> push_patch(to: Routes.container_index_path(Endpoint, :search, search_term))}
|
||||
end
|
||||
|
||||
defp display_containers(%{assigns: %{search: search, current_user: current_user}} = socket) do
|
||||
containers =
|
||||
Containers.list_containers(current_user) |> Repo.preload([:tags, :ammo_groups], force: true)
|
||||
Containers.list_containers(search, current_user)
|
||||
|> Repo.preload([:tags, :ammo_groups])
|
||||
|
||||
columns =
|
||||
[
|
||||
%{label: gettext("Name"), key: :name, type: :string},
|
||||
%{label: gettext("Description"), key: :desc, type: :string},
|
||||
%{label: gettext("Location"), key: :location, type: :string},
|
||||
%{label: gettext("Type"), key: :type, type: :string},
|
||||
%{label: gettext("Packs"), key: :packs, type: :integer},
|
||||
%{label: gettext("Rounds"), key: :rounds, type: :string},
|
||||
%{label: gettext("Tags"), key: :tags, type: :tags},
|
||||
%{label: nil, key: :actions, sortable: false, type: :actions}
|
||||
]
|
||||
|> Enum.filter(fn %{key: key, type: type} ->
|
||||
# remove columns if all values match defaults
|
||||
default_value =
|
||||
case type do
|
||||
:boolean -> false
|
||||
_other_type -> nil
|
||||
end
|
||||
|
||||
containers
|
||||
|> Enum.any?(fn container ->
|
||||
type in [:tags, :actions] or not (container |> Map.get(key) == default_value)
|
||||
end)
|
||||
end)
|
||||
|
||||
rows =
|
||||
containers
|
||||
|> Enum.map(fn container -> container |> get_row_data_for_container(columns) end)
|
||||
|
||||
socket
|
||||
|> assign(
|
||||
containers: containers,
|
||||
columns: columns,
|
||||
rows: rows
|
||||
)
|
||||
socket |> assign(:containers, containers)
|
||||
end
|
||||
|
||||
@spec get_row_data_for_container(Container.t(), [map()]) :: map()
|
||||
defp get_row_data_for_container(container, columns) do
|
||||
container = container |> Repo.preload([:ammo_groups, :tags])
|
||||
|
||||
columns
|
||||
|> Map.new(fn %{key: key} -> {key, get_value_for_key(key, container)} end)
|
||||
end
|
||||
|
||||
@spec get_value_for_key(atom(), Container.t()) :: any()
|
||||
defp get_value_for_key(:packs, container) do
|
||||
container |> Containers.get_container_ammo_group_count!()
|
||||
end
|
||||
|
||||
defp get_value_for_key(:rounds, container) do
|
||||
container |> Containers.get_container_rounds!()
|
||||
end
|
||||
|
||||
defp get_value_for_key(:tags, container) do
|
||||
assigns = %{container: container}
|
||||
|
||||
{container.tags |> Enum.map(fn %{name: name} -> name end),
|
||||
~H"""
|
||||
<div class="flex flex-wrap justify-center items-center">
|
||||
<%= unless @container.tags |> Enum.empty?() do %>
|
||||
<%= for tag <- @container.tags do %>
|
||||
<TagCard.simple_tag_card tag={tag} />
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<div class="mx-4 my-2">
|
||||
<.link
|
||||
patch={Routes.container_index_path(Endpoint, :edit_tags, @container)}
|
||||
class="text-primary-600 link"
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-tags"></i>
|
||||
</.link>
|
||||
</div>
|
||||
</div>
|
||||
"""}
|
||||
end
|
||||
|
||||
defp get_value_for_key(:actions, container) do
|
||||
assigns = %{container: container}
|
||||
|
||||
~H"""
|
||||
<.link
|
||||
patch={Routes.container_index_path(Endpoint, :edit, @container)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"edit-#{@container.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
patch={Routes.container_index_path(Endpoint, :clone, @container)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"clone-#{@container.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-copy"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
href="#"
|
||||
class="text-primary-600 link"
|
||||
phx-click="delete"
|
||||
phx-value-id={@container.id}
|
||||
data-confirm={
|
||||
dgettext("prompts", "Are you sure you want to delete %{name}?", name: @container.name)
|
||||
}
|
||||
data-qa={"delete-#{@container.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||
</.link>
|
||||
"""
|
||||
end
|
||||
|
||||
defp get_value_for_key(key, container), do: container |> Map.get(key)
|
||||
|
||||
def return_to(true = _view_table), do: Routes.container_index_path(Endpoint, :table)
|
||||
def return_to(false = _view_table), do: Routes.container_index_path(Endpoint, :index)
|
||||
end
|
||||
|
@ -3,7 +3,7 @@
|
||||
<%= gettext("Containers") %>
|
||||
</h1>
|
||||
|
||||
<%= if @containers |> Enum.empty?() do %>
|
||||
<%= if @containers |> Enum.empty?() and @search |> is_nil() do %>
|
||||
<h2 class="title text-xl text-primary-600">
|
||||
<%= gettext("No containers") %>
|
||||
<%= display_emoji("😔") %>
|
||||
@ -17,7 +17,23 @@
|
||||
<%= dgettext("actions", "New Container") %>
|
||||
</.link>
|
||||
|
||||
<div class="flex flex-col justify-center items-center">
|
||||
<div class="w-full flex flex-col sm:flex-row justify-center items-center space-y-4 sm:space-y-0 sm:space-x-4 max-w-xl">
|
||||
<.form
|
||||
:let={f}
|
||||
for={:search}
|
||||
phx-change="search"
|
||||
phx-submit="search"
|
||||
class="grow self-stretch flex flex-col items-stretch"
|
||||
data-qa="container_search"
|
||||
>
|
||||
<%= text_input(f, :search_term,
|
||||
class: "input input-primary",
|
||||
value: @search,
|
||||
phx_debounce: 300,
|
||||
placeholder: gettext("Search containers")
|
||||
) %>
|
||||
</.form>
|
||||
|
||||
<.toggle_button action="toggle_table" value={@view_table}>
|
||||
<span class="title text-lg text-primary-600">
|
||||
<%= gettext("View as table") %>
|
||||
@ -26,28 +42,31 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="w-full flex flex-row flex-wrap justify-center items-center">
|
||||
<%= if @containers |> Enum.empty?() do %>
|
||||
<h2 class="title text-xl text-primary-600">
|
||||
<%= gettext("No containers") %>
|
||||
<%= display_emoji("😔") %>
|
||||
</h2>
|
||||
<% else %>
|
||||
<%= if @view_table do %>
|
||||
<.live_component
|
||||
module={CanneryWeb.Components.TableComponent}
|
||||
module={CanneryWeb.Components.ContainerTableComponent}
|
||||
id="containers_index_table"
|
||||
action={@live_action}
|
||||
columns={@columns}
|
||||
rows={@rows}
|
||||
/>
|
||||
<% else %>
|
||||
<%= for container <- @containers do %>
|
||||
<.container_card container={container}>
|
||||
<:tag_actions>
|
||||
<div class="mx-4 my-2">
|
||||
<.link
|
||||
patch={Routes.container_index_path(Endpoint, :edit_tags, container)}
|
||||
class="text-primary-600 link"
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-tags"></i>
|
||||
</.link>
|
||||
</div>
|
||||
</:tag_actions>
|
||||
containers={@containers}
|
||||
current_user={@current_user}
|
||||
>
|
||||
<:tag_actions :let={container}>
|
||||
<div class="mx-4 my-2">
|
||||
<.link
|
||||
patch={Routes.container_index_path(Endpoint, :edit_tags, container)}
|
||||
class="text-primary-600 link"
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-tags"></i>
|
||||
</.link>
|
||||
</div>
|
||||
</:tag_actions>
|
||||
<:actions :let={container}>
|
||||
<.link
|
||||
patch={Routes.container_index_path(Endpoint, :edit, container)}
|
||||
class="text-primary-600 link"
|
||||
@ -76,28 +95,75 @@
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||
</.link>
|
||||
</.container_card>
|
||||
<% end %>
|
||||
</:actions>
|
||||
</.live_component>
|
||||
<% else %>
|
||||
<div class="w-full flex flex-row flex-wrap justify-center items-stretch">
|
||||
<%= for container <- @containers do %>
|
||||
<.container_card container={container}>
|
||||
<:tag_actions>
|
||||
<div class="mx-4 my-2">
|
||||
<.link
|
||||
patch={Routes.container_index_path(Endpoint, :edit_tags, container)}
|
||||
class="text-primary-600 link"
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-tags"></i>
|
||||
</.link>
|
||||
</div>
|
||||
</:tag_actions>
|
||||
<.link
|
||||
patch={Routes.container_index_path(Endpoint, :edit, container)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"edit-#{container.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
patch={Routes.container_index_path(Endpoint, :clone, container)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"clone-#{container.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-copy"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
href="#"
|
||||
class="text-primary-600 link"
|
||||
phx-click="delete"
|
||||
phx-value-id={container.id}
|
||||
data-confirm={
|
||||
dgettext("prompts", "Are you sure you want to delete %{name}?",
|
||||
name: container.name
|
||||
)
|
||||
}
|
||||
data-qa={"delete-#{container.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||
</.link>
|
||||
</.container_card>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= if @live_action in [:new, :edit, :clone] do %>
|
||||
<.modal return_to={return_to(@view_table)}>
|
||||
<.modal return_to={Routes.container_index_path(Endpoint, :index)}>
|
||||
<.live_component
|
||||
module={CanneryWeb.ContainerLive.FormComponent}
|
||||
id={@container.id || :new}
|
||||
title={@page_title}
|
||||
action={@live_action}
|
||||
container={@container}
|
||||
return_to={return_to(@view_table)}
|
||||
return_to={Routes.container_index_path(Endpoint, :index)}
|
||||
current_user={@current_user}
|
||||
/>
|
||||
</.modal>
|
||||
<% end %>
|
||||
|
||||
<%= if @live_action == :edit_tags do %>
|
||||
<.modal return_to={return_to(@view_table)}>
|
||||
<.modal return_to={Routes.container_index_path(Endpoint, :index)}>
|
||||
<.live_component
|
||||
module={CanneryWeb.ContainerLive.EditTagsComponent}
|
||||
id={@container.id}
|
||||
|
@ -12,16 +12,14 @@ defmodule CanneryWeb.ContainerLive.Show do
|
||||
|
||||
@impl true
|
||||
def mount(_params, _session, socket),
|
||||
do: {:ok, socket |> assign(show_used: false, view_table: false)}
|
||||
do: {:ok, socket |> assign(show_used: false, view_table: true)}
|
||||
|
||||
@impl true
|
||||
def handle_params(
|
||||
%{"id" => id},
|
||||
_session,
|
||||
%{assigns: %{current_user: current_user, live_action: live_action}} = socket
|
||||
) do
|
||||
def handle_params(%{"id" => id}, _session, %{assigns: %{current_user: current_user}} = socket) do
|
||||
socket =
|
||||
socket |> assign(view_table: live_action == :table) |> render_container(id, current_user)
|
||||
socket
|
||||
|> assign(view_table: true)
|
||||
|> render_container(id, current_user)
|
||||
|
||||
{:noreply, socket}
|
||||
end
|
||||
@ -92,17 +90,8 @@ defmodule CanneryWeb.ContainerLive.Show do
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_event(
|
||||
"toggle_table",
|
||||
_params,
|
||||
%{assigns: %{view_table: view_table, container: container}} = socket
|
||||
) do
|
||||
new_path =
|
||||
if view_table,
|
||||
do: Routes.container_show_path(Endpoint, :show, container),
|
||||
else: Routes.container_show_path(Endpoint, :table, container)
|
||||
|
||||
{:noreply, socket |> assign(view_table: !view_table) |> push_patch(to: new_path)}
|
||||
def handle_event("toggle_table", _params, %{assigns: %{view_table: view_table}} = socket) do
|
||||
{:noreply, socket |> assign(:view_table, !view_table) |> render_container()}
|
||||
end
|
||||
|
||||
@spec render_container(Socket.t(), Container.id(), User.t()) :: Socket.t()
|
||||
|
@ -24,12 +24,20 @@
|
||||
|
||||
<%= unless @ammo_groups |> Enum.empty?() do %>
|
||||
<span class="rounded-lg title text-lg">
|
||||
<%= gettext("Packs:") %>
|
||||
<%= if @show_used do %>
|
||||
<%= gettext("Total packs:") %>
|
||||
<% else %>
|
||||
<%= gettext("Packs:") %>
|
||||
<% end %>
|
||||
<%= Enum.count(@ammo_groups) %>
|
||||
</span>
|
||||
|
||||
<span class="rounded-lg title text-lg">
|
||||
<%= gettext("Rounds:") %>
|
||||
<%= if @show_used do %>
|
||||
<%= gettext("Total rounds:") %>
|
||||
<% else %>
|
||||
<%= gettext("Rounds:") %>
|
||||
<% end %>
|
||||
<%= @container |> Containers.get_container_rounds!() %>
|
||||
</span>
|
||||
<% end %>
|
||||
@ -107,7 +115,7 @@
|
||||
|
||||
<div class="w-full p-4">
|
||||
<%= if @ammo_groups |> Enum.empty?() do %>
|
||||
<h2 class="mx-4 title text-lg text-primary-600">
|
||||
<h2 class="mx-4 title text-lg text-primary-600 text-center">
|
||||
<%= gettext("No ammo in this container") %>
|
||||
</h2>
|
||||
<% else %>
|
||||
@ -117,7 +125,6 @@
|
||||
id="ammo-type-show-table"
|
||||
ammo_groups={@ammo_groups}
|
||||
current_user={@current_user}
|
||||
show_used={@show_used}
|
||||
>
|
||||
<:ammo_type :let={%{name: ammo_type_name} = ammo_type}>
|
||||
<.link navigate={Routes.ammo_type_show_path(Endpoint, :show, ammo_type)} class="link">
|
||||
@ -126,7 +133,7 @@
|
||||
</:ammo_type>
|
||||
</.live_component>
|
||||
<% else %>
|
||||
<div class="flex flex-wrap justify-center items-center">
|
||||
<div class="flex flex-wrap justify-center items-stretch">
|
||||
<%= for ammo_group <- @ammo_groups do %>
|
||||
<.ammo_group_card ammo_group={ammo_group} />
|
||||
<% end %>
|
||||
|
@ -7,32 +7,15 @@ defmodule CanneryWeb.HomeLive do
|
||||
alias Cannery.Accounts
|
||||
alias CanneryWeb.Endpoint
|
||||
|
||||
@version Mix.Project.config()[:version]
|
||||
|
||||
@impl true
|
||||
def mount(_params, _session, socket) do
|
||||
admins = Accounts.list_users_by_role(:admin)
|
||||
socket = socket |> assign(page_title: "Home", query: "", results: %{}, admins: admins)
|
||||
socket = socket |> assign(page_title: gettext("Home"), admins: admins, version: @version)
|
||||
{:ok, socket}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_event("suggest", %{"q" => query}, socket) do
|
||||
{:noreply, socket |> assign(results: search(query), query: query)}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_event("search", %{"q" => query}, socket) do
|
||||
case search(query) do
|
||||
%{^query => vsn} ->
|
||||
{:noreply, redirect(socket, external: "https://hexdocs.pm/#{query}/#{vsn}")}
|
||||
|
||||
_no_query ->
|
||||
{:noreply,
|
||||
socket
|
||||
|> put_flash(:error, "No dependencies found matching \"#{query}\"")
|
||||
|> assign(results: %{}, query: query)}
|
||||
end
|
||||
end
|
||||
|
||||
@impl true
|
||||
def render(assigns) do
|
||||
~H"""
|
||||
@ -138,7 +121,9 @@ defmodule CanneryWeb.HomeLive do
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<p>0.7.0</p>
|
||||
<p>
|
||||
<%= @version %>
|
||||
</p>
|
||||
<i class="fas fa-md fa-info-circle"></i>
|
||||
</.link>
|
||||
</li>
|
||||
@ -188,16 +173,4 @@ defmodule CanneryWeb.HomeLive do
|
||||
</div>
|
||||
"""
|
||||
end
|
||||
|
||||
defp search(query) do
|
||||
if not CanneryWeb.Endpoint.config(:code_reloader) do
|
||||
raise "action disabled when not in development"
|
||||
end
|
||||
|
||||
for {app, desc, vsn} <- Application.started_applications(),
|
||||
app = to_string(app),
|
||||
String.starts_with?(app, query) and not List.starts_with?(desc, ~c"ERTS"),
|
||||
into: %{},
|
||||
do: {app, vsn}
|
||||
end
|
||||
end
|
||||
|
@ -38,7 +38,7 @@ defmodule CanneryWeb.InviteLive.FormComponent do
|
||||
|
||||
changeset =
|
||||
case action do
|
||||
:new -> invite |> Invite.create_changeset(user, "example_token", invite_params)
|
||||
:new -> Invite.create_changeset(user, "example_token", invite_params)
|
||||
:edit -> invite |> Invite.update_changeset(invite_params)
|
||||
end
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
</.link>
|
||||
<% end %>
|
||||
|
||||
<div class="w-full flex flex-row flex-wrap justify-center items-center">
|
||||
<div class="w-full flex flex-row flex-wrap justify-center items-stretch">
|
||||
<%= for invite <- @invites do %>
|
||||
<.invite_card invite={invite}>
|
||||
<:code_actions>
|
||||
@ -91,7 +91,7 @@
|
||||
<%= gettext("Admins") %>
|
||||
</h1>
|
||||
|
||||
<div class="w-full flex flex-row flex-wrap justify-center items-center">
|
||||
<div class="w-full flex flex-row flex-wrap justify-center items-stretch">
|
||||
<%= for admin <- @admins do %>
|
||||
<.user_card user={admin}>
|
||||
<.link
|
||||
@ -121,7 +121,7 @@
|
||||
<%= gettext("Users") %>
|
||||
</h1>
|
||||
|
||||
<div class="w-full flex flex-row flex-wrap justify-center items-center">
|
||||
<div class="w-full flex flex-row flex-wrap justify-center items-stretch">
|
||||
<%= for user <- @users do %>
|
||||
<.user_card user={user}>
|
||||
<.link
|
||||
|
@ -72,10 +72,57 @@ defmodule CanneryWeb.LiveHelpers do
|
||||
"""
|
||||
end
|
||||
|
||||
def hide_modal(js \\ %JS{}) do
|
||||
defp hide_modal(js \\ %JS{}) do
|
||||
js
|
||||
|> JS.hide(to: "#modal", transition: "fade-out")
|
||||
|> JS.hide(to: "#modal-bg", transition: "fade-out")
|
||||
|> JS.hide(to: "#modal-content", transition: "fade-out-scale")
|
||||
end
|
||||
|
||||
@doc """
|
||||
A toggle button element that can be directed to a liveview or a
|
||||
live_component's `handle_event/3`.
|
||||
|
||||
## Examples
|
||||
|
||||
<.toggle_button action="my_liveview_action" value={@some_value}>
|
||||
<span>Toggle me!</span>
|
||||
</.toggle_button>
|
||||
<.toggle_button action="my_live_component_action" target={@myself} value={@some_value}>
|
||||
<span>Whatever you want</span>
|
||||
</.toggle_button>
|
||||
"""
|
||||
def toggle_button(assigns) do
|
||||
assigns = assigns |> assign_new(:id, fn -> assigns.action end)
|
||||
|
||||
~H"""
|
||||
<label for={@id} class="inline-flex relative items-center cursor-pointer">
|
||||
<input
|
||||
id={@id}
|
||||
type="checkbox"
|
||||
value={@value}
|
||||
checked={@value}
|
||||
class="sr-only peer"
|
||||
data-qa={@id}
|
||||
{
|
||||
if assigns |> Map.has_key?(:target),
|
||||
do: %{"phx-click" => @action, "phx-value-value" => @value, "phx-target" => @target},
|
||||
else: %{"phx-click" => @action, "phx-value-value" => @value}
|
||||
}
|
||||
/>
|
||||
<div class="w-11 h-6 bg-gray-300 rounded-full peer
|
||||
peer-focus:ring-4 peer-focus:ring-teal-300 dark:peer-focus:ring-teal-800
|
||||
peer-checked:bg-gray-600
|
||||
peer-checked:after:translate-x-full peer-checked:after:border-white
|
||||
after:content-[''] after:absolute after:top-1 after:left-[2px] after:bg-white after:border-gray-300
|
||||
after:border after:rounded-full after:h-5 after:w-5
|
||||
after:transition-all after:duration-250 after:ease-in-out
|
||||
transition-colors duration-250 ease-in-out">
|
||||
</div>
|
||||
<span class="ml-3 text-sm font-medium text-gray-900 dark:text-gray-300">
|
||||
<%= render_slot(@inner_block) %>
|
||||
</span>
|
||||
</label>
|
||||
"""
|
||||
end
|
||||
end
|
||||
|
@ -33,7 +33,7 @@
|
||||
) %>
|
||||
<%= error_tag(f, :notes, "col-span-3") %>
|
||||
|
||||
<%= label(f, :date, gettext("Date (UTC)"), class: "title text-lg text-primary-600") %>
|
||||
<%= label(f, :date, gettext("Date"), class: "title text-lg text-primary-600") %>
|
||||
<%= date_input(f, :date, class: "input input-primary col-span-2") %>
|
||||
<%= error_tag(f, :notes, "col-span-3") %>
|
||||
|
||||
|
@ -10,7 +10,13 @@ defmodule CanneryWeb.RangeLive.Index do
|
||||
alias Phoenix.LiveView.Socket
|
||||
|
||||
@impl true
|
||||
def mount(_params, _session, socket), do: {:ok, socket |> display_shot_groups()}
|
||||
def mount(%{"search" => search}, _session, socket) do
|
||||
{:ok, socket |> assign(search: search) |> display_shot_groups()}
|
||||
end
|
||||
|
||||
def mount(_params, _session, socket) do
|
||||
{:ok, socket |> assign(search: nil) |> display_shot_groups()}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_params(params, _url, %{assigns: %{live_action: live_action}} = socket) do
|
||||
@ -23,26 +29,46 @@ defmodule CanneryWeb.RangeLive.Index do
|
||||
%{"id" => id}
|
||||
) do
|
||||
socket
|
||||
|> assign(:page_title, gettext("Record Shots"))
|
||||
|> assign(:ammo_group, Ammo.get_ammo_group!(id, current_user))
|
||||
|> assign(
|
||||
page_title: gettext("Record Shots"),
|
||||
ammo_group: Ammo.get_ammo_group!(id, current_user)
|
||||
)
|
||||
end
|
||||
|
||||
defp apply_action(%{assigns: %{current_user: current_user}} = socket, :edit, %{"id" => id}) do
|
||||
socket
|
||||
|> assign(:page_title, gettext("Edit Shot Records"))
|
||||
|> assign(:shot_group, ActivityLog.get_shot_group!(id, current_user))
|
||||
|> assign(
|
||||
page_title: gettext("Edit Shot Records"),
|
||||
shot_group: ActivityLog.get_shot_group!(id, current_user)
|
||||
)
|
||||
end
|
||||
|
||||
defp apply_action(socket, :new, _params) do
|
||||
socket
|
||||
|> assign(:page_title, gettext("New Shot Records"))
|
||||
|> assign(:shot_group, %ShotGroup{})
|
||||
|> assign(
|
||||
page_title: gettext("New Shot Records"),
|
||||
shot_group: %ShotGroup{}
|
||||
)
|
||||
end
|
||||
|
||||
defp apply_action(socket, :index, _params) do
|
||||
socket
|
||||
|> assign(:page_title, gettext("Shot Records"))
|
||||
|> assign(:shot_group, nil)
|
||||
|> assign(
|
||||
page_title: gettext("Shot Records"),
|
||||
search: nil,
|
||||
shot_group: nil
|
||||
)
|
||||
|> display_shot_groups()
|
||||
end
|
||||
|
||||
defp apply_action(socket, :search, %{"search" => search}) do
|
||||
socket
|
||||
|> assign(
|
||||
page_title: gettext("Shot Records"),
|
||||
search: search,
|
||||
shot_group: nil
|
||||
)
|
||||
|> display_shot_groups()
|
||||
end
|
||||
|
||||
@impl true
|
||||
@ -55,6 +81,7 @@ defmodule CanneryWeb.RangeLive.Index do
|
||||
{:noreply, socket |> put_flash(:info, prompt) |> display_shot_groups()}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_event(
|
||||
"toggle_staged",
|
||||
%{"ammo_group_id" => ammo_group_id},
|
||||
@ -69,32 +96,27 @@ defmodule CanneryWeb.RangeLive.Index do
|
||||
{:noreply, socket |> put_flash(:info, prompt) |> display_shot_groups()}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_event("search", %{"search" => %{"search_term" => ""}}, socket) do
|
||||
{:noreply, socket |> push_patch(to: Routes.range_index_path(Endpoint, :index))}
|
||||
end
|
||||
|
||||
def handle_event("search", %{"search" => %{"search_term" => search_term}}, socket) do
|
||||
{:noreply, socket |> push_patch(to: Routes.range_index_path(Endpoint, :search, search_term))}
|
||||
end
|
||||
|
||||
@spec display_shot_groups(Socket.t()) :: Socket.t()
|
||||
defp display_shot_groups(%{assigns: %{current_user: current_user}} = socket) do
|
||||
defp display_shot_groups(%{assigns: %{search: search, current_user: current_user}} = socket) do
|
||||
shot_groups =
|
||||
ActivityLog.list_shot_groups(current_user) |> Repo.preload(ammo_group: :ammo_type)
|
||||
ActivityLog.list_shot_groups(search, current_user)
|
||||
|> Repo.preload(ammo_group: :ammo_type)
|
||||
|
||||
ammo_groups = Ammo.list_staged_ammo_groups(current_user)
|
||||
|
||||
columns = [
|
||||
%{label: gettext("Ammo"), key: :name},
|
||||
%{label: gettext("Rounds shot"), key: :count},
|
||||
%{label: gettext("Notes"), key: :notes},
|
||||
%{label: gettext("Date"), key: :date},
|
||||
%{label: nil, key: :actions, sortable: false}
|
||||
]
|
||||
|
||||
rows =
|
||||
shot_groups
|
||||
|> Enum.map(fn shot_group -> shot_group |> get_row_data_for_shot_group(columns) end)
|
||||
|
||||
chart_data = shot_groups |> get_chart_data_for_shot_group()
|
||||
|
||||
socket
|
||||
|> assign(
|
||||
ammo_groups: ammo_groups,
|
||||
columns: columns,
|
||||
rows: rows,
|
||||
chart_data: chart_data,
|
||||
shot_groups: shot_groups
|
||||
)
|
||||
@ -114,61 +136,6 @@ defmodule CanneryWeb.RangeLive.Index do
|
||||
label: gettext("Rounds shot: %{count}", count: sum)
|
||||
}
|
||||
end)
|
||||
|> Enum.sort_by(fn %{date: date} -> date end)
|
||||
end
|
||||
|
||||
@spec get_row_data_for_shot_group(ShotGroup.t(), [map()]) :: map()
|
||||
defp get_row_data_for_shot_group(%{date: date} = shot_group, columns) do
|
||||
shot_group = shot_group |> Repo.preload(ammo_group: :ammo_type)
|
||||
assigns = %{shot_group: shot_group}
|
||||
|
||||
columns
|
||||
|> Map.new(fn %{key: key} ->
|
||||
value =
|
||||
case key do
|
||||
:name ->
|
||||
{shot_group.ammo_group.ammo_type.name,
|
||||
~H"""
|
||||
<.link
|
||||
navigate={Routes.ammo_group_show_path(Endpoint, :show, @shot_group.ammo_group)}
|
||||
class="link"
|
||||
>
|
||||
<%= @shot_group.ammo_group.ammo_type.name %>
|
||||
</.link>
|
||||
"""}
|
||||
|
||||
:date ->
|
||||
date |> display_date()
|
||||
|
||||
:actions ->
|
||||
~H"""
|
||||
<div class="px-4 py-2 space-x-4 flex justify-center items-center">
|
||||
<.link
|
||||
patch={Routes.range_index_path(Endpoint, :edit, @shot_group)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"edit-#{@shot_group.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
href="#"
|
||||
class="text-primary-600 link"
|
||||
phx-click="delete"
|
||||
phx-value-id={@shot_group.id}
|
||||
data-confirm={dgettext("prompts", "Are you sure you want to delete this shot record?")}
|
||||
data-qa={"delete-#{@shot_group.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||
</.link>
|
||||
</div>
|
||||
"""
|
||||
|
||||
key ->
|
||||
shot_group |> Map.get(key)
|
||||
end
|
||||
|
||||
{key, value}
|
||||
end)
|
||||
|> Enum.sort_by(fn %{date: date} -> date end, Date)
|
||||
end
|
||||
end
|
||||
|
@ -17,33 +17,35 @@
|
||||
<%= dgettext("actions", "Stage ammo") %>
|
||||
</.link>
|
||||
|
||||
<%= for ammo_group <- @ammo_groups do %>
|
||||
<.ammo_group_card ammo_group={ammo_group}>
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-primary"
|
||||
phx-click="toggle_staged"
|
||||
phx-value-ammo_group_id={ammo_group.id}
|
||||
data-confirm={"#{dgettext("prompts", "Are you sure you want to unstage this ammo?")}"}
|
||||
>
|
||||
<%= if ammo_group.staged,
|
||||
do: dgettext("actions", "Unstage from range"),
|
||||
else: dgettext("actions", "Stage for range") %>
|
||||
</button>
|
||||
<div class="w-full flex flex-row flex-wrap justify-center items-stretch">
|
||||
<%= for ammo_group <- @ammo_groups do %>
|
||||
<.ammo_group_card ammo_group={ammo_group}>
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-primary"
|
||||
phx-click="toggle_staged"
|
||||
phx-value-ammo_group_id={ammo_group.id}
|
||||
data-confirm={"#{dgettext("prompts", "Are you sure you want to unstage this ammo?")}"}
|
||||
>
|
||||
<%= if ammo_group.staged,
|
||||
do: dgettext("actions", "Unstage from range"),
|
||||
else: dgettext("actions", "Stage for range") %>
|
||||
</button>
|
||||
|
||||
<.link
|
||||
patch={Routes.range_index_path(Endpoint, :add_shot_group, ammo_group)}
|
||||
class="btn btn-primary"
|
||||
>
|
||||
<%= dgettext("actions", "Record shots") %>
|
||||
</.link>
|
||||
</.ammo_group_card>
|
||||
<% end %>
|
||||
<.link
|
||||
patch={Routes.range_index_path(Endpoint, :add_shot_group, ammo_group)}
|
||||
class="btn btn-primary"
|
||||
>
|
||||
<%= dgettext("actions", "Record shots") %>
|
||||
</.link>
|
||||
</.ammo_group_card>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<hr class="hr" />
|
||||
|
||||
<%= if @shot_groups |> Enum.empty?() do %>
|
||||
<%= if @shot_groups |> Enum.empty?() and @search |> is_nil() do %>
|
||||
<h1 class="title text-xl text-primary-600">
|
||||
<%= gettext("No shots recorded") %>
|
||||
<%= display_emoji("😔") %>
|
||||
@ -67,14 +69,62 @@
|
||||
<%= dgettext("errors", "Your browser does not support the canvas element.") %>
|
||||
</canvas>
|
||||
|
||||
<.live_component
|
||||
module={CanneryWeb.Components.TableComponent}
|
||||
id="shot_groups_index_table"
|
||||
columns={@columns}
|
||||
rows={@rows}
|
||||
initial_key={:date}
|
||||
initial_sort_mode={:desc}
|
||||
/>
|
||||
<div class="w-full flex flex-col sm:flex-row justify-center items-center space-y-4 sm:space-y-0 sm:space-x-4 max-w-xl">
|
||||
<.form
|
||||
:let={f}
|
||||
for={:search}
|
||||
phx-change="search"
|
||||
phx-submit="search"
|
||||
class="grow self-stretch flex flex-col items-stretch"
|
||||
data-qa="shot_group_search"
|
||||
>
|
||||
<%= text_input(f, :search_term,
|
||||
class: "input input-primary",
|
||||
value: @search,
|
||||
phx_debounce: 300,
|
||||
placeholder: gettext("Search shot records")
|
||||
) %>
|
||||
</.form>
|
||||
</div>
|
||||
|
||||
<%= if @shot_groups |> Enum.empty?() do %>
|
||||
<h1 class="title text-xl text-primary-600">
|
||||
<%= gettext("No shots recorded") %>
|
||||
<%= display_emoji("😔") %>
|
||||
</h1>
|
||||
<% else %>
|
||||
<.live_component
|
||||
module={CanneryWeb.Components.ShotGroupTableComponent}
|
||||
id="shot_groups_index_table"
|
||||
shot_groups={@shot_groups}
|
||||
current_user={@current_user}
|
||||
>
|
||||
<:actions :let={shot_group}>
|
||||
<div class="px-4 py-2 space-x-4 flex justify-center items-center">
|
||||
<.link
|
||||
patch={Routes.range_index_path(Endpoint, :edit, shot_group)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"edit-#{shot_group.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
href="#"
|
||||
class="text-primary-600 link"
|
||||
phx-click="delete"
|
||||
phx-value-id={shot_group.id}
|
||||
data-confirm={
|
||||
dgettext("prompts", "Are you sure you want to delete this shot record?")
|
||||
}
|
||||
data-qa={"delete-#{shot_group.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||
</.link>
|
||||
</div>
|
||||
</:actions>
|
||||
</.live_component>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
@ -9,27 +9,53 @@ defmodule CanneryWeb.TagLive.Index do
|
||||
alias CanneryWeb.{Endpoint, ViewHelpers}
|
||||
|
||||
@impl true
|
||||
def mount(_params, _session, socket), do: {:ok, socket |> display_tags()}
|
||||
def mount(%{"search" => search}, _session, socket) do
|
||||
{:ok, socket |> assign(:search, search) |> display_tags()}
|
||||
end
|
||||
|
||||
def mount(_params, _session, socket) do
|
||||
{:ok, socket |> assign(:search, nil) |> display_tags()}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_params(params, _url, %{assigns: %{live_action: live_action}} = socket) do
|
||||
{:noreply, apply_action(socket, live_action, params) |> display_tags}
|
||||
{:noreply, apply_action(socket, live_action, params)}
|
||||
end
|
||||
|
||||
defp apply_action(%{assigns: %{current_user: current_user}} = socket, :edit, %{"id" => id}) do
|
||||
socket
|
||||
|> assign(:page_title, gettext("Edit Tag"))
|
||||
|> assign(:tag, Tags.get_tag!(id, current_user))
|
||||
|> assign(
|
||||
page_title: gettext("Edit Tag"),
|
||||
tag: Tags.get_tag!(id, current_user)
|
||||
)
|
||||
end
|
||||
|
||||
defp apply_action(socket, :new, _params) do
|
||||
socket
|
||||
|> assign(:page_title, gettext("New Tag"))
|
||||
|> assign(:tag, %Tag{bg_color: ViewHelpers.random_color(), text_color: "#ffffff"})
|
||||
|> assign(
|
||||
page_title: gettext("New Tag"),
|
||||
tag: %Tag{bg_color: ViewHelpers.random_color(), text_color: "#ffffff"}
|
||||
)
|
||||
end
|
||||
|
||||
defp apply_action(socket, :index, _params) do
|
||||
socket |> assign(:page_title, gettext("Tags")) |> assign(:tag, nil)
|
||||
socket
|
||||
|> assign(
|
||||
page_title: gettext("Tags"),
|
||||
search: nil,
|
||||
tag: nil
|
||||
)
|
||||
|> display_tags()
|
||||
end
|
||||
|
||||
defp apply_action(socket, :search, %{"search" => search}) do
|
||||
socket
|
||||
|> assign(
|
||||
page_title: gettext("Tags"),
|
||||
search: search,
|
||||
tag: nil
|
||||
)
|
||||
|> display_tags()
|
||||
end
|
||||
|
||||
@impl true
|
||||
@ -39,7 +65,16 @@ defmodule CanneryWeb.TagLive.Index do
|
||||
{:noreply, socket |> put_flash(:info, prompt) |> display_tags()}
|
||||
end
|
||||
|
||||
defp display_tags(%{assigns: %{current_user: current_user}} = socket) do
|
||||
socket |> assign(tags: Tags.list_tags(current_user))
|
||||
@impl true
|
||||
def handle_event("search", %{"search" => %{"search_term" => ""}}, socket) do
|
||||
{:noreply, socket |> push_patch(to: Routes.tag_index_path(Endpoint, :index))}
|
||||
end
|
||||
|
||||
def handle_event("search", %{"search" => %{"search_term" => search_term}}, socket) do
|
||||
{:noreply, socket |> push_patch(to: Routes.tag_index_path(Endpoint, :search, search_term))}
|
||||
end
|
||||
|
||||
defp display_tags(%{assigns: %{search: search, current_user: current_user}} = socket) do
|
||||
socket |> assign(tags: Tags.list_tags(search, current_user))
|
||||
end
|
||||
end
|
||||
|
@ -5,7 +5,7 @@
|
||||
<p class="title text-md text-primary-600">
|
||||
<%= gettext("Tags can be added to your containers to help you organize") %>
|
||||
</p>
|
||||
<%= if @tags |> Enum.empty?() do %>
|
||||
<%= if @tags |> Enum.empty?() and @search |> is_nil() do %>
|
||||
<h2 class="title text-xl text-primary-600">
|
||||
<%= gettext("No tags") %>
|
||||
<%= display_emoji("😔") %>
|
||||
@ -19,32 +19,58 @@
|
||||
<%= dgettext("actions", "New Tag") %>
|
||||
</.link>
|
||||
<% end %>
|
||||
<div class="flex flex-row flex-wrap justify-center items-center">
|
||||
<%= for tag <- @tags do %>
|
||||
<.tag_card tag={tag}>
|
||||
<.link
|
||||
patch={Routes.tag_index_path(Endpoint, :edit, tag)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"edit-#{tag.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
href="#"
|
||||
class="text-primary-600 link"
|
||||
phx-click="delete"
|
||||
phx-value-id={tag.id}
|
||||
data-confirm={
|
||||
dgettext("prompts", "Are you sure you want to delete %{name}?", name: tag.name)
|
||||
}
|
||||
data-qa={"delete-#{tag.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||
</.link>
|
||||
</.tag_card>
|
||||
<% end %>
|
||||
<div class="w-full flex flex-col sm:flex-row justify-center items-center space-y-4 sm:space-y-0 sm:space-x-4 max-w-xl">
|
||||
<.form
|
||||
:let={f}
|
||||
for={:search}
|
||||
phx-change="search"
|
||||
phx-submit="search"
|
||||
class="grow self-stretch flex flex-col items-stretch"
|
||||
data-qa="tag_search"
|
||||
>
|
||||
<%= text_input(f, :search_term,
|
||||
class: "input input-primary",
|
||||
value: @search,
|
||||
phx_debounce: 300,
|
||||
placeholder: gettext("Search tags")
|
||||
) %>
|
||||
</.form>
|
||||
</div>
|
||||
|
||||
<%= if @tags |> Enum.empty?() do %>
|
||||
<h2 class="title text-xl text-primary-600">
|
||||
<%= gettext("No tags") %>
|
||||
<%= display_emoji("😔") %>
|
||||
</h2>
|
||||
<% else %>
|
||||
<div class="flex flex-row flex-wrap justify-center items-stretch">
|
||||
<%= for tag <- @tags do %>
|
||||
<.tag_card tag={tag}>
|
||||
<.link
|
||||
patch={Routes.tag_index_path(Endpoint, :edit, tag)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"edit-#{tag.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
href="#"
|
||||
class="text-primary-600 link"
|
||||
phx-click="delete"
|
||||
phx-value-id={tag.id}
|
||||
data-confirm={
|
||||
dgettext("prompts", "Are you sure you want to delete %{name}?", name: tag.name)
|
||||
}
|
||||
data-qa={"delete-#{tag.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||
</.link>
|
||||
</.tag_card>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= if @live_action in [:new, :edit] do %>
|
||||
|
@ -64,45 +64,48 @@ defmodule CanneryWeb.Router do
|
||||
|
||||
live "/tags", TagLive.Index, :index
|
||||
live "/tags/new", TagLive.Index, :new
|
||||
live "/tags/:id/edit", TagLive.Index, :edit
|
||||
live "/tags/edit/:id", TagLive.Index, :edit
|
||||
live "/tags/search/:search", TagLive.Index, :search
|
||||
|
||||
live "/catalog", AmmoTypeLive.Index, :index
|
||||
live "/catalog/new", AmmoTypeLive.Index, :new
|
||||
live "/catalog/:id/clone", AmmoTypeLive.Index, :clone
|
||||
live "/catalog/:id/edit", AmmoTypeLive.Index, :edit
|
||||
live "/catalog/clone/:id", AmmoTypeLive.Index, :clone
|
||||
live "/catalog/edit/:id", AmmoTypeLive.Index, :edit
|
||||
live "/catalog/search/:search", AmmoTypeLive.Index, :search
|
||||
|
||||
live "/catalog/:id/show", AmmoTypeLive.Show, :show
|
||||
live "/catalog/:id/show/edit", AmmoTypeLive.Show, :edit
|
||||
live "/catalog/:id/show/table", AmmoTypeLive.Show, :table
|
||||
live "/type/:id", AmmoTypeLive.Show, :show
|
||||
live "/type/:id/edit", AmmoTypeLive.Show, :edit
|
||||
live "/type/:id/table", AmmoTypeLive.Show, :table
|
||||
|
||||
live "/containers", ContainerLive.Index, :index
|
||||
live "/containers/table", ContainerLive.Index, :table
|
||||
live "/containers/new", ContainerLive.Index, :new
|
||||
live "/containers/:id/edit", ContainerLive.Index, :edit
|
||||
live "/containers/:id/clone", ContainerLive.Index, :clone
|
||||
live "/containers/:id/edit_tags", ContainerLive.Index, :edit_tags
|
||||
live "/containers/edit/:id", ContainerLive.Index, :edit
|
||||
live "/containers/clone/:id", ContainerLive.Index, :clone
|
||||
live "/containers/edit_tags/:id", ContainerLive.Index, :edit_tags
|
||||
live "/containers/search/:search", ContainerLive.Index, :search
|
||||
|
||||
live "/containers/:id/show", ContainerLive.Show, :show
|
||||
live "/containers/:id/show/table", ContainerLive.Show, :table
|
||||
live "/containers/:id/show/edit", ContainerLive.Show, :edit
|
||||
live "/containers/:id/show/edit_tags", ContainerLive.Show, :edit_tags
|
||||
live "/container/:id", ContainerLive.Show, :show
|
||||
live "/container/edit/:id", ContainerLive.Show, :edit
|
||||
live "/container/edit_tags/:id", ContainerLive.Show, :edit_tags
|
||||
|
||||
live "/ammo", AmmoGroupLive.Index, :index
|
||||
live "/ammo/new", AmmoGroupLive.Index, :new
|
||||
live "/ammo/:id/edit", AmmoGroupLive.Index, :edit
|
||||
live "/ammo/:id/clone", AmmoGroupLive.Index, :clone
|
||||
live "/ammo/:id/add_shot_group", AmmoGroupLive.Index, :add_shot_group
|
||||
live "/ammo/:id/move", AmmoGroupLive.Index, :move
|
||||
live "/ammo/edit/:id", AmmoGroupLive.Index, :edit
|
||||
live "/ammo/clone/:id", AmmoGroupLive.Index, :clone
|
||||
live "/ammo/add_shot_group/:id", AmmoGroupLive.Index, :add_shot_group
|
||||
live "/ammo/move/:id", AmmoGroupLive.Index, :move
|
||||
live "/ammo/search/:search", AmmoGroupLive.Index, :search
|
||||
|
||||
live "/ammo/:id/show", AmmoGroupLive.Show, :show
|
||||
live "/ammo/:id/show/edit", AmmoGroupLive.Show, :edit
|
||||
live "/ammo/:id/show/add_shot_group", AmmoGroupLive.Show, :add_shot_group
|
||||
live "/ammo/:id/show/move", AmmoGroupLive.Show, :move
|
||||
live "/ammo/:id/show/:shot_group_id/edit", AmmoGroupLive.Show, :edit_shot_group
|
||||
live "/ammo/show/:id", AmmoGroupLive.Show, :show
|
||||
live "/ammo/show/edit/:id", AmmoGroupLive.Show, :edit
|
||||
live "/ammo/show/add_shot_group/:id", AmmoGroupLive.Show, :add_shot_group
|
||||
live "/ammo/show/move/:id", AmmoGroupLive.Show, :move
|
||||
live "/ammo/show/:id/edit/:shot_group_id", AmmoGroupLive.Show, :edit_shot_group
|
||||
|
||||
live "/range", RangeLive.Index, :index
|
||||
live "/range/:id/edit", RangeLive.Index, :edit
|
||||
live "/range/:id/add_shot_group", RangeLive.Index, :add_shot_group
|
||||
live "/range/edit/:id", RangeLive.Index, :edit
|
||||
live "/range/add_shot_group/:id", RangeLive.Index, :add_shot_group
|
||||
live "/range/search/:search", RangeLive.Index, :search
|
||||
end
|
||||
|
||||
scope "/", CanneryWeb do
|
||||
|
@ -126,7 +126,12 @@
|
||||
<%= select(
|
||||
f,
|
||||
:locale,
|
||||
[{gettext("English"), "en_US"}, {gettext("German"), "de"}, {gettext("French"), "fr"}],
|
||||
[
|
||||
{gettext("English"), "en_US"},
|
||||
{gettext("German"), "de"},
|
||||
{gettext("French"), "fr"},
|
||||
{gettext("Spanish"), "es"}
|
||||
],
|
||||
class: "mx-2 my-1 min-w-md input input-primary"
|
||||
) %>
|
||||
<%= error_tag(f, :locale) %>
|
||||
|
@ -76,46 +76,6 @@ defmodule CanneryWeb.ViewHelpers do
|
||||
|
||||
def display_emoji(other_emoji), do: other_emoji
|
||||
|
||||
@doc """
|
||||
A toggle button element that can be directed to a liveview or a
|
||||
live_component's `handle_event/3`.
|
||||
|
||||
## Examples
|
||||
|
||||
<.toggle_button action="my_liveview_action" value={@some_value}>
|
||||
<span>Toggle me!</span>
|
||||
</.toggle_button>
|
||||
<.toggle_button action="my_live_component_action" target={@myself} value={@some_value}>
|
||||
<span>Whatever you want</span>
|
||||
</.toggle_button>
|
||||
"""
|
||||
def toggle_button(assigns) do
|
||||
assigns = assigns |> assign_new(:id, fn -> assigns.action end)
|
||||
|
||||
~H"""
|
||||
<label for={@id} class="inline-flex relative items-center cursor-pointer">
|
||||
<input
|
||||
id={@id}
|
||||
type="checkbox"
|
||||
value={@value}
|
||||
checked={@value}
|
||||
class="sr-only peer"
|
||||
data-qa={@id}
|
||||
{
|
||||
if assigns |> Map.has_key?(:target),
|
||||
do: %{"phx-click" => @action, "phx-value-value" => @value, "phx-target" => @target},
|
||||
else: %{"phx-click" => @action, "phx-value-value" => @value}
|
||||
}
|
||||
/>
|
||||
<div class="w-11 h-6 bg-gray-200 rounded-full peer dark:bg-gray-700 peer-focus:ring-4 peer-focus:ring-teal-300 dark:peer-focus:ring-teal-800 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-1 after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-teal-600">
|
||||
</div>
|
||||
<span class="ml-3 text-sm font-medium text-gray-900 dark:text-gray-300">
|
||||
<%= render_slot(@inner_block) %>
|
||||
</span>
|
||||
</label>
|
||||
"""
|
||||
end
|
||||
|
||||
@doc """
|
||||
Get a random color in `#ffffff` hex format
|
||||
|
||||
|
4
mix.exs
4
mix.exs
@ -4,7 +4,7 @@ defmodule Cannery.MixProject do
|
||||
def project do
|
||||
[
|
||||
app: :cannery,
|
||||
version: "0.7.0",
|
||||
version: "0.8.0",
|
||||
elixir: "1.14.1",
|
||||
elixirc_paths: elixirc_paths(Mix.env()),
|
||||
compilers: Mix.compilers(),
|
||||
@ -13,7 +13,7 @@ defmodule Cannery.MixProject do
|
||||
deps: deps(),
|
||||
dialyzer: [plt_add_apps: [:ex_unit]],
|
||||
consolidate_protocols: Mix.env() not in [:dev, :test],
|
||||
preferred_cli_env: [test: :test, "test.all": :test],
|
||||
preferred_cli_env: ["test.all": :test],
|
||||
# ExDoc
|
||||
name: "Cannery",
|
||||
source_url: "https://gitea.bubbletea.dev/shibao/cannery",
|
||||
|
32
mix.lock
32
mix.lock
@ -1,44 +1,41 @@
|
||||
%{
|
||||
"bcrypt_elixir": {:hex, :bcrypt_elixir, "2.3.1", "5114d780459a04f2b4aeef52307de23de961b69e13a5cd98a911e39fda13f420", [:make, :mix], [{:comeonin, "~> 5.3", [hex: :comeonin, repo: "hexpm", optional: false]}, {:elixir_make, "~> 0.6", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm", "42182d5f46764def15bf9af83739e3bf4ad22661b1c34fc3e88558efced07279"},
|
||||
"bunt": {:hex, :bunt, "0.2.1", "e2d4792f7bc0ced7583ab54922808919518d0e57ee162901a16a1b6664ef3b14", [:mix], [], "hexpm", "a330bfb4245239787b15005e66ae6845c9cd524a288f0d141c148b02603777a5"},
|
||||
"castore": {:hex, :castore, "0.1.18", "deb5b9ab02400561b6f5708f3e7660fc35ca2d51bfc6a940d2f513f89c2975fc", [:mix], [], "hexpm", "61bbaf6452b782ef80b33cdb45701afbcf0a918a45ebe7e73f1130d661e66a06"},
|
||||
"castore": {:hex, :castore, "0.1.22", "4127549e411bedd012ca3a308dede574f43819fe9394254ca55ab4895abfa1a2", [:mix], [], "hexpm", "c17576df47eb5aa1ee40cc4134316a99f5cad3e215d5c77b8dd3cfef12a22cac"},
|
||||
"comeonin": {:hex, :comeonin, "5.3.3", "2c564dac95a35650e9b6acfe6d2952083d8a08e4a89b93a481acb552b325892e", [:mix], [], "hexpm", "3e38c9c2cb080828116597ca8807bb482618a315bfafd98c90bc22a821cc84df"},
|
||||
"connection": {:hex, :connection, "1.1.0", "ff2a49c4b75b6fb3e674bfc5536451607270aac754ffd1bdfe175abe4a6d7a68", [:mix], [], "hexpm", "722c1eb0a418fbe91ba7bd59a47e28008a189d47e37e0e7bb85585a016b2869c"},
|
||||
"cowboy": {:hex, :cowboy, "2.9.0", "865dd8b6607e14cf03282e10e934023a1bd8be6f6bacf921a7e2a96d800cd452", [:make, :rebar3], [{:cowlib, "2.11.0", [hex: :cowlib, repo: "hexpm", optional: false]}, {:ranch, "1.8.0", [hex: :ranch, repo: "hexpm", optional: false]}], "hexpm", "2c729f934b4e1aa149aff882f57c6372c15399a20d54f65c8d67bef583021bde"},
|
||||
"cowboy_telemetry": {:hex, :cowboy_telemetry, "0.4.0", "f239f68b588efa7707abce16a84d0d2acf3a0f50571f8bb7f56a15865aae820c", [:rebar3], [{:cowboy, "~> 2.7", [hex: :cowboy, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7d98bac1ee4565d31b62d59f8823dfd8356a169e7fcbb83831b8a5397404c9de"},
|
||||
"cowlib": {:hex, :cowlib, "2.11.0", "0b9ff9c346629256c42ebe1eeb769a83c6cb771a6ee5960bd110ab0b9b872063", [:make, :rebar3], [], "hexpm", "2b3e9da0b21c4565751a6d4901c20d1b4cc25cbb7fd50d91d2ab6dd287bc86a9"},
|
||||
"credo": {:hex, :credo, "1.6.7", "323f5734350fd23a456f2688b9430e7d517afb313fbd38671b8a4449798a7854", [:mix], [{:bunt, "~> 0.2.1", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2.8", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "41e110bfb007f7eda7f897c10bf019ceab9a0b269ce79f015d54b0dcf4fc7dd3"},
|
||||
"db_connection": {:hex, :db_connection, "2.4.2", "f92e79aff2375299a16bcb069a14ee8615c3414863a6fef93156aee8e86c2ff3", [:mix], [{:connection, "~> 1.0", [hex: :connection, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "4fe53ca91b99f55ea249693a0229356a08f4d1a7931d8ffa79289b145fe83668"},
|
||||
"db_connection": {:hex, :db_connection, "2.4.3", "3b9aac9f27347ec65b271847e6baeb4443d8474289bd18c1d6f4de655b70c94d", [:mix], [{:connection, "~> 1.0", [hex: :connection, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "c127c15b0fa6cfb32eed07465e05da6c815b032508d4ed7c116122871df73c12"},
|
||||
"decimal": {:hex, :decimal, "2.0.0", "a78296e617b0f5dd4c6caf57c714431347912ffb1d0842e998e9792b5642d697", [:mix], [], "hexpm", "34666e9c55dea81013e77d9d87370fe6cb6291d1ef32f46a1600230b1d44f577"},
|
||||
"dialyxir": {:hex, :dialyxir, "1.2.0", "58344b3e87c2e7095304c81a9ae65cb68b613e28340690dfe1a5597fd08dec37", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "61072136427a851674cab81762be4dbeae7679f85b1272b6d25c3a839aff8463"},
|
||||
"earmark_parser": {:hex, :earmark_parser, "1.4.29", "149d50dcb3a93d9f3d6f3ecf18c918fb5a2d3c001b5d3305c926cddfbd33355b", [:mix], [], "hexpm", "4902af1b3eb139016aed210888748db8070b8125c2342ce3dcae4f38dcc63503"},
|
||||
"ecto": {:hex, :ecto, "3.9.1", "67173b1687afeb68ce805ee7420b4261649d5e2deed8fe5550df23bab0bc4396", [:mix], [{:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "c80bb3d736648df790f7f92f81b36c922d9dd3203ca65be4ff01d067f54eb304"},
|
||||
"ecto_psql_extras": {:hex, :ecto_psql_extras, "0.7.4", "5d43fd088d39a158c860b17e8d210669587f63ec89ea122a4654861c8c6e2db4", [:mix], [{:ecto_sql, "~> 3.4", [hex: :ecto_sql, repo: "hexpm", optional: false]}, {:postgrex, ">= 0.15.7", [hex: :postgrex, repo: "hexpm", optional: false]}, {:table_rex, "~> 3.1.1", [hex: :table_rex, repo: "hexpm", optional: false]}], "hexpm", "311db02f1b772e3d0dc7f56a05044b5e1499d78ed6abf38885e1ca70059449e5"},
|
||||
"ecto_sql": {:hex, :ecto_sql, "3.9.0", "2bb21210a2a13317e098a420a8c1cc58b0c3421ab8e3acfa96417dab7817918c", [:mix], [{:db_connection, "~> 2.5 or ~> 2.4.1", [hex: :db_connection, repo: "hexpm", optional: false]}, {:ecto, "~> 3.9.0", [hex: :ecto, repo: "hexpm", optional: false]}, {:myxql, "~> 0.6.0", [hex: :myxql, repo: "hexpm", optional: true]}, {:postgrex, "~> 0.16.0 or ~> 1.0", [hex: :postgrex, repo: "hexpm", optional: true]}, {:tds, "~> 2.1.1 or ~> 2.2", [hex: :tds, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.0 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "a8f3f720073b8b1ac4c978be25fa7960ed7fd44997420c304a4a2e200b596453"},
|
||||
"elixir_make": {:hex, :elixir_make, "0.6.3", "bc07d53221216838d79e03a8019d0839786703129599e9619f4ab74c8c096eac", [:mix], [], "hexpm", "f5cbd651c5678bcaabdbb7857658ee106b12509cd976c2c2fca99688e1daf716"},
|
||||
"ecto": {:hex, :ecto, "3.9.4", "3ee68e25dbe0c36f980f1ba5dd41ee0d3eb0873bccae8aeaf1a2647242bffa35", [:mix], [{:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "de5f988c142a3aa4ec18b85a4ec34a2390b65b24f02385c1144252ff6ff8ee75"},
|
||||
"ecto_psql_extras": {:hex, :ecto_psql_extras, "0.7.10", "e14d400930f401ca9f541b3349212634e44027d7f919bbb71224d7ac0d0e8acd", [:mix], [{:ecto_sql, "~> 3.4", [hex: :ecto_sql, repo: "hexpm", optional: false]}, {:postgrex, "~> 0.15.7 or ~> 0.16.0", [hex: :postgrex, repo: "hexpm", optional: false]}, {:table_rex, "~> 3.1.1", [hex: :table_rex, repo: "hexpm", optional: false]}], "hexpm", "505e8cd81e4f17c090be0f99e92b1b3f0fd915f98e76965130b8ccfb891e7088"},
|
||||
"ecto_sql": {:hex, :ecto_sql, "3.9.2", "34227501abe92dba10d9c3495ab6770e75e79b836d114c41108a4bf2ce200ad5", [:mix], [{:db_connection, "~> 2.4.1 or ~> 2.5", [hex: :db_connection, repo: "hexpm", optional: false]}, {:ecto, "~> 3.9.2", [hex: :ecto, repo: "hexpm", optional: false]}, {:myxql, "~> 0.6.0", [hex: :myxql, repo: "hexpm", optional: true]}, {:postgrex, "~> 0.16.0 or ~> 1.0", [hex: :postgrex, repo: "hexpm", optional: true]}, {:tds, "~> 2.1.1 or ~> 2.2", [hex: :tds, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.0 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "1eb5eeb4358fdbcd42eac11c1fbd87e3affd7904e639d77903c1358b2abd3f70"},
|
||||
"elixir_make": {:hex, :elixir_make, "0.7.3", "c37fdae1b52d2cc51069713a58c2314877c1ad40800a57efb213f77b078a460d", [:mix], [{:castore, "~> 0.1", [hex: :castore, repo: "hexpm", optional: true]}], "hexpm", "24ada3e3996adbed1fa024ca14995ef2ba3d0d17b678b0f3f2b1f66e6ce2b274"},
|
||||
"erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"},
|
||||
"esbuild": {:hex, :esbuild, "0.4.0", "9f17db148aead4cf1e6e6a584214357287a93407b5fb51a031f122b61385d4c2", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}], "hexpm", "b61e4e6b92ffe45e4ee4755a22de6211a67c67987dc02afb35a425a0add1d447"},
|
||||
"ex_doc": {:hex, :ex_doc, "0.29.0", "4a1cb903ce746aceef9c1f9ae8a6c12b742a5461e6959b9d3b24d813ffbea146", [:mix], [{:earmark_parser, "~> 1.4.19", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "f096adb8bbca677d35d278223361c7792d496b3fc0d0224c9d4bc2f651af5db1"},
|
||||
"ex_doc": {:hex, :ex_doc, "0.29.1", "b1c652fa5f92ee9cf15c75271168027f92039b3877094290a75abcaac82a9f77", [:mix], [{:earmark_parser, "~> 1.4.19", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "b7745fa6374a36daf484e2a2012274950e084815b936b1319aeebcf7809574f6"},
|
||||
"expo": {:hex, :expo, "0.3.0", "13127c1d5f653b2927f2616a4c9ace5ae372efd67c7c2693b87fd0fdc30c6feb", [:mix], [], "hexpm", "fb3cd4bf012a77bc1608915497dae2ff684a06f0fa633c7afa90c4d72b881823"},
|
||||
"file_system": {:hex, :file_system, "0.2.10", "fb082005a9cd1711c05b5248710f8826b02d7d1784e7c3451f9c1231d4fc162d", [:mix], [], "hexpm", "41195edbfb562a593726eda3b3e8b103a309b733ad25f3d642ba49696bf715dc"},
|
||||
"floki": {:hex, :floki, "0.34.0", "002d0cc194b48794d74711731db004fafeb328fe676976f160685262d43706a8", [:mix], [], "hexpm", "9c3a9f43f40dde00332a589bd9d389b90c1f518aef500364d00636acc5ebc99c"},
|
||||
"gen_smtp": {:hex, :gen_smtp, "1.2.0", "9cfc75c72a8821588b9b9fe947ae5ab2aed95a052b81237e0928633a13276fd3", [:rebar3], [{:ranch, ">= 1.8.0", [hex: :ranch, repo: "hexpm", optional: false]}], "hexpm", "5ee0375680bca8f20c4d85f58c2894441443a743355430ff33a783fe03296779"},
|
||||
"gettext": {:hex, :gettext, "0.20.0", "75ad71de05f2ef56991dbae224d35c68b098dd0e26918def5bb45591d5c8d429", [:mix], [], "hexpm", "1c03b177435e93a47441d7f681a7040bd2a816ece9e2666d1c9001035121eb3d"},
|
||||
"heex_formatter": {:git, "https://github.com/feliperenan/heex_formatter.git", "dfefc9ae267fb0874c287ceb6c47dda106c59552", []},
|
||||
"html_entities": {:hex, :html_entities, "0.5.2", "9e47e70598da7de2a9ff6af8758399251db6dbb7eebe2b013f2bbd2515895c3c", [:mix], [], "hexpm", "c53ba390403485615623b9531e97696f076ed415e8d8058b1dbaa28181f4fdcc"},
|
||||
"hut": {:hex, :hut, "1.3.0", "71f2f054e657c03f959cf1acc43f436ea87580696528ca2a55c8afb1b06c85e7", [:"erlang.mk", :rebar, :rebar3], [], "hexpm", "7e15d28555d8a1f2b5a3a931ec120af0753e4853a4c66053db354f35bf9ab563"},
|
||||
"gettext": {:hex, :gettext, "0.22.0", "a25d71ec21b1848957d9207b81fd61cb25161688d282d58bdafef74c2270bdc4", [:mix], [{:expo, "~> 0.3.0", [hex: :expo, repo: "hexpm", optional: false]}], "hexpm", "cb0675141576f73720c8e49b4f0fd3f2c69f0cd8c218202724d4aebab8c70ace"},
|
||||
"jason": {:hex, :jason, "1.4.0", "e855647bc964a44e2f67df589ccf49105ae039d4179db7f6271dfd3843dc27e6", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "79a3791085b2a0f743ca04cec0f7be26443738779d09302e01318f97bdb82121"},
|
||||
"makeup": {:hex, :makeup, "1.1.0", "6b67c8bc2882a6b6a445859952a602afc1a41c2e08379ca057c0f525366fc3ca", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "0a45ed501f4a8897f580eabf99a2e5234ea3e75a4373c8a52824f6e873be57a6"},
|
||||
"makeup_elixir": {:hex, :makeup_elixir, "0.16.0", "f8c570a0d33f8039513fbccaf7108c5d750f47d8defd44088371191b76492b0b", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "28b2cbdc13960a46ae9a8858c4bebdec3c9a6d7b4b9e7f4ed1502f8159f338e7"},
|
||||
"makeup_erlang": {:hex, :makeup_erlang, "0.1.1", "3fcb7f09eb9d98dc4d208f49cc955a34218fc41ff6b84df7c75b3e6e533cc65f", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "174d0809e98a4ef0b3309256cbf97101c6ec01c4ab0b23e926a9e17df2077cbb"},
|
||||
"mime": {:hex, :mime, "2.0.3", "3676436d3d1f7b81b5a2d2bd8405f412c677558c81b1c92be58c00562bb59095", [:mix], [], "hexpm", "27a30bf0db44d25eecba73755acf4068cbfe26a4372f9eb3e4ea3a45956bff6b"},
|
||||
"nimble_parsec": {:hex, :nimble_parsec, "1.2.3", "244836e6e3f1200c7f30cb56733fd808744eca61fd182f731eac4af635cc6d0b", [:mix], [], "hexpm", "c8d789e39b9131acf7b99291e93dae60ab48ef14a7ee9d58c6964f59efb570b0"},
|
||||
"oban": {:hex, :oban, "2.13.4", "b4c4f48f4c89cc01036670eefa28aa9c03d09aadd402655475b936983d597006", [:mix], [{:ecto_sql, "~> 3.6", [hex: :ecto_sql, repo: "hexpm", optional: false]}, {:jason, "~> 1.1", [hex: :jason, repo: "hexpm", optional: false]}, {:postgrex, "~> 0.16", [hex: :postgrex, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "a7d26f82b409e2d7928fbb75a17716e06ad3f783ebe9af260e3dd23abed7f124"},
|
||||
"oban": {:hex, :oban, "2.13.6", "a0cb1bce3bd393770512231fb5a3695fa19fd3af10d7575bf73f837aee7abf43", [:mix], [{:ecto_sql, "~> 3.6", [hex: :ecto_sql, repo: "hexpm", optional: false]}, {:jason, "~> 1.1", [hex: :jason, repo: "hexpm", optional: false]}, {:postgrex, "~> 0.16", [hex: :postgrex, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "3c1c5eb16f377b3cbbf2ea14be24d20e3d91285af9d1ac86260b7c2af5464887"},
|
||||
"phoenix": {:hex, :phoenix, "1.6.15", "0a1d96bbc10747fd83525370d691953cdb6f3ccbac61aa01b4acb012474b047d", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:phoenix_pubsub, "~> 2.0", [hex: :phoenix_pubsub, repo: "hexpm", optional: false]}, {:phoenix_view, "~> 1.0 or ~> 2.0", [hex: :phoenix_view, repo: "hexpm", optional: false]}, {:plug, "~> 1.10", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.2", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:plug_crypto, "~> 1.2", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "d70ab9fbf6b394755ea88b644d34d79d8b146e490973151f248cacd122d20672"},
|
||||
"phoenix_ecto": {:hex, :phoenix_ecto, "4.4.0", "0672ed4e4808b3fbed494dded89958e22fb882de47a97634c0b13e7b0b5f7720", [:mix], [{:ecto, "~> 3.3", [hex: :ecto, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 2.14.2 or ~> 3.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}, {:plug, "~> 1.9", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "09864e558ed31ee00bd48fcc1d4fc58ae9678c9e81649075431e69dbabb43cc1"},
|
||||
"phoenix_html": {:hex, :phoenix_html, "3.2.0", "1c1219d4b6cb22ac72f12f73dc5fad6c7563104d083f711c3fcd8551a1f4ae11", [:mix], [{:plug, "~> 1.5", [hex: :plug, repo: "hexpm", optional: true]}], "hexpm", "36ec97ba56d25c0136ef1992c37957e4246b649d620958a1f9fa86165f8bc54f"},
|
||||
"phoenix_live_dashboard": {:hex, :phoenix_live_dashboard, "0.7.1", "b0bf8f3348dec4910907a2ad1453e642f6fe4d444376c1c9b26222d63c73cf97", [:mix], [{:ecto, "~> 3.6.2 or ~> 3.7", [hex: :ecto, repo: "hexpm", optional: true]}, {:ecto_mysql_extras, "~> 0.5", [hex: :ecto_mysql_extras, repo: "hexpm", optional: true]}, {:ecto_psql_extras, "~> 0.7", [hex: :ecto_psql_extras, repo: "hexpm", optional: true]}, {:mime, "~> 1.6 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:phoenix_live_view, "~> 0.18.0", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}, {:telemetry_metrics, "~> 0.6 or ~> 1.0", [hex: :telemetry_metrics, repo: "hexpm", optional: false]}], "hexpm", "b6c5d744bf4b40692b1b361d3608bdfd05aeab83e17c7bc217d730f007f31abf"},
|
||||
"phoenix_live_reload": {:hex, :phoenix_live_reload, "1.4.0", "4fe222c0be55fdc3f9c711e24955fc42a7cd9b7a2f5f406f2580a567c335a573", [:mix], [{:file_system, "~> 0.2.1 or ~> 0.3", [hex: :file_system, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.4", [hex: :phoenix, repo: "hexpm", optional: false]}], "hexpm", "bebf0fc2d2113b61cb5968f585367234b7b4c21d963d691de7b4b2dc6cdaae6f"},
|
||||
"phoenix_live_view": {:hex, :phoenix_live_view, "0.18.2", "635cf07de947235deb030cd6b776c71a3b790ab04cebf526aa8c879fe17c7784", [:mix], [{:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:phoenix, "~> 1.6 or ~> 1.7", [hex: :phoenix, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 3.1", [hex: :phoenix_html, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.2 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "da287a77327e996cc166e4c440c3ad5ab33ccdb151b91c793209b39ebbce5b75"},
|
||||
"phoenix_live_reload": {:hex, :phoenix_live_reload, "1.4.1", "2aff698f5e47369decde4357ba91fc9c37c6487a512b41732818f2204a8ef1d3", [:mix], [{:file_system, "~> 0.2.1 or ~> 0.3", [hex: :file_system, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.4", [hex: :phoenix, repo: "hexpm", optional: false]}], "hexpm", "9bffb834e7ddf08467fe54ae58b5785507aaba6255568ae22b4d46e2bb3615ab"},
|
||||
"phoenix_live_view": {:hex, :phoenix_live_view, "0.18.2", "635cf07de947235deb030cd6b776c71a3b790ab04cebf526aa8c879fe17c7784", [:mix], [{:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:phoenix, "~> 1.6", [hex: :phoenix, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 3.1", [hex: :phoenix_html, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.2 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "da287a77327e996cc166e4c440c3ad5ab33ccdb151b91c793209b39ebbce5b75"},
|
||||
"phoenix_pubsub": {:hex, :phoenix_pubsub, "2.1.1", "ba04e489ef03763bf28a17eb2eaddc2c20c6d217e2150a61e3298b0f4c2012b5", [:mix], [], "hexpm", "81367c6d1eea5878ad726be80808eb5a787a23dee699f96e72b1109c57cdd8d9"},
|
||||
"phoenix_swoosh": {:hex, :phoenix_swoosh, "1.1.0", "f8e4780705c9f254cc853f7a40e25f7198ba4d91102bcfad2226669b69766b35", [:mix], [{:finch, "~> 0.8", [hex: :finch, repo: "hexpm", optional: true]}, {:hackney, "~> 1.10", [hex: :hackney, repo: "hexpm", optional: true]}, {:phoenix, "~> 1.6", [hex: :phoenix, repo: "hexpm", optional: true]}, {:phoenix_html, "~> 3.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}, {:phoenix_view, "~> 1.0 or ~> 2.0", [hex: :phoenix_view, repo: "hexpm", optional: false]}, {:swoosh, "~> 1.5", [hex: :swoosh, repo: "hexpm", optional: false]}], "hexpm", "aa82f10afd9a4b6080fdf3274dbb9432b25b210d42b4b6b55308f6e59cd87c3d"},
|
||||
"phoenix_view": {:hex, :phoenix_view, "1.1.2", "1b82764a065fb41051637872c7bd07ed2fdb6f5c3bd89684d4dca6e10115c95a", [:mix], [{:phoenix_html, "~> 2.14.2 or ~> 3.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}], "hexpm", "7ae90ad27b09091266f6adbb61e1d2516a7c3d7062c6789d46a7554ec40f3a56"},
|
||||
@ -47,10 +44,9 @@
|
||||
"plug_crypto": {:hex, :plug_crypto, "1.2.3", "8f77d13aeb32bfd9e654cb68f0af517b371fb34c56c9f2b58fe3df1235c1251a", [:mix], [], "hexpm", "b5672099c6ad5c202c45f5a403f21a3411247f164e4a8fab056e5cd8a290f4a2"},
|
||||
"postgrex": {:hex, :postgrex, "0.16.5", "fcc4035cc90e23933c5d69a9cd686e329469446ef7abba2cf70f08e2c4b69810", [:mix], [{:connection, "~> 1.1", [hex: :connection, repo: "hexpm", optional: false]}, {:db_connection, "~> 2.1", [hex: :db_connection, repo: "hexpm", optional: false]}, {:decimal, "~> 1.5 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:table, "~> 0.1.0", [hex: :table, repo: "hexpm", optional: true]}], "hexpm", "edead639dc6e882618c01d8fc891214c481ab9a3788dfe38dd5e37fd1d5fb2e8"},
|
||||
"ranch": {:hex, :ranch, "1.8.0", "8c7a100a139fd57f17327b6413e4167ac559fbc04ca7448e9be9057311597a1d", [:make, :rebar3], [], "hexpm", "49fbcfd3682fab1f5d109351b61257676da1a2fdbe295904176d5e521a2ddfe5"},
|
||||
"set_locale": {:hex, :set_locale, "0.2.9", "33350ba3c66f1c560dffc43019eea4b573f91c5cbe3e461fe0e5395d2d6ba2c3", [:mix], [{:gettext, "~>0.14", [hex: :gettext, repo: "hexpm", optional: false]}, {:phoenix, ">1.3.0", [hex: :phoenix, repo: "hexpm", optional: false]}], "hexpm", "e46348b64b7c5d725d0c90a6524942a19b65e6ce27372ddf9a727dfb64ba236c"},
|
||||
"swoosh": {:hex, :swoosh, "1.8.2", "af9a22ab2c0d20b266f61acca737fa11a121902de9466a39e91bacdce012101c", [:mix], [{:cowboy, "~> 1.1 or ~> 2.4", [hex: :cowboy, repo: "hexpm", optional: true]}, {:ex_aws, "~> 2.1", [hex: :ex_aws, repo: "hexpm", optional: true]}, {:finch, "~> 0.6", [hex: :finch, repo: "hexpm", optional: true]}, {:gen_smtp, "~> 0.13 or ~> 1.0", [hex: :gen_smtp, repo: "hexpm", optional: true]}, {:hackney, "~> 1.9", [hex: :hackney, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:mail, "~> 0.2", [hex: :mail, repo: "hexpm", optional: true]}, {:mime, "~> 1.1 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_cowboy, ">= 1.0.0", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.2 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "d058ba750eafadb6c09a84a352c14c5d1eeeda6e84945fcc95785b7f3067b7db"},
|
||||
"swoosh": {:hex, :swoosh, "1.9.1", "0a5d7bf9954eb41d7e55525bc0940379982b090abbaef67cd8e1fd2ed7f8ca1a", [:mix], [{:cowboy, "~> 1.1 or ~> 2.4", [hex: :cowboy, repo: "hexpm", optional: true]}, {:ex_aws, "~> 2.1", [hex: :ex_aws, repo: "hexpm", optional: true]}, {:finch, "~> 0.6", [hex: :finch, repo: "hexpm", optional: true]}, {:gen_smtp, "~> 0.13 or ~> 1.0", [hex: :gen_smtp, repo: "hexpm", optional: true]}, {:hackney, "~> 1.9", [hex: :hackney, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:mail, "~> 0.2", [hex: :mail, repo: "hexpm", optional: true]}, {:mime, "~> 1.1 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_cowboy, ">= 1.0.0", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.2 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "76dffff3ffcab80f249d5937a592eaef7cc49ac6f4cdd27e622868326ed6371e"},
|
||||
"table_rex": {:hex, :table_rex, "3.1.1", "0c67164d1714b5e806d5067c1e96ff098ba7ae79413cc075973e17c38a587caa", [:mix], [], "hexpm", "678a23aba4d670419c23c17790f9dcd635a4a89022040df7d5d772cb21012490"},
|
||||
"telemetry": {:hex, :telemetry, "1.1.0", "a589817034a27eab11144ad24d5c0f9fab1f58173274b1e9bae7074af9cbee51", [:rebar3], [], "hexpm", "b727b2a1f75614774cff2d7565b64d0dfa5bd52ba517f16543e6fc7efcc0df48"},
|
||||
"telemetry": {:hex, :telemetry, "1.2.1", "68fdfe8d8f05a8428483a97d7aab2f268aaff24b49e0f599faa091f1d4e7f61c", [:rebar3], [], "hexpm", "dad9ce9d8effc621708f99eac538ef1cbe05d6a874dd741de2e689c47feafed5"},
|
||||
"telemetry_metrics": {:hex, :telemetry_metrics, "0.6.1", "315d9163a1d4660aedc3fee73f33f1d355dcc76c5c3ab3d59e76e3edf80eef1f", [:mix], [{:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7be9e0871c41732c233be71e4be11b96e56177bf15dde64a8ac9ce72ac9834c6"},
|
||||
"telemetry_poller": {:hex, :telemetry_poller, "1.0.0", "db91bb424e07f2bb6e73926fcafbfcbcb295f0193e0a00e825e589a0a47e8453", [:rebar3], [{:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "b3a24eafd66c3f42da30fc3ca7dda1e9d546c12250a2d60d7b81d264fbec4f6e"},
|
||||
}
|
||||
|
@ -10,8 +10,8 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:44
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:50
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:54
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:62
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add Ammo"
|
||||
@ -49,7 +49,7 @@ msgstr ""
|
||||
msgid "Create Invite"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:157
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:162
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Delete User"
|
||||
msgstr ""
|
||||
@ -121,7 +121,7 @@ msgid "Reset password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:53
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:81
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:31
|
||||
@ -136,7 +136,7 @@ msgstr ""
|
||||
msgid "Send instructions to reset password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:72
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Why not add one?"
|
||||
msgstr ""
|
||||
@ -156,9 +156,9 @@ msgstr ""
|
||||
msgid "Why not get some ready to shoot?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:80
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:100
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:38
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Record shots"
|
||||
msgstr ""
|
||||
@ -188,7 +188,7 @@ msgstr ""
|
||||
msgid "add a container first"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:66
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Create"
|
||||
msgstr ""
|
||||
@ -198,7 +198,7 @@ msgstr ""
|
||||
msgid "Change Language"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:139
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Change language"
|
||||
msgstr ""
|
||||
@ -234,18 +234,18 @@ msgid "Set Unlimited"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:32
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stage for range"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:30
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage from range"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:153
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Export Data as JSON"
|
||||
msgstr ""
|
||||
|
@ -23,8 +23,8 @@ msgstr ""
|
||||
## Run "mix gettext.extract" to bring this file up to
|
||||
## date. Leave "msgstr"s empty as changing them here has no
|
||||
## effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:44
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:50
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:54
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:62
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add Ammo"
|
||||
@ -62,7 +62,7 @@ msgstr "Passwort ändern"
|
||||
msgid "Create Invite"
|
||||
msgstr "Einladung erstellen"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:157
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:162
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Delete User"
|
||||
msgstr "Benutzer löschen"
|
||||
@ -134,7 +134,7 @@ msgid "Reset password"
|
||||
msgstr "Passwort zurücksetzen"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:53
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:81
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:31
|
||||
@ -149,7 +149,7 @@ msgstr "Speichern"
|
||||
msgid "Send instructions to reset password"
|
||||
msgstr "Anleitung zum Passwort zurücksetzen zusenden"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:72
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Why not add one?"
|
||||
msgstr "Warum fügen Sie keine hinzu?"
|
||||
@ -169,9 +169,9 @@ msgstr "Munition markieren"
|
||||
msgid "Why not get some ready to shoot?"
|
||||
msgstr "Warum nicht einige für den Schießstand auswählen?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:80
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:100
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:38
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Record shots"
|
||||
msgstr "Schüsse dokumentieren"
|
||||
@ -201,7 +201,7 @@ msgstr "In die Zwischenablage kopieren"
|
||||
msgid "add a container first"
|
||||
msgstr "Zuerst einen Behälter hinzufügen"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:66
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Create"
|
||||
msgstr "Erstellen"
|
||||
@ -211,7 +211,7 @@ msgstr "Erstellen"
|
||||
msgid "Change Language"
|
||||
msgstr "Sprache wechseln"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:139
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Change language"
|
||||
msgstr "Sprache wechseln"
|
||||
@ -247,18 +247,18 @@ msgid "Set Unlimited"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:32
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stage for range"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:30
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage from range"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:153
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Export Data as JSON"
|
||||
msgstr ""
|
||||
|
@ -23,14 +23,14 @@ msgstr ""
|
||||
## Run "mix gettext.extract" to bring this file up to
|
||||
## date. Leave "msgstr"s empty as changing them here has no
|
||||
## effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery_web/live/home_live.ex:64
|
||||
#: lib/cannery_web/live/home_live.ex:47
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} lets you easily keep an eye on your ammo levels before and after range day"
|
||||
msgstr ""
|
||||
"Mit %{name} können Sie ihren Munitionsbestand vor und nach dem Schießen "
|
||||
"leicht im Auge behalten"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:86
|
||||
#: lib/cannery_web/live/home_live.ex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Access from any internet-capable device"
|
||||
msgstr "Zugriff von jedem Internet-fähigen Gerät"
|
||||
@ -40,19 +40,21 @@ msgstr "Zugriff von jedem Internet-fähigen Gerät"
|
||||
msgid "Admins"
|
||||
msgstr "Admins"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:100
|
||||
#: lib/cannery_web/live/home_live.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Admins:"
|
||||
msgstr "Admins:"
|
||||
|
||||
#: lib/cannery_web/components/shot_group_table_component.ex:41
|
||||
#: lib/cannery_web/components/topbar.ex:73
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:70
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:79
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:3
|
||||
#: lib/cannery_web/live/range_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo"
|
||||
msgstr "Munition"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:96
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:89
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo type"
|
||||
@ -63,8 +65,8 @@ msgstr "Munitionsarten"
|
||||
msgid "Background color"
|
||||
msgstr "Hintergrundfarbe"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:140
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:82
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Blank"
|
||||
msgstr "Knallpatrone"
|
||||
@ -74,58 +76,58 @@ msgstr "Knallpatrone"
|
||||
msgid "Brass"
|
||||
msgstr "Messing"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet core"
|
||||
msgstr "Projektilkern"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:46
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:37
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet type"
|
||||
msgstr "Patronenart"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:49
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Caliber"
|
||||
msgstr "Kaliber"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Cartridge"
|
||||
msgstr "Patrone"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:50
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Case material"
|
||||
msgstr "Gehäusematerial"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:72
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:65
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:67
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Container"
|
||||
msgstr "Behälter"
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:57
|
||||
#: lib/cannery_web/live/container_live/index.ex:44
|
||||
#: lib/cannery_web/live/container_live/index.ex:53
|
||||
#: lib/cannery_web/live/container_live/index.ex:49
|
||||
#: lib/cannery_web/live/container_live/index.ex:58
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Containers"
|
||||
msgstr "Behälter"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:144
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Corrosive"
|
||||
msgstr "Korrosiv"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:83
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:76
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count"
|
||||
@ -137,9 +139,9 @@ msgstr "Anzahl"
|
||||
msgid "Count:"
|
||||
msgstr "Anzahl:"
|
||||
|
||||
#: lib/cannery_web/components/container_table_component.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:24
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:27
|
||||
#: lib/cannery_web/live/container_live/index.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Description"
|
||||
msgstr "Beschreibung"
|
||||
@ -150,27 +152,17 @@ msgstr "Beschreibung"
|
||||
msgid "Description:"
|
||||
msgstr "Beschreibung:"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:61
|
||||
#: lib/cannery_web/live/home_live.ex:44
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Easy to Use:"
|
||||
msgstr "Einfache Anwendung:"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Ammo group"
|
||||
msgstr "Munitionsgruppe bearbeiten"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:23
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Ammo type"
|
||||
msgstr "Munitionstyp bearbeiten"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.ex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Invite"
|
||||
msgstr "Einladung bearbeiten"
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.ex:21
|
||||
#: lib/cannery_web/live/tag_live/index.ex:28
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Tag"
|
||||
msgstr "Tag bearbeiten"
|
||||
@ -185,29 +177,29 @@ msgstr "Beispiel Munitionstyp Abkürzungen"
|
||||
msgid "FMJ"
|
||||
msgstr "VM"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:59
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:103
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:76
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Grains"
|
||||
msgstr "Körner"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:64
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:136
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Incendiary"
|
||||
msgstr "Brandmunition"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:95
|
||||
#: lib/cannery_web/live/home_live.ex:78
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Instance Information"
|
||||
msgstr "Instanzinformationen"
|
||||
|
||||
#: lib/cannery_web/components/invite_card.ex:32
|
||||
#: lib/cannery_web/components/invite_card.ex:35
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invite Disabled"
|
||||
msgstr "Einladung deaktiviert"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:128
|
||||
#: lib/cannery_web/live/home_live.ex:111
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invite Only"
|
||||
msgstr "Nur mit Einladung"
|
||||
@ -224,9 +216,9 @@ msgstr "Einladungen"
|
||||
msgid "Keep me logged in for 60 days"
|
||||
msgstr "Für 60 Tage eingeloggt bleiben"
|
||||
|
||||
#: lib/cannery_web/components/container_table_component.ex:48
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:69
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:42
|
||||
#: lib/cannery_web/live/container_live/index.ex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Location"
|
||||
msgstr "Standort"
|
||||
@ -242,8 +234,8 @@ msgstr "Standort:"
|
||||
msgid "Magazine, Clip, Ammo Box, etc"
|
||||
msgstr "Magazin, Ladestreifen, Munitionskiste usw."
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:67
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:84
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Manufacturer"
|
||||
msgstr "Hersteller"
|
||||
@ -258,24 +250,24 @@ msgstr "Metallene Munitionskiste mit Anime-Girl-Sticker"
|
||||
msgid "My cool ammo can"
|
||||
msgstr "Meine coole Munitionskiste"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:45
|
||||
#: lib/cannery_web/components/container_table_component.ex:46
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:62
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/container_live/index.ex:121
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Name"
|
||||
msgstr "Name"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:29
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:35
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:36
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:44
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Ammo type"
|
||||
msgstr "Neuer Munitionstyp"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:31
|
||||
#: lib/cannery_web/live/container_live/index.ex:38
|
||||
#: lib/cannery_web/live/container_live/index.ex:36
|
||||
#: lib/cannery_web/live/container_live/index.ex:43
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Container"
|
||||
msgstr "Neuer Behälter"
|
||||
@ -285,27 +277,24 @@ msgstr "Neuer Behälter"
|
||||
msgid "New Invite"
|
||||
msgstr "Neue Einladung"
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.ex:27
|
||||
#: lib/cannery_web/live/tag_live/index.ex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Tag"
|
||||
msgstr "Neuer Tag"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:8
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No Ammo"
|
||||
msgstr "Keine Munition"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No Ammo Types"
|
||||
msgstr "Keine Munitionsarten"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:166
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No ammo for this type"
|
||||
msgstr "Keine Munition dieser Art"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:8
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:47
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No containers"
|
||||
msgstr "Kein Behälter"
|
||||
@ -317,16 +306,17 @@ msgstr "Keine Einladung"
|
||||
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:31
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:43
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No tags"
|
||||
msgstr "Keine Tags"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:37
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:88
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:88
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:81
|
||||
#: lib/cannery_web/components/shot_group_table_component.ex:43
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:49
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:93
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:29
|
||||
#: lib/cannery_web/live/range_live/index.ex:82
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Notes"
|
||||
msgstr "Bemerkungen"
|
||||
@ -342,13 +332,13 @@ msgstr "Bemerkungen:"
|
||||
msgid "On the bookshelf"
|
||||
msgstr "Auf dem Bücherregal"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:60
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:111
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Pressure"
|
||||
msgstr "Druck"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:85
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:78
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Price paid"
|
||||
@ -359,23 +349,23 @@ msgstr "Kaufpreis"
|
||||
msgid "Price paid:"
|
||||
msgstr "Kaufpreis:"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:118
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:78
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Primer type"
|
||||
msgstr "Zündertyp"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:127
|
||||
#: lib/cannery_web/live/home_live.ex:110
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Public Signups"
|
||||
msgstr "Öffentliche Registrierung"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:73
|
||||
#: lib/cannery_web/live/home_live.ex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Secure:"
|
||||
msgstr "Sicher:"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:76
|
||||
#: lib/cannery_web/live/home_live.ex:59
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Self-host your own instance, or use an instance from someone you trust."
|
||||
msgstr ""
|
||||
@ -388,7 +378,7 @@ msgstr ""
|
||||
msgid "Settings"
|
||||
msgstr "Einstellungen"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:83
|
||||
#: lib/cannery_web/live/home_live.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Simple:"
|
||||
msgstr "Einfach:"
|
||||
@ -403,9 +393,10 @@ msgstr "Stahl"
|
||||
msgid "Stored in"
|
||||
msgstr "Gelagert in"
|
||||
|
||||
#: lib/cannery_web/components/container_table_component.ex:52
|
||||
#: lib/cannery_web/components/topbar.ex:49
|
||||
#: lib/cannery_web/live/container_live/index.ex:127
|
||||
#: lib/cannery_web/live/tag_live/index.ex:32
|
||||
#: lib/cannery_web/live/tag_live/index.ex:44
|
||||
#: lib/cannery_web/live/tag_live/index.ex:54
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tags"
|
||||
@ -421,20 +412,20 @@ msgstr "Tags können zur besseren Ordnung einem Behälter hinzugefügt werden"
|
||||
msgid "Text color"
|
||||
msgstr "Textfarbe"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:52
|
||||
#: lib/cannery_web/live/home_live.ex:35
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "The self-hosted firearm tracker website"
|
||||
msgstr "Die selbst-gehostete Website zur Verwaltung von Schusswaffen"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tracer"
|
||||
msgstr "Leuchtspur"
|
||||
|
||||
#: lib/cannery_web/components/container_table_component.ex:49
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:68
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:35
|
||||
#: lib/cannery_web/live/container_live/index.ex:124
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Type"
|
||||
msgstr "Art"
|
||||
@ -450,7 +441,7 @@ msgstr "Art:"
|
||||
msgid "Users"
|
||||
msgstr "Benutzer"
|
||||
|
||||
#: lib/cannery_web/components/invite_card.ex:27
|
||||
#: lib/cannery_web/components/invite_card.ex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Uses Left:"
|
||||
msgstr "Verbleibende Nutzung:"
|
||||
@ -460,22 +451,22 @@ msgstr "Verbleibende Nutzung:"
|
||||
msgid "Uses left"
|
||||
msgstr "Verbleibende Nutzung"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:48
|
||||
#: lib/cannery_web/live/home_live.ex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Welcome to %{name}"
|
||||
msgstr "Willkommen %{name}"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:77
|
||||
#: lib/cannery_web/live/home_live.ex:60
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Your data stays with you, period"
|
||||
msgstr "Ihre Daten bleiben bei Ihnen, Punkt"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:64
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:72
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No tags for this container"
|
||||
msgstr "Keine Tags für diesen Behälter"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:79
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:72
|
||||
#: lib/cannery_web/components/topbar.ex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Range"
|
||||
@ -486,8 +477,10 @@ msgstr "Schießplatz"
|
||||
msgid "Range day"
|
||||
msgstr "Range Day"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:89
|
||||
#: lib/cannery_web/live/range_live/index.ex:83
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:45
|
||||
#: lib/cannery_web/components/shot_group_table_component.ex:44
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:94
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Date"
|
||||
msgstr "Datum"
|
||||
@ -503,34 +496,24 @@ msgid "No ammo staged"
|
||||
msgstr "Keine Munition selektiert"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:3
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:26
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Record shots"
|
||||
msgstr "Schüsse dokumentieren"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo groups"
|
||||
msgstr "Munitionsgruppen"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:45
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Date (UTC)"
|
||||
msgstr "Zeit (UTC)"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:37
|
||||
#: lib/cannery_web/live/range_live/index.ex:32
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:42
|
||||
#: lib/cannery_web/live/range_live/index.ex:41
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Shot Records"
|
||||
msgstr "Schießkladde editieren"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:38
|
||||
#: lib/cannery_web/live/range_live/index.ex:49
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Shot Records"
|
||||
msgstr "Neue Schießkladde"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:50
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:92
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No shots recorded"
|
||||
msgstr "Keine Schüsse dokumentiert"
|
||||
@ -541,24 +524,21 @@ msgstr "Keine Schüsse dokumentiert"
|
||||
msgid "Rounds left"
|
||||
msgstr "Patronen verbleibend"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:87
|
||||
#: lib/cannery_web/live/range_live/index.ex:81
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:62
|
||||
#: lib/cannery_web/components/shot_group_table_component.ex:42
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:92
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds shot"
|
||||
msgstr "Patronen abgefeuert"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:44
|
||||
#: lib/cannery_web/live/range_live/index.ex:57
|
||||
#: lib/cannery_web/live/range_live/index.ex:67
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shot Records"
|
||||
msgstr "Schießkladde"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:32
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move Ammo group"
|
||||
msgstr "Munitionsgruppe verschieben"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:97
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:38
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:117
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move ammo"
|
||||
msgstr "Munition verschieben"
|
||||
@ -568,18 +548,18 @@ msgstr "Munition verschieben"
|
||||
msgid "No other containers"
|
||||
msgstr "Kein weiterer Behälter"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:53
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:55
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shot log"
|
||||
msgstr "Schießkladde"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:71
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:78
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:159
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:227
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:153
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:225
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:180
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:37
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:179
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:136
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "$%{amount}"
|
||||
@ -590,32 +570,32 @@ msgstr "$%{amount}"
|
||||
msgid "Bimetal"
|
||||
msgstr "Bimetall"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:72
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Jacket type"
|
||||
msgstr "Patronenhülse"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:79
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Muzzle velocity"
|
||||
msgstr "Mündungsgeschwindigkeit"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:55
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:93
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:72
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder grains per charge"
|
||||
msgstr "Pulverkörner pro Ladung"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:53
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:89
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder type"
|
||||
msgstr "Pulverart"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:68
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:152
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:85
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "UPC"
|
||||
msgstr "UPC"
|
||||
@ -636,18 +616,18 @@ msgstr "Derzeitiges Passwort"
|
||||
msgid "New password"
|
||||
msgstr "Neues Passwort"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:93
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stage"
|
||||
msgstr "Markiert"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:93
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage"
|
||||
msgstr "Demarkiert"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:62
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:125
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Firing type"
|
||||
msgstr "Patronenhülsenform"
|
||||
@ -662,33 +642,33 @@ msgstr "Neu verbinden..."
|
||||
msgid "Loading..."
|
||||
msgstr "Lädt..."
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:27
|
||||
#: lib/cannery_web/live/container_live/show.ex:124
|
||||
#: lib/cannery_web/live/container_live/index.ex:32
|
||||
#: lib/cannery_web/live/container_live/show.ex:113
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name}"
|
||||
msgstr "%{name} bearbeiten"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:65
|
||||
#: lib/cannery_web/live/container_live/show.ex:125
|
||||
#: lib/cannery_web/live/container_live/index.ex:69
|
||||
#: lib/cannery_web/live/container_live/show.ex:114
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name} tags"
|
||||
msgstr "Editiere %{name} Tags"
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:67
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:32
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds:"
|
||||
msgstr "Patronen:"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:224
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:178
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:222
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:179
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:142
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No cost information"
|
||||
msgstr "Keine Preisinformationen"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:87
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "% left"
|
||||
msgstr "% verbleibend"
|
||||
@ -733,7 +713,7 @@ msgstr "Passwort vergessen?"
|
||||
msgid "Log in"
|
||||
msgstr "Einloggen"
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:35
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:34
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Register"
|
||||
msgstr "Registrieren"
|
||||
@ -743,29 +723,17 @@ msgstr "Registrieren"
|
||||
msgid "Reset your password"
|
||||
msgstr "Passwort zurücksetzen"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:36
|
||||
#: lib/cannery_web/live/range_live/index.ex:26
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:41
|
||||
#: lib/cannery_web/live/range_live/index.ex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Record Shots"
|
||||
msgstr "Schüsse dokumentieren"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Copies"
|
||||
msgstr "Kopien"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo types"
|
||||
msgstr "Munitionsart"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on"
|
||||
msgstr "Hinzugefügt am"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:30
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on:"
|
||||
@ -777,19 +745,19 @@ msgid "User registered on"
|
||||
msgstr "Benutzer registriert am"
|
||||
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:130
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "English"
|
||||
msgstr "Englisch"
|
||||
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:132
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "French"
|
||||
msgstr "Französisch"
|
||||
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:131
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "German"
|
||||
msgstr "Deutsch"
|
||||
@ -799,48 +767,50 @@ msgstr "Deutsch"
|
||||
msgid "Language"
|
||||
msgstr "Sprache"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:151
|
||||
#: lib/cannery_web/live/home_live.ex:136
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Get involved!"
|
||||
msgstr "Mach mit!"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:172
|
||||
#: lib/cannery_web/live/home_live.ex:157
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Help translate"
|
||||
msgstr "Hilf beim Übersetzen"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:183
|
||||
#: lib/cannery_web/live/home_live.ex:168
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Report bugs or request features"
|
||||
msgstr "Sende Bugs oder Erweiterungsvorschläge"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:161
|
||||
#: lib/cannery_web/live/home_live.ex:146
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "View the source code"
|
||||
msgstr "Quellcode ansehen"
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:62
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Catalog"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:40
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:45
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Edit Ammo"
|
||||
msgstr "Munitionstyp bearbeiten"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:38
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:43
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Move Ammo"
|
||||
msgstr "Munition verschieben"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:111
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:119
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "No ammo in this container"
|
||||
msgstr "Keine Munitionsgruppe in diesem Behälter"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:39
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:44
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Show Ammo"
|
||||
msgstr "Zeige Munitionsarten"
|
||||
@ -852,18 +822,18 @@ msgstr "Diese Munitionsgruppe ist nicht in einem Behälter"
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:95
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:27
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:25
|
||||
#: lib/cannery_web/live/home_live.ex:42
|
||||
#: lib/cannery_web/live/home_live.ex:25
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Cannery logo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:44
|
||||
#: lib/cannery_web/live/home_live.ex:27
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "isn't he cute >:3"
|
||||
msgstr ""
|
||||
@ -878,55 +848,45 @@ msgstr ""
|
||||
msgid "Container:"
|
||||
msgstr "Behälter"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:39
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:152
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:97
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:105
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:61
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:195
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:193
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:19
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{percentage}%"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:114
|
||||
#: lib/cannery_web/live/range_live/index.ex:136
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds shot: %{count}"
|
||||
msgstr "Patronen abgefeuert"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:117
|
||||
#: lib/cannery_web/live/container_live/index.ex:125
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:100
|
||||
#: lib/cannery_web/components/container_table_component.ex:50
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Packs"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:97
|
||||
#: lib/cannery_web/live/container_live/index.ex:126
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:80
|
||||
#: lib/cannery_web/components/container_table_component.ex:51
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds"
|
||||
msgstr "Patronen:"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:158
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:103
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:39
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:111
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "View as table"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:127
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:110
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total ever packs"
|
||||
msgstr ""
|
||||
@ -936,7 +896,7 @@ msgstr ""
|
||||
msgid "Total ever packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:108
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:91
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total ever rounds"
|
||||
msgstr "Summe aller Patronen"
|
||||
@ -946,7 +906,7 @@ msgstr "Summe aller Patronen"
|
||||
msgid "Total ever rounds:"
|
||||
msgstr "Summe abgegebener Schüsse:"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:122
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:105
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used packs"
|
||||
msgstr ""
|
||||
@ -956,7 +916,7 @@ msgstr ""
|
||||
msgid "Used packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:103
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:86
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Used rounds"
|
||||
msgstr ""
|
||||
@ -971,7 +931,7 @@ msgstr ""
|
||||
msgid "Used up!"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:66
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds shot chart"
|
||||
msgstr "Patronen abgefeuert"
|
||||
@ -1071,24 +1031,25 @@ msgstr "Leuchtspur"
|
||||
msgid "UPC:"
|
||||
msgstr "UPC"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:137
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:120
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:132
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Average CPR"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:117
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:28
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:120
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Edit %{ammo_type_name}"
|
||||
msgstr "%{name} bearbeiten"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:39
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:233
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:231
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Empty"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:86
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "CPR"
|
||||
msgstr ""
|
||||
@ -1098,7 +1059,7 @@ msgstr ""
|
||||
msgid "CPR:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:84
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:77
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Original Count"
|
||||
msgstr "Ursprüngliche Anzahl:"
|
||||
@ -1107,3 +1068,86 @@ msgstr "Ursprüngliche Anzahl:"
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Original Count:"
|
||||
msgstr "Ursprüngliche Anzahl:"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:15
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Home"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:28
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:37
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total rounds:"
|
||||
msgstr "Summe abgegebener Schüsse:"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:58
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Last used on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Last used on:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:178
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Never used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Purchased on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Purchased on:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:46
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Edit ammo"
|
||||
msgstr "Munitionstyp bearbeiten"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:8
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:46
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "No Ammo types"
|
||||
msgstr "Keine Munitionsarten"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Search catalog"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:57
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Search ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Search containers"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:36
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Search tags"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:85
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Search shot records"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:133
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Spanish"
|
||||
msgstr ""
|
||||
|
@ -23,18 +23,18 @@ msgstr ""
|
||||
## Run "mix gettext.extract" to bring this file up to
|
||||
## date. Leave "msgstr"s empty as changing them here has no
|
||||
## effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery/containers.ex:140
|
||||
#: lib/cannery/containers.ex:179
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Container must be empty before deleting"
|
||||
msgstr "Behälter muss vor dem Löschen leer sein"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:88
|
||||
#: lib/cannery_web/live/container_live/show.ex:75
|
||||
#: lib/cannery_web/live/container_live/index.ex:92
|
||||
#: lib/cannery_web/live/container_live/show.ex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not delete %{name}: %{error}"
|
||||
msgstr "Konnte %{name} nicht löschen: %{error}"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:76
|
||||
#: lib/cannery_web/live/container_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not find that container"
|
||||
msgstr "Konnte Behälter nicht finden"
|
||||
@ -83,14 +83,14 @@ msgstr "Oops, etwas ist schiefgegangen. Bitte beachten Sie den Fehler unten."
|
||||
msgid "Reset password link is invalid or it has expired."
|
||||
msgstr "Link zum Passwort zurücksetzen ist ungültig oder abgelaufen."
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:25
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:56
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:24
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:55
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Sorry, public registration is disabled"
|
||||
msgstr "Entschuldigung, aber öffentliche Registrierung ist deaktiviert"
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:15
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:46
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:14
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:45
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Sorry, this invite was not found or expired"
|
||||
msgstr ""
|
||||
@ -121,17 +121,17 @@ msgstr "Sie sind nicht berechtigt, diese Seite aufzurufen"
|
||||
msgid "You are not authorized to view this page."
|
||||
msgstr "Sie sind nicht berechtigt, diese Seite aufzurufen."
|
||||
|
||||
#: lib/cannery/accounts/user.ex:138
|
||||
#: lib/cannery/accounts/user.ex:137
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "did not change"
|
||||
msgstr "hat sich nicht geändert"
|
||||
|
||||
#: lib/cannery/accounts/user.ex:159
|
||||
#: lib/cannery/accounts/user.ex:158
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "does not match password"
|
||||
msgstr "Passwort stimmt nicht überein"
|
||||
|
||||
#: lib/cannery/accounts/user.ex:196
|
||||
#: lib/cannery/accounts/user.ex:195
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "is not valid"
|
||||
msgstr "ist nicht gültig"
|
||||
@ -141,7 +141,7 @@ msgstr "ist nicht gültig"
|
||||
msgid "must have the @ sign and no spaces"
|
||||
msgstr "Muss ein @ Zeichen und keine Leerzeichen haben"
|
||||
|
||||
#: lib/cannery/tags.ex:40
|
||||
#: lib/cannery/tags.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tag not found"
|
||||
msgstr "Tag nicht gefunden"
|
||||
@ -151,13 +151,13 @@ msgstr "Tag nicht gefunden"
|
||||
msgid "Tag could not be added"
|
||||
msgstr "Tag konnte nicht hinzugefügt werden"
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:123
|
||||
#: lib/cannery/activity_log/shot_group.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be at least 1"
|
||||
msgstr "Anzahl muss mindestens 1 sein"
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:82
|
||||
#: lib/cannery/activity_log/shot_group.ex:119
|
||||
#: lib/cannery/activity_log/shot_group.ex:118
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be less than %{count}"
|
||||
msgstr "Anzahl muss weniger als %{count} betragen"
|
||||
@ -187,22 +187,22 @@ msgstr ""
|
||||
"Ungültige Nummer an Kopien. Muss zwischen 1 and %{max} liegen. War "
|
||||
"%{multiplier}"
|
||||
|
||||
#: lib/cannery/ammo.ex:609
|
||||
#: lib/cannery/ammo.ex:686
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid multiplier"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/ammo/ammo_group.ex:94
|
||||
#: lib/cannery/ammo/ammo_group.ex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select an ammo type and container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select a valid user and ammo group"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:67
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Your browser does not support the canvas element."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:77
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Please select a valid user and ammo pack"
|
||||
msgstr ""
|
||||
|
@ -31,11 +31,11 @@ msgstr ""
|
||||
msgid "%{name} created successfully"
|
||||
msgstr "%{name} erfolgreich erstellt"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:56
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:55
|
||||
#: lib/cannery_web/live/invite_live/index.ex:53
|
||||
#: lib/cannery_web/live/invite_live/index.ex:133
|
||||
#: lib/cannery_web/live/tag_live/index.ex:38
|
||||
#: lib/cannery_web/live/tag_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} deleted succesfully"
|
||||
msgstr "%{name} erfolgreich gelöscht"
|
||||
@ -50,8 +50,8 @@ msgstr "%{name} erfolgreich deaktiviert"
|
||||
msgid "%{name} enabled succesfully"
|
||||
msgstr "%{name} erfolgreich aktiviert"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:81
|
||||
#: lib/cannery_web/live/container_live/show.ex:65
|
||||
#: lib/cannery_web/live/container_live/index.ex:85
|
||||
#: lib/cannery_web/live/container_live/show.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} has been deleted"
|
||||
msgstr "%{name} wurde gelöscht"
|
||||
@ -74,11 +74,6 @@ msgstr "%{name} erfolgreich aktualisiert"
|
||||
msgid "A link to confirm your email change has been sent to the new address."
|
||||
msgstr "Eine Mail zum Bestätigen ihre Mailadresse wurde Ihnen zugesandt."
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo group deleted succesfully"
|
||||
msgstr "Munitionsgruppe erfolgreich gelöscht"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:103
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:133
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -87,10 +82,10 @@ msgstr ""
|
||||
"Sind Sie sicher, dass sie %{email} löschen möchten? Dies kann nicht "
|
||||
"zurückgenommen werden!"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:223
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:51
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:39
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:92
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:136
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:59
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete %{name}?"
|
||||
msgstr "Sind Sie sicher, dass sie %{name} löschen möchten?"
|
||||
@ -100,13 +95,13 @@ msgstr "Sind Sie sicher, dass sie %{name} löschen möchten?"
|
||||
msgid "Are you sure you want to delete the invite for %{name}?"
|
||||
msgstr "Sind Sie sicher, dass sie die Einladung für %{name} löschen möchten?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:152
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this ammo?"
|
||||
msgstr "Sind Sie sicher, dass sie diese Munition löschen möchten?"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:155
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:160
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete your account?"
|
||||
msgstr "Sind Sie sicher, dass sie Ihren Account löschen möchten?"
|
||||
@ -155,18 +150,18 @@ msgstr "Passwort erfolgreich zurückgesetzt."
|
||||
msgid "Password updated successfully."
|
||||
msgstr "Passwort erfolgreich geändert."
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:74
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please check your email to verify your account"
|
||||
msgstr "Bitte überprüfen Sie ihre Mailbox und bestätigen Sie das Nutzerkonto"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:108
|
||||
#: lib/cannery_web/live/home_live.ex:91
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Register to setup %{name}"
|
||||
msgstr "Registrieren Sie sich, um %{name} zu bearbeiten"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:55
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:82
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:52
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:33
|
||||
@ -193,7 +188,7 @@ msgstr ""
|
||||
msgid "%{name} added successfully"
|
||||
msgstr "%{name} erfolgreich hinzugefügt"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.ex:41
|
||||
#: lib/cannery_web/live/container_live/show.ex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{tag_name} has been removed from %{container_name}"
|
||||
msgstr "%{tag_name} wurde von %{container_name} entfernt"
|
||||
@ -208,19 +203,19 @@ msgstr "Füge hinzu..."
|
||||
msgid "Shots recorded successfully"
|
||||
msgstr "Schüsse erfolgreich dokumentiert"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:27
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:28
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to unstage this ammo?"
|
||||
msgstr "Sind sie sicher, dass Sie diese Munition demarkieren möchten?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:132
|
||||
#: lib/cannery_web/live/range_live/index.ex:159
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:137
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:118
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this shot record?"
|
||||
msgstr "Sind sie sicher, dass sie die Schießkladde löschen möchten?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:78
|
||||
#: lib/cannery_web/live/range_live/index.ex:54
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:83
|
||||
#: lib/cannery_web/live/range_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shot records deleted succesfully"
|
||||
msgstr "Schießkladde erfolgreich gelöscht"
|
||||
@ -256,12 +251,12 @@ msgstr "%{name} erfolgreich entfernt"
|
||||
msgid "You'll need to"
|
||||
msgstr "Sie müssen"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:67
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Creating..."
|
||||
msgstr "Erstellen..."
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:141
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to change your language?"
|
||||
msgstr "Möchten Sie die Sprache wechseln?"
|
||||
@ -271,12 +266,13 @@ msgstr "Möchten Sie die Sprache wechseln?"
|
||||
msgid "Language updated successfully."
|
||||
msgstr "Spracheinstellung gespeichert."
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:50
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:89
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:55
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Ammo deleted succesfully"
|
||||
msgstr "Munitionsgruppe erfolgreich gelöscht"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:68
|
||||
#: lib/cannery_web/live/range_live/index.ex:95
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Ammo unstaged succesfully"
|
||||
msgstr "Munition erfolgreich demarkiert"
|
||||
@ -293,7 +289,7 @@ msgid_plural "Ammo added successfully"
|
||||
msgstr[0] "Munitionsgruppe erfolgreich aktualisiert"
|
||||
msgstr[1] "Munitionsgruppe erfolgreich aktualisiert"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:232
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:90
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:28
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
||||
|
@ -10,12 +10,12 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:64
|
||||
#: lib/cannery_web/live/home_live.ex:47
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} lets you easily keep an eye on your ammo levels before and after range day"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:86
|
||||
#: lib/cannery_web/live/home_live.ex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Access from any internet-capable device"
|
||||
msgstr ""
|
||||
@ -25,19 +25,21 @@ msgstr ""
|
||||
msgid "Admins"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:100
|
||||
#: lib/cannery_web/live/home_live.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Admins:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/shot_group_table_component.ex:41
|
||||
#: lib/cannery_web/components/topbar.ex:73
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:70
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:79
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:3
|
||||
#: lib/cannery_web/live/range_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:96
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:89
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo type"
|
||||
@ -48,8 +50,8 @@ msgstr ""
|
||||
msgid "Background color"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:140
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:82
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Blank"
|
||||
msgstr ""
|
||||
@ -59,58 +61,58 @@ msgstr ""
|
||||
msgid "Brass"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet core"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:46
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:37
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:49
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Caliber"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Cartridge"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:50
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Case material"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:72
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:65
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:67
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:57
|
||||
#: lib/cannery_web/live/container_live/index.ex:44
|
||||
#: lib/cannery_web/live/container_live/index.ex:53
|
||||
#: lib/cannery_web/live/container_live/index.ex:49
|
||||
#: lib/cannery_web/live/container_live/index.ex:58
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Containers"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:144
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Corrosive"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:83
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:76
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count"
|
||||
@ -122,9 +124,9 @@ msgstr ""
|
||||
msgid "Count:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_table_component.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:24
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:27
|
||||
#: lib/cannery_web/live/container_live/index.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
@ -135,27 +137,17 @@ msgstr ""
|
||||
msgid "Description:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:61
|
||||
#: lib/cannery_web/live/home_live.ex:44
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Easy to Use:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Ammo group"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:23
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.ex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Invite"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.ex:21
|
||||
#: lib/cannery_web/live/tag_live/index.ex:28
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Tag"
|
||||
msgstr ""
|
||||
@ -170,29 +162,29 @@ msgstr ""
|
||||
msgid "FMJ"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:59
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:103
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:76
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Grains"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:64
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:136
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Incendiary"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:95
|
||||
#: lib/cannery_web/live/home_live.ex:78
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Instance Information"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/invite_card.ex:32
|
||||
#: lib/cannery_web/components/invite_card.ex:35
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invite Disabled"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:128
|
||||
#: lib/cannery_web/live/home_live.ex:111
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invite Only"
|
||||
msgstr ""
|
||||
@ -209,9 +201,9 @@ msgstr ""
|
||||
msgid "Keep me logged in for 60 days"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_table_component.ex:48
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:69
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:42
|
||||
#: lib/cannery_web/live/container_live/index.ex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Location"
|
||||
msgstr ""
|
||||
@ -227,8 +219,8 @@ msgstr ""
|
||||
msgid "Magazine, Clip, Ammo Box, etc"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:67
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:84
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Manufacturer"
|
||||
msgstr ""
|
||||
@ -243,24 +235,24 @@ msgstr ""
|
||||
msgid "My cool ammo can"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:45
|
||||
#: lib/cannery_web/components/container_table_component.ex:46
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:62
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/container_live/index.ex:121
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Name"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:29
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:35
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:36
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:44
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:31
|
||||
#: lib/cannery_web/live/container_live/index.ex:38
|
||||
#: lib/cannery_web/live/container_live/index.ex:36
|
||||
#: lib/cannery_web/live/container_live/index.ex:43
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Container"
|
||||
msgstr ""
|
||||
@ -270,27 +262,24 @@ msgstr ""
|
||||
msgid "New Invite"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.ex:27
|
||||
#: lib/cannery_web/live/tag_live/index.ex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Tag"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:8
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No Ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No Ammo Types"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:166
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No ammo for this type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:8
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:47
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No containers"
|
||||
msgstr ""
|
||||
@ -302,16 +291,17 @@ msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:31
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:43
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No tags"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:37
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:88
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:88
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:81
|
||||
#: lib/cannery_web/components/shot_group_table_component.ex:43
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:49
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:93
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:29
|
||||
#: lib/cannery_web/live/range_live/index.ex:82
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Notes"
|
||||
msgstr ""
|
||||
@ -327,13 +317,13 @@ msgstr ""
|
||||
msgid "On the bookshelf"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:60
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:111
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Pressure"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:85
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:78
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Price paid"
|
||||
@ -344,23 +334,23 @@ msgstr ""
|
||||
msgid "Price paid:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:118
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:78
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Primer type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:127
|
||||
#: lib/cannery_web/live/home_live.ex:110
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Public Signups"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:73
|
||||
#: lib/cannery_web/live/home_live.ex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Secure:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:76
|
||||
#: lib/cannery_web/live/home_live.ex:59
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Self-host your own instance, or use an instance from someone you trust."
|
||||
msgstr ""
|
||||
@ -371,7 +361,7 @@ msgstr ""
|
||||
msgid "Settings"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:83
|
||||
#: lib/cannery_web/live/home_live.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Simple:"
|
||||
msgstr ""
|
||||
@ -386,9 +376,10 @@ msgstr ""
|
||||
msgid "Stored in"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_table_component.ex:52
|
||||
#: lib/cannery_web/components/topbar.ex:49
|
||||
#: lib/cannery_web/live/container_live/index.ex:127
|
||||
#: lib/cannery_web/live/tag_live/index.ex:32
|
||||
#: lib/cannery_web/live/tag_live/index.ex:44
|
||||
#: lib/cannery_web/live/tag_live/index.ex:54
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tags"
|
||||
@ -404,20 +395,20 @@ msgstr ""
|
||||
msgid "Text color"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:52
|
||||
#: lib/cannery_web/live/home_live.ex:35
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "The self-hosted firearm tracker website"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tracer"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_table_component.ex:49
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:68
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:35
|
||||
#: lib/cannery_web/live/container_live/index.ex:124
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
@ -433,7 +424,7 @@ msgstr ""
|
||||
msgid "Users"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/invite_card.ex:27
|
||||
#: lib/cannery_web/components/invite_card.ex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Uses Left:"
|
||||
msgstr ""
|
||||
@ -443,22 +434,22 @@ msgstr ""
|
||||
msgid "Uses left"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:48
|
||||
#: lib/cannery_web/live/home_live.ex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Welcome to %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:77
|
||||
#: lib/cannery_web/live/home_live.ex:60
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Your data stays with you, period"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:64
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:72
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No tags for this container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:79
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:72
|
||||
#: lib/cannery_web/components/topbar.ex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Range"
|
||||
@ -469,8 +460,10 @@ msgstr ""
|
||||
msgid "Range day"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:89
|
||||
#: lib/cannery_web/live/range_live/index.ex:83
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:45
|
||||
#: lib/cannery_web/components/shot_group_table_component.ex:44
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:94
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
@ -486,34 +479,24 @@ msgid "No ammo staged"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:3
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:26
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Record shots"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo groups"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:45
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Date (UTC)"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:37
|
||||
#: lib/cannery_web/live/range_live/index.ex:32
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:42
|
||||
#: lib/cannery_web/live/range_live/index.ex:41
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Shot Records"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:38
|
||||
#: lib/cannery_web/live/range_live/index.ex:49
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Shot Records"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:50
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:92
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No shots recorded"
|
||||
msgstr ""
|
||||
@ -524,24 +507,21 @@ msgstr ""
|
||||
msgid "Rounds left"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:87
|
||||
#: lib/cannery_web/live/range_live/index.ex:81
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:62
|
||||
#: lib/cannery_web/components/shot_group_table_component.ex:42
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:92
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds shot"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:44
|
||||
#: lib/cannery_web/live/range_live/index.ex:57
|
||||
#: lib/cannery_web/live/range_live/index.ex:67
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shot Records"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:32
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move Ammo group"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:97
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:38
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:117
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move ammo"
|
||||
msgstr ""
|
||||
@ -551,18 +531,18 @@ msgstr ""
|
||||
msgid "No other containers"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:53
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:55
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shot log"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:71
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:78
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:159
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:227
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:153
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:225
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:180
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:37
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:179
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:136
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "$%{amount}"
|
||||
@ -573,32 +553,32 @@ msgstr ""
|
||||
msgid "Bimetal"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:72
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Jacket type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:79
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Muzzle velocity"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:55
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:93
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:72
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder grains per charge"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:53
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:89
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:68
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:152
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:85
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "UPC"
|
||||
msgstr ""
|
||||
@ -619,18 +599,18 @@ msgstr ""
|
||||
msgid "New password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:93
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stage"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:93
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:62
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:125
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Firing type"
|
||||
msgstr ""
|
||||
@ -645,33 +625,33 @@ msgstr ""
|
||||
msgid "Loading..."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:27
|
||||
#: lib/cannery_web/live/container_live/show.ex:124
|
||||
#: lib/cannery_web/live/container_live/index.ex:32
|
||||
#: lib/cannery_web/live/container_live/show.ex:113
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:65
|
||||
#: lib/cannery_web/live/container_live/show.ex:125
|
||||
#: lib/cannery_web/live/container_live/index.ex:69
|
||||
#: lib/cannery_web/live/container_live/show.ex:114
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name} tags"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:67
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:32
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:224
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:178
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:222
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:179
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:142
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No cost information"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:87
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "% left"
|
||||
msgstr ""
|
||||
@ -716,7 +696,7 @@ msgstr ""
|
||||
msgid "Log in"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:35
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:34
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Register"
|
||||
msgstr ""
|
||||
@ -726,29 +706,17 @@ msgstr ""
|
||||
msgid "Reset your password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:36
|
||||
#: lib/cannery_web/live/range_live/index.ex:26
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:41
|
||||
#: lib/cannery_web/live/range_live/index.ex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Record Shots"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Copies"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo types"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:30
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on:"
|
||||
@ -760,19 +728,19 @@ msgid "User registered on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:130
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "English"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:132
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "French"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:131
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "German"
|
||||
msgstr ""
|
||||
@ -782,48 +750,50 @@ msgstr ""
|
||||
msgid "Language"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:151
|
||||
#: lib/cannery_web/live/home_live.ex:136
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Get involved!"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:172
|
||||
#: lib/cannery_web/live/home_live.ex:157
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Help translate"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:183
|
||||
#: lib/cannery_web/live/home_live.ex:168
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Report bugs or request features"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:161
|
||||
#: lib/cannery_web/live/home_live.ex:146
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "View the source code"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:62
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Catalog"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:40
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:45
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:38
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:43
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move Ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:111
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:119
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No ammo in this container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:39
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:44
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show Ammo"
|
||||
msgstr ""
|
||||
@ -835,18 +805,18 @@ msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:95
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:27
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:25
|
||||
#: lib/cannery_web/live/home_live.ex:42
|
||||
#: lib/cannery_web/live/home_live.ex:25
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Cannery logo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:44
|
||||
#: lib/cannery_web/live/home_live.ex:27
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "isn't he cute >:3"
|
||||
msgstr ""
|
||||
@ -861,55 +831,45 @@ msgstr ""
|
||||
msgid "Container:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:39
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:152
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:97
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:105
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:61
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:195
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:193
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:19
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{percentage}%"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:114
|
||||
#: lib/cannery_web/live/range_live/index.ex:136
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds shot: %{count}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:117
|
||||
#: lib/cannery_web/live/container_live/index.ex:125
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:100
|
||||
#: lib/cannery_web/components/container_table_component.ex:50
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Packs"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:97
|
||||
#: lib/cannery_web/live/container_live/index.ex:126
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:80
|
||||
#: lib/cannery_web/components/container_table_component.ex:51
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:158
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:103
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:39
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:111
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "View as table"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:127
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:110
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total ever packs"
|
||||
msgstr ""
|
||||
@ -919,7 +879,7 @@ msgstr ""
|
||||
msgid "Total ever packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:108
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:91
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total ever rounds"
|
||||
msgstr ""
|
||||
@ -929,7 +889,7 @@ msgstr ""
|
||||
msgid "Total ever rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:122
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:105
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used packs"
|
||||
msgstr ""
|
||||
@ -939,7 +899,7 @@ msgstr ""
|
||||
msgid "Used packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:103
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:86
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used rounds"
|
||||
msgstr ""
|
||||
@ -954,7 +914,7 @@ msgstr ""
|
||||
msgid "Used up!"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds shot chart"
|
||||
msgstr ""
|
||||
@ -1054,24 +1014,25 @@ msgstr ""
|
||||
msgid "UPC:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:137
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:120
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:132
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Average CPR"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:117
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:28
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:120
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{ammo_type_name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:39
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:233
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:231
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Empty"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:86
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "CPR"
|
||||
msgstr ""
|
||||
@ -1081,7 +1042,7 @@ msgstr ""
|
||||
msgid "CPR:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:84
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Original Count"
|
||||
msgstr ""
|
||||
@ -1090,3 +1051,86 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Original Count:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:15
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Home"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:28
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:37
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:58
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Last used on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Last used on:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:178
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Never used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Purchased on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Purchased on:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:46
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:8
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:46
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No Ammo types"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Search catalog"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:57
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Search ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Search containers"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Search tags"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:85
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Search shot records"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:133
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Spanish"
|
||||
msgstr ""
|
||||
|
@ -9,10 +9,9 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Language: en\n"
|
||||
"Plural-Forms: nplurals=2\n"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:44
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:50
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:54
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:62
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add Ammo"
|
||||
@ -50,7 +49,7 @@ msgstr ""
|
||||
msgid "Create Invite"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:157
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:162
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Delete User"
|
||||
msgstr ""
|
||||
@ -122,7 +121,7 @@ msgid "Reset password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:53
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:81
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:31
|
||||
@ -137,7 +136,7 @@ msgstr ""
|
||||
msgid "Send instructions to reset password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:72
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Why not add one?"
|
||||
msgstr ""
|
||||
@ -157,9 +156,9 @@ msgstr ""
|
||||
msgid "Why not get some ready to shoot?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:80
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:100
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:38
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Record shots"
|
||||
msgstr ""
|
||||
@ -189,7 +188,7 @@ msgstr ""
|
||||
msgid "add a container first"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:66
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Create"
|
||||
msgstr ""
|
||||
@ -199,7 +198,7 @@ msgstr ""
|
||||
msgid "Change Language"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:139
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Change language"
|
||||
msgstr ""
|
||||
@ -235,18 +234,18 @@ msgid "Set Unlimited"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:32
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stage for range"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:30
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage from range"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:153
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Export Data as JSON"
|
||||
msgstr ""
|
||||
|
@ -9,14 +9,13 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Language: en\n"
|
||||
"Plural-Forms: nplurals=2\n"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:64
|
||||
#: lib/cannery_web/live/home_live.ex:47
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} lets you easily keep an eye on your ammo levels before and after range day"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:86
|
||||
#: lib/cannery_web/live/home_live.ex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Access from any internet-capable device"
|
||||
msgstr ""
|
||||
@ -26,19 +25,21 @@ msgstr ""
|
||||
msgid "Admins"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:100
|
||||
#: lib/cannery_web/live/home_live.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Admins:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/shot_group_table_component.ex:41
|
||||
#: lib/cannery_web/components/topbar.ex:73
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:70
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:79
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:3
|
||||
#: lib/cannery_web/live/range_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:96
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:89
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo type"
|
||||
@ -49,8 +50,8 @@ msgstr ""
|
||||
msgid "Background color"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:140
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:82
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Blank"
|
||||
msgstr ""
|
||||
@ -60,58 +61,58 @@ msgstr ""
|
||||
msgid "Brass"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet core"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:46
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:37
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:49
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Caliber"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Cartridge"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:50
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Case material"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:72
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:65
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:67
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:57
|
||||
#: lib/cannery_web/live/container_live/index.ex:44
|
||||
#: lib/cannery_web/live/container_live/index.ex:53
|
||||
#: lib/cannery_web/live/container_live/index.ex:49
|
||||
#: lib/cannery_web/live/container_live/index.ex:58
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Containers"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:144
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Corrosive"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:83
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:76
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count"
|
||||
@ -123,9 +124,9 @@ msgstr ""
|
||||
msgid "Count:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_table_component.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:24
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:27
|
||||
#: lib/cannery_web/live/container_live/index.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
@ -136,27 +137,17 @@ msgstr ""
|
||||
msgid "Description:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:61
|
||||
#: lib/cannery_web/live/home_live.ex:44
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Easy to Use:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Ammo group"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:23
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.ex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Invite"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.ex:21
|
||||
#: lib/cannery_web/live/tag_live/index.ex:28
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Tag"
|
||||
msgstr ""
|
||||
@ -171,29 +162,29 @@ msgstr ""
|
||||
msgid "FMJ"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:59
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:103
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:76
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Grains"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:64
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:136
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Incendiary"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:95
|
||||
#: lib/cannery_web/live/home_live.ex:78
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Instance Information"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/invite_card.ex:32
|
||||
#: lib/cannery_web/components/invite_card.ex:35
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invite Disabled"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:128
|
||||
#: lib/cannery_web/live/home_live.ex:111
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invite Only"
|
||||
msgstr ""
|
||||
@ -210,9 +201,9 @@ msgstr ""
|
||||
msgid "Keep me logged in for 60 days"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_table_component.ex:48
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:69
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:42
|
||||
#: lib/cannery_web/live/container_live/index.ex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Location"
|
||||
msgstr ""
|
||||
@ -228,8 +219,8 @@ msgstr ""
|
||||
msgid "Magazine, Clip, Ammo Box, etc"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:67
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:84
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Manufacturer"
|
||||
msgstr ""
|
||||
@ -244,24 +235,24 @@ msgstr ""
|
||||
msgid "My cool ammo can"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:45
|
||||
#: lib/cannery_web/components/container_table_component.ex:46
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:62
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/container_live/index.ex:121
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Name"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:29
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:35
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:36
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:44
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:31
|
||||
#: lib/cannery_web/live/container_live/index.ex:38
|
||||
#: lib/cannery_web/live/container_live/index.ex:36
|
||||
#: lib/cannery_web/live/container_live/index.ex:43
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Container"
|
||||
msgstr ""
|
||||
@ -271,27 +262,24 @@ msgstr ""
|
||||
msgid "New Invite"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.ex:27
|
||||
#: lib/cannery_web/live/tag_live/index.ex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Tag"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:8
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No Ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No Ammo Types"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:166
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No ammo for this type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:8
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:47
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No containers"
|
||||
msgstr ""
|
||||
@ -303,16 +291,17 @@ msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:31
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:43
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No tags"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:37
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:88
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:88
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:81
|
||||
#: lib/cannery_web/components/shot_group_table_component.ex:43
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:49
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:93
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:29
|
||||
#: lib/cannery_web/live/range_live/index.ex:82
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Notes"
|
||||
msgstr ""
|
||||
@ -328,13 +317,13 @@ msgstr ""
|
||||
msgid "On the bookshelf"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:60
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:111
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Pressure"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:85
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:78
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Price paid"
|
||||
@ -345,23 +334,23 @@ msgstr ""
|
||||
msgid "Price paid:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:118
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:78
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Primer type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:127
|
||||
#: lib/cannery_web/live/home_live.ex:110
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Public Signups"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:73
|
||||
#: lib/cannery_web/live/home_live.ex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Secure:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:76
|
||||
#: lib/cannery_web/live/home_live.ex:59
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Self-host your own instance, or use an instance from someone you trust."
|
||||
msgstr ""
|
||||
@ -372,7 +361,7 @@ msgstr ""
|
||||
msgid "Settings"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:83
|
||||
#: lib/cannery_web/live/home_live.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Simple:"
|
||||
msgstr ""
|
||||
@ -387,9 +376,10 @@ msgstr ""
|
||||
msgid "Stored in"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_table_component.ex:52
|
||||
#: lib/cannery_web/components/topbar.ex:49
|
||||
#: lib/cannery_web/live/container_live/index.ex:127
|
||||
#: lib/cannery_web/live/tag_live/index.ex:32
|
||||
#: lib/cannery_web/live/tag_live/index.ex:44
|
||||
#: lib/cannery_web/live/tag_live/index.ex:54
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tags"
|
||||
@ -405,20 +395,20 @@ msgstr ""
|
||||
msgid "Text color"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:52
|
||||
#: lib/cannery_web/live/home_live.ex:35
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "The self-hosted firearm tracker website"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tracer"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_table_component.ex:49
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:68
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:35
|
||||
#: lib/cannery_web/live/container_live/index.ex:124
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
@ -434,7 +424,7 @@ msgstr ""
|
||||
msgid "Users"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/invite_card.ex:27
|
||||
#: lib/cannery_web/components/invite_card.ex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Uses Left:"
|
||||
msgstr ""
|
||||
@ -444,22 +434,22 @@ msgstr ""
|
||||
msgid "Uses left"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:48
|
||||
#: lib/cannery_web/live/home_live.ex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Welcome to %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:77
|
||||
#: lib/cannery_web/live/home_live.ex:60
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Your data stays with you, period"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:64
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:72
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No tags for this container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:79
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:72
|
||||
#: lib/cannery_web/components/topbar.ex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Range"
|
||||
@ -470,8 +460,10 @@ msgstr ""
|
||||
msgid "Range day"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:89
|
||||
#: lib/cannery_web/live/range_live/index.ex:83
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:45
|
||||
#: lib/cannery_web/components/shot_group_table_component.ex:44
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:94
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
@ -487,34 +479,24 @@ msgid "No ammo staged"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:3
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:26
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Record shots"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo groups"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:45
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Date (UTC)"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:37
|
||||
#: lib/cannery_web/live/range_live/index.ex:32
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:42
|
||||
#: lib/cannery_web/live/range_live/index.ex:41
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Shot Records"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:38
|
||||
#: lib/cannery_web/live/range_live/index.ex:49
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Shot Records"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:50
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:92
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No shots recorded"
|
||||
msgstr ""
|
||||
@ -525,24 +507,21 @@ msgstr ""
|
||||
msgid "Rounds left"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:87
|
||||
#: lib/cannery_web/live/range_live/index.ex:81
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:62
|
||||
#: lib/cannery_web/components/shot_group_table_component.ex:42
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:92
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds shot"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:44
|
||||
#: lib/cannery_web/live/range_live/index.ex:57
|
||||
#: lib/cannery_web/live/range_live/index.ex:67
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shot Records"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:32
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move Ammo group"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:97
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:38
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:117
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move ammo"
|
||||
msgstr ""
|
||||
@ -552,18 +531,18 @@ msgstr ""
|
||||
msgid "No other containers"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:53
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:55
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shot log"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:71
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:78
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:159
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:227
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:153
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:225
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:180
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:37
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:179
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:136
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "$%{amount}"
|
||||
@ -574,32 +553,32 @@ msgstr ""
|
||||
msgid "Bimetal"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:72
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Jacket type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:79
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Muzzle velocity"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:55
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:93
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:72
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder grains per charge"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:53
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:89
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:68
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:152
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:85
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "UPC"
|
||||
msgstr ""
|
||||
@ -620,18 +599,18 @@ msgstr ""
|
||||
msgid "New password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:93
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stage"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:93
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:62
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:125
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Firing type"
|
||||
msgstr ""
|
||||
@ -646,33 +625,33 @@ msgstr ""
|
||||
msgid "Loading..."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:27
|
||||
#: lib/cannery_web/live/container_live/show.ex:124
|
||||
#: lib/cannery_web/live/container_live/index.ex:32
|
||||
#: lib/cannery_web/live/container_live/show.ex:113
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:65
|
||||
#: lib/cannery_web/live/container_live/show.ex:125
|
||||
#: lib/cannery_web/live/container_live/index.ex:69
|
||||
#: lib/cannery_web/live/container_live/show.ex:114
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name} tags"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:67
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:32
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:39
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:224
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:178
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:222
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:179
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:142
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No cost information"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:87
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "% left"
|
||||
msgstr ""
|
||||
@ -717,7 +696,7 @@ msgstr ""
|
||||
msgid "Log in"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:35
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:34
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Register"
|
||||
msgstr ""
|
||||
@ -727,29 +706,17 @@ msgstr ""
|
||||
msgid "Reset your password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:36
|
||||
#: lib/cannery_web/live/range_live/index.ex:26
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:41
|
||||
#: lib/cannery_web/live/range_live/index.ex:33
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Record Shots"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Copies"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:40
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Ammo types"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:30
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on:"
|
||||
@ -761,19 +728,19 @@ msgid "User registered on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:130
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "English"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:132
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "French"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:131
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "German"
|
||||
msgstr ""
|
||||
@ -783,48 +750,50 @@ msgstr ""
|
||||
msgid "Language"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:151
|
||||
#: lib/cannery_web/live/home_live.ex:136
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Get involved!"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:172
|
||||
#: lib/cannery_web/live/home_live.ex:157
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Help translate"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:183
|
||||
#: lib/cannery_web/live/home_live.ex:168
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Report bugs or request features"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:161
|
||||
#: lib/cannery_web/live/home_live.ex:146
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "View the source code"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:62
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Catalog"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:40
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:45
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Edit Ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:38
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:43
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Move Ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:111
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:119
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "No ammo in this container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:39
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:44
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Show Ammo"
|
||||
msgstr ""
|
||||
@ -836,18 +805,18 @@ msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:95
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:27
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:25
|
||||
#: lib/cannery_web/live/home_live.ex:42
|
||||
#: lib/cannery_web/live/home_live.ex:25
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Cannery logo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:44
|
||||
#: lib/cannery_web/live/home_live.ex:27
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "isn't he cute >:3"
|
||||
msgstr ""
|
||||
@ -862,55 +831,45 @@ msgstr ""
|
||||
msgid "Container:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:39
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:152
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:97
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:105
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:61
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:195
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:193
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:19
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{percentage}%"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:114
|
||||
#: lib/cannery_web/live/range_live/index.ex:136
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds shot: %{count}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:117
|
||||
#: lib/cannery_web/live/container_live/index.ex:125
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:100
|
||||
#: lib/cannery_web/components/container_table_component.ex:50
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Packs"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:97
|
||||
#: lib/cannery_web/live/container_live/index.ex:126
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:80
|
||||
#: lib/cannery_web/components/container_table_component.ex:51
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:158
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:103
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:39
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:111
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "View as table"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:127
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:110
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total ever packs"
|
||||
msgstr ""
|
||||
@ -920,7 +879,7 @@ msgstr ""
|
||||
msgid "Total ever packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:108
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:91
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total ever rounds"
|
||||
msgstr ""
|
||||
@ -930,7 +889,7 @@ msgstr ""
|
||||
msgid "Total ever rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:122
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:105
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used packs"
|
||||
msgstr ""
|
||||
@ -940,7 +899,7 @@ msgstr ""
|
||||
msgid "Used packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:103
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:86
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Used rounds"
|
||||
msgstr ""
|
||||
@ -955,7 +914,7 @@ msgstr ""
|
||||
msgid "Used up!"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:66
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds shot chart"
|
||||
msgstr ""
|
||||
@ -1055,24 +1014,25 @@ msgstr ""
|
||||
msgid "UPC:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:137
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:120
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:132
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Average CPR"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:117
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:28
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:120
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Edit %{ammo_type_name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:39
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:233
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:231
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Empty"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:86
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "CPR"
|
||||
msgstr ""
|
||||
@ -1082,7 +1042,7 @@ msgstr ""
|
||||
msgid "CPR:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:84
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:77
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Original Count"
|
||||
msgstr ""
|
||||
@ -1091,3 +1051,86 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Original Count:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:15
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Home"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:28
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:37
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:58
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Last used on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Last used on:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:178
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Never used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Purchased on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Purchased on:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:46
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Edit ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:8
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:46
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "No Ammo types"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Search catalog"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:57
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Search ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Search containers"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:36
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Search tags"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:85
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Search shot records"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:133
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Spanish"
|
||||
msgstr ""
|
||||
|
@ -9,7 +9,6 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Language: en\n"
|
||||
"Plural-Forms: nplurals=2\n"
|
||||
|
||||
#: lib/cannery/accounts/email.ex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
|
@ -10,18 +10,18 @@ msgid ""
|
||||
msgstr ""
|
||||
"Language: en\n"
|
||||
|
||||
#: lib/cannery/containers.ex:140
|
||||
#: lib/cannery/containers.ex:179
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Container must be empty before deleting"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:88
|
||||
#: lib/cannery_web/live/container_live/show.ex:75
|
||||
#: lib/cannery_web/live/container_live/index.ex:92
|
||||
#: lib/cannery_web/live/container_live/show.ex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not delete %{name}: %{error}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:76
|
||||
#: lib/cannery_web/live/container_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not find that container"
|
||||
msgstr ""
|
||||
@ -70,14 +70,14 @@ msgstr ""
|
||||
msgid "Reset password link is invalid or it has expired."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:25
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:56
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:24
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:55
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Sorry, public registration is disabled"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:15
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:46
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:14
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:45
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Sorry, this invite was not found or expired"
|
||||
msgstr ""
|
||||
@ -107,18 +107,18 @@ msgstr ""
|
||||
msgid "You are not authorized to view this page."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/accounts/user.ex:138
|
||||
#: lib/cannery/accounts/user.ex:137
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "did not change"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/accounts/user.ex:159
|
||||
#: lib/cannery/accounts/user.ex:158
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "does not match password"
|
||||
msgstr ""
|
||||
|
||||
## From Ecto.Changeset.put_change/3
|
||||
#: lib/cannery/accounts/user.ex:196
|
||||
#: lib/cannery/accounts/user.ex:195
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "is not valid"
|
||||
msgstr ""
|
||||
@ -128,7 +128,7 @@ msgstr ""
|
||||
msgid "must have the @ sign and no spaces"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/tags.ex:40
|
||||
#: lib/cannery/tags.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tag not found"
|
||||
msgstr ""
|
||||
@ -138,13 +138,13 @@ msgstr ""
|
||||
msgid "Tag could not be added"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:123
|
||||
#: lib/cannery/activity_log/shot_group.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be at least 1"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:82
|
||||
#: lib/cannery/activity_log/shot_group.ex:119
|
||||
#: lib/cannery/activity_log/shot_group.ex:118
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be less than %{count}"
|
||||
msgstr ""
|
||||
@ -170,22 +170,22 @@ msgstr ""
|
||||
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/ammo.ex:609
|
||||
#: lib/cannery/ammo.ex:686
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid multiplier"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/ammo/ammo_group.ex:94
|
||||
#: lib/cannery/ammo/ammo_group.ex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select an ammo type and container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select a valid user and ammo group"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:67
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Your browser does not support the canvas element."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:77
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Please select a valid user and ammo pack"
|
||||
msgstr ""
|
||||
|
@ -9,7 +9,6 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Language: en\n"
|
||||
"Plural-Forms: nplurals=2\n"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:86
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:89
|
||||
@ -19,11 +18,11 @@ msgstr ""
|
||||
msgid "%{name} created successfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:56
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:55
|
||||
#: lib/cannery_web/live/invite_live/index.ex:53
|
||||
#: lib/cannery_web/live/invite_live/index.ex:133
|
||||
#: lib/cannery_web/live/tag_live/index.ex:38
|
||||
#: lib/cannery_web/live/tag_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} deleted succesfully"
|
||||
msgstr ""
|
||||
@ -38,8 +37,8 @@ msgstr ""
|
||||
msgid "%{name} enabled succesfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:81
|
||||
#: lib/cannery_web/live/container_live/show.ex:65
|
||||
#: lib/cannery_web/live/container_live/index.ex:85
|
||||
#: lib/cannery_web/live/container_live/show.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} has been deleted"
|
||||
msgstr ""
|
||||
@ -62,21 +61,16 @@ msgstr ""
|
||||
msgid "A link to confirm your email change has been sent to the new address."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo group deleted succesfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:103
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:133
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:223
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:51
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:39
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:92
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:136
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:59
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete %{name}?"
|
||||
msgstr ""
|
||||
@ -86,13 +80,13 @@ msgstr ""
|
||||
msgid "Are you sure you want to delete the invite for %{name}?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:152
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this ammo?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:155
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:160
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete your account?"
|
||||
msgstr ""
|
||||
@ -137,18 +131,18 @@ msgstr ""
|
||||
msgid "Password updated successfully."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:74
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please check your email to verify your account"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:108
|
||||
#: lib/cannery_web/live/home_live.ex:91
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Register to setup %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:55
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:82
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:52
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:33
|
||||
@ -173,7 +167,7 @@ msgstr ""
|
||||
msgid "%{name} added successfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.ex:41
|
||||
#: lib/cannery_web/live/container_live/show.ex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{tag_name} has been removed from %{container_name}"
|
||||
msgstr ""
|
||||
@ -188,19 +182,19 @@ msgstr ""
|
||||
msgid "Shots recorded successfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:27
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:28
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to unstage this ammo?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:132
|
||||
#: lib/cannery_web/live/range_live/index.ex:159
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:137
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:118
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this shot record?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:78
|
||||
#: lib/cannery_web/live/range_live/index.ex:54
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:83
|
||||
#: lib/cannery_web/live/range_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shot records deleted succesfully"
|
||||
msgstr ""
|
||||
@ -236,12 +230,12 @@ msgstr ""
|
||||
msgid "You'll need to"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:67
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:75
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Creating..."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:141
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to change your language?"
|
||||
msgstr ""
|
||||
@ -251,12 +245,13 @@ msgstr ""
|
||||
msgid "Language updated successfully."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:50
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:89
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:55
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Ammo deleted succesfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:68
|
||||
#: lib/cannery_web/live/range_live/index.ex:95
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Ammo unstaged succesfully"
|
||||
msgstr ""
|
||||
@ -273,7 +268,7 @@ msgid_plural "Ammo added successfully"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:232
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:90
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:28
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
||||
|
@ -10,18 +10,18 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/containers.ex:140
|
||||
#: lib/cannery/containers.ex:179
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Container must be empty before deleting"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:88
|
||||
#: lib/cannery_web/live/container_live/show.ex:75
|
||||
#: lib/cannery_web/live/container_live/index.ex:92
|
||||
#: lib/cannery_web/live/container_live/show.ex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not delete %{name}: %{error}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:76
|
||||
#: lib/cannery_web/live/container_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not find that container"
|
||||
msgstr ""
|
||||
@ -70,14 +70,14 @@ msgstr ""
|
||||
msgid "Reset password link is invalid or it has expired."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:25
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:56
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:24
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:55
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Sorry, public registration is disabled"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:15
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:46
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:14
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:45
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Sorry, this invite was not found or expired"
|
||||
msgstr ""
|
||||
@ -107,17 +107,17 @@ msgstr ""
|
||||
msgid "You are not authorized to view this page."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/accounts/user.ex:138
|
||||
#: lib/cannery/accounts/user.ex:137
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "did not change"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/accounts/user.ex:159
|
||||
#: lib/cannery/accounts/user.ex:158
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "does not match password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/accounts/user.ex:196
|
||||
#: lib/cannery/accounts/user.ex:195
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "is not valid"
|
||||
msgstr ""
|
||||
@ -127,7 +127,7 @@ msgstr ""
|
||||
msgid "must have the @ sign and no spaces"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/tags.ex:40
|
||||
#: lib/cannery/tags.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tag not found"
|
||||
msgstr ""
|
||||
@ -137,13 +137,13 @@ msgstr ""
|
||||
msgid "Tag could not be added"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:123
|
||||
#: lib/cannery/activity_log/shot_group.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be at least 1"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:82
|
||||
#: lib/cannery/activity_log/shot_group.ex:119
|
||||
#: lib/cannery/activity_log/shot_group.ex:118
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be less than %{count}"
|
||||
msgstr ""
|
||||
@ -169,22 +169,22 @@ msgstr ""
|
||||
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/ammo.ex:609
|
||||
#: lib/cannery/ammo.ex:686
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid multiplier"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/ammo/ammo_group.ex:94
|
||||
#: lib/cannery/ammo/ammo_group.ex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select an ammo type and container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select a valid user and ammo group"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:67
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Your browser does not support the canvas element."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select a valid user and ammo pack"
|
||||
msgstr ""
|
||||
|
@ -3,8 +3,8 @@ msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-05-21 19:45+0000\n"
|
||||
"PO-Revision-Date: 2022-05-22 22:52+0000\n"
|
||||
"Last-Translator: Hannah Winter <konhat@hotmail.es>\n"
|
||||
"PO-Revision-Date: 2022-11-30 19:19+0000\n"
|
||||
"Last-Translator: Brea Foga <breaardiente@gmail.com>\n"
|
||||
"Language-Team: Spanish <https://weblate.bubbletea.dev/projects/cannery/"
|
||||
"actions/es/>\n"
|
||||
"Language: es\n"
|
||||
@ -12,7 +12,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.12.2\n"
|
||||
"X-Generator: Weblate 4.14.2\n"
|
||||
|
||||
## This file is a PO Template file.
|
||||
##
|
||||
@ -23,8 +23,8 @@ msgstr ""
|
||||
## Run "mix gettext.extract" to bring this file up to
|
||||
## date. Leave "msgstr"s empty as changing them here has no
|
||||
## effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:44
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:50
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:54
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:62
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add Ammo"
|
||||
@ -33,17 +33,17 @@ msgstr "Añadir Munición"
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add your first box!"
|
||||
msgstr ""
|
||||
msgstr "¡Añade tu primera caja!"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:13
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add your first container!"
|
||||
msgstr ""
|
||||
msgstr "¡Añade tu primer contenedor!"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:13
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add your first type!"
|
||||
msgstr ""
|
||||
msgstr "¡Añade tu primer tipo!"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:15
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:44
|
||||
@ -62,7 +62,7 @@ msgstr "Cambiar contraseña"
|
||||
msgid "Create Invite"
|
||||
msgstr "Crear Invitación"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:157
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:162
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Delete User"
|
||||
msgstr "Eliminar cuenta de Usuario"
|
||||
@ -77,7 +77,7 @@ msgstr "¿Has olvidado tu contraseña?"
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:13
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invite someone new!"
|
||||
msgstr ""
|
||||
msgstr "¡Invita a alguien nuevo!"
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:137
|
||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:30
|
||||
@ -88,27 +88,27 @@ msgstr ""
|
||||
#: lib/cannery_web/templates/user_session/new.html.heex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Log in"
|
||||
msgstr ""
|
||||
msgstr "Entrar"
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:15
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Make your first tag!"
|
||||
msgstr ""
|
||||
msgstr "¡Aplica tu primera etiqueta!"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:17
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Ammo type"
|
||||
msgstr ""
|
||||
msgstr "Nuevo tipo de Munición"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:17
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Container"
|
||||
msgstr ""
|
||||
msgstr "Nuevo Contenedor"
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:19
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Tag"
|
||||
msgstr ""
|
||||
msgstr "Nueva Etiqueta"
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:128
|
||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:26
|
||||
@ -119,22 +119,22 @@ msgstr ""
|
||||
#: lib/cannery_web/templates/user_session/new.html.heex:41
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Register"
|
||||
msgstr ""
|
||||
msgstr "Registrarse"
|
||||
|
||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:3
|
||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:16
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Resend confirmation instructions"
|
||||
msgstr ""
|
||||
msgstr "Reenviar instrucciones de confirmación"
|
||||
|
||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:3
|
||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:34
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Reset password"
|
||||
msgstr ""
|
||||
msgstr "Resetear contraseña"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:53
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:81
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:31
|
||||
@ -142,123 +142,123 @@ msgstr ""
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:91
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Save"
|
||||
msgstr ""
|
||||
msgstr "Guardar"
|
||||
|
||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:16
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Send instructions to reset password"
|
||||
msgstr "Enviar instrucciones para reestablecer contraseña"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:72
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Why not add one?"
|
||||
msgstr ""
|
||||
msgstr "¿Por qué no añadir una?"
|
||||
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:53
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add"
|
||||
msgstr ""
|
||||
msgstr "Añadir"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:17
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stage ammo"
|
||||
msgstr ""
|
||||
msgstr "Preparar munición"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:13
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Why not get some ready to shoot?"
|
||||
msgstr ""
|
||||
msgstr "¿Por qué no preparar parte para disparar?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:80
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:100
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:38
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Record shots"
|
||||
msgstr ""
|
||||
msgstr "Tiros récord"
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:90
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add another container!"
|
||||
msgstr ""
|
||||
msgstr "¡Añade otro contenedor!"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:94
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move containers"
|
||||
msgstr ""
|
||||
msgstr "Mover contenedores"
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:126
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Select"
|
||||
msgstr ""
|
||||
msgstr "Seleccionar"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Copy to clipboard"
|
||||
msgstr ""
|
||||
msgstr "Copiar al portapapeles"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:21
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "add a container first"
|
||||
msgstr ""
|
||||
msgstr "añade primero un contenedor"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:66
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Create"
|
||||
msgstr ""
|
||||
msgstr "Crear"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:113
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Change Language"
|
||||
msgstr ""
|
||||
msgstr "Cambiar Lenguaje"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:139
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Change language"
|
||||
msgstr ""
|
||||
msgstr "Cambiar lenguaje"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:60
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "View in Catalog"
|
||||
msgstr ""
|
||||
msgstr "Ver en Catalogo"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "add an ammo type first"
|
||||
msgstr ""
|
||||
msgstr "añade primero un tipo de munición"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:60
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Disable"
|
||||
msgstr ""
|
||||
msgstr "Desactivar"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Enable"
|
||||
msgstr ""
|
||||
msgstr "Activar"
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move ammo"
|
||||
msgstr ""
|
||||
msgstr "Mover munición"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Set Unlimited"
|
||||
msgstr ""
|
||||
msgstr "Activar ilimitados"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:32
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stage for range"
|
||||
msgstr ""
|
||||
msgstr "Preparar para el campo de tiro"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:30
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage from range"
|
||||
msgstr ""
|
||||
msgstr "Desmontar del campo de tiro"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:153
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Export Data as JSON"
|
||||
msgstr ""
|
||||
msgstr "Exportar datos como JSON"
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -3,8 +3,8 @@ msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-05-21 19:44+0000\n"
|
||||
"PO-Revision-Date: 2022-05-22 22:52+0000\n"
|
||||
"Last-Translator: Ed <ed.ylles1997@gmail.com>\n"
|
||||
"PO-Revision-Date: 2022-11-30 19:19+0000\n"
|
||||
"Last-Translator: Hannah Winter <konhat@hotmail.es>\n"
|
||||
"Language-Team: Spanish <https://weblate.bubbletea.dev/projects/cannery/"
|
||||
"emails/es/>\n"
|
||||
"Language: es\n"
|
||||
@ -12,7 +12,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.12.2\n"
|
||||
"X-Generator: Weblate 4.14.2\n"
|
||||
|
||||
## This file is a PO Template file.
|
||||
##
|
||||
@ -41,23 +41,23 @@ msgstr "Hola %{email},"
|
||||
#: lib/cannery_web/templates/email/confirm_email.txt.eex:10
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "If you didn't create an account at %{url}, please ignore this."
|
||||
msgstr ""
|
||||
msgstr "Si no creó un usuario en %{url}, por favor, ignore este mensaje."
|
||||
|
||||
#: lib/cannery_web/templates/email/reset_password.txt.eex:8
|
||||
#: lib/cannery_web/templates/email/update_email.txt.eex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "If you didn't request this change from %{url}, please ignore this."
|
||||
msgstr ""
|
||||
msgstr "Si no pidió este cambio desde %{url}, por favor, ignore este mensaje."
|
||||
|
||||
#: lib/cannery/accounts/email.ex:37
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Reset your %{name} password"
|
||||
msgstr ""
|
||||
msgstr "Reseteé su contraseña en %{name}"
|
||||
|
||||
#: lib/cannery/accounts/email.ex:44
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Update your %{name} email"
|
||||
msgstr ""
|
||||
msgstr "Actualice su correo en &{url}"
|
||||
|
||||
#: lib/cannery_web/templates/email/confirm_email.html.eex:9
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -95,20 +95,26 @@ msgstr ""
|
||||
#: lib/cannery_web/templates/email/confirm_email.html.eex:22
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "If you didn't create an account at %{name}, please ignore this."
|
||||
msgstr ""
|
||||
msgstr "Si no ha creado una cuenta en %{name}, por favor, ignore este mensaje."
|
||||
|
||||
#: lib/cannery_web/templates/email/reset_password.html.eex:16
|
||||
#: lib/cannery_web/templates/email/update_email.html.eex:16
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "If you didn't request this change from %{name}, please ignore this."
|
||||
msgstr ""
|
||||
"Si no ha solicitado este cambio desde %{name}, por favor, ignore este "
|
||||
"mensaje."
|
||||
|
||||
#: lib/cannery_web/templates/layout/email.txt.eex:9
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "This email was sent from %{name} at %{url}, the self-hosted firearm tracker website."
|
||||
msgstr ""
|
||||
"Este correo se mandó por %{name} desde %{url}, la página de seguimiento de "
|
||||
"armas autogestionada."
|
||||
|
||||
#: lib/cannery_web/templates/layout/email.html.heex:13
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "This email was sent from %{name}, the self-hosted firearm tracker website."
|
||||
msgstr ""
|
||||
"Este correo se mandó por %{name}, la página de seguimiento de armas "
|
||||
"autogestionada."
|
||||
|
@ -3,8 +3,8 @@ msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-05-21 19:44+0000\n"
|
||||
"PO-Revision-Date: 2022-05-22 22:52+0000\n"
|
||||
"Last-Translator: Ed <ed.ylles1997@gmail.com>\n"
|
||||
"PO-Revision-Date: 2022-12-01 19:21+0000\n"
|
||||
"Last-Translator: Brea Foga <breaardiente@gmail.com>\n"
|
||||
"Language-Team: Spanish <https://weblate.bubbletea.dev/projects/cannery/"
|
||||
"errors/es/>\n"
|
||||
"Language: es\n"
|
||||
@ -12,7 +12,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.12.2\n"
|
||||
"X-Generator: Weblate 4.14.2\n"
|
||||
|
||||
## This file is a PO Template file.
|
||||
##
|
||||
@ -23,26 +23,26 @@ msgstr ""
|
||||
## Run "mix gettext.extract" to bring this file up to
|
||||
## date. Leave "msgstr"s empty as changing them here has no
|
||||
## effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery/containers.ex:140
|
||||
#: lib/cannery/containers.ex:179
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Container must be empty before deleting"
|
||||
msgstr "el Contenedor debe estar vació antes de borrarlo"
|
||||
msgstr "El contenedor debe estar vacío antes de ser borrado"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:88
|
||||
#: lib/cannery_web/live/container_live/show.ex:75
|
||||
#: lib/cannery_web/live/container_live/index.ex:92
|
||||
#: lib/cannery_web/live/container_live/show.ex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not delete %{name}: %{error}"
|
||||
msgstr "No se pudo eliminar %{name}: %{error}"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:76
|
||||
#: lib/cannery_web/live/container_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not find that container"
|
||||
msgstr ""
|
||||
msgstr "No se pudo encontrar el contenedor"
|
||||
|
||||
#: lib/cannery_web/controllers/user_settings_controller.ex:84
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Email change link is invalid or it has expired."
|
||||
msgstr ""
|
||||
msgstr "El enlace de cambio de correo es inválido o ha expirado."
|
||||
|
||||
#: lib/cannery_web/templates/error/error.html.heex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -52,22 +52,22 @@ msgstr "Error"
|
||||
#: lib/cannery_web/templates/error/error.html.heex:28
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Go back home"
|
||||
msgstr ""
|
||||
msgstr "Volver hacia atrás"
|
||||
|
||||
#: lib/cannery_web/views/error_view.ex:11
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Internal Server Error"
|
||||
msgstr ""
|
||||
msgstr "Error interno del servidor"
|
||||
|
||||
#: lib/cannery_web/controllers/user_session_controller.ex:17
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid email or password"
|
||||
msgstr ""
|
||||
msgstr "Correo o contraseña incorrecta"
|
||||
|
||||
#: lib/cannery_web/views/error_view.ex:9
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Not found"
|
||||
msgstr ""
|
||||
msgstr "No se encontró"
|
||||
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:16
|
||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:16
|
||||
@ -86,121 +86,121 @@ msgid "Reset password link is invalid or it has expired."
|
||||
msgstr ""
|
||||
"El enlace de reestablecimiento de la contraseña es inválido o ha caducado."
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:25
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:56
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:24
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:55
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Sorry, public registration is disabled"
|
||||
msgstr ""
|
||||
msgstr "Lo sentimos, el registro público no está habilitado"
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:15
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:46
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:14
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:45
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Sorry, this invite was not found or expired"
|
||||
msgstr ""
|
||||
msgstr "Lo sentimos, esta invitación no es válida o ha caducado"
|
||||
|
||||
#: lib/cannery_web/controllers/user_settings_controller.ex:99
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unable to delete user"
|
||||
msgstr ""
|
||||
msgstr "No se ha podido eliminar el usuario"
|
||||
|
||||
#: lib/cannery_web/views/error_view.ex:10
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unauthorized"
|
||||
msgstr ""
|
||||
msgstr "No autorizado"
|
||||
|
||||
#: lib/cannery_web/controllers/user_confirmation_controller.ex:54
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "User confirmation link is invalid or it has expired."
|
||||
msgstr ""
|
||||
msgstr "El enlace de confirmación de usuario no es válido o ha caducado."
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.ex:18
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "You are not authorized to view this page"
|
||||
msgstr ""
|
||||
msgstr "No está autorizado a ver esta página"
|
||||
|
||||
#: lib/cannery_web/controllers/user_auth.ex:177
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "You are not authorized to view this page."
|
||||
msgstr ""
|
||||
msgstr "No está autorizado a ver esta página."
|
||||
|
||||
#: lib/cannery/accounts/user.ex:138
|
||||
#: lib/cannery/accounts/user.ex:137
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "did not change"
|
||||
msgstr ""
|
||||
msgstr "no cambió"
|
||||
|
||||
#: lib/cannery/accounts/user.ex:159
|
||||
#: lib/cannery/accounts/user.ex:158
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "does not match password"
|
||||
msgstr ""
|
||||
msgstr "no coincide con la contraseña"
|
||||
|
||||
#: lib/cannery/accounts/user.ex:196
|
||||
#: lib/cannery/accounts/user.ex:195
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "is not valid"
|
||||
msgstr ""
|
||||
msgstr "no es válido"
|
||||
|
||||
#: lib/cannery/accounts/user.ex:92
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "must have the @ sign and no spaces"
|
||||
msgstr ""
|
||||
msgstr "debe tener el signo @ y no contener espacios"
|
||||
|
||||
#: lib/cannery/tags.ex:40
|
||||
#: lib/cannery/tags.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tag not found"
|
||||
msgstr ""
|
||||
msgstr "Etiqueta no encontrada"
|
||||
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.ex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tag could not be added"
|
||||
msgstr ""
|
||||
msgstr "No se ha podido añadir la etiqueta"
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:123
|
||||
#: lib/cannery/activity_log/shot_group.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be at least 1"
|
||||
msgstr ""
|
||||
msgstr "El recuento debe dar al menos 1"
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:82
|
||||
#: lib/cannery/activity_log/shot_group.ex:119
|
||||
#: lib/cannery/activity_log/shot_group.ex:118
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be less than %{count}"
|
||||
msgstr ""
|
||||
msgstr "El recuento debe ser menos de %{count}"
|
||||
|
||||
#: lib/cannery_web/controllers/user_auth.ex:39
|
||||
#: lib/cannery_web/controllers/user_auth.ex:161
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "You must confirm your account and log in to access this page."
|
||||
msgstr ""
|
||||
msgstr "Debe confirmar su cuenta e iniciar sesión para acceder a esta página."
|
||||
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.ex:52
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tag could not be removed"
|
||||
msgstr ""
|
||||
msgstr "La etiqueta no pudo ser eliminada"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:157
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not parse number of copies"
|
||||
msgstr ""
|
||||
msgstr "No se ha podido procesar el número de copias"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:142
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
|
||||
msgstr ""
|
||||
msgstr "Número inválido de copias, debe ser entre 1 y %{max}. Fue %{multiplier"
|
||||
|
||||
#: lib/cannery/ammo.ex:609
|
||||
#: lib/cannery/ammo.ex:686
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid multiplier"
|
||||
msgstr ""
|
||||
msgstr "Multiplicador inválido"
|
||||
|
||||
#: lib/cannery/ammo/ammo_group.ex:94
|
||||
#: lib/cannery/ammo/ammo_group.ex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select an ammo type and container"
|
||||
msgstr ""
|
||||
msgstr "Por favor escoja un tipo de munición y un contenedor"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Your browser does not support the canvas element."
|
||||
msgstr "Su navegador no es compatible con el elemento lienzo."
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select a valid user and ammo group"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:67
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Your browser does not support the canvas element."
|
||||
msgstr ""
|
||||
msgid "Please select a valid user and ammo pack"
|
||||
msgstr "Por favor escoja un usuario y tipo de munición valido"
|
||||
|
@ -3,8 +3,8 @@ msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-05-21 19:44+0000\n"
|
||||
"PO-Revision-Date: 2022-06-06 19:05+0000\n"
|
||||
"Last-Translator: Ed <ed.ylles1997@gmail.com>\n"
|
||||
"PO-Revision-Date: 2022-11-30 19:19+0000\n"
|
||||
"Last-Translator: Brea Foga <breaardiente@gmail.com>\n"
|
||||
"Language-Team: Spanish <https://weblate.bubbletea.dev/projects/cannery/"
|
||||
"prompts/es/>\n"
|
||||
"Language: es\n"
|
||||
@ -12,7 +12,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.12.2\n"
|
||||
"X-Generator: Weblate 4.14.2\n"
|
||||
|
||||
## This file is a PO Template file.
|
||||
##
|
||||
@ -31,11 +31,11 @@ msgstr ""
|
||||
msgid "%{name} created successfully"
|
||||
msgstr "%{name} creado exitosamente"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:56
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:55
|
||||
#: lib/cannery_web/live/invite_live/index.ex:53
|
||||
#: lib/cannery_web/live/invite_live/index.ex:133
|
||||
#: lib/cannery_web/live/tag_live/index.ex:38
|
||||
#: lib/cannery_web/live/tag_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} deleted succesfully"
|
||||
msgstr "%{name} borrado exitosamente"
|
||||
@ -50,8 +50,8 @@ msgstr "%{name} desactivado exitosamente"
|
||||
msgid "%{name} enabled succesfully"
|
||||
msgstr "%{name} activado exitosamente"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:81
|
||||
#: lib/cannery_web/live/container_live/show.ex:65
|
||||
#: lib/cannery_web/live/container_live/index.ex:85
|
||||
#: lib/cannery_web/live/container_live/show.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} has been deleted"
|
||||
msgstr "%{name} ha sido borrado"
|
||||
@ -76,21 +76,16 @@ msgstr ""
|
||||
"Un enlace para confirmar el correo electrónico ha sido enviado a la nueva "
|
||||
"dirección."
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo group deleted succesfully"
|
||||
msgstr "Grupo de Munición borrado exitosamente"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:103
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:133
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
||||
msgstr "Está seguro que desea eliminar %{email}? Esta acción es permanente!"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:223
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:51
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:39
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:92
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:136
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:59
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete %{name}?"
|
||||
msgstr "Está seguro que desea eliminar %{name}?"
|
||||
@ -100,13 +95,13 @@ msgstr "Está seguro que desea eliminar %{name}?"
|
||||
msgid "Are you sure you want to delete the invite for %{name}?"
|
||||
msgstr "Está seguro que quiere eliminar la invitación para %{name}?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:152
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this ammo?"
|
||||
msgstr "Está seguro que desea eliminar esta munición?"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:155
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:160
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete your account?"
|
||||
msgstr "Está seguro que desea eliminar su cuenta?"
|
||||
@ -155,18 +150,18 @@ msgstr "Contraseña reiniciada exitosamente."
|
||||
msgid "Password updated successfully."
|
||||
msgstr "Contraseña cambiada exitosamente."
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:74
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please check your email to verify your account"
|
||||
msgstr "Por favor chequea el correo para verificar tu cuenta"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:108
|
||||
#: lib/cannery_web/live/home_live.ex:91
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Register to setup %{name}"
|
||||
msgstr "Regístrese para configurar %{name}"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:55
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:82
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:52
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:33
|
||||
@ -192,7 +187,7 @@ msgstr ""
|
||||
msgid "%{name} added successfully"
|
||||
msgstr "%{name} añadido exitosamente"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.ex:41
|
||||
#: lib/cannery_web/live/container_live/show.ex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{tag_name} has been removed from %{container_name}"
|
||||
msgstr "se ha removido %{tag_name} de %{container_name}"
|
||||
@ -207,93 +202,96 @@ msgstr "Añadiendo..."
|
||||
msgid "Shots recorded successfully"
|
||||
msgstr "Tiros registrados exitosamente"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:27
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:28
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to unstage this ammo?"
|
||||
msgstr "Está seguro que desea desmontar esta munición?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:132
|
||||
#: lib/cannery_web/live/range_live/index.ex:159
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:137
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:118
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this shot record?"
|
||||
msgstr ""
|
||||
msgstr "¿Está segure que quiere borrar este récord de disparos?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:78
|
||||
#: lib/cannery_web/live/range_live/index.ex:54
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:83
|
||||
#: lib/cannery_web/live/range_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shot records deleted succesfully"
|
||||
msgstr ""
|
||||
msgstr "Récord de disparos borrado exitosamente"
|
||||
|
||||
#: lib/cannery_web/live/range_live/form_component.ex:55
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shot records updated successfully"
|
||||
msgstr ""
|
||||
msgstr "Récord de disparos actualizado exitosamente"
|
||||
|
||||
#: lib/cannery_web/controllers/user_confirmation_controller.ex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{email} confirmed successfully."
|
||||
msgstr ""
|
||||
msgstr "%{email} confirmado exitosamente."
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:53
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo moved to %{name} successfully"
|
||||
msgstr ""
|
||||
msgstr "Munición movida a %{name} exitosamente"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.ex:121
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Copied to clipboard"
|
||||
msgstr ""
|
||||
msgstr "Copiado al portapapeles"
|
||||
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.ex:58
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} removed successfully"
|
||||
msgstr ""
|
||||
msgstr "%{name} eliminado exitosamente"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:17
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:27
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "You'll need to"
|
||||
msgstr ""
|
||||
msgstr "Necesitará hacerlo"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:67
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Creating..."
|
||||
msgstr ""
|
||||
msgstr "Creando..."
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:141
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to change your language?"
|
||||
msgstr ""
|
||||
msgstr "¿Está segure de que quiere cambiar el idioma?"
|
||||
|
||||
#: lib/cannery_web/controllers/user_settings_controller.ex:65
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Language updated successfully."
|
||||
msgstr ""
|
||||
msgstr "Idioma cambiado exitosamente."
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:50
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:89
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:55
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo deleted succesfully"
|
||||
msgstr ""
|
||||
msgstr "Munición borrada exitosamente"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:68
|
||||
#: lib/cannery_web/live/range_live/index.ex:95
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Ammo unstaged succesfully"
|
||||
msgstr ""
|
||||
msgstr "Munición descargada exitosamente"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:118
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo updated successfully"
|
||||
msgstr ""
|
||||
msgstr "Munición actualizada exitosamente"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:178
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo added successfully"
|
||||
msgid_plural "Ammo added successfully"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
msgstr[0] "Munición añadida exitosamente"
|
||||
msgstr[1] "Municiones añadidas exitosamente"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:232
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:90
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:28
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
||||
msgstr ""
|
||||
"¿Está seguro de que quiere borrar %{name}? ¡Esto también borrará todos los "
|
||||
"tipos de munición %{name}!"
|
||||
|
@ -23,8 +23,8 @@ msgstr ""
|
||||
# # Run "mix gettext.extract" to bring this file up to
|
||||
# # date. Leave "msgstr"s empty as changing them here has no
|
||||
# # effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:44
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:50
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:54
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:62
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add Ammo"
|
||||
@ -62,7 +62,7 @@ msgstr "Changer le mot de passe"
|
||||
msgid "Create Invite"
|
||||
msgstr "Créer une invitation"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:157
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:162
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Delete User"
|
||||
msgstr "Supprimer utilisateur"
|
||||
@ -134,7 +134,7 @@ msgid "Reset password"
|
||||
msgstr "Réinitialisé le mot de passe"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:53
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:81
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:31
|
||||
@ -149,7 +149,7 @@ msgstr "Sauvegarder"
|
||||
msgid "Send instructions to reset password"
|
||||
msgstr "Envoyer les instructions pour réinitialiser le mot de passe"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:72
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Why not add one?"
|
||||
msgstr "Pourquoi pas en ajouter un ?"
|
||||
@ -169,9 +169,9 @@ msgstr "Munition préparée"
|
||||
msgid "Why not get some ready to shoot?"
|
||||
msgstr "Pourquoi pas en préparer pour tirer ?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:80
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:100
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:38
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Record shots"
|
||||
msgstr "Enregistrer des tirs"
|
||||
@ -201,7 +201,7 @@ msgstr "Copier dans le presse-papier"
|
||||
msgid "add a container first"
|
||||
msgstr "ajouter un conteneur en premier"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:66
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Create"
|
||||
msgstr "Créer"
|
||||
@ -211,7 +211,7 @@ msgstr "Créer"
|
||||
msgid "Change Language"
|
||||
msgstr "Changer la langue"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:139
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Change language"
|
||||
msgstr "Changer la langue"
|
||||
@ -247,18 +247,18 @@ msgid "Set Unlimited"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:32
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stage for range"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:30
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage from range"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:153
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Export Data as JSON"
|
||||
msgstr ""
|
||||
|
@ -23,14 +23,14 @@ msgstr ""
|
||||
# # Run "mix gettext.extract" to bring this file up to
|
||||
# # date. Leave "msgstr"s empty as changing them here has no
|
||||
# # effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery_web/live/home_live.ex:64
|
||||
#: lib/cannery_web/live/home_live.ex:47
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} lets you easily keep an eye on your ammo levels before and after range day"
|
||||
msgstr ""
|
||||
"%{name} vous permet de facilement garder un œil sur votre niveau de munition "
|
||||
"avant et après une journée de stand"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:86
|
||||
#: lib/cannery_web/live/home_live.ex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Access from any internet-capable device"
|
||||
msgstr "Accédez depuis n’importe quel appareil connecté à internet"
|
||||
@ -40,19 +40,21 @@ msgstr "Accédez depuis n’importe quel appareil connecté à internet"
|
||||
msgid "Admins"
|
||||
msgstr "Administrateur·ices"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:100
|
||||
#: lib/cannery_web/live/home_live.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Admins:"
|
||||
msgstr "Administrateur·ices :"
|
||||
|
||||
#: lib/cannery_web/components/shot_group_table_component.ex:41
|
||||
#: lib/cannery_web/components/topbar.ex:73
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:70
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:79
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:3
|
||||
#: lib/cannery_web/live/range_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo"
|
||||
msgstr "Munition"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:96
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:89
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo type"
|
||||
@ -63,8 +65,8 @@ msgstr "Type de munition"
|
||||
msgid "Background color"
|
||||
msgstr "Couleur de fond"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:140
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:82
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Blank"
|
||||
msgstr "Vide"
|
||||
@ -74,58 +76,58 @@ msgstr "Vide"
|
||||
msgid "Brass"
|
||||
msgstr "Cuivre"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet core"
|
||||
msgstr "Noyau de balle"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:46
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:37
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet type"
|
||||
msgstr "Type de balle"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:49
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Caliber"
|
||||
msgstr "Calibre"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Cartridge"
|
||||
msgstr "Cartouche"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:50
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Case material"
|
||||
msgstr "Matériau de la caisse"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:72
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:65
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:67
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Container"
|
||||
msgstr "Conteneur"
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:57
|
||||
#: lib/cannery_web/live/container_live/index.ex:44
|
||||
#: lib/cannery_web/live/container_live/index.ex:53
|
||||
#: lib/cannery_web/live/container_live/index.ex:49
|
||||
#: lib/cannery_web/live/container_live/index.ex:58
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Containers"
|
||||
msgstr "Conteneurs"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:144
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Corrosive"
|
||||
msgstr "Corrosive"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:83
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:76
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count"
|
||||
@ -137,9 +139,9 @@ msgstr "Quantité"
|
||||
msgid "Count:"
|
||||
msgstr "Quantité :"
|
||||
|
||||
#: lib/cannery_web/components/container_table_component.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:24
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:27
|
||||
#: lib/cannery_web/live/container_live/index.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Description"
|
||||
msgstr "Description"
|
||||
@ -150,27 +152,17 @@ msgstr "Description"
|
||||
msgid "Description:"
|
||||
msgstr "Description :"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:61
|
||||
#: lib/cannery_web/live/home_live.ex:44
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Easy to Use:"
|
||||
msgstr "Simple à utiliser :"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Ammo group"
|
||||
msgstr "Éditer le groupe de munition"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:23
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Ammo type"
|
||||
msgstr "Éditer le type de munition"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.ex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Invite"
|
||||
msgstr "Modifier l’invitation"
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.ex:21
|
||||
#: lib/cannery_web/live/tag_live/index.ex:28
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Tag"
|
||||
msgstr "Modifier le tag"
|
||||
@ -185,29 +177,29 @@ msgstr "Exemple d’abréviations de type de balle"
|
||||
msgid "FMJ"
|
||||
msgstr "FMJ"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:59
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:103
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:76
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Grains"
|
||||
msgstr "Graines"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:64
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:136
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Incendiary"
|
||||
msgstr "Incendiaire"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:95
|
||||
#: lib/cannery_web/live/home_live.ex:78
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Instance Information"
|
||||
msgstr "Information de l’instance"
|
||||
|
||||
#: lib/cannery_web/components/invite_card.ex:32
|
||||
#: lib/cannery_web/components/invite_card.ex:35
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invite Disabled"
|
||||
msgstr "Invitation désactivée"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:128
|
||||
#: lib/cannery_web/live/home_live.ex:111
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invite Only"
|
||||
msgstr "Uniquement sur invitation"
|
||||
@ -224,9 +216,9 @@ msgstr "Invitations"
|
||||
msgid "Keep me logged in for 60 days"
|
||||
msgstr "Me garder authentifié durant 60 jours"
|
||||
|
||||
#: lib/cannery_web/components/container_table_component.ex:48
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:69
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:42
|
||||
#: lib/cannery_web/live/container_live/index.ex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Location"
|
||||
msgstr "Localisation"
|
||||
@ -242,8 +234,8 @@ msgstr "Localisation :"
|
||||
msgid "Magazine, Clip, Ammo Box, etc"
|
||||
msgstr "Chargeur, lame-chargeur, boite de munition, etc."
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:67
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:84
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Manufacturer"
|
||||
msgstr "Fabricant"
|
||||
@ -258,24 +250,24 @@ msgstr "Boite de munition avec le sticker de fille d’animation"
|
||||
msgid "My cool ammo can"
|
||||
msgstr "Ma superbe boite de munition"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:45
|
||||
#: lib/cannery_web/components/container_table_component.ex:46
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:62
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/container_live/index.ex:121
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Name"
|
||||
msgstr "Nom"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:29
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:35
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:36
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:44
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Ammo type"
|
||||
msgstr "Nouveau type de munition"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:31
|
||||
#: lib/cannery_web/live/container_live/index.ex:38
|
||||
#: lib/cannery_web/live/container_live/index.ex:36
|
||||
#: lib/cannery_web/live/container_live/index.ex:43
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Container"
|
||||
msgstr "Nouveau conteneur"
|
||||
@ -285,27 +277,24 @@ msgstr "Nouveau conteneur"
|
||||
msgid "New Invite"
|
||||
msgstr "Nouvelle invitation"
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.ex:27
|
||||
#: lib/cannery_web/live/tag_live/index.ex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Tag"
|
||||
msgstr "Nouveau tag"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:8
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No Ammo"
|
||||
msgstr "Aucune munition"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No Ammo Types"
|
||||
msgstr "Aucun type de munition"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:166
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No ammo for this type"
|
||||
msgstr "Aucune munition pour ce type"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:8
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:47
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No containers"
|
||||
msgstr "Aucun conteneur"
|
||||
@ -317,16 +306,17 @@ msgstr "Aucune invitation"
|
||||
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:31
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:43
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No tags"
|
||||
msgstr "Aucun tag"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:37
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:88
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:88
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:81
|
||||
#: lib/cannery_web/components/shot_group_table_component.ex:43
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:49
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:93
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:29
|
||||
#: lib/cannery_web/live/range_live/index.ex:82
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Notes"
|
||||
msgstr "Notes"
|
||||
@ -342,13 +332,13 @@ msgstr "Notes :"
|
||||
msgid "On the bookshelf"
|
||||
msgstr "Sur l’étagère"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:60
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:111
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Pressure"
|
||||
msgstr "Pression"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:85
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:78
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Price paid"
|
||||
@ -359,23 +349,23 @@ msgstr "Prix payé"
|
||||
msgid "Price paid:"
|
||||
msgstr "Prix payé :"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:118
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:78
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Primer type"
|
||||
msgstr "Type d’amorce"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:127
|
||||
#: lib/cannery_web/live/home_live.ex:110
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Public Signups"
|
||||
msgstr "Enregistrements publics"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:73
|
||||
#: lib/cannery_web/live/home_live.ex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Secure:"
|
||||
msgstr "Sécurisé :"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:76
|
||||
#: lib/cannery_web/live/home_live.ex:59
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Self-host your own instance, or use an instance from someone you trust."
|
||||
msgstr ""
|
||||
@ -388,7 +378,7 @@ msgstr ""
|
||||
msgid "Settings"
|
||||
msgstr "Paramètres"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:83
|
||||
#: lib/cannery_web/live/home_live.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Simple:"
|
||||
msgstr "Simple :"
|
||||
@ -403,9 +393,10 @@ msgstr "Acier"
|
||||
msgid "Stored in"
|
||||
msgstr "Est stocké dans"
|
||||
|
||||
#: lib/cannery_web/components/container_table_component.ex:52
|
||||
#: lib/cannery_web/components/topbar.ex:49
|
||||
#: lib/cannery_web/live/container_live/index.ex:127
|
||||
#: lib/cannery_web/live/tag_live/index.ex:32
|
||||
#: lib/cannery_web/live/tag_live/index.ex:44
|
||||
#: lib/cannery_web/live/tag_live/index.ex:54
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tags"
|
||||
@ -423,20 +414,20 @@ msgstr ""
|
||||
msgid "Text color"
|
||||
msgstr "Couleur du texte"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:52
|
||||
#: lib/cannery_web/live/home_live.ex:35
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "The self-hosted firearm tracker website"
|
||||
msgstr "Le site web de suivi d’arme à feux auto-hébergé"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tracer"
|
||||
msgstr "Traceuse"
|
||||
|
||||
#: lib/cannery_web/components/container_table_component.ex:49
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:68
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:35
|
||||
#: lib/cannery_web/live/container_live/index.ex:124
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Type"
|
||||
msgstr "Type"
|
||||
@ -452,7 +443,7 @@ msgstr "Type :"
|
||||
msgid "Users"
|
||||
msgstr "Utilisateurs"
|
||||
|
||||
#: lib/cannery_web/components/invite_card.ex:27
|
||||
#: lib/cannery_web/components/invite_card.ex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Uses Left:"
|
||||
msgstr "Utilisations restantes :"
|
||||
@ -462,22 +453,22 @@ msgstr "Utilisations restantes :"
|
||||
msgid "Uses left"
|
||||
msgstr "Utilisations restantes"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:48
|
||||
#: lib/cannery_web/live/home_live.ex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Welcome to %{name}"
|
||||
msgstr "Bienvenue à %{name}"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:77
|
||||
#: lib/cannery_web/live/home_live.ex:60
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Your data stays with you, period"
|
||||
msgstr "Vos données restent avec vous, point final"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:64
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:72
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No tags for this container"
|
||||
msgstr "Aucun tag pour ce conteneur"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:79
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:72
|
||||
#: lib/cannery_web/components/topbar.ex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Range"
|
||||
@ -488,8 +479,10 @@ msgstr "Portée"
|
||||
msgid "Range day"
|
||||
msgstr "Journée de stand"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:89
|
||||
#: lib/cannery_web/live/range_live/index.ex:83
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:45
|
||||
#: lib/cannery_web/components/shot_group_table_component.ex:44
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:94
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Date"
|
||||
msgstr "Date"
|
||||
@ -505,34 +498,24 @@ msgid "No ammo staged"
|
||||
msgstr "Aucune munition sélectionnée"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:3
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:26
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Record shots"
|
||||
msgstr "Tirs enregistrés"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo groups"
|
||||
msgstr "Groupes de munition"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:45
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Date (UTC)"
|
||||
msgstr "Date (UTC)"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:37
|
||||
#: lib/cannery_web/live/range_live/index.ex:32
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:42
|
||||
#: lib/cannery_web/live/range_live/index.ex:41
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Shot Records"
|
||||
msgstr "Modifier les enregistrements de tir"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:38
|
||||
#: lib/cannery_web/live/range_live/index.ex:49
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Shot Records"
|
||||
msgstr "Nouveaux enregistrements de tir"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:50
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:92
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No shots recorded"
|
||||
msgstr "Aucun tir enregistré"
|
||||
@ -543,24 +526,21 @@ msgstr "Aucun tir enregistré"
|
||||
msgid "Rounds left"
|
||||
msgstr "Cartouches restantes"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:87
|
||||
#: lib/cannery_web/live/range_live/index.ex:81
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:62
|
||||
#: lib/cannery_web/components/shot_group_table_component.ex:42
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:92
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds shot"
|
||||
msgstr "Cartouches tirées"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:44
|
||||
#: lib/cannery_web/live/range_live/index.ex:57
|
||||
#: lib/cannery_web/live/range_live/index.ex:67
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shot Records"
|
||||
msgstr "Enregistrements de tir"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:32
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move Ammo group"
|
||||
msgstr "Déplacer le groupe de munition"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:97
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:38
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:117
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move ammo"
|
||||
msgstr "Déplacer munition"
|
||||
@ -570,18 +550,18 @@ msgstr "Déplacer munition"
|
||||
msgid "No other containers"
|
||||
msgstr "Aucun autre conteneur"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:53
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:55
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shot log"
|
||||
msgstr "Évènements de tir"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:71
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:78
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:159
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:227
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:153
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:225
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:180
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:37
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:179
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:136
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "$%{amount}"
|
||||
@ -592,32 +572,32 @@ msgstr "%{amount} $"
|
||||
msgid "Bimetal"
|
||||
msgstr "Bi-métal"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:72
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Jacket type"
|
||||
msgstr "Type de douille"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:79
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Muzzle velocity"
|
||||
msgstr "Vélocité du canon"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:55
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:93
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:72
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder grains per charge"
|
||||
msgstr "Graines de poudre par charge"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:53
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:89
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder type"
|
||||
msgstr "Type de poudre"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:68
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:152
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:85
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "UPC"
|
||||
msgstr "UPC"
|
||||
@ -638,18 +618,18 @@ msgstr "Mot de passe actuel"
|
||||
msgid "New password"
|
||||
msgstr "Nouveau mot de passe"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:93
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stage"
|
||||
msgstr "Sélectionné"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:93
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage"
|
||||
msgstr "Désélectionner"
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:62
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:125
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Firing type"
|
||||
msgstr "Type d’allumage"
|
||||
@ -664,33 +644,33 @@ msgstr "Reconnexion en cours…"
|
||||
msgid "Loading..."
|
||||
msgstr "Chargement en cours…"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:27
|
||||
#: lib/cannery_web/live/container_live/show.ex:124
|
||||
#: lib/cannery_web/live/container_live/index.ex:32
|
||||
#: lib/cannery_web/live/container_live/show.ex:113
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name}"
|
||||
msgstr "Éditer %{name}"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:65
|
||||
#: lib/cannery_web/live/container_live/show.ex:125
|
||||
#: lib/cannery_web/live/container_live/index.ex:69
|
||||
#: lib/cannery_web/live/container_live/show.ex:114
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name} tags"
|
||||
msgstr "Éditer les tags de %{name}"
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:67
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:32
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds:"
|
||||
msgstr "Cartouches :"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:224
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:178
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:222
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:179
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:142
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No cost information"
|
||||
msgstr "Aucune information de prix"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:87
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "% left"
|
||||
msgstr "% restante"
|
||||
@ -735,7 +715,7 @@ msgstr "Mot de passe oublié ?"
|
||||
msgid "Log in"
|
||||
msgstr "Se connecter"
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:35
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:34
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Register"
|
||||
msgstr "S’enregistrer"
|
||||
@ -745,29 +725,17 @@ msgstr "S’enregistrer"
|
||||
msgid "Reset your password"
|
||||
msgstr "Réinitialiser votre mot de passe"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:36
|
||||
#: lib/cannery_web/live/range_live/index.ex:26
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:41
|
||||
#: lib/cannery_web/live/range_live/index.ex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Record Shots"
|
||||
msgstr "Enregistrer des tirs"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Copies"
|
||||
msgstr "Exemplaires"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo types"
|
||||
msgstr "Types de munition"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on"
|
||||
msgstr "Ajouté le"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:30
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on:"
|
||||
@ -779,19 +747,19 @@ msgid "User registered on"
|
||||
msgstr "Utilisateur·ice enregistré·e le"
|
||||
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:130
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "English"
|
||||
msgstr "Anglais"
|
||||
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:132
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "French"
|
||||
msgstr "Français"
|
||||
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:131
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "German"
|
||||
msgstr "Allemand"
|
||||
@ -801,48 +769,50 @@ msgstr "Allemand"
|
||||
msgid "Language"
|
||||
msgstr "Langue"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:151
|
||||
#: lib/cannery_web/live/home_live.ex:136
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Get involved!"
|
||||
msgstr "Impliquez-vous !"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:172
|
||||
#: lib/cannery_web/live/home_live.ex:157
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Help translate"
|
||||
msgstr "Aider à la traduction"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:183
|
||||
#: lib/cannery_web/live/home_live.ex:168
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Report bugs or request features"
|
||||
msgstr "Remonter des bugs ou une demande de fonctionnalité"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:161
|
||||
#: lib/cannery_web/live/home_live.ex:146
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "View the source code"
|
||||
msgstr "Voir le code source"
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:62
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Catalog"
|
||||
msgstr "Catalogue"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:40
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:45
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Edit Ammo"
|
||||
msgstr "Éditer le type de munition"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:38
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:43
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Move Ammo"
|
||||
msgstr "Déplacer munition"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:111
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:119
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "No ammo in this container"
|
||||
msgstr "Aucun groupe de munition pour ce conteneur"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:39
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:44
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Show Ammo"
|
||||
msgstr "Montrer le type de munition"
|
||||
@ -854,18 +824,18 @@ msgstr "Ce groupe de munition n’est pas dans un conteneur"
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:95
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:27
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Packs:"
|
||||
msgstr "Packages :"
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:25
|
||||
#: lib/cannery_web/live/home_live.ex:42
|
||||
#: lib/cannery_web/live/home_live.ex:25
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Cannery logo"
|
||||
msgstr "Logo de Cannery"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:44
|
||||
#: lib/cannery_web/live/home_live.ex:27
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "isn't he cute >:3"
|
||||
msgstr "N'est-il mignon >:3"
|
||||
@ -881,55 +851,45 @@ msgstr ""
|
||||
msgid "Container:"
|
||||
msgstr "Conteneur"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:39
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:152
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:97
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:105
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:61
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:195
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:193
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:19
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{percentage}%"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:114
|
||||
#: lib/cannery_web/live/range_live/index.ex:136
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds shot: %{count}"
|
||||
msgstr "Cartouches tirées"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:117
|
||||
#: lib/cannery_web/live/container_live/index.ex:125
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:100
|
||||
#: lib/cannery_web/components/container_table_component.ex:50
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Packs"
|
||||
msgstr "Packages :"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:97
|
||||
#: lib/cannery_web/live/container_live/index.ex:126
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:80
|
||||
#: lib/cannery_web/components/container_table_component.ex:51
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds"
|
||||
msgstr "Cartouches :"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:158
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:103
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:39
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:111
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "View as table"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:127
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:110
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total ever packs"
|
||||
msgstr ""
|
||||
@ -939,7 +899,7 @@ msgstr ""
|
||||
msgid "Total ever packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:108
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:91
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total ever rounds"
|
||||
msgstr "Quantité de cartouches"
|
||||
@ -949,7 +909,7 @@ msgstr "Quantité de cartouches"
|
||||
msgid "Total ever rounds:"
|
||||
msgstr "Nombre totale de cartouches tirées :"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:122
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:105
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used packs"
|
||||
msgstr ""
|
||||
@ -959,7 +919,7 @@ msgstr ""
|
||||
msgid "Used packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:103
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:86
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Used rounds"
|
||||
msgstr ""
|
||||
@ -974,7 +934,7 @@ msgstr ""
|
||||
msgid "Used up!"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:66
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds shot chart"
|
||||
msgstr "Cartouches tirées"
|
||||
@ -1074,24 +1034,25 @@ msgstr "Traceuse"
|
||||
msgid "UPC:"
|
||||
msgstr "UPC"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:137
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:120
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:132
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Average CPR"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:117
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:28
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:120
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Edit %{ammo_type_name}"
|
||||
msgstr "Éditer %{name}"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:39
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:233
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:231
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Empty"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:86
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "CPR"
|
||||
msgstr ""
|
||||
@ -1101,7 +1062,7 @@ msgstr ""
|
||||
msgid "CPR:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:84
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:77
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Original Count"
|
||||
msgstr "Nombre original :"
|
||||
@ -1110,3 +1071,86 @@ msgstr "Nombre original :"
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Original Count:"
|
||||
msgstr "Nombre original :"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:15
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Home"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:28
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:37
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total rounds:"
|
||||
msgstr "Nombre totale de cartouches tirées :"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:58
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Last used on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Last used on:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:178
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Never used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Purchased on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Purchased on:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:46
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Edit ammo"
|
||||
msgstr "Éditer le type de munition"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:8
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:46
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "No Ammo types"
|
||||
msgstr "Aucun type de munition"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Search catalog"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:57
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Search ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Search containers"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:36
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Search tags"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:85
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Search shot records"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:133
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Spanish"
|
||||
msgstr ""
|
||||
|
@ -23,18 +23,18 @@ msgstr ""
|
||||
# # Run "mix gettext.extract" to bring this file up to
|
||||
# # date. Leave "msgstr"s empty as changing them here has no
|
||||
# # effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery/containers.ex:140
|
||||
#: lib/cannery/containers.ex:179
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Container must be empty before deleting"
|
||||
msgstr "Le conteneur doit être vide pour être supprimé"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:88
|
||||
#: lib/cannery_web/live/container_live/show.ex:75
|
||||
#: lib/cannery_web/live/container_live/index.ex:92
|
||||
#: lib/cannery_web/live/container_live/show.ex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not delete %{name}: %{error}"
|
||||
msgstr "Impossible de supprimer %{name} : %{error}"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:76
|
||||
#: lib/cannery_web/live/container_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not find that container"
|
||||
msgstr "Impossible de trouver ce conteneur"
|
||||
@ -85,14 +85,14 @@ msgstr ""
|
||||
msgid "Reset password link is invalid or it has expired."
|
||||
msgstr "Le lien de réinitialisation de mot de passe est invalide ou expiré."
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:25
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:56
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:24
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:55
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Sorry, public registration is disabled"
|
||||
msgstr "Désolé, l’enregistrement public est désactivé"
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:15
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:46
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:14
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:45
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Sorry, this invite was not found or expired"
|
||||
msgstr "Désolé, cette invitation n’est pas trouvée ou est expirée"
|
||||
@ -122,17 +122,17 @@ msgstr "Vous n’êtes pas autorisé·e à voir cette page"
|
||||
msgid "You are not authorized to view this page."
|
||||
msgstr "Vous n’êtes pas autorisé·e à voir cette page."
|
||||
|
||||
#: lib/cannery/accounts/user.ex:138
|
||||
#: lib/cannery/accounts/user.ex:137
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "did not change"
|
||||
msgstr "est inchangé"
|
||||
|
||||
#: lib/cannery/accounts/user.ex:159
|
||||
#: lib/cannery/accounts/user.ex:158
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "does not match password"
|
||||
msgstr "le mot de passe ne correspond pas"
|
||||
|
||||
#: lib/cannery/accounts/user.ex:196
|
||||
#: lib/cannery/accounts/user.ex:195
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "is not valid"
|
||||
msgstr "n’est pas valide"
|
||||
@ -142,7 +142,7 @@ msgstr "n’est pas valide"
|
||||
msgid "must have the @ sign and no spaces"
|
||||
msgstr "doit contenir le symbole @ et aucune espace"
|
||||
|
||||
#: lib/cannery/tags.ex:40
|
||||
#: lib/cannery/tags.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tag not found"
|
||||
msgstr "Tag pas trouvé"
|
||||
@ -152,13 +152,13 @@ msgstr "Tag pas trouvé"
|
||||
msgid "Tag could not be added"
|
||||
msgstr "Le tag n’a pas pu être ajouté"
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:123
|
||||
#: lib/cannery/activity_log/shot_group.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be at least 1"
|
||||
msgstr "Le nombre doit être au moins égal à 1"
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:82
|
||||
#: lib/cannery/activity_log/shot_group.ex:119
|
||||
#: lib/cannery/activity_log/shot_group.ex:118
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be less than %{count}"
|
||||
msgstr "La quantité doit être inférieur à %{count}"
|
||||
@ -186,22 +186,22 @@ msgstr "Impossible d'analyser le nombre de copies"
|
||||
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
|
||||
msgstr "Nombre de copies invalide, doit être 1 et %{max}. Été %{multiplier}"
|
||||
|
||||
#: lib/cannery/ammo.ex:609
|
||||
#: lib/cannery/ammo.ex:686
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid multiplier"
|
||||
msgstr "Multiplicateur invalide"
|
||||
|
||||
#: lib/cannery/ammo/ammo_group.ex:94
|
||||
#: lib/cannery/ammo/ammo_group.ex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select an ammo type and container"
|
||||
msgstr "Veuillez choisir un type de munitions et un conteneur"
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select a valid user and ammo group"
|
||||
msgstr "Veuillez choisir un utilisateur valide et un groupe de munitions"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:67
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Your browser does not support the canvas element."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:77
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Please select a valid user and ammo pack"
|
||||
msgstr "Veuillez choisir un utilisateur valide et un groupe de munitions"
|
||||
|
@ -31,11 +31,11 @@ msgstr ""
|
||||
msgid "%{name} created successfully"
|
||||
msgstr "%{name} créé· avec succès"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:56
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:55
|
||||
#: lib/cannery_web/live/invite_live/index.ex:53
|
||||
#: lib/cannery_web/live/invite_live/index.ex:133
|
||||
#: lib/cannery_web/live/tag_live/index.ex:38
|
||||
#: lib/cannery_web/live/tag_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} deleted succesfully"
|
||||
msgstr "%{name} supprimé· avec succès"
|
||||
@ -50,8 +50,8 @@ msgstr "%{name} supprimé·e avec succès"
|
||||
msgid "%{name} enabled succesfully"
|
||||
msgstr "%{name} activé·e avec succès"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:81
|
||||
#: lib/cannery_web/live/container_live/show.ex:65
|
||||
#: lib/cannery_web/live/container_live/index.ex:85
|
||||
#: lib/cannery_web/live/container_live/show.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} has been deleted"
|
||||
msgstr "%{name} a été supprimé·e"
|
||||
@ -76,11 +76,6 @@ msgstr ""
|
||||
"Un lien pour confirmer votre changement de mél a été envoyé à la nouvelle "
|
||||
"adresse."
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo group deleted succesfully"
|
||||
msgstr "Groupe de munition supprimé avec succès"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:103
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:133
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -88,10 +83,10 @@ msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
||||
msgstr ""
|
||||
"Êtes-vous certain·e de supprimer %{email} ? Cette action est définitive !"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:223
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:51
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:39
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:92
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:136
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:59
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete %{name}?"
|
||||
msgstr "Êtes-vous certain·e de supprimer %{name} ?"
|
||||
@ -101,13 +96,13 @@ msgstr "Êtes-vous certain·e de supprimer %{name} ?"
|
||||
msgid "Are you sure you want to delete the invite for %{name}?"
|
||||
msgstr "Êtes-vous certain·e de supprimer l’invitation pour %{name} ?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:152
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this ammo?"
|
||||
msgstr "Êtes-vous certain·e de supprimer cette munition ?"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:155
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:160
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete your account?"
|
||||
msgstr "Êtes-vous certain·e de supprimer votre compte ?"
|
||||
@ -156,18 +151,18 @@ msgstr "Mot de passe réinitialiser avec succès."
|
||||
msgid "Password updated successfully."
|
||||
msgstr "Mot de passe mis à jour avec succès."
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:74
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please check your email to verify your account"
|
||||
msgstr "Veuillez vérifier votre mél pour confirmer votre compte"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:108
|
||||
#: lib/cannery_web/live/home_live.ex:91
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Register to setup %{name}"
|
||||
msgstr "S’enregistrer pour mettre en place %{name}"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:55
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:82
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:52
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:33
|
||||
@ -194,7 +189,7 @@ msgstr ""
|
||||
msgid "%{name} added successfully"
|
||||
msgstr "%{name} a été ajouté avec succès"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.ex:41
|
||||
#: lib/cannery_web/live/container_live/show.ex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{tag_name} has been removed from %{container_name}"
|
||||
msgstr "%{tag_name} a été retiré de %{container_name}"
|
||||
@ -209,19 +204,19 @@ msgstr "Ajout en cours…"
|
||||
msgid "Shots recorded successfully"
|
||||
msgstr "Tirs enregistré avec succès"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:27
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:28
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to unstage this ammo?"
|
||||
msgstr "Êtes-vous certain·e de vouloir désélectionner cette munition ?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:132
|
||||
#: lib/cannery_web/live/range_live/index.ex:159
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:137
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:118
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this shot record?"
|
||||
msgstr "Êtes-vous certain·e de vouloir supprimer cet enregistrement de tir ?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:78
|
||||
#: lib/cannery_web/live/range_live/index.ex:54
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:83
|
||||
#: lib/cannery_web/live/range_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shot records deleted succesfully"
|
||||
msgstr "Enregistrements de tir supprimés avec succès"
|
||||
@ -257,12 +252,12 @@ msgstr "%{name} retiré avec succès"
|
||||
msgid "You'll need to"
|
||||
msgstr "Vous aurez besoin de"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:67
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Creating..."
|
||||
msgstr "Création en cours…"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:141
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to change your language?"
|
||||
msgstr "Êtes-vous certain·e de vouloir changer votre langue ?"
|
||||
@ -272,12 +267,13 @@ msgstr "Êtes-vous certain·e de vouloir changer votre langue ?"
|
||||
msgid "Language updated successfully."
|
||||
msgstr "Langue mise à jour avec succès."
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:50
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:89
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:55
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Ammo deleted succesfully"
|
||||
msgstr "Groupe de munition supprimé avec succès"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:68
|
||||
#: lib/cannery_web/live/range_live/index.ex:95
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Ammo unstaged succesfully"
|
||||
msgstr "Groupe de munition désélectionner avec succès"
|
||||
@ -294,7 +290,7 @@ msgid_plural "Ammo added successfully"
|
||||
msgstr[0] "Groupe de munition mis à jour avec succès"
|
||||
msgstr[1] "Groupe de munition mis à jour avec succès"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:232
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:90
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:28
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
||||
|
@ -21,8 +21,8 @@ msgstr ""
|
||||
## Run "mix gettext.extract" to bring this file up to
|
||||
## date. Leave "msgstr"s empty as changing them here has no
|
||||
## effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:44
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:50
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:54
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:62
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add Ammo"
|
||||
@ -60,7 +60,7 @@ msgstr ""
|
||||
msgid "Create Invite"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:157
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:162
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Delete User"
|
||||
msgstr ""
|
||||
@ -132,7 +132,7 @@ msgid "Reset password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:53
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:81
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:31
|
||||
@ -147,7 +147,7 @@ msgstr ""
|
||||
msgid "Send instructions to reset password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:72
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Why not add one?"
|
||||
msgstr ""
|
||||
@ -167,9 +167,9 @@ msgstr ""
|
||||
msgid "Why not get some ready to shoot?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:80
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:100
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:38
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Record shots"
|
||||
msgstr ""
|
||||
@ -199,7 +199,7 @@ msgstr ""
|
||||
msgid "add a container first"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:66
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Create"
|
||||
msgstr ""
|
||||
@ -209,7 +209,7 @@ msgstr ""
|
||||
msgid "Change Language"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:139
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Change language"
|
||||
msgstr ""
|
||||
@ -245,18 +245,18 @@ msgid "Set Unlimited"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:32
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stage for range"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:30
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage from range"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:153
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Export Data as JSON"
|
||||
msgstr ""
|
||||
|
@ -21,12 +21,12 @@ msgstr ""
|
||||
## Run "mix gettext.extract" to bring this file up to
|
||||
## date. Leave "msgstr"s empty as changing them here has no
|
||||
## effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery_web/live/home_live.ex:64
|
||||
#: lib/cannery_web/live/home_live.ex:47
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} lets you easily keep an eye on your ammo levels before and after range day"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:86
|
||||
#: lib/cannery_web/live/home_live.ex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Access from any internet-capable device"
|
||||
msgstr ""
|
||||
@ -36,19 +36,21 @@ msgstr ""
|
||||
msgid "Admins"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:100
|
||||
#: lib/cannery_web/live/home_live.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Admins:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/shot_group_table_component.ex:41
|
||||
#: lib/cannery_web/components/topbar.ex:73
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:70
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:79
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:3
|
||||
#: lib/cannery_web/live/range_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:96
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:89
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo type"
|
||||
@ -59,8 +61,8 @@ msgstr ""
|
||||
msgid "Background color"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:140
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:82
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Blank"
|
||||
msgstr ""
|
||||
@ -70,58 +72,58 @@ msgstr ""
|
||||
msgid "Brass"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet core"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:46
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:37
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:49
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Caliber"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Cartridge"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:50
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Case material"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:72
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:65
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:67
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:57
|
||||
#: lib/cannery_web/live/container_live/index.ex:44
|
||||
#: lib/cannery_web/live/container_live/index.ex:53
|
||||
#: lib/cannery_web/live/container_live/index.ex:49
|
||||
#: lib/cannery_web/live/container_live/index.ex:58
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Containers"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:144
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Corrosive"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:83
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:76
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count"
|
||||
@ -133,9 +135,9 @@ msgstr ""
|
||||
msgid "Count:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_table_component.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:24
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:27
|
||||
#: lib/cannery_web/live/container_live/index.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
@ -146,27 +148,17 @@ msgstr ""
|
||||
msgid "Description:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:61
|
||||
#: lib/cannery_web/live/home_live.ex:44
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Easy to Use:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Ammo group"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:23
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.ex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Invite"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.ex:21
|
||||
#: lib/cannery_web/live/tag_live/index.ex:28
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Tag"
|
||||
msgstr ""
|
||||
@ -181,29 +173,29 @@ msgstr ""
|
||||
msgid "FMJ"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:59
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:103
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:76
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Grains"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:64
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:136
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Incendiary"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:95
|
||||
#: lib/cannery_web/live/home_live.ex:78
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Instance Information"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/invite_card.ex:32
|
||||
#: lib/cannery_web/components/invite_card.ex:35
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invite Disabled"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:128
|
||||
#: lib/cannery_web/live/home_live.ex:111
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invite Only"
|
||||
msgstr ""
|
||||
@ -220,9 +212,9 @@ msgstr ""
|
||||
msgid "Keep me logged in for 60 days"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_table_component.ex:48
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:69
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:42
|
||||
#: lib/cannery_web/live/container_live/index.ex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Location"
|
||||
msgstr ""
|
||||
@ -238,8 +230,8 @@ msgstr ""
|
||||
msgid "Magazine, Clip, Ammo Box, etc"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:67
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:84
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Manufacturer"
|
||||
msgstr ""
|
||||
@ -254,24 +246,24 @@ msgstr ""
|
||||
msgid "My cool ammo can"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:45
|
||||
#: lib/cannery_web/components/container_table_component.ex:46
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:62
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/container_live/index.ex:121
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Name"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:29
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:35
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:36
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:44
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:31
|
||||
#: lib/cannery_web/live/container_live/index.ex:38
|
||||
#: lib/cannery_web/live/container_live/index.ex:36
|
||||
#: lib/cannery_web/live/container_live/index.ex:43
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Container"
|
||||
msgstr ""
|
||||
@ -281,27 +273,24 @@ msgstr ""
|
||||
msgid "New Invite"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.ex:27
|
||||
#: lib/cannery_web/live/tag_live/index.ex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Tag"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:8
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No Ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No Ammo Types"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:166
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No ammo for this type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:8
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:47
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No containers"
|
||||
msgstr ""
|
||||
@ -313,16 +302,17 @@ msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:31
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:43
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No tags"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:37
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:88
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:88
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:81
|
||||
#: lib/cannery_web/components/shot_group_table_component.ex:43
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:49
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:93
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:29
|
||||
#: lib/cannery_web/live/range_live/index.ex:82
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Notes"
|
||||
msgstr ""
|
||||
@ -338,13 +328,13 @@ msgstr ""
|
||||
msgid "On the bookshelf"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:60
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:111
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Pressure"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:85
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:78
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Price paid"
|
||||
@ -355,23 +345,23 @@ msgstr ""
|
||||
msgid "Price paid:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:118
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:78
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Primer type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:127
|
||||
#: lib/cannery_web/live/home_live.ex:110
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Public Signups"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:73
|
||||
#: lib/cannery_web/live/home_live.ex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Secure:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:76
|
||||
#: lib/cannery_web/live/home_live.ex:59
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Self-host your own instance, or use an instance from someone you trust."
|
||||
msgstr ""
|
||||
@ -382,7 +372,7 @@ msgstr ""
|
||||
msgid "Settings"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:83
|
||||
#: lib/cannery_web/live/home_live.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Simple:"
|
||||
msgstr ""
|
||||
@ -397,9 +387,10 @@ msgstr ""
|
||||
msgid "Stored in"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_table_component.ex:52
|
||||
#: lib/cannery_web/components/topbar.ex:49
|
||||
#: lib/cannery_web/live/container_live/index.ex:127
|
||||
#: lib/cannery_web/live/tag_live/index.ex:32
|
||||
#: lib/cannery_web/live/tag_live/index.ex:44
|
||||
#: lib/cannery_web/live/tag_live/index.ex:54
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tags"
|
||||
@ -415,20 +406,20 @@ msgstr ""
|
||||
msgid "Text color"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:52
|
||||
#: lib/cannery_web/live/home_live.ex:35
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "The self-hosted firearm tracker website"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tracer"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_table_component.ex:49
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:68
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:35
|
||||
#: lib/cannery_web/live/container_live/index.ex:124
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
@ -444,7 +435,7 @@ msgstr ""
|
||||
msgid "Users"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/invite_card.ex:27
|
||||
#: lib/cannery_web/components/invite_card.ex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Uses Left:"
|
||||
msgstr ""
|
||||
@ -454,22 +445,22 @@ msgstr ""
|
||||
msgid "Uses left"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:48
|
||||
#: lib/cannery_web/live/home_live.ex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Welcome to %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:77
|
||||
#: lib/cannery_web/live/home_live.ex:60
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Your data stays with you, period"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:64
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:72
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No tags for this container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:79
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:72
|
||||
#: lib/cannery_web/components/topbar.ex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Range"
|
||||
@ -480,8 +471,10 @@ msgstr ""
|
||||
msgid "Range day"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:89
|
||||
#: lib/cannery_web/live/range_live/index.ex:83
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:45
|
||||
#: lib/cannery_web/components/shot_group_table_component.ex:44
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:94
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
@ -497,34 +490,24 @@ msgid "No ammo staged"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:3
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:26
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Record shots"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo groups"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:45
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Date (UTC)"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:37
|
||||
#: lib/cannery_web/live/range_live/index.ex:32
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:42
|
||||
#: lib/cannery_web/live/range_live/index.ex:41
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Shot Records"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:38
|
||||
#: lib/cannery_web/live/range_live/index.ex:49
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Shot Records"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:50
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:92
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No shots recorded"
|
||||
msgstr ""
|
||||
@ -535,24 +518,21 @@ msgstr ""
|
||||
msgid "Rounds left"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:87
|
||||
#: lib/cannery_web/live/range_live/index.ex:81
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:62
|
||||
#: lib/cannery_web/components/shot_group_table_component.ex:42
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:92
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds shot"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:44
|
||||
#: lib/cannery_web/live/range_live/index.ex:57
|
||||
#: lib/cannery_web/live/range_live/index.ex:67
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shot Records"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:32
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move Ammo group"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:97
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:38
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:117
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move ammo"
|
||||
msgstr ""
|
||||
@ -562,18 +542,18 @@ msgstr ""
|
||||
msgid "No other containers"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:53
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:55
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shot log"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:71
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:78
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:159
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:227
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:153
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:225
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:180
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:37
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:179
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:136
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "$%{amount}"
|
||||
@ -584,32 +564,32 @@ msgstr ""
|
||||
msgid "Bimetal"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:72
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Jacket type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:79
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Muzzle velocity"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:55
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:93
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:72
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder grains per charge"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:53
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:89
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:68
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:152
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:85
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "UPC"
|
||||
msgstr ""
|
||||
@ -630,18 +610,18 @@ msgstr ""
|
||||
msgid "New password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:93
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stage"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:93
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:62
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:125
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Firing type"
|
||||
msgstr ""
|
||||
@ -656,33 +636,33 @@ msgstr ""
|
||||
msgid "Loading..."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:27
|
||||
#: lib/cannery_web/live/container_live/show.ex:124
|
||||
#: lib/cannery_web/live/container_live/index.ex:32
|
||||
#: lib/cannery_web/live/container_live/show.ex:113
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:65
|
||||
#: lib/cannery_web/live/container_live/show.ex:125
|
||||
#: lib/cannery_web/live/container_live/index.ex:69
|
||||
#: lib/cannery_web/live/container_live/show.ex:114
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name} tags"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:67
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:32
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:224
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:178
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:222
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:179
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:142
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No cost information"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:87
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "% left"
|
||||
msgstr ""
|
||||
@ -727,7 +707,7 @@ msgstr ""
|
||||
msgid "Log in"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:35
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:34
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Register"
|
||||
msgstr ""
|
||||
@ -737,29 +717,17 @@ msgstr ""
|
||||
msgid "Reset your password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:36
|
||||
#: lib/cannery_web/live/range_live/index.ex:26
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:41
|
||||
#: lib/cannery_web/live/range_live/index.ex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Record Shots"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Copies"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo types"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:30
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on:"
|
||||
@ -771,19 +739,19 @@ msgid "User registered on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:130
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "English"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:132
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "French"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:131
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "German"
|
||||
msgstr ""
|
||||
@ -793,48 +761,50 @@ msgstr ""
|
||||
msgid "Language"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:151
|
||||
#: lib/cannery_web/live/home_live.ex:136
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Get involved!"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:172
|
||||
#: lib/cannery_web/live/home_live.ex:157
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Help translate"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:183
|
||||
#: lib/cannery_web/live/home_live.ex:168
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Report bugs or request features"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:161
|
||||
#: lib/cannery_web/live/home_live.ex:146
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "View the source code"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:62
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Catalog"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:40
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:45
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:38
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:43
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move Ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:111
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:119
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No ammo in this container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:39
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:44
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show Ammo"
|
||||
msgstr ""
|
||||
@ -846,18 +816,18 @@ msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:95
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:27
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:25
|
||||
#: lib/cannery_web/live/home_live.ex:42
|
||||
#: lib/cannery_web/live/home_live.ex:25
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Cannery logo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:44
|
||||
#: lib/cannery_web/live/home_live.ex:27
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "isn't he cute >:3"
|
||||
msgstr ""
|
||||
@ -872,55 +842,45 @@ msgstr ""
|
||||
msgid "Container:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:39
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:152
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:97
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:105
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:61
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:195
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:193
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:19
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{percentage}%"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:114
|
||||
#: lib/cannery_web/live/range_live/index.ex:136
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds shot: %{count}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:117
|
||||
#: lib/cannery_web/live/container_live/index.ex:125
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:100
|
||||
#: lib/cannery_web/components/container_table_component.ex:50
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Packs"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:97
|
||||
#: lib/cannery_web/live/container_live/index.ex:126
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:80
|
||||
#: lib/cannery_web/components/container_table_component.ex:51
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:158
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:103
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:39
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:111
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "View as table"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:127
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:110
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total ever packs"
|
||||
msgstr ""
|
||||
@ -930,7 +890,7 @@ msgstr ""
|
||||
msgid "Total ever packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:108
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:91
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total ever rounds"
|
||||
msgstr ""
|
||||
@ -940,7 +900,7 @@ msgstr ""
|
||||
msgid "Total ever rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:122
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:105
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used packs"
|
||||
msgstr ""
|
||||
@ -950,7 +910,7 @@ msgstr ""
|
||||
msgid "Used packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:103
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:86
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Used rounds"
|
||||
msgstr ""
|
||||
@ -965,7 +925,7 @@ msgstr ""
|
||||
msgid "Used up!"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:66
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds shot chart"
|
||||
msgstr ""
|
||||
@ -1065,24 +1025,25 @@ msgstr ""
|
||||
msgid "UPC:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:137
|
||||
#: lib/cannery_web/components/ammo_type_table_component.ex:120
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:132
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Average CPR"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:117
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:28
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:120
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Edit %{ammo_type_name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:39
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:233
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:231
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Empty"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:86
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "CPR"
|
||||
msgstr ""
|
||||
@ -1092,7 +1053,7 @@ msgstr ""
|
||||
msgid "CPR:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:84
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:77
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Original Count"
|
||||
msgstr ""
|
||||
@ -1101,3 +1062,86 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Original Count:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:15
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Home"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:28
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:37
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:58
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Last used on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Last used on:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:178
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Never used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Purchased on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Purchased on:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:46
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Edit ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:8
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:46
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "No Ammo types"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Search catalog"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:57
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Search ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Search containers"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:36
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Search tags"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:85
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Search shot records"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:133
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Spanish"
|
||||
msgstr ""
|
||||
|
@ -24,18 +24,18 @@ msgstr ""
|
||||
## Run "mix gettext.extract" to bring this file up to
|
||||
## date. Leave "msgstr"s empty as changing them here has no
|
||||
## effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery/containers.ex:140
|
||||
#: lib/cannery/containers.ex:179
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Container must be empty before deleting"
|
||||
msgstr "Caithfidh an coimeádán a bheidh follamh roimh scriosadh"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:88
|
||||
#: lib/cannery_web/live/container_live/show.ex:75
|
||||
#: lib/cannery_web/live/container_live/index.ex:92
|
||||
#: lib/cannery_web/live/container_live/show.ex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not delete %{name}: %{error}"
|
||||
msgstr "Ní feidir %{name} a scriosadh: %{error}"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:76
|
||||
#: lib/cannery_web/live/container_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not find that container"
|
||||
msgstr "Ní feidir an coimeádán sin a fáil"
|
||||
@ -86,14 +86,14 @@ msgstr ""
|
||||
msgid "Reset password link is invalid or it has expired."
|
||||
msgstr "Tá nasc an pasfhocail a athrú neamhbailí nó as dáta."
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:25
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:56
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:24
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:55
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Sorry, public registration is disabled"
|
||||
msgstr "Tá brón orainn, tá clarú póiblí bactha"
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:15
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:46
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:14
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:45
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Sorry, this invite was not found or expired"
|
||||
msgstr "Tá brón orainn, ní feidir an cuireadh seo a fáil nó tá sé as dáta"
|
||||
@ -123,17 +123,17 @@ msgstr "Níl cead agaibh féachaint ar an leathanach seo"
|
||||
msgid "You are not authorized to view this page."
|
||||
msgstr "Níl cead agaibh féachaint ar an leathanach seo."
|
||||
|
||||
#: lib/cannery/accounts/user.ex:138
|
||||
#: lib/cannery/accounts/user.ex:137
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "did not change"
|
||||
msgstr "Níor athraigh sé"
|
||||
|
||||
#: lib/cannery/accounts/user.ex:159
|
||||
#: lib/cannery/accounts/user.ex:158
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "does not match password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/accounts/user.ex:196
|
||||
#: lib/cannery/accounts/user.ex:195
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "is not valid"
|
||||
msgstr ""
|
||||
@ -143,7 +143,7 @@ msgstr ""
|
||||
msgid "must have the @ sign and no spaces"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/tags.ex:40
|
||||
#: lib/cannery/tags.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tag not found"
|
||||
msgstr ""
|
||||
@ -153,13 +153,13 @@ msgstr ""
|
||||
msgid "Tag could not be added"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:123
|
||||
#: lib/cannery/activity_log/shot_group.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be at least 1"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:82
|
||||
#: lib/cannery/activity_log/shot_group.ex:119
|
||||
#: lib/cannery/activity_log/shot_group.ex:118
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be less than %{count}"
|
||||
msgstr ""
|
||||
@ -185,22 +185,22 @@ msgstr ""
|
||||
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/ammo.ex:609
|
||||
#: lib/cannery/ammo.ex:686
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid multiplier"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/ammo/ammo_group.ex:94
|
||||
#: lib/cannery/ammo/ammo_group.ex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select an ammo type and container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select a valid user and ammo group"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:67
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Your browser does not support the canvas element."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:77
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Please select a valid user and ammo pack"
|
||||
msgstr ""
|
||||
|
@ -29,11 +29,11 @@ msgstr ""
|
||||
msgid "%{name} created successfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:56
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:55
|
||||
#: lib/cannery_web/live/invite_live/index.ex:53
|
||||
#: lib/cannery_web/live/invite_live/index.ex:133
|
||||
#: lib/cannery_web/live/tag_live/index.ex:38
|
||||
#: lib/cannery_web/live/tag_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} deleted succesfully"
|
||||
msgstr ""
|
||||
@ -48,8 +48,8 @@ msgstr ""
|
||||
msgid "%{name} enabled succesfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:81
|
||||
#: lib/cannery_web/live/container_live/show.ex:65
|
||||
#: lib/cannery_web/live/container_live/index.ex:85
|
||||
#: lib/cannery_web/live/container_live/show.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} has been deleted"
|
||||
msgstr ""
|
||||
@ -72,21 +72,16 @@ msgstr ""
|
||||
msgid "A link to confirm your email change has been sent to the new address."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo group deleted succesfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:103
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:133
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:223
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:51
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:39
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:92
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:136
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:59
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete %{name}?"
|
||||
msgstr ""
|
||||
@ -96,13 +91,13 @@ msgstr ""
|
||||
msgid "Are you sure you want to delete the invite for %{name}?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:152
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this ammo?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:155
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:160
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete your account?"
|
||||
msgstr ""
|
||||
@ -147,18 +142,18 @@ msgstr ""
|
||||
msgid "Password updated successfully."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:74
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please check your email to verify your account"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:108
|
||||
#: lib/cannery_web/live/home_live.ex:91
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Register to setup %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:55
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:82
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:52
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:33
|
||||
@ -183,7 +178,7 @@ msgstr ""
|
||||
msgid "%{name} added successfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.ex:41
|
||||
#: lib/cannery_web/live/container_live/show.ex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{tag_name} has been removed from %{container_name}"
|
||||
msgstr ""
|
||||
@ -198,19 +193,19 @@ msgstr ""
|
||||
msgid "Shots recorded successfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:27
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:28
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to unstage this ammo?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:132
|
||||
#: lib/cannery_web/live/range_live/index.ex:159
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:137
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:118
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this shot record?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:78
|
||||
#: lib/cannery_web/live/range_live/index.ex:54
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:83
|
||||
#: lib/cannery_web/live/range_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shot records deleted succesfully"
|
||||
msgstr ""
|
||||
@ -246,12 +241,12 @@ msgstr ""
|
||||
msgid "You'll need to"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:67
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Creating..."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:141
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to change your language?"
|
||||
msgstr ""
|
||||
@ -261,12 +256,13 @@ msgstr ""
|
||||
msgid "Language updated successfully."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:50
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:89
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:55
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo deleted succesfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:68
|
||||
#: lib/cannery_web/live/range_live/index.ex:95
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo unstaged succesfully"
|
||||
msgstr ""
|
||||
@ -283,7 +279,7 @@ msgid_plural "Ammo added successfully"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:232
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:90
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:28
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
||||
|
@ -18,11 +18,11 @@ msgstr ""
|
||||
msgid "%{name} created successfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:56
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:55
|
||||
#: lib/cannery_web/live/invite_live/index.ex:53
|
||||
#: lib/cannery_web/live/invite_live/index.ex:133
|
||||
#: lib/cannery_web/live/tag_live/index.ex:38
|
||||
#: lib/cannery_web/live/tag_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} deleted succesfully"
|
||||
msgstr ""
|
||||
@ -37,8 +37,8 @@ msgstr ""
|
||||
msgid "%{name} enabled succesfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:81
|
||||
#: lib/cannery_web/live/container_live/show.ex:65
|
||||
#: lib/cannery_web/live/container_live/index.ex:85
|
||||
#: lib/cannery_web/live/container_live/show.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} has been deleted"
|
||||
msgstr ""
|
||||
@ -61,21 +61,16 @@ msgstr ""
|
||||
msgid "A link to confirm your email change has been sent to the new address."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo group deleted succesfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:103
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:133
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:223
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:51
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:39
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:92
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:136
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:59
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete %{name}?"
|
||||
msgstr ""
|
||||
@ -85,13 +80,13 @@ msgstr ""
|
||||
msgid "Are you sure you want to delete the invite for %{name}?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:152
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this ammo?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:155
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:160
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete your account?"
|
||||
msgstr ""
|
||||
@ -136,18 +131,18 @@ msgstr ""
|
||||
msgid "Password updated successfully."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:74
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please check your email to verify your account"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:108
|
||||
#: lib/cannery_web/live/home_live.ex:91
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Register to setup %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:55
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:82
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:52
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:33
|
||||
@ -172,7 +167,7 @@ msgstr ""
|
||||
msgid "%{name} added successfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.ex:41
|
||||
#: lib/cannery_web/live/container_live/show.ex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{tag_name} has been removed from %{container_name}"
|
||||
msgstr ""
|
||||
@ -187,19 +182,19 @@ msgstr ""
|
||||
msgid "Shots recorded successfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:27
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:28
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to unstage this ammo?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:132
|
||||
#: lib/cannery_web/live/range_live/index.ex:159
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:137
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:118
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this shot record?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:78
|
||||
#: lib/cannery_web/live/range_live/index.ex:54
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:83
|
||||
#: lib/cannery_web/live/range_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shot records deleted succesfully"
|
||||
msgstr ""
|
||||
@ -235,12 +230,12 @@ msgstr ""
|
||||
msgid "You'll need to"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:67
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Creating..."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:141
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to change your language?"
|
||||
msgstr ""
|
||||
@ -250,12 +245,13 @@ msgstr ""
|
||||
msgid "Language updated successfully."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:50
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:89
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:55
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo deleted succesfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:68
|
||||
#: lib/cannery_web/live/range_live/index.ex:95
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo unstaged succesfully"
|
||||
msgstr ""
|
||||
@ -272,7 +268,7 @@ msgid_plural "Ammo added successfully"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:232
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:90
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:28
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
||||
|
16
priv/repo/migrations/20221119170815_add_more_indexes.exs
Normal file
16
priv/repo/migrations/20221119170815_add_more_indexes.exs
Normal file
@ -0,0 +1,16 @@
|
||||
defmodule Cannery.Repo.Migrations.AddMoreIndexes do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create unique_index(:container_tags, [:tag_id, :container_id])
|
||||
|
||||
create index(:ammo_groups, [:user_id], where: "count = 0", name: :empty_ammo_groups_index)
|
||||
create index(:ammo_groups, [:user_id, :ammo_type_id])
|
||||
create index(:ammo_groups, [:user_id, :container_id])
|
||||
|
||||
create index(:ammo_types, [:user_id])
|
||||
|
||||
drop index(:shot_groups, [:id])
|
||||
create index(:shot_groups, [:user_id, :ammo_group_id])
|
||||
end
|
||||
end
|
@ -0,0 +1,19 @@
|
||||
defmodule Cannery.Repo.Migrations.AddPurchaseDateToAmmoGroup do
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
alter table(:ammo_groups) do
|
||||
add :purchased_on, :date
|
||||
end
|
||||
|
||||
flush()
|
||||
|
||||
execute("UPDATE ammo_groups SET purchased_on = inserted_at::DATE WHERE purchased_on IS NULL")
|
||||
end
|
||||
|
||||
def down do
|
||||
alter table(:ammo_groups) do
|
||||
remove :purchased_on
|
||||
end
|
||||
end
|
||||
end
|
119
priv/repo/migrations/20221202233156_add_search.exs
Normal file
119
priv/repo/migrations/20221202233156_add_search.exs
Normal file
@ -0,0 +1,119 @@
|
||||
defmodule Cannery.Repo.Migrations.AddSearch do
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
execute """
|
||||
CREATE FUNCTION immutable_to_string(integer, text)
|
||||
RETURNS text LANGUAGE sql IMMUTABLE as
|
||||
$$SELECT coalesce(($1)::TEXT, $2)::TEXT$$
|
||||
"""
|
||||
|
||||
execute """
|
||||
CREATE FUNCTION immutable_to_string(double precision, text)
|
||||
RETURNS text LANGUAGE sql IMMUTABLE as
|
||||
$$SELECT coalesce(($1)::TEXT, $2)::TEXT$$
|
||||
"""
|
||||
|
||||
execute """
|
||||
CREATE FUNCTION immutable_to_string(date, text)
|
||||
RETURNS text LANGUAGE sql IMMUTABLE as
|
||||
$$SELECT coalesce(($1)::TEXT, $2)::TEXT$$
|
||||
"""
|
||||
|
||||
execute """
|
||||
CREATE FUNCTION boolean_to_string(boolean, text, text)
|
||||
RETURNS text LANGUAGE sql IMMUTABLE as
|
||||
$$SELECT (CASE $1 WHEN true THEN $2 ELSE $3 END)::TEXT$$
|
||||
"""
|
||||
|
||||
execute """
|
||||
ALTER TABLE ammo_groups
|
||||
ADD COLUMN search tsvector
|
||||
GENERATED ALWAYS AS (
|
||||
setweight(to_tsvector('english', coalesce("notes", '')), 'A') ||
|
||||
setweight(to_tsvector('english', immutable_to_string("price_paid", '')), 'B') ||
|
||||
setweight(to_tsvector('english', immutable_to_string("purchased_on", '')), 'B') ||
|
||||
setweight(to_tsvector('english', immutable_to_string("count", '')), 'C')
|
||||
) STORED
|
||||
"""
|
||||
|
||||
execute("CREATE INDEX ammo_groups_trgm_idx ON ammo_groups USING GIN (search)")
|
||||
|
||||
execute """
|
||||
ALTER TABLE containers
|
||||
ADD COLUMN search tsvector
|
||||
GENERATED ALWAYS AS (
|
||||
setweight(to_tsvector('english', coalesce("name", '')), 'A') ||
|
||||
setweight(to_tsvector('english', coalesce("desc", '')), 'B') ||
|
||||
setweight(to_tsvector('english', coalesce("location", '')), 'B') ||
|
||||
setweight(to_tsvector('english', coalesce("type", '')), 'C')
|
||||
) STORED
|
||||
"""
|
||||
|
||||
execute("CREATE INDEX containers_trgm_idx ON containers USING GIN (search)")
|
||||
|
||||
execute """
|
||||
ALTER TABLE tags
|
||||
ADD COLUMN search tsvector
|
||||
GENERATED ALWAYS AS (
|
||||
setweight(to_tsvector('english', coalesce("name", '')), 'A')
|
||||
) STORED
|
||||
"""
|
||||
|
||||
execute("CREATE INDEX tags_trgm_idx ON tags USING GIN (search)")
|
||||
|
||||
execute """
|
||||
ALTER TABLE ammo_types
|
||||
ADD COLUMN search tsvector
|
||||
GENERATED ALWAYS AS (
|
||||
setweight(to_tsvector('english', coalesce("name", '')), 'A') ||
|
||||
setweight(to_tsvector('english', coalesce("desc", '')), 'B') ||
|
||||
setweight(to_tsvector('english', coalesce("bullet_type", '')), 'C') ||
|
||||
setweight(to_tsvector('english', coalesce("bullet_core", '')), 'C') ||
|
||||
setweight(to_tsvector('english', coalesce("cartridge", '')), 'C') ||
|
||||
setweight(to_tsvector('english', coalesce("caliber", '')), 'C') ||
|
||||
setweight(to_tsvector('english', coalesce("case_material", '')), 'C') ||
|
||||
setweight(to_tsvector('english', coalesce("jacket_type", '')), 'C') ||
|
||||
setweight(to_tsvector('english', immutable_to_string("muzzle_velocity", '')), 'C') ||
|
||||
setweight(to_tsvector('english', coalesce("powder_type", '')), 'C') ||
|
||||
setweight(to_tsvector('english', immutable_to_string("powder_grains_per_charge", '')), 'C') ||
|
||||
setweight(to_tsvector('english', immutable_to_string("grains", '')), 'C') ||
|
||||
setweight(to_tsvector('english', coalesce("pressure", '')), 'C') ||
|
||||
setweight(to_tsvector('english', coalesce("primer_type", '')), 'C') ||
|
||||
setweight(to_tsvector('english', coalesce("firing_type", '')), 'C') ||
|
||||
setweight(to_tsvector('english', boolean_to_string("tracer", 'tracer', '')), 'C') ||
|
||||
setweight(to_tsvector('english', boolean_to_string("incendiary", 'incendiary', '')), 'C') ||
|
||||
setweight(to_tsvector('english', boolean_to_string("blank", 'blank', '')), 'C') ||
|
||||
setweight(to_tsvector('english', boolean_to_string("corrosive", 'corrosive', '')), 'C') ||
|
||||
setweight(to_tsvector('english', coalesce("manufacturer", '')), 'D') ||
|
||||
setweight(to_tsvector('english', coalesce("upc", '')), 'D')
|
||||
) STORED
|
||||
"""
|
||||
|
||||
execute("CREATE INDEX ammo_types_trgm_idx ON ammo_types USING GIN (search)")
|
||||
|
||||
execute """
|
||||
ALTER TABLE shot_groups
|
||||
ADD COLUMN search tsvector
|
||||
GENERATED ALWAYS AS (
|
||||
setweight(to_tsvector('english', coalesce(notes, '')), 'A') ||
|
||||
setweight(to_tsvector('english', immutable_to_string(count, '')), 'B') ||
|
||||
setweight(to_tsvector('english', immutable_to_string(date, '')), 'C')
|
||||
) STORED
|
||||
"""
|
||||
|
||||
execute("CREATE INDEX shot_groups_trgm_idx ON shot_groups USING GIN (search)")
|
||||
end
|
||||
|
||||
def down do
|
||||
alter table(:ammo_groups), do: remove(:search)
|
||||
alter table(:containers), do: remove(:search)
|
||||
alter table(:tags), do: remove(:search)
|
||||
alter table(:ammo_types), do: remove(:search)
|
||||
alter table(:shot_groups), do: remove(:search)
|
||||
execute("DROP FUNCTION immutable_to_string(double precision, text)")
|
||||
execute("DROP FUNCTION immutable_to_string(integer, text)")
|
||||
execute("DROP FUNCTION immutable_to_string(date, text)")
|
||||
execute("DROP FUNCTION boolean_to_string(boolean, text, text)")
|
||||
end
|
||||
end
|
@ -104,7 +104,7 @@ defmodule Cannery.AccountsTest do
|
||||
|
||||
describe "change_user_registration/2" do
|
||||
test "returns a changeset" do
|
||||
assert %Changeset{} = changeset = Accounts.change_user_registration(%User{})
|
||||
assert %Changeset{} = changeset = Accounts.change_user_registration()
|
||||
assert changeset.required == [:password, :email]
|
||||
end
|
||||
|
||||
@ -112,8 +112,7 @@ defmodule Cannery.AccountsTest do
|
||||
email = unique_user_email()
|
||||
password = valid_user_password()
|
||||
|
||||
changeset =
|
||||
Accounts.change_user_registration(%User{}, %{"email" => email, "password" => password})
|
||||
changeset = Accounts.change_user_registration(%{"email" => email, "password" => password})
|
||||
|
||||
assert changeset.valid?
|
||||
assert get_change(changeset, :email) == email
|
||||
|
@ -38,17 +38,56 @@ defmodule Cannery.ActivityLogTest do
|
||||
]
|
||||
end
|
||||
|
||||
test "list_shot_groups/0 returns all shot_groups",
|
||||
test "list_shot_groups/1 returns all shot_groups",
|
||||
%{shot_group: shot_group, current_user: current_user} do
|
||||
assert ActivityLog.list_shot_groups(current_user) == [shot_group]
|
||||
end
|
||||
|
||||
test "get_shot_group!/1 returns the shot_group with given id",
|
||||
test "list_shot_groups/2 returns relevant shot_groups for a user", %{
|
||||
ammo_type: ammo_type,
|
||||
ammo_group: ammo_group,
|
||||
container: container,
|
||||
current_user: current_user
|
||||
} do
|
||||
shot_group_a = shot_group_fixture(%{"notes" => "amazing"}, current_user, ammo_group)
|
||||
|
||||
{1, [another_ammo_group]} =
|
||||
ammo_group_fixture(%{"notes" => "stupendous"}, ammo_type, container, current_user)
|
||||
|
||||
shot_group_b = shot_group_fixture(current_user, another_ammo_group)
|
||||
|
||||
another_ammo_type = ammo_type_fixture(%{"name" => "fabulous ammo"}, current_user)
|
||||
|
||||
{1, [yet_another_ammo_group]} =
|
||||
ammo_group_fixture(another_ammo_type, container, current_user)
|
||||
|
||||
shot_group_c = shot_group_fixture(current_user, yet_another_ammo_group)
|
||||
|
||||
random_user = user_fixture()
|
||||
random_container = container_fixture(random_user)
|
||||
random_ammo_type = ammo_type_fixture(random_user)
|
||||
|
||||
{1, [random_ammo_group]} =
|
||||
ammo_group_fixture(random_ammo_type, random_container, random_user)
|
||||
|
||||
_shouldnt_return = shot_group_fixture(random_user, random_ammo_group)
|
||||
|
||||
# notes
|
||||
assert ActivityLog.list_shot_groups("amazing", current_user) == [shot_group_a]
|
||||
|
||||
# ammo group attributes
|
||||
assert ActivityLog.list_shot_groups("stupendous", current_user) == [shot_group_b]
|
||||
|
||||
# ammo type attributes
|
||||
assert ActivityLog.list_shot_groups("fabulous", current_user) == [shot_group_c]
|
||||
end
|
||||
|
||||
test "get_shot_group!/2 returns the shot_group with given id",
|
||||
%{shot_group: shot_group, current_user: current_user} do
|
||||
assert ActivityLog.get_shot_group!(shot_group.id, current_user) == shot_group
|
||||
end
|
||||
|
||||
test "get_shot_group!/1 does not return a shot_group of another user",
|
||||
test "get_shot_group!/2 does not return a shot_group of another user",
|
||||
%{shot_group: shot_group} do
|
||||
another_user = user_fixture()
|
||||
|
||||
@ -57,7 +96,7 @@ defmodule Cannery.ActivityLogTest do
|
||||
end
|
||||
end
|
||||
|
||||
test "create_shot_group/1 with valid data creates a shot_group",
|
||||
test "create_shot_group/3 with valid data creates a shot_group",
|
||||
%{current_user: current_user, ammo_group: ammo_group} do
|
||||
valid_attrs = %{"count" => 10, "date" => ~D[2022-02-13], "notes" => "some notes"}
|
||||
|
||||
@ -69,7 +108,7 @@ defmodule Cannery.ActivityLogTest do
|
||||
assert shot_group.notes == "some notes"
|
||||
end
|
||||
|
||||
test "create_shot_group/1 removes corresponding count from ammo group",
|
||||
test "create_shot_group/3 removes corresponding count from ammo group",
|
||||
%{
|
||||
current_user: current_user,
|
||||
ammo_group: %{id: ammo_group_id, count: org_count} = ammo_group
|
||||
@ -85,7 +124,7 @@ defmodule Cannery.ActivityLogTest do
|
||||
assert new_count == 10
|
||||
end
|
||||
|
||||
test "create_shot_group/1 does not remove more than ammo group amount",
|
||||
test "create_shot_group/3 does not remove more than ammo group amount",
|
||||
%{current_user: current_user, ammo_group: %{id: ammo_group_id} = ammo_group} do
|
||||
valid_attrs = %{"count" => 20, "date" => ~D[2022-02-13], "notes" => "some notes"}
|
||||
|
||||
@ -100,7 +139,7 @@ defmodule Cannery.ActivityLogTest do
|
||||
ActivityLog.create_shot_group(%{"count" => 1}, current_user, ammo_group)
|
||||
end
|
||||
|
||||
test "create_shot_group/1 with invalid data returns error changeset",
|
||||
test "create_shot_group/3 with invalid data returns error changeset",
|
||||
%{current_user: current_user, ammo_group: ammo_group} do
|
||||
invalid_params = %{"count" => nil, "date" => nil, "notes" => nil}
|
||||
|
||||
@ -108,7 +147,7 @@ defmodule Cannery.ActivityLogTest do
|
||||
ActivityLog.create_shot_group(invalid_params, current_user, ammo_group)
|
||||
end
|
||||
|
||||
test "update_shot_group/2 with valid data updates the shot_group and ammo_group",
|
||||
test "update_shot_group/3 with valid data updates the shot_group and ammo_group",
|
||||
%{
|
||||
shot_group: shot_group,
|
||||
ammo_group: %{id: ammo_group_id},
|
||||
@ -149,7 +188,7 @@ defmodule Cannery.ActivityLogTest do
|
||||
assert ammo_group.count == 0
|
||||
end
|
||||
|
||||
test "update_shot_group/2 with invalid data returns error changeset",
|
||||
test "update_shot_group/3 with invalid data returns error changeset",
|
||||
%{shot_group: shot_group, current_user: current_user} do
|
||||
assert {:error, %Ecto.Changeset{}} =
|
||||
ActivityLog.update_shot_group(
|
||||
@ -168,7 +207,7 @@ defmodule Cannery.ActivityLogTest do
|
||||
assert shot_group == ActivityLog.get_shot_group!(shot_group.id, current_user)
|
||||
end
|
||||
|
||||
test "delete_shot_group/1 deletes the shot_group and adds value back",
|
||||
test "delete_shot_group/2 deletes the shot_group and adds value back",
|
||||
%{shot_group: shot_group, current_user: current_user, ammo_group: %{id: ammo_group_id}} do
|
||||
assert {:ok, %ShotGroup{}} = ActivityLog.delete_shot_group(shot_group, current_user)
|
||||
|
||||
|
@ -4,7 +4,7 @@ defmodule Cannery.AmmoTest do
|
||||
"""
|
||||
|
||||
use Cannery.DataCase
|
||||
alias Cannery.{Ammo, Ammo.AmmoGroup, Ammo.AmmoType}
|
||||
alias Cannery.{Ammo, Ammo.AmmoGroup, Ammo.AmmoType, Containers}
|
||||
alias Ecto.Changeset
|
||||
|
||||
@moduletag :ammo_test
|
||||
@ -40,11 +40,55 @@ defmodule Cannery.AmmoTest do
|
||||
[ammo_type: ammo_type_fixture(current_user), current_user: current_user]
|
||||
end
|
||||
|
||||
test "list_ammo_types/0 returns all ammo_types",
|
||||
test "list_ammo_types/1 returns all ammo_types",
|
||||
%{ammo_type: ammo_type, current_user: current_user} do
|
||||
assert Ammo.list_ammo_types(current_user) == [ammo_type]
|
||||
end
|
||||
|
||||
test "list_ammo_types/1 returns relevant ammo_types for a user",
|
||||
%{current_user: current_user} do
|
||||
ammo_type_a =
|
||||
%{"name" => "bullets", "desc" => "has some pews in it", "grains" => 5}
|
||||
|> ammo_type_fixture(current_user)
|
||||
|
||||
ammo_type_b =
|
||||
%{"name" => "hollows", "grains" => 3}
|
||||
|> ammo_type_fixture(current_user)
|
||||
|
||||
ammo_type_c =
|
||||
%{
|
||||
"name" => "jackets",
|
||||
"desc" => "brass shell",
|
||||
"tracer" => true
|
||||
}
|
||||
|> ammo_type_fixture(current_user)
|
||||
|
||||
_shouldnt_return =
|
||||
%{
|
||||
"name" => "bullet",
|
||||
"desc" => "pews brass shell"
|
||||
}
|
||||
|> ammo_type_fixture(user_fixture())
|
||||
|
||||
# name
|
||||
assert Ammo.list_ammo_types("bullet", current_user) == [ammo_type_a]
|
||||
assert Ammo.list_ammo_types("bullets", current_user) == [ammo_type_a]
|
||||
assert Ammo.list_ammo_types("hollow", current_user) == [ammo_type_b]
|
||||
assert Ammo.list_ammo_types("jacket", current_user) == [ammo_type_c]
|
||||
|
||||
# desc
|
||||
assert Ammo.list_ammo_types("pew", current_user) == [ammo_type_a]
|
||||
assert Ammo.list_ammo_types("brass", current_user) == [ammo_type_c]
|
||||
assert Ammo.list_ammo_types("shell", current_user) == [ammo_type_c]
|
||||
|
||||
# grains (integer)
|
||||
assert Ammo.list_ammo_types("5", current_user) == [ammo_type_a]
|
||||
assert Ammo.list_ammo_types("3", current_user) == [ammo_type_b]
|
||||
|
||||
# tracer (boolean)
|
||||
assert Ammo.list_ammo_types("tracer", current_user) == [ammo_type_c]
|
||||
end
|
||||
|
||||
test "get_ammo_type!/1 returns the ammo_type with given id",
|
||||
%{ammo_type: ammo_type, current_user: current_user} do
|
||||
assert Ammo.get_ammo_type!(ammo_type.id, current_user) == ammo_type
|
||||
@ -224,9 +268,22 @@ defmodule Cannery.AmmoTest do
|
||||
end
|
||||
|
||||
describe "ammo_groups" do
|
||||
@valid_attrs %{"count" => 42, "notes" => "some notes", "price_paid" => 120.5}
|
||||
@update_attrs %{"count" => 43, "notes" => "some updated notes", "price_paid" => 456.7}
|
||||
@invalid_attrs %{"count" => nil, "notes" => nil, "price_paid" => nil}
|
||||
@valid_attrs %{
|
||||
"count" => 42,
|
||||
"notes" => "some notes",
|
||||
"price_paid" => 120.5,
|
||||
"purchased_on" => ~D[2022-11-19]
|
||||
}
|
||||
@update_attrs %{
|
||||
"count" => 43,
|
||||
"notes" => "some updated notes",
|
||||
"price_paid" => 456.7
|
||||
}
|
||||
@invalid_attrs %{
|
||||
"count" => nil,
|
||||
"notes" => nil,
|
||||
"price_paid" => nil
|
||||
}
|
||||
|
||||
setup do
|
||||
current_user = user_fixture()
|
||||
@ -237,6 +294,13 @@ defmodule Cannery.AmmoTest do
|
||||
%{"count" => 50, "price_paid" => 36.1}
|
||||
|> ammo_group_fixture(ammo_type, container, current_user)
|
||||
|
||||
another_user = user_fixture()
|
||||
another_ammo_type = ammo_type_fixture(another_user)
|
||||
another_container = container_fixture(another_user)
|
||||
|
||||
{1, [_shouldnt_show_up]} =
|
||||
ammo_group_fixture(another_ammo_type, another_container, another_user)
|
||||
|
||||
[
|
||||
ammo_type: ammo_type,
|
||||
ammo_group: ammo_group,
|
||||
@ -245,7 +309,7 @@ defmodule Cannery.AmmoTest do
|
||||
]
|
||||
end
|
||||
|
||||
test "list_ammo_groups/2 returns all ammo_groups",
|
||||
test "list_ammo_groups/3 returns all ammo_groups",
|
||||
%{
|
||||
ammo_type: ammo_type,
|
||||
ammo_group: ammo_group,
|
||||
@ -257,13 +321,65 @@ defmodule Cannery.AmmoTest do
|
||||
|
||||
shot_group_fixture(%{"count" => 30}, current_user, another_ammo_group)
|
||||
another_ammo_group = another_ammo_group |> Repo.reload!()
|
||||
assert Ammo.list_ammo_groups(current_user) == [ammo_group] |> Repo.preload(:shot_groups)
|
||||
|
||||
assert Ammo.list_ammo_groups(current_user, true)
|
||||
assert Ammo.list_ammo_groups(nil, false, current_user) ==
|
||||
[ammo_group] |> preload_ammo_group()
|
||||
|
||||
assert Ammo.list_ammo_groups(nil, true, current_user)
|
||||
|> Enum.sort_by(fn %{count: count} -> count end) ==
|
||||
[another_ammo_group, ammo_group] |> Repo.preload(:shot_groups)
|
||||
[another_ammo_group, ammo_group] |> preload_ammo_group()
|
||||
end
|
||||
|
||||
test "list_ammo_groups/3 returns relevant ammo groups when searched",
|
||||
%{
|
||||
ammo_type: ammo_type,
|
||||
ammo_group: ammo_group,
|
||||
container: container,
|
||||
current_user: current_user
|
||||
} do
|
||||
{1, [another_ammo_group]} =
|
||||
%{"count" => 49, "notes" => "cool ammo group"}
|
||||
|> ammo_group_fixture(ammo_type, container, current_user)
|
||||
|
||||
another_ammo_type = ammo_type_fixture(%{"name" => "amazing ammo"}, current_user)
|
||||
another_container = container_fixture(%{"name" => "fantastic container"}, current_user)
|
||||
|
||||
tag = tag_fixture(%{"name" => "stupendous tag"}, current_user)
|
||||
Containers.add_tag!(another_container, tag, current_user)
|
||||
|
||||
{1, [amazing_ammo_group]} =
|
||||
ammo_group_fixture(%{"count" => 48}, another_ammo_type, container, current_user)
|
||||
|
||||
{1, [fantastic_ammo_group]} =
|
||||
ammo_group_fixture(%{"count" => 47}, ammo_type, another_container, current_user)
|
||||
|
||||
assert Ammo.list_ammo_groups(nil, false, current_user)
|
||||
|> Enum.sort_by(fn %{count: count} -> count end) ==
|
||||
[fantastic_ammo_group, amazing_ammo_group, another_ammo_group, ammo_group]
|
||||
|> preload_ammo_group()
|
||||
|
||||
# search works for ammo group attributes
|
||||
assert Ammo.list_ammo_groups("cool", true, current_user) ==
|
||||
[another_ammo_group] |> preload_ammo_group()
|
||||
|
||||
# search works for ammo type attributes
|
||||
assert Ammo.list_ammo_groups("amazing", true, current_user) ==
|
||||
[amazing_ammo_group] |> preload_ammo_group()
|
||||
|
||||
# search works for container attributes
|
||||
assert Ammo.list_ammo_groups("fantastic", true, current_user) ==
|
||||
[fantastic_ammo_group] |> preload_ammo_group()
|
||||
|
||||
# search works for container tag attributes
|
||||
assert Ammo.list_ammo_groups("stupendous", true, current_user) ==
|
||||
[fantastic_ammo_group] |> preload_ammo_group()
|
||||
|
||||
assert Ammo.list_ammo_groups("random", true, current_user) == []
|
||||
end
|
||||
|
||||
defp preload_ammo_group(ammo_group),
|
||||
do: ammo_group |> Repo.preload([:ammo_type, :shot_groups, container: :tags])
|
||||
|
||||
test "list_ammo_groups_for_type/2 returns all ammo_groups for a type",
|
||||
%{
|
||||
ammo_type: ammo_type,
|
||||
|
@ -22,7 +22,12 @@ defmodule Cannery.ContainersTest do
|
||||
"name" => "some updated name",
|
||||
"type" => "some updated type"
|
||||
}
|
||||
@invalid_attrs %{"desc" => nil, "location" => nil, "name" => nil, "type" => nil}
|
||||
@invalid_attrs %{
|
||||
"desc" => nil,
|
||||
"location" => nil,
|
||||
"name" => nil,
|
||||
"type" => nil
|
||||
}
|
||||
|
||||
describe "containers" do
|
||||
setup do
|
||||
@ -34,9 +39,47 @@ defmodule Cannery.ContainersTest do
|
||||
test "list_containers/1 returns all containers",
|
||||
%{current_user: current_user, container: container} do
|
||||
assert Containers.list_containers(current_user) ==
|
||||
[container |> Repo.preload([:ammo_groups, :tags])]
|
||||
[container] |> preload_containers()
|
||||
end
|
||||
|
||||
test "list_containers/2 returns relevant containers for a user",
|
||||
%{current_user: current_user} do
|
||||
container_a =
|
||||
container_fixture(%{"name" => "my cool container"}, current_user) |> preload_containers()
|
||||
|
||||
container_b =
|
||||
container_fixture(%{"desc" => "a fascinating description"}, current_user)
|
||||
|> preload_containers()
|
||||
|
||||
container_c = container_fixture(%{"location" => "a secret place"}, current_user)
|
||||
tag = tag_fixture(%{"name" => "stupendous tag"}, current_user)
|
||||
Containers.add_tag!(container_c, tag, current_user)
|
||||
container_c = container_c |> preload_containers()
|
||||
|
||||
container_d = container_fixture(%{"type" => "musty old box"}, current_user)
|
||||
tag = tag_fixture(%{"name" => "amazing tag"}, current_user)
|
||||
Containers.add_tag!(container_d, tag, current_user)
|
||||
container_d = container_d |> preload_containers()
|
||||
|
||||
_shouldnt_return =
|
||||
container_fixture(%{"name" => "another person's container"}, user_fixture())
|
||||
|
||||
# attributes
|
||||
assert Containers.list_containers("cool", current_user) == [container_a]
|
||||
assert Containers.list_containers("fascinating", current_user) == [container_b]
|
||||
assert Containers.list_containers("secret", current_user) == [container_c]
|
||||
assert Containers.list_containers("box", current_user) == [container_d]
|
||||
|
||||
# tags
|
||||
assert Containers.list_containers("stupendous", current_user) == [container_c]
|
||||
assert Containers.list_containers("amazing", current_user) == [container_d]
|
||||
|
||||
assert Containers.list_containers("asajslkdflskdf", current_user) == []
|
||||
end
|
||||
|
||||
defp preload_containers(containers),
|
||||
do: containers |> Repo.preload([:ammo_groups, :tags])
|
||||
|
||||
test "get_container!/1 returns the container with given id",
|
||||
%{current_user: current_user, container: container} do
|
||||
assert Containers.get_container!(container.id, current_user) ==
|
||||
|
@ -31,10 +31,28 @@ defmodule Cannery.TagsTest do
|
||||
[tag: tag_fixture(current_user), current_user: current_user]
|
||||
end
|
||||
|
||||
test "list_tags/0 returns all tags", %{tag: tag, current_user: current_user} do
|
||||
test "list_tags/1 returns all tags", %{tag: tag, current_user: current_user} do
|
||||
assert Tags.list_tags(current_user) == [tag]
|
||||
end
|
||||
|
||||
test "list_tags/2 returns relevant tags for a user", %{current_user: current_user} do
|
||||
tag_a = tag_fixture(%{"name" => "bullets"}, current_user)
|
||||
tag_b = tag_fixture(%{"name" => "hollows"}, current_user)
|
||||
|
||||
_shouldnt_return =
|
||||
%{
|
||||
"name" => "bullet",
|
||||
"desc" => "pews brass shell"
|
||||
}
|
||||
|> tag_fixture(user_fixture())
|
||||
|
||||
# name
|
||||
assert Tags.list_tags("bullet", current_user) == [tag_a]
|
||||
assert Tags.list_tags("bullets", current_user) == [tag_a]
|
||||
assert Tags.list_tags("hollow", current_user) == [tag_b]
|
||||
assert Tags.list_tags("hollows", current_user) == [tag_b]
|
||||
end
|
||||
|
||||
test "get_tag!/1 returns the tag with given id", %{tag: tag, current_user: current_user} do
|
||||
assert Tags.get_tag!(tag.id, current_user) == tag
|
||||
end
|
||||
|
@ -66,6 +66,37 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|
||||
assert html =~ ammo_group.ammo_type.name
|
||||
end
|
||||
|
||||
test "can search for ammo_groups", %{conn: conn, ammo_group: ammo_group} do
|
||||
{:ok, index_live, html} = live(conn, Routes.ammo_group_index_path(conn, :index))
|
||||
|
||||
ammo_group = ammo_group |> Repo.preload(:ammo_type)
|
||||
|
||||
assert html =~ ammo_group.ammo_type.name
|
||||
|
||||
assert index_live
|
||||
|> form("[data-qa=\"ammo_group_search\"]",
|
||||
search: %{search_term: ammo_group.ammo_type.name}
|
||||
)
|
||||
|> render_change() =~ ammo_group.ammo_type.name
|
||||
|
||||
assert_patch(
|
||||
index_live,
|
||||
Routes.ammo_group_index_path(conn, :search, ammo_group.ammo_type.name)
|
||||
)
|
||||
|
||||
refute index_live
|
||||
|> form("[data-qa=\"ammo_group_search\"]", search: %{search_term: "something_else"})
|
||||
|> render_change() =~ ammo_group.ammo_type.name
|
||||
|
||||
assert_patch(index_live, Routes.ammo_group_index_path(conn, :search, "something_else"))
|
||||
|
||||
assert index_live
|
||||
|> form("[data-qa=\"ammo_group_search\"]", search: %{search_term: ""})
|
||||
|> render_change() =~ ammo_group.ammo_type.name
|
||||
|
||||
assert_patch(index_live, Routes.ammo_group_index_path(conn, :index))
|
||||
end
|
||||
|
||||
test "saves a single new ammo_group", %{conn: conn} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.ammo_group_index_path(conn, :index))
|
||||
|
||||
@ -111,7 +142,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|
||||
|> follow_redirect(conn, Routes.ammo_group_index_path(conn, :index))
|
||||
|
||||
assert html =~ dgettext("prompts", "Ammo added successfully")
|
||||
assert Ammo.list_ammo_groups(current_user) |> Enum.count() == multiplier + 1
|
||||
assert Ammo.list_ammo_groups(nil, false, current_user) |> Enum.count() == multiplier + 1
|
||||
end
|
||||
|
||||
test "does not save invalid number of new ammo_groups", %{conn: conn} do
|
||||
@ -156,7 +187,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|
||||
assert index_live
|
||||
|> element("[data-qa=\"edit-#{ammo_group.id}\"]")
|
||||
|> render_click() =~
|
||||
gettext("Edit Ammo")
|
||||
gettext("Edit ammo")
|
||||
|
||||
assert_patch(index_live, Routes.ammo_group_index_path(conn, :edit, ammo_group))
|
||||
|
||||
|
@ -70,10 +70,36 @@ defmodule CanneryWeb.AmmoTypeLiveTest do
|
||||
test "lists all ammo_types", %{conn: conn, ammo_type: ammo_type} do
|
||||
{:ok, _index_live, html} = live(conn, Routes.ammo_type_index_path(conn, :index))
|
||||
|
||||
assert html =~ gettext("Ammo types")
|
||||
assert html =~ gettext("Catalog")
|
||||
assert html =~ ammo_type.bullet_type
|
||||
end
|
||||
|
||||
test "can search for ammo_type", %{conn: conn, ammo_type: ammo_type} do
|
||||
{:ok, index_live, html} = live(conn, Routes.ammo_type_index_path(conn, :index))
|
||||
|
||||
assert html =~ ammo_type.bullet_type
|
||||
|
||||
assert index_live
|
||||
|> form("[data-qa=\"ammo_type_search\"]",
|
||||
search: %{search_term: ammo_type.bullet_type}
|
||||
)
|
||||
|> render_change() =~ ammo_type.bullet_type
|
||||
|
||||
assert_patch(index_live, Routes.ammo_type_index_path(conn, :search, ammo_type.bullet_type))
|
||||
|
||||
refute index_live
|
||||
|> form("[data-qa=\"ammo_type_search\"]", search: %{search_term: "something_else"})
|
||||
|> render_change() =~ ammo_type.bullet_type
|
||||
|
||||
assert_patch(index_live, Routes.ammo_type_index_path(conn, :search, "something_else"))
|
||||
|
||||
assert index_live
|
||||
|> form("[data-qa=\"ammo_type_search\"]", search: %{search_term: ""})
|
||||
|> render_change() =~ ammo_type.bullet_type
|
||||
|
||||
assert_patch(index_live, Routes.ammo_type_index_path(conn, :index))
|
||||
end
|
||||
|
||||
test "saves new ammo_type", %{conn: conn, current_user: current_user, ammo_type: ammo_type} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.ammo_type_index_path(conn, :index))
|
||||
|
||||
@ -102,7 +128,7 @@ defmodule CanneryWeb.AmmoTypeLiveTest do
|
||||
{:ok, index_live, _html} = live(conn, Routes.ammo_type_index_path(conn, :index))
|
||||
|
||||
assert index_live |> element("[data-qa=\"edit-#{ammo_type.id}\"]") |> render_click() =~
|
||||
gettext("Edit Ammo type")
|
||||
gettext("Edit %{ammo_type_name}", ammo_type_name: ammo_type.name)
|
||||
|
||||
assert_patch(index_live, Routes.ammo_type_index_path(conn, :edit, ammo_type))
|
||||
|
||||
|
@ -62,7 +62,7 @@ defmodule CanneryWeb.ContainerLiveTest do
|
||||
%{ammo_type: ammo_type, ammo_group: ammo_group, shot_group: shot_group}
|
||||
end
|
||||
|
||||
describe "Index regular" do
|
||||
describe "Index" do
|
||||
setup [:register_and_log_in_user, :create_container]
|
||||
|
||||
test "lists all containers", %{conn: conn, container: container} do
|
||||
@ -72,132 +72,43 @@ defmodule CanneryWeb.ContainerLiveTest do
|
||||
assert html =~ container.location
|
||||
end
|
||||
|
||||
test "saves new container", %{conn: conn, container: container} do
|
||||
test "lists all containers in table mode", %{conn: conn, container: container} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
assert index_live |> element("a", dgettext("actions", "New Container")) |> render_click() =~
|
||||
gettext("New Container")
|
||||
|
||||
assert_patch(index_live, Routes.container_index_path(conn, :new))
|
||||
|
||||
# assert index_live
|
||||
# |> form("#container-form", container: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#container-form", container: @create_attrs)
|
||||
|> render_submit()
|
||||
|> follow_redirect(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
assert html =~ dgettext("prompts", "%{name} created successfully", name: container.name)
|
||||
assert html =~ "some location"
|
||||
end
|
||||
|
||||
test "updates container in listing", %{
|
||||
conn: conn,
|
||||
current_user: current_user,
|
||||
container: container
|
||||
} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
assert index_live |> element("[data-qa=\"edit-#{container.id}\"]") |> render_click() =~
|
||||
gettext("Edit %{name}", name: container.name)
|
||||
|
||||
assert_patch(index_live, Routes.container_index_path(conn, :edit, container))
|
||||
|
||||
# assert index_live
|
||||
# |> form("#container-form", container: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#container-form", container: @update_attrs)
|
||||
|> render_submit()
|
||||
|> follow_redirect(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
container = container.id |> Containers.get_container!(current_user)
|
||||
assert html =~ dgettext("prompts", "%{name} updated successfully", name: container.name)
|
||||
assert html =~ "some updated location"
|
||||
end
|
||||
|
||||
test "clones container in listing", %{
|
||||
conn: conn,
|
||||
current_user: current_user,
|
||||
container: container
|
||||
} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
html = index_live |> element("[data-qa=\"clone-#{container.id}\"]") |> render_click()
|
||||
assert html =~ gettext("New Container")
|
||||
assert html =~ "some location"
|
||||
|
||||
assert_patch(index_live, Routes.container_index_path(conn, :clone, container))
|
||||
|
||||
# assert index_live
|
||||
# |> form("#container-form", container: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#container-form", container: @create_attrs)
|
||||
|> render_submit()
|
||||
|> follow_redirect(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
container = container.id |> Containers.get_container!(current_user)
|
||||
assert html =~ dgettext("prompts", "%{name} created successfully", name: container.name)
|
||||
assert html =~ "some location"
|
||||
end
|
||||
|
||||
test "clones container in listing with updates", %{
|
||||
conn: conn,
|
||||
current_user: current_user,
|
||||
container: container
|
||||
} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
assert index_live |> element("[data-qa=\"clone-#{container.id}\"]") |> render_click() =~
|
||||
gettext("New Container")
|
||||
|
||||
assert_patch(index_live, Routes.container_index_path(conn, :clone, container))
|
||||
|
||||
# assert index_live
|
||||
# |> form("#container-form", container: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#container-form",
|
||||
container: Map.merge(@create_attrs, %{location: "some updated location"})
|
||||
)
|
||||
|> render_submit()
|
||||
|> follow_redirect(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
container = container.id |> Containers.get_container!(current_user)
|
||||
assert html =~ dgettext("prompts", "%{name} created successfully", name: container.name)
|
||||
assert html =~ "some updated location"
|
||||
end
|
||||
|
||||
test "deletes container in listing", %{conn: conn, container: container} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
assert index_live |> element("[data-qa=\"delete-#{container.id}\"]") |> render_click()
|
||||
refute has_element?(index_live, "#container-#{container.id}")
|
||||
end
|
||||
end
|
||||
|
||||
describe "Index table" do
|
||||
setup [:register_and_log_in_user, :create_container]
|
||||
|
||||
test "lists all containers", %{conn: conn, container: container} do
|
||||
{:ok, _index_live, html} = live(conn, Routes.container_index_path(conn, :table))
|
||||
html = index_live |> element("[data-qa=\"toggle_table\"]") |> render_click()
|
||||
|
||||
assert html =~ gettext("Containers")
|
||||
assert html =~ container.location
|
||||
end
|
||||
|
||||
test "can search for containers", %{conn: conn, container: container} do
|
||||
{:ok, index_live, html} = live(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
assert html =~ container.location
|
||||
|
||||
assert index_live
|
||||
|> form("[data-qa=\"container_search\"]",
|
||||
search: %{search_term: container.location}
|
||||
)
|
||||
|> render_change() =~ container.location
|
||||
|
||||
assert_patch(index_live, Routes.container_index_path(conn, :search, container.location))
|
||||
|
||||
refute index_live
|
||||
|> form("[data-qa=\"container_search\"]", search: %{search_term: "something_else"})
|
||||
|> render_change() =~ container.location
|
||||
|
||||
assert_patch(index_live, Routes.container_index_path(conn, :search, "something_else"))
|
||||
|
||||
assert index_live
|
||||
|> form("[data-qa=\"container_search\"]", search: %{search_term: ""})
|
||||
|> render_change() =~ container.location
|
||||
|
||||
assert_patch(index_live, Routes.container_index_path(conn, :index))
|
||||
end
|
||||
|
||||
test "saves new container", %{conn: conn, container: container} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.container_index_path(conn, :table))
|
||||
{:ok, index_live, _html} = live(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
assert index_live |> element("a", dgettext("actions", "New Container")) |> render_click() =~
|
||||
gettext("New Container")
|
||||
@ -212,7 +123,7 @@ defmodule CanneryWeb.ContainerLiveTest do
|
||||
index_live
|
||||
|> form("#container-form", container: @create_attrs)
|
||||
|> render_submit()
|
||||
|> follow_redirect(conn, Routes.container_index_path(conn, :table))
|
||||
|> follow_redirect(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
assert html =~ dgettext("prompts", "%{name} created successfully", name: container.name)
|
||||
assert html =~ "some location"
|
||||
@ -223,7 +134,7 @@ defmodule CanneryWeb.ContainerLiveTest do
|
||||
current_user: current_user,
|
||||
container: container
|
||||
} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.container_index_path(conn, :table))
|
||||
{:ok, index_live, _html} = live(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
assert index_live |> element("[data-qa=\"edit-#{container.id}\"]") |> render_click() =~
|
||||
gettext("Edit %{name}", name: container.name)
|
||||
@ -238,7 +149,7 @@ defmodule CanneryWeb.ContainerLiveTest do
|
||||
index_live
|
||||
|> form("#container-form", container: @update_attrs)
|
||||
|> render_submit()
|
||||
|> follow_redirect(conn, Routes.container_index_path(conn, :table))
|
||||
|> follow_redirect(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
container = container.id |> Containers.get_container!(current_user)
|
||||
assert html =~ dgettext("prompts", "%{name} updated successfully", name: container.name)
|
||||
@ -303,7 +214,7 @@ defmodule CanneryWeb.ContainerLiveTest do
|
||||
end
|
||||
|
||||
test "deletes container in listing", %{conn: conn, container: container} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.container_index_path(conn, :table))
|
||||
{:ok, index_live, _html} = live(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
assert index_live |> element("[data-qa=\"delete-#{container.id}\"]") |> render_click()
|
||||
refute has_element?(index_live, "#container-#{container.id}")
|
||||
@ -367,7 +278,6 @@ defmodule CanneryWeb.ContainerLiveTest do
|
||||
{:ok, show_live, _html} = live(conn, Routes.container_show_path(conn, :show, container))
|
||||
|
||||
html = show_live |> element("[data-qa=\"toggle_table\"]") |> render_click()
|
||||
assert_patch(show_live, Routes.container_show_path(conn, :table, container))
|
||||
|
||||
assert html =~ ammo_type_name
|
||||
assert html =~ "some ammo group"
|
||||
@ -396,7 +306,6 @@ defmodule CanneryWeb.ContainerLiveTest do
|
||||
{:ok, show_live, _html} = live(conn, Routes.container_show_path(conn, :show, container))
|
||||
|
||||
html = show_live |> element("[data-qa=\"toggle_table\"]") |> render_click()
|
||||
assert_patch(show_live, Routes.container_show_path(conn, :table, container))
|
||||
|
||||
assert html =~ dgettext("actions", "Show used")
|
||||
refute html =~ "some ammo group"
|
||||
|
@ -14,4 +14,10 @@ defmodule CanneryWeb.HomeLiveTest do
|
||||
assert disconnected_html =~ gettext("Welcome to %{name}", name: "Cannery")
|
||||
assert render(home_live) =~ gettext("Welcome to %{name}", name: "Cannery")
|
||||
end
|
||||
|
||||
test "displays version number", %{conn: conn} do
|
||||
{:ok, home_live, disconnected_html} = live(conn, "/")
|
||||
assert disconnected_html =~ Mix.Project.config()[:version]
|
||||
assert render(home_live) =~ Mix.Project.config()[:version]
|
||||
end
|
||||
end
|
||||
|
@ -37,6 +37,32 @@ defmodule CanneryWeb.RangeLiveTest do
|
||||
assert html =~ shot_group.notes
|
||||
end
|
||||
|
||||
test "can search for shot_group", %{conn: conn, shot_group: shot_group} do
|
||||
{:ok, index_live, html} = live(conn, Routes.range_index_path(conn, :index))
|
||||
|
||||
assert html =~ shot_group.notes
|
||||
|
||||
assert index_live
|
||||
|> form("[data-qa=\"shot_group_search\"]",
|
||||
search: %{search_term: shot_group.notes}
|
||||
)
|
||||
|> render_change() =~ shot_group.notes
|
||||
|
||||
assert_patch(index_live, Routes.range_index_path(conn, :search, shot_group.notes))
|
||||
|
||||
refute index_live
|
||||
|> form("[data-qa=\"shot_group_search\"]", search: %{search_term: "something_else"})
|
||||
|> render_change() =~ shot_group.notes
|
||||
|
||||
assert_patch(index_live, Routes.range_index_path(conn, :search, "something_else"))
|
||||
|
||||
assert index_live
|
||||
|> form("[data-qa=\"shot_group_search\"]", search: %{search_term: ""})
|
||||
|> render_change() =~ shot_group.notes
|
||||
|
||||
assert_patch(index_live, Routes.range_index_path(conn, :index))
|
||||
end
|
||||
|
||||
test "saves new shot_group", %{conn: conn, ammo_group: ammo_group} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.range_index_path(conn, :index))
|
||||
|
||||
|
@ -41,6 +41,32 @@ defmodule CanneryWeb.TagLiveTest do
|
||||
assert html =~ tag.bg_color
|
||||
end
|
||||
|
||||
test "can search for tag", %{conn: conn, tag: tag} do
|
||||
{:ok, index_live, html} = live(conn, Routes.tag_index_path(conn, :index))
|
||||
|
||||
assert html =~ tag.name
|
||||
|
||||
assert index_live
|
||||
|> form("[data-qa=\"tag_search\"]",
|
||||
search: %{search_term: tag.name}
|
||||
)
|
||||
|> render_change() =~ tag.name
|
||||
|
||||
assert_patch(index_live, Routes.tag_index_path(conn, :search, tag.name))
|
||||
|
||||
refute index_live
|
||||
|> form("[data-qa=\"tag_search\"]", search: %{search_term: "something_else"})
|
||||
|> render_change() =~ tag.name
|
||||
|
||||
assert_patch(index_live, Routes.tag_index_path(conn, :search, "something_else"))
|
||||
|
||||
assert index_live
|
||||
|> form("[data-qa=\"tag_search\"]", search: %{search_term: ""})
|
||||
|> render_change() =~ tag.name
|
||||
|
||||
assert_patch(index_live, Routes.tag_index_path(conn, :index))
|
||||
end
|
||||
|
||||
test "saves new tag", %{conn: conn} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.tag_index_path(conn, :index))
|
||||
|
||||
|
@ -13,6 +13,7 @@ defmodule Cannery.Fixtures do
|
||||
Containers,
|
||||
Containers.Container,
|
||||
Email,
|
||||
Repo,
|
||||
Tags,
|
||||
Tags.Tag
|
||||
}
|
||||
@ -38,11 +39,12 @@ defmodule Cannery.Fixtures do
|
||||
attrs
|
||||
|> Enum.into(%{
|
||||
"email" => unique_user_email(),
|
||||
"password" => valid_user_password(),
|
||||
"role" => "admin"
|
||||
"password" => valid_user_password()
|
||||
})
|
||||
|> Accounts.register_user()
|
||||
|> unwrap_ok_tuple()
|
||||
|> User.role_changeset("admin")
|
||||
|> Repo.update!()
|
||||
end
|
||||
|
||||
def extract_user_token(fun) do
|
||||
@ -133,7 +135,8 @@ defmodule Cannery.Fixtures do
|
||||
|> Enum.into(%{
|
||||
"ammo_type_id" => ammo_type_id,
|
||||
"container_id" => container_id,
|
||||
"count" => 20
|
||||
"count" => 20,
|
||||
"purchased_on" => Date.utc_today()
|
||||
})
|
||||
|> Ammo.create_ammo_groups(multiplier, user)
|
||||
|> unwrap_ok_tuple()
|
||||
|
Reference in New Issue
Block a user