20 lines
376 B
Elixir
20 lines
376 B
Elixir
|
defmodule FrenzyWeb.FilterRuleLive do
|
||
|
use FrenzyWeb, :live_component
|
||
|
|
||
|
@modes [
|
||
|
{"Contains Substring", "contains_string"},
|
||
|
{"Matches Regex", "matches_regex"}
|
||
|
]
|
||
|
|
||
|
@properties [
|
||
|
{"Title", "title"},
|
||
|
{"URL", "url"},
|
||
|
{"Author", "author"}
|
||
|
]
|
||
|
|
||
|
@impl true
|
||
|
def mount(socket) do
|
||
|
{:ok, assign(socket, modes: @modes, properties: @properties)}
|
||
|
end
|
||
|
end
|