Compare commits
3 Commits
0.9.6
...
e16e04c114
Author | SHA1 | Date | |
---|---|---|---|
e16e04c114 | |||
bbe4d82303 | |||
c69d7843ab |
@ -1,3 +1,7 @@
|
|||||||
|
# v0.9.7
|
||||||
|
- Fix margin on bottom of page
|
||||||
|
- Use bar graph instead of line graph
|
||||||
|
|
||||||
# v0.9.6
|
# v0.9.6
|
||||||
- Make ammo packs in containers directly navigable in table view
|
- Make ammo packs in containers directly navigable in table view
|
||||||
- Update dependencies
|
- Update dependencies
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
import { Chart, Title, Tooltip, Legend, LineController, LineElement, PointElement, TimeScale, LinearScale } from 'chart.js'
|
import Chart from 'chart.js/auto'
|
||||||
import 'chartjs-adapter-date-fns'
|
import 'chartjs-adapter-date-fns'
|
||||||
Chart.register(Title, Tooltip, Legend, LineController, LineElement, PointElement, TimeScale, LinearScale)
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
initalizeChart (el) {
|
initalizeChart (el) {
|
||||||
const data = JSON.parse(el.dataset.chartData)
|
const data = JSON.parse(el.dataset.chartData)
|
||||||
|
|
||||||
this.el.chart = new Chart(el, {
|
this.el.chart = new Chart(el, {
|
||||||
type: 'line',
|
type: 'bar',
|
||||||
data: {
|
data: {
|
||||||
datasets: [{
|
datasets: [{
|
||||||
label: el.dataset.label,
|
label: el.dataset.label,
|
||||||
@ -51,7 +50,8 @@ export default {
|
|||||||
stacked: true,
|
stacked: true,
|
||||||
grace: '15%',
|
grace: '15%',
|
||||||
ticks: {
|
ticks: {
|
||||||
padding: 15
|
padding: 15,
|
||||||
|
precision: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
x: {
|
x: {
|
||||||
|
@ -1,18 +1,45 @@
|
|||||||
<main role="main" class="min-h-full min-w-full">
|
<main class="pb-8 min-w-full">
|
||||||
<header>
|
<header>
|
||||||
<.topbar current_user={assigns[:current_user]} />
|
<.topbar current_user={assigns[:current_user]} />
|
||||||
|
|
||||||
<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">
|
||||||
<p :if={@flash["info"]} class="alert alert-info" role="alert">
|
<p
|
||||||
<%= @flash["info"] %>
|
:if={@flash && @flash |> Map.has_key?("info")}
|
||||||
|
class="alert alert-info"
|
||||||
|
role="alert"
|
||||||
|
phx-click="lv:clear-flash"
|
||||||
|
phx-value-key="info"
|
||||||
|
>
|
||||||
|
<%= live_flash(@flash, "info") %>
|
||||||
</p>
|
</p>
|
||||||
<p :if={@flash["error"]} class="alert alert-danger" role="alert">
|
|
||||||
<%= @flash["error"] %>
|
<p
|
||||||
|
:if={@flash && @flash |> Map.has_key?("error")}
|
||||||
|
class="alert alert-danger"
|
||||||
|
role="alert"
|
||||||
|
phx-click="lv:clear-flash"
|
||||||
|
phx-value-key="error"
|
||||||
|
>
|
||||||
|
<%= live_flash(@flash, "error") %>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="mx-4 sm:mx-8 md:mx-16">
|
<div class="mx-4 sm:mx-8 md:mx-16 flex flex-col justify-center items-stretch">
|
||||||
<%= @inner_content %>
|
<%= @inner_content %>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
<div
|
||||||
|
id="disconnect"
|
||||||
|
class="z-50 fixed opacity-0 bottom-12 right-12 px-8 py-4 w-max h-max
|
||||||
|
border border-primary-200 shadow-lg rounded-lg bg-white
|
||||||
|
flex justify-center items-center space-x-4
|
||||||
|
transition-opacity ease-in-out duration-500 delay-[2000ms]"
|
||||||
|
>
|
||||||
|
<i class="fas fa-fade text-md fa-satellite-dish"></i>
|
||||||
|
|
||||||
|
<h1 class="title text-md title-primary-500">
|
||||||
|
<%= gettext("Reconnecting...") %>
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
1
lib/cannery_web/components/layouts/empty.html.heex
Normal file
1
lib/cannery_web/components/layouts/empty.html.heex
Normal file
@ -0,0 +1 @@
|
|||||||
|
<%= @inner_block %>
|
@ -1,45 +0,0 @@
|
|||||||
<main class="pb-8 min-w-full">
|
|
||||||
<header>
|
|
||||||
<.topbar current_user={assigns[:current_user]} />
|
|
||||||
|
|
||||||
<div class="mx-8 my-2 flex flex-col space-y-4 text-center">
|
|
||||||
<p
|
|
||||||
:if={@flash && @flash |> Map.has_key?("info")}
|
|
||||||
class="alert alert-info"
|
|
||||||
role="alert"
|
|
||||||
phx-click="lv:clear-flash"
|
|
||||||
phx-value-key="info"
|
|
||||||
>
|
|
||||||
<%= live_flash(@flash, "info") %>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p
|
|
||||||
:if={@flash && @flash |> Map.has_key?("error")}
|
|
||||||
class="alert alert-danger"
|
|
||||||
role="alert"
|
|
||||||
phx-click="lv:clear-flash"
|
|
||||||
phx-value-key="error"
|
|
||||||
>
|
|
||||||
<%= live_flash(@flash, "error") %>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<div class="mx-4 sm:mx-8 md:mx-16 flex flex-col justify-center items-stretch">
|
|
||||||
<%= @inner_content %>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<div
|
|
||||||
id="disconnect"
|
|
||||||
class="z-50 fixed opacity-0 bottom-12 right-12 px-8 py-4 w-max h-max
|
|
||||||
border border-primary-200 shadow-lg rounded-lg bg-white
|
|
||||||
flex justify-center items-center space-x-4
|
|
||||||
transition-opacity ease-in-out duration-500 delay-[2000ms]"
|
|
||||||
>
|
|
||||||
<i class="fas fa-fade text-md fa-satellite-dish"></i>
|
|
||||||
|
|
||||||
<h1 class="title text-md title-primary-500">
|
|
||||||
<%= gettext("Reconnecting...") %>
|
|
||||||
</h1>
|
|
||||||
</div>
|
|
@ -4,8 +4,7 @@ defmodule CanneryWeb.ErrorHelpers do
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
use PhoenixHTMLHelpers
|
use PhoenixHTMLHelpers
|
||||||
import Phoenix.HTML.Form
|
import Phoenix.{Component, HTML.Form}
|
||||||
import Phoenix.Component
|
|
||||||
alias Ecto.Changeset
|
alias Ecto.Changeset
|
||||||
alias Phoenix.{HTML.Form, LiveView.Rendered}
|
alias Phoenix.{HTML.Form, LiveView.Rendered}
|
||||||
|
|
||||||
|
2
mix.exs
2
mix.exs
@ -4,7 +4,7 @@ defmodule Cannery.MixProject do
|
|||||||
def project do
|
def project do
|
||||||
[
|
[
|
||||||
app: :cannery,
|
app: :cannery,
|
||||||
version: "0.9.6",
|
version: "0.9.7",
|
||||||
elixir: "1.16.1",
|
elixir: "1.16.1",
|
||||||
elixirc_paths: elixirc_paths(Mix.env()),
|
elixirc_paths: elixirc_paths(Mix.env()),
|
||||||
start_permanent: Mix.env() == :prod,
|
start_permanent: Mix.env() == :prod,
|
||||||
|
@ -559,7 +559,7 @@ msgstr "Neues Passwort"
|
|||||||
msgid "Firing type"
|
msgid "Firing type"
|
||||||
msgstr "Patronenhülsenform"
|
msgstr "Patronenhülsenform"
|
||||||
|
|
||||||
#: lib/cannery_web/components/layouts/live.html.heex:43
|
#: lib/cannery_web/components/layouts/app.html.heex:43
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Reconnecting..."
|
msgid "Reconnecting..."
|
||||||
msgstr "Neu verbinden..."
|
msgstr "Neu verbinden..."
|
||||||
|
@ -553,7 +553,7 @@ msgstr ""
|
|||||||
msgid "Firing type"
|
msgid "Firing type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/layouts/live.html.heex:43
|
#: lib/cannery_web/components/layouts/app.html.heex:43
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Reconnecting..."
|
msgid "Reconnecting..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -553,7 +553,7 @@ msgstr ""
|
|||||||
msgid "Firing type"
|
msgid "Firing type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/layouts/live.html.heex:43
|
#: lib/cannery_web/components/layouts/app.html.heex:43
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Reconnecting..."
|
msgid "Reconnecting..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -560,7 +560,7 @@ msgstr "Nueva contraseña"
|
|||||||
msgid "Firing type"
|
msgid "Firing type"
|
||||||
msgstr "Tipo de fuego"
|
msgstr "Tipo de fuego"
|
||||||
|
|
||||||
#: lib/cannery_web/components/layouts/live.html.heex:43
|
#: lib/cannery_web/components/layouts/app.html.heex:43
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Reconnecting..."
|
msgid "Reconnecting..."
|
||||||
msgstr "Reconectando..."
|
msgstr "Reconectando..."
|
||||||
|
@ -561,7 +561,7 @@ msgstr "Nouveau mot de passe"
|
|||||||
msgid "Firing type"
|
msgid "Firing type"
|
||||||
msgstr "Type d’allumage"
|
msgstr "Type d’allumage"
|
||||||
|
|
||||||
#: lib/cannery_web/components/layouts/live.html.heex:43
|
#: lib/cannery_web/components/layouts/app.html.heex:43
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Reconnecting..."
|
msgid "Reconnecting..."
|
||||||
msgstr "Reconnexion en cours…"
|
msgstr "Reconnexion en cours…"
|
||||||
|
@ -555,7 +555,7 @@ msgstr ""
|
|||||||
msgid "Firing type"
|
msgid "Firing type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/layouts/live.html.heex:43
|
#: lib/cannery_web/components/layouts/app.html.heex:43
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Reconnecting..."
|
msgid "Reconnecting..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -564,7 +564,7 @@ msgstr ""
|
|||||||
msgid "Firing type"
|
msgid "Firing type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cannery_web/components/layouts/live.html.heex:43
|
#: lib/cannery_web/components/layouts/app.html.heex:43
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Reconnecting..."
|
msgid "Reconnecting..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
Reference in New Issue
Block a user