forked from shibao/cannery
Compare commits
26 Commits
Author | SHA1 | Date | |
---|---|---|---|
42e2d1c76e | |||
064d2d3988 | |||
f6b5fc17fa | |||
2c0a4dd7ca | |||
47dab6490d | |||
084173909e | |||
2f8af8ae4f | |||
2cf705c46f | |||
725df05521 | |||
3ae890c193 | |||
75fcbb1e65 | |||
e568a2f073 | |||
0b27c8f80b | |||
0ad1ee47de | |||
8ea2b06487 | |||
1e4accec9d | |||
076d5eea18 | |||
5b6bd00047 | |||
8dd471afa8 | |||
09d3754f92 | |||
fa67fd5a3b | |||
0a56b32b17 | |||
5f214ab7f9 | |||
0c95fa88f4 | |||
61f8776d2e | |||
26f75c7d15 |
13
CHANGELOG.md
13
CHANGELOG.md
@ -1,3 +1,16 @@
|
|||||||
|
# v0.8.2
|
||||||
|
- Fix bug with public registration
|
||||||
|
- Improve templates
|
||||||
|
- Improve invites, record usage
|
||||||
|
- Fix padding on more pages when using chrome
|
||||||
|
- Add oban metrics to server log and live dashboard
|
||||||
|
|
||||||
|
# v0.8.1
|
||||||
|
- Update dependencies
|
||||||
|
- Show topbar on form submit/page refresh
|
||||||
|
- Make loading/reconnection less intrusive
|
||||||
|
- Add QR code for invite link
|
||||||
|
|
||||||
# v0.8.0
|
# v0.8.0
|
||||||
- Add search to catalog, ammo, container, tag and range index pages
|
- Add search to catalog, ammo, container, tag and range index pages
|
||||||
- Tweak urls for catalog, ammo, containers, tags and shot records
|
- Tweak urls for catalog, ammo, containers, tags and shot records
|
||||||
|
@ -144,3 +144,4 @@ Thank you so much for your contributions!
|
|||||||
- kaia (https://shitposter.club/users/kaia)
|
- kaia (https://shitposter.club/users/kaia)
|
||||||
- duponin (https://udongein.xyz/users/duponin)
|
- duponin (https://udongein.xyz/users/duponin)
|
||||||
- kalli (https://twitter.com/t0kkuro)
|
- kalli (https://twitter.com/t0kkuro)
|
||||||
|
- brea (https://refusal.biz/users/tarperfume)
|
||||||
|
@ -25,12 +25,13 @@ $fa-font-path: "@fortawesome/fontawesome-free/webfonts";
|
|||||||
100% { scale: 1.0; opacity: 1; }
|
100% { scale: 1.0; opacity: 1; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.phx-connected > #disconnect, #loading {
|
// disconnect toast
|
||||||
|
.phx-connected > #disconnect {
|
||||||
opacity: 0 !important;
|
opacity: 0 !important;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.phx-loading:not(.phx-error) > #loading, .phx-error > #disconnect {
|
.phx-error > #disconnect {
|
||||||
opacity: 0.95 !important;
|
opacity: 0.95 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ import 'phoenix_html'
|
|||||||
// Establish Phoenix Socket and LiveView configuration.
|
// Establish Phoenix Socket and LiveView configuration.
|
||||||
import { Socket } from 'phoenix'
|
import { Socket } from 'phoenix'
|
||||||
import { LiveSocket } from 'phoenix_live_view'
|
import { LiveSocket } from 'phoenix_live_view'
|
||||||
import topbar from '../vendor/topbar'
|
import topbar from 'topbar'
|
||||||
import MaintainAttrs from './maintain_attrs'
|
import MaintainAttrs from './maintain_attrs'
|
||||||
import ShotLogChart from './shot_log_chart'
|
import ShotLogChart from './shot_log_chart'
|
||||||
import Alpine from 'alpinejs'
|
import Alpine from 'alpinejs'
|
||||||
@ -48,6 +48,8 @@ Alpine.start()
|
|||||||
topbar.config({ barColors: { 0: '#29d' }, shadowColor: 'rgba(0, 0, 0, .3)' })
|
topbar.config({ barColors: { 0: '#29d' }, shadowColor: 'rgba(0, 0, 0, .3)' })
|
||||||
window.addEventListener('phx:page-loading-start', info => topbar.show())
|
window.addEventListener('phx:page-loading-start', info => topbar.show())
|
||||||
window.addEventListener('phx:page-loading-stop', info => topbar.hide())
|
window.addEventListener('phx:page-loading-stop', info => topbar.hide())
|
||||||
|
window.addEventListener('submit', info => topbar.show())
|
||||||
|
window.addEventListener('beforeunload', info => topbar.show())
|
||||||
|
|
||||||
// connect if there are any LiveViews on the page
|
// connect if there are any LiveViews on the page
|
||||||
liveSocket.connect()
|
liveSocket.connect()
|
||||||
|
36
assets/package-lock.json
generated
36
assets/package-lock.json
generated
@ -6215,9 +6215,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/json5": {
|
"node_modules/json5": {
|
||||||
"version": "2.2.1",
|
"version": "2.2.3",
|
||||||
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
|
||||||
"integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==",
|
"integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"json5": "lib/cli.js"
|
"json5": "lib/cli.js"
|
||||||
@ -6333,9 +6333,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/loader-utils": {
|
"node_modules/loader-utils": {
|
||||||
"version": "2.0.3",
|
"version": "2.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz",
|
||||||
"integrity": "sha512-THWqIsn8QRnvLl0shHYVBN9syumU8pYWEHPTmkiVGd+7K5eFNVSY6AJhRvgGF70gg1Dz+l/k8WicvFCxdEs60A==",
|
"integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"big.js": "^5.2.2",
|
"big.js": "^5.2.2",
|
||||||
@ -9639,9 +9639,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/tsconfig-paths/node_modules/json5": {
|
"node_modules/tsconfig-paths/node_modules/json5": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
|
||||||
"integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==",
|
"integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"minimist": "^1.2.0"
|
"minimist": "^1.2.0"
|
||||||
@ -14763,9 +14763,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"json5": {
|
"json5": {
|
||||||
"version": "2.2.1",
|
"version": "2.2.3",
|
||||||
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
|
||||||
"integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==",
|
"integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"jsx-ast-utils": {
|
"jsx-ast-utils": {
|
||||||
@ -14850,9 +14850,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"loader-utils": {
|
"loader-utils": {
|
||||||
"version": "2.0.3",
|
"version": "2.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz",
|
||||||
"integrity": "sha512-THWqIsn8QRnvLl0shHYVBN9syumU8pYWEHPTmkiVGd+7K5eFNVSY6AJhRvgGF70gg1Dz+l/k8WicvFCxdEs60A==",
|
"integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"big.js": "^5.2.2",
|
"big.js": "^5.2.2",
|
||||||
@ -17080,9 +17080,9 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"json5": {
|
"json5": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
|
||||||
"integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==",
|
"integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"minimist": "^1.2.0"
|
"minimist": "^1.2.0"
|
||||||
|
157
assets/vendor/topbar.js
vendored
157
assets/vendor/topbar.js
vendored
@ -1,157 +0,0 @@
|
|||||||
/**
|
|
||||||
* @license MIT
|
|
||||||
* topbar 1.0.0, 2021-01-06
|
|
||||||
* https://buunguyen.github.io/topbar
|
|
||||||
* Copyright (c) 2021 Buu Nguyen
|
|
||||||
*/
|
|
||||||
(function (window, document) {
|
|
||||||
"use strict";
|
|
||||||
|
|
||||||
// https://gist.github.com/paulirish/1579671
|
|
||||||
(function () {
|
|
||||||
var lastTime = 0;
|
|
||||||
var vendors = ["ms", "moz", "webkit", "o"];
|
|
||||||
for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {
|
|
||||||
window.requestAnimationFrame =
|
|
||||||
window[vendors[x] + "RequestAnimationFrame"];
|
|
||||||
window.cancelAnimationFrame =
|
|
||||||
window[vendors[x] + "CancelAnimationFrame"] ||
|
|
||||||
window[vendors[x] + "CancelRequestAnimationFrame"];
|
|
||||||
}
|
|
||||||
if (!window.requestAnimationFrame)
|
|
||||||
window.requestAnimationFrame = function (callback, element) {
|
|
||||||
var currTime = new Date().getTime();
|
|
||||||
var timeToCall = Math.max(0, 16 - (currTime - lastTime));
|
|
||||||
var id = window.setTimeout(function () {
|
|
||||||
callback(currTime + timeToCall);
|
|
||||||
}, timeToCall);
|
|
||||||
lastTime = currTime + timeToCall;
|
|
||||||
return id;
|
|
||||||
};
|
|
||||||
if (!window.cancelAnimationFrame)
|
|
||||||
window.cancelAnimationFrame = function (id) {
|
|
||||||
clearTimeout(id);
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
var canvas,
|
|
||||||
progressTimerId,
|
|
||||||
fadeTimerId,
|
|
||||||
currentProgress,
|
|
||||||
showing,
|
|
||||||
addEvent = function (elem, type, handler) {
|
|
||||||
if (elem.addEventListener) elem.addEventListener(type, handler, false);
|
|
||||||
else if (elem.attachEvent) elem.attachEvent("on" + type, handler);
|
|
||||||
else elem["on" + type] = handler;
|
|
||||||
},
|
|
||||||
options = {
|
|
||||||
autoRun: true,
|
|
||||||
barThickness: 3,
|
|
||||||
barColors: {
|
|
||||||
0: "rgba(26, 188, 156, .9)",
|
|
||||||
".25": "rgba(52, 152, 219, .9)",
|
|
||||||
".50": "rgba(241, 196, 15, .9)",
|
|
||||||
".75": "rgba(230, 126, 34, .9)",
|
|
||||||
"1.0": "rgba(211, 84, 0, .9)",
|
|
||||||
},
|
|
||||||
shadowBlur: 10,
|
|
||||||
shadowColor: "rgba(0, 0, 0, .6)",
|
|
||||||
className: null,
|
|
||||||
},
|
|
||||||
repaint = function () {
|
|
||||||
canvas.width = window.innerWidth;
|
|
||||||
canvas.height = options.barThickness * 5; // need space for shadow
|
|
||||||
|
|
||||||
var ctx = canvas.getContext("2d");
|
|
||||||
ctx.shadowBlur = options.shadowBlur;
|
|
||||||
ctx.shadowColor = options.shadowColor;
|
|
||||||
|
|
||||||
var lineGradient = ctx.createLinearGradient(0, 0, canvas.width, 0);
|
|
||||||
for (var stop in options.barColors)
|
|
||||||
lineGradient.addColorStop(stop, options.barColors[stop]);
|
|
||||||
ctx.lineWidth = options.barThickness;
|
|
||||||
ctx.beginPath();
|
|
||||||
ctx.moveTo(0, options.barThickness / 2);
|
|
||||||
ctx.lineTo(
|
|
||||||
Math.ceil(currentProgress * canvas.width),
|
|
||||||
options.barThickness / 2
|
|
||||||
);
|
|
||||||
ctx.strokeStyle = lineGradient;
|
|
||||||
ctx.stroke();
|
|
||||||
},
|
|
||||||
createCanvas = function () {
|
|
||||||
canvas = document.createElement("canvas");
|
|
||||||
var style = canvas.style;
|
|
||||||
style.position = "fixed";
|
|
||||||
style.top = style.left = style.right = style.margin = style.padding = 0;
|
|
||||||
style.zIndex = 100001;
|
|
||||||
style.display = "none";
|
|
||||||
if (options.className) canvas.classList.add(options.className);
|
|
||||||
document.body.appendChild(canvas);
|
|
||||||
addEvent(window, "resize", repaint);
|
|
||||||
},
|
|
||||||
topbar = {
|
|
||||||
config: function (opts) {
|
|
||||||
for (var key in opts)
|
|
||||||
if (options.hasOwnProperty(key)) options[key] = opts[key];
|
|
||||||
},
|
|
||||||
show: function () {
|
|
||||||
if (showing) return;
|
|
||||||
showing = true;
|
|
||||||
if (fadeTimerId !== null) window.cancelAnimationFrame(fadeTimerId);
|
|
||||||
if (!canvas) createCanvas();
|
|
||||||
canvas.style.opacity = 1;
|
|
||||||
canvas.style.display = "block";
|
|
||||||
topbar.progress(0);
|
|
||||||
if (options.autoRun) {
|
|
||||||
(function loop() {
|
|
||||||
progressTimerId = window.requestAnimationFrame(loop);
|
|
||||||
topbar.progress(
|
|
||||||
"+" + 0.05 * Math.pow(1 - Math.sqrt(currentProgress), 2)
|
|
||||||
);
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
progress: function (to) {
|
|
||||||
if (typeof to === "undefined") return currentProgress;
|
|
||||||
if (typeof to === "string") {
|
|
||||||
to =
|
|
||||||
(to.indexOf("+") >= 0 || to.indexOf("-") >= 0
|
|
||||||
? currentProgress
|
|
||||||
: 0) + parseFloat(to);
|
|
||||||
}
|
|
||||||
currentProgress = to > 1 ? 1 : to;
|
|
||||||
repaint();
|
|
||||||
return currentProgress;
|
|
||||||
},
|
|
||||||
hide: function () {
|
|
||||||
if (!showing) return;
|
|
||||||
showing = false;
|
|
||||||
if (progressTimerId != null) {
|
|
||||||
window.cancelAnimationFrame(progressTimerId);
|
|
||||||
progressTimerId = null;
|
|
||||||
}
|
|
||||||
(function loop() {
|
|
||||||
if (topbar.progress("+.1") >= 1) {
|
|
||||||
canvas.style.opacity -= 0.05;
|
|
||||||
if (canvas.style.opacity <= 0.05) {
|
|
||||||
canvas.style.display = "none";
|
|
||||||
fadeTimerId = null;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
fadeTimerId = window.requestAnimationFrame(loop);
|
|
||||||
})();
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
if (typeof module === "object" && typeof module.exports === "object") {
|
|
||||||
module.exports = topbar;
|
|
||||||
} else if (typeof define === "function" && define.amd) {
|
|
||||||
define(function () {
|
|
||||||
return topbar;
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
this.topbar = topbar;
|
|
||||||
}
|
|
||||||
}.call(this, window, document));
|
|
@ -11,6 +11,8 @@ config :cannery,
|
|||||||
ecto_repos: [Cannery.Repo],
|
ecto_repos: [Cannery.Repo],
|
||||||
generators: [binary_id: true]
|
generators: [binary_id: true]
|
||||||
|
|
||||||
|
config :cannery, Cannery.Accounts, registration: System.get_env("REGISTRATION", "invite")
|
||||||
|
|
||||||
# Configures the endpoint
|
# Configures the endpoint
|
||||||
config :cannery, CanneryWeb.Endpoint,
|
config :cannery, CanneryWeb.Endpoint,
|
||||||
url: [scheme: "https", host: System.get_env("HOST") || "localhost", port: "443"],
|
url: [scheme: "https", host: System.get_env("HOST") || "localhost", port: "443"],
|
||||||
@ -18,8 +20,7 @@ config :cannery, CanneryWeb.Endpoint,
|
|||||||
secret_key_base: "KH59P0iZixX5gP/u+zkxxG8vAAj6vgt0YqnwEB5JP5K+E567SsqkCz69uWShjE7I",
|
secret_key_base: "KH59P0iZixX5gP/u+zkxxG8vAAj6vgt0YqnwEB5JP5K+E567SsqkCz69uWShjE7I",
|
||||||
render_errors: [view: CanneryWeb.ErrorView, accepts: ~w(html json), layout: false],
|
render_errors: [view: CanneryWeb.ErrorView, accepts: ~w(html json), layout: false],
|
||||||
pubsub_server: Cannery.PubSub,
|
pubsub_server: Cannery.PubSub,
|
||||||
live_view: [signing_salt: "zOLgd3lr"],
|
live_view: [signing_salt: "zOLgd3lr"]
|
||||||
registration: System.get_env("REGISTRATION") || "invite"
|
|
||||||
|
|
||||||
config :cannery, Cannery.Application, automigrate: false
|
config :cannery, Cannery.Application, automigrate: false
|
||||||
|
|
||||||
|
@ -64,8 +64,9 @@ config :cannery, CanneryWeb.Endpoint,
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
# Do not include metadata nor timestamps in development logs
|
config :logger, :console,
|
||||||
config :logger, :console, format: "[$level] $message\n"
|
format: "[$level] $message $metadata\n\n",
|
||||||
|
metadata: [:data]
|
||||||
|
|
||||||
# Set a higher stacktrace during development. Avoid configuring such
|
# Set a higher stacktrace during development. Avoid configuring such
|
||||||
# in production as building large stacktraces may be expensive.
|
# in production as building large stacktraces may be expensive.
|
||||||
|
@ -15,17 +15,18 @@ end
|
|||||||
config :cannery, CanneryWeb.ViewHelpers, shibao_mode: System.get_env("SHIBAO_MODE") == "true"
|
config :cannery, CanneryWeb.ViewHelpers, shibao_mode: System.get_env("SHIBAO_MODE") == "true"
|
||||||
|
|
||||||
# Set default locale
|
# Set default locale
|
||||||
config :gettext, :default_locale, System.get_env("LOCALE") || "en_US"
|
config :gettext, :default_locale, System.get_env("LOCALE", "en_US")
|
||||||
|
|
||||||
maybe_ipv6 = if System.get_env("ECTO_IPV6") == "true", do: [:inet6], else: []
|
maybe_ipv6 = if System.get_env("ECTO_IPV6") == "true", do: [:inet6], else: []
|
||||||
|
|
||||||
database_url =
|
database_url =
|
||||||
if config_env() == :test do
|
if config_env() == :test do
|
||||||
System.get_env("TEST_DATABASE_URL") ||
|
System.get_env(
|
||||||
|
"TEST_DATABASE_URL",
|
||||||
"ecto://postgres:postgres@localhost/cannery_test#{System.get_env("MIX_TEST_PARTITION")}"
|
"ecto://postgres:postgres@localhost/cannery_test#{System.get_env("MIX_TEST_PARTITION")}"
|
||||||
|
)
|
||||||
else
|
else
|
||||||
System.get_env("DATABASE_URL") ||
|
System.get_env("DATABASE_URL", "ecto://postgres:postgres@cannery-db/cannery")
|
||||||
"ecto://postgres:postgres@cannery-db/cannery"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
host =
|
host =
|
||||||
@ -40,7 +41,7 @@ interface =
|
|||||||
config :cannery, Cannery.Repo,
|
config :cannery, Cannery.Repo,
|
||||||
# ssl: true,
|
# ssl: true,
|
||||||
url: database_url,
|
url: database_url,
|
||||||
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
|
pool_size: String.to_integer(System.get_env("POOL_SIZE", "10")),
|
||||||
socket_options: maybe_ipv6
|
socket_options: maybe_ipv6
|
||||||
|
|
||||||
config :cannery, CanneryWeb.Endpoint,
|
config :cannery, CanneryWeb.Endpoint,
|
||||||
@ -49,10 +50,13 @@ config :cannery, CanneryWeb.Endpoint,
|
|||||||
# See the documentation on https://hexdocs.pm/plug_cowboy/Plug.Cowboy.html
|
# See the documentation on https://hexdocs.pm/plug_cowboy/Plug.Cowboy.html
|
||||||
# for details about using IPv6 vs IPv4 and loopback vs public addresses.
|
# for details about using IPv6 vs IPv4 and loopback vs public addresses.
|
||||||
ip: interface,
|
ip: interface,
|
||||||
port: String.to_integer(System.get_env("PORT") || "4000")
|
port: String.to_integer(System.get_env("PORT", "4000"))
|
||||||
],
|
],
|
||||||
server: true,
|
server: true
|
||||||
registration: System.get_env("REGISTRATION") || "invite"
|
|
||||||
|
if config_env() in [:dev, :prod] do
|
||||||
|
config :cannery, Cannery.Accounts, registration: System.get_env("REGISTRATION", "invite")
|
||||||
|
end
|
||||||
|
|
||||||
if config_env() == :prod do
|
if config_env() == :prod do
|
||||||
# The secret key base is used to sign/encrypt cookies and other secrets.
|
# The secret key base is used to sign/encrypt cookies and other secrets.
|
||||||
@ -76,12 +80,12 @@ if config_env() == :prod do
|
|||||||
config :cannery, Cannery.Mailer,
|
config :cannery, Cannery.Mailer,
|
||||||
adapter: Swoosh.Adapters.SMTP,
|
adapter: Swoosh.Adapters.SMTP,
|
||||||
relay: System.get_env("SMTP_HOST") || raise("No SMTP_HOST set!"),
|
relay: System.get_env("SMTP_HOST") || raise("No SMTP_HOST set!"),
|
||||||
port: System.get_env("SMTP_PORT") || 587,
|
port: System.get_env("SMTP_PORT", "587"),
|
||||||
username: System.get_env("SMTP_USERNAME") || raise("No SMTP_USERNAME set!"),
|
username: System.get_env("SMTP_USERNAME") || raise("No SMTP_USERNAME set!"),
|
||||||
password: System.get_env("SMTP_PASSWORD") || raise("No SMTP_PASSWORD set!"),
|
password: System.get_env("SMTP_PASSWORD") || raise("No SMTP_PASSWORD set!"),
|
||||||
ssl: System.get_env("SMTP_SSL") == "true",
|
ssl: System.get_env("SMTP_SSL") == "true",
|
||||||
email_from: System.get_env("EMAIL_FROM") || "no-reply@#{System.get_env("HOST")}",
|
email_from: System.get_env("EMAIL_FROM", "no-reply@#{System.get_env("HOST")}"),
|
||||||
email_name: System.get_env("EMAIL_NAME") || "Cannery"
|
email_name: System.get_env("EMAIL_NAME", "Cannery")
|
||||||
|
|
||||||
# ## Using releases
|
# ## Using releases
|
||||||
#
|
#
|
||||||
|
@ -22,6 +22,9 @@ config :cannery, CanneryWeb.Endpoint,
|
|||||||
# In test we don't send emails.
|
# In test we don't send emails.
|
||||||
config :cannery, Cannery.Mailer, adapter: Swoosh.Adapters.Test
|
config :cannery, Cannery.Mailer, adapter: Swoosh.Adapters.Test
|
||||||
|
|
||||||
|
# Don't require invites for signups
|
||||||
|
config :cannery, Cannery.Accounts, registration: "public"
|
||||||
|
|
||||||
# Print only warnings and errors during test
|
# Print only warnings and errors during test
|
||||||
config :logger, level: :warn
|
config :logger, level: :warn
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ defmodule Cannery.Accounts do
|
|||||||
|
|
||||||
import Ecto.Query, warn: false
|
import Ecto.Query, warn: false
|
||||||
alias Cannery.{Mailer, Repo}
|
alias Cannery.{Mailer, Repo}
|
||||||
alias Cannery.Accounts.{User, UserToken}
|
alias Cannery.Accounts.{Invite, Invites, User, UserToken}
|
||||||
alias Ecto.{Changeset, Multi}
|
alias Ecto.{Changeset, Multi}
|
||||||
alias Oban.Job
|
alias Oban.Job
|
||||||
|
|
||||||
@ -16,23 +16,27 @@ defmodule Cannery.Accounts do
|
|||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> get_user_by_email("foo@example.com")
|
iex> register_user(%{email: "foo@example.com", password: "valid_password"})
|
||||||
%User{}
|
iex> with %User{} <- get_user_by_email("foo@example.com"), do: :passed
|
||||||
|
:passed
|
||||||
|
|
||||||
iex> get_user_by_email("unknown@example.com")
|
iex> get_user_by_email("unknown@example.com")
|
||||||
nil
|
nil
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@spec get_user_by_email(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)
|
def get_user_by_email(email) when is_binary(email) do
|
||||||
|
Repo.get_by(User, email: email)
|
||||||
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Gets a user by email and password.
|
Gets a user by email and password.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> get_user_by_email_and_password("foo@example.com", "correct_password")
|
iex> register_user(%{email: "foo@example.com", password: "valid_password"})
|
||||||
%User{}
|
iex> with %User{} <- get_user_by_email_and_password("foo@example.com", "valid_password"), do: :passed
|
||||||
|
:passed
|
||||||
|
|
||||||
iex> get_user_by_email_and_password("foo@example.com", "invalid_password")
|
iex> get_user_by_email_and_password("foo@example.com", "invalid_password")
|
||||||
nil
|
nil
|
||||||
@ -53,28 +57,33 @@ defmodule Cannery.Accounts do
|
|||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> get_user!(123)
|
iex> {:ok, user} = register_user(%{email: "foo@example.com", password: "valid_password"})
|
||||||
%User{}
|
iex> get_user!(user.id)
|
||||||
|
user
|
||||||
|
|
||||||
iex> get_user!(456)
|
> get_user!()
|
||||||
** (Ecto.NoResultsError)
|
** (Ecto.NoResultsError)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@spec get_user!(User.t()) :: User.t()
|
@spec get_user!(User.t()) :: User.t()
|
||||||
def get_user!(id), do: Repo.get!(User, id)
|
def get_user!(id) do
|
||||||
|
Repo.get!(User, id)
|
||||||
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Returns all users grouped by role.
|
Returns all users grouped by role.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> list_users_by_role(%User{id: 123, role: :admin})
|
iex> {:ok, user1} = register_user(%{email: "foo1@example.com", password: "valid_password"})
|
||||||
[admin: [%User{}], user: [%User{}, %User{}]]
|
iex> {:ok, user2} = register_user(%{email: "foo2@example.com", password: "valid_password"})
|
||||||
|
iex> with %{admin: [^user1], user: [^user2]} <- list_all_users_by_role(user1), do: :passed
|
||||||
|
:passed
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@spec list_all_users_by_role(User.t()) :: %{String.t() => [User.t()]}
|
@spec list_all_users_by_role(User.t()) :: %{User.role() => [User.t()]}
|
||||||
def list_all_users_by_role(%User{role: :admin}) do
|
def list_all_users_by_role(%User{role: :admin}) do
|
||||||
Repo.all(from u in User, order_by: u.email) |> Enum.group_by(fn user -> user.role end)
|
Repo.all(from u in User, order_by: u.email) |> Enum.group_by(fn %{role: role} -> role end)
|
||||||
end
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
@ -82,13 +91,13 @@ defmodule Cannery.Accounts do
|
|||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> list_users_by_role(%User{id: 123, role: :admin})
|
iex> {:ok, user} = register_user(%{email: "foo@example.com", password: "valid_password"})
|
||||||
[%User{}]
|
iex> with [^user] <- list_users_by_role(:admin), do: :passed
|
||||||
|
:passed
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@spec list_users_by_role(User.role()) :: [User.t()]
|
@spec list_users_by_role(:admin) :: [User.t()]
|
||||||
def list_users_by_role(role) do
|
def list_users_by_role(:admin = role) do
|
||||||
role = role |> to_string()
|
|
||||||
Repo.all(from u in User, where: u.role == ^role, order_by: u.email)
|
Repo.all(from u in User, where: u.role == ^role, order_by: u.email)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -99,26 +108,38 @@ defmodule Cannery.Accounts do
|
|||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> register_user(%{field: value})
|
iex> with {:ok, %User{email: "foo@example.com"}} <-
|
||||||
{:ok, %User{}}
|
...> register_user(%{email: "foo@example.com", password: "valid_password"}),
|
||||||
|
...> do: :passed
|
||||||
|
:passed
|
||||||
|
|
||||||
iex> register_user(%{field: bad_value})
|
iex> with {:error, %Changeset{}} <- register_user(%{email: "foo@example"}), do: :passed
|
||||||
{:error, %Changeset{}}
|
:passed
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@spec register_user(attrs :: map()) :: {:ok, User.t()} | {:error, User.changeset()}
|
@spec register_user(attrs :: map()) ::
|
||||||
def register_user(attrs) do
|
{:ok, User.t()} | {:error, :invalid_token | User.changeset()}
|
||||||
|
@spec register_user(attrs :: map(), Invite.token() | nil) ::
|
||||||
|
{:ok, User.t()} | {:error, :invalid_token | User.changeset()}
|
||||||
|
def register_user(attrs, invite_token \\ nil) do
|
||||||
Multi.new()
|
Multi.new()
|
||||||
|> Multi.one(:users_count, from(u in User, select: count(u.id), distinct: true))
|
|> Multi.one(:users_count, from(u in User, select: count(u.id), distinct: true))
|
||||||
|> Multi.insert(:add_user, fn %{users_count: count} ->
|
|> Multi.run(:use_invite, fn _changes_so_far, _repo ->
|
||||||
|
if allow_registration?() and invite_token |> is_nil() do
|
||||||
|
{:ok, nil}
|
||||||
|
else
|
||||||
|
Invites.use_invite(invite_token)
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|> Multi.insert(:add_user, fn %{users_count: count, use_invite: invite} ->
|
||||||
# if no registered users, make first user an admin
|
# if no registered users, make first user an admin
|
||||||
role = if count == 0, do: "admin", else: "user"
|
role = if count == 0, do: :admin, else: :user
|
||||||
|
User.registration_changeset(attrs, invite) |> User.role_changeset(role)
|
||||||
User.registration_changeset(attrs) |> User.role_changeset(role)
|
|
||||||
end)
|
end)
|
||||||
|> Repo.transaction()
|
|> Repo.transaction()
|
||||||
|> case do
|
|> case do
|
||||||
{:ok, %{add_user: user}} -> {:ok, user}
|
{:ok, %{add_user: user}} -> {:ok, user}
|
||||||
|
{:error, :use_invite, :invalid_token, _changes_so_far} -> {:error, :invalid_token}
|
||||||
{:error, :add_user, changeset, _changes_so_far} -> {:error, changeset}
|
{:error, :add_user, changeset, _changes_so_far} -> {:error, changeset}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -128,14 +149,18 @@ defmodule Cannery.Accounts do
|
|||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> change_user_registration(user)
|
iex> with %Changeset{} <- change_user_registration(), do: :passed
|
||||||
%Changeset{data: %User{}}
|
:passed
|
||||||
|
|
||||||
|
iex> with %Changeset{} <- change_user_registration(%{password: "hi"}), do: :passed
|
||||||
|
:passed
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@spec change_user_registration() :: User.changeset()
|
@spec change_user_registration() :: User.changeset()
|
||||||
@spec change_user_registration(attrs :: map()) :: User.changeset()
|
@spec change_user_registration(attrs :: map()) :: User.changeset()
|
||||||
def change_user_registration(attrs \\ %{}),
|
def change_user_registration(attrs \\ %{}) do
|
||||||
do: User.registration_changeset(attrs, hash_password: false)
|
User.registration_changeset(attrs, nil, hash_password: false)
|
||||||
|
end
|
||||||
|
|
||||||
## Settings
|
## Settings
|
||||||
|
|
||||||
@ -144,25 +169,29 @@ defmodule Cannery.Accounts do
|
|||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> change_user_email(user)
|
iex> with %Changeset{} <- change_user_email(%User{email: "foo@example.com"}), do: :passed
|
||||||
%Changeset{data: %User{}}
|
:passed
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@spec change_user_email(User.t()) :: User.changeset()
|
@spec change_user_email(User.t()) :: User.changeset()
|
||||||
@spec change_user_email(User.t(), attrs :: map()) :: User.changeset()
|
@spec change_user_email(User.t(), attrs :: map()) :: User.changeset()
|
||||||
def change_user_email(user, attrs \\ %{}), do: User.email_changeset(user, attrs)
|
def change_user_email(user, attrs \\ %{}) do
|
||||||
|
User.email_changeset(user, attrs)
|
||||||
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Returns an `%Changeset{}` for changing the user role.
|
Returns an `%Changeset{}` for changing the user role.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> change_user_role(user)
|
iex> with %Changeset{} <- change_user_role(%User{}, :user), do: :passed
|
||||||
%Changeset{data: %User{}}
|
:passed
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@spec change_user_role(User.t(), User.role()) :: User.changeset()
|
@spec change_user_role(User.t(), User.role()) :: User.changeset()
|
||||||
def change_user_role(user, role), do: User.role_changeset(user, role)
|
def change_user_role(user, role) do
|
||||||
|
User.role_changeset(user, role)
|
||||||
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Emulates that the email will change without actually changing
|
Emulates that the email will change without actually changing
|
||||||
@ -170,11 +199,17 @@ defmodule Cannery.Accounts do
|
|||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> apply_user_email(user, "valid password", %{email: ...})
|
iex> {:ok, user} = register_user(%{email: "foo@example.com", password: "valid_password"})
|
||||||
{:ok, %User{}}
|
iex> with {:ok, %User{}} <-
|
||||||
|
...> apply_user_email(user, "valid_password", %{email: "new_email@account.com"}),
|
||||||
|
...> do: :passed
|
||||||
|
:passed
|
||||||
|
|
||||||
iex> apply_user_email(user, "invalid password", %{email: ...})
|
iex> {:ok, user} = register_user(%{email: "foo@example.com", password: "valid_password"})
|
||||||
{:error, %Changeset{}}
|
iex> with {:error, %Changeset{}} <-
|
||||||
|
...> apply_user_email(user, "invalid password", %{email: "new_email@account"}),
|
||||||
|
...> do: :passed
|
||||||
|
:passed
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@spec apply_user_email(User.t(), email :: String.t(), attrs :: map()) ::
|
@spec apply_user_email(User.t(), email :: String.t(), attrs :: map()) ::
|
||||||
@ -219,8 +254,12 @@ defmodule Cannery.Accounts do
|
|||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> deliver_update_email_instructions(user, current_email, &Routes.user_update_email_url(conn, :edit, &1))
|
iex> {:ok, %{id: user_id} = user} = register_user(%{email: "foo@example.com", password: "valid_password"})
|
||||||
{:ok, %{to: ..., body: ...}}
|
iex> with %Oban.Job{
|
||||||
|
...> args: %{email: :update_email, user_id: ^user_id, attrs: %{url: "example url"}}
|
||||||
|
...> } <- deliver_update_email_instructions(user, "new_foo@example.com", fn _token -> "example url" end),
|
||||||
|
...> do: :passed
|
||||||
|
:passed
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@spec deliver_update_email_instructions(User.t(), current_email :: String.t(), function) ::
|
@spec deliver_update_email_instructions(User.t(), current_email :: String.t(), function) ::
|
||||||
@ -237,24 +276,34 @@ defmodule Cannery.Accounts do
|
|||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> change_user_password(user)
|
iex> with %Changeset{} <- change_user_password(%User{}), do: :passed
|
||||||
%Changeset{data: %User{}}
|
:passed
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@spec change_user_password(User.t(), attrs :: map()) :: User.changeset()
|
@spec change_user_password(User.t(), attrs :: map()) :: User.changeset()
|
||||||
def change_user_password(user, attrs \\ %{}),
|
def change_user_password(user, attrs \\ %{}) do
|
||||||
do: User.password_changeset(user, attrs, hash_password: false)
|
User.password_changeset(user, attrs, hash_password: false)
|
||||||
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Updates the user password.
|
Updates the user password.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> update_user_password(user, "valid password", %{password: ...})
|
iex> {:ok, user} = register_user(%{email: "foo@example.com", password: "valid_password"})
|
||||||
{:ok, %User{}}
|
iex> with {:ok, %User{}} <-
|
||||||
|
...> reset_user_password(user, %{
|
||||||
|
...> password: "new password",
|
||||||
|
...> password_confirmation: "new password"
|
||||||
|
...> }),
|
||||||
|
...> do: :passed
|
||||||
|
:passed
|
||||||
|
|
||||||
iex> update_user_password(user, "invalid password", %{password: ...})
|
iex> {:ok, user} = register_user(%{email: "foo@example.com", password: "valid_password"})
|
||||||
{:error, %Changeset{}}
|
iex> with {:error, %Changeset{}} <-
|
||||||
|
...> update_user_password(user, "invalid password", %{password: "123"}),
|
||||||
|
...> do: :passed
|
||||||
|
:passed
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@spec update_user_password(User.t(), String.t(), attrs :: map()) ::
|
@spec update_user_password(User.t(), String.t(), attrs :: map()) ::
|
||||||
@ -276,49 +325,57 @@ defmodule Cannery.Accounts do
|
|||||||
end
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Returns an `%Changeset{}` for changing the user locale.
|
Returns an `Ecto.Changeset.t()` for changing the user locale.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> change_user_locale(user)
|
iex> with %Changeset{} <- change_user_locale(%User{}), do: :passed
|
||||||
%Changeset{data: %User{}}
|
:passed
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@spec change_user_locale(User.t()) :: User.changeset()
|
@spec change_user_locale(User.t()) :: User.changeset()
|
||||||
def change_user_locale(%{locale: locale} = user), do: User.locale_changeset(user, locale)
|
def change_user_locale(%{locale: locale} = user) do
|
||||||
|
User.locale_changeset(user, locale)
|
||||||
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Updates the user locale.
|
Updates the user locale.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> update_user_locale(user, "valid locale")
|
iex> {:ok, user} = register_user(%{email: "foo@example.com", password: "valid_password"})
|
||||||
{:ok, %User{}}
|
iex> with {:ok, %User{}} <- update_user_locale(user, "en_US"), do: :passed
|
||||||
|
:passed
|
||||||
iex> update_user_password(user, "invalid locale")
|
|
||||||
{:error, %Changeset{}}
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@spec update_user_locale(User.t(), locale :: String.t()) ::
|
@spec update_user_locale(User.t(), locale :: String.t()) ::
|
||||||
{:ok, User.t()} | {:error, User.changeset()}
|
{:ok, User.t()} | {:error, User.changeset()}
|
||||||
def update_user_locale(user, locale),
|
def update_user_locale(user, locale) do
|
||||||
do: user |> User.locale_changeset(locale) |> Repo.update()
|
user |> User.locale_changeset(locale) |> Repo.update()
|
||||||
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Deletes a user. must be performed by an admin or the same user!
|
Deletes a user. must be performed by an admin or the same user!
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> delete_user!(user_to_delete, %User{id: 123, role: :admin})
|
iex> {:ok, user} = register_user(%{email: "foo@example.com", password: "valid_password"})
|
||||||
%User{}
|
iex> with %User{} <- delete_user!(user, %User{id: 123, role: :admin}), do: :passed
|
||||||
|
:passed
|
||||||
|
|
||||||
iex> delete_user!(%User{id: 123}, %User{id: 123})
|
iex> {:ok, user} = register_user(%{email: "foo@example.com", password: "valid_password"})
|
||||||
%User{}
|
iex> with %User{} <- delete_user!(user, user), do: :passed
|
||||||
|
:passed
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@spec delete_user!(user_to_delete :: 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, %User{role: :admin}) do
|
||||||
def delete_user!(%User{id: user_id} = user, %User{id: user_id}), do: user |> Repo.delete!()
|
user |> Repo.delete!()
|
||||||
|
end
|
||||||
|
|
||||||
|
def delete_user!(%User{id: user_id} = user, %User{id: user_id}) do
|
||||||
|
user |> Repo.delete!()
|
||||||
|
end
|
||||||
|
|
||||||
## Session
|
## Session
|
||||||
|
|
||||||
@ -346,7 +403,7 @@ defmodule Cannery.Accounts do
|
|||||||
"""
|
"""
|
||||||
@spec delete_session_token(token :: String.t()) :: :ok
|
@spec delete_session_token(token :: String.t()) :: :ok
|
||||||
def delete_session_token(token) do
|
def delete_session_token(token) do
|
||||||
Repo.delete_all(UserToken.token_and_context_query(token, "session"))
|
UserToken.token_and_context_query(token, "session") |> Repo.delete_all()
|
||||||
:ok
|
:ok
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -355,19 +412,45 @@ defmodule Cannery.Accounts do
|
|||||||
"""
|
"""
|
||||||
@spec allow_registration?() :: boolean()
|
@spec allow_registration?() :: boolean()
|
||||||
def allow_registration? do
|
def allow_registration? do
|
||||||
Application.get_env(:cannery, CanneryWeb.Endpoint)[:registration] == "public" or
|
Application.get_env(:cannery, Cannery.Accounts)[:registration] == "public" or
|
||||||
list_users_by_role(:admin) |> Enum.empty?()
|
list_users_by_role(:admin) |> Enum.empty?()
|
||||||
end
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Checks if user is an admin
|
Checks if user is an admin
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
iex> {:ok, user} = register_user(%{email: "foo@example.com", password: "valid_password"})
|
||||||
|
iex> is_admin?(user)
|
||||||
|
true
|
||||||
|
|
||||||
|
iex> is_admin?(%User{id: Ecto.UUID.generate()})
|
||||||
|
false
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@spec is_admin?(User.t()) :: boolean()
|
@spec is_admin?(User.t()) :: boolean()
|
||||||
def is_admin?(%User{id: user_id}) do
|
def is_admin?(%User{id: user_id}) do
|
||||||
Repo.one(from u in User, where: u.id == ^user_id and u.role == :admin)
|
Repo.exists?(from u in User, where: u.id == ^user_id, where: u.role == :admin)
|
||||||
|> is_nil()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@doc """
|
||||||
|
Checks to see if user has the admin role
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
iex> {:ok, user} = register_user(%{email: "foo@example.com", password: "valid_password"})
|
||||||
|
iex> is_already_admin?(user)
|
||||||
|
true
|
||||||
|
|
||||||
|
iex> is_already_admin?(%User{})
|
||||||
|
false
|
||||||
|
|
||||||
|
"""
|
||||||
|
@spec is_already_admin?(User.t() | nil) :: boolean()
|
||||||
|
def is_already_admin?(%User{role: :admin}), do: true
|
||||||
|
def is_already_admin?(_invalid_user), do: false
|
||||||
|
|
||||||
## Confirmation
|
## Confirmation
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
@ -375,10 +458,16 @@ defmodule Cannery.Accounts do
|
|||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> deliver_user_confirmation_instructions(user, &Routes.user_confirmation_url(conn, :confirm, &1))
|
iex> {:ok, %{id: user_id} = user} = register_user(%{email: "foo@example.com", password: "valid_password"})
|
||||||
{:ok, %{to: ..., body: ...}}
|
iex> with %Oban.Job{
|
||||||
|
...> args: %{email: :welcome, user_id: ^user_id, attrs: %{url: "example url"}}
|
||||||
|
...> } <- deliver_user_confirmation_instructions(user, fn _token -> "example url" end),
|
||||||
|
...> do: :passed
|
||||||
|
:passed
|
||||||
|
|
||||||
iex> deliver_user_confirmation_instructions(confirmed_user, &Routes.user_confirmation_url(conn, :confirm, &1))
|
iex> {:ok, user} = register_user(%{email: "foo@example.com", password: "valid_password"})
|
||||||
|
iex> user = user |> User.confirm_changeset() |> Repo.update!()
|
||||||
|
iex> deliver_user_confirmation_instructions(user, fn _token -> "example url" end)
|
||||||
{:error, :already_confirmed}
|
{:error, :already_confirmed}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@ -425,8 +514,12 @@ defmodule Cannery.Accounts do
|
|||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> deliver_user_reset_password_instructions(user, &Routes.user_reset_password_url(conn, :edit, &1))
|
iex> {:ok, %{id: user_id} = user} = register_user(%{email: "foo@example.com", password: "valid_password"})
|
||||||
{:ok, %{to: ..., body: ...}}
|
iex> with %Oban.Job{args: %{
|
||||||
|
...> email: :reset_password, user_id: ^user_id, attrs: %{url: "example url"}}
|
||||||
|
...> } <- deliver_user_reset_password_instructions(user, fn _token -> "example url" end),
|
||||||
|
...> do: :passed
|
||||||
|
:passed
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@spec deliver_user_reset_password_instructions(User.t(), function()) :: Job.t()
|
@spec deliver_user_reset_password_instructions(User.t(), function()) :: Job.t()
|
||||||
@ -442,8 +535,11 @@ defmodule Cannery.Accounts do
|
|||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> get_user_by_reset_password_token("validtoken")
|
iex> {:ok, user} = register_user(%{email: "foo@example.com", password: "valid_password"})
|
||||||
%User{}
|
iex> {encoded_token, user_token} = UserToken.build_email_token(user, "reset_password")
|
||||||
|
iex> Repo.insert!(user_token)
|
||||||
|
iex> with %User{} <- get_user_by_reset_password_token(encoded_token), do: :passed
|
||||||
|
:passed
|
||||||
|
|
||||||
iex> get_user_by_reset_password_token("invalidtoken")
|
iex> get_user_by_reset_password_token("invalidtoken")
|
||||||
nil
|
nil
|
||||||
@ -464,11 +560,20 @@ defmodule Cannery.Accounts do
|
|||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> reset_user_password(user, %{password: "new long password", password_confirmation: "new long password"})
|
iex> {:ok, user} = register_user(%{email: "foo@example.com", password: "valid_password"})
|
||||||
{:ok, %User{}}
|
iex> with {:ok, %User{}} <-
|
||||||
|
...> reset_user_password(user, %{
|
||||||
|
...> password: "new password",
|
||||||
|
...> password_confirmation: "new password"
|
||||||
|
...> }),
|
||||||
|
...> do: :passed
|
||||||
|
:passed
|
||||||
|
|
||||||
iex> reset_user_password(user, %{password: "valid", password_confirmation: "not the same"})
|
iex> {:ok, user} = register_user(%{email: "foo@example.com", password: "valid_password"})
|
||||||
{:error, %Changeset{}}
|
iex> with {:error, %Changeset{}} <-
|
||||||
|
...> reset_user_password(user, %{password: "valid", password_confirmation: "not the same"}),
|
||||||
|
...> do: :passed
|
||||||
|
:passed
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@spec reset_user_password(User.t(), attrs :: map()) ::
|
@spec reset_user_password(User.t(), attrs :: map()) ::
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
defmodule Cannery.Invites.Invite do
|
defmodule Cannery.Accounts.Invite do
|
||||||
@moduledoc """
|
@moduledoc """
|
||||||
An invite, created by an admin to allow someone to join their instance. An
|
An invite, created by an admin to allow someone to join their instance. An
|
||||||
invite can be enabled or disabled, and can have an optional number of uses if
|
invite can be enabled or disabled, and can have an optional number of uses if
|
||||||
@ -7,8 +7,8 @@ defmodule Cannery.Invites.Invite do
|
|||||||
|
|
||||||
use Ecto.Schema
|
use Ecto.Schema
|
||||||
import Ecto.Changeset
|
import Ecto.Changeset
|
||||||
alias Ecto.{Changeset, UUID}
|
alias Cannery.Accounts.User
|
||||||
alias Cannery.{Accounts.User, Invites.Invite}
|
alias Ecto.{Association, Changeset, UUID}
|
||||||
|
|
||||||
@primary_key {:id, :binary_id, autogenerate: true}
|
@primary_key {:id, :binary_id, autogenerate: true}
|
||||||
@foreign_key_type :binary_id
|
@foreign_key_type :binary_id
|
||||||
@ -18,33 +18,37 @@ defmodule Cannery.Invites.Invite do
|
|||||||
field :uses_left, :integer, default: nil
|
field :uses_left, :integer, default: nil
|
||||||
field :disabled_at, :naive_datetime
|
field :disabled_at, :naive_datetime
|
||||||
|
|
||||||
belongs_to :user, User
|
belongs_to :created_by, User
|
||||||
|
|
||||||
|
has_many :users, User
|
||||||
|
|
||||||
timestamps()
|
timestamps()
|
||||||
end
|
end
|
||||||
|
|
||||||
@type t :: %Invite{
|
@type t :: %__MODULE__{
|
||||||
id: id(),
|
id: id(),
|
||||||
name: String.t(),
|
name: String.t(),
|
||||||
token: String.t(),
|
token: token(),
|
||||||
uses_left: integer() | nil,
|
uses_left: integer() | nil,
|
||||||
disabled_at: NaiveDateTime.t(),
|
disabled_at: NaiveDateTime.t(),
|
||||||
user: User.t(),
|
created_by: User.t() | nil | Association.NotLoaded.t(),
|
||||||
user_id: User.id(),
|
created_by_id: User.id() | nil,
|
||||||
|
users: [User.t()] | Association.NotLoaded.t(),
|
||||||
inserted_at: NaiveDateTime.t(),
|
inserted_at: NaiveDateTime.t(),
|
||||||
updated_at: NaiveDateTime.t()
|
updated_at: NaiveDateTime.t()
|
||||||
}
|
}
|
||||||
@type new_invite :: %Invite{}
|
@type new_invite :: %__MODULE__{}
|
||||||
@type id :: UUID.t()
|
@type id :: UUID.t()
|
||||||
@type changeset :: Changeset.t(t() | new_invite())
|
@type changeset :: Changeset.t(t() | new_invite())
|
||||||
|
@type token :: String.t()
|
||||||
|
|
||||||
@doc false
|
@doc false
|
||||||
@spec create_changeset(User.t(), token :: binary(), attrs :: map()) :: changeset()
|
@spec create_changeset(User.t(), token(), attrs :: map()) :: changeset()
|
||||||
def create_changeset(%User{id: user_id}, token, attrs) do
|
def create_changeset(%User{id: user_id}, token, attrs) do
|
||||||
%Invite{}
|
%__MODULE__{}
|
||||||
|> change(token: token, user_id: user_id)
|
|> change(token: token, created_by_id: user_id)
|
||||||
|> cast(attrs, [:name, :uses_left, :disabled_at])
|
|> cast(attrs, [:name, :uses_left, :disabled_at])
|
||||||
|> validate_required([:name, :token, :user_id])
|
|> validate_required([:name, :token, :created_by_id])
|
||||||
|> validate_number(:uses_left, greater_than_or_equal_to: 0)
|
|> validate_number(:uses_left, greater_than_or_equal_to: 0)
|
||||||
end
|
end
|
||||||
|
|
198
lib/cannery/accounts/invites.ex
Normal file
198
lib/cannery/accounts/invites.ex
Normal file
@ -0,0 +1,198 @@
|
|||||||
|
defmodule Cannery.Accounts.Invites do
|
||||||
|
@moduledoc """
|
||||||
|
The Invites context.
|
||||||
|
"""
|
||||||
|
|
||||||
|
import Ecto.Query, warn: false
|
||||||
|
alias Ecto.Multi
|
||||||
|
alias Cannery.Accounts.{Invite, User}
|
||||||
|
alias Cannery.Repo
|
||||||
|
|
||||||
|
@invite_token_length 20
|
||||||
|
|
||||||
|
@doc """
|
||||||
|
Returns the list of invites.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
iex> list_invites(%User{id: 123, role: :admin})
|
||||||
|
[%Invite{}, ...]
|
||||||
|
|
||||||
|
"""
|
||||||
|
@spec list_invites(User.t()) :: [Invite.t()]
|
||||||
|
def list_invites(%User{role: :admin}) do
|
||||||
|
Repo.all(from i in Invite, order_by: i.name)
|
||||||
|
end
|
||||||
|
|
||||||
|
@doc """
|
||||||
|
Gets a single invite for a user
|
||||||
|
|
||||||
|
Raises `Ecto.NoResultsError` if the Invite does not exist.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
iex> get_invite!(123, %User{id: 123, role: :admin})
|
||||||
|
%Invite{}
|
||||||
|
|
||||||
|
> get_invite!(456, %User{id: 123, role: :admin})
|
||||||
|
** (Ecto.NoResultsError)
|
||||||
|
|
||||||
|
"""
|
||||||
|
@spec get_invite!(Invite.id(), User.t()) :: Invite.t()
|
||||||
|
def get_invite!(id, %User{role: :admin}) do
|
||||||
|
Repo.get!(Invite, id)
|
||||||
|
end
|
||||||
|
|
||||||
|
@doc """
|
||||||
|
Returns if an invite token is still valid
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
iex> valid_invite_token?("valid_token")
|
||||||
|
%Invite{}
|
||||||
|
|
||||||
|
iex> valid_invite_token?("invalid_token")
|
||||||
|
nil
|
||||||
|
"""
|
||||||
|
@spec valid_invite_token?(Invite.token() | nil) :: boolean()
|
||||||
|
def valid_invite_token?(token) when token in [nil, ""], do: false
|
||||||
|
|
||||||
|
def valid_invite_token?(token) do
|
||||||
|
Repo.exists?(
|
||||||
|
from i in Invite,
|
||||||
|
where: i.token == ^token,
|
||||||
|
where: i.disabled_at |> is_nil()
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
|
@doc """
|
||||||
|
Uses invite by decrementing uses_left, or marks invite invalid if it's been
|
||||||
|
completely used.
|
||||||
|
"""
|
||||||
|
@spec use_invite(Invite.token()) :: {:ok, Invite.t()} | {:error, :invalid_token}
|
||||||
|
def use_invite(invite_token) do
|
||||||
|
Multi.new()
|
||||||
|
|> Multi.run(:invite, fn _changes_so_far, _repo ->
|
||||||
|
invite_token |> get_invite_by_token()
|
||||||
|
end)
|
||||||
|
|> Multi.update(:decrement_invite, fn %{invite: invite} ->
|
||||||
|
decrement_invite_changeset(invite)
|
||||||
|
end)
|
||||||
|
|> Repo.transaction()
|
||||||
|
|> case do
|
||||||
|
{:ok, %{decrement_invite: invite}} -> {:ok, invite}
|
||||||
|
{:error, :invite, :invalid_token, _changes_so_far} -> {:error, :invalid_token}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
@spec get_invite_by_token(Invite.token() | nil) :: {:ok, Invite.t()} | {:error, :invalid_token}
|
||||||
|
defp get_invite_by_token(token) when token in [nil, ""], do: {:error, :invalid_token}
|
||||||
|
|
||||||
|
defp get_invite_by_token(token) do
|
||||||
|
Repo.one(
|
||||||
|
from i in Invite,
|
||||||
|
where: i.token == ^token,
|
||||||
|
where: i.disabled_at |> is_nil()
|
||||||
|
)
|
||||||
|
|> case do
|
||||||
|
nil -> {:error, :invalid_token}
|
||||||
|
invite -> {:ok, invite}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
@spec get_use_count(Invite.t(), User.t()) :: non_neg_integer()
|
||||||
|
def get_use_count(%Invite{id: invite_id}, %User{role: :admin}) do
|
||||||
|
Repo.one(
|
||||||
|
from u in User,
|
||||||
|
where: u.invite_id == ^invite_id,
|
||||||
|
select: count(u.id)
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
|
@spec decrement_invite_changeset(Invite.t()) :: Invite.changeset()
|
||||||
|
defp decrement_invite_changeset(%Invite{uses_left: nil} = invite) do
|
||||||
|
invite |> Invite.update_changeset(%{})
|
||||||
|
end
|
||||||
|
|
||||||
|
defp decrement_invite_changeset(%Invite{uses_left: 1} = invite) do
|
||||||
|
now = NaiveDateTime.utc_now() |> NaiveDateTime.truncate(:second)
|
||||||
|
invite |> Invite.update_changeset(%{uses_left: 0, disabled_at: now})
|
||||||
|
end
|
||||||
|
|
||||||
|
defp decrement_invite_changeset(%Invite{uses_left: uses_left} = invite) do
|
||||||
|
invite |> Invite.update_changeset(%{uses_left: uses_left - 1})
|
||||||
|
end
|
||||||
|
|
||||||
|
@doc """
|
||||||
|
Creates a invite.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
iex> create_invite(%User{id: 123, role: :admin}, %{field: value})
|
||||||
|
{:ok, %Invite{}}
|
||||||
|
|
||||||
|
iex> create_invite(%User{id: 123, role: :admin}, %{field: bad_value})
|
||||||
|
{:error, %Changeset{}}
|
||||||
|
|
||||||
|
"""
|
||||||
|
@spec create_invite(User.t(), attrs :: map()) ::
|
||||||
|
{: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.create_changeset(user, token, attrs) |> Repo.insert()
|
||||||
|
end
|
||||||
|
|
||||||
|
@doc """
|
||||||
|
Updates a invite.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
iex> update_invite(invite, %{field: new_value}, %User{id: 123, role: :admin})
|
||||||
|
{:ok, %Invite{}}
|
||||||
|
|
||||||
|
iex> update_invite(invite, %{field: bad_value}, %User{id: 123, role: :admin})
|
||||||
|
{:error, %Changeset{}}
|
||||||
|
|
||||||
|
"""
|
||||||
|
@spec update_invite(Invite.t(), attrs :: map(), User.t()) ::
|
||||||
|
{:ok, Invite.t()} | {:error, Invite.changeset()}
|
||||||
|
def update_invite(invite, attrs, %User{role: :admin}) do
|
||||||
|
invite |> Invite.update_changeset(attrs) |> Repo.update()
|
||||||
|
end
|
||||||
|
|
||||||
|
@doc """
|
||||||
|
Deletes a invite.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
iex> delete_invite(invite, %User{id: 123, role: :admin})
|
||||||
|
{:ok, %Invite{}}
|
||||||
|
|
||||||
|
iex> delete_invite(invite, %User{id: 123, role: :admin})
|
||||||
|
{:error, %Changeset{}}
|
||||||
|
|
||||||
|
"""
|
||||||
|
@spec delete_invite(Invite.t(), User.t()) ::
|
||||||
|
{:ok, Invite.t()} | {:error, Invite.changeset()}
|
||||||
|
def delete_invite(invite, %User{role: :admin}) do
|
||||||
|
invite |> Repo.delete()
|
||||||
|
end
|
||||||
|
|
||||||
|
@doc """
|
||||||
|
Deletes a invite.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
iex> delete_invite(invite, %User{id: 123, role: :admin})
|
||||||
|
%Invite{}
|
||||||
|
|
||||||
|
"""
|
||||||
|
@spec delete_invite!(Invite.t(), User.t()) :: Invite.t()
|
||||||
|
def delete_invite!(invite, %User{role: :admin}) do
|
||||||
|
invite |> Repo.delete!()
|
||||||
|
end
|
||||||
|
end
|
@ -1,13 +1,13 @@
|
|||||||
defmodule Cannery.Accounts.User do
|
defmodule Cannery.Accounts.User do
|
||||||
@moduledoc """
|
@moduledoc """
|
||||||
A cannery user
|
A Cannery user
|
||||||
"""
|
"""
|
||||||
|
|
||||||
use Ecto.Schema
|
use Ecto.Schema
|
||||||
import Ecto.Changeset
|
import Ecto.Changeset
|
||||||
import CanneryWeb.Gettext
|
import CanneryWeb.Gettext
|
||||||
alias Ecto.{Changeset, UUID}
|
alias Ecto.{Association, Changeset, UUID}
|
||||||
alias Cannery.{Accounts.User, Invites.Invite}
|
alias Cannery.Accounts.{Invite, User}
|
||||||
|
|
||||||
@derive {Jason.Encoder,
|
@derive {Jason.Encoder,
|
||||||
only: [
|
only: [
|
||||||
@ -15,7 +15,9 @@ defmodule Cannery.Accounts.User do
|
|||||||
:email,
|
:email,
|
||||||
:confirmed_at,
|
:confirmed_at,
|
||||||
:role,
|
:role,
|
||||||
:locale
|
:locale,
|
||||||
|
:inserted_at,
|
||||||
|
:updated_at
|
||||||
]}
|
]}
|
||||||
@derive {Inspect, except: [:password]}
|
@derive {Inspect, except: [:password]}
|
||||||
@primary_key {:id, :binary_id, autogenerate: true}
|
@primary_key {:id, :binary_id, autogenerate: true}
|
||||||
@ -28,7 +30,9 @@ defmodule Cannery.Accounts.User do
|
|||||||
field :role, Ecto.Enum, values: [:admin, :user], default: :user
|
field :role, Ecto.Enum, values: [:admin, :user], default: :user
|
||||||
field :locale, :string
|
field :locale, :string
|
||||||
|
|
||||||
has_many :invites, Invite, on_delete: :delete_all
|
has_many :created_invites, Invite, foreign_key: :created_by_id
|
||||||
|
|
||||||
|
belongs_to :invite, Invite
|
||||||
|
|
||||||
timestamps()
|
timestamps()
|
||||||
end
|
end
|
||||||
@ -41,14 +45,16 @@ defmodule Cannery.Accounts.User do
|
|||||||
confirmed_at: NaiveDateTime.t(),
|
confirmed_at: NaiveDateTime.t(),
|
||||||
role: role(),
|
role: role(),
|
||||||
locale: String.t() | nil,
|
locale: String.t() | nil,
|
||||||
invites: [Invite.t()],
|
created_invites: [Invite.t()] | Association.NotLoaded.t(),
|
||||||
|
invite: Invite.t() | nil | Association.NotLoaded.t(),
|
||||||
|
invite_id: Invite.id() | nil,
|
||||||
inserted_at: NaiveDateTime.t(),
|
inserted_at: NaiveDateTime.t(),
|
||||||
updated_at: NaiveDateTime.t()
|
updated_at: NaiveDateTime.t()
|
||||||
}
|
}
|
||||||
@type new_user :: %User{}
|
@type new_user :: %User{}
|
||||||
@type id :: UUID.t()
|
@type id :: UUID.t()
|
||||||
@type changeset :: Changeset.t(t() | new_user())
|
@type changeset :: Changeset.t(t() | new_user())
|
||||||
@type role :: :admin | :user | String.t()
|
@type role :: :admin | :user
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
A user changeset for registration.
|
A user changeset for registration.
|
||||||
@ -67,11 +73,12 @@ defmodule Cannery.Accounts.User do
|
|||||||
validations on a LiveView form), this option can be set to `false`.
|
validations on a LiveView form), this option can be set to `false`.
|
||||||
Defaults to `true`.
|
Defaults to `true`.
|
||||||
"""
|
"""
|
||||||
@spec registration_changeset(attrs :: map()) :: changeset()
|
@spec registration_changeset(attrs :: map(), Invite.t() | nil) :: changeset()
|
||||||
@spec registration_changeset(attrs :: map(), opts :: keyword()) :: changeset()
|
@spec registration_changeset(attrs :: map(), Invite.t() | nil, opts :: keyword()) :: changeset()
|
||||||
def registration_changeset(attrs, opts \\ []) do
|
def registration_changeset(attrs, invite, opts \\ []) do
|
||||||
%User{}
|
%User{}
|
||||||
|> cast(attrs, [:email, :password, :locale])
|
|> cast(attrs, [:email, :password, :locale])
|
||||||
|
|> put_change(:invite_id, if(invite, do: invite.id))
|
||||||
|> validate_email()
|
|> validate_email()
|
||||||
|> validate_password(opts)
|
|> validate_password(opts)
|
||||||
end
|
end
|
||||||
@ -81,7 +88,7 @@ defmodule Cannery.Accounts.User do
|
|||||||
"""
|
"""
|
||||||
@spec role_changeset(t() | new_user() | changeset(), role()) :: changeset()
|
@spec role_changeset(t() | new_user() | changeset(), role()) :: changeset()
|
||||||
def role_changeset(user, role) do
|
def role_changeset(user, role) do
|
||||||
user |> cast(%{"role" => role}, [:role])
|
user |> change(role: role)
|
||||||
end
|
end
|
||||||
|
|
||||||
@spec validate_email(changeset()) :: changeset()
|
@spec validate_email(changeset()) :: changeset()
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
defmodule Cannery.Accounts.UserToken do
|
defmodule Cannery.Accounts.UserToken do
|
||||||
@moduledoc """
|
@moduledoc """
|
||||||
Schema for serialized user session and authentication tokens
|
Schema for a user's session token
|
||||||
"""
|
"""
|
||||||
|
|
||||||
use Ecto.Schema
|
use Ecto.Schema
|
||||||
import Ecto.Query
|
import Ecto.Query
|
||||||
alias Ecto.{Query, UUID}
|
alias Cannery.Accounts.User
|
||||||
alias Cannery.{Accounts.User, Accounts.UserToken}
|
alias Ecto.{Association, UUID}
|
||||||
|
|
||||||
@hash_algorithm :sha256
|
@hash_algorithm :sha256
|
||||||
@rand_size 32
|
@rand_size 32
|
||||||
@ -30,27 +30,27 @@ defmodule Cannery.Accounts.UserToken do
|
|||||||
timestamps(updated_at: false)
|
timestamps(updated_at: false)
|
||||||
end
|
end
|
||||||
|
|
||||||
@type t :: %UserToken{
|
@type t :: %__MODULE__{
|
||||||
id: id(),
|
id: id(),
|
||||||
token: String.t(),
|
token: token(),
|
||||||
context: String.t(),
|
context: String.t(),
|
||||||
sent_to: String.t(),
|
sent_to: String.t(),
|
||||||
user: User.t(),
|
user: User.t() | Association.NotLoaded.t(),
|
||||||
user_id: User.id(),
|
user_id: User.id() | nil,
|
||||||
inserted_at: NaiveDateTime.t()
|
inserted_at: NaiveDateTime.t()
|
||||||
}
|
}
|
||||||
@type new_token :: %UserToken{}
|
@type new_user_token :: %__MODULE__{}
|
||||||
@type id :: UUID.t()
|
@type id :: UUID.t()
|
||||||
|
@type token :: binary()
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Generates a token that will be stored in a signed place,
|
Generates a token that will be stored in a signed place,
|
||||||
such as session or cookie. As they are signed, those
|
such as session or cookie. As they are signed, those
|
||||||
tokens do not need to be hashed.
|
tokens do not need to be hashed.
|
||||||
"""
|
"""
|
||||||
@spec build_session_token(User.t()) :: {token :: String.t(), new_token()}
|
def build_session_token(user) do
|
||||||
def build_session_token(%{id: user_id}) do
|
|
||||||
token = :crypto.strong_rand_bytes(@rand_size)
|
token = :crypto.strong_rand_bytes(@rand_size)
|
||||||
{token, %UserToken{token: token, context: "session", user_id: user_id}}
|
{token, %__MODULE__{token: token, context: "session", user_id: user.id}}
|
||||||
end
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
@ -58,7 +58,6 @@ defmodule Cannery.Accounts.UserToken do
|
|||||||
|
|
||||||
The query returns the user found by the token.
|
The query returns the user found by the token.
|
||||||
"""
|
"""
|
||||||
@spec verify_session_token_query(token :: String.t()) :: {:ok, Query.t()}
|
|
||||||
def verify_session_token_query(token) do
|
def verify_session_token_query(token) do
|
||||||
query =
|
query =
|
||||||
from token in token_and_context_query(token, "session"),
|
from token in token_and_context_query(token, "session"),
|
||||||
@ -77,19 +76,16 @@ defmodule Cannery.Accounts.UserToken do
|
|||||||
The token is valid for a week as long as users don't change
|
The token is valid for a week as long as users don't change
|
||||||
their email.
|
their email.
|
||||||
"""
|
"""
|
||||||
@spec build_email_token(User.t(), context :: String.t()) :: {token :: String.t(), new_token()}
|
|
||||||
def build_email_token(user, context) do
|
def build_email_token(user, context) do
|
||||||
build_hashed_token(user, context, user.email)
|
build_hashed_token(user, context, user.email)
|
||||||
end
|
end
|
||||||
|
|
||||||
@spec build_hashed_token(User.t(), String.t(), String.t()) ::
|
|
||||||
{String.t(), new_token()}
|
|
||||||
defp build_hashed_token(user, context, sent_to) do
|
defp build_hashed_token(user, context, sent_to) do
|
||||||
token = :crypto.strong_rand_bytes(@rand_size)
|
token = :crypto.strong_rand_bytes(@rand_size)
|
||||||
hashed_token = :crypto.hash(@hash_algorithm, token)
|
hashed_token = :crypto.hash(@hash_algorithm, token)
|
||||||
|
|
||||||
{Base.url_encode64(token, padding: false),
|
{Base.url_encode64(token, padding: false),
|
||||||
%UserToken{
|
%__MODULE__{
|
||||||
token: hashed_token,
|
token: hashed_token,
|
||||||
context: context,
|
context: context,
|
||||||
sent_to: sent_to,
|
sent_to: sent_to,
|
||||||
@ -102,8 +98,6 @@ defmodule Cannery.Accounts.UserToken do
|
|||||||
|
|
||||||
The query returns the user found by the token.
|
The query returns the user found by the token.
|
||||||
"""
|
"""
|
||||||
@spec verify_email_token_query(token :: String.t(), context :: String.t()) ::
|
|
||||||
{:ok, Query.t()} | :error
|
|
||||||
def verify_email_token_query(token, context) do
|
def verify_email_token_query(token, context) do
|
||||||
case Base.url_decode64(token, padding: false) do
|
case Base.url_decode64(token, padding: false) do
|
||||||
{:ok, decoded_token} ->
|
{:ok, decoded_token} ->
|
||||||
@ -123,7 +117,6 @@ defmodule Cannery.Accounts.UserToken do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@spec days_for_context(context :: <<_::56>>) :: non_neg_integer()
|
|
||||||
defp days_for_context("confirm"), do: @confirm_validity_in_days
|
defp days_for_context("confirm"), do: @confirm_validity_in_days
|
||||||
defp days_for_context("reset_password"), do: @reset_password_validity_in_days
|
defp days_for_context("reset_password"), do: @reset_password_validity_in_days
|
||||||
|
|
||||||
@ -132,8 +125,6 @@ defmodule Cannery.Accounts.UserToken do
|
|||||||
|
|
||||||
The query returns the user token record.
|
The query returns the user token record.
|
||||||
"""
|
"""
|
||||||
@spec verify_change_email_token_query(token :: String.t(), context :: String.t()) ::
|
|
||||||
{:ok, Query.t()} | :error
|
|
||||||
def verify_change_email_token_query(token, context) do
|
def verify_change_email_token_query(token, context) do
|
||||||
case Base.url_decode64(token, padding: false) do
|
case Base.url_decode64(token, padding: false) do
|
||||||
{:ok, decoded_token} ->
|
{:ok, decoded_token} ->
|
||||||
@ -153,21 +144,18 @@ defmodule Cannery.Accounts.UserToken do
|
|||||||
@doc """
|
@doc """
|
||||||
Returns the given token with the given context.
|
Returns the given token with the given context.
|
||||||
"""
|
"""
|
||||||
@spec token_and_context_query(token :: String.t(), context :: String.t()) :: Query.t()
|
|
||||||
def token_and_context_query(token, context) do
|
def token_and_context_query(token, context) do
|
||||||
from UserToken, where: [token: ^token, context: ^context]
|
from __MODULE__, where: [token: ^token, context: ^context]
|
||||||
end
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Gets all tokens for the given user for the given contexts.
|
Gets all tokens for the given user for the given contexts.
|
||||||
"""
|
"""
|
||||||
@spec user_and_contexts_query(User.t(), contexts :: :all | nonempty_maybe_improper_list()) ::
|
def user_and_contexts_query(user, :all) do
|
||||||
Query.t()
|
from t in __MODULE__, where: t.user_id == ^user.id
|
||||||
def user_and_contexts_query(%{id: user_id}, :all) do
|
|
||||||
from t in UserToken, where: t.user_id == ^user_id
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def user_and_contexts_query(%{id: user_id}, [_ | _] = contexts) do
|
def user_and_contexts_query(user, [_ | _] = contexts) do
|
||||||
from t in UserToken, where: t.user_id == ^user_id and t.context in ^contexts
|
from t in __MODULE__, where: t.user_id == ^user.id and t.context in ^contexts
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -4,6 +4,7 @@ defmodule Cannery.Application do
|
|||||||
@moduledoc false
|
@moduledoc false
|
||||||
|
|
||||||
use Application
|
use Application
|
||||||
|
alias Cannery.ErrorReporter
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def start(_type, _args) do
|
def start(_type, _args) do
|
||||||
@ -17,16 +18,24 @@ defmodule Cannery.Application do
|
|||||||
# Start the Endpoint (http/https)
|
# Start the Endpoint (http/https)
|
||||||
CanneryWeb.Endpoint,
|
CanneryWeb.Endpoint,
|
||||||
# Add Oban
|
# Add Oban
|
||||||
{Oban, oban_config()}
|
{Oban, oban_config()},
|
||||||
|
Cannery.Repo.Migrator
|
||||||
# Start a worker by calling: Cannery.Worker.start_link(arg)
|
# Start a worker by calling: Cannery.Worker.start_link(arg)
|
||||||
# {Cannery.Worker, arg}
|
# {Cannery.Worker, arg}
|
||||||
]
|
]
|
||||||
|
|
||||||
# Automatically migrate on start in prod
|
# Oban events logging https://hexdocs.pm/oban/Oban.html#module-reporting-errors
|
||||||
children =
|
:ok =
|
||||||
if Application.get_env(:cannery, Cannery.Application, automigrate: false)[:automigrate],
|
:telemetry.attach_many(
|
||||||
do: children ++ [Cannery.Repo.Migrator],
|
"oban-logger",
|
||||||
else: children
|
[
|
||||||
|
[:oban, :job, :exception],
|
||||||
|
[:oban, :job, :start],
|
||||||
|
[:oban, :job, :stop]
|
||||||
|
],
|
||||||
|
&ErrorReporter.handle_event/4,
|
||||||
|
[]
|
||||||
|
)
|
||||||
|
|
||||||
# See https://hexdocs.pm/elixir/Supervisor.html
|
# See https://hexdocs.pm/elixir/Supervisor.html
|
||||||
# for other strategies and supported options
|
# for other strategies and supported options
|
||||||
|
57
lib/cannery/error_reporter.ex
Normal file
57
lib/cannery/error_reporter.ex
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
defmodule Cannery.ErrorReporter do
|
||||||
|
@moduledoc """
|
||||||
|
Custom logger for telemetry events
|
||||||
|
|
||||||
|
Oban implementation taken from
|
||||||
|
https://hexdocs.pm/oban/Oban.html#module-reporting-errors
|
||||||
|
"""
|
||||||
|
|
||||||
|
require Logger
|
||||||
|
|
||||||
|
def handle_event([:oban, :job, :exception], measure, %{stacktrace: stacktrace} = meta, _config) do
|
||||||
|
data =
|
||||||
|
get_oban_job_data(meta, measure)
|
||||||
|
|> Map.put(:stacktrace, Exception.format_stacktrace(stacktrace))
|
||||||
|
|
||||||
|
Logger.error(meta.reason, data: pretty_encode(data))
|
||||||
|
end
|
||||||
|
|
||||||
|
def handle_event([:oban, :job, :start], measure, meta, _config) do
|
||||||
|
Logger.info("Started oban job", data: get_oban_job_data(meta, measure) |> pretty_encode())
|
||||||
|
end
|
||||||
|
|
||||||
|
def handle_event([:oban, :job, :stop], measure, meta, _config) do
|
||||||
|
Logger.info("Finished oban job", data: get_oban_job_data(meta, measure) |> pretty_encode())
|
||||||
|
end
|
||||||
|
|
||||||
|
def handle_event([:oban, :job, unhandled_event], measure, meta, _config) do
|
||||||
|
data =
|
||||||
|
get_oban_job_data(meta, measure)
|
||||||
|
|> Map.put(:event, unhandled_event)
|
||||||
|
|
||||||
|
Logger.warning("Unhandled oban job event", data: pretty_encode(data))
|
||||||
|
end
|
||||||
|
|
||||||
|
def handle_event(unhandled_event, measure, meta, config) do
|
||||||
|
data = %{
|
||||||
|
event: unhandled_event,
|
||||||
|
meta: meta,
|
||||||
|
measurements: measure,
|
||||||
|
config: config
|
||||||
|
}
|
||||||
|
|
||||||
|
Logger.warning("Unhandled telemetry event", data: pretty_encode(data))
|
||||||
|
end
|
||||||
|
|
||||||
|
defp get_oban_job_data(%{job: job}, measure) do
|
||||||
|
job
|
||||||
|
|> Map.take([:id, :args, :meta, :queue, :worker])
|
||||||
|
|> Map.merge(measure)
|
||||||
|
end
|
||||||
|
|
||||||
|
defp pretty_encode(data) do
|
||||||
|
data
|
||||||
|
|> Jason.encode!()
|
||||||
|
|> Jason.Formatter.pretty_print()
|
||||||
|
end
|
||||||
|
end
|
@ -1,155 +0,0 @@
|
|||||||
defmodule Cannery.Invites do
|
|
||||||
@moduledoc """
|
|
||||||
The Invites context.
|
|
||||||
"""
|
|
||||||
|
|
||||||
import Ecto.Query, warn: false
|
|
||||||
alias Cannery.{Accounts.User, Invites.Invite, Repo}
|
|
||||||
|
|
||||||
@invite_token_length 20
|
|
||||||
|
|
||||||
@doc """
|
|
||||||
Returns the list of invites.
|
|
||||||
|
|
||||||
## Examples
|
|
||||||
|
|
||||||
iex> list_invites(%User{id: 123, role: :admin})
|
|
||||||
[%Invite{}, ...]
|
|
||||||
|
|
||||||
"""
|
|
||||||
@spec list_invites(User.t()) :: [Invite.t()]
|
|
||||||
def list_invites(%User{role: :admin}) do
|
|
||||||
Repo.all(from i in Invite, order_by: i.name)
|
|
||||||
end
|
|
||||||
|
|
||||||
@doc """
|
|
||||||
Gets a single invite.
|
|
||||||
|
|
||||||
Raises `Ecto.NoResultsError` if the Invite does not exist.
|
|
||||||
|
|
||||||
## Examples
|
|
||||||
|
|
||||||
iex> get_invite!(123, %User{id: 123, role: :admin})
|
|
||||||
%Invite{}
|
|
||||||
|
|
||||||
iex> get_invite!(456, %User{id: 123, role: :admin})
|
|
||||||
** (Ecto.NoResultsError)
|
|
||||||
|
|
||||||
"""
|
|
||||||
@spec get_invite!(Invite.id(), User.t()) :: Invite.t()
|
|
||||||
def get_invite!(id, %User{role: :admin}) do
|
|
||||||
Repo.get!(Invite, id)
|
|
||||||
end
|
|
||||||
|
|
||||||
@doc """
|
|
||||||
Returns a valid invite or nil based on the attempted token
|
|
||||||
|
|
||||||
## Examples
|
|
||||||
|
|
||||||
iex> get_invite_by_token("valid_token")
|
|
||||||
%Invite{}
|
|
||||||
|
|
||||||
iex> get_invite_by_token("invalid_token")
|
|
||||||
nil
|
|
||||||
"""
|
|
||||||
@spec get_invite_by_token(token :: String.t() | nil) :: Invite.t() | nil
|
|
||||||
def get_invite_by_token(nil), do: nil
|
|
||||||
def get_invite_by_token(""), do: nil
|
|
||||||
|
|
||||||
def get_invite_by_token(token) do
|
|
||||||
Repo.one(
|
|
||||||
from(i in Invite,
|
|
||||||
where: i.token == ^token and i.disabled_at |> is_nil()
|
|
||||||
)
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
@doc """
|
|
||||||
Uses invite by decrementing uses_left, or marks invite invalid if it's been
|
|
||||||
completely used.
|
|
||||||
"""
|
|
||||||
@spec use_invite!(Invite.t()) :: Invite.t()
|
|
||||||
def use_invite!(%Invite{uses_left: nil} = invite), do: invite
|
|
||||||
|
|
||||||
def use_invite!(%Invite{uses_left: uses_left} = invite) do
|
|
||||||
new_uses_left = uses_left - 1
|
|
||||||
|
|
||||||
attrs =
|
|
||||||
if new_uses_left <= 0 do
|
|
||||||
now = NaiveDateTime.utc_now() |> NaiveDateTime.truncate(:second)
|
|
||||||
%{"uses_left" => 0, "disabled_at" => now}
|
|
||||||
else
|
|
||||||
%{"uses_left" => new_uses_left}
|
|
||||||
end
|
|
||||||
|
|
||||||
invite |> Invite.update_changeset(attrs) |> Repo.update!()
|
|
||||||
end
|
|
||||||
|
|
||||||
@doc """
|
|
||||||
Creates a invite.
|
|
||||||
|
|
||||||
## Examples
|
|
||||||
|
|
||||||
iex> create_invite(%User{id: 123, role: :admin}, %{field: value})
|
|
||||||
{:ok, %Invite{}}
|
|
||||||
|
|
||||||
iex> create_invite(%User{id: 123, role: :admin}, %{field: bad_value})
|
|
||||||
{:error, %Changeset{}}
|
|
||||||
|
|
||||||
"""
|
|
||||||
@spec create_invite(User.t(), attrs :: map()) ::
|
|
||||||
{: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.create_changeset(user, token, attrs) |> Repo.insert()
|
|
||||||
end
|
|
||||||
|
|
||||||
@doc """
|
|
||||||
Updates a invite.
|
|
||||||
|
|
||||||
## Examples
|
|
||||||
|
|
||||||
iex> update_invite(invite, %{field: new_value}, %User{id: 123, role: :admin})
|
|
||||||
{:ok, %Invite{}}
|
|
||||||
|
|
||||||
iex> update_invite(invite, %{field: bad_value}, %User{id: 123, role: :admin})
|
|
||||||
{:error, %Changeset{}}
|
|
||||||
|
|
||||||
"""
|
|
||||||
@spec update_invite(Invite.t(), attrs :: map(), User.t()) ::
|
|
||||||
{:ok, Invite.t()} | {:error, Invite.changeset()}
|
|
||||||
def update_invite(invite, attrs, %User{role: :admin}),
|
|
||||||
do: invite |> Invite.update_changeset(attrs) |> Repo.update()
|
|
||||||
|
|
||||||
@doc """
|
|
||||||
Deletes a invite.
|
|
||||||
|
|
||||||
## Examples
|
|
||||||
|
|
||||||
iex> delete_invite(invite, %User{id: 123, role: :admin})
|
|
||||||
{:ok, %Invite{}}
|
|
||||||
|
|
||||||
iex> delete_invite(invite, %User{id: 123, role: :admin})
|
|
||||||
{:error, %Changeset{}}
|
|
||||||
|
|
||||||
"""
|
|
||||||
@spec delete_invite(Invite.t(), User.t()) ::
|
|
||||||
{:ok, Invite.t()} | {:error, Invite.changeset()}
|
|
||||||
def delete_invite(invite, %User{role: :admin}), do: invite |> Repo.delete()
|
|
||||||
|
|
||||||
@doc """
|
|
||||||
Deletes a invite.
|
|
||||||
|
|
||||||
## Examples
|
|
||||||
|
|
||||||
iex> delete_invite(invite, %User{id: 123, role: :admin})
|
|
||||||
%Invite{}
|
|
||||||
|
|
||||||
"""
|
|
||||||
@spec delete_invite!(Invite.t(), User.t()) :: Invite.t()
|
|
||||||
def delete_invite!(invite, %User{role: :admin}), do: invite |> Repo.delete!()
|
|
||||||
end
|
|
@ -11,12 +11,15 @@ defmodule Cannery.Repo.Migrator do
|
|||||||
end
|
end
|
||||||
|
|
||||||
def init(_opts) do
|
def init(_opts) do
|
||||||
migrate!()
|
{:ok, if(automigrate_enabled?(), do: migrate!())}
|
||||||
{:ok, nil}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def migrate! do
|
def migrate! do
|
||||||
path = Application.app_dir(:cannery, "priv/repo/migrations")
|
path = Application.app_dir(:cannery, "priv/repo/migrations")
|
||||||
Ecto.Migrator.run(Cannery.Repo, path, :up, all: true)
|
Ecto.Migrator.run(Cannery.Repo, path, :up, all: true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
defp automigrate_enabled? do
|
||||||
|
Application.get_env(:cannery, Cannery.Application, automigrate: false)[:automigrate]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
@ -72,16 +72,14 @@ defmodule CanneryWeb do
|
|||||||
quote do
|
quote do
|
||||||
use Phoenix.Router
|
use Phoenix.Router
|
||||||
|
|
||||||
|
import Phoenix.{Controller, LiveView.Router}
|
||||||
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
||||||
import Plug.Conn
|
import Plug.Conn
|
||||||
import Phoenix.Controller
|
|
||||||
import Phoenix.LiveView.Router
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def channel do
|
def channel do
|
||||||
quote do
|
quote do
|
||||||
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
|
||||||
use Phoenix.Channel
|
use Phoenix.Channel
|
||||||
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
||||||
import CanneryWeb.Gettext
|
import CanneryWeb.Gettext
|
||||||
@ -95,15 +93,10 @@ defmodule CanneryWeb do
|
|||||||
use Phoenix.HTML
|
use Phoenix.HTML
|
||||||
|
|
||||||
# Import LiveView and .heex helpers (live_render, live_patch, <.form>, etc)
|
# Import LiveView and .heex helpers (live_render, live_patch, <.form>, etc)
|
||||||
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
|
||||||
import Phoenix.Component
|
|
||||||
|
|
||||||
# Import basic rendering functionality (render, render_layout, etc)
|
# Import basic rendering functionality (render, render_layout, etc)
|
||||||
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
|
||||||
import Phoenix.View
|
|
||||||
|
|
||||||
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
|
||||||
import CanneryWeb.{ErrorHelpers, Gettext, LiveHelpers, ViewHelpers}
|
import CanneryWeb.{ErrorHelpers, Gettext, LiveHelpers, ViewHelpers}
|
||||||
|
import Phoenix.{Component, View}
|
||||||
|
|
||||||
alias CanneryWeb.Endpoint
|
alias CanneryWeb.Endpoint
|
||||||
alias CanneryWeb.Router.Helpers, as: Routes
|
alias CanneryWeb.Router.Helpers, as: Routes
|
||||||
end
|
end
|
||||||
|
@ -12,11 +12,12 @@
|
|||||||
phx-change="validate"
|
phx-change="validate"
|
||||||
phx-submit="save"
|
phx-submit="save"
|
||||||
>
|
>
|
||||||
<%= if @changeset.action && not @changeset.valid? do %>
|
<div
|
||||||
<div class="invalid-feedback col-span-3 text-center">
|
:if={@changeset.action && not @changeset.valid?()}
|
||||||
<%= changeset_errors(@changeset) %>
|
class="invalid-feedback col-span-3 text-center"
|
||||||
</div>
|
>
|
||||||
<% end %>
|
<%= changeset_errors(@changeset) %>
|
||||||
|
</div>
|
||||||
|
|
||||||
<%= label(f, :ammo_left, gettext("Rounds left"), class: "title text-lg text-primary-600") %>
|
<%= label(f, :ammo_left, gettext("Rounds left"), class: "title text-lg text-primary-600") %>
|
||||||
<%= number_input(f, :ammo_left,
|
<%= number_input(f, :ammo_left,
|
||||||
|
@ -23,9 +23,10 @@ defmodule CanneryWeb.Components.AmmoGroupCard do
|
|||||||
~H"""
|
~H"""
|
||||||
<div
|
<div
|
||||||
id={"ammo_group-#{@ammo_group.id}"}
|
id={"ammo_group-#{@ammo_group.id}"}
|
||||||
class="mx-4 my-2 px-8 py-4 flex flex-col justify-center items-center
|
class="mx-4 my-2 px-8 py-4
|
||||||
border border-gray-400 rounded-lg shadow-lg hover:shadow-md
|
flex flex-col justify-center items-center
|
||||||
transition-all duration-300 ease-in-out"
|
border border-gray-400 rounded-lg shadow-lg hover:shadow-md
|
||||||
|
transition-all duration-300 ease-in-out"
|
||||||
>
|
>
|
||||||
<.link navigate={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)} class="mb-2 link">
|
<.link navigate={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)} class="mb-2 link">
|
||||||
<h1 class="title text-xl title-primary-500">
|
<h1 class="title text-xl title-primary-500">
|
||||||
@ -39,31 +40,28 @@ defmodule CanneryWeb.Components.AmmoGroupCard do
|
|||||||
<%= if @ammo_group.count == 0, do: gettext("Empty"), else: @ammo_group.count %>
|
<%= if @ammo_group.count == 0, do: gettext("Empty"), else: @ammo_group.count %>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<%= if @ammo_group |> Ammo.get_original_count() != @ammo_group.count do %>
|
<span
|
||||||
<span class="rounded-lg title text-lg">
|
:if={@ammo_group |> Ammo.get_original_count() != @ammo_group.count}
|
||||||
<%= gettext("Original Count:") %>
|
class="rounded-lg title text-lg"
|
||||||
<%= @ammo_group |> Ammo.get_original_count() %>
|
>
|
||||||
</span>
|
<%= gettext("Original Count:") %>
|
||||||
<% end %>
|
<%= @ammo_group |> Ammo.get_original_count() %>
|
||||||
|
</span>
|
||||||
|
|
||||||
<%= if @ammo_group.notes do %>
|
<span :if={@ammo_group.notes} class="rounded-lg title text-lg">
|
||||||
<span class="rounded-lg title text-lg">
|
<%= gettext("Notes:") %>
|
||||||
<%= gettext("Notes:") %>
|
<%= @ammo_group.notes %>
|
||||||
<%= @ammo_group.notes %>
|
</span>
|
||||||
</span>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<span class="rounded-lg title text-lg">
|
<span class="rounded-lg title text-lg">
|
||||||
<%= gettext("Purchased on:") %>
|
<%= gettext("Purchased on:") %>
|
||||||
<%= @ammo_group.purchased_on |> display_date() %>
|
<.date date={@ammo_group.purchased_on} />
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<%= if @ammo_group |> Ammo.get_last_used_shot_group() do %>
|
<span :if={@ammo_group |> Ammo.get_last_used_shot_group()} class="rounded-lg title text-lg">
|
||||||
<span class="rounded-lg title text-lg">
|
<%= gettext("Last used on:") %>
|
||||||
<%= gettext("Last used on:") %>
|
<.date date={@ammo_group |> Ammo.get_last_used_shot_group() |> Map.get(:date)} />
|
||||||
<%= @ammo_group |> Ammo.get_last_used_shot_group() |> Map.get(:date) |> display_date() %>
|
</span>
|
||||||
</span>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= if @ammo_group.price_paid do %>
|
<%= if @ammo_group.price_paid do %>
|
||||||
<span class="rounded-lg title text-lg">
|
<span class="rounded-lg title text-lg">
|
||||||
@ -81,25 +79,24 @@ defmodule CanneryWeb.Components.AmmoGroupCard do
|
|||||||
</span>
|
</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= if @show_container and @ammo_group.container do %>
|
<span :if={@show_container and @ammo_group.container} class="rounded-lg title text-lg">
|
||||||
<span class="rounded-lg title text-lg">
|
<%= gettext("Container:") %>
|
||||||
<%= gettext("Container:") %>
|
|
||||||
|
|
||||||
<.link
|
<.link
|
||||||
navigate={Routes.container_show_path(Endpoint, :show, @ammo_group.container)}
|
navigate={Routes.container_show_path(Endpoint, :show, @ammo_group.container)}
|
||||||
class="link"
|
class="link"
|
||||||
>
|
>
|
||||||
<%= @ammo_group.container.name %>
|
<%= @ammo_group.container.name %>
|
||||||
</.link>
|
</.link>
|
||||||
</span>
|
</span>
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= if assigns |> Map.has_key?(:inner_block) do %>
|
<div
|
||||||
<div class="mt-4 flex space-x-4 justify-center items-center">
|
:if={assigns |> Map.has_key?(:inner_block)}
|
||||||
<%= render_slot(@inner_block) %>
|
class="mt-4 flex space-x-4 justify-center items-center"
|
||||||
</div>
|
>
|
||||||
<% end %>
|
<%= render_slot(@inner_block) %>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
"""
|
"""
|
||||||
end
|
end
|
||||||
|
@ -157,7 +157,7 @@ defmodule CanneryWeb.Components.AmmoGroupTableComponent do
|
|||||||
|
|
||||||
{purchased_on,
|
{purchased_on,
|
||||||
~H"""
|
~H"""
|
||||||
<%= @purchased_on |> display_date() %>
|
<.date date={@purchased_on} />
|
||||||
"""}
|
"""}
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -173,7 +173,7 @@ defmodule CanneryWeb.Components.AmmoGroupTableComponent do
|
|||||||
{last_shot_group_date,
|
{last_shot_group_date,
|
||||||
~H"""
|
~H"""
|
||||||
<%= if @last_shot_group_date do %>
|
<%= if @last_shot_group_date do %>
|
||||||
<%= @last_shot_group_date |> display_date() %>
|
<.date date={@last_shot_group_date} />
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= gettext("Never used") %>
|
<%= gettext("Never used") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -23,7 +23,8 @@ defmodule CanneryWeb.Components.ContainerCard do
|
|||||||
~H"""
|
~H"""
|
||||||
<div
|
<div
|
||||||
id={"container-#{@container.id}"}
|
id={"container-#{@container.id}"}
|
||||||
class="overflow-hidden max-w-full mx-4 mb-4 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
|
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"
|
||||||
>
|
>
|
||||||
@ -34,24 +35,20 @@ defmodule CanneryWeb.Components.ContainerCard do
|
|||||||
</h1>
|
</h1>
|
||||||
</.link>
|
</.link>
|
||||||
|
|
||||||
<%= if @container.desc do %>
|
<span :if={@container.desc} class="rounded-lg title text-lg">
|
||||||
<span class="rounded-lg title text-lg">
|
<%= gettext("Description:") %>
|
||||||
<%= gettext("Description:") %>
|
<%= @container.desc %>
|
||||||
<%= @container.desc %>
|
</span>
|
||||||
</span>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<span class="rounded-lg title text-lg">
|
<span class="rounded-lg title text-lg">
|
||||||
<%= gettext("Type:") %>
|
<%= gettext("Type:") %>
|
||||||
<%= @container.type %>
|
<%= @container.type %>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<%= if @container.location do %>
|
<span :if={@container.location} class="rounded-lg title text-lg">
|
||||||
<span class="rounded-lg title text-lg">
|
<%= gettext("Location:") %>
|
||||||
<%= gettext("Location:") %>
|
<%= @container.location %>
|
||||||
<%= @container.location %>
|
</span>
|
||||||
</span>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= unless @container.ammo_groups |> Enum.empty?() do %>
|
<%= unless @container.ammo_groups |> Enum.empty?() do %>
|
||||||
<span class="rounded-lg title text-lg">
|
<span class="rounded-lg title text-lg">
|
||||||
@ -66,21 +63,18 @@ defmodule CanneryWeb.Components.ContainerCard do
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="flex flex-wrap justify-center items-center">
|
<div class="flex flex-wrap justify-center items-center">
|
||||||
<%= unless @container.tags |> Enum.empty?() do %>
|
<.simple_tag_card :for={tag <- @container.tags} :if={@container.tags} tag={tag} />
|
||||||
<%= for tag <- @container.tags do %>
|
|
||||||
<.simple_tag_card tag={tag} />
|
|
||||||
<% end %>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= render_slot(@tag_actions) %>
|
<%= render_slot(@tag_actions) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= if assigns |> Map.has_key?(:inner_block) do %>
|
<div
|
||||||
<div class="flex space-x-4 justify-center items-center">
|
:if={assigns |> Map.has_key?(:inner_block)}
|
||||||
<%= render_slot(@inner_block) %>
|
class="flex space-x-4 justify-center items-center"
|
||||||
</div>
|
>
|
||||||
<% end %>
|
<%= render_slot(@inner_block) %>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
"""
|
"""
|
||||||
end
|
end
|
||||||
|
@ -135,11 +135,7 @@ defmodule CanneryWeb.Components.ContainerTableComponent do
|
|||||||
{container.tags |> Enum.map(fn %{name: name} -> name end),
|
{container.tags |> Enum.map(fn %{name: name} -> name end),
|
||||||
~H"""
|
~H"""
|
||||||
<div class="flex flex-wrap justify-center items-center">
|
<div class="flex flex-wrap justify-center items-center">
|
||||||
<%= unless @container.tags |> Enum.empty?() do %>
|
<TagCard.simple_tag_card :for={tag <- @container.tags} :if={@container.tags} tag={tag} />
|
||||||
<%= for tag <- @container.tags do %>
|
|
||||||
<TagCard.simple_tag_card tag={tag} />
|
|
||||||
<% end %>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= render_slot(@tag_actions, @container) %>
|
<%= render_slot(@tag_actions, @container) %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -4,31 +4,38 @@ defmodule CanneryWeb.Components.InviteCard do
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
use CanneryWeb, :component
|
use CanneryWeb, :component
|
||||||
alias Cannery.Invites.Invite
|
alias Cannery.Accounts.{Invite, Invites, User}
|
||||||
alias CanneryWeb.Endpoint
|
alias CanneryWeb.Endpoint
|
||||||
|
|
||||||
attr :invite, Invite, required: true
|
attr :invite, Invite, required: true
|
||||||
|
attr :current_user, User, required: true
|
||||||
slot(:inner_block)
|
slot(:inner_block)
|
||||||
slot(:code_actions)
|
slot(:code_actions)
|
||||||
|
|
||||||
def invite_card(assigns) do
|
def invite_card(%{invite: invite, current_user: current_user} = assigns) do
|
||||||
assigns = assigns |> assign_new(:code_actions, fn -> [] end)
|
assigns =
|
||||||
|
assigns
|
||||||
|
|> assign(:use_count, Invites.get_use_count(invite, current_user))
|
||||||
|
|> assign_new(:code_actions, fn -> [] end)
|
||||||
|
|
||||||
~H"""
|
~H"""
|
||||||
<div
|
<div class="mx-4 my-2 px-8 py-4 flex flex-col justify-center items-center space-y-4
|
||||||
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
|
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">
|
<h1 class="title text-xl">
|
||||||
<%= @invite.name %>
|
<%= @invite.name %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<%= if @invite.disabled_at |> is_nil() do %>
|
<%= if @invite.disabled_at |> is_nil() do %>
|
||||||
<h2 class="title text-md">
|
<h2 class="title text-md">
|
||||||
<%= gettext("Uses Left:") %>
|
<%= if @invite.uses_left do %>
|
||||||
<%= @invite.uses_left || "Unlimited" %>
|
<%= gettext(
|
||||||
|
"Uses Left: %{uses_left_count}",
|
||||||
|
uses_left_count: @invite.uses_left
|
||||||
|
) %>
|
||||||
|
<% else %>
|
||||||
|
<%= gettext("Uses Left: Unlimited") %>
|
||||||
|
<% end %>
|
||||||
</h2>
|
</h2>
|
||||||
<% else %>
|
<% else %>
|
||||||
<h2 class="title text-md">
|
<h2 class="title text-md">
|
||||||
@ -36,6 +43,15 @@ defmodule CanneryWeb.Components.InviteCard do
|
|||||||
</h2>
|
</h2>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<.qr_code
|
||||||
|
content={Routes.user_registration_url(Endpoint, :new, invite: @invite.token)}
|
||||||
|
filename={@invite.name}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<h2 :if={@use_count != 0} class="title text-md">
|
||||||
|
<%= gettext("Uses: %{uses_count}", uses_count: @use_count) %>
|
||||||
|
</h2>
|
||||||
|
|
||||||
<div class="flex flex-row flex-wrap justify-center items-center">
|
<div class="flex flex-row flex-wrap justify-center items-center">
|
||||||
<code
|
<code
|
||||||
id={"code-#{@invite.id}"}
|
id={"code-#{@invite.id}"}
|
||||||
@ -45,11 +61,9 @@ defmodule CanneryWeb.Components.InviteCard do
|
|||||||
<%= render_slot(@code_actions) %>
|
<%= render_slot(@code_actions) %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= if @inner_block do %>
|
<div :if={@inner_block} class="flex space-x-4 justify-center items-center">
|
||||||
<div class="flex space-x-4 justify-center items-center">
|
<%= render_slot(@inner_block) %>
|
||||||
<%= render_slot(@inner_block) %>
|
</div>
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
"""
|
"""
|
||||||
end
|
end
|
||||||
|
@ -103,7 +103,11 @@ defmodule CanneryWeb.Components.ShotGroupTableComponent do
|
|||||||
{ammo_type_name, name_block}
|
{ammo_type_name, name_block}
|
||||||
end
|
end
|
||||||
|
|
||||||
defp get_row_value(:date, %{date: date}, _extra_data), do: date |> display_date()
|
defp get_row_value(:date, %{date: _date} = assigns, _extra_data) do
|
||||||
|
~H"""
|
||||||
|
<.date date={@date} />
|
||||||
|
"""
|
||||||
|
end
|
||||||
|
|
||||||
defp get_row_value(:actions, shot_group, %{actions: actions}) do
|
defp get_row_value(:actions, shot_group, %{actions: actions}) do
|
||||||
assigns = %{actions: actions, shot_group: shot_group}
|
assigns = %{actions: actions, shot_group: shot_group}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<%= for %{key: key, label: label} = column <- @columns do %>
|
<%= for %{key: key, label: label} = column <- @columns do %>
|
||||||
<%= if column |> Map.get(:sortable, true) do %>
|
<%= if column |> Map.get(:sortable, true) do %>
|
||||||
<th class={"p-2 #{column[:class]}"}>
|
<th class={["p-2", column[:class]]}>
|
||||||
<span
|
<span
|
||||||
class="cursor-pointer flex justify-center items-center space-x-2"
|
class="cursor-pointer flex justify-center items-center space-x-2"
|
||||||
phx-click="sort_by"
|
phx-click="sort_by"
|
||||||
@ -26,7 +26,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</th>
|
</th>
|
||||||
<% else %>
|
<% else %>
|
||||||
<th class={"p-2 cursor-not-allowed #{column[:class]}"}>
|
<th class={["p-2 cursor-not-allowed", column[:class]]}>
|
||||||
<%= label %>
|
<%= label %>
|
||||||
</th>
|
</th>
|
||||||
<% end %>
|
<% end %>
|
||||||
@ -34,20 +34,19 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<%= for {values, i} <- @rows |> Enum.with_index() do %>
|
<tr
|
||||||
<tr class={if i |> Integer.is_even(), do: @row_class, else: @alternate_row_class}>
|
:for={{values, i} <- @rows |> Enum.with_index()}
|
||||||
<%= for %{key: key} = value <- @columns do %>
|
class={if i |> Integer.is_even(), do: @row_class, else: @alternate_row_class}
|
||||||
<td class={"p-2 #{value[:class]}"}>
|
>
|
||||||
<%= case values |> Map.get(key) do %>
|
<td :for={%{key: key} = value <- @columns} class={["p-2", value[:class]]}>
|
||||||
<% {_custom_sort_value, value} -> %>
|
<%= case values |> Map.get(key) do %>
|
||||||
<%= value %>
|
<% {_custom_sort_value, value} -> %>
|
||||||
<% value -> %>
|
<%= value %>
|
||||||
<%= value %>
|
<% value -> %>
|
||||||
<% end %>
|
<%= value %>
|
||||||
</td>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</tr>
|
</td>
|
||||||
<% end %>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -14,8 +14,8 @@ defmodule CanneryWeb.Components.TagCard do
|
|||||||
<div
|
<div
|
||||||
id={"tag-#{@tag.id}"}
|
id={"tag-#{@tag.id}"}
|
||||||
class="mx-4 mb-4 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
|
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"
|
||||||
>
|
>
|
||||||
<.simple_tag_card tag={@tag} />
|
<.simple_tag_card tag={@tag} />
|
||||||
<%= render_slot(@inner_block) %>
|
<%= render_slot(@inner_block) %>
|
||||||
|
@ -119,16 +119,14 @@ defmodule CanneryWeb.Components.Topbar do
|
|||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= if Accounts.allow_registration?() do %>
|
<li :if={Accounts.allow_registration?()} class="mx-2 my-1">
|
||||||
<li class="mx-2 my-1">
|
<.link
|
||||||
<.link
|
navigate={Routes.user_registration_path(Endpoint, :new)}
|
||||||
navigate={Routes.user_registration_path(Endpoint, :new)}
|
class="text-primary-600 text-white hover:underline truncate"
|
||||||
class="text-primary-600 text-white hover:underline truncate"
|
>
|
||||||
>
|
<%= dgettext("actions", "Register") %>
|
||||||
<%= dgettext("actions", "Register") %>
|
</.link>
|
||||||
</.link>
|
</li>
|
||||||
</li>
|
|
||||||
<% end %>
|
|
||||||
<li class="mx-2 my-1">
|
<li class="mx-2 my-1">
|
||||||
<.link
|
<.link
|
||||||
navigate={Routes.user_session_path(Endpoint, :new)}
|
navigate={Routes.user_session_path(Endpoint, :new)}
|
||||||
|
@ -14,8 +14,8 @@ defmodule CanneryWeb.Components.UserCard do
|
|||||||
<div
|
<div
|
||||||
id={"user-#{@user.id}"}
|
id={"user-#{@user.id}"}
|
||||||
class="mx-4 my-2 px-8 py-4 flex flex-col justify-center items-center text-center
|
class="mx-4 my-2 px-8 py-4 flex flex-col justify-center items-center text-center
|
||||||
border border-gray-400 rounded-lg shadow-lg hover:shadow-md
|
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="px-4 py-2 rounded-lg title text-xl break-all">
|
<h1 class="px-4 py-2 rounded-lg title text-xl break-all">
|
||||||
<%= @user.email %>
|
<%= @user.email %>
|
||||||
@ -23,24 +23,29 @@ defmodule CanneryWeb.Components.UserCard do
|
|||||||
|
|
||||||
<h3 class="px-4 py-2 rounded-lg title text-lg">
|
<h3 class="px-4 py-2 rounded-lg title text-lg">
|
||||||
<p>
|
<p>
|
||||||
<%= if @user.confirmed_at |> is_nil() do %>
|
<%= if @user.confirmed_at do %>
|
||||||
Email unconfirmed
|
<%= gettext(
|
||||||
|
"User was confirmed at%{confirmed_datetime}",
|
||||||
|
confirmed_datetime: ""
|
||||||
|
) %>
|
||||||
|
<.datetime datetime={@user.confirmed_at} />
|
||||||
<% else %>
|
<% else %>
|
||||||
User was confirmed at <%= @user.confirmed_at |> display_datetime() %>
|
<%= gettext("Email unconfirmed") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<%= gettext("User registered on") %>
|
<%= gettext(
|
||||||
<%= @user.inserted_at |> display_datetime() %>
|
"User registered on%{registered_datetime}",
|
||||||
|
registered_datetime: ""
|
||||||
|
) %>
|
||||||
|
<.datetime datetime={@user.inserted_at} />
|
||||||
</p>
|
</p>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<%= if @inner_block do %>
|
<div :if={@inner_block} class="px-4 py-2 flex space-x-4 justify-center items-center">
|
||||||
<div class="px-4 py-2 flex space-x-4 justify-center items-center">
|
<%= render_slot(@inner_block) %>
|
||||||
<%= render_slot(@inner_block) %>
|
</div>
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
"""
|
"""
|
||||||
end
|
end
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
defmodule CanneryWeb.UserRegistrationController do
|
defmodule CanneryWeb.UserRegistrationController do
|
||||||
use CanneryWeb, :controller
|
use CanneryWeb, :controller
|
||||||
import CanneryWeb.Gettext
|
import CanneryWeb.Gettext
|
||||||
alias Cannery.{Accounts, Invites}
|
alias Cannery.{Accounts, Accounts.Invites}
|
||||||
alias CanneryWeb.{Endpoint, HomeLive}
|
alias CanneryWeb.{Endpoint, HomeLive}
|
||||||
|
|
||||||
def new(conn, %{"invite" => invite_token}) do
|
def new(conn, %{"invite" => invite_token}) do
|
||||||
invite = Invites.get_invite_by_token(invite_token)
|
if Invites.valid_invite_token?(invite_token) do
|
||||||
|
conn |> render_new(invite_token)
|
||||||
if invite do
|
|
||||||
conn |> render_new(invite)
|
|
||||||
else
|
else
|
||||||
conn
|
conn
|
||||||
|> put_flash(:error, dgettext("errors", "Sorry, this invite was not found or expired"))
|
|> put_flash(:error, dgettext("errors", "Sorry, this invite was not found or expired"))
|
||||||
@ -27,19 +25,17 @@ defmodule CanneryWeb.UserRegistrationController do
|
|||||||
end
|
end
|
||||||
|
|
||||||
# renders new user registration page
|
# renders new user registration page
|
||||||
defp render_new(conn, invite \\ nil) do
|
defp render_new(conn, invite_token \\ nil) do
|
||||||
render(conn, "new.html",
|
render(conn, "new.html",
|
||||||
changeset: Accounts.change_user_registration(),
|
changeset: Accounts.change_user_registration(),
|
||||||
invite: invite,
|
invite_token: invite_token,
|
||||||
page_title: gettext("Register")
|
page_title: gettext("Register")
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
def create(conn, %{"user" => %{"invite_token" => invite_token}} = attrs) do
|
def create(conn, %{"user" => %{"invite_token" => invite_token}} = attrs) do
|
||||||
invite = Invites.get_invite_by_token(invite_token)
|
if Invites.valid_invite_token?(invite_token) do
|
||||||
|
conn |> create_user(attrs, invite_token)
|
||||||
if invite do
|
|
||||||
conn |> create_user(attrs, invite)
|
|
||||||
else
|
else
|
||||||
conn
|
conn
|
||||||
|> put_flash(:error, dgettext("errors", "Sorry, this invite was not found or expired"))
|
|> put_flash(:error, dgettext("errors", "Sorry, this invite was not found or expired"))
|
||||||
@ -57,13 +53,9 @@ defmodule CanneryWeb.UserRegistrationController do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
defp create_user(conn, %{"user" => user_params}, invite \\ nil) do
|
defp create_user(conn, %{"user" => user_params}, invite_token \\ nil) do
|
||||||
case Accounts.register_user(user_params) do
|
case Accounts.register_user(user_params, invite_token) do
|
||||||
{:ok, user} ->
|
{:ok, user} ->
|
||||||
unless invite |> is_nil() do
|
|
||||||
invite |> Invites.use_invite!()
|
|
||||||
end
|
|
||||||
|
|
||||||
Accounts.deliver_user_confirmation_instructions(
|
Accounts.deliver_user_confirmation_instructions(
|
||||||
user,
|
user,
|
||||||
&Routes.user_confirmation_url(conn, :confirm, &1)
|
&Routes.user_confirmation_url(conn, :confirm, &1)
|
||||||
@ -73,8 +65,13 @@ defmodule CanneryWeb.UserRegistrationController do
|
|||||||
|> put_flash(:info, dgettext("prompts", "Please check your email to verify your account"))
|
|> put_flash(:info, dgettext("prompts", "Please check your email to verify your account"))
|
||||||
|> redirect(to: Routes.user_session_path(Endpoint, :new))
|
|> redirect(to: Routes.user_session_path(Endpoint, :new))
|
||||||
|
|
||||||
|
{:error, :invalid_token} ->
|
||||||
|
conn
|
||||||
|
|> put_flash(:error, dgettext("errors", "Sorry, this invite was not found or expired"))
|
||||||
|
|> redirect(to: Routes.live_path(Endpoint, HomeLive))
|
||||||
|
|
||||||
{:error, %Ecto.Changeset{} = changeset} ->
|
{:error, %Ecto.Changeset{} = changeset} ->
|
||||||
conn |> render("new.html", changeset: changeset, invite: invite)
|
conn |> render("new.html", changeset: changeset, invite_token: invite_token)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -12,11 +12,12 @@
|
|||||||
phx-submit="save"
|
phx-submit="save"
|
||||||
class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
||||||
>
|
>
|
||||||
<%= if @changeset.action && not @changeset.valid? do %>
|
<div
|
||||||
<div class="invalid-feedback col-span-3 text-center">
|
:if={@changeset.action && not @changeset.valid?()}
|
||||||
<%= changeset_errors(@changeset) %>
|
class="invalid-feedback col-span-3 text-center"
|
||||||
</div>
|
>
|
||||||
<% end %>
|
<%= changeset_errors(@changeset) %>
|
||||||
|
</div>
|
||||||
|
|
||||||
<%= label(f, :ammo_type_id, gettext("Ammo type"), class: "title text-lg text-primary-600") %>
|
<%= label(f, :ammo_type_id, gettext("Ammo type"), class: "title text-lg text-primary-600") %>
|
||||||
<%= select(f, :ammo_type_id, ammo_type_options(@ammo_types),
|
<%= select(f, :ammo_type_id, ammo_type_options(@ammo_types),
|
||||||
@ -59,8 +60,8 @@
|
|||||||
) %>
|
) %>
|
||||||
<%= error_tag(f, :container_id, "col-span-3 text-center") %>
|
<%= error_tag(f, :container_id, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= cond do %>
|
<%= case @action do %>
|
||||||
<% @action in [:new, :clone] -> %>
|
<% action when action in [:new, :clone] -> %>
|
||||||
<hr class="hr col-span-3" />
|
<hr class="hr col-span-3" />
|
||||||
|
|
||||||
<%= label(f, :multiplier, gettext("Copies"), class: "title text-lg text-primary-600") %>
|
<%= label(f, :multiplier, gettext("Copies"), class: "title text-lg text-primary-600") %>
|
||||||
@ -77,7 +78,7 @@
|
|||||||
) %>
|
) %>
|
||||||
|
|
||||||
<%= error_tag(f, :multiplier, "col-span-3 text-center") %>
|
<%= error_tag(f, :multiplier, "col-span-3 text-center") %>
|
||||||
<% @action == :edit -> %>
|
<% :edit -> %>
|
||||||
<%= submit(dgettext("actions", "Save"),
|
<%= submit(dgettext("actions", "Save"),
|
||||||
phx_disable_with: dgettext("prompts", "Saving..."),
|
phx_disable_with: dgettext("prompts", "Saving..."),
|
||||||
class: "mx-auto col-span-3 btn btn-primary"
|
class: "mx-auto col-span-3 btn btn-primary"
|
||||||
|
@ -3,12 +3,13 @@
|
|||||||
<%= gettext("Ammo") %>
|
<%= gettext("Ammo") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<%= if @ammo_groups |> Enum.empty?() and @search |> is_nil() do %>
|
<h2
|
||||||
<h2 class="title text-xl text-primary-600">
|
:if={@ammo_groups |> Enum.empty?() and @search |> is_nil()}
|
||||||
<%= gettext("No Ammo") %>
|
class="title text-xl text-primary-600"
|
||||||
<%= display_emoji("😔") %>
|
>
|
||||||
</h2>
|
<%= gettext("No Ammo") %>
|
||||||
<% end %>
|
<%= display_emoji("😔") %>
|
||||||
|
</h2>
|
||||||
|
|
||||||
<%= cond do %>
|
<%= cond do %>
|
||||||
<% @containers_count == 0 -> %>
|
<% @containers_count == 0 -> %>
|
||||||
|
@ -116,7 +116,12 @@ defmodule CanneryWeb.AmmoGroupLive.Show do
|
|||||||
value =
|
value =
|
||||||
case key do
|
case key do
|
||||||
:date ->
|
:date ->
|
||||||
{date, date |> display_date()}
|
assigns = %{date: date}
|
||||||
|
|
||||||
|
{date,
|
||||||
|
~H"""
|
||||||
|
<.date date={@date} />
|
||||||
|
"""}
|
||||||
|
|
||||||
:actions ->
|
:actions ->
|
||||||
~H"""
|
~H"""
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
<span class="rounded-lg title text-lg">
|
<span class="rounded-lg title text-lg">
|
||||||
<%= gettext("Purchased on:") %>
|
<%= gettext("Purchased on:") %>
|
||||||
<%= @ammo_group.purchased_on |> display_date() %>
|
<.date date={@ammo_group.purchased_on} />
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<%= if @ammo_group.price_paid do %>
|
<%= if @ammo_group.price_paid do %>
|
||||||
|
@ -11,11 +11,12 @@
|
|||||||
phx-submit="save"
|
phx-submit="save"
|
||||||
class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
||||||
>
|
>
|
||||||
<%= if @changeset.action && not @changeset.valid? do %>
|
<div
|
||||||
<div class="invalid-feedback col-span-3 text-center">
|
:if={@changeset.action && not @changeset.valid?()}
|
||||||
<%= changeset_errors(@changeset) %>
|
class="invalid-feedback col-span-3 text-center"
|
||||||
</div>
|
>
|
||||||
<% end %>
|
<%= changeset_errors(@changeset) %>
|
||||||
|
</div>
|
||||||
|
|
||||||
<%= label(f, :name, gettext("Name"), class: "title text-lg text-primary-600") %>
|
<%= label(f, :name, gettext("Name"), class: "title text-lg text-primary-600") %>
|
||||||
<%= text_input(f, :name, class: "text-center col-span-2 input input-primary") %>
|
<%= text_input(f, :name, class: "text-center col-span-2 input input-primary") %>
|
||||||
|
@ -104,17 +104,18 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= if @live_action in [:new, :edit, :clone] do %>
|
<.modal
|
||||||
<.modal return_to={Routes.ammo_type_index_path(Endpoint, :index)}>
|
:if={@live_action in [:new, :edit, :clone]}
|
||||||
<.live_component
|
return_to={Routes.ammo_type_index_path(Endpoint, :index)}
|
||||||
module={CanneryWeb.AmmoTypeLive.FormComponent}
|
>
|
||||||
id={@ammo_type.id || :new}
|
<.live_component
|
||||||
title={@page_title}
|
module={CanneryWeb.AmmoTypeLive.FormComponent}
|
||||||
action={@live_action}
|
id={@ammo_type.id || :new}
|
||||||
ammo_type={@ammo_type}
|
title={@page_title}
|
||||||
return_to={Routes.ammo_type_index_path(Endpoint, :index)}
|
action={@live_action}
|
||||||
current_user={@current_user}
|
ammo_type={@ammo_type}
|
||||||
}
|
return_to={Routes.ammo_type_index_path(Endpoint, :index)}
|
||||||
/>
|
current_user={@current_user}
|
||||||
</.modal>
|
}
|
||||||
<% end %>
|
/>
|
||||||
|
</.modal>
|
||||||
|
@ -3,13 +3,14 @@
|
|||||||
<%= @ammo_type.name %>
|
<%= @ammo_type.name %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<%= if @ammo_type.desc do %>
|
<span
|
||||||
<span class="max-w-2xl w-full px-8 py-4 rounded-lg
|
:if={@ammo_type.desc}
|
||||||
text-center title text-lg
|
class="max-w-2xl w-full px-8 py-4 rounded-lg
|
||||||
border border-primary-600">
|
text-center title text-lg
|
||||||
<%= @ammo_type.desc %>
|
border border-primary-600"
|
||||||
</span>
|
>
|
||||||
<% end %>
|
<%= @ammo_type.desc %>
|
||||||
|
</span>
|
||||||
|
|
||||||
<div class="flex space-x-4 justify-center items-center text-primary-600">
|
<div class="flex space-x-4 justify-center items-center text-primary-600">
|
||||||
<.link
|
<.link
|
||||||
@ -124,7 +125,7 @@
|
|||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<span class="text-primary-600">
|
<span class="text-primary-600">
|
||||||
<%= @ammo_type.inserted_at |> display_datetime() %>
|
<.datetime datetime={@ammo_type.inserted_at} />
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<%= if @avg_cost_per_round do %>
|
<%= if @avg_cost_per_round do %>
|
||||||
@ -185,25 +186,28 @@
|
|||||||
</.live_component>
|
</.live_component>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="flex flex-wrap justify-center items-stretch">
|
<div class="flex flex-wrap justify-center items-stretch">
|
||||||
<%= for ammo_group <- @ammo_groups do %>
|
<.ammo_group_card
|
||||||
<.ammo_group_card ammo_group={ammo_group} show_container={true} />
|
:for={ammo_group <- @ammo_groups}
|
||||||
<% end %>
|
ammo_group={ammo_group}
|
||||||
|
show_container={true}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= if @live_action in [:edit] do %>
|
<.modal
|
||||||
<.modal return_to={Routes.ammo_type_show_path(Endpoint, :show, @ammo_type)}>
|
:if={@live_action == :edit}
|
||||||
<.live_component
|
return_to={Routes.ammo_type_show_path(Endpoint, :show, @ammo_type)}
|
||||||
module={CanneryWeb.AmmoTypeLive.FormComponent}
|
>
|
||||||
id={@ammo_type.id}
|
<.live_component
|
||||||
title={@page_title}
|
module={CanneryWeb.AmmoTypeLive.FormComponent}
|
||||||
action={@live_action}
|
id={@ammo_type.id}
|
||||||
ammo_type={@ammo_type}
|
title={@page_title}
|
||||||
return_to={Routes.ammo_type_show_path(Endpoint, :show, @ammo_type)}
|
action={@live_action}
|
||||||
current_user={@current_user}
|
ammo_type={@ammo_type}
|
||||||
/>
|
return_to={Routes.ammo_type_show_path(Endpoint, :show, @ammo_type)}
|
||||||
</.modal>
|
current_user={@current_user}
|
||||||
<% end %>
|
/>
|
||||||
|
</.modal>
|
||||||
|
@ -4,34 +4,31 @@
|
|||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div class="flex flex-wrap justify-center items-center">
|
<div class="flex flex-wrap justify-center items-center">
|
||||||
<%= for tag <- @container.tags do %>
|
<.link
|
||||||
<.link
|
:for={tag <- @container.tags}
|
||||||
href="#"
|
href="#"
|
||||||
class="mx-2 my-1 px-4 py-2 rounded-lg title text-xl"
|
class="mx-2 my-1 px-4 py-2 rounded-lg title text-xl"
|
||||||
style={"color: #{tag.text_color}; background-color: #{tag.bg_color}"}
|
style={"color: #{tag.text_color}; background-color: #{tag.bg_color}"}
|
||||||
phx-click="delete"
|
phx-click="delete"
|
||||||
phx-value-tag-id={tag.id}
|
phx-value-tag-id={tag.id}
|
||||||
phx-target={@myself}
|
phx-target={@myself}
|
||||||
data-confirm={
|
data-confirm={
|
||||||
dgettext(
|
dgettext(
|
||||||
"prompts",
|
"prompts",
|
||||||
"Are you sure you want to remove the %{tag_name} tag from %{container_name}?",
|
"Are you sure you want to remove the %{tag_name} tag from %{container_name}?",
|
||||||
tag_name: tag.name,
|
tag_name: tag.name,
|
||||||
container_name: @container.name
|
container_name: @container.name
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<%= tag.name %>
|
<%= tag.name %>
|
||||||
<i class="fa-fw fa-sm fas fa-trash"></i>
|
<i class="fa-fw fa-sm fas fa-trash"></i>
|
||||||
</.link>
|
</.link>
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= if @container.tags |> Enum.empty?() do %>
|
<h2 :if={@container.tags |> Enum.empty?()} class="title text-xl text-primary-600">
|
||||||
<h2 class="title text-xl text-primary-600">
|
<%= gettext("No tags") %>
|
||||||
<%= gettext("No tags") %>
|
<%= display_emoji("😔") %>
|
||||||
<%= display_emoji("😔") %>
|
</h2>
|
||||||
</h2>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= unless tag_options(@tags, @container) |> Enum.empty?() do %>
|
<%= unless tag_options(@tags, @container) |> Enum.empty?() do %>
|
||||||
|
@ -11,11 +11,12 @@
|
|||||||
phx-change="validate"
|
phx-change="validate"
|
||||||
phx-submit="save"
|
phx-submit="save"
|
||||||
>
|
>
|
||||||
<%= if @changeset.action && not @changeset.valid? do %>
|
<div
|
||||||
<div class="invalid-feedback col-span-3 text-center">
|
:if={@changeset.action && not @changeset.valid?()}
|
||||||
<%= changeset_errors(@changeset) %>
|
class="invalid-feedback col-span-3 text-center"
|
||||||
</div>
|
>
|
||||||
<% end %>
|
<%= changeset_errors(@changeset) %>
|
||||||
|
</div>
|
||||||
|
|
||||||
<%= label(f, :name, gettext("Name"), class: "title text-lg text-primary-600") %>
|
<%= label(f, :name, gettext("Name"), class: "title text-lg text-primary-600") %>
|
||||||
<%= text_input(f, :name,
|
<%= text_input(f, :name,
|
||||||
|
@ -99,78 +99,73 @@
|
|||||||
</.live_component>
|
</.live_component>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="w-full flex flex-row flex-wrap justify-center items-stretch">
|
<div class="w-full flex flex-row flex-wrap justify-center items-stretch">
|
||||||
<%= for container <- @containers do %>
|
<.container_card :for={container <- @containers} container={container}>
|
||||||
<.container_card container={container}>
|
<:tag_actions>
|
||||||
<:tag_actions>
|
<div class="mx-4 my-2">
|
||||||
<div class="mx-4 my-2">
|
<.link
|
||||||
<.link
|
patch={Routes.container_index_path(Endpoint, :edit_tags, container)}
|
||||||
patch={Routes.container_index_path(Endpoint, :edit_tags, container)}
|
class="text-primary-600 link"
|
||||||
class="text-primary-600 link"
|
>
|
||||||
>
|
<i class="fa-fw fa-lg fas fa-tags"></i>
|
||||||
<i class="fa-fw fa-lg fas fa-tags"></i>
|
</.link>
|
||||||
</.link>
|
</div>
|
||||||
</div>
|
</:tag_actions>
|
||||||
</:tag_actions>
|
<.link
|
||||||
<.link
|
patch={Routes.container_index_path(Endpoint, :edit, container)}
|
||||||
patch={Routes.container_index_path(Endpoint, :edit, container)}
|
class="text-primary-600 link"
|
||||||
class="text-primary-600 link"
|
data-qa={"edit-#{container.id}"}
|
||||||
data-qa={"edit-#{container.id}"}
|
>
|
||||||
>
|
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
</.link>
|
||||||
</.link>
|
|
||||||
|
|
||||||
<.link
|
<.link
|
||||||
patch={Routes.container_index_path(Endpoint, :clone, container)}
|
patch={Routes.container_index_path(Endpoint, :clone, container)}
|
||||||
class="text-primary-600 link"
|
class="text-primary-600 link"
|
||||||
data-qa={"clone-#{container.id}"}
|
data-qa={"clone-#{container.id}"}
|
||||||
>
|
>
|
||||||
<i class="fa-fw fa-lg fas fa-copy"></i>
|
<i class="fa-fw fa-lg fas fa-copy"></i>
|
||||||
</.link>
|
</.link>
|
||||||
|
|
||||||
<.link
|
<.link
|
||||||
href="#"
|
href="#"
|
||||||
class="text-primary-600 link"
|
class="text-primary-600 link"
|
||||||
phx-click="delete"
|
phx-click="delete"
|
||||||
phx-value-id={container.id}
|
phx-value-id={container.id}
|
||||||
data-confirm={
|
data-confirm={
|
||||||
dgettext("prompts", "Are you sure you want to delete %{name}?",
|
dgettext("prompts", "Are you sure you want to delete %{name}?", name: container.name)
|
||||||
name: container.name
|
}
|
||||||
)
|
data-qa={"delete-#{container.id}"}
|
||||||
}
|
>
|
||||||
data-qa={"delete-#{container.id}"}
|
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||||
>
|
</.link>
|
||||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
</.container_card>
|
||||||
</.link>
|
|
||||||
</.container_card>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= if @live_action in [:new, :edit, :clone] do %>
|
<.modal
|
||||||
<.modal return_to={Routes.container_index_path(Endpoint, :index)}>
|
:if={@live_action in [:new, :edit, :clone]}
|
||||||
<.live_component
|
return_to={Routes.container_index_path(Endpoint, :index)}
|
||||||
module={CanneryWeb.ContainerLive.FormComponent}
|
>
|
||||||
id={@container.id || :new}
|
<.live_component
|
||||||
title={@page_title}
|
module={CanneryWeb.ContainerLive.FormComponent}
|
||||||
action={@live_action}
|
id={@container.id || :new}
|
||||||
container={@container}
|
title={@page_title}
|
||||||
return_to={Routes.container_index_path(Endpoint, :index)}
|
action={@live_action}
|
||||||
current_user={@current_user}
|
container={@container}
|
||||||
/>
|
return_to={Routes.container_index_path(Endpoint, :index)}
|
||||||
</.modal>
|
current_user={@current_user}
|
||||||
<% end %>
|
/>
|
||||||
|
</.modal>
|
||||||
|
|
||||||
<%= if @live_action == :edit_tags do %>
|
<.modal :if={@live_action == :edit_tags} return_to={Routes.container_index_path(Endpoint, :index)}>
|
||||||
<.modal return_to={Routes.container_index_path(Endpoint, :index)}>
|
<.live_component
|
||||||
<.live_component
|
module={CanneryWeb.ContainerLive.EditTagsComponent}
|
||||||
module={CanneryWeb.ContainerLive.EditTagsComponent}
|
id={@container.id}
|
||||||
id={@container.id}
|
title={@page_title}
|
||||||
title={@page_title}
|
action={@live_action}
|
||||||
action={@live_action}
|
container={@container}
|
||||||
container={@container}
|
current_user={@current_user}
|
||||||
current_user={@current_user}
|
/>
|
||||||
/>
|
</.modal>
|
||||||
</.modal>
|
|
||||||
<% end %>
|
|
||||||
|
@ -3,24 +3,20 @@
|
|||||||
<%= @container.name %>
|
<%= @container.name %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<%= if @container.desc do %>
|
<span :if={@container.desc} class="rounded-lg title text-lg">
|
||||||
<span class="rounded-lg title text-lg">
|
<%= gettext("Description:") %>
|
||||||
<%= gettext("Description:") %>
|
<%= @container.desc %>
|
||||||
<%= @container.desc %>
|
</span>
|
||||||
</span>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<span class="rounded-lg title text-lg">
|
<span class="rounded-lg title text-lg">
|
||||||
<%= gettext("Type:") %>
|
<%= gettext("Type:") %>
|
||||||
<%= @container.type %>
|
<%= @container.type %>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<%= if @container.location do %>
|
<span :if={@container.location} class="rounded-lg title text-lg">
|
||||||
<span class="rounded-lg title text-lg">
|
<%= gettext("Location:") %>
|
||||||
<%= gettext("Location:") %>
|
<%= @container.location %>
|
||||||
<%= @container.location %>
|
</span>
|
||||||
</span>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= unless @ammo_groups |> Enum.empty?() do %>
|
<%= unless @ammo_groups |> Enum.empty?() do %>
|
||||||
<span class="rounded-lg title text-lg">
|
<span class="rounded-lg title text-lg">
|
||||||
@ -82,9 +78,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="flex flex-wrap justify-center items-center">
|
<div class="flex flex-wrap justify-center items-center">
|
||||||
<%= for tag <- @container.tags do %>
|
<.simple_tag_card :for={tag <- @container.tags} tag={tag} />
|
||||||
<.simple_tag_card tag={tag} />
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<div class="mx-4 my-2">
|
<div class="mx-4 my-2">
|
||||||
<.link
|
<.link
|
||||||
@ -134,39 +128,39 @@
|
|||||||
</.live_component>
|
</.live_component>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="flex flex-wrap justify-center items-stretch">
|
<div class="flex flex-wrap justify-center items-stretch">
|
||||||
<%= for ammo_group <- @ammo_groups do %>
|
<.ammo_group_card :for={ammo_group <- @ammo_groups} ammo_group={ammo_group} />
|
||||||
<.ammo_group_card ammo_group={ammo_group} />
|
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= if @live_action in [:edit] do %>
|
<.modal
|
||||||
<.modal return_to={Routes.container_show_path(Endpoint, :show, @container)}>
|
:if={@live_action == :edit}
|
||||||
<.live_component
|
return_to={Routes.container_show_path(Endpoint, :show, @container)}
|
||||||
module={CanneryWeb.ContainerLive.FormComponent}
|
>
|
||||||
id={@container.id}
|
<.live_component
|
||||||
title={@page_title}
|
module={CanneryWeb.ContainerLive.FormComponent}
|
||||||
action={@live_action}
|
id={@container.id}
|
||||||
container={@container}
|
title={@page_title}
|
||||||
return_to={Routes.container_show_path(Endpoint, :show, @container)}
|
action={@live_action}
|
||||||
current_user={@current_user}
|
container={@container}
|
||||||
/>
|
return_to={Routes.container_show_path(Endpoint, :show, @container)}
|
||||||
</.modal>
|
current_user={@current_user}
|
||||||
<% end %>
|
/>
|
||||||
|
</.modal>
|
||||||
|
|
||||||
<%= if @live_action == :edit_tags do %>
|
<.modal
|
||||||
<.modal return_to={Routes.container_show_path(Endpoint, :show, @container)}>
|
:if={@live_action == :edit_tags}
|
||||||
<.live_component
|
return_to={Routes.container_show_path(Endpoint, :show, @container)}
|
||||||
module={CanneryWeb.ContainerLive.EditTagsComponent}
|
>
|
||||||
id={@container.id}
|
<.live_component
|
||||||
title={@page_title}
|
module={CanneryWeb.ContainerLive.EditTagsComponent}
|
||||||
action={@live_action}
|
id={@container.id}
|
||||||
container={@container}
|
title={@page_title}
|
||||||
return_to={Routes.container_show_path(Endpoint, :show, @container)}
|
action={@live_action}
|
||||||
current_user={@current_user}
|
container={@container}
|
||||||
/>
|
return_to={Routes.container_show_path(Endpoint, :show, @container)}
|
||||||
</.modal>
|
current_user={@current_user}
|
||||||
<% end %>
|
/>
|
||||||
|
</.modal>
|
||||||
|
@ -15,162 +15,4 @@ defmodule CanneryWeb.HomeLive do
|
|||||||
socket = socket |> assign(page_title: gettext("Home"), admins: admins, version: @version)
|
socket = socket |> assign(page_title: gettext("Home"), admins: admins, version: @version)
|
||||||
{:ok, socket}
|
{:ok, socket}
|
||||||
end
|
end
|
||||||
|
|
||||||
@impl true
|
|
||||||
def render(assigns) do
|
|
||||||
~H"""
|
|
||||||
<div class="mx-auto px-8 sm:px-16 flex flex-col justify-center items-center text-center space-y-4 max-w-3xl">
|
|
||||||
<img
|
|
||||||
src={Routes.static_path(Endpoint, "/images/cannery.svg")}
|
|
||||||
alt={gettext("Cannery logo")}
|
|
||||||
class="inline-block w-32 hover:-mt-2 hover:mb-2 transition-all duration-500 ease-in-out"
|
|
||||||
title={gettext("isn't he cute >:3")}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<h1 class="title text-primary-600 text-2xl">
|
|
||||||
<%= gettext("Welcome to %{name}", name: "Cannery") %>
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
<h2 class="title text-primary-600 text-lg">
|
|
||||||
<%= gettext("The self-hosted firearm tracker website") %>
|
|
||||||
</h2>
|
|
||||||
|
|
||||||
<hr class="hr" />
|
|
||||||
|
|
||||||
<ul class="flex flex-col space-y-4 text-center">
|
|
||||||
<li class="flex flex-col justify-center items-center
|
|
||||||
space-y-2">
|
|
||||||
<b class="whitespace-nowrap">
|
|
||||||
<%= gettext("Easy to Use:") %>
|
|
||||||
</b>
|
|
||||||
<p>
|
|
||||||
<%= gettext(
|
|
||||||
"%{name} lets you easily keep an eye on your ammo levels before and after range day",
|
|
||||||
name: "Cannery"
|
|
||||||
) %>
|
|
||||||
</p>
|
|
||||||
</li>
|
|
||||||
<li class="flex flex-col justify-center items-center
|
|
||||||
space-y-2">
|
|
||||||
<b class="whitespace-nowrap">
|
|
||||||
<%= gettext("Secure:") %>
|
|
||||||
</b>
|
|
||||||
<p>
|
|
||||||
<%= gettext("Self-host your own instance, or use an instance from someone you trust.") %>
|
|
||||||
<%= gettext("Your data stays with you, period") %>
|
|
||||||
</p>
|
|
||||||
</li>
|
|
||||||
<li class="flex flex-col justify-center items-center
|
|
||||||
space-y-2">
|
|
||||||
<b class="whitespace-nowrap">
|
|
||||||
<%= gettext("Simple:") %>
|
|
||||||
</b>
|
|
||||||
<p>
|
|
||||||
<%= gettext("Access from any internet-capable device") %>
|
|
||||||
</p>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<hr class="hr" />
|
|
||||||
|
|
||||||
<ul class="flex flex-col space-y-2 text-center justify-center">
|
|
||||||
<h2 class="title text-primary-600 text-lg">
|
|
||||||
<%= gettext("Instance Information") %>
|
|
||||||
</h2>
|
|
||||||
|
|
||||||
<li class="flex flex-col justify-center space-x-2">
|
|
||||||
<b>
|
|
||||||
<%= gettext("Admins:") %>
|
|
||||||
</b>
|
|
||||||
<p>
|
|
||||||
<%= if @admins |> Enum.empty?() do %>
|
|
||||||
<.link
|
|
||||||
href={Routes.user_registration_path(CanneryWeb.Endpoint, :new)}
|
|
||||||
class="hover:underline"
|
|
||||||
>
|
|
||||||
<%= dgettext("prompts", "Register to setup %{name}", name: "Cannery") %>
|
|
||||||
</.link>
|
|
||||||
<% else %>
|
|
||||||
<div class="flex flex-wrap justify-center space-x-2">
|
|
||||||
<%= for admin <- @admins do %>
|
|
||||||
<a class="hover:underline" href={"mailto:#{admin.email}"}>
|
|
||||||
<%= admin.email %>
|
|
||||||
</a>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
</p>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="flex flex-row justify-center space-x-2">
|
|
||||||
<b>Registration:</b>
|
|
||||||
<p>
|
|
||||||
<%= Application.get_env(:cannery, CanneryWeb.Endpoint)[:registration]
|
|
||||||
|> case do
|
|
||||||
"public" -> gettext("Public Signups")
|
|
||||||
_ -> gettext("Invite Only")
|
|
||||||
end %>
|
|
||||||
</p>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="flex flex-row justify-center items-center space-x-2">
|
|
||||||
<b>Version:</b>
|
|
||||||
<.link
|
|
||||||
href="https://gitea.bubbletea.dev/shibao/cannery/src/branch/stable/CHANGELOG.md"
|
|
||||||
class="flex flex-row justify-center items-center space-x-2 hover:underline"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
>
|
|
||||||
<p>
|
|
||||||
<%= @version %>
|
|
||||||
</p>
|
|
||||||
<i class="fas fa-md fa-info-circle"></i>
|
|
||||||
</.link>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<hr class="hr" />
|
|
||||||
|
|
||||||
<ul class="flex flex-col space-y-2 text-center justify-center">
|
|
||||||
<h2 class="title text-primary-600 text-lg">
|
|
||||||
<%= gettext("Get involved!") %>
|
|
||||||
</h2>
|
|
||||||
|
|
||||||
<li class="flex flex-col justify-center space-x-2">
|
|
||||||
<.link
|
|
||||||
class="flex flex-row justify-center items-center space-x-2 hover:underline"
|
|
||||||
href="https://gitea.bubbletea.dev/shibao/cannery"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
>
|
|
||||||
<p><%= gettext("View the source code") %></p>
|
|
||||||
<i class="fas fa-md fa-code"></i>
|
|
||||||
</.link>
|
|
||||||
</li>
|
|
||||||
<li class="flex flex-col justify-center space-x-2">
|
|
||||||
<.link
|
|
||||||
class="flex flex-row justify-center items-center space-x-2 hover:underline"
|
|
||||||
href="https://weblate.bubbletea.dev/engage/cannery"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
>
|
|
||||||
<p><%= gettext("Help translate") %></p>
|
|
||||||
<i class="fas fa-md fa-language"></i>
|
|
||||||
</.link>
|
|
||||||
</li>
|
|
||||||
<li class="flex flex-col justify-center space-x-2">
|
|
||||||
<.link
|
|
||||||
class="flex flex-row justify-center items-center space-x-2 hover:underline"
|
|
||||||
href="https://gitea.bubbletea.dev/shibao/cannery/issues/new"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
>
|
|
||||||
<p><%= gettext("Report bugs or request features") %></p>
|
|
||||||
<i class="fas fa-md fa-spider"></i>
|
|
||||||
</.link>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
"""
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
144
lib/cannery_web/live/home_live.html.heex
Normal file
144
lib/cannery_web/live/home_live.html.heex
Normal file
@ -0,0 +1,144 @@
|
|||||||
|
<div class="mx-auto px-8 sm:px-16 flex flex-col justify-center items-center text-center space-y-4 max-w-3xl">
|
||||||
|
<img
|
||||||
|
src={Routes.static_path(Endpoint, "/images/cannery.svg")}
|
||||||
|
alt={gettext("Cannery logo")}
|
||||||
|
class="inline-block w-32 hover:-mt-2 hover:mb-2 transition-all duration-500 ease-in-out"
|
||||||
|
title={gettext("isn't he cute >:3")}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<h1 class="title text-primary-600 text-2xl">
|
||||||
|
<%= gettext("Welcome to Cannery") %>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<h2 class="title text-primary-600 text-lg">
|
||||||
|
<%= gettext("The self-hosted firearm tracker website") %>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<hr class="hr" />
|
||||||
|
|
||||||
|
<ul class="flex flex-col space-y-4 text-center">
|
||||||
|
<li class="flex flex-col justify-center items-center
|
||||||
|
space-y-2">
|
||||||
|
<b class="whitespace-nowrap">
|
||||||
|
<%= gettext("Easy to Use:") %>
|
||||||
|
</b>
|
||||||
|
<p>
|
||||||
|
<%= gettext(
|
||||||
|
"Cannery lets you easily keep an eye on your ammo levels before and after range day"
|
||||||
|
) %>
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
|
<li class="flex flex-col justify-center items-center space-y-2">
|
||||||
|
<b class="whitespace-nowrap">
|
||||||
|
<%= gettext("Secure:") %>
|
||||||
|
</b>
|
||||||
|
<p>
|
||||||
|
<%= gettext("Self-host your own instance, or use an instance from someone you trust.") %>
|
||||||
|
<%= gettext("Your data stays with you, period") %>
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
|
<li class="flex flex-col justify-center items-center
|
||||||
|
space-y-2">
|
||||||
|
<b class="whitespace-nowrap">
|
||||||
|
<%= gettext("Simple:") %>
|
||||||
|
</b>
|
||||||
|
<p>
|
||||||
|
<%= gettext("Access from any internet-capable device") %>
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<hr class="hr" />
|
||||||
|
|
||||||
|
<ul class="flex flex-col space-y-2 text-center justify-center">
|
||||||
|
<h2 class="title text-primary-600 text-lg">
|
||||||
|
<%= gettext("Instance Information") %>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<li class="flex flex-col justify-center space-x-2">
|
||||||
|
<b>
|
||||||
|
<%= gettext("Admins:") %>
|
||||||
|
</b>
|
||||||
|
<p>
|
||||||
|
<%= if @admins |> Enum.empty?() do %>
|
||||||
|
<.link href={Routes.user_registration_path(Endpoint, :new)} class="hover:underline">
|
||||||
|
<%= dgettext("prompts", "Register to setup Cannery") %>
|
||||||
|
</.link>
|
||||||
|
<% else %>
|
||||||
|
<div class="flex flex-wrap justify-center space-x-2">
|
||||||
|
<a :for={%{email: email} <- @admins} class="hover:underline" href={"mailto:#{email}"}>
|
||||||
|
<%= email %>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="flex flex-row justify-center space-x-2">
|
||||||
|
<b><%= gettext("Registration:") %></b>
|
||||||
|
<p>
|
||||||
|
<%= case Application.get_env(:cannery, Cannery.Accounts)[:registration] do
|
||||||
|
"public" -> gettext("Public Signups")
|
||||||
|
_ -> gettext("Invite Only")
|
||||||
|
end %>
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="flex flex-row justify-center items-center space-x-2">
|
||||||
|
<b><%= gettext("Version:") %></b>
|
||||||
|
<.link
|
||||||
|
href="https://gitea.bubbletea.dev/shibao/cannery/src/branch/stable/CHANGELOG.md"
|
||||||
|
class="flex flex-row justify-center items-center space-x-2 hover:underline"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
<p>
|
||||||
|
<%= @version %>
|
||||||
|
</p>
|
||||||
|
<i class="fas fa-md fa-info-circle"></i>
|
||||||
|
</.link>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<hr class="hr" />
|
||||||
|
|
||||||
|
<ul class="flex flex-col space-y-2 text-center justify-center">
|
||||||
|
<h2 class="title text-primary-600 text-lg">
|
||||||
|
<%= gettext("Get involved!") %>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<li class="flex flex-col justify-center space-x-2">
|
||||||
|
<.link
|
||||||
|
class="flex flex-row justify-center items-center space-x-2 hover:underline"
|
||||||
|
href="https://gitea.bubbletea.dev/shibao/cannery"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
<p><%= gettext("View the source code") %></p>
|
||||||
|
<i class="fas fa-md fa-code"></i>
|
||||||
|
</.link>
|
||||||
|
</li>
|
||||||
|
<li class="flex flex-col justify-center space-x-2">
|
||||||
|
<.link
|
||||||
|
class="flex flex-row justify-center items-center space-x-2 hover:underline"
|
||||||
|
href="https://weblate.bubbletea.dev/engage/cannery"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
<p><%= gettext("Help translate") %></p>
|
||||||
|
<i class="fas fa-md fa-language"></i>
|
||||||
|
</.link>
|
||||||
|
</li>
|
||||||
|
<li class="flex flex-col justify-center space-x-2">
|
||||||
|
<.link
|
||||||
|
class="flex flex-row justify-center items-center space-x-2 hover:underline"
|
||||||
|
href="https://gitea.bubbletea.dev/shibao/cannery/issues/new"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
<p><%= gettext("Report bugs or request features") %></p>
|
||||||
|
<i class="fas fa-md fa-spider"></i>
|
||||||
|
</.link>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
@ -1,11 +1,11 @@
|
|||||||
defmodule CanneryWeb.InviteLive.FormComponent do
|
defmodule CanneryWeb.InviteLive.FormComponent do
|
||||||
@moduledoc """
|
@moduledoc """
|
||||||
Livecomponent that can update or create an Cannery.Invites.Invite
|
Livecomponent that can update or create an Cannery.Accounts.Invite
|
||||||
"""
|
"""
|
||||||
|
|
||||||
use CanneryWeb, :live_component
|
use CanneryWeb, :live_component
|
||||||
alias Cannery.{Accounts.User, Invites, Invites.Invite}
|
|
||||||
alias Ecto.Changeset
|
alias Ecto.Changeset
|
||||||
|
alias Cannery.Accounts.{Invite, Invites, User}
|
||||||
alias Phoenix.LiveView.Socket
|
alias Phoenix.LiveView.Socket
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
|
@ -11,11 +11,12 @@
|
|||||||
phx-change="validate"
|
phx-change="validate"
|
||||||
phx-submit="save"
|
phx-submit="save"
|
||||||
>
|
>
|
||||||
<%= if @changeset.action && not @changeset.valid? do %>
|
<div
|
||||||
<div class="invalid-feedback col-span-3 text-center">
|
:if={@changeset.action && not @changeset.valid?()}
|
||||||
<%= changeset_errors(@changeset) %>
|
class="invalid-feedback col-span-3 text-center"
|
||||||
</div>
|
>
|
||||||
<% end %>
|
<%= changeset_errors(@changeset) %>
|
||||||
|
</div>
|
||||||
|
|
||||||
<%= label(f, :name, gettext("Name"), class: "title text-lg text-primary-600") %>
|
<%= label(f, :name, gettext("Name"), class: "title text-lg text-primary-600") %>
|
||||||
<%= text_input(f, :name, class: "input input-primary col-span-2") %>
|
<%= text_input(f, :name, class: "input input-primary col-span-2") %>
|
||||||
@ -25,7 +26,7 @@
|
|||||||
<%= number_input(f, :uses_left, min: 0, class: "input input-primary col-span-2") %>
|
<%= number_input(f, :uses_left, min: 0, class: "input input-primary col-span-2") %>
|
||||||
<%= error_tag(f, :uses_left, "col-span-3") %>
|
<%= error_tag(f, :uses_left, "col-span-3") %>
|
||||||
<span class="col-span-3 text-primary-400 italic text-center">
|
<span class="col-span-3 text-primary-400 italic text-center">
|
||||||
<%= gettext("Leave \"Uses left\" blank to make invite unlimited") %>
|
<%= gettext(~s/Leave "Uses left" blank to make invite unlimited/) %>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<%= submit(dgettext("actions", "Save"),
|
<%= submit(dgettext("actions", "Save"),
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
defmodule CanneryWeb.InviteLive.Index do
|
defmodule CanneryWeb.InviteLive.Index do
|
||||||
@moduledoc """
|
@moduledoc """
|
||||||
Liveview to show a Cannery.Invites.Invite index
|
Liveview to show a Cannery.Accounts.Invite index
|
||||||
"""
|
"""
|
||||||
|
|
||||||
use CanneryWeb, :live_view
|
use CanneryWeb, :live_view
|
||||||
import CanneryWeb.Components.{InviteCard, UserCard}
|
import CanneryWeb.Components.{InviteCard, UserCard}
|
||||||
alias Cannery.{Accounts, Invites, Invites.Invite}
|
alias Cannery.Accounts
|
||||||
|
alias Cannery.Accounts.{Invite, Invites}
|
||||||
alias CanneryWeb.{Endpoint, HomeLive}
|
alias CanneryWeb.{Endpoint, HomeLive}
|
||||||
alias Phoenix.LiveView.JS
|
alias Phoenix.LiveView.JS
|
||||||
|
|
||||||
@ -17,7 +18,7 @@ defmodule CanneryWeb.InviteLive.Index do
|
|||||||
else
|
else
|
||||||
prompt = dgettext("errors", "You are not authorized to view this page")
|
prompt = dgettext("errors", "You are not authorized to view this page")
|
||||||
return_to = Routes.live_path(Endpoint, HomeLive)
|
return_to = Routes.live_path(Endpoint, HomeLive)
|
||||||
socket |> put_flash(:error, prompt) |> push_navigate(to: return_to)
|
socket |> put_flash(:error, prompt) |> push_redirect(to: return_to)
|
||||||
end
|
end
|
||||||
|
|
||||||
{:ok, socket}
|
{:ok, socket}
|
||||||
@ -50,7 +51,7 @@ defmodule CanneryWeb.InviteLive.Index do
|
|||||||
%{name: invite_name} =
|
%{name: invite_name} =
|
||||||
id |> Invites.get_invite!(current_user) |> Invites.delete_invite!(current_user)
|
id |> Invites.get_invite!(current_user) |> Invites.delete_invite!(current_user)
|
||||||
|
|
||||||
prompt = dgettext("prompts", "%{name} deleted succesfully", name: invite_name)
|
prompt = dgettext("prompts", "%{invite_name} deleted succesfully", invite_name: invite_name)
|
||||||
{:noreply, socket |> put_flash(:info, prompt) |> display_invites()}
|
{:noreply, socket |> put_flash(:info, prompt) |> display_invites()}
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -61,10 +62,12 @@ defmodule CanneryWeb.InviteLive.Index do
|
|||||||
) do
|
) do
|
||||||
socket =
|
socket =
|
||||||
Invites.get_invite!(id, current_user)
|
Invites.get_invite!(id, current_user)
|
||||||
|> Invites.update_invite(%{"uses_left" => nil}, current_user)
|
|> Invites.update_invite(%{uses_left: nil}, current_user)
|
||||||
|> case do
|
|> case do
|
||||||
{:ok, %{name: invite_name}} ->
|
{:ok, %{name: invite_name}} ->
|
||||||
prompt = dgettext("prompts", "%{name} updated succesfully", name: invite_name)
|
prompt =
|
||||||
|
dgettext("prompts", "%{invite_name} updated succesfully", invite_name: invite_name)
|
||||||
|
|
||||||
socket |> put_flash(:info, prompt) |> display_invites()
|
socket |> put_flash(:info, prompt) |> display_invites()
|
||||||
|
|
||||||
{:error, changeset} ->
|
{:error, changeset} ->
|
||||||
@ -81,10 +84,12 @@ defmodule CanneryWeb.InviteLive.Index do
|
|||||||
) do
|
) do
|
||||||
socket =
|
socket =
|
||||||
Invites.get_invite!(id, current_user)
|
Invites.get_invite!(id, current_user)
|
||||||
|> Invites.update_invite(%{"uses_left" => nil, "disabled_at" => nil}, current_user)
|
|> Invites.update_invite(%{uses_left: nil, disabled_at: nil}, current_user)
|
||||||
|> case do
|
|> case do
|
||||||
{:ok, %{name: invite_name}} ->
|
{:ok, %{name: invite_name}} ->
|
||||||
prompt = dgettext("prompts", "%{name} enabled succesfully", name: invite_name)
|
prompt =
|
||||||
|
dgettext("prompts", "%{invite_name} enabled succesfully", invite_name: invite_name)
|
||||||
|
|
||||||
socket |> put_flash(:info, prompt) |> display_invites()
|
socket |> put_flash(:info, prompt) |> display_invites()
|
||||||
|
|
||||||
{:error, changeset} ->
|
{:error, changeset} ->
|
||||||
@ -103,10 +108,12 @@ defmodule CanneryWeb.InviteLive.Index do
|
|||||||
|
|
||||||
socket =
|
socket =
|
||||||
Invites.get_invite!(id, current_user)
|
Invites.get_invite!(id, current_user)
|
||||||
|> Invites.update_invite(%{"uses_left" => 0, "disabled_at" => now}, current_user)
|
|> Invites.update_invite(%{uses_left: 0, disabled_at: now}, current_user)
|
||||||
|> case do
|
|> case do
|
||||||
{:ok, %{name: invite_name}} ->
|
{:ok, %{name: invite_name}} ->
|
||||||
prompt = dgettext("prompts", "%{name} disabled succesfully", name: invite_name)
|
prompt =
|
||||||
|
dgettext("prompts", "%{invite_name} disabled succesfully", invite_name: invite_name)
|
||||||
|
|
||||||
socket |> put_flash(:info, prompt) |> display_invites()
|
socket |> put_flash(:info, prompt) |> display_invites()
|
||||||
|
|
||||||
{:error, changeset} ->
|
{:error, changeset} ->
|
||||||
@ -130,7 +137,7 @@ defmodule CanneryWeb.InviteLive.Index do
|
|||||||
) do
|
) do
|
||||||
%{email: user_email} = Accounts.get_user!(id) |> Accounts.delete_user!(current_user)
|
%{email: user_email} = Accounts.get_user!(id) |> Accounts.delete_user!(current_user)
|
||||||
|
|
||||||
prompt = dgettext("prompts", "%{name} deleted succesfully", name: user_email)
|
prompt = dgettext("prompts", "%{user_email} deleted succesfully", user_email: user_email)
|
||||||
|
|
||||||
{:noreply, socket |> put_flash(:info, prompt) |> display_invites()}
|
{:noreply, socket |> put_flash(:info, prompt) |> display_invites()}
|
||||||
end
|
end
|
||||||
|
@ -19,69 +19,65 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="w-full flex flex-row flex-wrap justify-center items-stretch">
|
<div class="w-full flex flex-row flex-wrap justify-center items-stretch">
|
||||||
<%= for invite <- @invites do %>
|
<.invite_card :for={invite <- @invites} invite={invite} current_user={@current_user}>
|
||||||
<.invite_card invite={invite}>
|
<:code_actions>
|
||||||
<:code_actions>
|
<form phx-submit="copy_to_clipboard">
|
||||||
<form phx-submit="copy_to_clipboard">
|
<button
|
||||||
<button
|
type="submit"
|
||||||
type="submit"
|
class="mx-2 my-1 btn btn-primary"
|
||||||
class="mx-2 my-1 btn btn-primary"
|
phx-click={JS.dispatch("cannery:clipcopy", to: "#code-#{invite.id}")}
|
||||||
phx-click={JS.dispatch("cannery:clipcopy", to: "#code-#{invite.id}")}
|
|
||||||
>
|
|
||||||
<%= dgettext("actions", "Copy to clipboard") %>
|
|
||||||
</button>
|
|
||||||
</form>
|
|
||||||
</:code_actions>
|
|
||||||
<.link
|
|
||||||
patch={Routes.invite_index_path(Endpoint, :edit, invite)}
|
|
||||||
class="text-primary-600 link"
|
|
||||||
data-qa={"edit-#{invite.id}"}
|
|
||||||
>
|
|
||||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
|
||||||
</.link>
|
|
||||||
|
|
||||||
<.link
|
|
||||||
href="#"
|
|
||||||
class="text-primary-600 link"
|
|
||||||
phx-click="delete_invite"
|
|
||||||
phx-value-id={invite.id}
|
|
||||||
data-confirm={
|
|
||||||
dgettext("prompts", "Are you sure you want to delete the invite for %{name}?",
|
|
||||||
name: invite.name
|
|
||||||
)
|
|
||||||
}
|
|
||||||
data-qa={"delete-#{invite.id}"}
|
|
||||||
>
|
|
||||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
|
||||||
</.link>
|
|
||||||
|
|
||||||
<%= if invite.disabled_at |> is_nil() do %>
|
|
||||||
<a href="#" class="btn btn-primary" phx-click="disable_invite" phx-value-id={invite.id}>
|
|
||||||
<%= dgettext("actions", "Disable") %>
|
|
||||||
</a>
|
|
||||||
<% else %>
|
|
||||||
<a href="#" class="btn btn-primary" phx-click="enable_invite" phx-value-id={invite.id}>
|
|
||||||
<%= dgettext("actions", "Enable") %>
|
|
||||||
</a>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= if invite.disabled_at |> is_nil() and not (invite.uses_left |> is_nil()) do %>
|
|
||||||
<a
|
|
||||||
href="#"
|
|
||||||
class="btn btn-primary"
|
|
||||||
phx-click="set_unlimited"
|
|
||||||
phx-value-id={invite.id}
|
|
||||||
data-confirm={
|
|
||||||
dgettext("prompts", "Are you sure you want to make %{name} unlimited?",
|
|
||||||
name: invite.name
|
|
||||||
)
|
|
||||||
}
|
|
||||||
>
|
>
|
||||||
<%= dgettext("actions", "Set Unlimited") %>
|
<%= dgettext("actions", "Copy to clipboard") %>
|
||||||
</a>
|
</button>
|
||||||
<% end %>
|
</form>
|
||||||
</.invite_card>
|
</:code_actions>
|
||||||
<% end %>
|
<.link
|
||||||
|
patch={Routes.invite_index_path(Endpoint, :edit, invite)}
|
||||||
|
class="text-primary-600 link"
|
||||||
|
data-qa={"edit-#{invite.id}"}
|
||||||
|
>
|
||||||
|
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||||
|
</.link>
|
||||||
|
|
||||||
|
<.link
|
||||||
|
href="#"
|
||||||
|
class="text-primary-600 link"
|
||||||
|
phx-click="delete_invite"
|
||||||
|
phx-value-id={invite.id}
|
||||||
|
data-confirm={
|
||||||
|
dgettext("prompts", "Are you sure you want to delete the invite for %{invite_name}?",
|
||||||
|
invite_name: invite.name
|
||||||
|
)
|
||||||
|
}
|
||||||
|
data-qa={"delete-#{invite.id}"}
|
||||||
|
>
|
||||||
|
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||||
|
</.link>
|
||||||
|
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="btn btn-primary"
|
||||||
|
phx-click={if invite.disabled_at, do: "enable_invite", else: "disable_invite"}
|
||||||
|
phx-value-id={invite.id}
|
||||||
|
>
|
||||||
|
<%= if invite.disabled_at, do: gettext("Enable"), else: gettext("Disable") %>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a
|
||||||
|
:if={invite.disabled_at |> is_nil() and not (invite.uses_left |> is_nil())}
|
||||||
|
href="#"
|
||||||
|
class="btn btn-primary"
|
||||||
|
phx-click="set_unlimited"
|
||||||
|
phx-value-id={invite.id}
|
||||||
|
data-confirm={
|
||||||
|
dgettext("prompts", "Are you sure you want to make %{invite_name} unlimited?",
|
||||||
|
invite_name: invite.name
|
||||||
|
)
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<%= dgettext("actions", "Set Unlimited") %>
|
||||||
|
</a>
|
||||||
|
</.invite_card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= unless @admins |> Enum.empty?() do %>
|
<%= unless @admins |> Enum.empty?() do %>
|
||||||
@ -92,25 +88,23 @@
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div class="w-full flex flex-row flex-wrap justify-center items-stretch">
|
<div class="w-full flex flex-row flex-wrap justify-center items-stretch">
|
||||||
<%= for admin <- @admins do %>
|
<.user_card :for={admin <- @admins} user={admin}>
|
||||||
<.user_card user={admin}>
|
<.link
|
||||||
<.link
|
href="#"
|
||||||
href="#"
|
class="text-primary-600 link"
|
||||||
class="text-primary-600 link"
|
phx-click="delete_user"
|
||||||
phx-click="delete_user"
|
phx-value-id={admin.id}
|
||||||
phx-value-id={admin.id}
|
data-confirm={
|
||||||
data-confirm={
|
dgettext(
|
||||||
dgettext(
|
"prompts",
|
||||||
"prompts",
|
"Are you sure you want to delete %{email}? This action is permanent!",
|
||||||
"Are you sure you want to delete %{email}? This action is permanent!",
|
email: admin.email
|
||||||
email: admin.email
|
)
|
||||||
)
|
}
|
||||||
}
|
>
|
||||||
>
|
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
</.link>
|
||||||
</.link>
|
</.user_card>
|
||||||
</.user_card>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
@ -122,39 +116,35 @@
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div class="w-full flex flex-row flex-wrap justify-center items-stretch">
|
<div class="w-full flex flex-row flex-wrap justify-center items-stretch">
|
||||||
<%= for user <- @users do %>
|
<.user_card :for={user <- @users} user={user}>
|
||||||
<.user_card user={user}>
|
<.link
|
||||||
<.link
|
href="#"
|
||||||
href="#"
|
class="text-primary-600 link"
|
||||||
class="text-primary-600 link"
|
phx-click="delete_user"
|
||||||
phx-click="delete_user"
|
phx-value-id={user.id}
|
||||||
phx-value-id={user.id}
|
data-confirm={
|
||||||
data-confirm={
|
dgettext(
|
||||||
dgettext(
|
"prompts",
|
||||||
"prompts",
|
"Are you sure you want to delete %{email}? This action is permanent!",
|
||||||
"Are you sure you want to delete %{email}? This action is permanent!",
|
email: user.email
|
||||||
email: user.email
|
)
|
||||||
)
|
}
|
||||||
}
|
>
|
||||||
>
|
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
</.link>
|
||||||
</.link>
|
</.user_card>
|
||||||
</.user_card>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= if @live_action in [:new, :edit] do %>
|
<.modal :if={@live_action in [:new, :edit]} return_to={Routes.invite_index_path(Endpoint, :index)}>
|
||||||
<.modal return_to={Routes.invite_index_path(Endpoint, :index)}>
|
<.live_component
|
||||||
<.live_component
|
module={CanneryWeb.InviteLive.FormComponent}
|
||||||
module={CanneryWeb.InviteLive.FormComponent}
|
id={@invite.id || :new}
|
||||||
id={@invite.id || :new}
|
title={@page_title}
|
||||||
title={@page_title}
|
action={@live_action}
|
||||||
action={@live_action}
|
invite={@invite}
|
||||||
invite={@invite}
|
return_to={Routes.invite_index_path(Endpoint, :index)}
|
||||||
return_to={Routes.invite_index_path(Endpoint, :index)}
|
current_user={@current_user}
|
||||||
current_user={@current_user}
|
/>
|
||||||
/>
|
</.modal>
|
||||||
</.modal>
|
|
||||||
<% end %>
|
|
||||||
|
@ -31,10 +31,10 @@ defmodule CanneryWeb.LiveHelpers do
|
|||||||
patch={@return_to}
|
patch={@return_to}
|
||||||
id="modal-bg"
|
id="modal-bg"
|
||||||
class="fade-in fixed z-10 left-0 top-0
|
class="fade-in fixed z-10 left-0 top-0
|
||||||
w-full h-full overflow-hidden
|
w-full h-full overflow-hidden
|
||||||
p-8 flex flex-col justify-center items-center cursor-auto"
|
p-8 flex flex-col justify-center items-center cursor-auto"
|
||||||
style="background-color: rgba(0,0,0,0.4);"
|
style="background-color: rgba(0,0,0,0.4);"
|
||||||
phx_remove={hide_modal()}
|
phx-remove={hide_modal()}
|
||||||
>
|
>
|
||||||
<span class="hidden"></span>
|
<span class="hidden"></span>
|
||||||
</.link>
|
</.link>
|
||||||
@ -48,18 +48,18 @@ defmodule CanneryWeb.LiveHelpers do
|
|||||||
<div
|
<div
|
||||||
id="modal-content"
|
id="modal-content"
|
||||||
class="fade-in-scale w-full max-w-3xl relative
|
class="fade-in-scale w-full max-w-3xl relative
|
||||||
pointer-events-auto overflow-hidden
|
pointer-events-auto overflow-hidden
|
||||||
px-8 py-4 sm:py-8 flex flex-col justify-center items-center
|
px-8 py-4 sm:py-8
|
||||||
flex flex-col justify-start items-center
|
flex flex-col justify-start items-center
|
||||||
bg-white border-2 rounded-lg"
|
bg-white border-2 rounded-lg"
|
||||||
>
|
>
|
||||||
<.link
|
<.link
|
||||||
patch={@return_to}
|
patch={@return_to}
|
||||||
id="close"
|
id="close"
|
||||||
class="absolute top-8 right-10
|
class="absolute top-8 right-10
|
||||||
text-gray-500 hover:text-gray-800
|
text-gray-500 hover:text-gray-800
|
||||||
transition-all duration-500 ease-in-out"
|
transition-all duration-500 ease-in-out"
|
||||||
phx_remove={hide_modal()}
|
phx-remove={hide_modal()}
|
||||||
>
|
>
|
||||||
<i class="fa-fw fa-lg fas fa-times"></i>
|
<i class="fa-fw fa-lg fas fa-times"></i>
|
||||||
</.link>
|
</.link>
|
||||||
@ -106,8 +106,8 @@ defmodule CanneryWeb.LiveHelpers do
|
|||||||
data-qa={@id}
|
data-qa={@id}
|
||||||
{
|
{
|
||||||
if assigns |> Map.has_key?(:target),
|
if assigns |> Map.has_key?(:target),
|
||||||
do: %{"phx-click" => @action, "phx-value-value" => @value, "phx-target" => @target},
|
do: %{"phx-click": @action, "phx-value-value": @value, "phx-target": @target},
|
||||||
else: %{"phx-click" => @action, "phx-value-value" => @value}
|
else: %{"phx-click": @action, "phx-value-value": @value}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<div class="w-11 h-6 bg-gray-300 rounded-full peer
|
<div class="w-11 h-6 bg-gray-300 rounded-full peer
|
||||||
|
@ -12,11 +12,12 @@
|
|||||||
phx-change="validate"
|
phx-change="validate"
|
||||||
phx-submit="save"
|
phx-submit="save"
|
||||||
>
|
>
|
||||||
<%= if @changeset.action && not @changeset.valid? do %>
|
<div
|
||||||
<div class="invalid-feedback col-span-3 text-center">
|
:if={@changeset.action && not @changeset.valid?()}
|
||||||
<%= changeset_errors(@changeset) %>
|
class="invalid-feedback col-span-3 text-center"
|
||||||
</div>
|
>
|
||||||
<% end %>
|
<%= changeset_errors(@changeset) %>
|
||||||
|
</div>
|
||||||
|
|
||||||
<%= label(f, :count, gettext("Shots fired"), class: "title text-lg text-primary-600") %>
|
<%= label(f, :count, gettext("Shots fired"), class: "title text-lg text-primary-600") %>
|
||||||
<%= number_input(f, :count,
|
<%= number_input(f, :count,
|
||||||
|
@ -18,28 +18,26 @@
|
|||||||
</.link>
|
</.link>
|
||||||
|
|
||||||
<div class="w-full flex flex-row flex-wrap justify-center items-stretch">
|
<div class="w-full flex flex-row flex-wrap justify-center items-stretch">
|
||||||
<%= for ammo_group <- @ammo_groups do %>
|
<.ammo_group_card :for={ammo_group <- @ammo_groups} ammo_group={ammo_group}>
|
||||||
<.ammo_group_card ammo_group={ammo_group}>
|
<button
|
||||||
<button
|
type="button"
|
||||||
type="button"
|
class="btn btn-primary"
|
||||||
class="btn btn-primary"
|
phx-click="toggle_staged"
|
||||||
phx-click="toggle_staged"
|
phx-value-ammo_group_id={ammo_group.id}
|
||||||
phx-value-ammo_group_id={ammo_group.id}
|
data-confirm={"#{dgettext("prompts", "Are you sure you want to unstage this ammo?")}"}
|
||||||
data-confirm={"#{dgettext("prompts", "Are you sure you want to unstage this ammo?")}"}
|
>
|
||||||
>
|
<%= if ammo_group.staged,
|
||||||
<%= if ammo_group.staged,
|
do: dgettext("actions", "Unstage from range"),
|
||||||
do: dgettext("actions", "Unstage from range"),
|
else: dgettext("actions", "Stage for range") %>
|
||||||
else: dgettext("actions", "Stage for range") %>
|
</button>
|
||||||
</button>
|
|
||||||
|
|
||||||
<.link
|
<.link
|
||||||
patch={Routes.range_index_path(Endpoint, :add_shot_group, ammo_group)}
|
patch={Routes.range_index_path(Endpoint, :add_shot_group, ammo_group)}
|
||||||
class="btn btn-primary"
|
class="btn btn-primary"
|
||||||
>
|
>
|
||||||
<%= dgettext("actions", "Record shots") %>
|
<%= dgettext("actions", "Record shots") %>
|
||||||
</.link>
|
</.link>
|
||||||
</.ammo_group_card>
|
</.ammo_group_card>
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
@ -128,30 +126,29 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= if @live_action in [:edit] do %>
|
<.modal :if={@live_action == :edit} return_to={Routes.range_index_path(Endpoint, :index)}>
|
||||||
<.modal return_to={Routes.range_index_path(Endpoint, :index)}>
|
<.live_component
|
||||||
<.live_component
|
module={CanneryWeb.RangeLive.FormComponent}
|
||||||
module={CanneryWeb.RangeLive.FormComponent}
|
id={@shot_group.id}
|
||||||
id={@shot_group.id}
|
title={@page_title}
|
||||||
title={@page_title}
|
action={@live_action}
|
||||||
action={@live_action}
|
shot_group={@shot_group}
|
||||||
shot_group={@shot_group}
|
return_to={Routes.range_index_path(Endpoint, :index)}
|
||||||
return_to={Routes.range_index_path(Endpoint, :index)}
|
current_user={@current_user}
|
||||||
current_user={@current_user}
|
/>
|
||||||
/>
|
</.modal>
|
||||||
</.modal>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= if @live_action in [:add_shot_group] do %>
|
<.modal
|
||||||
<.modal return_to={Routes.range_index_path(Endpoint, :index)}>
|
:if={@live_action == :add_shot_group}
|
||||||
<.live_component
|
return_to={Routes.range_index_path(Endpoint, :index)}
|
||||||
module={CanneryWeb.Components.AddShotGroupComponent}
|
>
|
||||||
id={:new}
|
<.live_component
|
||||||
title={@page_title}
|
module={CanneryWeb.Components.AddShotGroupComponent}
|
||||||
action={@live_action}
|
id={:new}
|
||||||
ammo_group={@ammo_group}
|
title={@page_title}
|
||||||
return_to={Routes.range_index_path(Endpoint, :index)}
|
action={@live_action}
|
||||||
current_user={@current_user}
|
ammo_group={@ammo_group}
|
||||||
/>
|
return_to={Routes.range_index_path(Endpoint, :index)}
|
||||||
</.modal>
|
current_user={@current_user}
|
||||||
<% end %>
|
/>
|
||||||
|
</.modal>
|
||||||
|
@ -50,53 +50,6 @@ defmodule CanneryWeb.TagLive.FormComponent do
|
|||||||
socket |> assign(:changeset, changeset)
|
socket |> assign(:changeset, changeset)
|
||||||
end
|
end
|
||||||
|
|
||||||
@impl true
|
|
||||||
def render(assigns) do
|
|
||||||
~H"""
|
|
||||||
<div>
|
|
||||||
<h2 class="mb-8 text-center title text-xl text-primary-600">
|
|
||||||
<%= @title %>
|
|
||||||
</h2>
|
|
||||||
<.form
|
|
||||||
:let={f}
|
|
||||||
for={@changeset}
|
|
||||||
id="tag-form"
|
|
||||||
class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
|
||||||
phx-target={@myself}
|
|
||||||
phx-change="validate"
|
|
||||||
phx-submit="save"
|
|
||||||
>
|
|
||||||
<%= if @changeset.action && not @changeset.valid? do %>
|
|
||||||
<div class="invalid-feedback col-span-3 text-center">
|
|
||||||
<%= changeset_errors(@changeset) %>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= label(f, :name, gettext("Name"), class: "title text-lg text-primary-600") %>
|
|
||||||
<%= text_input(f, :name, class: "input input-primary col-span-2") %>
|
|
||||||
<%= error_tag(f, :name, "col-span-3") %>
|
|
||||||
|
|
||||||
<%= label(f, :bg_color, gettext("Background color"), class: "title text-lg text-primary-600") %>
|
|
||||||
<span id="tag-bg-color-input" class="mx-auto col-span-2" phx-update="ignore">
|
|
||||||
<%= color_input(f, :bg_color) %>
|
|
||||||
</span>
|
|
||||||
<%= error_tag(f, :bg_color, "col-span-3") %>
|
|
||||||
|
|
||||||
<%= label(f, :text_color, gettext("Text color"), class: "title text-lg text-primary-600") %>
|
|
||||||
<span id="tag-text-color-input" class="mx-auto col-span-2" phx-update="ignore">
|
|
||||||
<%= color_input(f, :text_color) %>
|
|
||||||
</span>
|
|
||||||
<%= error_tag(f, :text_color, "col-span-3") %>
|
|
||||||
|
|
||||||
<%= submit(dgettext("actions", "Save"),
|
|
||||||
class: "mx-auto btn btn-primary col-span-3",
|
|
||||||
phx_disable_with: dgettext("prompts", "Saving...")
|
|
||||||
) %>
|
|
||||||
</.form>
|
|
||||||
</div>
|
|
||||||
"""
|
|
||||||
end
|
|
||||||
|
|
||||||
defp save_tag(
|
defp save_tag(
|
||||||
%{assigns: %{tag: tag, current_user: current_user, return_to: return_to}} = socket,
|
%{assigns: %{tag: tag, current_user: current_user, return_to: return_to}} = socket,
|
||||||
:edit,
|
:edit,
|
||||||
|
42
lib/cannery_web/live/tag_live/form_component.html.heex
Normal file
42
lib/cannery_web/live/tag_live/form_component.html.heex
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
<div>
|
||||||
|
<h2 class="mb-8 text-center title text-xl text-primary-600">
|
||||||
|
<%= @title %>
|
||||||
|
</h2>
|
||||||
|
<.form
|
||||||
|
:let={f}
|
||||||
|
for={@changeset}
|
||||||
|
id="tag-form"
|
||||||
|
class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
||||||
|
phx-target={@myself}
|
||||||
|
phx-change="validate"
|
||||||
|
phx-submit="save"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
:if={@changeset.action && not @changeset.valid?()}
|
||||||
|
class="invalid-feedback col-span-3 text-center"
|
||||||
|
>
|
||||||
|
<%= changeset_errors(@changeset) %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<%= label(f, :name, gettext("Name"), class: "title text-lg text-primary-600") %>
|
||||||
|
<%= text_input(f, :name, class: "input input-primary col-span-2") %>
|
||||||
|
<%= error_tag(f, :name, "col-span-3") %>
|
||||||
|
|
||||||
|
<%= label(f, :bg_color, gettext("Background color"), class: "title text-lg text-primary-600") %>
|
||||||
|
<span id="tag-bg-color-input" class="mx-auto col-span-2" phx-update="ignore">
|
||||||
|
<%= color_input(f, :bg_color) %>
|
||||||
|
</span>
|
||||||
|
<%= error_tag(f, :bg_color, "col-span-3") %>
|
||||||
|
|
||||||
|
<%= label(f, :text_color, gettext("Text color"), class: "title text-lg text-primary-600") %>
|
||||||
|
<span id="tag-text-color-input" class="mx-auto col-span-2" phx-update="ignore">
|
||||||
|
<%= color_input(f, :text_color) %>
|
||||||
|
</span>
|
||||||
|
<%= error_tag(f, :text_color, "col-span-3") %>
|
||||||
|
|
||||||
|
<%= submit(dgettext("actions", "Save"),
|
||||||
|
class: "mx-auto btn btn-primary col-span-3",
|
||||||
|
phx_disable_with: dgettext("prompts", "Saving...")
|
||||||
|
) %>
|
||||||
|
</.form>
|
||||||
|
</div>
|
@ -45,44 +45,40 @@
|
|||||||
</h2>
|
</h2>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="flex flex-row flex-wrap justify-center items-stretch">
|
<div class="flex flex-row flex-wrap justify-center items-stretch">
|
||||||
<%= for tag <- @tags do %>
|
<.tag_card :for={tag <- @tags} tag={tag}>
|
||||||
<.tag_card tag={tag}>
|
<.link
|
||||||
<.link
|
patch={Routes.tag_index_path(Endpoint, :edit, tag)}
|
||||||
patch={Routes.tag_index_path(Endpoint, :edit, tag)}
|
class="text-primary-600 link"
|
||||||
class="text-primary-600 link"
|
data-qa={"edit-#{tag.id}"}
|
||||||
data-qa={"edit-#{tag.id}"}
|
>
|
||||||
>
|
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
</.link>
|
||||||
</.link>
|
|
||||||
|
|
||||||
<.link
|
<.link
|
||||||
href="#"
|
href="#"
|
||||||
class="text-primary-600 link"
|
class="text-primary-600 link"
|
||||||
phx-click="delete"
|
phx-click="delete"
|
||||||
phx-value-id={tag.id}
|
phx-value-id={tag.id}
|
||||||
data-confirm={
|
data-confirm={
|
||||||
dgettext("prompts", "Are you sure you want to delete %{name}?", name: tag.name)
|
dgettext("prompts", "Are you sure you want to delete %{name}?", name: tag.name)
|
||||||
}
|
}
|
||||||
data-qa={"delete-#{tag.id}"}
|
data-qa={"delete-#{tag.id}"}
|
||||||
>
|
>
|
||||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||||
</.link>
|
</.link>
|
||||||
</.tag_card>
|
</.tag_card>
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= if @live_action in [:new, :edit] do %>
|
<.modal :if={@live_action in [:new, :edit]} return_to={Routes.tag_index_path(Endpoint, :index)}>
|
||||||
<.modal return_to={Routes.tag_index_path(Endpoint, :index)}>
|
<.live_component
|
||||||
<.live_component
|
module={CanneryWeb.TagLive.FormComponent}
|
||||||
module={CanneryWeb.TagLive.FormComponent}
|
id={@tag.id || :new}
|
||||||
id={@tag.id || :new}
|
title={@page_title}
|
||||||
title={@page_title}
|
action={@live_action}
|
||||||
action={@live_action}
|
tag={@tag}
|
||||||
tag={@tag}
|
return_to={Routes.tag_index_path(Endpoint, :index)}
|
||||||
return_to={Routes.tag_index_path(Endpoint, :index)}
|
current_user={@current_user}
|
||||||
current_user={@current_user}
|
/>
|
||||||
/>
|
</.modal>
|
||||||
</.modal>
|
|
||||||
<% end %>
|
|
||||||
|
@ -11,15 +11,17 @@ defmodule CanneryWeb.Router do
|
|||||||
plug :protect_from_forgery
|
plug :protect_from_forgery
|
||||||
plug :put_secure_browser_headers
|
plug :put_secure_browser_headers
|
||||||
plug :fetch_current_user
|
plug :fetch_current_user
|
||||||
plug :put_user_locale, default: Application.compile_env(:gettext, :default_locale, "en_US")
|
plug :put_user_locale
|
||||||
end
|
end
|
||||||
|
|
||||||
defp put_user_locale(%{assigns: %{current_user: %{locale: locale}}} = conn, default: default) do
|
defp put_user_locale(%{assigns: %{current_user: %{locale: locale}}} = conn, _opts) do
|
||||||
|
default = Application.fetch_env!(:gettext, :default_locale)
|
||||||
Gettext.put_locale(locale || default)
|
Gettext.put_locale(locale || default)
|
||||||
conn |> put_session(:locale, locale || default)
|
conn |> put_session(:locale, locale || default)
|
||||||
end
|
end
|
||||||
|
|
||||||
defp put_user_locale(conn, default: default) do
|
defp put_user_locale(conn, _opts) do
|
||||||
|
default = Application.fetch_env!(:gettext, :default_locale)
|
||||||
Gettext.put_locale(default)
|
Gettext.put_locale(default)
|
||||||
conn |> put_session(:locale, default)
|
conn |> put_session(:locale, default)
|
||||||
end
|
end
|
||||||
|
@ -57,6 +57,30 @@ defmodule CanneryWeb.Telemetry do
|
|||||||
"The time the connection spent waiting before being checked out for the query"
|
"The time the connection spent waiting before being checked out for the query"
|
||||||
),
|
),
|
||||||
|
|
||||||
|
# Oban Metrics
|
||||||
|
counter("oban.job.exception",
|
||||||
|
tags: [:queue, :worker],
|
||||||
|
event_name: [:oban, :job, :exception],
|
||||||
|
measurement: :duration,
|
||||||
|
description: "Number of oban jobs that raised an exception"
|
||||||
|
),
|
||||||
|
counter("oban.job.start",
|
||||||
|
tags: [:queue, :worker],
|
||||||
|
event_name: [:oban, :job, :start],
|
||||||
|
measurement: :system_time,
|
||||||
|
description: "Number of oban jobs started"
|
||||||
|
),
|
||||||
|
summary("oban.job.stop.duration",
|
||||||
|
tags: [:queue, :worker],
|
||||||
|
unit: {:native, :millisecond},
|
||||||
|
description: "Length of time spent processing the oban job"
|
||||||
|
),
|
||||||
|
summary("oban.job.stop.queue_time",
|
||||||
|
tags: [:queue, :worker],
|
||||||
|
unit: {:native, :millisecond},
|
||||||
|
description: "Time the oban job spent waiting in milliseconds"
|
||||||
|
),
|
||||||
|
|
||||||
# VM Metrics
|
# VM Metrics
|
||||||
summary("vm.memory.total", unit: {:byte, :kilobyte}),
|
summary("vm.memory.total", unit: {:byte, :kilobyte}),
|
||||||
summary("vm.total_run_queue_lengths.total"),
|
summary("vm.total_run_queue_lengths.total"),
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>
|
<title>
|
||||||
<%= dgettext("errors", "Error") %>| Cannery
|
<%= dgettext("errors", "Error") %> | <%= gettext("Cannery") %>
|
||||||
</title>
|
</title>
|
||||||
<link rel="stylesheet" href="/css/app.css" />
|
<link rel="stylesheet" href="/css/app.css" />
|
||||||
<script defer type="text/javascript" src="/js/app.js">
|
<script defer type="text/javascript" src="/js/app.js">
|
||||||
|
@ -3,16 +3,12 @@
|
|||||||
<.topbar current_user={assigns[:current_user]}></.topbar>
|
<.topbar current_user={assigns[:current_user]}></.topbar>
|
||||||
|
|
||||||
<div class="mx-8 my-2 flex flex-col space-y-4 text-center">
|
<div class="mx-8 my-2 flex flex-col space-y-4 text-center">
|
||||||
<%= if get_flash(@conn, :info) do %>
|
<p :if={get_flash(@conn, :info)} class="alert alert-info" role="alert">
|
||||||
<p class="alert alert-info" role="alert">
|
<%= get_flash(@conn, :info) %>
|
||||||
<%= get_flash(@conn, :info) %>
|
</p>
|
||||||
</p>
|
<p :if={get_flash(@conn, :error)} class="alert alert-danger" role="alert">
|
||||||
<% end %>
|
<%= get_flash(@conn, :error) %>
|
||||||
<%= if get_flash(@conn, :error) do %>
|
</p>
|
||||||
<p class="alert alert-danger" role="alert">
|
|
||||||
<%= get_flash(@conn, :error) %>
|
|
||||||
</p>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
@ -1,24 +1,27 @@
|
|||||||
<main class="mb-8 min-w-full">
|
<main class="pb-8 min-w-full">
|
||||||
<header>
|
<header>
|
||||||
<.topbar current_user={assigns[:current_user]}></.topbar>
|
<.topbar current_user={assigns[:current_user]}></.topbar>
|
||||||
|
|
||||||
<div class="mx-8 my-2 flex flex-col space-y-4 text-center">
|
<div class="mx-8 my-2 flex flex-col space-y-4 text-center">
|
||||||
<%= if @flash && @flash |> Map.has_key?("info") do %>
|
<p
|
||||||
<p class="alert alert-info" role="alert" phx-click="lv:clear-flash" phx-value-key="info">
|
:if={@flash && @flash |> Map.has_key?("info")}
|
||||||
<%= live_flash(@flash, "info") %>
|
class="alert alert-info"
|
||||||
</p>
|
role="alert"
|
||||||
<% end %>
|
phx-click="lv:clear-flash"
|
||||||
|
phx-value-key="info"
|
||||||
|
>
|
||||||
|
<%= live_flash(@flash, "info") %>
|
||||||
|
</p>
|
||||||
|
|
||||||
<%= if @flash && @flash |> Map.has_key?("error") do %>
|
<p
|
||||||
<p
|
:if={@flash && @flash |> Map.has_key?("error")}
|
||||||
class="alert alert-danger"
|
class="alert alert-danger"
|
||||||
role="alert"
|
role="alert"
|
||||||
phx-click="lv:clear-flash"
|
phx-click="lv:clear-flash"
|
||||||
phx-value-key="error"
|
phx-value-key="error"
|
||||||
>
|
>
|
||||||
<%= live_flash(@flash, "error") %>
|
<%= live_flash(@flash, "error") %>
|
||||||
</p>
|
</p>
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
@ -27,28 +30,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<div
|
|
||||||
id="loading"
|
|
||||||
class="fixed opacity-0 top-0 left-0 w-screen h-screen bg-white z-50
|
|
||||||
flex flex-col justify-center items-center space-y-4
|
|
||||||
transition-opacity ease-in-out duration-500"
|
|
||||||
>
|
|
||||||
<h1 class="title text-2xl title-primary-500">
|
|
||||||
<%= gettext("Loading...") %>
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
<i class="fas fa-3x fa-spin fa-gear"></i>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div
|
<div
|
||||||
id="disconnect"
|
id="disconnect"
|
||||||
class="fixed opacity-0 top-0 left-0 w-screen h-screen bg-white z-50
|
class="z-50 fixed opacity-0 bottom-12 right-12 px-8 py-4 w-max h-max
|
||||||
flex flex-col justify-center items-center space-y-4
|
border border-primary-200 shadow-lg rounded-lg bg-white
|
||||||
transition-opacity ease-in-out duration-500"
|
flex justify-center items-center space-x-4
|
||||||
|
transition-opacity ease-in-out duration-500 delay-[2000ms]"
|
||||||
>
|
>
|
||||||
<h1 class="title text-2xl title-primary-500">
|
<i class="fas fa-fade text-md fa-satellite-dish"></i>
|
||||||
|
|
||||||
|
<h1 class="title text-md title-primary-500">
|
||||||
<%= gettext("Reconnecting...") %>
|
<%= gettext("Reconnecting...") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<i class="fas fa-3x fa-fade fa-satellite-dish"></i>
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
type="image/jpg"
|
type="image/jpg"
|
||||||
href={Routes.static_path(@conn, "/images/cannery.svg")}
|
href={Routes.static_path(@conn, "/images/cannery.svg")}
|
||||||
/>
|
/>
|
||||||
<.live_title suffix=" | Cannery">
|
<.live_title suffix={" | #{gettext("Cannery")}"}>
|
||||||
<%= assigns[:page_title] || "Cannery" %>
|
<%= assigns[:page_title] || gettext("Cannery") %>
|
||||||
</.live_title>
|
</.live_title>
|
||||||
<link phx-track-static rel="stylesheet" href={Routes.static_path(@conn, "/css/app.css")} />
|
<link phx-track-static rel="stylesheet" href={Routes.static_path(@conn, "/css/app.css")} />
|
||||||
<script
|
<script
|
||||||
@ -23,7 +23,7 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="m-0 p-0 w-full h-full bg-white">
|
<body class="m-0 p-0 w-full h-full subpixel-antialiased">
|
||||||
<%= @inner_content %>
|
<%= @inner_content %>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,31 +1,32 @@
|
|||||||
<div class="mx-auto mb-8 max-w-2xl flex flex-col justify-center items-center space-y-4">
|
<div class="mx-auto pb-8 max-w-2xl flex flex-col justify-center items-center space-y-4">
|
||||||
<h1 class="title text-primary-600 text-xl">
|
<h1 class="title text-primary-600 text-xl">
|
||||||
<%= dgettext("actions", "Resend confirmation instructions") %>
|
<%= dgettext("actions", "Resend confirmation instructions") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<%= form_for :user,
|
<.form
|
||||||
Routes.user_confirmation_path(@conn, :create),
|
:let={f}
|
||||||
[
|
for={:user}
|
||||||
class:
|
action={Routes.user_confirmation_path(@conn, :create)}
|
||||||
"flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
||||||
],
|
>
|
||||||
fn f -> %>
|
|
||||||
<%= label(f, :email, class: "title text-lg text-primary-600") %>
|
<%= label(f, :email, class: "title text-lg text-primary-600") %>
|
||||||
<%= email_input(f, :email, required: true, class: "input input-primary col-span-2") %>
|
<%= email_input(f, :email, required: true, class: "input input-primary col-span-2") %>
|
||||||
|
|
||||||
<%= submit(dgettext("actions", "Resend confirmation instructions"),
|
<%= submit(dgettext("actions", "Resend confirmation instructions"),
|
||||||
class: "mx-auto btn btn-primary col-span-3"
|
class: "mx-auto btn btn-primary col-span-3"
|
||||||
) %>
|
) %>
|
||||||
<% end %>
|
</.form>
|
||||||
|
|
||||||
<hr class="hr" />
|
<hr class="hr" />
|
||||||
|
|
||||||
<div class="flex flex-row justify-center items-center space-x-4">
|
<div class="flex flex-row justify-center items-center space-x-4">
|
||||||
<%= if Accounts.allow_registration?() do %>
|
<.link
|
||||||
<.link href={Routes.user_registration_path(@conn, :new)} class="btn btn-primary">
|
:if={Accounts.allow_registration?()}
|
||||||
<%= dgettext("actions", "Register") %>
|
href={Routes.user_registration_path(@conn, :new)}
|
||||||
</.link>
|
class="btn btn-primary"
|
||||||
<% end %>
|
>
|
||||||
|
<%= dgettext("actions", "Register") %>
|
||||||
|
</.link>
|
||||||
<.link href={Routes.user_session_path(@conn, :new)} class="btn btn-primary">
|
<.link href={Routes.user_session_path(@conn, :new)} class="btn btn-primary">
|
||||||
<%= dgettext("actions", "Log in") %>
|
<%= dgettext("actions", "Log in") %>
|
||||||
</.link>
|
</.link>
|
||||||
|
@ -1,25 +1,20 @@
|
|||||||
<div class="mx-auto mb-8 max-w-2xl flex flex-col justify-center items-center space-y-4">
|
<div class="mx-auto pb-8 max-w-2xl flex flex-col justify-center items-center space-y-4">
|
||||||
<h1 class="title text-primary-600 text-xl">
|
<h1 class="title text-primary-600 text-xl">
|
||||||
<%= dgettext("actions", "Register") %>
|
<%= dgettext("actions", "Register") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<%= form_for @changeset,
|
<.form
|
||||||
Routes.user_registration_path(@conn, :create),
|
:let={f}
|
||||||
[
|
for={@changeset}
|
||||||
class:
|
action={Routes.user_registration_path(@conn, :create)}
|
||||||
"flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
||||||
],
|
>
|
||||||
fn f -> %>
|
<p :if={@changeset.action && not @changeset.valid?()} class="alert alert-danger col-span-3">
|
||||||
<%= if @changeset.action && not @changeset.valid? do %>
|
<%= dgettext("errors", "Oops, something went wrong! Please check the errors below.") %>
|
||||||
<div class="alert alert-danger col-span-3">
|
</p>
|
||||||
<p>
|
|
||||||
<%= dgettext("errors", "Oops, something went wrong! Please check the errors below.") %>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= if @invite do %>
|
<%= if @invite_token do %>
|
||||||
<%= hidden_input(f, :invite_token, value: @invite.token) %>
|
<%= hidden_input(f, :invite_token, value: @invite_token) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= label(f, :email, class: "title text-lg text-primary-600") %>
|
<%= label(f, :email, class: "title text-lg text-primary-600") %>
|
||||||
@ -34,13 +29,13 @@
|
|||||||
<%= select(
|
<%= select(
|
||||||
f,
|
f,
|
||||||
:locale,
|
:locale,
|
||||||
[{gettext("English"), "en_US"}, {gettext("German"), "de"}, {gettext("French"), "fr"}],
|
[{gettext("English"), "en_US"}],
|
||||||
class: "input input-primary col-span-2"
|
class: "input input-primary col-span-2"
|
||||||
) %>
|
) %>
|
||||||
<%= error_tag(f, :locale) %>
|
<%= error_tag(f, :locale) %>
|
||||||
|
|
||||||
<%= submit(dgettext("actions", "Register"), class: "mx-auto btn btn-primary col-span-3") %>
|
<%= submit(dgettext("actions", "Register"), class: "mx-auto btn btn-primary col-span-3") %>
|
||||||
<% end %>
|
</.form>
|
||||||
|
|
||||||
<hr class="hr" />
|
<hr class="hr" />
|
||||||
|
|
||||||
|
@ -1,22 +1,19 @@
|
|||||||
<div class="mx-auto mb-8 max-w-2xl flex flex-col justify-center items-center space-y-4">
|
<div class="mx-auto pb-8 max-w-2xl flex flex-col justify-center items-center space-y-4">
|
||||||
<h1 class="title text-primary-600 text-xl">
|
<h1 class="title text-primary-600 text-xl">
|
||||||
<%= dgettext("actions", "Reset password") %>
|
<%= dgettext("actions", "Reset password") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<%= form_for @changeset,
|
<.form
|
||||||
Routes.user_reset_password_path(@conn, :update, @token),
|
:let={f}
|
||||||
[
|
for={@changeset}
|
||||||
class:
|
action={Routes.user_reset_password_path(@conn, :update, @token)}
|
||||||
"flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
||||||
],
|
>
|
||||||
fn f -> %>
|
<div :if={@changeset.action && not @changeset.valid?()} class="alert alert-danger col-span-3">
|
||||||
<%= if @changeset.action && not @changeset.valid? do %>
|
<p>
|
||||||
<div class="alert alert-danger col-span-3">
|
<%= dgettext("errors", "Oops, something went wrong! Please check the errors below.") %>
|
||||||
<p>
|
</p>
|
||||||
<%= dgettext("errors", "Oops, something went wrong! Please check the errors below.") %>
|
</div>
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= label(f, :password, "New password", class: "title text-lg text-primary-600") %>
|
<%= label(f, :password, "New password", class: "title text-lg text-primary-600") %>
|
||||||
<%= password_input(f, :password, required: true, class: "input input-primary col-span-2") %>
|
<%= password_input(f, :password, required: true, class: "input input-primary col-span-2") %>
|
||||||
@ -34,16 +31,18 @@
|
|||||||
<%= submit(dgettext("actions", "Reset password"),
|
<%= submit(dgettext("actions", "Reset password"),
|
||||||
class: "mx-auto btn btn-primary col-span-3"
|
class: "mx-auto btn btn-primary col-span-3"
|
||||||
) %>
|
) %>
|
||||||
<% end %>
|
</.form>
|
||||||
|
|
||||||
<hr class="hr" />
|
<hr class="hr" />
|
||||||
|
|
||||||
<div class="flex flex-row justify-center items-center space-x-4">
|
<div class="flex flex-row justify-center items-center space-x-4">
|
||||||
<%= if Accounts.allow_registration?() do %>
|
<.link
|
||||||
<.link href={Routes.user_registration_path(@conn, :new)} class="btn btn-primary">
|
:if={Accounts.allow_registration?()}
|
||||||
<%= dgettext("actions", "Register") %>
|
href={Routes.user_registration_path(@conn, :new)}
|
||||||
</.link>
|
class="btn btn-primary"
|
||||||
<% end %>
|
>
|
||||||
|
<%= dgettext("actions", "Register") %>
|
||||||
|
</.link>
|
||||||
<.link href={Routes.user_session_path(@conn, :new)} class="btn btn-primary">
|
<.link href={Routes.user_session_path(@conn, :new)} class="btn btn-primary">
|
||||||
<%= dgettext("actions", "Log in") %>
|
<%= dgettext("actions", "Log in") %>
|
||||||
</.link>
|
</.link>
|
||||||
|
@ -1,31 +1,32 @@
|
|||||||
<div class="mx-auto mb-8 max-w-2xl flex flex-col justify-center items-center space-y-4">
|
<div class="mx-auto pb-8 max-w-2xl flex flex-col justify-center items-center space-y-4">
|
||||||
<h1 class="title text-primary-600 text-xl">
|
<h1 class="title text-primary-600 text-xl">
|
||||||
<%= dgettext("actions", "Forgot your password?") %>
|
<%= dgettext("actions", "Forgot your password?") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<%= form_for :user,
|
<.form
|
||||||
Routes.user_reset_password_path(@conn, :create),
|
:let={f}
|
||||||
[
|
for={:user}
|
||||||
class:
|
action={Routes.user_reset_password_path(@conn, :create)}
|
||||||
"flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
||||||
],
|
>
|
||||||
fn f -> %>
|
|
||||||
<%= label(f, :email, class: "title text-lg text-primary-600") %>
|
<%= label(f, :email, class: "title text-lg text-primary-600") %>
|
||||||
<%= email_input(f, :email, required: true, class: "input input-primary col-span-2") %>
|
<%= email_input(f, :email, required: true, class: "input input-primary col-span-2") %>
|
||||||
|
|
||||||
<%= submit(dgettext("actions", "Send instructions to reset password"),
|
<%= submit(dgettext("actions", "Send instructions to reset password"),
|
||||||
class: "mx-auto btn btn-primary col-span-3"
|
class: "mx-auto btn btn-primary col-span-3"
|
||||||
) %>
|
) %>
|
||||||
<% end %>
|
</.form>
|
||||||
|
|
||||||
<hr class="hr" />
|
<hr class="hr" />
|
||||||
|
|
||||||
<div class="flex flex-row justify-center items-center space-x-4">
|
<div class="flex flex-row justify-center items-center space-x-4">
|
||||||
<%= if Accounts.allow_registration?() do %>
|
<.link
|
||||||
<.link href={Routes.user_registration_path(@conn, :new)} class="btn btn-primary">
|
:if={Accounts.allow_registration?()}
|
||||||
<%= dgettext("actions", "Register") %>
|
href={Routes.user_registration_path(@conn, :new)}
|
||||||
</.link>
|
class="btn btn-primary"
|
||||||
<% end %>
|
>
|
||||||
|
<%= dgettext("actions", "Register") %>
|
||||||
|
</.link>
|
||||||
<.link href={Routes.user_session_path(@conn, :new)} class="btn btn-primary">
|
<.link href={Routes.user_session_path(@conn, :new)} class="btn btn-primary">
|
||||||
<%= dgettext("actions", "Log in") %>
|
<%= dgettext("actions", "Log in") %>
|
||||||
</.link>
|
</.link>
|
||||||
|
@ -1,23 +1,20 @@
|
|||||||
<div class="mx-auto mb-8 max-w-2xl flex flex-col justify-center items-center space-y-4">
|
<div class="mx-auto pb-8 max-w-2xl flex flex-col justify-center items-center space-y-4">
|
||||||
<h1 class="title text-primary-600 text-xl">
|
<h1 class="title text-primary-600 text-xl">
|
||||||
<%= dgettext("actions", "Log in") %>
|
<%= dgettext("actions", "Log in") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<%= form_for @conn,
|
<.form
|
||||||
Routes.user_session_path(@conn, :create),
|
:let={f}
|
||||||
[
|
for={@conn}
|
||||||
as: :user,
|
action={Routes.user_session_path(@conn, :create)}
|
||||||
class:
|
as="user"
|
||||||
"flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
||||||
],
|
>
|
||||||
fn f -> %>
|
<div :if={@error_message} class="alert alert-danger col-span-3">
|
||||||
<%= if @error_message do %>
|
<p>
|
||||||
<div class="alert alert-danger col-span-3">
|
<%= @error_message %>
|
||||||
<p>
|
</p>
|
||||||
<%= @error_message %>
|
</div>
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= label(f, :email, class: "title text-lg text-primary-600") %>
|
<%= label(f, :email, class: "title text-lg text-primary-600") %>
|
||||||
<%= email_input(f, :email, required: true, class: "input input-primary col-span-2") %>
|
<%= email_input(f, :email, required: true, class: "input input-primary col-span-2") %>
|
||||||
@ -31,16 +28,18 @@
|
|||||||
<%= checkbox(f, :remember_me, class: "checkbox col-span-2") %>
|
<%= checkbox(f, :remember_me, class: "checkbox col-span-2") %>
|
||||||
|
|
||||||
<%= submit(dgettext("actions", "Log in"), class: "mx-auto btn btn-primary col-span-3") %>
|
<%= submit(dgettext("actions", "Log in"), class: "mx-auto btn btn-primary col-span-3") %>
|
||||||
<% end %>
|
</.form>
|
||||||
|
|
||||||
<hr class="hr" />
|
<hr class="hr" />
|
||||||
|
|
||||||
<div class="flex flex-row justify-center items-center space-x-4">
|
<div class="flex flex-row justify-center items-center space-x-4">
|
||||||
<%= if Accounts.allow_registration?() do %>
|
<.link
|
||||||
<.link href={Routes.user_registration_path(@conn, :new)} class="btn btn-primary">
|
:if={Accounts.allow_registration?()}
|
||||||
<%= dgettext("actions", "Register") %>
|
href={Routes.user_registration_path(@conn, :new)}
|
||||||
</.link>
|
class="btn btn-primary"
|
||||||
<% end %>
|
>
|
||||||
|
<%= dgettext("actions", "Register") %>
|
||||||
|
</.link>
|
||||||
<.link href={Routes.user_reset_password_path(@conn, :new)} class="btn btn-primary">
|
<.link href={Routes.user_reset_password_path(@conn, :new)} class="btn btn-primary">
|
||||||
<%= dgettext("actions", "Forgot your password?") %>
|
<%= dgettext("actions", "Forgot your password?") %>
|
||||||
</.link>
|
</.link>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div class="mx-auto mb-8 max-w-2xl flex flex-col justify-center items-center text-center space-y-4">
|
<div class="mx-auto pb-8 max-w-2xl flex flex-col justify-center items-center text-center space-y-4">
|
||||||
<h1 class="pb-4 title text-primary-600 text-xl">
|
<h1 class="pb-4 title text-primary-600 text-xl">
|
||||||
<%= gettext("Settings") %>
|
<%= gettext("Settings") %>
|
||||||
</h1>
|
</h1>
|
||||||
@ -15,13 +15,14 @@
|
|||||||
<%= dgettext("actions", "Change email") %>
|
<%= dgettext("actions", "Change email") %>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<%= if @email_changeset.action && not @email_changeset.valid? do %>
|
<div
|
||||||
<div class="alert alert-danger col-span-3">
|
:if={@email_changeset.action && not @email_changeset.valid?()}
|
||||||
<p>
|
class="alert alert-danger col-span-3"
|
||||||
<%= dgettext("errors", "Oops, something went wrong! Please check the errors below.") %>
|
>
|
||||||
</p>
|
<p>
|
||||||
</div>
|
<%= dgettext("errors", "Oops, something went wrong! Please check the errors below.") %>
|
||||||
<% end %>
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<%= hidden_input(f, :action, name: "action", value: "update_email") %>
|
<%= hidden_input(f, :action, name: "action", value: "update_email") %>
|
||||||
|
|
||||||
@ -58,13 +59,14 @@
|
|||||||
<%= dgettext("actions", "Change password") %>
|
<%= dgettext("actions", "Change password") %>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<%= if @password_changeset.action && not @password_changeset.valid? do %>
|
<div
|
||||||
<div class="alert alert-danger col-span-3">
|
:if={@password_changeset.action && not @password_changeset.valid?()}
|
||||||
<p>
|
class="alert alert-danger col-span-3"
|
||||||
<%= dgettext("errors", "Oops, something went wrong! Please check the errors below.") %>
|
>
|
||||||
</p>
|
<p>
|
||||||
</div>
|
<%= dgettext("errors", "Oops, something went wrong! Please check the errors below.") %>
|
||||||
<% end %>
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<%= hidden_input(f, :action, name: "action", value: "update_password") %>
|
<%= hidden_input(f, :action, name: "action", value: "update_password") %>
|
||||||
|
|
||||||
@ -113,13 +115,14 @@
|
|||||||
<%= dgettext("actions", "Change Language") %>
|
<%= dgettext("actions", "Change Language") %>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<%= if @locale_changeset.action && not @locale_changeset.valid? do %>
|
<div
|
||||||
<div class="alert alert-danger">
|
:if={@locale_changeset.action && not @locale_changeset.valid?()}
|
||||||
<p>
|
class="alert alert-danger"
|
||||||
<%= dgettext("errors", "Oops, something went wrong! Please check the errors below.") %>
|
>
|
||||||
</p>
|
<p>
|
||||||
</div>
|
<%= dgettext("errors", "Oops, something went wrong! Please check the errors below.") %>
|
||||||
<% end %>
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<%= hidden_input(f, :action, name: "action", value: "update_locale") %>
|
<%= hidden_input(f, :action, name: "action", value: "update_locale") %>
|
||||||
|
|
||||||
|
@ -17,11 +17,13 @@ defmodule CanneryWeb.ErrorHelpers do
|
|||||||
assigns = %{extra_class: extra_class, form: form, field: field}
|
assigns = %{extra_class: extra_class, form: form, field: field}
|
||||||
|
|
||||||
~H"""
|
~H"""
|
||||||
<%= for error <- Keyword.get_values(@form.errors, @field) do %>
|
<span
|
||||||
<span class={"invalid-feedback #{@extra_class}"} phx-feedback-for={input_name(@form, @field)}>
|
:for={error <- Keyword.get_values(@form.errors, @field)}
|
||||||
<%= translate_error(error) %>
|
class={["invalid-feedback", @extra_class]}
|
||||||
</span>
|
phx-feedback-for={input_name(@form, @field)}
|
||||||
<% end %>
|
>
|
||||||
|
<%= translate_error(error) %>
|
||||||
|
</span>
|
||||||
"""
|
"""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -7,11 +7,11 @@ defmodule CanneryWeb.LayoutView do
|
|||||||
# so we instruct Elixir to not warn if the dashboard route is missing.
|
# so we instruct Elixir to not warn if the dashboard route is missing.
|
||||||
@compile {:no_warn_undefined, {Routes, :live_dashboard_path, 2}}
|
@compile {:no_warn_undefined, {Routes, :live_dashboard_path, 2}}
|
||||||
|
|
||||||
def get_title(conn) do
|
def get_title(%{assigns: %{title: title}}) when title not in [nil, ""] do
|
||||||
if conn.assigns |> Map.has_key?(:title) do
|
gettext("Cannery | %{title}", title: title)
|
||||||
"Cannery | #{conn.assigns.title}"
|
end
|
||||||
else
|
|
||||||
"Cannery"
|
def get_title(_conn) do
|
||||||
end
|
gettext("Cannery")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -5,63 +5,59 @@ defmodule CanneryWeb.ViewHelpers do
|
|||||||
:view`
|
:view`
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import Phoenix.Component
|
use Phoenix.Component
|
||||||
|
|
||||||
@id_length 16
|
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Returns a <time> element that renders the naivedatetime in the user's local
|
Phoenix.Component for a <time> element that renders the naivedatetime in the
|
||||||
timezone with Alpine.js
|
user's local timezone with Alpine.js
|
||||||
"""
|
"""
|
||||||
@spec display_datetime(NaiveDateTime.t() | nil) :: Phoenix.LiveView.Rendered.t()
|
|
||||||
def display_datetime(nil), do: ""
|
|
||||||
|
|
||||||
def display_datetime(datetime) do
|
attr :datetime, :any, required: true, doc: "A `DateTime` struct or nil"
|
||||||
assigns = %{
|
|
||||||
id: :crypto.strong_rand_bytes(@id_length) |> Base.url_encode64(),
|
|
||||||
datetime: datetime |> DateTime.from_naive!("Etc/UTC") |> DateTime.to_iso8601(:extended)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
def datetime(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<time
|
<time
|
||||||
id={@id}
|
:if={@datetime}
|
||||||
datetime={@datetime}
|
datetime={cast_datetime(@datetime)}
|
||||||
x-data={"{
|
x-data={"{
|
||||||
date:
|
datetime:
|
||||||
Intl.DateTimeFormat([], {dateStyle: 'short', timeStyle: 'long'})
|
Intl.DateTimeFormat([], {dateStyle: 'short', timeStyle: 'long'})
|
||||||
.format(new Date(\"#{@datetime}\"))
|
.format(new Date(\"#{cast_datetime(@datetime)}\"))
|
||||||
}"}
|
}"}
|
||||||
x-text="date"
|
x-text="datetime"
|
||||||
>
|
>
|
||||||
<%= @datetime %>
|
<%= cast_datetime(@datetime) %>
|
||||||
</time>
|
</time>
|
||||||
"""
|
"""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@spec cast_datetime(NaiveDateTime.t() | nil) :: String.t()
|
||||||
|
defp cast_datetime(%NaiveDateTime{} = datetime) do
|
||||||
|
datetime |> DateTime.from_naive!("Etc/UTC") |> DateTime.to_iso8601(:extended)
|
||||||
|
end
|
||||||
|
|
||||||
|
defp cast_datetime(_datetime), do: ""
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Returns a <date> element that renders the Date in the user's local
|
Phoenix.Component for a <date> element that renders the Date in the user's
|
||||||
timezone with Alpine.js
|
local timezone with Alpine.js
|
||||||
"""
|
"""
|
||||||
@spec display_date(Date.t() | nil) :: Phoenix.LiveView.Rendered.t()
|
|
||||||
def display_date(nil), do: ""
|
|
||||||
|
|
||||||
def display_date(date) do
|
attr :date, :any, required: true, doc: "A `Date` struct or nil"
|
||||||
assigns = %{
|
|
||||||
id: :crypto.strong_rand_bytes(@id_length) |> Base.url_encode64(),
|
|
||||||
date: date |> Date.to_iso8601(:extended)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
def date(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<time
|
<time
|
||||||
id={@id}
|
:if={@date}
|
||||||
datetime={@date}
|
datetime={@date |> Date.to_iso8601(:extended)}
|
||||||
x-data={"{
|
x-data={"{
|
||||||
date:
|
date:
|
||||||
Intl.DateTimeFormat([], {timeZone: 'Etc/UTC', dateStyle: 'short'}).format(new Date(\"#{@date}\"))
|
Intl.DateTimeFormat([], {timeZone: 'Etc/UTC', dateStyle: 'short'})
|
||||||
|
.format(new Date(\"#{@date |> Date.to_iso8601(:extended)}\"))
|
||||||
}"}
|
}"}
|
||||||
x-text="date"
|
x-text="date"
|
||||||
>
|
>
|
||||||
<%= @date %>
|
<%= @date |> Date.to_iso8601(:extended) %>
|
||||||
</time>
|
</time>
|
||||||
"""
|
"""
|
||||||
end
|
end
|
||||||
@ -70,12 +66,44 @@ defmodule CanneryWeb.ViewHelpers do
|
|||||||
Displays emoji as text emoji if SHIBAO_MODE is set to true :)
|
Displays emoji as text emoji if SHIBAO_MODE is set to true :)
|
||||||
"""
|
"""
|
||||||
@spec display_emoji(String.t()) :: String.t()
|
@spec display_emoji(String.t()) :: String.t()
|
||||||
def display_emoji("😔"),
|
def display_emoji("😔") do
|
||||||
do:
|
if Application.get_env(:cannery, CanneryWeb.ViewHelpers)[:shibao_mode], do: "q_q", else: "😔"
|
||||||
if(Application.get_env(:cannery, CanneryWeb.ViewHelpers)[:shibao_mode], do: "q_q", else: "😔")
|
end
|
||||||
|
|
||||||
def display_emoji(other_emoji), do: other_emoji
|
def display_emoji(other_emoji), do: other_emoji
|
||||||
|
|
||||||
|
@doc """
|
||||||
|
Displays content in a QR code as a base64 encoded PNG
|
||||||
|
"""
|
||||||
|
@spec qr_code_image(String.t()) :: String.t()
|
||||||
|
@spec qr_code_image(String.t(), width :: non_neg_integer()) :: String.t()
|
||||||
|
def qr_code_image(content, width \\ 384) do
|
||||||
|
img_data =
|
||||||
|
content
|
||||||
|
|> EQRCode.encode()
|
||||||
|
|> EQRCode.png(width: width)
|
||||||
|
|> Base.encode64()
|
||||||
|
|
||||||
|
"data:image/png;base64," <> img_data
|
||||||
|
end
|
||||||
|
|
||||||
|
@doc """
|
||||||
|
Creates a downloadable QR Code element
|
||||||
|
"""
|
||||||
|
|
||||||
|
attr :content, :string, required: true
|
||||||
|
attr :filename, :string, default: "qrcode", doc: "filename without .png extension"
|
||||||
|
attr :image_class, :string, default: "w-64 h-max"
|
||||||
|
attr :width, :integer, default: 384, doc: "width of png to generate"
|
||||||
|
|
||||||
|
def qr_code(assigns) do
|
||||||
|
~H"""
|
||||||
|
<a href={qr_code_image(@content)} download={@filename <> ".png"}>
|
||||||
|
<img class={@image_class} alt={@filename} src={qr_code_image(@content)} />
|
||||||
|
</a>
|
||||||
|
"""
|
||||||
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Get a random color in `#ffffff` hex format
|
Get a random color in `#ffffff` hex format
|
||||||
|
|
||||||
|
7
mix.exs
7
mix.exs
@ -4,7 +4,7 @@ defmodule Cannery.MixProject do
|
|||||||
def project do
|
def project do
|
||||||
[
|
[
|
||||||
app: :cannery,
|
app: :cannery,
|
||||||
version: "0.8.0",
|
version: "0.8.2",
|
||||||
elixir: "1.14.1",
|
elixir: "1.14.1",
|
||||||
elixirc_paths: elixirc_paths(Mix.env()),
|
elixirc_paths: elixirc_paths(Mix.env()),
|
||||||
compilers: Mix.compilers(),
|
compilers: Mix.compilers(),
|
||||||
@ -13,7 +13,7 @@ defmodule Cannery.MixProject do
|
|||||||
deps: deps(),
|
deps: deps(),
|
||||||
dialyzer: [plt_add_apps: [:ex_unit]],
|
dialyzer: [plt_add_apps: [:ex_unit]],
|
||||||
consolidate_protocols: Mix.env() not in [:dev, :test],
|
consolidate_protocols: Mix.env() not in [:dev, :test],
|
||||||
preferred_cli_env: [test: :test, "test.all": :test],
|
preferred_cli_env: ["test.all": :test],
|
||||||
# ExDoc
|
# ExDoc
|
||||||
name: "Cannery",
|
name: "Cannery",
|
||||||
source_url: "https://gitea.bubbletea.dev/shibao/cannery",
|
source_url: "https://gitea.bubbletea.dev/shibao/cannery",
|
||||||
@ -34,7 +34,7 @@ defmodule Cannery.MixProject do
|
|||||||
def application do
|
def application do
|
||||||
[
|
[
|
||||||
mod: {Cannery.Application, []},
|
mod: {Cannery.Application, []},
|
||||||
extra_applications: [:logger, :runtime_tools, :os_mon]
|
extra_applications: [:logger, :runtime_tools, :os_mon, :crypto]
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -70,6 +70,7 @@ defmodule Cannery.MixProject do
|
|||||||
{:jason, "~> 1.2"},
|
{:jason, "~> 1.2"},
|
||||||
{:plug_cowboy, "~> 2.5"},
|
{:plug_cowboy, "~> 2.5"},
|
||||||
{:ecto_psql_extras, "~> 0.6"},
|
{:ecto_psql_extras, "~> 0.6"},
|
||||||
|
{:eqrcode, "~> 0.1.10"},
|
||||||
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
|
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
|
||||||
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false}
|
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false}
|
||||||
]
|
]
|
||||||
|
33
mix.lock
33
mix.lock
@ -1,44 +1,42 @@
|
|||||||
%{
|
%{
|
||||||
"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"},
|
"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"},
|
"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"},
|
"comeonin": {:hex, :comeonin, "5.3.3", "2c564dac95a35650e9b6acfe6d2952083d8a08e4a89b93a481acb552b325892e", [:mix], [], "hexpm", "3e38c9c2cb080828116597ca8807bb482618a315bfafd98c90bc22a821cc84df"},
|
||||||
"connection": {:hex, :connection, "1.1.0", "ff2a49c4b75b6fb3e674bfc5536451607270aac754ffd1bdfe175abe4a6d7a68", [:mix], [], "hexpm", "722c1eb0a418fbe91ba7bd59a47e28008a189d47e37e0e7bb85585a016b2869c"},
|
"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": {: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"},
|
"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"},
|
"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"},
|
"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"},
|
"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"},
|
"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"},
|
"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": {: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.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_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.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"},
|
"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.6.3", "bc07d53221216838d79e03a8019d0839786703129599e9619f4ab74c8c096eac", [:mix], [], "hexpm", "f5cbd651c5678bcaabdbb7857658ee106b12509cd976c2c2fca99688e1daf716"},
|
"elixir_make": {:hex, :elixir_make, "0.7.3", "c37fdae1b52d2cc51069713a58c2314877c1ad40800a57efb213f77b078a460d", [:mix], [{:castore, "~> 0.1", [hex: :castore, repo: "hexpm", optional: true]}], "hexpm", "24ada3e3996adbed1fa024ca14995ef2ba3d0d17b678b0f3f2b1f66e6ce2b274"},
|
||||||
|
"eqrcode": {:hex, :eqrcode, "0.1.10", "6294fece9d68ad64eef1c3c92cf111cfd6469f4fbf230a2d4cc905a682178f3f", [:mix], [], "hexpm", "da30e373c36a0fd37ab6f58664b16029919896d6c45a68a95cc4d713e81076f1"},
|
||||||
"erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"},
|
"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.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"},
|
||||||
"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"},
|
"expo": {:hex, :expo, "0.3.0", "13127c1d5f653b2927f2616a4c9ace5ae372efd67c7c2693b87fd0fdc30c6feb", [:mix], [], "hexpm", "fb3cd4bf012a77bc1608915497dae2ff684a06f0fa633c7afa90c4d72b881823"},
|
||||||
"file_system": {:hex, :file_system, "0.2.10", "fb082005a9cd1711c05b5248710f8826b02d7d1784e7c3451f9c1231d4fc162d", [:mix], [], "hexpm", "41195edbfb562a593726eda3b3e8b103a309b733ad25f3d642ba49696bf715dc"},
|
"file_system": {:hex, :file_system, "0.2.10", "fb082005a9cd1711c05b5248710f8826b02d7d1784e7c3451f9c1231d4fc162d", [:mix], [], "hexpm", "41195edbfb562a593726eda3b3e8b103a309b733ad25f3d642ba49696bf715dc"},
|
||||||
"floki": {:hex, :floki, "0.34.0", "002d0cc194b48794d74711731db004fafeb328fe676976f160685262d43706a8", [:mix], [], "hexpm", "9c3a9f43f40dde00332a589bd9d389b90c1f518aef500364d00636acc5ebc99c"},
|
"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"},
|
"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"},
|
"gettext": {:hex, :gettext, "0.22.0", "a25d71ec21b1848957d9207b81fd61cb25161688d282d58bdafef74c2270bdc4", [:mix], [{:expo, "~> 0.3.0", [hex: :expo, repo: "hexpm", optional: false]}], "hexpm", "cb0675141576f73720c8e49b4f0fd3f2c69f0cd8c218202724d4aebab8c70ace"},
|
||||||
"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"},
|
|
||||||
"jason": {:hex, :jason, "1.4.0", "e855647bc964a44e2f67df589ccf49105ae039d4179db7f6271dfd3843dc27e6", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "79a3791085b2a0f743ca04cec0f7be26443738779d09302e01318f97bdb82121"},
|
"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": {: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_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"},
|
"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"},
|
"mime": {:hex, :mime, "2.0.3", "3676436d3d1f7b81b5a2d2bd8405f412c677558c81b1c92be58c00562bb59095", [:mix], [], "hexpm", "27a30bf0db44d25eecba73755acf4068cbfe26a4372f9eb3e4ea3a45956bff6b"},
|
||||||
"nimble_parsec": {:hex, :nimble_parsec, "1.2.3", "244836e6e3f1200c7f30cb56733fd808744eca61fd182f731eac4af635cc6d0b", [:mix], [], "hexpm", "c8d789e39b9131acf7b99291e93dae60ab48ef14a7ee9d58c6964f59efb570b0"},
|
"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": {: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_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_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_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_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 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_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_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_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"},
|
"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 +45,9 @@
|
|||||||
"plug_crypto": {:hex, :plug_crypto, "1.2.3", "8f77d13aeb32bfd9e654cb68f0af517b371fb34c56c9f2b58fe3df1235c1251a", [:mix], [], "hexpm", "b5672099c6ad5c202c45f5a403f21a3411247f164e4a8fab056e5cd8a290f4a2"},
|
"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"},
|
"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"},
|
"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.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"},
|
||||||
"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"},
|
|
||||||
"table_rex": {:hex, :table_rex, "3.1.1", "0c67164d1714b5e806d5067c1e96ff098ba7ae79413cc075973e17c38a587caa", [:mix], [], "hexpm", "678a23aba4d670419c23c17790f9dcd635a4a89022040df7d5d772cb21012490"},
|
"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_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"},
|
"telemetry_poller": {:hex, :telemetry_poller, "1.0.0", "db91bb424e07f2bb6e73926fcafbfcbcb295f0193e0a00e825e589a0a47e8453", [:rebar3], [{:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "b3a24eafd66c3f42da30fc3ca7dda1e9d546c12250a2d60d7b81d264fbec4f6e"},
|
||||||
}
|
}
|
||||||
|
@ -12,12 +12,12 @@ msgstr ""
|
|||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.ex:54
|
#: 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.ex:62
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:40
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:41
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Add Ammo"
|
msgid "Add Ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:36
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:37
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Add your first box!"
|
msgid "Add your first box!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -33,13 +33,13 @@ msgid "Add your first type!"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:15
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:15
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:44
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:45
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change email"
|
msgid "Change email"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:58
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:59
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:99
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:101
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change password"
|
msgid "Change password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -49,14 +49,14 @@ msgstr ""
|
|||||||
msgid "Create Invite"
|
msgid "Create Invite"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:162
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:165
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Delete User"
|
msgid "Delete User"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:52
|
#: lib/cannery_web/templates/user_registration/new.html.heex:47
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:3
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:45
|
#: lib/cannery_web/templates/user_session/new.html.heex:44
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Forgot your password?"
|
msgid "Forgot your password?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -66,13 +66,13 @@ msgstr ""
|
|||||||
msgid "Invite someone new!"
|
msgid "Invite someone new!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/topbar.ex:137
|
#: lib/cannery_web/components/topbar.ex:135
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:30
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:31
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:49
|
#: lib/cannery_web/templates/user_registration/new.html.heex:44
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:48
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:47
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:30
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:31
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:3
|
#: lib/cannery_web/templates/user_session/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:33
|
#: lib/cannery_web/templates/user_session/new.html.heex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Log in"
|
msgid "Log in"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -97,51 +97,51 @@ msgstr ""
|
|||||||
msgid "New Tag"
|
msgid "New Tag"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/topbar.ex:128
|
#: lib/cannery_web/components/topbar.ex:127
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:26
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:28
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:3
|
#: lib/cannery_web/templates/user_registration/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:42
|
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:44
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:44
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:26
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:28
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:41
|
#: lib/cannery_web/templates/user_session/new.html.heex:41
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Register"
|
msgid "Register"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:3
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:16
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:15
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Resend confirmation instructions"
|
msgid "Resend confirmation instructions"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:3
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:34
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:31
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Reset password"
|
msgid "Reset password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:53
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:54
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:81
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:82
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
#: lib/cannery_web/live/container_live/form_component.html.heex:51
|
||||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:31
|
#: lib/cannery_web/live/invite_live/form_component.html.heex:32
|
||||||
#: lib/cannery_web/live/range_live/form_component.html.heex:40
|
#: lib/cannery_web/live/range_live/form_component.html.heex:41
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:91
|
#: lib/cannery_web/live/tag_live/form_component.html.heex:37
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Save"
|
msgid "Save"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:16
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:15
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Send instructions to reset password"
|
msgid "Send instructions to reset password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:80
|
#: lib/cannery_web/live/container_live/show.html.heex:76
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Why not add one?"
|
msgid "Why not add one?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:53
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:50
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Add"
|
msgid "Add"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -156,9 +156,9 @@ msgstr ""
|
|||||||
msgid "Why not get some ready to shoot?"
|
msgid "Why not get some ready to shoot?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:100
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:101
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:39
|
#: lib/cannery_web/live/range_live/index.html.heex:38
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Record shots"
|
msgid "Record shots"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -178,27 +178,27 @@ msgstr ""
|
|||||||
msgid "Select"
|
msgid "Select"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:31
|
#: lib/cannery_web/live/invite_live/index.html.heex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:21
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:22
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "add a container first"
|
msgid "add a container first"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:75
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Create"
|
msgid "Create"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:113
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:115
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change Language"
|
msgid "Change Language"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:139
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:142
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change language"
|
msgid "Change language"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -208,44 +208,34 @@ msgstr ""
|
|||||||
msgid "View in Catalog"
|
msgid "View in Catalog"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:31
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:32
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "add an ammo type first"
|
msgid "add an ammo type first"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:60
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Disable"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:64
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Enable"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/components/move_ammo_group_component.ex:80
|
#: lib/cannery_web/components/move_ammo_group_component.ex:80
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Move ammo"
|
msgid "Move ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:80
|
#: lib/cannery_web/live/invite_live/index.html.heex:78
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Set Unlimited"
|
msgid "Set Unlimited"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:32
|
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Stage for range"
|
msgid "Stage for range"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
#: lib/cannery_web/live/range_live/index.html.heex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Unstage from range"
|
msgid "Unstage from range"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:153
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:156
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Export Data as JSON"
|
msgid "Export Data as JSON"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -25,12 +25,12 @@ msgstr ""
|
|||||||
## effect: edit them in PO (.po) files instead.
|
## effect: edit them in PO (.po) files instead.
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.ex:54
|
#: 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.ex:62
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:40
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:41
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Add Ammo"
|
msgid "Add Ammo"
|
||||||
msgstr "Munition hinzufügen"
|
msgstr "Munition hinzufügen"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:36
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:37
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Add your first box!"
|
msgid "Add your first box!"
|
||||||
msgstr "Fügen Sie ihre erste Box hinzu!"
|
msgstr "Fügen Sie ihre erste Box hinzu!"
|
||||||
@ -46,13 +46,13 @@ msgid "Add your first type!"
|
|||||||
msgstr "Fügen Sie ihre erste Munitionsart hinzu!"
|
msgstr "Fügen Sie ihre erste Munitionsart hinzu!"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:15
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:15
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:44
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:45
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change email"
|
msgid "Change email"
|
||||||
msgstr "Mailadresse ändern"
|
msgstr "Mailadresse ändern"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:58
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:59
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:99
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:101
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change password"
|
msgid "Change password"
|
||||||
msgstr "Passwort ändern"
|
msgstr "Passwort ändern"
|
||||||
@ -62,14 +62,14 @@ msgstr "Passwort ändern"
|
|||||||
msgid "Create Invite"
|
msgid "Create Invite"
|
||||||
msgstr "Einladung erstellen"
|
msgstr "Einladung erstellen"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:162
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:165
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Delete User"
|
msgid "Delete User"
|
||||||
msgstr "Benutzer löschen"
|
msgstr "Benutzer löschen"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:52
|
#: lib/cannery_web/templates/user_registration/new.html.heex:47
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:3
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:45
|
#: lib/cannery_web/templates/user_session/new.html.heex:44
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Forgot your password?"
|
msgid "Forgot your password?"
|
||||||
msgstr "Passwort vergessen?"
|
msgstr "Passwort vergessen?"
|
||||||
@ -79,13 +79,13 @@ msgstr "Passwort vergessen?"
|
|||||||
msgid "Invite someone new!"
|
msgid "Invite someone new!"
|
||||||
msgstr "Laden Sie jemanden ein!"
|
msgstr "Laden Sie jemanden ein!"
|
||||||
|
|
||||||
#: lib/cannery_web/components/topbar.ex:137
|
#: lib/cannery_web/components/topbar.ex:135
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:30
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:31
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:49
|
#: lib/cannery_web/templates/user_registration/new.html.heex:44
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:48
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:47
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:30
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:31
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:3
|
#: lib/cannery_web/templates/user_session/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:33
|
#: lib/cannery_web/templates/user_session/new.html.heex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Log in"
|
msgid "Log in"
|
||||||
msgstr "Einloggen"
|
msgstr "Einloggen"
|
||||||
@ -110,51 +110,51 @@ msgstr "Neuer Behälter"
|
|||||||
msgid "New Tag"
|
msgid "New Tag"
|
||||||
msgstr "Neuer Tag"
|
msgstr "Neuer Tag"
|
||||||
|
|
||||||
#: lib/cannery_web/components/topbar.ex:128
|
#: lib/cannery_web/components/topbar.ex:127
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:26
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:28
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:3
|
#: lib/cannery_web/templates/user_registration/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:42
|
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:44
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:44
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:26
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:28
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:41
|
#: lib/cannery_web/templates/user_session/new.html.heex:41
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Register"
|
msgid "Register"
|
||||||
msgstr "Registrieren"
|
msgstr "Registrieren"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:3
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:16
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:15
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Resend confirmation instructions"
|
msgid "Resend confirmation instructions"
|
||||||
msgstr "Bestätigungsmail erneut senden"
|
msgstr "Bestätigungsmail erneut senden"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:3
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:34
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:31
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Reset password"
|
msgid "Reset password"
|
||||||
msgstr "Passwort zurücksetzen"
|
msgstr "Passwort zurücksetzen"
|
||||||
|
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:53
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:54
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:81
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:82
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
#: lib/cannery_web/live/container_live/form_component.html.heex:51
|
||||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:31
|
#: lib/cannery_web/live/invite_live/form_component.html.heex:32
|
||||||
#: lib/cannery_web/live/range_live/form_component.html.heex:40
|
#: lib/cannery_web/live/range_live/form_component.html.heex:41
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:91
|
#: lib/cannery_web/live/tag_live/form_component.html.heex:37
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Save"
|
msgid "Save"
|
||||||
msgstr "Speichern"
|
msgstr "Speichern"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:16
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:15
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Send instructions to reset password"
|
msgid "Send instructions to reset password"
|
||||||
msgstr "Anleitung zum Passwort zurücksetzen zusenden"
|
msgstr "Anleitung zum Passwort zurücksetzen zusenden"
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:80
|
#: lib/cannery_web/live/container_live/show.html.heex:76
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Why not add one?"
|
msgid "Why not add one?"
|
||||||
msgstr "Warum fügen Sie keine hinzu?"
|
msgstr "Warum fügen Sie keine hinzu?"
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:53
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:50
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Add"
|
msgid "Add"
|
||||||
msgstr "Hinzufügen"
|
msgstr "Hinzufügen"
|
||||||
@ -169,9 +169,9 @@ msgstr "Munition markieren"
|
|||||||
msgid "Why not get some ready to shoot?"
|
msgid "Why not get some ready to shoot?"
|
||||||
msgstr "Warum nicht einige für den Schießstand auswählen?"
|
msgstr "Warum nicht einige für den Schießstand auswählen?"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:100
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:101
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:39
|
#: lib/cannery_web/live/range_live/index.html.heex:38
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Record shots"
|
msgid "Record shots"
|
||||||
msgstr "Schüsse dokumentieren"
|
msgstr "Schüsse dokumentieren"
|
||||||
@ -191,27 +191,27 @@ msgstr "Behälter verschieben"
|
|||||||
msgid "Select"
|
msgid "Select"
|
||||||
msgstr "Markieren"
|
msgstr "Markieren"
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:31
|
#: lib/cannery_web/live/invite_live/index.html.heex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr "In die Zwischenablage kopieren"
|
msgstr "In die Zwischenablage kopieren"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:21
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:22
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "add a container first"
|
msgid "add a container first"
|
||||||
msgstr "Zuerst einen Behälter hinzufügen"
|
msgstr "Zuerst einen Behälter hinzufügen"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:75
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Create"
|
msgid "Create"
|
||||||
msgstr "Erstellen"
|
msgstr "Erstellen"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:113
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:115
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change Language"
|
msgid "Change Language"
|
||||||
msgstr "Sprache wechseln"
|
msgstr "Sprache wechseln"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:139
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:142
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change language"
|
msgid "Change language"
|
||||||
msgstr "Sprache wechseln"
|
msgstr "Sprache wechseln"
|
||||||
@ -221,44 +221,34 @@ msgstr "Sprache wechseln"
|
|||||||
msgid "View in Catalog"
|
msgid "View in Catalog"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:31
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:32
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "add an ammo type first"
|
msgid "add an ammo type first"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:60
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Disable"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:64
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Enable"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/components/move_ammo_group_component.ex:80
|
#: lib/cannery_web/components/move_ammo_group_component.ex:80
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Move ammo"
|
msgid "Move ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:80
|
#: lib/cannery_web/live/invite_live/index.html.heex:78
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Set Unlimited"
|
msgid "Set Unlimited"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:32
|
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Stage for range"
|
msgid "Stage for range"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
#: lib/cannery_web/live/range_live/index.html.heex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Unstage from range"
|
msgid "Unstage from range"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:153
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:156
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Export Data as JSON"
|
msgid "Export Data as JSON"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -69,11 +69,11 @@ msgstr "Ungültige Mailadresse oder Passwort"
|
|||||||
msgid "Not found"
|
msgid "Not found"
|
||||||
msgstr "Nicht gefunden"
|
msgstr "Nicht gefunden"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:16
|
#: lib/cannery_web/templates/user_registration/new.html.heex:13
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:16
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:14
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:21
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:23
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:64
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:67
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:119
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:123
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Oops, something went wrong! Please check the errors below."
|
msgid "Oops, something went wrong! Please check the errors below."
|
||||||
msgstr "Oops, etwas ist schiefgegangen. Bitte beachten Sie den Fehler unten."
|
msgstr "Oops, etwas ist schiefgegangen. Bitte beachten Sie den Fehler unten."
|
||||||
@ -83,14 +83,15 @@ msgstr "Oops, etwas ist schiefgegangen. Bitte beachten Sie den Fehler unten."
|
|||||||
msgid "Reset password link is invalid or it has expired."
|
msgid "Reset password link is invalid or it has expired."
|
||||||
msgstr "Link zum Passwort zurücksetzen ist ungültig oder abgelaufen."
|
msgstr "Link zum Passwort zurücksetzen ist ungültig oder abgelaufen."
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:24
|
#: lib/cannery_web/controllers/user_registration_controller.ex:22
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:55
|
#: lib/cannery_web/controllers/user_registration_controller.ex:51
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Sorry, public registration is disabled"
|
msgid "Sorry, public registration is disabled"
|
||||||
msgstr "Entschuldigung, aber öffentliche Registrierung ist deaktiviert"
|
msgstr "Entschuldigung, aber öffentliche Registrierung ist deaktiviert"
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:14
|
#: lib/cannery_web/controllers/user_registration_controller.ex:12
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:45
|
#: lib/cannery_web/controllers/user_registration_controller.ex:41
|
||||||
|
#: lib/cannery_web/controllers/user_registration_controller.ex:70
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Sorry, this invite was not found or expired"
|
msgid "Sorry, this invite was not found or expired"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -111,7 +112,7 @@ msgstr "Unbefugt"
|
|||||||
msgid "User confirmation link is invalid or it has expired."
|
msgid "User confirmation link is invalid or it has expired."
|
||||||
msgstr "Nutzerkonto Bestätigungslink ist ungültig oder abgelaufen."
|
msgstr "Nutzerkonto Bestätigungslink ist ungültig oder abgelaufen."
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:18
|
#: lib/cannery_web/live/invite_live/index.ex:19
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "You are not authorized to view this page"
|
msgid "You are not authorized to view this page"
|
||||||
msgstr "Sie sind nicht berechtigt, diese Seite aufzurufen"
|
msgstr "Sie sind nicht berechtigt, diese Seite aufzurufen"
|
||||||
@ -121,22 +122,22 @@ msgstr "Sie sind nicht berechtigt, diese Seite aufzurufen"
|
|||||||
msgid "You are not authorized to view this page."
|
msgid "You are not authorized to view this page."
|
||||||
msgstr "Sie sind nicht berechtigt, diese Seite aufzurufen."
|
msgstr "Sie sind nicht berechtigt, diese Seite aufzurufen."
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:137
|
#: lib/cannery/accounts/user.ex:144
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "did not change"
|
msgid "did not change"
|
||||||
msgstr "hat sich nicht geändert"
|
msgstr "hat sich nicht geändert"
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:158
|
#: lib/cannery/accounts/user.ex:165
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "does not match password"
|
msgid "does not match password"
|
||||||
msgstr "Passwort stimmt nicht überein"
|
msgstr "Passwort stimmt nicht überein"
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:195
|
#: lib/cannery/accounts/user.ex:202
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "is not valid"
|
msgid "is not valid"
|
||||||
msgstr "ist nicht gültig"
|
msgstr "ist nicht gültig"
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:92
|
#: lib/cannery/accounts/user.ex:99
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "must have the @ sign and no spaces"
|
msgid "must have the @ sign and no spaces"
|
||||||
msgstr "Muss ein @ Zeichen und keine Leerzeichen haben"
|
msgstr "Muss ein @ Zeichen und keine Leerzeichen haben"
|
||||||
@ -197,7 +198,7 @@ msgstr ""
|
|||||||
msgid "Please select an ammo type and container"
|
msgid "Please select an ammo type and container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:69
|
#: lib/cannery_web/live/range_live/index.html.heex:67
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Your browser does not support the canvas element."
|
msgid "Your browser does not support the canvas element."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -26,45 +26,28 @@ msgstr ""
|
|||||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:86
|
#: lib/cannery_web/live/ammo_type_live/form_component.ex:86
|
||||||
#: lib/cannery_web/live/container_live/form_component.ex:89
|
#: lib/cannery_web/live/container_live/form_component.ex:89
|
||||||
#: lib/cannery_web/live/invite_live/form_component.ex:80
|
#: lib/cannery_web/live/invite_live/form_component.ex:80
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:126
|
#: lib/cannery_web/live/tag_live/form_component.ex:79
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} created successfully"
|
msgid "%{name} created successfully"
|
||||||
msgstr "%{name} erfolgreich erstellt"
|
msgstr "%{name} erfolgreich erstellt"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.ex:55
|
#: 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:64
|
#: lib/cannery_web/live/tag_live/index.ex:64
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} deleted succesfully"
|
msgid "%{name} deleted succesfully"
|
||||||
msgstr "%{name} erfolgreich gelöscht"
|
msgstr "%{name} erfolgreich gelöscht"
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:109
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "%{name} disabled succesfully"
|
|
||||||
msgstr "%{name} erfolgreich deaktiviert"
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:87
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "%{name} enabled succesfully"
|
|
||||||
msgstr "%{name} erfolgreich aktiviert"
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/index.ex:85
|
#: lib/cannery_web/live/container_live/index.ex:85
|
||||||
#: lib/cannery_web/live/container_live/show.ex:63
|
#: lib/cannery_web/live/container_live/show.ex:63
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} has been deleted"
|
msgid "%{name} has been deleted"
|
||||||
msgstr "%{name} wurde gelöscht"
|
msgstr "%{name} wurde gelöscht"
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:67
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "%{name} updated succesfully"
|
|
||||||
msgstr "%{name} erfolgreich aktualisiert"
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
|
#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
|
||||||
#: lib/cannery_web/live/container_live/form_component.ex:70
|
#: lib/cannery_web/live/container_live/form_component.ex:70
|
||||||
#: lib/cannery_web/live/invite_live/form_component.ex:62
|
#: lib/cannery_web/live/invite_live/form_component.ex:62
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:108
|
#: lib/cannery_web/live/tag_live/form_component.ex:61
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} updated successfully"
|
msgid "%{name} updated successfully"
|
||||||
msgstr "%{name} erfolgreich aktualisiert"
|
msgstr "%{name} erfolgreich aktualisiert"
|
||||||
@ -74,8 +57,8 @@ msgstr "%{name} erfolgreich aktualisiert"
|
|||||||
msgid "A link to confirm your email change has been sent to the new address."
|
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."
|
msgstr "Eine Mail zum Bestätigen ihre Mailadresse wurde Ihnen zugesandt."
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:103
|
#: lib/cannery_web/live/invite_live/index.html.heex:98
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:133
|
#: lib/cannery_web/live/invite_live/index.html.heex:126
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -83,25 +66,20 @@ msgstr ""
|
|||||||
"zurückgenommen werden!"
|
"zurückgenommen werden!"
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/index.html.heex:92
|
#: 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/index.html.heex:135
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:59
|
#: lib/cannery_web/live/container_live/show.html.heex:55
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:64
|
#: lib/cannery_web/live/tag_live/index.html.heex:63
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete %{name}?"
|
msgid "Are you sure you want to delete %{name}?"
|
||||||
msgstr "Sind Sie sicher, dass sie %{name} löschen möchten?"
|
msgstr "Sind Sie sicher, dass sie %{name} löschen möchten?"
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:49
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:153
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
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:152
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete this ammo?"
|
msgid "Are you sure you want to delete this ammo?"
|
||||||
msgstr "Sind Sie sicher, dass sie diese Munition löschen möchten?"
|
msgstr "Sind Sie sicher, dass sie diese Munition löschen möchten?"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:160
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:163
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete your account?"
|
msgid "Are you sure you want to delete your account?"
|
||||||
msgstr "Sind Sie sicher, dass sie Ihren Account löschen möchten?"
|
msgstr "Sind Sie sicher, dass sie Ihren Account löschen möchten?"
|
||||||
@ -111,11 +89,6 @@ msgstr "Sind Sie sicher, dass sie Ihren Account löschen möchten?"
|
|||||||
msgid "Are you sure you want to log out?"
|
msgid "Are you sure you want to log out?"
|
||||||
msgstr "Wirklich ausloggen?"
|
msgstr "Wirklich ausloggen?"
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:75
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Are you sure you want to make %{name} unlimited?"
|
|
||||||
msgstr "Sind Sie sicher, dass sie %{name} auf unbegrenzt setzen möchten?"
|
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_settings_controller.ex:77
|
#: lib/cannery_web/controllers/user_settings_controller.ex:77
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Email changed successfully."
|
msgid "Email changed successfully."
|
||||||
@ -150,23 +123,18 @@ msgstr "Passwort erfolgreich zurückgesetzt."
|
|||||||
msgid "Password updated successfully."
|
msgid "Password updated successfully."
|
||||||
msgstr "Passwort erfolgreich geändert."
|
msgstr "Passwort erfolgreich geändert."
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:73
|
#: lib/cannery_web/controllers/user_registration_controller.ex:65
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Please check your email to verify your account"
|
msgid "Please check your email to verify your account"
|
||||||
msgstr "Bitte überprüfen Sie ihre Mailbox und bestätigen Sie das Nutzerkonto"
|
msgstr "Bitte überprüfen Sie ihre Mailbox und bestätigen Sie das Nutzerkonto"
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:91
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:56
|
||||||
#, elixir-autogen, elixir-format
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:83
|
||||||
msgid "Register to setup %{name}"
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:158
|
||||||
msgstr "Registrieren Sie sich, um %{name} zu bearbeiten"
|
#: lib/cannery_web/live/container_live/form_component.html.heex:53
|
||||||
|
#: lib/cannery_web/live/invite_live/form_component.html.heex:34
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:55
|
#: lib/cannery_web/live/range_live/form_component.html.heex:43
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:82
|
#: lib/cannery_web/live/tag_live/form_component.html.heex:39
|
||||||
#: 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
|
|
||||||
#: lib/cannery_web/live/range_live/form_component.html.heex:42
|
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:93
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Saving..."
|
msgid "Saving..."
|
||||||
msgstr "Speichere..."
|
msgstr "Speichere..."
|
||||||
@ -193,7 +161,7 @@ msgstr "%{name} erfolgreich hinzugefügt"
|
|||||||
msgid "%{tag_name} has been removed from %{container_name}"
|
msgid "%{tag_name} has been removed from %{container_name}"
|
||||||
msgstr "%{tag_name} wurde von %{container_name} entfernt"
|
msgstr "%{tag_name} wurde von %{container_name} entfernt"
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:55
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:52
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Adding..."
|
msgid "Adding..."
|
||||||
msgstr "Füge hinzu..."
|
msgstr "Füge hinzu..."
|
||||||
@ -203,13 +171,13 @@ msgstr "Füge hinzu..."
|
|||||||
msgid "Shots recorded successfully"
|
msgid "Shots recorded successfully"
|
||||||
msgstr "Schüsse erfolgreich dokumentiert"
|
msgstr "Schüsse erfolgreich dokumentiert"
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:28
|
#: lib/cannery_web/live/range_live/index.html.heex:27
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to unstage this ammo?"
|
msgid "Are you sure you want to unstage this ammo?"
|
||||||
msgstr "Sind sie sicher, dass Sie diese Munition demarkieren möchten?"
|
msgstr "Sind sie sicher, dass Sie diese Munition demarkieren möchten?"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:137
|
#: lib/cannery_web/live/ammo_group_live/show.ex:142
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:118
|
#: lib/cannery_web/live/range_live/index.html.heex:116
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete this shot record?"
|
msgid "Are you sure you want to delete this shot record?"
|
||||||
msgstr "Sind sie sicher, dass sie die Schießkladde löschen möchten?"
|
msgstr "Sind sie sicher, dass sie die Schießkladde löschen möchten?"
|
||||||
@ -235,7 +203,7 @@ msgstr "%{email} erfolgreich bestätigt."
|
|||||||
msgid "Ammo moved to %{name} successfully"
|
msgid "Ammo moved to %{name} successfully"
|
||||||
msgstr "Munition erfolgreich zu %{name} verschoben"
|
msgstr "Munition erfolgreich zu %{name} verschoben"
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:121
|
#: lib/cannery_web/live/invite_live/index.ex:128
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Copied to clipboard"
|
msgid "Copied to clipboard"
|
||||||
msgstr "Der Zwischenablage hinzugefügt"
|
msgstr "Der Zwischenablage hinzugefügt"
|
||||||
@ -245,18 +213,18 @@ msgstr "Der Zwischenablage hinzugefügt"
|
|||||||
msgid "%{name} removed successfully"
|
msgid "%{name} removed successfully"
|
||||||
msgstr "%{name} erfolgreich entfernt"
|
msgstr "%{name} erfolgreich entfernt"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:17
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:18
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:27
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:28
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "You'll need to"
|
msgid "You'll need to"
|
||||||
msgstr "Sie müssen"
|
msgstr "Sie müssen"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:75
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:76
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Creating..."
|
msgid "Creating..."
|
||||||
msgstr "Erstellen..."
|
msgstr "Erstellen..."
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:141
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:144
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to change your language?"
|
msgid "Are you sure you want to change your language?"
|
||||||
msgstr "Möchten Sie die Sprache wechseln?"
|
msgstr "Möchten Sie die Sprache wechseln?"
|
||||||
@ -290,7 +258,47 @@ msgstr[0] "Munitionsgruppe erfolgreich aktualisiert"
|
|||||||
msgstr[1] "Munitionsgruppe erfolgreich aktualisiert"
|
msgstr[1] "Munitionsgruppe erfolgreich aktualisiert"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:90
|
#: lib/cannery_web/live/ammo_type_live/index.html.heex:90
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:28
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:29
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
||||||
msgstr "Sind Sie sicher, dass sie %{name} löschen möchten?"
|
msgstr "Sind Sie sicher, dass sie %{name} löschen möchten?"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/home_live.html.heex:65
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Register to setup Cannery"
|
||||||
|
msgstr "Registrieren Sie sich, um %{name} zu bearbeiten"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:54
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{invite_name} deleted succesfully"
|
||||||
|
msgstr "%{name} erfolgreich gelöscht"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:115
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{invite_name} disabled succesfully"
|
||||||
|
msgstr "%{name} erfolgreich deaktiviert"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:91
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{invite_name} enabled succesfully"
|
||||||
|
msgstr "%{name} erfolgreich aktiviert"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:69
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{invite_name} updated succesfully"
|
||||||
|
msgstr "%{name} erfolgreich aktualisiert"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:140
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{user_email} deleted succesfully"
|
||||||
|
msgstr "%{name} erfolgreich gelöscht"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:48
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Are you sure you want to delete the invite for %{invite_name}?"
|
||||||
|
msgstr "Sind Sie sicher, dass sie die Einladung für %{name} löschen möchten?"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:73
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Are you sure you want to make %{invite_name} unlimited?"
|
||||||
|
msgstr "Sind Sie sicher, dass sie %{name} auf unbegrenzt setzen möchten?"
|
||||||
|
@ -10,22 +10,17 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:47
|
#: lib/cannery_web/live/home_live.html.heex:46
|
||||||
#, 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:69
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Access from any internet-capable device"
|
msgid "Access from any internet-capable device"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:91
|
#: lib/cannery_web/live/invite_live/index.html.heex:87
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Admins"
|
msgid "Admins"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:83
|
#: lib/cannery_web/live/home_live.html.heex:60
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Admins:"
|
msgid "Admins:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -40,60 +35,60 @@ msgid "Ammo"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_table_component.ex:89
|
#: lib/cannery_web/components/ammo_group_table_component.ex:89
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:22
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Ammo type"
|
msgid "Ammo type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:79
|
#: lib/cannery_web/live/tag_live/form_component.html.heex:25
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Background color"
|
msgid "Background color"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:65
|
#: 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/form_component.html.heex:141
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Blank"
|
msgid "Blank"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:68
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:69
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Brass"
|
msgid "Brass"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:47
|
#: 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/form_component.html.heex:45
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Bullet core"
|
msgid "Bullet core"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:46
|
#: 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/form_component.html.heex:38
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Bullet type"
|
msgid "Bullet type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:49
|
#: 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/form_component.html.heex:59
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Caliber"
|
msgid "Caliber"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:48
|
#: 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/form_component.html.heex:52
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Cartridge"
|
msgid "Cartridge"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:50
|
#: 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/form_component.html.heex:66
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Case material"
|
msgid "Case material"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_table_component.ex:65
|
#: lib/cannery_web/components/ammo_group_table_component.ex:65
|
||||||
#: lib/cannery_web/components/move_ammo_group_component.ex:67
|
#: lib/cannery_web/components/move_ammo_group_component.ex:67
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:56
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:57
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Container"
|
msgid "Container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -107,42 +102,42 @@ msgid "Containers"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:66
|
#: 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/form_component.html.heex:145
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Corrosive"
|
msgid "Corrosive"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_table_component.ex:76
|
#: lib/cannery_web/components/ammo_group_table_component.ex:76
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:28
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Count"
|
msgid "Count"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:38
|
#: lib/cannery_web/components/ammo_group_card.ex:39
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:8
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:8
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Count:"
|
msgid "Count:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/container_table_component.ex:47
|
#: 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/ammo_type_live/form_component.html.heex:25
|
||||||
#: lib/cannery_web/live/container_live/form_component.html.heex:27
|
#: lib/cannery_web/live/container_live/form_component.html.heex:28
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Description"
|
msgid "Description"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/container_card.ex:39
|
#: lib/cannery_web/components/container_card.ex:39
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:8
|
#: lib/cannery_web/live/container_live/show.html.heex:7
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Description:"
|
msgid "Description:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:44
|
#: lib/cannery_web/live/home_live.html.heex:23
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Easy to Use:"
|
msgid "Easy to Use:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:33
|
#: lib/cannery_web/live/invite_live/index.ex:34
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Edit Invite"
|
msgid "Edit Invite"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -152,95 +147,95 @@ msgstr ""
|
|||||||
msgid "Edit Tag"
|
msgid "Edit Tag"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:35
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:36
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Example bullet type abbreviations"
|
msgid "Example bullet type abbreviations"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:40
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:41
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "FMJ"
|
msgid "FMJ"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:59
|
#: 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/form_component.html.heex:104
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Grains"
|
msgid "Grains"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:64
|
#: 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/form_component.html.heex:137
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Incendiary"
|
msgid "Incendiary"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:78
|
#: lib/cannery_web/live/home_live.html.heex:55
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Instance Information"
|
msgid "Instance Information"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/invite_card.ex:35
|
#: lib/cannery_web/components/invite_card.ex:42
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Invite Disabled"
|
msgid "Invite Disabled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:111
|
#: lib/cannery_web/live/home_live.html.heex:82
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Invite Only"
|
msgid "Invite Only"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/topbar.ex:90
|
#: lib/cannery_web/components/topbar.ex:90
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:41
|
#: lib/cannery_web/live/invite_live/index.ex:42
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:3
|
#: lib/cannery_web/live/invite_live/index.html.heex:3
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Invites"
|
msgid "Invites"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:28
|
#: lib/cannery_web/templates/user_session/new.html.heex:25
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Keep me logged in for 60 days"
|
msgid "Keep me logged in for 60 days"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/container_table_component.ex:48
|
#: lib/cannery_web/components/container_table_component.ex:48
|
||||||
#: lib/cannery_web/components/move_ammo_group_component.ex:69
|
#: 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/form_component.html.heex:43
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Location"
|
msgid "Location"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/container_card.ex:51
|
#: lib/cannery_web/components/container_card.ex:49
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:20
|
#: lib/cannery_web/live/container_live/show.html.heex:17
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Location:"
|
msgid "Location:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/form_component.html.heex:38
|
#: lib/cannery_web/live/container_live/form_component.html.heex:39
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Magazine, Clip, Ammo Box, etc"
|
msgid "Magazine, Clip, Ammo Box, etc"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:67
|
#: 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/form_component.html.heex:149
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Manufacturer"
|
msgid "Manufacturer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/form_component.html.heex:31
|
#: lib/cannery_web/live/container_live/form_component.html.heex:32
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Metal ammo can with the anime girl sticker"
|
msgid "Metal ammo can with the anime girl sticker"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/form_component.html.heex:23
|
#: lib/cannery_web/live/container_live/form_component.html.heex:24
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "My cool ammo can"
|
msgid "My cool ammo can"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:45
|
#: lib/cannery_web/components/ammo_type_table_component.ex:45
|
||||||
#: lib/cannery_web/components/container_table_component.ex:46
|
#: 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/form_component.html.heex:21
|
||||||
#: lib/cannery_web/live/container_live/form_component.html.heex:20
|
#: lib/cannery_web/live/container_live/form_component.html.heex:21
|
||||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:20
|
#: lib/cannery_web/live/invite_live/form_component.html.heex:21
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:75
|
#: lib/cannery_web/live/tag_live/form_component.html.heex:21
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Name"
|
msgid "Name"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -257,7 +252,7 @@ msgstr ""
|
|||||||
msgid "New Container"
|
msgid "New Container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:37
|
#: lib/cannery_web/live/invite_live/index.ex:38
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "New Invite"
|
msgid "New Invite"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -267,13 +262,13 @@ msgstr ""
|
|||||||
msgid "New Tag"
|
msgid "New Tag"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:8
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:10
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:70
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:71
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "No Ammo"
|
msgid "No Ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:166
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:167
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "No ammo for this type"
|
msgid "No ammo for this type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -289,68 +284,68 @@ msgstr ""
|
|||||||
msgid "No invites"
|
msgid "No invites"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:31
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:29
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:43
|
#: lib/cannery_web/live/tag_live/index.html.heex:43
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "No tags"
|
msgid "No tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:37
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:38
|
||||||
#: lib/cannery_web/components/ammo_group_table_component.ex:81
|
#: lib/cannery_web/components/ammo_group_table_component.ex:81
|
||||||
#: lib/cannery_web/components/shot_group_table_component.ex:43
|
#: 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/form_component.html.heex:50
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:93
|
#: 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/form_component.html.heex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Notes"
|
msgid "Notes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:51
|
#: lib/cannery_web/components/ammo_group_card.ex:52
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:24
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:24
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Notes:"
|
msgid "Notes:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/form_component.html.heex:46
|
#: lib/cannery_web/live/container_live/form_component.html.heex:47
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "On the bookshelf"
|
msgid "On the bookshelf"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:60
|
#: 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/form_component.html.heex:112
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Pressure"
|
msgid "Pressure"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_table_component.ex:78
|
#: lib/cannery_web/components/ammo_group_table_component.ex:78
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:35
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Price paid"
|
msgid "Price paid"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:70
|
#: lib/cannery_web/components/ammo_group_card.ex:68
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Price paid:"
|
msgid "Price paid:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:61
|
#: 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/form_component.html.heex:119
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Primer type"
|
msgid "Primer type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:110
|
#: lib/cannery_web/live/home_live.html.heex:81
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Public Signups"
|
msgid "Public Signups"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:56
|
#: lib/cannery_web/live/home_live.html.heex:33
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Secure:"
|
msgid "Secure:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:59
|
#: lib/cannery_web/live/home_live.html.heex:36
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Self-host your own instance, or use an instance from someone you trust."
|
msgid "Self-host your own instance, or use an instance from someone you trust."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -361,12 +356,12 @@ msgstr ""
|
|||||||
msgid "Settings"
|
msgid "Settings"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:66
|
#: lib/cannery_web/live/home_live.html.heex:43
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Simple:"
|
msgid "Simple:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:47
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:48
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Steel"
|
msgid "Steel"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -390,61 +385,51 @@ msgstr ""
|
|||||||
msgid "Tags can be added to your containers to help you organize"
|
msgid "Tags can be added to your containers to help you organize"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:85
|
#: lib/cannery_web/live/tag_live/form_component.html.heex:31
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Text color"
|
msgid "Text color"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:35
|
#: lib/cannery_web/live/home_live.html.heex:14
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "The self-hosted firearm tracker website"
|
msgid "The self-hosted firearm tracker website"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:63
|
#: 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/form_component.html.heex:133
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Tracer"
|
msgid "Tracer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/container_table_component.ex:49
|
#: lib/cannery_web/components/container_table_component.ex:49
|
||||||
#: lib/cannery_web/components/move_ammo_group_component.ex:68
|
#: 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/form_component.html.heex:36
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Type"
|
msgid "Type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/container_card.ex:45
|
#: lib/cannery_web/components/container_card.ex:44
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:14
|
#: lib/cannery_web/live/container_live/show.html.heex:12
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Type:"
|
msgid "Type:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:121
|
#: lib/cannery_web/live/invite_live/index.html.heex:115
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Users"
|
msgid "Users"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/invite_card.ex:30
|
#: lib/cannery_web/live/invite_live/form_component.html.heex:25
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Uses Left:"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:24
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Uses left"
|
msgid "Uses left"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:31
|
#: lib/cannery_web/live/home_live.html.heex:37
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Welcome to %{name}"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:60
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Your data stays with you, period"
|
msgid "Your data stays with you, period"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:72
|
#: lib/cannery_web/live/container_live/show.html.heex:68
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "No tags for this container"
|
msgid "No tags for this container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -460,15 +445,15 @@ msgstr ""
|
|||||||
msgid "Range day"
|
msgid "Range day"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:45
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:46
|
||||||
#: lib/cannery_web/components/shot_group_table_component.ex:44
|
#: lib/cannery_web/components/shot_group_table_component.ex:44
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:94
|
#: lib/cannery_web/live/ammo_group_live/show.ex:94
|
||||||
#: lib/cannery_web/live/range_live/form_component.html.heex:36
|
#: lib/cannery_web/live/range_live/form_component.html.heex:37
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Date"
|
msgid "Date"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/form_component.html.heex:21
|
#: lib/cannery_web/live/range_live/form_component.html.heex:22
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Shots fired"
|
msgid "Shots fired"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -495,21 +480,21 @@ msgstr ""
|
|||||||
msgid "New Shot Records"
|
msgid "New Shot Records"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:50
|
#: lib/cannery_web/live/range_live/index.html.heex:48
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:92
|
#: lib/cannery_web/live/range_live/index.html.heex:90
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "No shots recorded"
|
msgid "No shots recorded"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:21
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:22
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:25
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:26
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Rounds left"
|
msgid "Rounds left"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/shot_group_table_component.ex:42
|
#: lib/cannery_web/components/shot_group_table_component.ex:42
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:92
|
#: lib/cannery_web/live/ammo_group_live/show.ex:92
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
#: lib/cannery_web/live/range_live/index.html.heex:62
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Rounds shot"
|
msgid "Rounds shot"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -521,7 +506,7 @@ msgid "Shot Records"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.ex:38
|
#: lib/cannery_web/live/ammo_group_live/index.ex:38
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:117
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:118
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Move ammo"
|
msgid "Move ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -531,100 +516,95 @@ msgstr ""
|
|||||||
msgid "No other containers"
|
msgid "No other containers"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:55
|
#: lib/cannery_web/live/range_live/index.html.heex:53
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Shot log"
|
msgid "Shot log"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:71
|
#: lib/cannery_web/components/ammo_group_card.ex:69
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:78
|
#: lib/cannery_web/components/ammo_group_card.ex:76
|
||||||
#: lib/cannery_web/components/ammo_group_table_component.ex:153
|
#: 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_group_table_component.ex:225
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:180
|
#: 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:37
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:44
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:44
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:136
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:137
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "$%{amount}"
|
msgid "$%{amount}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:75
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:76
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Bimetal"
|
msgid "Bimetal"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:51
|
#: 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/form_component.html.heex:73
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Jacket type"
|
msgid "Jacket type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:52
|
#: 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/form_component.html.heex:80
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Muzzle velocity"
|
msgid "Muzzle velocity"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:55
|
#: 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/form_component.html.heex:94
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Powder grains per charge"
|
msgid "Powder grains per charge"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:53
|
#: 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/form_component.html.heex:90
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Powder type"
|
msgid "Powder type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:68
|
#: 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/form_component.html.heex:153
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "UPC"
|
msgid "UPC"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:78
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:80
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Confirm new password"
|
msgid "Confirm new password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:32
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:33
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:87
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:89
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Current password"
|
msgid "Current password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:71
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:73
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "New password"
|
msgid "New password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:93
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:94
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Stage"
|
msgid "Stage"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:93
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:94
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Unstage"
|
msgid "Unstage"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:62
|
#: 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/form_component.html.heex:126
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Firing type"
|
msgid "Firing type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/layout/live.html.heex:50
|
#: lib/cannery_web/templates/layout/live.html.heex:43
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Reconnecting..."
|
msgid "Reconnecting..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/layout/live.html.heex:37
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Loading..."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/index.ex:32
|
#: lib/cannery_web/live/container_live/index.ex:32
|
||||||
#: lib/cannery_web/live/container_live/show.ex:113
|
#: lib/cannery_web/live/container_live/show.ex:113
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
@ -637,16 +617,16 @@ msgstr ""
|
|||||||
msgid "Edit %{name} tags"
|
msgid "Edit %{name} tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/container_card.ex:63
|
#: lib/cannery_web/components/container_card.ex:60
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:67
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:68
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:39
|
#: lib/cannery_web/live/container_live/show.html.heex:35
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Rounds:"
|
msgid "Rounds:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_table_component.ex:222
|
#: lib/cannery_web/components/ammo_group_table_component.ex:222
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:179
|
#: lib/cannery_web/components/ammo_type_table_component.ex:179
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:142
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:143
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "No cost information"
|
msgid "No cost information"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -696,7 +676,7 @@ msgstr ""
|
|||||||
msgid "Log in"
|
msgid "Log in"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:34
|
#: lib/cannery_web/controllers/user_registration_controller.ex:32
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Register"
|
msgid "Register"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -712,60 +692,53 @@ msgstr ""
|
|||||||
msgid "Record Shots"
|
msgid "Record Shots"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:66
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:67
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Copies"
|
msgid "Copies"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:123
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:124
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Added on:"
|
msgid "Added on:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/user_card.ex:34
|
#: lib/cannery_web/templates/user_registration/new.html.heex:32
|
||||||
#, elixir-autogen, elixir-format
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:133
|
||||||
msgid "User registered on"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:130
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "English"
|
msgid "English"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:135
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:132
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "French"
|
msgid "French"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:131
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "German"
|
msgid "German"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:33
|
#: lib/cannery_web/templates/user_registration/new.html.heex:28
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Language"
|
msgid "Language"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:136
|
#: lib/cannery_web/live/home_live.html.heex:107
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Get involved!"
|
msgid "Get involved!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:157
|
#: lib/cannery_web/live/home_live.html.heex:128
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Help translate"
|
msgid "Help translate"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:168
|
#: lib/cannery_web/live/home_live.html.heex:139
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Report bugs or request features"
|
msgid "Report bugs or request features"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:146
|
#: lib/cannery_web/live/home_live.html.heex:117
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "View the source code"
|
msgid "View the source code"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -788,7 +761,7 @@ msgstr ""
|
|||||||
msgid "Move Ammo"
|
msgid "Move Ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:119
|
#: lib/cannery_web/live/container_live/show.html.heex:113
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "No ammo in this container"
|
msgid "No ammo in this container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -803,38 +776,38 @@ msgstr ""
|
|||||||
msgid "This ammo is not in a container"
|
msgid "This ammo is not in a container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/container_card.ex:58
|
#: lib/cannery_web/components/container_card.ex:55
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:95
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:96
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:30
|
#: lib/cannery_web/live/container_live/show.html.heex:26
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Packs:"
|
msgid "Packs:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/topbar.ex:25
|
#: lib/cannery_web/components/topbar.ex:25
|
||||||
#: lib/cannery_web/live/home_live.ex:25
|
#: lib/cannery_web/live/home_live.html.heex:4
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Cannery logo"
|
msgid "Cannery logo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:27
|
#: lib/cannery_web/live/home_live.html.heex:6
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "isn't he cute >:3"
|
msgid "isn't he cute >:3"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:28
|
#: lib/cannery_web/live/invite_live/form_component.html.heex:29
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Leave \"Uses left\" blank to make invite unlimited"
|
msgid "Leave \"Uses left\" blank to make invite unlimited"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:86
|
#: lib/cannery_web/components/ammo_group_card.ex:83
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Container:"
|
msgid "Container:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:63
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:64
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:39
|
#: 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/ammo_type_live/show.html.heex:153
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:105
|
#: lib/cannery_web/live/container_live/show.html.heex:99
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Show used"
|
msgid "Show used"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -862,9 +835,9 @@ msgstr ""
|
|||||||
msgid "Rounds"
|
msgid "Rounds"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:158
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:159
|
||||||
#: lib/cannery_web/live/container_live/index.html.heex:39
|
#: lib/cannery_web/live/container_live/index.html.heex:39
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:111
|
#: lib/cannery_web/live/container_live/show.html.heex:105
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "View as table"
|
msgid "View as table"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -874,7 +847,7 @@ msgstr ""
|
|||||||
msgid "Total ever packs"
|
msgid "Total ever packs"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:111
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:112
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Total ever packs:"
|
msgid "Total ever packs:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -884,7 +857,7 @@ msgstr ""
|
|||||||
msgid "Total ever rounds"
|
msgid "Total ever rounds"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:83
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:84
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Total ever rounds:"
|
msgid "Total ever rounds:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -894,7 +867,7 @@ msgstr ""
|
|||||||
msgid "Used packs"
|
msgid "Used packs"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:103
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:104
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Used packs:"
|
msgid "Used packs:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -904,17 +877,17 @@ msgstr ""
|
|||||||
msgid "Used rounds"
|
msgid "Used rounds"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:75
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:76
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Used rounds:"
|
msgid "Used rounds:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:33
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:34
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Used up!"
|
msgid "Used up!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:66
|
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Rounds shot chart"
|
msgid "Rounds shot chart"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1015,7 +988,7 @@ msgid "UPC:"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:120
|
#: lib/cannery_web/components/ammo_type_table_component.ex:120
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:132
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:133
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Average CPR"
|
msgid "Average CPR"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1026,7 +999,7 @@ msgstr ""
|
|||||||
msgid "Edit %{ammo_type_name}"
|
msgid "Edit %{ammo_type_name}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:39
|
#: lib/cannery_web/components/ammo_group_card.ex:40
|
||||||
#: lib/cannery_web/components/ammo_group_table_component.ex:231
|
#: lib/cannery_web/components/ammo_group_table_component.ex:231
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Empty"
|
msgid "Empty"
|
||||||
@ -1037,7 +1010,7 @@ msgstr ""
|
|||||||
msgid "CPR"
|
msgid "CPR"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:77
|
#: lib/cannery_web/components/ammo_group_card.ex:75
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "CPR:"
|
msgid "CPR:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1047,7 +1020,7 @@ msgstr ""
|
|||||||
msgid "Original Count"
|
msgid "Original Count"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:44
|
#: lib/cannery_web/components/ammo_group_card.ex:47
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Original Count:"
|
msgid "Original Count:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1057,12 +1030,12 @@ msgstr ""
|
|||||||
msgid "Home"
|
msgid "Home"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:28
|
#: lib/cannery_web/live/container_live/show.html.heex:24
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Total packs:"
|
msgid "Total packs:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:37
|
#: lib/cannery_web/live/container_live/show.html.heex:33
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Total rounds:"
|
msgid "Total rounds:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1072,7 +1045,7 @@ msgstr ""
|
|||||||
msgid "Last used on"
|
msgid "Last used on"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
#: lib/cannery_web/components/ammo_group_card.ex:62
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Last used on:"
|
msgid "Last used on:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1083,7 +1056,7 @@ msgid "Never used"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_table_component.ex:57
|
#: lib/cannery_web/components/ammo_group_table_component.ex:57
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:42
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Purchased on"
|
msgid "Purchased on"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1110,7 +1083,7 @@ msgstr ""
|
|||||||
msgid "Search catalog"
|
msgid "Search catalog"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:57
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:58
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Search ammo"
|
msgid "Search ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1125,12 +1098,85 @@ msgstr ""
|
|||||||
msgid "Search tags"
|
msgid "Search tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:85
|
#: lib/cannery_web/live/range_live/index.html.heex:83
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Search shot records"
|
msgid "Search shot records"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:133
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Spanish"
|
msgid "Spanish"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/templates/error/error.html.heex:8
|
||||||
|
#: lib/cannery_web/templates/layout/root.html.heex:13
|
||||||
|
#: lib/cannery_web/templates/layout/root.html.heex:14
|
||||||
|
#: lib/cannery_web/views/layout_view.ex:15
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Cannery"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/components/user_card.ex:33
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Email unconfirmed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/components/user_card.ex:38
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "User registered on%{registered_datetime}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/components/user_card.ex:27
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "User was confirmed at%{confirmed_datetime}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/components/invite_card.ex:37
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Uses Left: Unlimited"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/home_live.html.heex:26
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Cannery lets you easily keep an eye on your ammo levels before and after range day"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/views/layout_view.ex:11
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Cannery | %{title}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/home_live.html.heex:78
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Registration:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/home_live.html.heex:88
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Version:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/home_live.html.heex:10
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Welcome to Cannery"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:63
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Disable"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:63
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Enable"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/components/invite_card.ex:32
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Uses Left: %{uses_left_count}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/components/invite_card.ex:52
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Uses: %{uses_count}"
|
||||||
|
msgstr ""
|
||||||
|
@ -9,16 +9,15 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Language: en\n"
|
"Language: en\n"
|
||||||
"Plural-Forms: nplurals=2\n"
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.ex:54
|
#: 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.ex:62
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:40
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:41
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Add Ammo"
|
msgid "Add Ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:36
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:37
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Add your first box!"
|
msgid "Add your first box!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -34,13 +33,13 @@ msgid "Add your first type!"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:15
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:15
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:44
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:45
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change email"
|
msgid "Change email"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:58
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:59
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:99
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:101
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change password"
|
msgid "Change password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -50,14 +49,14 @@ msgstr ""
|
|||||||
msgid "Create Invite"
|
msgid "Create Invite"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:162
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:165
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Delete User"
|
msgid "Delete User"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:52
|
#: lib/cannery_web/templates/user_registration/new.html.heex:47
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:3
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:45
|
#: lib/cannery_web/templates/user_session/new.html.heex:44
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Forgot your password?"
|
msgid "Forgot your password?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -67,13 +66,13 @@ msgstr ""
|
|||||||
msgid "Invite someone new!"
|
msgid "Invite someone new!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/topbar.ex:137
|
#: lib/cannery_web/components/topbar.ex:135
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:30
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:31
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:49
|
#: lib/cannery_web/templates/user_registration/new.html.heex:44
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:48
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:47
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:30
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:31
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:3
|
#: lib/cannery_web/templates/user_session/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:33
|
#: lib/cannery_web/templates/user_session/new.html.heex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Log in"
|
msgid "Log in"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -98,51 +97,51 @@ msgstr ""
|
|||||||
msgid "New Tag"
|
msgid "New Tag"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/topbar.ex:128
|
#: lib/cannery_web/components/topbar.ex:127
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:26
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:28
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:3
|
#: lib/cannery_web/templates/user_registration/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:42
|
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:44
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:44
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:26
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:28
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:41
|
#: lib/cannery_web/templates/user_session/new.html.heex:41
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Register"
|
msgid "Register"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:3
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:16
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:15
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Resend confirmation instructions"
|
msgid "Resend confirmation instructions"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:3
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:34
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:31
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Reset password"
|
msgid "Reset password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:53
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:54
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:81
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:82
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
#: lib/cannery_web/live/container_live/form_component.html.heex:51
|
||||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:31
|
#: lib/cannery_web/live/invite_live/form_component.html.heex:32
|
||||||
#: lib/cannery_web/live/range_live/form_component.html.heex:40
|
#: lib/cannery_web/live/range_live/form_component.html.heex:41
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:91
|
#: lib/cannery_web/live/tag_live/form_component.html.heex:37
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Save"
|
msgid "Save"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:16
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:15
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Send instructions to reset password"
|
msgid "Send instructions to reset password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:80
|
#: lib/cannery_web/live/container_live/show.html.heex:76
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Why not add one?"
|
msgid "Why not add one?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:53
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:50
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Add"
|
msgid "Add"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -157,9 +156,9 @@ msgstr ""
|
|||||||
msgid "Why not get some ready to shoot?"
|
msgid "Why not get some ready to shoot?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:100
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:101
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:39
|
#: lib/cannery_web/live/range_live/index.html.heex:38
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Record shots"
|
msgid "Record shots"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -179,27 +178,27 @@ msgstr ""
|
|||||||
msgid "Select"
|
msgid "Select"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:31
|
#: lib/cannery_web/live/invite_live/index.html.heex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:21
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:22
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "add a container first"
|
msgid "add a container first"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:75
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "Create"
|
msgid "Create"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:113
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:115
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change Language"
|
msgid "Change Language"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:139
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:142
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change language"
|
msgid "Change language"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -209,44 +208,34 @@ msgstr ""
|
|||||||
msgid "View in Catalog"
|
msgid "View in Catalog"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:31
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:32
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "add an ammo type first"
|
msgid "add an ammo type first"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:60
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Disable"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:64
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Enable"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/components/move_ammo_group_component.ex:80
|
#: lib/cannery_web/components/move_ammo_group_component.ex:80
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Move ammo"
|
msgid "Move ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:80
|
#: lib/cannery_web/live/invite_live/index.html.heex:78
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Set Unlimited"
|
msgid "Set Unlimited"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:32
|
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Stage for range"
|
msgid "Stage for range"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
#: lib/cannery_web/live/range_live/index.html.heex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Unstage from range"
|
msgid "Unstage from range"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:153
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:156
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Export Data as JSON"
|
msgid "Export Data as JSON"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -9,24 +9,18 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Language: en\n"
|
"Language: en\n"
|
||||||
"Plural-Forms: nplurals=2\n"
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:47
|
#: lib/cannery_web/live/home_live.html.heex:46
|
||||||
#, 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:69
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Access from any internet-capable device"
|
msgid "Access from any internet-capable device"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:91
|
#: lib/cannery_web/live/invite_live/index.html.heex:87
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Admins"
|
msgid "Admins"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:83
|
#: lib/cannery_web/live/home_live.html.heex:60
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Admins:"
|
msgid "Admins:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -41,60 +35,60 @@ msgid "Ammo"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_table_component.ex:89
|
#: lib/cannery_web/components/ammo_group_table_component.ex:89
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:22
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Ammo type"
|
msgid "Ammo type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:79
|
#: lib/cannery_web/live/tag_live/form_component.html.heex:25
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Background color"
|
msgid "Background color"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:65
|
#: 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/form_component.html.heex:141
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Blank"
|
msgid "Blank"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:68
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:69
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Brass"
|
msgid "Brass"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:47
|
#: 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/form_component.html.heex:45
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Bullet core"
|
msgid "Bullet core"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:46
|
#: 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/form_component.html.heex:38
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Bullet type"
|
msgid "Bullet type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:49
|
#: 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/form_component.html.heex:59
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Caliber"
|
msgid "Caliber"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:48
|
#: 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/form_component.html.heex:52
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Cartridge"
|
msgid "Cartridge"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:50
|
#: 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/form_component.html.heex:66
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Case material"
|
msgid "Case material"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_table_component.ex:65
|
#: lib/cannery_web/components/ammo_group_table_component.ex:65
|
||||||
#: lib/cannery_web/components/move_ammo_group_component.ex:67
|
#: lib/cannery_web/components/move_ammo_group_component.ex:67
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:56
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:57
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Container"
|
msgid "Container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -108,42 +102,42 @@ msgid "Containers"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:66
|
#: 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/form_component.html.heex:145
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Corrosive"
|
msgid "Corrosive"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_table_component.ex:76
|
#: lib/cannery_web/components/ammo_group_table_component.ex:76
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:28
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Count"
|
msgid "Count"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:38
|
#: lib/cannery_web/components/ammo_group_card.ex:39
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:8
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:8
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Count:"
|
msgid "Count:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/container_table_component.ex:47
|
#: 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/ammo_type_live/form_component.html.heex:25
|
||||||
#: lib/cannery_web/live/container_live/form_component.html.heex:27
|
#: lib/cannery_web/live/container_live/form_component.html.heex:28
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Description"
|
msgid "Description"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/container_card.ex:39
|
#: lib/cannery_web/components/container_card.ex:39
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:8
|
#: lib/cannery_web/live/container_live/show.html.heex:7
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Description:"
|
msgid "Description:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:44
|
#: lib/cannery_web/live/home_live.html.heex:23
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Easy to Use:"
|
msgid "Easy to Use:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:33
|
#: lib/cannery_web/live/invite_live/index.ex:34
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Edit Invite"
|
msgid "Edit Invite"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -153,95 +147,95 @@ msgstr ""
|
|||||||
msgid "Edit Tag"
|
msgid "Edit Tag"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:35
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:36
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Example bullet type abbreviations"
|
msgid "Example bullet type abbreviations"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:40
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:41
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "FMJ"
|
msgid "FMJ"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:59
|
#: 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/form_component.html.heex:104
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Grains"
|
msgid "Grains"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:64
|
#: 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/form_component.html.heex:137
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Incendiary"
|
msgid "Incendiary"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:78
|
#: lib/cannery_web/live/home_live.html.heex:55
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Instance Information"
|
msgid "Instance Information"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/invite_card.ex:35
|
#: lib/cannery_web/components/invite_card.ex:42
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Invite Disabled"
|
msgid "Invite Disabled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:111
|
#: lib/cannery_web/live/home_live.html.heex:82
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Invite Only"
|
msgid "Invite Only"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/topbar.ex:90
|
#: lib/cannery_web/components/topbar.ex:90
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:41
|
#: lib/cannery_web/live/invite_live/index.ex:42
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:3
|
#: lib/cannery_web/live/invite_live/index.html.heex:3
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Invites"
|
msgid "Invites"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:28
|
#: lib/cannery_web/templates/user_session/new.html.heex:25
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Keep me logged in for 60 days"
|
msgid "Keep me logged in for 60 days"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/container_table_component.ex:48
|
#: lib/cannery_web/components/container_table_component.ex:48
|
||||||
#: lib/cannery_web/components/move_ammo_group_component.ex:69
|
#: 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/form_component.html.heex:43
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Location"
|
msgid "Location"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/container_card.ex:51
|
#: lib/cannery_web/components/container_card.ex:49
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:20
|
#: lib/cannery_web/live/container_live/show.html.heex:17
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Location:"
|
msgid "Location:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/form_component.html.heex:38
|
#: lib/cannery_web/live/container_live/form_component.html.heex:39
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Magazine, Clip, Ammo Box, etc"
|
msgid "Magazine, Clip, Ammo Box, etc"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:67
|
#: 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/form_component.html.heex:149
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Manufacturer"
|
msgid "Manufacturer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/form_component.html.heex:31
|
#: lib/cannery_web/live/container_live/form_component.html.heex:32
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Metal ammo can with the anime girl sticker"
|
msgid "Metal ammo can with the anime girl sticker"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/form_component.html.heex:23
|
#: lib/cannery_web/live/container_live/form_component.html.heex:24
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "My cool ammo can"
|
msgid "My cool ammo can"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:45
|
#: lib/cannery_web/components/ammo_type_table_component.ex:45
|
||||||
#: lib/cannery_web/components/container_table_component.ex:46
|
#: 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/form_component.html.heex:21
|
||||||
#: lib/cannery_web/live/container_live/form_component.html.heex:20
|
#: lib/cannery_web/live/container_live/form_component.html.heex:21
|
||||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:20
|
#: lib/cannery_web/live/invite_live/form_component.html.heex:21
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:75
|
#: lib/cannery_web/live/tag_live/form_component.html.heex:21
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Name"
|
msgid "Name"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -258,7 +252,7 @@ msgstr ""
|
|||||||
msgid "New Container"
|
msgid "New Container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:37
|
#: lib/cannery_web/live/invite_live/index.ex:38
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "New Invite"
|
msgid "New Invite"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -268,13 +262,13 @@ msgstr ""
|
|||||||
msgid "New Tag"
|
msgid "New Tag"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:8
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:10
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:70
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:71
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "No Ammo"
|
msgid "No Ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:166
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:167
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "No ammo for this type"
|
msgid "No ammo for this type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -290,68 +284,68 @@ msgstr ""
|
|||||||
msgid "No invites"
|
msgid "No invites"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:31
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:29
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:43
|
#: lib/cannery_web/live/tag_live/index.html.heex:43
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "No tags"
|
msgid "No tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:37
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:38
|
||||||
#: lib/cannery_web/components/ammo_group_table_component.ex:81
|
#: lib/cannery_web/components/ammo_group_table_component.ex:81
|
||||||
#: lib/cannery_web/components/shot_group_table_component.ex:43
|
#: 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/form_component.html.heex:50
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:93
|
#: 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/form_component.html.heex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Notes"
|
msgid "Notes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:51
|
#: lib/cannery_web/components/ammo_group_card.ex:52
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:24
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:24
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Notes:"
|
msgid "Notes:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/form_component.html.heex:46
|
#: lib/cannery_web/live/container_live/form_component.html.heex:47
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "On the bookshelf"
|
msgid "On the bookshelf"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:60
|
#: 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/form_component.html.heex:112
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Pressure"
|
msgid "Pressure"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_table_component.ex:78
|
#: lib/cannery_web/components/ammo_group_table_component.ex:78
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:35
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Price paid"
|
msgid "Price paid"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:70
|
#: lib/cannery_web/components/ammo_group_card.ex:68
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Price paid:"
|
msgid "Price paid:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:61
|
#: 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/form_component.html.heex:119
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Primer type"
|
msgid "Primer type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:110
|
#: lib/cannery_web/live/home_live.html.heex:81
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Public Signups"
|
msgid "Public Signups"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:56
|
#: lib/cannery_web/live/home_live.html.heex:33
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Secure:"
|
msgid "Secure:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:59
|
#: lib/cannery_web/live/home_live.html.heex:36
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Self-host your own instance, or use an instance from someone you trust."
|
msgid "Self-host your own instance, or use an instance from someone you trust."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -362,12 +356,12 @@ msgstr ""
|
|||||||
msgid "Settings"
|
msgid "Settings"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:66
|
#: lib/cannery_web/live/home_live.html.heex:43
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Simple:"
|
msgid "Simple:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:47
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:48
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Steel"
|
msgid "Steel"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -391,61 +385,51 @@ msgstr ""
|
|||||||
msgid "Tags can be added to your containers to help you organize"
|
msgid "Tags can be added to your containers to help you organize"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:85
|
#: lib/cannery_web/live/tag_live/form_component.html.heex:31
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Text color"
|
msgid "Text color"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:35
|
#: lib/cannery_web/live/home_live.html.heex:14
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "The self-hosted firearm tracker website"
|
msgid "The self-hosted firearm tracker website"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:63
|
#: 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/form_component.html.heex:133
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Tracer"
|
msgid "Tracer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/container_table_component.ex:49
|
#: lib/cannery_web/components/container_table_component.ex:49
|
||||||
#: lib/cannery_web/components/move_ammo_group_component.ex:68
|
#: 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/form_component.html.heex:36
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Type"
|
msgid "Type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/container_card.ex:45
|
#: lib/cannery_web/components/container_card.ex:44
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:14
|
#: lib/cannery_web/live/container_live/show.html.heex:12
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Type:"
|
msgid "Type:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:121
|
#: lib/cannery_web/live/invite_live/index.html.heex:115
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Users"
|
msgid "Users"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/invite_card.ex:30
|
#: lib/cannery_web/live/invite_live/form_component.html.heex:25
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Uses Left:"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:24
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Uses left"
|
msgid "Uses left"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:31
|
#: lib/cannery_web/live/home_live.html.heex:37
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Welcome to %{name}"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:60
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Your data stays with you, period"
|
msgid "Your data stays with you, period"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:72
|
#: lib/cannery_web/live/container_live/show.html.heex:68
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "No tags for this container"
|
msgid "No tags for this container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -461,15 +445,15 @@ msgstr ""
|
|||||||
msgid "Range day"
|
msgid "Range day"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:45
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:46
|
||||||
#: lib/cannery_web/components/shot_group_table_component.ex:44
|
#: lib/cannery_web/components/shot_group_table_component.ex:44
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:94
|
#: lib/cannery_web/live/ammo_group_live/show.ex:94
|
||||||
#: lib/cannery_web/live/range_live/form_component.html.heex:36
|
#: lib/cannery_web/live/range_live/form_component.html.heex:37
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Date"
|
msgid "Date"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/form_component.html.heex:21
|
#: lib/cannery_web/live/range_live/form_component.html.heex:22
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Shots fired"
|
msgid "Shots fired"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -496,21 +480,21 @@ msgstr ""
|
|||||||
msgid "New Shot Records"
|
msgid "New Shot Records"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:50
|
#: lib/cannery_web/live/range_live/index.html.heex:48
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:92
|
#: lib/cannery_web/live/range_live/index.html.heex:90
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "No shots recorded"
|
msgid "No shots recorded"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:21
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:22
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:25
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:26
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Rounds left"
|
msgid "Rounds left"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/shot_group_table_component.ex:42
|
#: lib/cannery_web/components/shot_group_table_component.ex:42
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:92
|
#: lib/cannery_web/live/ammo_group_live/show.ex:92
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
#: lib/cannery_web/live/range_live/index.html.heex:62
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Rounds shot"
|
msgid "Rounds shot"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -522,7 +506,7 @@ msgid "Shot Records"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.ex:38
|
#: lib/cannery_web/live/ammo_group_live/index.ex:38
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:117
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:118
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Move ammo"
|
msgid "Move ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -532,100 +516,95 @@ msgstr ""
|
|||||||
msgid "No other containers"
|
msgid "No other containers"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:55
|
#: lib/cannery_web/live/range_live/index.html.heex:53
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Shot log"
|
msgid "Shot log"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:71
|
#: lib/cannery_web/components/ammo_group_card.ex:69
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:78
|
#: lib/cannery_web/components/ammo_group_card.ex:76
|
||||||
#: lib/cannery_web/components/ammo_group_table_component.ex:153
|
#: 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_group_table_component.ex:225
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:180
|
#: 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:37
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:44
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:44
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:136
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:137
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "$%{amount}"
|
msgid "$%{amount}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:75
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:76
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Bimetal"
|
msgid "Bimetal"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:51
|
#: 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/form_component.html.heex:73
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Jacket type"
|
msgid "Jacket type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:52
|
#: 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/form_component.html.heex:80
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Muzzle velocity"
|
msgid "Muzzle velocity"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:55
|
#: 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/form_component.html.heex:94
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Powder grains per charge"
|
msgid "Powder grains per charge"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:53
|
#: 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/form_component.html.heex:90
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Powder type"
|
msgid "Powder type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:68
|
#: 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/form_component.html.heex:153
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "UPC"
|
msgid "UPC"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:78
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:80
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Confirm new password"
|
msgid "Confirm new password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:32
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:33
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:87
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:89
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Current password"
|
msgid "Current password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:71
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:73
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "New password"
|
msgid "New password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:93
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:94
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Stage"
|
msgid "Stage"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:93
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:94
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Unstage"
|
msgid "Unstage"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:62
|
#: 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/form_component.html.heex:126
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Firing type"
|
msgid "Firing type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/layout/live.html.heex:50
|
#: lib/cannery_web/templates/layout/live.html.heex:43
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Reconnecting..."
|
msgid "Reconnecting..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/layout/live.html.heex:37
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Loading..."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/index.ex:32
|
#: lib/cannery_web/live/container_live/index.ex:32
|
||||||
#: lib/cannery_web/live/container_live/show.ex:113
|
#: lib/cannery_web/live/container_live/show.ex:113
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
@ -638,16 +617,16 @@ msgstr ""
|
|||||||
msgid "Edit %{name} tags"
|
msgid "Edit %{name} tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/container_card.ex:63
|
#: lib/cannery_web/components/container_card.ex:60
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:67
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:68
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:39
|
#: lib/cannery_web/live/container_live/show.html.heex:35
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "Rounds:"
|
msgid "Rounds:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_table_component.ex:222
|
#: lib/cannery_web/components/ammo_group_table_component.ex:222
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:179
|
#: lib/cannery_web/components/ammo_type_table_component.ex:179
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:142
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:143
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "No cost information"
|
msgid "No cost information"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -697,7 +676,7 @@ msgstr ""
|
|||||||
msgid "Log in"
|
msgid "Log in"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:34
|
#: lib/cannery_web/controllers/user_registration_controller.ex:32
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Register"
|
msgid "Register"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -713,60 +692,53 @@ msgstr ""
|
|||||||
msgid "Record Shots"
|
msgid "Record Shots"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:66
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:67
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Copies"
|
msgid "Copies"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:123
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:124
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Added on:"
|
msgid "Added on:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/user_card.ex:34
|
#: lib/cannery_web/templates/user_registration/new.html.heex:32
|
||||||
#, elixir-autogen, elixir-format
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:133
|
||||||
msgid "User registered on"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:130
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "English"
|
msgid "English"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:135
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:132
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "French"
|
msgid "French"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:131
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "German"
|
msgid "German"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:33
|
#: lib/cannery_web/templates/user_registration/new.html.heex:28
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Language"
|
msgid "Language"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:136
|
#: lib/cannery_web/live/home_live.html.heex:107
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Get involved!"
|
msgid "Get involved!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:157
|
#: lib/cannery_web/live/home_live.html.heex:128
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Help translate"
|
msgid "Help translate"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:168
|
#: lib/cannery_web/live/home_live.html.heex:139
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Report bugs or request features"
|
msgid "Report bugs or request features"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:146
|
#: lib/cannery_web/live/home_live.html.heex:117
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "View the source code"
|
msgid "View the source code"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -789,7 +761,7 @@ msgstr ""
|
|||||||
msgid "Move Ammo"
|
msgid "Move Ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:119
|
#: lib/cannery_web/live/container_live/show.html.heex:113
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "No ammo in this container"
|
msgid "No ammo in this container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -804,38 +776,38 @@ msgstr ""
|
|||||||
msgid "This ammo is not in a container"
|
msgid "This ammo is not in a container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/container_card.ex:58
|
#: lib/cannery_web/components/container_card.ex:55
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:95
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:96
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:30
|
#: lib/cannery_web/live/container_live/show.html.heex:26
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Packs:"
|
msgid "Packs:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/topbar.ex:25
|
#: lib/cannery_web/components/topbar.ex:25
|
||||||
#: lib/cannery_web/live/home_live.ex:25
|
#: lib/cannery_web/live/home_live.html.heex:4
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Cannery logo"
|
msgid "Cannery logo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:27
|
#: lib/cannery_web/live/home_live.html.heex:6
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "isn't he cute >:3"
|
msgid "isn't he cute >:3"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:28
|
#: lib/cannery_web/live/invite_live/form_component.html.heex:29
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Leave \"Uses left\" blank to make invite unlimited"
|
msgid "Leave \"Uses left\" blank to make invite unlimited"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:86
|
#: lib/cannery_web/components/ammo_group_card.ex:83
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "Container:"
|
msgid "Container:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:63
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:64
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:39
|
#: 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/ammo_type_live/show.html.heex:153
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:105
|
#: lib/cannery_web/live/container_live/show.html.heex:99
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Show used"
|
msgid "Show used"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -863,9 +835,9 @@ msgstr ""
|
|||||||
msgid "Rounds"
|
msgid "Rounds"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:158
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:159
|
||||||
#: lib/cannery_web/live/container_live/index.html.heex:39
|
#: lib/cannery_web/live/container_live/index.html.heex:39
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:111
|
#: lib/cannery_web/live/container_live/show.html.heex:105
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "View as table"
|
msgid "View as table"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -875,7 +847,7 @@ msgstr ""
|
|||||||
msgid "Total ever packs"
|
msgid "Total ever packs"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:111
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:112
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Total ever packs:"
|
msgid "Total ever packs:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -885,7 +857,7 @@ msgstr ""
|
|||||||
msgid "Total ever rounds"
|
msgid "Total ever rounds"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:83
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:84
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "Total ever rounds:"
|
msgid "Total ever rounds:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -895,7 +867,7 @@ msgstr ""
|
|||||||
msgid "Used packs"
|
msgid "Used packs"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:103
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:104
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Used packs:"
|
msgid "Used packs:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -905,17 +877,17 @@ msgstr ""
|
|||||||
msgid "Used rounds"
|
msgid "Used rounds"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:75
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:76
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "Used rounds:"
|
msgid "Used rounds:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:33
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:34
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "Used up!"
|
msgid "Used up!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:66
|
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "Rounds shot chart"
|
msgid "Rounds shot chart"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1016,7 +988,7 @@ msgid "UPC:"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_type_table_component.ex:120
|
#: lib/cannery_web/components/ammo_type_table_component.ex:120
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:132
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:133
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Average CPR"
|
msgid "Average CPR"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1027,7 +999,7 @@ msgstr ""
|
|||||||
msgid "Edit %{ammo_type_name}"
|
msgid "Edit %{ammo_type_name}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:39
|
#: lib/cannery_web/components/ammo_group_card.ex:40
|
||||||
#: lib/cannery_web/components/ammo_group_table_component.ex:231
|
#: lib/cannery_web/components/ammo_group_table_component.ex:231
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Empty"
|
msgid "Empty"
|
||||||
@ -1038,7 +1010,7 @@ msgstr ""
|
|||||||
msgid "CPR"
|
msgid "CPR"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:77
|
#: lib/cannery_web/components/ammo_group_card.ex:75
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "CPR:"
|
msgid "CPR:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1048,7 +1020,7 @@ msgstr ""
|
|||||||
msgid "Original Count"
|
msgid "Original Count"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:44
|
#: lib/cannery_web/components/ammo_group_card.ex:47
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "Original Count:"
|
msgid "Original Count:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1058,12 +1030,12 @@ msgstr ""
|
|||||||
msgid "Home"
|
msgid "Home"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:28
|
#: lib/cannery_web/live/container_live/show.html.heex:24
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "Total packs:"
|
msgid "Total packs:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:37
|
#: lib/cannery_web/live/container_live/show.html.heex:33
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "Total rounds:"
|
msgid "Total rounds:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1073,7 +1045,7 @@ msgstr ""
|
|||||||
msgid "Last used on"
|
msgid "Last used on"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
#: lib/cannery_web/components/ammo_group_card.ex:62
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Last used on:"
|
msgid "Last used on:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1084,7 +1056,7 @@ msgid "Never used"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/ammo_group_table_component.ex:57
|
#: lib/cannery_web/components/ammo_group_table_component.ex:57
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:42
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Purchased on"
|
msgid "Purchased on"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1111,7 +1083,7 @@ msgstr ""
|
|||||||
msgid "Search catalog"
|
msgid "Search catalog"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:57
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:58
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "Search ammo"
|
msgid "Search ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1126,12 +1098,85 @@ msgstr ""
|
|||||||
msgid "Search tags"
|
msgid "Search tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:85
|
#: lib/cannery_web/live/range_live/index.html.heex:83
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Search shot records"
|
msgid "Search shot records"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:133
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Spanish"
|
msgid "Spanish"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/templates/error/error.html.heex:8
|
||||||
|
#: lib/cannery_web/templates/layout/root.html.heex:13
|
||||||
|
#: lib/cannery_web/templates/layout/root.html.heex:14
|
||||||
|
#: lib/cannery_web/views/layout_view.ex:15
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Cannery"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/components/user_card.ex:33
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Email unconfirmed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/components/user_card.ex:38
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "User registered on%{registered_datetime}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/components/user_card.ex:27
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "User was confirmed at%{confirmed_datetime}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/components/invite_card.ex:37
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Uses Left: Unlimited"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/home_live.html.heex:26
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Cannery lets you easily keep an eye on your ammo levels before and after range day"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/views/layout_view.ex:11
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Cannery | %{title}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/home_live.html.heex:78
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Registration:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/home_live.html.heex:88
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Version:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/home_live.html.heex:10
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Welcome to Cannery"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:63
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Disable"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:63
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Enable"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/components/invite_card.ex:32
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Uses Left: %{uses_left_count}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/components/invite_card.ex:52
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Uses: %{uses_count}"
|
||||||
|
msgstr ""
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Language: en\n"
|
"Language: en\n"
|
||||||
"Plural-Forms: nplurals=2\n"
|
|
||||||
|
|
||||||
#: lib/cannery/accounts/email.ex:30
|
#: lib/cannery/accounts/email.ex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
|
@ -56,11 +56,11 @@ msgstr ""
|
|||||||
msgid "Not found"
|
msgid "Not found"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:16
|
#: lib/cannery_web/templates/user_registration/new.html.heex:13
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:16
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:14
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:21
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:23
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:64
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:67
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:119
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:123
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Oops, something went wrong! Please check the errors below."
|
msgid "Oops, something went wrong! Please check the errors below."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -70,14 +70,15 @@ msgstr ""
|
|||||||
msgid "Reset password link is invalid or it has expired."
|
msgid "Reset password link is invalid or it has expired."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:24
|
#: lib/cannery_web/controllers/user_registration_controller.ex:22
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:55
|
#: lib/cannery_web/controllers/user_registration_controller.ex:51
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Sorry, public registration is disabled"
|
msgid "Sorry, public registration is disabled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:14
|
#: lib/cannery_web/controllers/user_registration_controller.ex:12
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:45
|
#: lib/cannery_web/controllers/user_registration_controller.ex:41
|
||||||
|
#: lib/cannery_web/controllers/user_registration_controller.ex:70
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Sorry, this invite was not found or expired"
|
msgid "Sorry, this invite was not found or expired"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -97,7 +98,7 @@ msgstr ""
|
|||||||
msgid "User confirmation link is invalid or it has expired."
|
msgid "User confirmation link is invalid or it has expired."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:18
|
#: lib/cannery_web/live/invite_live/index.ex:19
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "You are not authorized to view this page"
|
msgid "You are not authorized to view this page"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -107,23 +108,23 @@ msgstr ""
|
|||||||
msgid "You are not authorized to view this page."
|
msgid "You are not authorized to view this page."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:137
|
#: lib/cannery/accounts/user.ex:144
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "did not change"
|
msgid "did not change"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:158
|
#: lib/cannery/accounts/user.ex:165
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "does not match password"
|
msgid "does not match password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
## From Ecto.Changeset.put_change/3
|
## From Ecto.Changeset.put_change/3
|
||||||
#: lib/cannery/accounts/user.ex:195
|
#: lib/cannery/accounts/user.ex:202
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "is not valid"
|
msgid "is not valid"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:92
|
#: lib/cannery/accounts/user.ex:99
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "must have the @ sign and no spaces"
|
msgid "must have the @ sign and no spaces"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -180,7 +181,7 @@ msgstr ""
|
|||||||
msgid "Please select an ammo type and container"
|
msgid "Please select an ammo type and container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:69
|
#: lib/cannery_web/live/range_live/index.html.heex:67
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Your browser does not support the canvas element."
|
msgid "Your browser does not support the canvas element."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -9,50 +9,32 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Language: en\n"
|
"Language: en\n"
|
||||||
"Plural-Forms: nplurals=2\n"
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:86
|
#: lib/cannery_web/live/ammo_type_live/form_component.ex:86
|
||||||
#: lib/cannery_web/live/container_live/form_component.ex:89
|
#: lib/cannery_web/live/container_live/form_component.ex:89
|
||||||
#: lib/cannery_web/live/invite_live/form_component.ex:80
|
#: lib/cannery_web/live/invite_live/form_component.ex:80
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:126
|
#: lib/cannery_web/live/tag_live/form_component.ex:79
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} created successfully"
|
msgid "%{name} created successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.ex:55
|
#: 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:64
|
#: lib/cannery_web/live/tag_live/index.ex:64
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} deleted succesfully"
|
msgid "%{name} deleted succesfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:109
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "%{name} disabled succesfully"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:87
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "%{name} enabled succesfully"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/index.ex:85
|
#: lib/cannery_web/live/container_live/index.ex:85
|
||||||
#: lib/cannery_web/live/container_live/show.ex:63
|
#: lib/cannery_web/live/container_live/show.ex:63
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} has been deleted"
|
msgid "%{name} has been deleted"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:67
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "%{name} updated succesfully"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
|
#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
|
||||||
#: lib/cannery_web/live/container_live/form_component.ex:70
|
#: lib/cannery_web/live/container_live/form_component.ex:70
|
||||||
#: lib/cannery_web/live/invite_live/form_component.ex:62
|
#: lib/cannery_web/live/invite_live/form_component.ex:62
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:108
|
#: lib/cannery_web/live/tag_live/form_component.ex:61
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} updated successfully"
|
msgid "%{name} updated successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -62,32 +44,27 @@ msgstr ""
|
|||||||
msgid "A link to confirm your email change has been sent to the new address."
|
msgid "A link to confirm your email change has been sent to the new address."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:103
|
#: lib/cannery_web/live/invite_live/index.html.heex:98
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:133
|
#: lib/cannery_web/live/invite_live/index.html.heex:126
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/index.html.heex:92
|
#: 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/index.html.heex:135
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:59
|
#: lib/cannery_web/live/container_live/show.html.heex:55
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:64
|
#: lib/cannery_web/live/tag_live/index.html.heex:63
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete %{name}?"
|
msgid "Are you sure you want to delete %{name}?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:49
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:153
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Are you sure you want to delete the invite for %{name}?"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:152
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete this ammo?"
|
msgid "Are you sure you want to delete this ammo?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:160
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:163
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete your account?"
|
msgid "Are you sure you want to delete your account?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -97,11 +74,6 @@ msgstr ""
|
|||||||
msgid "Are you sure you want to log out?"
|
msgid "Are you sure you want to log out?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:75
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Are you sure you want to make %{name} unlimited?"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_settings_controller.ex:77
|
#: lib/cannery_web/controllers/user_settings_controller.ex:77
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Email changed successfully."
|
msgid "Email changed successfully."
|
||||||
@ -132,23 +104,18 @@ msgstr ""
|
|||||||
msgid "Password updated successfully."
|
msgid "Password updated successfully."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:73
|
#: lib/cannery_web/controllers/user_registration_controller.ex:65
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Please check your email to verify your account"
|
msgid "Please check your email to verify your account"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:91
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:56
|
||||||
#, elixir-autogen, elixir-format
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:83
|
||||||
msgid "Register to setup %{name}"
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:158
|
||||||
msgstr ""
|
#: lib/cannery_web/live/container_live/form_component.html.heex:53
|
||||||
|
#: lib/cannery_web/live/invite_live/form_component.html.heex:34
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:55
|
#: lib/cannery_web/live/range_live/form_component.html.heex:43
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:82
|
#: lib/cannery_web/live/tag_live/form_component.html.heex:39
|
||||||
#: 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
|
|
||||||
#: lib/cannery_web/live/range_live/form_component.html.heex:42
|
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:93
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Saving..."
|
msgid "Saving..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -173,7 +140,7 @@ msgstr ""
|
|||||||
msgid "%{tag_name} has been removed from %{container_name}"
|
msgid "%{tag_name} has been removed from %{container_name}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:55
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:52
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Adding..."
|
msgid "Adding..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -183,13 +150,13 @@ msgstr ""
|
|||||||
msgid "Shots recorded successfully"
|
msgid "Shots recorded successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:28
|
#: lib/cannery_web/live/range_live/index.html.heex:27
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to unstage this ammo?"
|
msgid "Are you sure you want to unstage this ammo?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:137
|
#: lib/cannery_web/live/ammo_group_live/show.ex:142
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:118
|
#: lib/cannery_web/live/range_live/index.html.heex:116
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete this shot record?"
|
msgid "Are you sure you want to delete this shot record?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -215,7 +182,7 @@ msgstr ""
|
|||||||
msgid "Ammo moved to %{name} successfully"
|
msgid "Ammo moved to %{name} successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:121
|
#: lib/cannery_web/live/invite_live/index.ex:128
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Copied to clipboard"
|
msgid "Copied to clipboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -225,18 +192,18 @@ msgstr ""
|
|||||||
msgid "%{name} removed successfully"
|
msgid "%{name} removed successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:17
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:18
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:27
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:28
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "You'll need to"
|
msgid "You'll need to"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:75
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:76
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "Creating..."
|
msgid "Creating..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:141
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:144
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to change your language?"
|
msgid "Are you sure you want to change your language?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -270,7 +237,47 @@ msgstr[0] ""
|
|||||||
msgstr[1] ""
|
msgstr[1] ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:90
|
#: lib/cannery_web/live/ammo_type_live/index.html.heex:90
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:28
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:29
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/home_live.html.heex:65
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Register to setup Cannery"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:54
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{invite_name} deleted succesfully"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:115
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{invite_name} disabled succesfully"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:91
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{invite_name} enabled succesfully"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:69
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{invite_name} updated succesfully"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:140
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{user_email} deleted succesfully"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:48
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Are you sure you want to delete the invite for %{invite_name}?"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:73
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Are you sure you want to make %{invite_name} unlimited?"
|
||||||
|
msgstr ""
|
||||||
|
@ -56,11 +56,11 @@ msgstr ""
|
|||||||
msgid "Not found"
|
msgid "Not found"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:16
|
#: lib/cannery_web/templates/user_registration/new.html.heex:13
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:16
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:14
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:21
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:23
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:64
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:67
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:119
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:123
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Oops, something went wrong! Please check the errors below."
|
msgid "Oops, something went wrong! Please check the errors below."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -70,14 +70,15 @@ msgstr ""
|
|||||||
msgid "Reset password link is invalid or it has expired."
|
msgid "Reset password link is invalid or it has expired."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:24
|
#: lib/cannery_web/controllers/user_registration_controller.ex:22
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:55
|
#: lib/cannery_web/controllers/user_registration_controller.ex:51
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Sorry, public registration is disabled"
|
msgid "Sorry, public registration is disabled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:14
|
#: lib/cannery_web/controllers/user_registration_controller.ex:12
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:45
|
#: lib/cannery_web/controllers/user_registration_controller.ex:41
|
||||||
|
#: lib/cannery_web/controllers/user_registration_controller.ex:70
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Sorry, this invite was not found or expired"
|
msgid "Sorry, this invite was not found or expired"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -97,7 +98,7 @@ msgstr ""
|
|||||||
msgid "User confirmation link is invalid or it has expired."
|
msgid "User confirmation link is invalid or it has expired."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:18
|
#: lib/cannery_web/live/invite_live/index.ex:19
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "You are not authorized to view this page"
|
msgid "You are not authorized to view this page"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -107,22 +108,22 @@ msgstr ""
|
|||||||
msgid "You are not authorized to view this page."
|
msgid "You are not authorized to view this page."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:137
|
#: lib/cannery/accounts/user.ex:144
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "did not change"
|
msgid "did not change"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:158
|
#: lib/cannery/accounts/user.ex:165
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "does not match password"
|
msgid "does not match password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:195
|
#: lib/cannery/accounts/user.ex:202
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "is not valid"
|
msgid "is not valid"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:92
|
#: lib/cannery/accounts/user.ex:99
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "must have the @ sign and no spaces"
|
msgid "must have the @ sign and no spaces"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -179,7 +180,7 @@ msgstr ""
|
|||||||
msgid "Please select an ammo type and container"
|
msgid "Please select an ammo type and container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:69
|
#: lib/cannery_web/live/range_live/index.html.heex:67
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Your browser does not support the canvas element."
|
msgid "Your browser does not support the canvas element."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -25,12 +25,12 @@ msgstr ""
|
|||||||
## effect: edit them in PO (.po) files instead.
|
## effect: edit them in PO (.po) files instead.
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.ex:54
|
#: 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.ex:62
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:40
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:41
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Add Ammo"
|
msgid "Add Ammo"
|
||||||
msgstr "Añadir Munición"
|
msgstr "Añadir Munición"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:36
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:37
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Add your first box!"
|
msgid "Add your first box!"
|
||||||
msgstr "¡Añade tu primera caja!"
|
msgstr "¡Añade tu primera caja!"
|
||||||
@ -46,13 +46,13 @@ msgid "Add your first type!"
|
|||||||
msgstr "¡Añade tu primer tipo!"
|
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:15
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:44
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:45
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change email"
|
msgid "Change email"
|
||||||
msgstr "Cambiar correo electrónico"
|
msgstr "Cambiar correo electrónico"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:58
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:59
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:99
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:101
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change password"
|
msgid "Change password"
|
||||||
msgstr "Cambiar contraseña"
|
msgstr "Cambiar contraseña"
|
||||||
@ -62,14 +62,14 @@ msgstr "Cambiar contraseña"
|
|||||||
msgid "Create Invite"
|
msgid "Create Invite"
|
||||||
msgstr "Crear Invitación"
|
msgstr "Crear Invitación"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:162
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:165
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Delete User"
|
msgid "Delete User"
|
||||||
msgstr "Eliminar cuenta de Usuario"
|
msgstr "Eliminar cuenta de Usuario"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:52
|
#: lib/cannery_web/templates/user_registration/new.html.heex:47
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:3
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:45
|
#: lib/cannery_web/templates/user_session/new.html.heex:44
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Forgot your password?"
|
msgid "Forgot your password?"
|
||||||
msgstr "¿Has olvidado tu contraseña?"
|
msgstr "¿Has olvidado tu contraseña?"
|
||||||
@ -79,13 +79,13 @@ msgstr "¿Has olvidado tu contraseña?"
|
|||||||
msgid "Invite someone new!"
|
msgid "Invite someone new!"
|
||||||
msgstr "¡Invita a alguien nuevo!"
|
msgstr "¡Invita a alguien nuevo!"
|
||||||
|
|
||||||
#: lib/cannery_web/components/topbar.ex:137
|
#: lib/cannery_web/components/topbar.ex:135
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:30
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:31
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:49
|
#: lib/cannery_web/templates/user_registration/new.html.heex:44
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:48
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:47
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:30
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:31
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:3
|
#: lib/cannery_web/templates/user_session/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:33
|
#: lib/cannery_web/templates/user_session/new.html.heex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Log in"
|
msgid "Log in"
|
||||||
msgstr "Entrar"
|
msgstr "Entrar"
|
||||||
@ -110,51 +110,51 @@ msgstr "Nuevo Contenedor"
|
|||||||
msgid "New Tag"
|
msgid "New Tag"
|
||||||
msgstr "Nueva Etiqueta"
|
msgstr "Nueva Etiqueta"
|
||||||
|
|
||||||
#: lib/cannery_web/components/topbar.ex:128
|
#: lib/cannery_web/components/topbar.ex:127
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:26
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:28
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:3
|
#: lib/cannery_web/templates/user_registration/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:42
|
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:44
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:44
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:26
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:28
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:41
|
#: lib/cannery_web/templates/user_session/new.html.heex:41
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Register"
|
msgid "Register"
|
||||||
msgstr "Registrarse"
|
msgstr "Registrarse"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:3
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:16
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:15
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Resend confirmation instructions"
|
msgid "Resend confirmation instructions"
|
||||||
msgstr "Reenviar instrucciones de confirmación"
|
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:3
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:34
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:31
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Reset password"
|
msgid "Reset password"
|
||||||
msgstr "Resetear contraseña"
|
msgstr "Resetear contraseña"
|
||||||
|
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:53
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:54
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:81
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:82
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
#: lib/cannery_web/live/container_live/form_component.html.heex:51
|
||||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:31
|
#: lib/cannery_web/live/invite_live/form_component.html.heex:32
|
||||||
#: lib/cannery_web/live/range_live/form_component.html.heex:40
|
#: lib/cannery_web/live/range_live/form_component.html.heex:41
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:91
|
#: lib/cannery_web/live/tag_live/form_component.html.heex:37
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Save"
|
msgid "Save"
|
||||||
msgstr "Guardar"
|
msgstr "Guardar"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:16
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:15
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Send instructions to reset password"
|
msgid "Send instructions to reset password"
|
||||||
msgstr "Enviar instrucciones para reestablecer contraseña"
|
msgstr "Enviar instrucciones para reestablecer contraseña"
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:80
|
#: lib/cannery_web/live/container_live/show.html.heex:76
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Why not add one?"
|
msgid "Why not add one?"
|
||||||
msgstr "¿Por qué no añadir una?"
|
msgstr "¿Por qué no añadir una?"
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:53
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:50
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Add"
|
msgid "Add"
|
||||||
msgstr "Añadir"
|
msgstr "Añadir"
|
||||||
@ -169,9 +169,9 @@ msgstr "Preparar munición"
|
|||||||
msgid "Why not get some ready to shoot?"
|
msgid "Why not get some ready to shoot?"
|
||||||
msgstr "¿Por qué no preparar parte para disparar?"
|
msgstr "¿Por qué no preparar parte para disparar?"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:100
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:101
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:39
|
#: lib/cannery_web/live/range_live/index.html.heex:38
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Record shots"
|
msgid "Record shots"
|
||||||
msgstr "Tiros récord"
|
msgstr "Tiros récord"
|
||||||
@ -191,27 +191,27 @@ msgstr "Mover contenedores"
|
|||||||
msgid "Select"
|
msgid "Select"
|
||||||
msgstr "Seleccionar"
|
msgstr "Seleccionar"
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:31
|
#: lib/cannery_web/live/invite_live/index.html.heex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr "Copiar al portapapeles"
|
msgstr "Copiar al portapapeles"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:21
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:22
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "add a container first"
|
msgid "add a container first"
|
||||||
msgstr "añade primero un contenedor"
|
msgstr "añade primero un contenedor"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:75
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Create"
|
msgid "Create"
|
||||||
msgstr "Crear"
|
msgstr "Crear"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:113
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:115
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change Language"
|
msgid "Change Language"
|
||||||
msgstr "Cambiar Lenguaje"
|
msgstr "Cambiar Lenguaje"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:139
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:142
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change language"
|
msgid "Change language"
|
||||||
msgstr "Cambiar lenguaje"
|
msgstr "Cambiar lenguaje"
|
||||||
@ -221,44 +221,34 @@ msgstr "Cambiar lenguaje"
|
|||||||
msgid "View in Catalog"
|
msgid "View in Catalog"
|
||||||
msgstr "Ver en Catalogo"
|
msgstr "Ver en Catalogo"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:31
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:32
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "add an ammo type first"
|
msgid "add an ammo type first"
|
||||||
msgstr "añade primero un tipo de munición"
|
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 "Desactivar"
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:64
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Enable"
|
|
||||||
msgstr "Activar"
|
|
||||||
|
|
||||||
#: lib/cannery_web/components/move_ammo_group_component.ex:80
|
#: lib/cannery_web/components/move_ammo_group_component.ex:80
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Move ammo"
|
msgid "Move ammo"
|
||||||
msgstr "Mover munición"
|
msgstr "Mover munición"
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:80
|
#: lib/cannery_web/live/invite_live/index.html.heex:78
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Set Unlimited"
|
msgid "Set Unlimited"
|
||||||
msgstr "Activar ilimitados"
|
msgstr "Activar ilimitados"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:32
|
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Stage for range"
|
msgid "Stage for range"
|
||||||
msgstr "Preparar para el campo de tiro"
|
msgstr "Preparar para el campo de tiro"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
#: lib/cannery_web/live/range_live/index.html.heex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Unstage from range"
|
msgid "Unstage from range"
|
||||||
msgstr "Desmontar del campo de tiro"
|
msgstr "Desmontar del campo de tiro"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:153
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:156
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Export Data as JSON"
|
msgid "Export Data as JSON"
|
||||||
msgstr "Exportar datos como JSON"
|
msgstr "Exportar datos como JSON"
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -69,11 +69,11 @@ msgstr "Correo o contraseña incorrecta"
|
|||||||
msgid "Not found"
|
msgid "Not found"
|
||||||
msgstr "No se encontró"
|
msgstr "No se encontró"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:16
|
#: lib/cannery_web/templates/user_registration/new.html.heex:13
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:16
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:14
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:21
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:23
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:64
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:67
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:119
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:123
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Oops, something went wrong! Please check the errors below."
|
msgid "Oops, something went wrong! Please check the errors below."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -86,14 +86,15 @@ msgid "Reset password link is invalid or it has expired."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"El enlace de reestablecimiento de la contraseña es inválido o ha caducado."
|
"El enlace de reestablecimiento de la contraseña es inválido o ha caducado."
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:24
|
#: lib/cannery_web/controllers/user_registration_controller.ex:22
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:55
|
#: lib/cannery_web/controllers/user_registration_controller.ex:51
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Sorry, public registration is disabled"
|
msgid "Sorry, public registration is disabled"
|
||||||
msgstr "Lo sentimos, el registro público no está habilitado"
|
msgstr "Lo sentimos, el registro público no está habilitado"
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:14
|
#: lib/cannery_web/controllers/user_registration_controller.ex:12
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:45
|
#: lib/cannery_web/controllers/user_registration_controller.ex:41
|
||||||
|
#: lib/cannery_web/controllers/user_registration_controller.ex:70
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Sorry, this invite was not found or expired"
|
msgid "Sorry, this invite was not found or expired"
|
||||||
msgstr "Lo sentimos, esta invitación no es válida o ha caducado"
|
msgstr "Lo sentimos, esta invitación no es válida o ha caducado"
|
||||||
@ -113,7 +114,7 @@ msgstr "No autorizado"
|
|||||||
msgid "User confirmation link is invalid or it has expired."
|
msgid "User confirmation link is invalid or it has expired."
|
||||||
msgstr "El enlace de confirmación de usuario no es válido o ha caducado."
|
msgstr "El enlace de confirmación de usuario no es válido o ha caducado."
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:18
|
#: lib/cannery_web/live/invite_live/index.ex:19
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "You are not authorized to view this page"
|
msgid "You are not authorized to view this page"
|
||||||
msgstr "No está autorizado a ver esta página"
|
msgstr "No está autorizado a ver esta página"
|
||||||
@ -123,22 +124,22 @@ msgstr "No está autorizado a ver esta página"
|
|||||||
msgid "You are not authorized to view this page."
|
msgid "You are not authorized to view this page."
|
||||||
msgstr "No está autorizado a ver esta página."
|
msgstr "No está autorizado a ver esta página."
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:137
|
#: lib/cannery/accounts/user.ex:144
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "did not change"
|
msgid "did not change"
|
||||||
msgstr "no cambió"
|
msgstr "no cambió"
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:158
|
#: lib/cannery/accounts/user.ex:165
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "does not match password"
|
msgid "does not match password"
|
||||||
msgstr "no coincide con la contraseña"
|
msgstr "no coincide con la contraseña"
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:195
|
#: lib/cannery/accounts/user.ex:202
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "is not valid"
|
msgid "is not valid"
|
||||||
msgstr "no es válido"
|
msgstr "no es válido"
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:92
|
#: lib/cannery/accounts/user.ex:99
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "must have the @ sign and no spaces"
|
msgid "must have the @ sign and no spaces"
|
||||||
msgstr "debe tener el signo @ y no contener espacios"
|
msgstr "debe tener el signo @ y no contener espacios"
|
||||||
@ -195,7 +196,7 @@ msgstr "Multiplicador inválido"
|
|||||||
msgid "Please select an ammo type and container"
|
msgid "Please select an ammo type and container"
|
||||||
msgstr "Por favor escoja un tipo de munición y un contenedor"
|
msgstr "Por favor escoja un tipo de munición y un contenedor"
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:69
|
#: lib/cannery_web/live/range_live/index.html.heex:67
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Your browser does not support the canvas element."
|
msgid "Your browser does not support the canvas element."
|
||||||
msgstr "Su navegador no es compatible con el elemento lienzo."
|
msgstr "Su navegador no es compatible con el elemento lienzo."
|
||||||
|
@ -26,45 +26,28 @@ msgstr ""
|
|||||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:86
|
#: lib/cannery_web/live/ammo_type_live/form_component.ex:86
|
||||||
#: lib/cannery_web/live/container_live/form_component.ex:89
|
#: lib/cannery_web/live/container_live/form_component.ex:89
|
||||||
#: lib/cannery_web/live/invite_live/form_component.ex:80
|
#: lib/cannery_web/live/invite_live/form_component.ex:80
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:126
|
#: lib/cannery_web/live/tag_live/form_component.ex:79
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} created successfully"
|
msgid "%{name} created successfully"
|
||||||
msgstr "%{name} creado exitosamente"
|
msgstr "%{name} creado exitosamente"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.ex:55
|
#: 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:64
|
#: lib/cannery_web/live/tag_live/index.ex:64
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} deleted succesfully"
|
msgid "%{name} deleted succesfully"
|
||||||
msgstr "%{name} borrado exitosamente"
|
msgstr "%{name} borrado exitosamente"
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:109
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "%{name} disabled succesfully"
|
|
||||||
msgstr "%{name} desactivado exitosamente"
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:87
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "%{name} enabled succesfully"
|
|
||||||
msgstr "%{name} activado exitosamente"
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/index.ex:85
|
#: lib/cannery_web/live/container_live/index.ex:85
|
||||||
#: lib/cannery_web/live/container_live/show.ex:63
|
#: lib/cannery_web/live/container_live/show.ex:63
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} has been deleted"
|
msgid "%{name} has been deleted"
|
||||||
msgstr "%{name} ha sido borrado"
|
msgstr "%{name} ha sido borrado"
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:67
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "%{name} updated succesfully"
|
|
||||||
msgstr "%{name} actualizado exitosamente"
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
|
#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
|
||||||
#: lib/cannery_web/live/container_live/form_component.ex:70
|
#: lib/cannery_web/live/container_live/form_component.ex:70
|
||||||
#: lib/cannery_web/live/invite_live/form_component.ex:62
|
#: lib/cannery_web/live/invite_live/form_component.ex:62
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:108
|
#: lib/cannery_web/live/tag_live/form_component.ex:61
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} updated successfully"
|
msgid "%{name} updated successfully"
|
||||||
msgstr "%{name} actualizado exitosamente"
|
msgstr "%{name} actualizado exitosamente"
|
||||||
@ -76,32 +59,27 @@ msgstr ""
|
|||||||
"Un enlace para confirmar el correo electrónico ha sido enviado a la nueva "
|
"Un enlace para confirmar el correo electrónico ha sido enviado a la nueva "
|
||||||
"dirección."
|
"dirección."
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:103
|
#: lib/cannery_web/live/invite_live/index.html.heex:98
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:133
|
#: lib/cannery_web/live/invite_live/index.html.heex:126
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
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!"
|
msgstr "Está seguro que desea eliminar %{email}? Esta acción es permanente!"
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/index.html.heex:92
|
#: 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/index.html.heex:135
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:59
|
#: lib/cannery_web/live/container_live/show.html.heex:55
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:64
|
#: lib/cannery_web/live/tag_live/index.html.heex:63
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete %{name}?"
|
msgid "Are you sure you want to delete %{name}?"
|
||||||
msgstr "Está seguro que desea eliminar %{name}?"
|
msgstr "Está seguro que desea eliminar %{name}?"
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:49
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:153
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
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:152
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete this ammo?"
|
msgid "Are you sure you want to delete this ammo?"
|
||||||
msgstr "Está seguro que desea eliminar esta munición?"
|
msgstr "Está seguro que desea eliminar esta munición?"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:160
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:163
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete your account?"
|
msgid "Are you sure you want to delete your account?"
|
||||||
msgstr "Está seguro que desea eliminar su cuenta?"
|
msgstr "Está seguro que desea eliminar su cuenta?"
|
||||||
@ -111,11 +89,6 @@ msgstr "Está seguro que desea eliminar su cuenta?"
|
|||||||
msgid "Are you sure you want to log out?"
|
msgid "Are you sure you want to log out?"
|
||||||
msgstr "Está seguro que desea cerrar sesión?"
|
msgstr "Está seguro que desea cerrar sesión?"
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:75
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Are you sure you want to make %{name} unlimited?"
|
|
||||||
msgstr "Está seguro que desea hacer %{name} ilimitado?"
|
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_settings_controller.ex:77
|
#: lib/cannery_web/controllers/user_settings_controller.ex:77
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Email changed successfully."
|
msgid "Email changed successfully."
|
||||||
@ -150,23 +123,18 @@ msgstr "Contraseña reiniciada exitosamente."
|
|||||||
msgid "Password updated successfully."
|
msgid "Password updated successfully."
|
||||||
msgstr "Contraseña cambiada exitosamente."
|
msgstr "Contraseña cambiada exitosamente."
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:73
|
#: lib/cannery_web/controllers/user_registration_controller.ex:65
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Please check your email to verify your account"
|
msgid "Please check your email to verify your account"
|
||||||
msgstr "Por favor chequea el correo para verificar tu cuenta"
|
msgstr "Por favor chequea el correo para verificar tu cuenta"
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:91
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:56
|
||||||
#, elixir-autogen, elixir-format
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:83
|
||||||
msgid "Register to setup %{name}"
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:158
|
||||||
msgstr "Regístrese para configurar %{name}"
|
#: lib/cannery_web/live/container_live/form_component.html.heex:53
|
||||||
|
#: lib/cannery_web/live/invite_live/form_component.html.heex:34
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:55
|
#: lib/cannery_web/live/range_live/form_component.html.heex:43
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:82
|
#: lib/cannery_web/live/tag_live/form_component.html.heex:39
|
||||||
#: 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
|
|
||||||
#: lib/cannery_web/live/range_live/form_component.html.heex:42
|
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:93
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Saving..."
|
msgid "Saving..."
|
||||||
msgstr "Guardando..."
|
msgstr "Guardando..."
|
||||||
@ -192,7 +160,7 @@ msgstr "%{name} añadido exitosamente"
|
|||||||
msgid "%{tag_name} has been removed from %{container_name}"
|
msgid "%{tag_name} has been removed from %{container_name}"
|
||||||
msgstr "se ha removido %{tag_name} de %{container_name}"
|
msgstr "se ha removido %{tag_name} de %{container_name}"
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:55
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:52
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Adding..."
|
msgid "Adding..."
|
||||||
msgstr "Añadiendo..."
|
msgstr "Añadiendo..."
|
||||||
@ -202,13 +170,13 @@ msgstr "Añadiendo..."
|
|||||||
msgid "Shots recorded successfully"
|
msgid "Shots recorded successfully"
|
||||||
msgstr "Tiros registrados exitosamente"
|
msgstr "Tiros registrados exitosamente"
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:28
|
#: lib/cannery_web/live/range_live/index.html.heex:27
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to unstage this ammo?"
|
msgid "Are you sure you want to unstage this ammo?"
|
||||||
msgstr "Está seguro que desea desmontar esta munición?"
|
msgstr "Está seguro que desea desmontar esta munición?"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:137
|
#: lib/cannery_web/live/ammo_group_live/show.ex:142
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:118
|
#: lib/cannery_web/live/range_live/index.html.heex:116
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete this shot record?"
|
msgid "Are you sure you want to delete this shot record?"
|
||||||
msgstr "¿Está segure que quiere borrar este récord de disparos?"
|
msgstr "¿Está segure que quiere borrar este récord de disparos?"
|
||||||
@ -234,7 +202,7 @@ msgstr "%{email} confirmado exitosamente."
|
|||||||
msgid "Ammo moved to %{name} successfully"
|
msgid "Ammo moved to %{name} successfully"
|
||||||
msgstr "Munición movida a %{name} exitosamente"
|
msgstr "Munición movida a %{name} exitosamente"
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:121
|
#: lib/cannery_web/live/invite_live/index.ex:128
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Copied to clipboard"
|
msgid "Copied to clipboard"
|
||||||
msgstr "Copiado al portapapeles"
|
msgstr "Copiado al portapapeles"
|
||||||
@ -244,18 +212,18 @@ msgstr "Copiado al portapapeles"
|
|||||||
msgid "%{name} removed successfully"
|
msgid "%{name} removed successfully"
|
||||||
msgstr "%{name} eliminado exitosamente"
|
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:18
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:27
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:28
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "You'll need to"
|
msgid "You'll need to"
|
||||||
msgstr "Necesitará hacerlo"
|
msgstr "Necesitará hacerlo"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:75
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:76
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Creating..."
|
msgid "Creating..."
|
||||||
msgstr "Creando..."
|
msgstr "Creando..."
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:141
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:144
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to change your language?"
|
msgid "Are you sure you want to change your language?"
|
||||||
msgstr "¿Está segure de que quiere cambiar el idioma?"
|
msgstr "¿Está segure de que quiere cambiar el idioma?"
|
||||||
@ -289,9 +257,49 @@ msgstr[0] "Munición añadida exitosamente"
|
|||||||
msgstr[1] "Municiones añadidas exitosamente"
|
msgstr[1] "Municiones añadidas exitosamente"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:90
|
#: lib/cannery_web/live/ammo_type_live/index.html.heex:90
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:28
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:29
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"¿Está seguro de que quiere borrar %{name}? ¡Esto también borrará todos los "
|
"¿Está seguro de que quiere borrar %{name}? ¡Esto también borrará todos los "
|
||||||
"tipos de munición %{name}!"
|
"tipos de munición %{name}!"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/home_live.html.heex:65
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Register to setup Cannery"
|
||||||
|
msgstr "Regístrese para configurar %{name}"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:54
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{invite_name} deleted succesfully"
|
||||||
|
msgstr "%{name} borrado exitosamente"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:115
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{invite_name} disabled succesfully"
|
||||||
|
msgstr "%{name} desactivado exitosamente"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:91
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{invite_name} enabled succesfully"
|
||||||
|
msgstr "%{name} activado exitosamente"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:69
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{invite_name} updated succesfully"
|
||||||
|
msgstr "%{name} actualizado exitosamente"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:140
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{user_email} deleted succesfully"
|
||||||
|
msgstr "%{name} borrado exitosamente"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:48
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Are you sure you want to delete the invite for %{invite_name}?"
|
||||||
|
msgstr "Está seguro que quiere eliminar la invitación para %{name}?"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:73
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Are you sure you want to make %{invite_name} unlimited?"
|
||||||
|
msgstr "Está seguro que desea hacer %{name} ilimitado?"
|
||||||
|
@ -25,12 +25,12 @@ msgstr ""
|
|||||||
# # effect: edit them in PO (.po) files instead.
|
# # effect: edit them in PO (.po) files instead.
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.ex:54
|
#: 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.ex:62
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:40
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:41
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Add Ammo"
|
msgid "Add Ammo"
|
||||||
msgstr "ajouter munition"
|
msgstr "ajouter munition"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:36
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:37
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Add your first box!"
|
msgid "Add your first box!"
|
||||||
msgstr "Ajoutez votre première caisse !"
|
msgstr "Ajoutez votre première caisse !"
|
||||||
@ -46,13 +46,13 @@ msgid "Add your first type!"
|
|||||||
msgstr "Ajoutez votre premier type !"
|
msgstr "Ajoutez votre premier type !"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:15
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:15
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:44
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:45
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change email"
|
msgid "Change email"
|
||||||
msgstr "Changer le mél"
|
msgstr "Changer le mél"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:58
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:59
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:99
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:101
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change password"
|
msgid "Change password"
|
||||||
msgstr "Changer le mot de passe"
|
msgstr "Changer le mot de passe"
|
||||||
@ -62,14 +62,14 @@ msgstr "Changer le mot de passe"
|
|||||||
msgid "Create Invite"
|
msgid "Create Invite"
|
||||||
msgstr "Créer une invitation"
|
msgstr "Créer une invitation"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:162
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:165
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Delete User"
|
msgid "Delete User"
|
||||||
msgstr "Supprimer utilisateur"
|
msgstr "Supprimer utilisateur"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:52
|
#: lib/cannery_web/templates/user_registration/new.html.heex:47
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:3
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:45
|
#: lib/cannery_web/templates/user_session/new.html.heex:44
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Forgot your password?"
|
msgid "Forgot your password?"
|
||||||
msgstr "Mot de passe oublié ?"
|
msgstr "Mot de passe oublié ?"
|
||||||
@ -79,13 +79,13 @@ msgstr "Mot de passe oublié ?"
|
|||||||
msgid "Invite someone new!"
|
msgid "Invite someone new!"
|
||||||
msgstr "Invitez une nouvelle personne !"
|
msgstr "Invitez une nouvelle personne !"
|
||||||
|
|
||||||
#: lib/cannery_web/components/topbar.ex:137
|
#: lib/cannery_web/components/topbar.ex:135
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:30
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:31
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:49
|
#: lib/cannery_web/templates/user_registration/new.html.heex:44
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:48
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:47
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:30
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:31
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:3
|
#: lib/cannery_web/templates/user_session/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:33
|
#: lib/cannery_web/templates/user_session/new.html.heex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Log in"
|
msgid "Log in"
|
||||||
msgstr "Se connecter"
|
msgstr "Se connecter"
|
||||||
@ -110,51 +110,51 @@ msgstr "Nouveau conteneur"
|
|||||||
msgid "New Tag"
|
msgid "New Tag"
|
||||||
msgstr "Nouveau tag"
|
msgstr "Nouveau tag"
|
||||||
|
|
||||||
#: lib/cannery_web/components/topbar.ex:128
|
#: lib/cannery_web/components/topbar.ex:127
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:26
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:28
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:3
|
#: lib/cannery_web/templates/user_registration/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:42
|
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:44
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:44
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:26
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:28
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:41
|
#: lib/cannery_web/templates/user_session/new.html.heex:41
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Register"
|
msgid "Register"
|
||||||
msgstr "S’enregistrer"
|
msgstr "S’enregistrer"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:3
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:16
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:15
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Resend confirmation instructions"
|
msgid "Resend confirmation instructions"
|
||||||
msgstr "Renvoyer les instructions de confirmation"
|
msgstr "Renvoyer les instructions de confirmation"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:3
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:34
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:31
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Reset password"
|
msgid "Reset password"
|
||||||
msgstr "Réinitialisé le mot de passe"
|
msgstr "Réinitialisé le mot de passe"
|
||||||
|
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:53
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:54
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:81
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:82
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
#: lib/cannery_web/live/container_live/form_component.html.heex:51
|
||||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:31
|
#: lib/cannery_web/live/invite_live/form_component.html.heex:32
|
||||||
#: lib/cannery_web/live/range_live/form_component.html.heex:40
|
#: lib/cannery_web/live/range_live/form_component.html.heex:41
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:91
|
#: lib/cannery_web/live/tag_live/form_component.html.heex:37
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Save"
|
msgid "Save"
|
||||||
msgstr "Sauvegarder"
|
msgstr "Sauvegarder"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:16
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:15
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Send instructions to reset password"
|
msgid "Send instructions to reset password"
|
||||||
msgstr "Envoyer les instructions pour réinitialiser le mot de passe"
|
msgstr "Envoyer les instructions pour réinitialiser le mot de passe"
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:80
|
#: lib/cannery_web/live/container_live/show.html.heex:76
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Why not add one?"
|
msgid "Why not add one?"
|
||||||
msgstr "Pourquoi pas en ajouter un ?"
|
msgstr "Pourquoi pas en ajouter un ?"
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:53
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:50
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Add"
|
msgid "Add"
|
||||||
msgstr "Ajouter"
|
msgstr "Ajouter"
|
||||||
@ -169,9 +169,9 @@ msgstr "Munition préparée"
|
|||||||
msgid "Why not get some ready to shoot?"
|
msgid "Why not get some ready to shoot?"
|
||||||
msgstr "Pourquoi pas en préparer pour tirer ?"
|
msgstr "Pourquoi pas en préparer pour tirer ?"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:100
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:101
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:39
|
#: lib/cannery_web/live/range_live/index.html.heex:38
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Record shots"
|
msgid "Record shots"
|
||||||
msgstr "Enregistrer des tirs"
|
msgstr "Enregistrer des tirs"
|
||||||
@ -191,27 +191,27 @@ msgstr "Déplacer les conteneurs"
|
|||||||
msgid "Select"
|
msgid "Select"
|
||||||
msgstr "Sélectionner"
|
msgstr "Sélectionner"
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:31
|
#: lib/cannery_web/live/invite_live/index.html.heex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr "Copier dans le presse-papier"
|
msgstr "Copier dans le presse-papier"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:21
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:22
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "add a container first"
|
msgid "add a container first"
|
||||||
msgstr "ajouter un conteneur en premier"
|
msgstr "ajouter un conteneur en premier"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:75
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Create"
|
msgid "Create"
|
||||||
msgstr "Créer"
|
msgstr "Créer"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:113
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:115
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change Language"
|
msgid "Change Language"
|
||||||
msgstr "Changer la langue"
|
msgstr "Changer la langue"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:139
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:142
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change language"
|
msgid "Change language"
|
||||||
msgstr "Changer la langue"
|
msgstr "Changer la langue"
|
||||||
@ -221,44 +221,34 @@ msgstr "Changer la langue"
|
|||||||
msgid "View in Catalog"
|
msgid "View in Catalog"
|
||||||
msgstr "Voir en catalogue"
|
msgstr "Voir en catalogue"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:31
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:32
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "add an ammo type first"
|
msgid "add an ammo type first"
|
||||||
msgstr "Ajoutez d'abord un type de munitions"
|
msgstr "Ajoutez d'abord un type de munitions"
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:60
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Disable"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:64
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Enable"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/components/move_ammo_group_component.ex:80
|
#: lib/cannery_web/components/move_ammo_group_component.ex:80
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Move ammo"
|
msgid "Move ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:80
|
#: lib/cannery_web/live/invite_live/index.html.heex:78
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Set Unlimited"
|
msgid "Set Unlimited"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:32
|
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Stage for range"
|
msgid "Stage for range"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
#: lib/cannery_web/live/range_live/index.html.heex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Unstage from range"
|
msgid "Unstage from range"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:153
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:156
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Export Data as JSON"
|
msgid "Export Data as JSON"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -69,11 +69,11 @@ msgstr "Mél ou mot de passe invalide"
|
|||||||
msgid "Not found"
|
msgid "Not found"
|
||||||
msgstr "Pas trouvé"
|
msgstr "Pas trouvé"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:16
|
#: lib/cannery_web/templates/user_registration/new.html.heex:13
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:16
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:14
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:21
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:23
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:64
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:67
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:119
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:123
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Oops, something went wrong! Please check the errors below."
|
msgid "Oops, something went wrong! Please check the errors below."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -85,14 +85,15 @@ msgstr ""
|
|||||||
msgid "Reset password link is invalid or it has expired."
|
msgid "Reset password link is invalid or it has expired."
|
||||||
msgstr "Le lien de réinitialisation de mot de passe est invalide ou expiré."
|
msgstr "Le lien de réinitialisation de mot de passe est invalide ou expiré."
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:24
|
#: lib/cannery_web/controllers/user_registration_controller.ex:22
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:55
|
#: lib/cannery_web/controllers/user_registration_controller.ex:51
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Sorry, public registration is disabled"
|
msgid "Sorry, public registration is disabled"
|
||||||
msgstr "Désolé, l’enregistrement public est désactivé"
|
msgstr "Désolé, l’enregistrement public est désactivé"
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:14
|
#: lib/cannery_web/controllers/user_registration_controller.ex:12
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:45
|
#: lib/cannery_web/controllers/user_registration_controller.ex:41
|
||||||
|
#: lib/cannery_web/controllers/user_registration_controller.ex:70
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Sorry, this invite was not found or expired"
|
msgid "Sorry, this invite was not found or expired"
|
||||||
msgstr "Désolé, cette invitation n’est pas trouvée ou est expirée"
|
msgstr "Désolé, cette invitation n’est pas trouvée ou est expirée"
|
||||||
@ -112,7 +113,7 @@ msgstr "Non autorisé·e"
|
|||||||
msgid "User confirmation link is invalid or it has expired."
|
msgid "User confirmation link is invalid or it has expired."
|
||||||
msgstr "Le lien de confirmation d’utilisateur·ice est invalide ou a expiré."
|
msgstr "Le lien de confirmation d’utilisateur·ice est invalide ou a expiré."
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:18
|
#: lib/cannery_web/live/invite_live/index.ex:19
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "You are not authorized to view this page"
|
msgid "You are not authorized to view this page"
|
||||||
msgstr "Vous n’êtes pas autorisé·e à voir cette page"
|
msgstr "Vous n’êtes pas autorisé·e à voir cette page"
|
||||||
@ -122,22 +123,22 @@ msgstr "Vous n’êtes pas autorisé·e à voir cette page"
|
|||||||
msgid "You are not authorized to view this page."
|
msgid "You are not authorized to view this page."
|
||||||
msgstr "Vous n’êtes pas autorisé·e à voir cette page."
|
msgstr "Vous n’êtes pas autorisé·e à voir cette page."
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:137
|
#: lib/cannery/accounts/user.ex:144
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "did not change"
|
msgid "did not change"
|
||||||
msgstr "est inchangé"
|
msgstr "est inchangé"
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:158
|
#: lib/cannery/accounts/user.ex:165
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "does not match password"
|
msgid "does not match password"
|
||||||
msgstr "le mot de passe ne correspond pas"
|
msgstr "le mot de passe ne correspond pas"
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:195
|
#: lib/cannery/accounts/user.ex:202
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "is not valid"
|
msgid "is not valid"
|
||||||
msgstr "n’est pas valide"
|
msgstr "n’est pas valide"
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:92
|
#: lib/cannery/accounts/user.ex:99
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "must have the @ sign and no spaces"
|
msgid "must have the @ sign and no spaces"
|
||||||
msgstr "doit contenir le symbole @ et aucune espace"
|
msgstr "doit contenir le symbole @ et aucune espace"
|
||||||
@ -196,7 +197,7 @@ msgstr "Multiplicateur invalide"
|
|||||||
msgid "Please select an ammo type and container"
|
msgid "Please select an ammo type and container"
|
||||||
msgstr "Veuillez choisir un type de munitions et un conteneur"
|
msgstr "Veuillez choisir un type de munitions et un conteneur"
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:69
|
#: lib/cannery_web/live/range_live/index.html.heex:67
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Your browser does not support the canvas element."
|
msgid "Your browser does not support the canvas element."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -26,45 +26,28 @@ msgstr ""
|
|||||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:86
|
#: lib/cannery_web/live/ammo_type_live/form_component.ex:86
|
||||||
#: lib/cannery_web/live/container_live/form_component.ex:89
|
#: lib/cannery_web/live/container_live/form_component.ex:89
|
||||||
#: lib/cannery_web/live/invite_live/form_component.ex:80
|
#: lib/cannery_web/live/invite_live/form_component.ex:80
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:126
|
#: lib/cannery_web/live/tag_live/form_component.ex:79
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} created successfully"
|
msgid "%{name} created successfully"
|
||||||
msgstr "%{name} créé· avec succès"
|
msgstr "%{name} créé· avec succès"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.ex:55
|
#: 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:64
|
#: lib/cannery_web/live/tag_live/index.ex:64
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} deleted succesfully"
|
msgid "%{name} deleted succesfully"
|
||||||
msgstr "%{name} supprimé· avec succès"
|
msgstr "%{name} supprimé· avec succès"
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:109
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "%{name} disabled succesfully"
|
|
||||||
msgstr "%{name} supprimé·e avec succès"
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:87
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "%{name} enabled succesfully"
|
|
||||||
msgstr "%{name} activé·e avec succès"
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/index.ex:85
|
#: lib/cannery_web/live/container_live/index.ex:85
|
||||||
#: lib/cannery_web/live/container_live/show.ex:63
|
#: lib/cannery_web/live/container_live/show.ex:63
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} has been deleted"
|
msgid "%{name} has been deleted"
|
||||||
msgstr "%{name} a été supprimé·e"
|
msgstr "%{name} a été supprimé·e"
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:67
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "%{name} updated succesfully"
|
|
||||||
msgstr "%{name} mis à jour avec succès"
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
|
#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
|
||||||
#: lib/cannery_web/live/container_live/form_component.ex:70
|
#: lib/cannery_web/live/container_live/form_component.ex:70
|
||||||
#: lib/cannery_web/live/invite_live/form_component.ex:62
|
#: lib/cannery_web/live/invite_live/form_component.ex:62
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:108
|
#: lib/cannery_web/live/tag_live/form_component.ex:61
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} updated successfully"
|
msgid "%{name} updated successfully"
|
||||||
msgstr "%{name} mis à jour avec succès"
|
msgstr "%{name} mis à jour avec succès"
|
||||||
@ -76,33 +59,28 @@ msgstr ""
|
|||||||
"Un lien pour confirmer votre changement de mél a été envoyé à la nouvelle "
|
"Un lien pour confirmer votre changement de mél a été envoyé à la nouvelle "
|
||||||
"adresse."
|
"adresse."
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:103
|
#: lib/cannery_web/live/invite_live/index.html.heex:98
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:133
|
#: lib/cannery_web/live/invite_live/index.html.heex:126
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Êtes-vous certain·e de supprimer %{email} ? Cette action est définitive !"
|
"Êtes-vous certain·e de supprimer %{email} ? Cette action est définitive !"
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/index.html.heex:92
|
#: 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/index.html.heex:135
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:59
|
#: lib/cannery_web/live/container_live/show.html.heex:55
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:64
|
#: lib/cannery_web/live/tag_live/index.html.heex:63
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete %{name}?"
|
msgid "Are you sure you want to delete %{name}?"
|
||||||
msgstr "Êtes-vous certain·e de supprimer %{name} ?"
|
msgstr "Êtes-vous certain·e de supprimer %{name} ?"
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:49
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:153
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
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:152
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete this ammo?"
|
msgid "Are you sure you want to delete this ammo?"
|
||||||
msgstr "Êtes-vous certain·e de supprimer cette munition ?"
|
msgstr "Êtes-vous certain·e de supprimer cette munition ?"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:160
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:163
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete your account?"
|
msgid "Are you sure you want to delete your account?"
|
||||||
msgstr "Êtes-vous certain·e de supprimer votre compte ?"
|
msgstr "Êtes-vous certain·e de supprimer votre compte ?"
|
||||||
@ -112,11 +90,6 @@ msgstr "Êtes-vous certain·e de supprimer votre compte ?"
|
|||||||
msgid "Are you sure you want to log out?"
|
msgid "Are you sure you want to log out?"
|
||||||
msgstr "Êtes-vous certain·e de vouloir vous déconnecter ?"
|
msgstr "Êtes-vous certain·e de vouloir vous déconnecter ?"
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:75
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Are you sure you want to make %{name} unlimited?"
|
|
||||||
msgstr "Êtes-vous certain·e de vouloir rendre %{name} illimité ?"
|
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_settings_controller.ex:77
|
#: lib/cannery_web/controllers/user_settings_controller.ex:77
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Email changed successfully."
|
msgid "Email changed successfully."
|
||||||
@ -151,23 +124,18 @@ msgstr "Mot de passe réinitialiser avec succès."
|
|||||||
msgid "Password updated successfully."
|
msgid "Password updated successfully."
|
||||||
msgstr "Mot de passe mis à jour avec succès."
|
msgstr "Mot de passe mis à jour avec succès."
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:73
|
#: lib/cannery_web/controllers/user_registration_controller.ex:65
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Please check your email to verify your account"
|
msgid "Please check your email to verify your account"
|
||||||
msgstr "Veuillez vérifier votre mél pour confirmer votre compte"
|
msgstr "Veuillez vérifier votre mél pour confirmer votre compte"
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:91
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:56
|
||||||
#, elixir-autogen, elixir-format
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:83
|
||||||
msgid "Register to setup %{name}"
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:158
|
||||||
msgstr "S’enregistrer pour mettre en place %{name}"
|
#: lib/cannery_web/live/container_live/form_component.html.heex:53
|
||||||
|
#: lib/cannery_web/live/invite_live/form_component.html.heex:34
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:55
|
#: lib/cannery_web/live/range_live/form_component.html.heex:43
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:82
|
#: lib/cannery_web/live/tag_live/form_component.html.heex:39
|
||||||
#: 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
|
|
||||||
#: lib/cannery_web/live/range_live/form_component.html.heex:42
|
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:93
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Saving..."
|
msgid "Saving..."
|
||||||
msgstr "Sauvegarde en cours…"
|
msgstr "Sauvegarde en cours…"
|
||||||
@ -194,7 +162,7 @@ msgstr "%{name} a été ajouté avec succès"
|
|||||||
msgid "%{tag_name} has been removed from %{container_name}"
|
msgid "%{tag_name} has been removed from %{container_name}"
|
||||||
msgstr "%{tag_name} a été retiré de %{container_name}"
|
msgstr "%{tag_name} a été retiré de %{container_name}"
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:55
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:52
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Adding..."
|
msgid "Adding..."
|
||||||
msgstr "Ajout en cours…"
|
msgstr "Ajout en cours…"
|
||||||
@ -204,13 +172,13 @@ msgstr "Ajout en cours…"
|
|||||||
msgid "Shots recorded successfully"
|
msgid "Shots recorded successfully"
|
||||||
msgstr "Tirs enregistré avec succès"
|
msgstr "Tirs enregistré avec succès"
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:28
|
#: lib/cannery_web/live/range_live/index.html.heex:27
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to unstage this ammo?"
|
msgid "Are you sure you want to unstage this ammo?"
|
||||||
msgstr "Êtes-vous certain·e de vouloir désélectionner cette munition ?"
|
msgstr "Êtes-vous certain·e de vouloir désélectionner cette munition ?"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:137
|
#: lib/cannery_web/live/ammo_group_live/show.ex:142
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:118
|
#: lib/cannery_web/live/range_live/index.html.heex:116
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete this shot record?"
|
msgid "Are you sure you want to delete this shot record?"
|
||||||
msgstr "Êtes-vous certain·e de vouloir supprimer cet enregistrement de tir ?"
|
msgstr "Êtes-vous certain·e de vouloir supprimer cet enregistrement de tir ?"
|
||||||
@ -236,7 +204,7 @@ msgstr "%{email} confirmé avec succès."
|
|||||||
msgid "Ammo moved to %{name} successfully"
|
msgid "Ammo moved to %{name} successfully"
|
||||||
msgstr "Munition déplacée à %{name} avec succès"
|
msgstr "Munition déplacée à %{name} avec succès"
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:121
|
#: lib/cannery_web/live/invite_live/index.ex:128
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Copied to clipboard"
|
msgid "Copied to clipboard"
|
||||||
msgstr "Copié dans le presse-papier"
|
msgstr "Copié dans le presse-papier"
|
||||||
@ -246,18 +214,18 @@ msgstr "Copié dans le presse-papier"
|
|||||||
msgid "%{name} removed successfully"
|
msgid "%{name} removed successfully"
|
||||||
msgstr "%{name} retiré avec succès"
|
msgstr "%{name} retiré avec succès"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:17
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:18
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:27
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:28
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "You'll need to"
|
msgid "You'll need to"
|
||||||
msgstr "Vous aurez besoin de"
|
msgstr "Vous aurez besoin de"
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:75
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:76
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Creating..."
|
msgid "Creating..."
|
||||||
msgstr "Création en cours…"
|
msgstr "Création en cours…"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:141
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:144
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to change your language?"
|
msgid "Are you sure you want to change your language?"
|
||||||
msgstr "Êtes-vous certain·e de vouloir changer votre langue ?"
|
msgstr "Êtes-vous certain·e de vouloir changer votre langue ?"
|
||||||
@ -291,7 +259,47 @@ msgstr[0] "Groupe de munition mis à jour avec succès"
|
|||||||
msgstr[1] "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.html.heex:90
|
#: lib/cannery_web/live/ammo_type_live/index.html.heex:90
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:28
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:29
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
||||||
msgstr "Êtes-vous certain·e de supprimer %{name} ?"
|
msgstr "Êtes-vous certain·e de supprimer %{name} ?"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/home_live.html.heex:65
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Register to setup Cannery"
|
||||||
|
msgstr "S’enregistrer pour mettre en place %{name}"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:54
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{invite_name} deleted succesfully"
|
||||||
|
msgstr "%{name} supprimé· avec succès"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:115
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{invite_name} disabled succesfully"
|
||||||
|
msgstr "%{name} supprimé·e avec succès"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:91
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{invite_name} enabled succesfully"
|
||||||
|
msgstr "%{name} activé·e avec succès"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:69
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{invite_name} updated succesfully"
|
||||||
|
msgstr "%{name} mis à jour avec succès"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:140
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{user_email} deleted succesfully"
|
||||||
|
msgstr "%{name} supprimé· avec succès"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:48
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Are you sure you want to delete the invite for %{invite_name}?"
|
||||||
|
msgstr "Êtes-vous certain·e de supprimer l’invitation pour %{name} ?"
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:73
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Are you sure you want to make %{invite_name} unlimited?"
|
||||||
|
msgstr "Êtes-vous certain·e de vouloir rendre %{name} illimité ?"
|
||||||
|
@ -23,12 +23,12 @@ msgstr ""
|
|||||||
## effect: edit them in PO (.po) files instead.
|
## effect: edit them in PO (.po) files instead.
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.ex:54
|
#: 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.ex:62
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:40
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:41
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Add Ammo"
|
msgid "Add Ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:36
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:37
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Add your first box!"
|
msgid "Add your first box!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -44,13 +44,13 @@ msgid "Add your first type!"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:15
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:15
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:44
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:45
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change email"
|
msgid "Change email"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:58
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:59
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:99
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:101
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change password"
|
msgid "Change password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -60,14 +60,14 @@ msgstr ""
|
|||||||
msgid "Create Invite"
|
msgid "Create Invite"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:162
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:165
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Delete User"
|
msgid "Delete User"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:52
|
#: lib/cannery_web/templates/user_registration/new.html.heex:47
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:3
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:45
|
#: lib/cannery_web/templates/user_session/new.html.heex:44
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Forgot your password?"
|
msgid "Forgot your password?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -77,13 +77,13 @@ msgstr ""
|
|||||||
msgid "Invite someone new!"
|
msgid "Invite someone new!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/topbar.ex:137
|
#: lib/cannery_web/components/topbar.ex:135
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:30
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:31
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:49
|
#: lib/cannery_web/templates/user_registration/new.html.heex:44
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:48
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:47
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:30
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:31
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:3
|
#: lib/cannery_web/templates/user_session/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:33
|
#: lib/cannery_web/templates/user_session/new.html.heex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Log in"
|
msgid "Log in"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -108,51 +108,51 @@ msgstr ""
|
|||||||
msgid "New Tag"
|
msgid "New Tag"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/topbar.ex:128
|
#: lib/cannery_web/components/topbar.ex:127
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:26
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:28
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:3
|
#: lib/cannery_web/templates/user_registration/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:42
|
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:44
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:44
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:26
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:28
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:41
|
#: lib/cannery_web/templates/user_session/new.html.heex:41
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Register"
|
msgid "Register"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:3
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:16
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:15
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Resend confirmation instructions"
|
msgid "Resend confirmation instructions"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:3
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:34
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:31
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Reset password"
|
msgid "Reset password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:53
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:54
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:81
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:82
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
#: lib/cannery_web/live/container_live/form_component.html.heex:51
|
||||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:31
|
#: lib/cannery_web/live/invite_live/form_component.html.heex:32
|
||||||
#: lib/cannery_web/live/range_live/form_component.html.heex:40
|
#: lib/cannery_web/live/range_live/form_component.html.heex:41
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:91
|
#: lib/cannery_web/live/tag_live/form_component.html.heex:37
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Save"
|
msgid "Save"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:16
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:15
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Send instructions to reset password"
|
msgid "Send instructions to reset password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:80
|
#: lib/cannery_web/live/container_live/show.html.heex:76
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Why not add one?"
|
msgid "Why not add one?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:53
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:50
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Add"
|
msgid "Add"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -167,9 +167,9 @@ msgstr ""
|
|||||||
msgid "Why not get some ready to shoot?"
|
msgid "Why not get some ready to shoot?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:100
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:101
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:39
|
#: lib/cannery_web/live/range_live/index.html.heex:38
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Record shots"
|
msgid "Record shots"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -189,27 +189,27 @@ msgstr ""
|
|||||||
msgid "Select"
|
msgid "Select"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:31
|
#: lib/cannery_web/live/invite_live/index.html.heex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:21
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:22
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "add a container first"
|
msgid "add a container first"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:75
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Create"
|
msgid "Create"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:113
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:115
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change Language"
|
msgid "Change Language"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:139
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:142
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Change language"
|
msgid "Change language"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -219,44 +219,34 @@ msgstr ""
|
|||||||
msgid "View in Catalog"
|
msgid "View in Catalog"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:31
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:32
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "add an ammo type first"
|
msgid "add an ammo type first"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:60
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Disable"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:64
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Enable"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/components/move_ammo_group_component.ex:80
|
#: lib/cannery_web/components/move_ammo_group_component.ex:80
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Move ammo"
|
msgid "Move ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:80
|
#: lib/cannery_web/live/invite_live/index.html.heex:78
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Set Unlimited"
|
msgid "Set Unlimited"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:32
|
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Stage for range"
|
msgid "Stage for range"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
#: lib/cannery_web/live/range_live/index.html.heex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Unstage from range"
|
msgid "Unstage from range"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:153
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:156
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Export Data as JSON"
|
msgid "Export Data as JSON"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -70,11 +70,11 @@ msgstr "Seoladh email nó pasfhocal neamhbhailí"
|
|||||||
msgid "Not found"
|
msgid "Not found"
|
||||||
msgstr "Ní feidir é a fáil"
|
msgstr "Ní feidir é a fáil"
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:16
|
#: lib/cannery_web/templates/user_registration/new.html.heex:13
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:16
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:14
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:21
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:23
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:64
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:67
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:119
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:123
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Oops, something went wrong! Please check the errors below."
|
msgid "Oops, something went wrong! Please check the errors below."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -86,14 +86,15 @@ msgstr ""
|
|||||||
msgid "Reset password link is invalid or it has expired."
|
msgid "Reset password link is invalid or it has expired."
|
||||||
msgstr "Tá nasc an pasfhocail a athrú neamhbailí nó as dáta."
|
msgstr "Tá nasc an pasfhocail a athrú neamhbailí nó as dáta."
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:24
|
#: lib/cannery_web/controllers/user_registration_controller.ex:22
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:55
|
#: lib/cannery_web/controllers/user_registration_controller.ex:51
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Sorry, public registration is disabled"
|
msgid "Sorry, public registration is disabled"
|
||||||
msgstr "Tá brón orainn, tá clarú póiblí bactha"
|
msgstr "Tá brón orainn, tá clarú póiblí bactha"
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:14
|
#: lib/cannery_web/controllers/user_registration_controller.ex:12
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:45
|
#: lib/cannery_web/controllers/user_registration_controller.ex:41
|
||||||
|
#: lib/cannery_web/controllers/user_registration_controller.ex:70
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Sorry, this invite was not found or expired"
|
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"
|
msgstr "Tá brón orainn, ní feidir an cuireadh seo a fáil nó tá sé as dáta"
|
||||||
@ -113,7 +114,7 @@ msgstr "Níl cead agaibh"
|
|||||||
msgid "User confirmation link is invalid or it has expired."
|
msgid "User confirmation link is invalid or it has expired."
|
||||||
msgstr "Tá nasc an úsáideoir a deimhnigh neamhbailí nó as dáta."
|
msgstr "Tá nasc an úsáideoir a deimhnigh neamhbailí nó as dáta."
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:18
|
#: lib/cannery_web/live/invite_live/index.ex:19
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "You are not authorized to view this page"
|
msgid "You are not authorized to view this page"
|
||||||
msgstr "Níl cead agaibh féachaint ar an leathanach seo"
|
msgstr "Níl cead agaibh féachaint ar an leathanach seo"
|
||||||
@ -123,22 +124,22 @@ msgstr "Níl cead agaibh féachaint ar an leathanach seo"
|
|||||||
msgid "You are not authorized to view this page."
|
msgid "You are not authorized to view this page."
|
||||||
msgstr "Níl cead agaibh féachaint ar an leathanach seo."
|
msgstr "Níl cead agaibh féachaint ar an leathanach seo."
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:137
|
#: lib/cannery/accounts/user.ex:144
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "did not change"
|
msgid "did not change"
|
||||||
msgstr "Níor athraigh sé"
|
msgstr "Níor athraigh sé"
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:158
|
#: lib/cannery/accounts/user.ex:165
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "does not match password"
|
msgid "does not match password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:195
|
#: lib/cannery/accounts/user.ex:202
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "is not valid"
|
msgid "is not valid"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery/accounts/user.ex:92
|
#: lib/cannery/accounts/user.ex:99
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "must have the @ sign and no spaces"
|
msgid "must have the @ sign and no spaces"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -195,7 +196,7 @@ msgstr ""
|
|||||||
msgid "Please select an ammo type and container"
|
msgid "Please select an ammo type and container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:69
|
#: lib/cannery_web/live/range_live/index.html.heex:67
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Your browser does not support the canvas element."
|
msgid "Your browser does not support the canvas element."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -24,45 +24,28 @@ msgstr ""
|
|||||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:86
|
#: lib/cannery_web/live/ammo_type_live/form_component.ex:86
|
||||||
#: lib/cannery_web/live/container_live/form_component.ex:89
|
#: lib/cannery_web/live/container_live/form_component.ex:89
|
||||||
#: lib/cannery_web/live/invite_live/form_component.ex:80
|
#: lib/cannery_web/live/invite_live/form_component.ex:80
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:126
|
#: lib/cannery_web/live/tag_live/form_component.ex:79
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} created successfully"
|
msgid "%{name} created successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.ex:55
|
#: 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:64
|
#: lib/cannery_web/live/tag_live/index.ex:64
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} deleted succesfully"
|
msgid "%{name} deleted succesfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:109
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "%{name} disabled succesfully"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:87
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "%{name} enabled succesfully"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/index.ex:85
|
#: lib/cannery_web/live/container_live/index.ex:85
|
||||||
#: lib/cannery_web/live/container_live/show.ex:63
|
#: lib/cannery_web/live/container_live/show.ex:63
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} has been deleted"
|
msgid "%{name} has been deleted"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:67
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "%{name} updated succesfully"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
|
#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
|
||||||
#: lib/cannery_web/live/container_live/form_component.ex:70
|
#: lib/cannery_web/live/container_live/form_component.ex:70
|
||||||
#: lib/cannery_web/live/invite_live/form_component.ex:62
|
#: lib/cannery_web/live/invite_live/form_component.ex:62
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:108
|
#: lib/cannery_web/live/tag_live/form_component.ex:61
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} updated successfully"
|
msgid "%{name} updated successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -72,32 +55,27 @@ msgstr ""
|
|||||||
msgid "A link to confirm your email change has been sent to the new address."
|
msgid "A link to confirm your email change has been sent to the new address."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:103
|
#: lib/cannery_web/live/invite_live/index.html.heex:98
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:133
|
#: lib/cannery_web/live/invite_live/index.html.heex:126
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/index.html.heex:92
|
#: 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/index.html.heex:135
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:59
|
#: lib/cannery_web/live/container_live/show.html.heex:55
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:64
|
#: lib/cannery_web/live/tag_live/index.html.heex:63
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete %{name}?"
|
msgid "Are you sure you want to delete %{name}?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:49
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:153
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Are you sure you want to delete the invite for %{name}?"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:152
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete this ammo?"
|
msgid "Are you sure you want to delete this ammo?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:160
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:163
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete your account?"
|
msgid "Are you sure you want to delete your account?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -107,11 +85,6 @@ msgstr ""
|
|||||||
msgid "Are you sure you want to log out?"
|
msgid "Are you sure you want to log out?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:75
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Are you sure you want to make %{name} unlimited?"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_settings_controller.ex:77
|
#: lib/cannery_web/controllers/user_settings_controller.ex:77
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Email changed successfully."
|
msgid "Email changed successfully."
|
||||||
@ -142,23 +115,18 @@ msgstr ""
|
|||||||
msgid "Password updated successfully."
|
msgid "Password updated successfully."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:73
|
#: lib/cannery_web/controllers/user_registration_controller.ex:65
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Please check your email to verify your account"
|
msgid "Please check your email to verify your account"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:91
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:56
|
||||||
#, elixir-autogen, elixir-format
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:83
|
||||||
msgid "Register to setup %{name}"
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:158
|
||||||
msgstr ""
|
#: lib/cannery_web/live/container_live/form_component.html.heex:53
|
||||||
|
#: lib/cannery_web/live/invite_live/form_component.html.heex:34
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:55
|
#: lib/cannery_web/live/range_live/form_component.html.heex:43
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:82
|
#: lib/cannery_web/live/tag_live/form_component.html.heex:39
|
||||||
#: 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
|
|
||||||
#: lib/cannery_web/live/range_live/form_component.html.heex:42
|
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:93
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Saving..."
|
msgid "Saving..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -183,7 +151,7 @@ msgstr ""
|
|||||||
msgid "%{tag_name} has been removed from %{container_name}"
|
msgid "%{tag_name} has been removed from %{container_name}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:55
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:52
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Adding..."
|
msgid "Adding..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -193,13 +161,13 @@ msgstr ""
|
|||||||
msgid "Shots recorded successfully"
|
msgid "Shots recorded successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:28
|
#: lib/cannery_web/live/range_live/index.html.heex:27
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to unstage this ammo?"
|
msgid "Are you sure you want to unstage this ammo?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:137
|
#: lib/cannery_web/live/ammo_group_live/show.ex:142
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:118
|
#: lib/cannery_web/live/range_live/index.html.heex:116
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete this shot record?"
|
msgid "Are you sure you want to delete this shot record?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -225,7 +193,7 @@ msgstr ""
|
|||||||
msgid "Ammo moved to %{name} successfully"
|
msgid "Ammo moved to %{name} successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:121
|
#: lib/cannery_web/live/invite_live/index.ex:128
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Copied to clipboard"
|
msgid "Copied to clipboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -235,18 +203,18 @@ msgstr ""
|
|||||||
msgid "%{name} removed successfully"
|
msgid "%{name} removed successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:17
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:18
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:27
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:28
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "You'll need to"
|
msgid "You'll need to"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:75
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:76
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Creating..."
|
msgid "Creating..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:141
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:144
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to change your language?"
|
msgid "Are you sure you want to change your language?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -280,7 +248,47 @@ msgstr[0] ""
|
|||||||
msgstr[1] ""
|
msgstr[1] ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:90
|
#: lib/cannery_web/live/ammo_type_live/index.html.heex:90
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:28
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:29
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/home_live.html.heex:65
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Register to setup Cannery"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:54
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{invite_name} deleted succesfully"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:115
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{invite_name} disabled succesfully"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:91
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{invite_name} enabled succesfully"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:69
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{invite_name} updated succesfully"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:140
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "%{user_email} deleted succesfully"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:48
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Are you sure you want to delete the invite for %{invite_name}?"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:73
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Are you sure you want to make %{invite_name} unlimited?"
|
||||||
|
msgstr ""
|
||||||
|
@ -13,45 +13,28 @@ msgstr ""
|
|||||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:86
|
#: lib/cannery_web/live/ammo_type_live/form_component.ex:86
|
||||||
#: lib/cannery_web/live/container_live/form_component.ex:89
|
#: lib/cannery_web/live/container_live/form_component.ex:89
|
||||||
#: lib/cannery_web/live/invite_live/form_component.ex:80
|
#: lib/cannery_web/live/invite_live/form_component.ex:80
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:126
|
#: lib/cannery_web/live/tag_live/form_component.ex:79
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} created successfully"
|
msgid "%{name} created successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.ex:55
|
#: 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:64
|
#: lib/cannery_web/live/tag_live/index.ex:64
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} deleted succesfully"
|
msgid "%{name} deleted succesfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:109
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "%{name} disabled succesfully"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:87
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "%{name} enabled succesfully"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/index.ex:85
|
#: lib/cannery_web/live/container_live/index.ex:85
|
||||||
#: lib/cannery_web/live/container_live/show.ex:63
|
#: lib/cannery_web/live/container_live/show.ex:63
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} has been deleted"
|
msgid "%{name} has been deleted"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:67
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "%{name} updated succesfully"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
|
#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
|
||||||
#: lib/cannery_web/live/container_live/form_component.ex:70
|
#: lib/cannery_web/live/container_live/form_component.ex:70
|
||||||
#: lib/cannery_web/live/invite_live/form_component.ex:62
|
#: lib/cannery_web/live/invite_live/form_component.ex:62
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:108
|
#: lib/cannery_web/live/tag_live/form_component.ex:61
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "%{name} updated successfully"
|
msgid "%{name} updated successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -61,32 +44,27 @@ msgstr ""
|
|||||||
msgid "A link to confirm your email change has been sent to the new address."
|
msgid "A link to confirm your email change has been sent to the new address."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:103
|
#: lib/cannery_web/live/invite_live/index.html.heex:98
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:133
|
#: lib/cannery_web/live/invite_live/index.html.heex:126
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/index.html.heex:92
|
#: 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/index.html.heex:135
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:59
|
#: lib/cannery_web/live/container_live/show.html.heex:55
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:64
|
#: lib/cannery_web/live/tag_live/index.html.heex:63
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete %{name}?"
|
msgid "Are you sure you want to delete %{name}?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:49
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:153
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Are you sure you want to delete the invite for %{name}?"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:152
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete this ammo?"
|
msgid "Are you sure you want to delete this ammo?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:160
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:163
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete your account?"
|
msgid "Are you sure you want to delete your account?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -96,11 +74,6 @@ msgstr ""
|
|||||||
msgid "Are you sure you want to log out?"
|
msgid "Are you sure you want to log out?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:75
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Are you sure you want to make %{name} unlimited?"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_settings_controller.ex:77
|
#: lib/cannery_web/controllers/user_settings_controller.ex:77
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Email changed successfully."
|
msgid "Email changed successfully."
|
||||||
@ -131,23 +104,18 @@ msgstr ""
|
|||||||
msgid "Password updated successfully."
|
msgid "Password updated successfully."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:73
|
#: lib/cannery_web/controllers/user_registration_controller.ex:65
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Please check your email to verify your account"
|
msgid "Please check your email to verify your account"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/home_live.ex:91
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:56
|
||||||
#, elixir-autogen, elixir-format
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:83
|
||||||
msgid "Register to setup %{name}"
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:158
|
||||||
msgstr ""
|
#: lib/cannery_web/live/container_live/form_component.html.heex:53
|
||||||
|
#: lib/cannery_web/live/invite_live/form_component.html.heex:34
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:55
|
#: lib/cannery_web/live/range_live/form_component.html.heex:43
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:82
|
#: lib/cannery_web/live/tag_live/form_component.html.heex:39
|
||||||
#: 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
|
|
||||||
#: lib/cannery_web/live/range_live/form_component.html.heex:42
|
|
||||||
#: lib/cannery_web/live/tag_live/form_component.ex:93
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Saving..."
|
msgid "Saving..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -172,7 +140,7 @@ msgstr ""
|
|||||||
msgid "%{tag_name} has been removed from %{container_name}"
|
msgid "%{tag_name} has been removed from %{container_name}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:55
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:52
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Adding..."
|
msgid "Adding..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -182,13 +150,13 @@ msgstr ""
|
|||||||
msgid "Shots recorded successfully"
|
msgid "Shots recorded successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:28
|
#: lib/cannery_web/live/range_live/index.html.heex:27
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to unstage this ammo?"
|
msgid "Are you sure you want to unstage this ammo?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:137
|
#: lib/cannery_web/live/ammo_group_live/show.ex:142
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:118
|
#: lib/cannery_web/live/range_live/index.html.heex:116
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete this shot record?"
|
msgid "Are you sure you want to delete this shot record?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -214,7 +182,7 @@ msgstr ""
|
|||||||
msgid "Ammo moved to %{name} successfully"
|
msgid "Ammo moved to %{name} successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:121
|
#: lib/cannery_web/live/invite_live/index.ex:128
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Copied to clipboard"
|
msgid "Copied to clipboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -224,18 +192,18 @@ msgstr ""
|
|||||||
msgid "%{name} removed successfully"
|
msgid "%{name} removed successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:17
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:18
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:27
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:28
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "You'll need to"
|
msgid "You'll need to"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:75
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:76
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Creating..."
|
msgid "Creating..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:141
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:144
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to change your language?"
|
msgid "Are you sure you want to change your language?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -269,7 +237,47 @@ msgstr[0] ""
|
|||||||
msgstr[1] ""
|
msgstr[1] ""
|
||||||
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:90
|
#: lib/cannery_web/live/ammo_type_live/index.html.heex:90
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:28
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:29
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/home_live.html.heex:65
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Register to setup Cannery"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:54
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "%{invite_name} deleted succesfully"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:115
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "%{invite_name} disabled succesfully"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:91
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "%{invite_name} enabled succesfully"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:69
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "%{invite_name} updated succesfully"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:140
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "%{user_email} deleted succesfully"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:48
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Are you sure you want to delete the invite for %{invite_name}?"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:73
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Are you sure you want to make %{invite_name} unlimited?"
|
||||||
|
msgstr ""
|
||||||
|
11
priv/repo/migrations/20230204191547_record_invites.exs
Normal file
11
priv/repo/migrations/20230204191547_record_invites.exs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
defmodule Cannery.Repo.Migrations.RecordInvites do
|
||||||
|
use Ecto.Migration
|
||||||
|
|
||||||
|
def change do
|
||||||
|
alter table(:users) do
|
||||||
|
add :invite_id, references(:invites, type: :binary_id)
|
||||||
|
end
|
||||||
|
|
||||||
|
rename table(:invites), :user_id, to: :created_by_id
|
||||||
|
end
|
||||||
|
end
|
176
test/cannery/accounts/invites_test.exs
Normal file
176
test/cannery/accounts/invites_test.exs
Normal file
@ -0,0 +1,176 @@
|
|||||||
|
defmodule Cannery.InvitesTest do
|
||||||
|
@moduledoc """
|
||||||
|
This module tests the Cannery.Accounts.Invites context
|
||||||
|
"""
|
||||||
|
|
||||||
|
use Cannery.DataCase
|
||||||
|
alias Cannery.Accounts
|
||||||
|
alias Cannery.Accounts.{Invite, Invites}
|
||||||
|
alias Ecto.Changeset
|
||||||
|
|
||||||
|
@moduletag :invites_test
|
||||||
|
|
||||||
|
@valid_attrs %{
|
||||||
|
"name" => "some name"
|
||||||
|
}
|
||||||
|
@invalid_attrs %{
|
||||||
|
"name" => nil,
|
||||||
|
"token" => nil
|
||||||
|
}
|
||||||
|
|
||||||
|
describe "invites" do
|
||||||
|
setup do
|
||||||
|
current_user = admin_fixture()
|
||||||
|
{:ok, invite} = Invites.create_invite(current_user, @valid_attrs)
|
||||||
|
[invite: invite, current_user: current_user]
|
||||||
|
end
|
||||||
|
|
||||||
|
test "list_invites/0 returns all invites", %{invite: invite, current_user: current_user} do
|
||||||
|
assert Invites.list_invites(current_user) == [invite]
|
||||||
|
end
|
||||||
|
|
||||||
|
test "get_invite!/1 returns the invite with given id",
|
||||||
|
%{invite: invite, current_user: current_user} do
|
||||||
|
assert Invites.get_invite!(invite.id, current_user) == invite
|
||||||
|
end
|
||||||
|
|
||||||
|
test "valid_invite_token? returns for valid and invalid invite tokens",
|
||||||
|
%{invite: %{token: token}} do
|
||||||
|
refute Invites.valid_invite_token?(nil)
|
||||||
|
refute Invites.valid_invite_token?("")
|
||||||
|
assert Invites.valid_invite_token?(token)
|
||||||
|
end
|
||||||
|
|
||||||
|
test "valid_invite_token? does not return true for a disabled invite by token",
|
||||||
|
%{invite: %{token: token} = invite, current_user: current_user} do
|
||||||
|
assert Invites.valid_invite_token?(token)
|
||||||
|
|
||||||
|
{:ok, _invite} = Invites.update_invite(invite, %{uses_left: 1}, current_user)
|
||||||
|
{:ok, _invite} = Invites.use_invite(token)
|
||||||
|
|
||||||
|
refute Invites.valid_invite_token?(token)
|
||||||
|
end
|
||||||
|
|
||||||
|
test "get_use_count/2 returns the correct invite usage",
|
||||||
|
%{invite: %{token: token} = invite, current_user: current_user} do
|
||||||
|
assert 0 == Invites.get_use_count(invite, current_user)
|
||||||
|
|
||||||
|
assert {:ok, _user} =
|
||||||
|
Accounts.register_user(
|
||||||
|
%{"email" => unique_user_email(), "password" => valid_user_password()},
|
||||||
|
token
|
||||||
|
)
|
||||||
|
|
||||||
|
assert 1 == Invites.get_use_count(invite, current_user)
|
||||||
|
|
||||||
|
assert {:ok, _user} =
|
||||||
|
Accounts.register_user(
|
||||||
|
%{"email" => unique_user_email(), "password" => valid_user_password()},
|
||||||
|
token
|
||||||
|
)
|
||||||
|
|
||||||
|
assert 2 == Invites.get_use_count(invite, current_user)
|
||||||
|
end
|
||||||
|
|
||||||
|
test "use_invite/1 successfully uses an unlimited invite",
|
||||||
|
%{invite: %{token: token} = invite, current_user: current_user} do
|
||||||
|
{:ok, invite} = Invites.update_invite(invite, %{uses_left: nil}, current_user)
|
||||||
|
assert {:ok, ^invite} = Invites.use_invite(token)
|
||||||
|
assert {:ok, ^invite} = Invites.use_invite(token)
|
||||||
|
assert {:ok, ^invite} = Invites.use_invite(token)
|
||||||
|
end
|
||||||
|
|
||||||
|
test "use_invite/1 successfully decrements an invite",
|
||||||
|
%{invite: %{token: token} = invite, current_user: current_user} do
|
||||||
|
{:ok, _invite} = Invites.update_invite(invite, %{uses_left: 10}, current_user)
|
||||||
|
assert {:ok, %{uses_left: 9}} = Invites.use_invite(token)
|
||||||
|
assert {:ok, %{uses_left: 8}} = Invites.use_invite(token)
|
||||||
|
assert {:ok, %{uses_left: 7}} = Invites.use_invite(token)
|
||||||
|
end
|
||||||
|
|
||||||
|
test "use_invite/1 successfully disactivates an invite",
|
||||||
|
%{invite: %{token: token} = invite, current_user: current_user} do
|
||||||
|
{:ok, _invite} = Invites.update_invite(invite, %{uses_left: 1}, current_user)
|
||||||
|
assert {:ok, %{uses_left: 0, disabled_at: disabled_at}} = Invites.use_invite(token)
|
||||||
|
assert not is_nil(disabled_at)
|
||||||
|
end
|
||||||
|
|
||||||
|
test "use_invite/1 does not work on disactivated invite",
|
||||||
|
%{invite: %{token: token} = invite, current_user: current_user} do
|
||||||
|
{:ok, _invite} = Invites.update_invite(invite, %{uses_left: 1}, current_user)
|
||||||
|
{:ok, _invite} = Invites.use_invite(token)
|
||||||
|
assert {:error, :invalid_token} = Invites.use_invite(token)
|
||||||
|
end
|
||||||
|
|
||||||
|
test "create_invite/1 with valid data creates an unlimited invite",
|
||||||
|
%{current_user: current_user} do
|
||||||
|
assert {:ok, %Invite{} = invite} =
|
||||||
|
Invites.create_invite(current_user, %{
|
||||||
|
"name" => "some name"
|
||||||
|
})
|
||||||
|
|
||||||
|
assert invite.name == "some name"
|
||||||
|
end
|
||||||
|
|
||||||
|
test "create_invite/1 with valid data creates a limited invite",
|
||||||
|
%{current_user: current_user} do
|
||||||
|
assert {:ok, %Invite{} = invite} =
|
||||||
|
Invites.create_invite(current_user, %{
|
||||||
|
"name" => "some name",
|
||||||
|
"uses_left" => 10
|
||||||
|
})
|
||||||
|
|
||||||
|
assert invite.name == "some name"
|
||||||
|
assert invite.uses_left == 10
|
||||||
|
end
|
||||||
|
|
||||||
|
test "create_invite/1 with invalid data returns error changeset",
|
||||||
|
%{current_user: current_user} do
|
||||||
|
assert {:error, %Changeset{}} = Invites.create_invite(current_user, @invalid_attrs)
|
||||||
|
end
|
||||||
|
|
||||||
|
test "update_invite/2 can set an invite to be limited",
|
||||||
|
%{invite: invite, current_user: current_user} do
|
||||||
|
assert {:ok, %Invite{} = new_invite} =
|
||||||
|
Invites.update_invite(
|
||||||
|
invite,
|
||||||
|
%{"name" => "some updated name", "uses_left" => 5},
|
||||||
|
current_user
|
||||||
|
)
|
||||||
|
|
||||||
|
assert new_invite.name == "some updated name"
|
||||||
|
assert new_invite.uses_left == 5
|
||||||
|
end
|
||||||
|
|
||||||
|
test "update_invite/2 can set an invite to be unlimited",
|
||||||
|
%{invite: invite, current_user: current_user} do
|
||||||
|
{:ok, invite} = Invites.update_invite(invite, %{"uses_left" => 5}, current_user)
|
||||||
|
|
||||||
|
assert {:ok, %Invite{} = new_invite} =
|
||||||
|
Invites.update_invite(
|
||||||
|
invite,
|
||||||
|
%{"name" => "some updated name", "uses_left" => nil},
|
||||||
|
current_user
|
||||||
|
)
|
||||||
|
|
||||||
|
assert new_invite.name == "some updated name"
|
||||||
|
assert new_invite.uses_left |> is_nil()
|
||||||
|
end
|
||||||
|
|
||||||
|
test "update_invite/2 with invalid data returns error changeset",
|
||||||
|
%{invite: invite, current_user: current_user} do
|
||||||
|
assert {:error, %Changeset{}} = Invites.update_invite(invite, @invalid_attrs, current_user)
|
||||||
|
assert invite == Invites.get_invite!(invite.id, current_user)
|
||||||
|
end
|
||||||
|
|
||||||
|
test "delete_invite/1 deletes the invite", %{invite: invite, current_user: current_user} do
|
||||||
|
assert {:ok, %Invite{}} = Invites.delete_invite(invite, current_user)
|
||||||
|
assert_raise Ecto.NoResultsError, fn -> Invites.get_invite!(invite.id, current_user) end
|
||||||
|
end
|
||||||
|
|
||||||
|
test "delete_invite!/1 deletes the invite", %{invite: invite, current_user: current_user} do
|
||||||
|
assert %Invite{} = Invites.delete_invite!(invite, current_user)
|
||||||
|
assert_raise Ecto.NoResultsError, fn -> Invites.get_invite!(invite.id, current_user) end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
@ -5,11 +5,13 @@ defmodule Cannery.AccountsTest do
|
|||||||
|
|
||||||
use Cannery.DataCase
|
use Cannery.DataCase
|
||||||
alias Cannery.Accounts
|
alias Cannery.Accounts
|
||||||
alias Cannery.Accounts.{User, UserToken}
|
alias Cannery.Accounts.{Invites, User, UserToken}
|
||||||
alias Ecto.Changeset
|
alias Ecto.Changeset
|
||||||
|
|
||||||
@moduletag :accounts_test
|
@moduletag :accounts_test
|
||||||
|
|
||||||
|
doctest Accounts, import: true
|
||||||
|
|
||||||
describe "get_user_by_email/1" do
|
describe "get_user_by_email/1" do
|
||||||
test "does not return the user if the email does not exist" do
|
test "does not return the user if the email does not exist" do
|
||||||
refute Accounts.get_user_by_email("unknown@example.com")
|
refute Accounts.get_user_by_email("unknown@example.com")
|
||||||
@ -100,6 +102,17 @@ defmodule Cannery.AccountsTest do
|
|||||||
assert is_nil(user.confirmed_at)
|
assert is_nil(user.confirmed_at)
|
||||||
assert is_nil(user.password)
|
assert is_nil(user.password)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
test "records used invite during registration" do
|
||||||
|
{:ok, %{id: invite_id, token: token}} =
|
||||||
|
admin_fixture() |> Invites.create_invite(%{"name" => "my invite"})
|
||||||
|
|
||||||
|
assert {:ok, %{invite_id: ^invite_id}} =
|
||||||
|
Accounts.register_user(
|
||||||
|
%{"email" => unique_user_email(), "password" => valid_user_password()},
|
||||||
|
token
|
||||||
|
)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "change_user_registration/2" do
|
describe "change_user_registration/2" do
|
||||||
@ -303,9 +316,9 @@ defmodule Cannery.AccountsTest do
|
|||||||
end
|
end
|
||||||
|
|
||||||
test "deletes all tokens for the given user", %{user: user} do
|
test "deletes all tokens for the given user", %{user: user} do
|
||||||
_token = Accounts.generate_user_session_token(user)
|
_session_token = Accounts.generate_user_session_token(user)
|
||||||
|
|
||||||
{:ok, _user} =
|
{:ok, _} =
|
||||||
Accounts.update_user_password(user, valid_user_password(), %{
|
Accounts.update_user_password(user, valid_user_password(), %{
|
||||||
"password" => "new valid password"
|
"password" => "new valid password"
|
||||||
})
|
})
|
||||||
@ -500,7 +513,7 @@ defmodule Cannery.AccountsTest do
|
|||||||
end
|
end
|
||||||
|
|
||||||
test "deletes all tokens for the given user", %{user: user} do
|
test "deletes all tokens for the given user", %{user: user} do
|
||||||
_token = Accounts.generate_user_session_token(user)
|
_session_token = Accounts.generate_user_session_token(user)
|
||||||
{:ok, _user} = Accounts.reset_user_password(user, %{"password" => "new valid password"})
|
{:ok, _user} = Accounts.reset_user_password(user, %{"password" => "new valid password"})
|
||||||
refute Repo.get_by(UserToken, user_id: user.id)
|
refute Repo.get_by(UserToken, user_id: user.id)
|
||||||
end
|
end
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user