diff --git a/lib/schema_web/templates/page/class.html.eex b/lib/schema_web/templates/page/class.html.eex index 860700d..580c834 100644 --- a/lib/schema_web/templates/page/class.html.eex +++ b/lib/schema_web/templates/page/class.html.eex @@ -56,6 +56,7 @@ limitations under the License. + diff --git a/lib/schema_web/templates/page/class_graph.html.eex b/lib/schema_web/templates/page/class_graph.html.eex index 02c40fd..f91dfcc 100644 --- a/lib/schema_web/templates/page/class_graph.html.eex +++ b/lib/schema_web/templates/page/class_graph.html.eex @@ -46,6 +46,7 @@ limitations under the License. + diff --git a/lib/schema_web/templates/page/object.html.eex b/lib/schema_web/templates/page/object.html.eex index 02cdccf..3e13d24 100644 --- a/lib/schema_web/templates/page/object.html.eex +++ b/lib/schema_web/templates/page/object.html.eex @@ -56,6 +56,7 @@ data-selected-text-format="count > 3" data-actions-box="true" data-width="auto"> + diff --git a/lib/schema_web/templates/page/object_graph.html.eex b/lib/schema_web/templates/page/object_graph.html.eex index efe8b35..4f377f4 100644 --- a/lib/schema_web/templates/page/object_graph.html.eex +++ b/lib/schema_web/templates/page/object_graph.html.eex @@ -42,6 +42,7 @@ limitations under the License. data-selected-text-format="count > 3" data-actions-box="true" data-width="auto"> + diff --git a/lib/schema_web/templates/page/profile.html.eex b/lib/schema_web/templates/page/profile.html.eex index 9540029..6bcd271 100644 --- a/lib/schema_web/templates/page/profile.html.eex +++ b/lib/schema_web/templates/page/profile.html.eex @@ -35,6 +35,7 @@ data-selected-text-format="count > 3" data-actions-box="true" data-width="auto"> + diff --git a/lib/schema_web/views/page_view.ex b/lib/schema_web/views/page_view.ex index 872529f..3afea57 100644 --- a/lib/schema_web/views/page_view.ex +++ b/lib/schema_web/views/page_view.ex @@ -162,14 +162,21 @@ defmodule SchemaWeb.PageView do "event " end + deprecation_status = + if field[:"@deprecated"] != nil do + base <> "deprecated " + else + base <> "not-deprecated " + end + classes = if required?(field) do - base <> "required " + deprecation_status <> "required " else if recommended?(field) do - base <> "recommended " + deprecation_status <> "recommended " else - base <> "optional " + deprecation_status <> "optional " end end diff --git a/mix.exs b/mix.exs index 5abd6da..5b64154 100644 --- a/mix.exs +++ b/mix.exs @@ -10,7 +10,7 @@ defmodule Schema.MixProject do use Mix.Project - @version "2.59.0" + @version "2.60.0" def project do build = System.get_env("GITHUB_RUN_NUMBER") || "SNAPSHOT" diff --git a/priv/static/js/app.js b/priv/static/js/app.js index 8682369..72b0803 100644 --- a/priv/static/js/app.js +++ b/priv/static/js/app.js @@ -37,7 +37,7 @@ function set_selected_extensions(extensions) { localStorage.setItem("schema_extensions", JSON.stringify(extensions)); } -const defaultSelectedValues = ["base-event", "optional", "recommended", "classification", "context", "occurrence", "primary"]; +const defaultSelectedValues = ["base-event", "deprecated", "optional", "recommended", "classification", "context", "occurrence", "primary"]; const storageKey = "selected-attributes" function hide(name) { @@ -99,6 +99,7 @@ function display_attributes(options) { if (table != null) { // add classes that are always shown options.add("event"); + options.add("not-deprecated") options.add("required"); options.add("no-group"); options.add("no-profile"); @@ -133,7 +134,7 @@ function intersection(setA, setB) { } function display_row(set, classList) { - if (set.size == 4) + if (set.size == 5) classList.remove('d-none'); else classList.add('d-none');