file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
lib/example/accounts/user.ex
Elixir
defmodule Example.Accounts.User do use Ash.Resource, data_layer: AshPostgres.DataLayer, extensions: [AshAuthentication] attributes do uuid_primary_key :id attribute :email, :ci_string, allow_nil?: false attribute :hashed_password, :string, allow_nil?: false, sensitive?: true end authentica...
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/example/application.ex
Elixir
defmodule Example.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application @impl true def start(_type, _args) do children = [ # Start the Telemetry supervisor ExampleWeb.Telemetry, # Start the PubSub s...
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/example/mailer.ex
Elixir
defmodule Example.Mailer do use Swoosh.Mailer, otp_app: :example end
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/example/repo.ex
Elixir
defmodule Example.Repo do use AshPostgres.Repo, otp_app: :example def installed_extensions do ["uuid-ossp", "citext"] end end
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/example_web.ex
Elixir
defmodule ExampleWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, components, channels, and so on. This can be used in your application as: use ExampleWeb, :controller use ExampleWeb, :html The definitions below will be executed for every controller, ...
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/example_web/components/core_components.ex
Elixir
defmodule ExampleWeb.CoreComponents do @moduledoc """ Provides core UI components. The components in this module use Tailwind CSS, a utility-first CSS framework. See the [Tailwind CSS documentation](https://tailwindcss.com) to learn how to customize the generated components in this module. Icons are provi...
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/example_web/components/layouts.ex
Elixir
defmodule ExampleWeb.Layouts do use ExampleWeb, :html embed_templates "layouts/*" end
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/example_web/controllers/auth_controller.ex
Elixir
defmodule ExampleWeb.AuthController do use ExampleWeb, :controller use AshAuthentication.Phoenix.Controller def success(conn, _activity, user, _token) do return_to = get_session(conn, :return_to) || ~p"/" conn |> delete_session(:return_to) |> store_in_session(user) |> assign(:current_user, u...
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/example_web/controllers/auth_html.ex
Elixir
defmodule ExampleWeb.AuthHTML do use ExampleWeb, :html embed_templates "auth_html/*" end
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/example_web/controllers/error_html.ex
Elixir
defmodule ExampleWeb.ErrorHTML do use ExampleWeb, :html # If you want to customize your error pages, # uncomment the embed_templates/1 call below # and add pages to the error directory: # # * lib/example_web/controllers/error_html/404.html.heex # * lib/example_web/controllers/error_html/500.html.heex...
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/example_web/controllers/error_json.ex
Elixir
defmodule ExampleWeb.ErrorJSON do # If you want to customize a particular status code, # you may add your own clauses, such as: # # def render("500.json", _assigns) do # %{errors: %{detail: "Internal Server Error"}} # end # By default, Phoenix returns the status message from # the template name. For ...
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/example_web/controllers/page_controller.ex
Elixir
defmodule ExampleWeb.PageController do use ExampleWeb, :controller def home(conn, _params) do # The home page is often custom made, # so skip the default app layout. render(conn, :home, layout: false) end end
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/example_web/controllers/page_html.ex
Elixir
defmodule ExampleWeb.PageHTML do use ExampleWeb, :html embed_templates "page_html/*" end
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/example_web/endpoint.ex
Elixir
defmodule ExampleWeb.Endpoint do use Phoenix.Endpoint, otp_app: :example # The session will be stored in the cookie and signed, # this means its contents can be read but not tampered with. # Set :encryption_salt if you would also like to encrypt it. @session_options [ store: :cookie, key: "_example_k...
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/example_web/gettext.ex
Elixir
defmodule ExampleWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import ExampleWeb.Gettext # Simple translation gettext("Here is t...
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/example_web/router.ex
Elixir
defmodule ExampleWeb.Router do use ExampleWeb, :router use AshAuthentication.Phoenix.Router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_live_flash plug :put_root_layout, {ExampleWeb.Layouts, :root} plug :protect_from_forgery plug :put_secure_browser_header...
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/example_web/telemetry.ex
Elixir
defmodule ExampleWeb.Telemetry do use Supervisor import Telemetry.Metrics def start_link(arg) do Supervisor.start_link(__MODULE__, arg, name: __MODULE__) end @impl true def init(_arg) do children = [ # Telemetry poller will execute the given period measurements # every 10_000ms. Learn ...
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
mix.exs
Elixir
defmodule Example.MixProject do use Mix.Project def project do [ app: :example, version: "0.1.0", elixir: "~> 1.14", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, aliases: aliases(), deps: deps() ] end # Configuration for the OT...
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
priv/repo/migrations/20230130074333_install_2_extensions.exs
Elixir
defmodule Example.Repo.Migrations.Install2Extensions do @moduledoc """ Installs any extensions that are mentioned in the repo's `installed_extensions/0` callback This file was autogenerated with `mix ash_postgres.generate_migrations` """ use Ecto.Migration def up do execute("CREATE EXTENSION IF NOT E...
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
priv/repo/migrations/20230130074335_add_user_and_token.exs
Elixir
defmodule Example.Repo.Migrations.AddUserAndToken do @moduledoc """ Updates resources based on their most recent snapshots. This file was autogenerated with `mix ash_postgres.generate_migrations` """ use Ecto.Migration def up do create table(:users, primary_key: false) do add :id, :uuid, null: ...
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
test/example_web/controllers/error_html_test.exs
Elixir
defmodule ExampleWeb.ErrorHTMLTest do use ExampleWeb.ConnCase, async: true # Bring render_to_string/4 for testing custom views import Phoenix.Template test "renders 404.html" do assert render_to_string(ExampleWeb.ErrorHTML, "404", "html", []) == "Not Found" end test "renders 500.html" do assert r...
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
test/example_web/controllers/error_json_test.exs
Elixir
defmodule ExampleWeb.ErrorJSONTest do use ExampleWeb.ConnCase, async: true test "renders 404" do assert ExampleWeb.ErrorJSON.render("404.json", %{}) == %{errors: %{detail: "Not Found"}} end test "renders 500" do assert ExampleWeb.ErrorJSON.render("500.json", %{}) == %{errors: %{detail: "I...
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
test/example_web/controllers/page_controller_test.exs
Elixir
defmodule ExampleWeb.PageControllerTest do use ExampleWeb.ConnCase test "GET /", %{conn: conn} do conn = get(conn, ~p"/") assert html_response(conn, 200) =~ "Peace of mind from prototype to production" end end
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
test/support/conn_case.ex
Elixir
defmodule ExampleWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if th...
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
test/test_helper.exs
Elixir
ExUnit.start()
wintermeyer/ash-authentication-phoenix-example
0
This repo is the resulting source code of the Getting Started Ash Authentication Phoenix tutorial.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
.formatter.exs
Elixir
# Used by "mix format" [ inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] ]
wintermeyer/cologne_phonetic
0
Cologne phonetics encoder for Elixir
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/cologne_phonetic.ex
Elixir
defmodule ColognePhonetic do @moduledoc """ Documentation for `ColognePhonetic`. """ @doc """ Encode string to cologne phonetics. ## Examples iex> ColognePhonetic.encode("Elixir") "05487" """ def encode(sentence) do sentence |> String.downcase() |> String.split(" ") |> ...
wintermeyer/cologne_phonetic
0
Cologne phonetics encoder for Elixir
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
mix.exs
Elixir
defmodule ColognePhonetic.MixProject do use Mix.Project def project do [ app: :cologne_phonetic, version: "0.1.0", elixir: "~> 1.14", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do ...
wintermeyer/cologne_phonetic
0
Cologne phonetics encoder for Elixir
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
test/cologne_phonetic_test.exs
Elixir
defmodule ColognePhoneticTest do use ExUnit.Case doctest ColognePhonetic describe "encode/1" do test "encodes words correctly" do assert ColognePhonetic.encode("Wikipedia") == "3412" assert ColognePhonetic.encode("Müller-Lüdenscheidt") == "65752682" assert ColognePhonetic.encode("Erika Must...
wintermeyer/cologne_phonetic
0
Cologne phonetics encoder for Elixir
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
test/test_helper.exs
Elixir
ExUnit.start()
wintermeyer/cologne_phonetic
0
Cologne phonetics encoder for Elixir
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
.formatter.exs
Elixir
[ import_deps: [:ecto, :ecto_sql, :phoenix], subdirectories: ["priv/*/migrations"], plugins: [Phoenix.LiveView.HTMLFormatter], inputs: ["*.{heex,ex,exs}", "{config,lib,test}/**/*.{heex,ex,exs}", "priv/*/seeds.exs"] ]
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
assets/css/app.css
CSS
/* See the Tailwind configuration guide for advanced usage https://tailwindcss.com/docs/configuration */ @import "tailwindcss" source(none); @source "../css"; @source "../js"; @source "../../lib/koblenzomat_web"; /* A Tailwind plugin that makes "hero-#{ICON}" classes available. The heroicons installation itself...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
assets/js/app.js
JavaScript
// If you want to use Phoenix channels, run `mix help phx.gen.channel` // to get started and then uncomment the line below. // import "./user_socket.js" // You can include dependencies in two ways. // // The simplest option is to put them in assets/vendor and // import them using relative paths: // // import "../v...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
config/config.exs
Elixir
# This file is responsible for configuring your application # and its dependencies with the aid of the Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration import Config config :koblenzomat, ecto_repos: [Koblenzomat.Repo]...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
config/dev.exs
Elixir
import Config # Configure your database config :koblenzomat, Koblenzomat.Repo, username: "postgres", password: "postgres", hostname: "localhost", database: "koblenzomat_dev", stacktrace: true, show_sensitive_data_on_connection_error: true, pool_size: 10 # For development, we disable any cache and enable...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
config/prod.exs
Elixir
import Config # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix assets.deploy` task, # which you should run after static files are built and # before starting your production server. config :koblenzomat, KoblenzomatWeb.Endpoi...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
config/runtime.exs
Elixir
import Config # config/runtime.exs is executed for all environments, including # during releases. It is executed after compilation and before the # system starts, so it is typically used to load production configuration # and secrets from environment variables or elsewhere. Do not define # any compile-time configurati...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
config/test.exs
Elixir
import Config # Configure your database # # The MIX_TEST_PARTITION environment variable can be used # to provide built-in test partitioning in CI environment. # Run `mix help test` for more information. config :koblenzomat, Koblenzomat.Repo, username: "postgres", password: "postgres", hostname: "localhost", da...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/koblenzomat.ex
Elixir
defmodule Koblenzomat do @moduledoc """ Koblenzomat keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/koblenzomat/application.ex
Elixir
defmodule Koblenzomat.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application @impl true def start(_type, _args) do children = [ KoblenzomatWeb.Telemetry, Koblenzomat.Repo, {DNSCluster, query: Applica...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/koblenzomat/election.ex
Elixir
defmodule Koblenzomat.Election do @moduledoc """ The Election schema represents a single election event in the system. Each election can have many associated theses (questions/statements) that users interact with. """ use Ecto.Schema import Ecto.Changeset @primary_key {:id, :binary_id, autogenerate: tr...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/koblenzomat/hashtag.ex
Elixir
defmodule Koblenzomat.Hashtag do use Ecto.Schema import Ecto.Changeset @primary_key {:id, :binary_id, autogenerate: true} @foreign_key_type :binary_id schema "hashtags" do field :name, :string timestamps(type: :utc_datetime) end @doc false def changeset(hashtag, attrs) do hashtag |> c...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/koblenzomat/hashtags_to_theses.ex
Elixir
defmodule Koblenzomat.HashtagsToTheses do use Ecto.Schema import Ecto.Changeset @primary_key {:id, :binary_id, autogenerate: true} @foreign_key_type :binary_id schema "hashtags_to_theses" do field :thesis_id, :binary_id field :hashtag_id, :binary_id timestamps(type: :utc_datetime) end @doc ...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/koblenzomat/mailer.ex
Elixir
defmodule Koblenzomat.Mailer do use Swoosh.Mailer, otp_app: :koblenzomat end
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/koblenzomat/repo.ex
Elixir
defmodule Koblenzomat.Repo do use Ecto.Repo, otp_app: :koblenzomat, adapter: Ecto.Adapters.Postgres end
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/koblenzomat/thesis.ex
Elixir
defmodule Koblenzomat.Thesis do @moduledoc """ The Thesis schema represents a single statement or question within an election. Each thesis belongs to an election and can be associated with multiple hashtags for categorization. """ use Ecto.Schema import Ecto.Changeset @primary_key {:id, :binary_id, aut...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/koblenzomat/voting.ex
Elixir
defmodule Koblenzomat.Voting do @moduledoc """ The Voting context is responsible for all business logic related to elections, theses (questions/statements), hashtags, and their associations. This context provides functions to create theses (with automatic position handling) and to list elections with their assoc...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/koblenzomat_web.ex
Elixir
defmodule KoblenzomatWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, components, channels, and so on. This can be used in your application as: use KoblenzomatWeb, :controller use KoblenzomatWeb, :html The definitions below will be executed for every co...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/koblenzomat_web/components/core_components.ex
Elixir
defmodule KoblenzomatWeb.CoreComponents do @moduledoc """ Provides core UI components. At first glance, this module may seem daunting, but its goal is to provide core building blocks for your application, such as tables, forms, and inputs. The components consist mostly of markup and are well-documented wit...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/koblenzomat_web/components/layouts.ex
Elixir
defmodule KoblenzomatWeb.Layouts do @moduledoc """ This module holds different layouts used by your application. See the `layouts` directory for all templates available. The "root" layout is a skeleton rendered as part of the application router. The "app" layout is rendered as component in regular views an...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/koblenzomat_web/controllers/error_html.ex
Elixir
defmodule KoblenzomatWeb.ErrorHTML do @moduledoc """ This module is invoked by your endpoint in case of errors on HTML requests. See config/config.exs. """ use KoblenzomatWeb, :html # If you want to customize your error pages, # uncomment the embed_templates/1 call below # and add pages to the error d...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/koblenzomat_web/controllers/error_json.ex
Elixir
defmodule KoblenzomatWeb.ErrorJSON do @moduledoc """ This module is invoked by your endpoint in case of errors on JSON requests. See config/config.exs. """ # If you want to customize a particular status code, # you may add your own clauses, such as: # # def render("500.json", _assigns) do # %{erro...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/koblenzomat_web/controllers/page_controller.ex
Elixir
defmodule KoblenzomatWeb.PageController do use KoblenzomatWeb, :controller def home(conn, _params) do # The home page is often custom made, # so skip the default app layout. render(conn, :home, layout: false) end end
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/koblenzomat_web/controllers/page_html.ex
Elixir
defmodule KoblenzomatWeb.PageHTML do @moduledoc """ This module contains pages rendered by PageController. See the `page_html` directory for all templates available. """ use KoblenzomatWeb, :html embed_templates "page_html/*" end
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/koblenzomat_web/endpoint.ex
Elixir
defmodule KoblenzomatWeb.Endpoint do use Phoenix.Endpoint, otp_app: :koblenzomat # The session will be stored in the cookie and signed, # this means its contents can be read but not tampered with. # Set :encryption_salt if you would also like to encrypt it. @session_options [ store: :cookie, key: "_k...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/koblenzomat_web/gettext.ex
Elixir
defmodule KoblenzomatWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module compiles translations that you can use in your application. To use this Gettext backend module, call `use Gettext` and pass it as an...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/koblenzomat_web/live/home_live.ex
Elixir
defmodule KoblenzomatWeb.HomeLive do use KoblenzomatWeb, :live_view alias Koblenzomat.Voting @impl true def mount(_params, _session, socket) do theses = load_and_shuffle_theses() socket = assign(socket, theses: theses, current: 0) {:ok, socket} end @impl true def handle_event("next", _param...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/koblenzomat_web/router.ex
Elixir
defmodule KoblenzomatWeb.Router do use KoblenzomatWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_live_flash plug :put_root_layout, html: {KoblenzomatWeb.Layouts, :root} plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/koblenzomat_web/telemetry.ex
Elixir
defmodule KoblenzomatWeb.Telemetry do use Supervisor import Telemetry.Metrics def start_link(arg) do Supervisor.start_link(__MODULE__, arg, name: __MODULE__) end @impl true def init(_arg) do children = [ # Telemetry poller will execute the given period measurements # every 10_000ms. Le...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
mix.exs
Elixir
defmodule Koblenzomat.MixProject do use Mix.Project def project do [ app: :koblenzomat, version: "0.1.0", elixir: "~> 1.15", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, consolidate_protocols: Mix.env() != :dev, aliases: aliases(), ...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
priv/repo/migrations/.formatter.exs
Elixir
[ import_deps: [:ecto_sql], inputs: ["*.exs"] ]
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
priv/repo/migrations/20250610132244_create_elections.exs
Elixir
defmodule Koblenzomat.Repo.Migrations.CreateElections do use Ecto.Migration def change do create table(:elections, primary_key: false) do add :id, :binary_id, primary_key: true add :name, :string timestamps(type: :utc_datetime) end create unique_index(:elections, [:name]) end end
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
priv/repo/migrations/20250610132248_create_theses.exs
Elixir
defmodule Koblenzomat.Repo.Migrations.CreateTheses do use Ecto.Migration def change do create table(:theses, primary_key: false) do add :id, :binary_id, primary_key: true add :name, :string add :position, :integer, null: false add :election_id, references(:elections, type: :b...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
priv/repo/migrations/20250610132251_create_hashtags.exs
Elixir
defmodule Koblenzomat.Repo.Migrations.CreateHashtags do use Ecto.Migration def change do create table(:hashtags, primary_key: false) do add :id, :binary_id, primary_key: true add :name, :string timestamps(type: :utc_datetime) end create unique_index(:hashtags, [:name]) end end
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
priv/repo/migrations/20250610132253_create_hashtags_to_theses.exs
Elixir
defmodule Koblenzomat.Repo.Migrations.CreateHashtagsToTheses do use Ecto.Migration def change do create table(:hashtags_to_theses, primary_key: false) do add :id, :binary_id, primary_key: true add :thesis_id, references(:theses, on_delete: :nothing, type: :binary_id) add :hashtag_id, referenc...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
priv/repo/seeds.exs
Elixir
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # Koblenzomat.Repo.insert!(%Koblenzomat.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as t...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
test/koblenzomat_web/controllers/error_html_test.exs
Elixir
defmodule KoblenzomatWeb.ErrorHTMLTest do use KoblenzomatWeb.ConnCase, async: true # Bring render_to_string/4 for testing custom views import Phoenix.Template, only: [render_to_string: 4] test "renders 404.html" do assert render_to_string(KoblenzomatWeb.ErrorHTML, "404", "html", []) == "Not Found" end ...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
test/koblenzomat_web/controllers/error_json_test.exs
Elixir
defmodule KoblenzomatWeb.ErrorJSONTest do use KoblenzomatWeb.ConnCase, async: true test "renders 404" do assert KoblenzomatWeb.ErrorJSON.render("404.json", %{}) == %{errors: %{detail: "Not Found"}} end test "renders 500" do assert KoblenzomatWeb.ErrorJSON.render("500.json", %{}) == %{erro...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
test/koblenzomat_web/controllers/page_controller_test.exs
Elixir
defmodule KoblenzomatWeb.PageControllerTest do use KoblenzomatWeb.ConnCase test "GET /", %{conn: conn} do conn = get(conn, ~p"/") assert html_response(conn, 200) =~ "Koblenz-O-Mat" end end
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
test/koblenzomat_web/live/home_live_test.exs
Elixir
defmodule KoblenzomatWeb.HomeLiveTest do use KoblenzomatWeb.ConnCase, async: true import Phoenix.LiveViewTest test "renders and shuffles through theses", %{conn: conn} do {:ok, view, _html} = live(conn, "/") assert has_element?(view, "main[aria-label=\"Koblenz-O-Mat\"]") assert has_element?(view, "b...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
test/seeds_test.exs
Elixir
defmodule Koblenzomat.SeedsTest do use Koblenzomat.DataCase, async: true alias Koblenzomat.{Repo, Thesis, Hashtag, HashtagsToTheses} @seed_data [ {"Koblenz soll neue Baugebiete ausweisen, auch wenn dafür Freiflächen genutzt werden müssen.", ["Stadtentwicklung", "Wohnen"]}, {"Die Innenstadt soll stä...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
test/support/conn_case.ex
Elixir
defmodule KoblenzomatWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, i...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
test/support/data_case.ex
Elixir
defmodule Koblenzomat.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, we enable the SQL sandbox, so changes done ...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
test/test_helper.exs
Elixir
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Koblenzomat.Repo, :manual)
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
test/voting_test.exs
Elixir
defmodule Koblenzomat.VotingTest do @moduledoc """ Tests for the Voting context, covering election, thesis, hashtag, and their associations. These tests ensure that the core business logic for creating and validating elections and theses works as expected, including position uniqueness and auto-increment behavio...
wintermeyer/koblenzomat
0
Wahlentscheidungshilfe für die OB Wahl in Koblenz
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
.formatter.exs
Elixir
# Used by "mix format" [ inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] ]
wintermeyer/phx_tailwind_generators
110
Scaffold Generator which uses TailwindCSS.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/mix/tasks/phx_gen_tailwind.ex
Elixir
defmodule Mix.Tasks.Phx.Gen.Tailwind do @shortdoc "Generates controller, views, and context for an HTML resource with Tailwind CSS" @moduledoc """ Generates controller, views, and context for an HTML resource with Tailwind CSS. mix phx.gen.tailwind Accounts User users name:string age:integer The firs...
wintermeyer/phx_tailwind_generators
110
Scaffold Generator which uses TailwindCSS.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
lib/phx_tailwind_generators.ex
Elixir
defmodule PhxTailwindGenerators do @moduledoc """ Documentation for `PhxTailwindGenerators`. """ @doc """ Injects snippet before the final end in a file """ @spec inject_before_final_end(String.t(), String.t()) :: {:ok, String.t()} | :already_injected def inject_before_final_end(code, code_to_inject) w...
wintermeyer/phx_tailwind_generators
110
Scaffold Generator which uses TailwindCSS.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
mix.exs
Elixir
defmodule PhxTailwindGenerators.MixProject do use Mix.Project def project do [ app: :phx_tailwind_generators, version: "0.1.7", elixir: "~> 1.11", start_permanent: Mix.env() == :prod, deps: deps(), description: "Generators to create templates with Tailwind CSS.", name:...
wintermeyer/phx_tailwind_generators
110
Scaffold Generator which uses TailwindCSS.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
priv/templates/phx.gen.tailwind/controller.ex
Elixir
defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web_namespace, schema.alias) %>Controller do use <%= inspect context.web_module %>, :controller alias <%= inspect context.module %> alias <%= inspect schema.module %> def index(conn, _params) do <%= schema.plural %> = <%= inspect...
wintermeyer/phx_tailwind_generators
110
Scaffold Generator which uses TailwindCSS.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
priv/templates/phx.gen.tailwind/controller_test.exs
Elixir
defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web_namespace, schema.alias) %>ControllerTest do use <%= inspect context.web_module %>.ConnCase alias <%= inspect context.module %> @create_attrs <%= inspect schema.params.create %> @update_attrs <%= inspect schema.params.update %> ...
wintermeyer/phx_tailwind_generators
110
Scaffold Generator which uses TailwindCSS.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
priv/templates/phx.gen.tailwind/view.ex
Elixir
defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web_namespace, schema.alias) %>View do use <%= inspect context.web_module %>, :view end
wintermeyer/phx_tailwind_generators
110
Scaffold Generator which uses TailwindCSS.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
test/phx_tailwind_generators_test.exs
Elixir
defmodule PhxTailwindGeneratorsTest do use ExUnit.Case doctest PhxTailwindGenerators test "greets the world" do assert PhxTailwindGenerators.hello() == :world end end
wintermeyer/phx_tailwind_generators
110
Scaffold Generator which uses TailwindCSS.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
test/test_helper.exs
Elixir
ExUnit.start()
wintermeyer/phx_tailwind_generators
110
Scaffold Generator which uses TailwindCSS.
Elixir
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
entrypoint.sh
Shell
#!/bin/sh -l set -e file_name=$1 tag_version=$2 echo "\nInput file name: $file_name : $tag_version" echo "Git Head Ref: ${GITHUB_HEAD_REF}" echo "Git Base Ref: ${GITHUB_BASE_REF}" echo "Git Event Name: ${GITHUB_EVENT_NAME}" echo "\nStarting Git Operations" git config --global user.email "Bump-N-Tag@github-action.com...
wintermeyer/version-bump
0
GitHub Action which bumps the version number.
Shell
wintermeyer
Stefan Wintermeyer
Wintermeyer Consulting
build.gradle.kts
Kotlin
plugins { kotlin("jvm") version "2.2.21" application } repositories { mavenCentral() } dependencies { implementation("com.wire:wire-apps-jvm-sdk:0.0.19") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1") // Ktor (REQUIRED once you add HTTP features) implementation("io...
wireapp/Appy
0
Appy is a tiny smart assistant for Wire! Mention @Appy to get jokes, weather updates, calculations, timers, echoes, . A playful demo bot built using the Wire Apps SDK
Kotlin
wireapp
Wire Swiss GmbH
settings.gradle.kts
Kotlin
plugins { id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0" } rootProject.name = "Appy"
wireapp/Appy
0
Appy is a tiny smart assistant for Wire! Mention @Appy to get jokes, weather updates, calculations, timers, echoes, . A playful demo bot built using the Wire Apps SDK
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/Main.kt
Kotlin
import com.wire.sdk.WireAppSdk import com.wire.sdk.WireEventsHandlerSuspending import com.wire.sdk.model.* import kotlinx.coroutines.* import java.io.File import java.net.URL import java.time.LocalDate import java.time.format.TextStyle import java.util.* import kotlin.math.round import kotlin.math.roundToInt import com...
wireapp/Appy
0
Appy is a tiny smart assistant for Wire! Mention @Appy to get jokes, weather updates, calculations, timers, echoes, . A playful demo bot built using the Wire Apps SDK
Kotlin
wireapp
Wire Swiss GmbH
build.gradle.kts
Kotlin
plugins { kotlin("jvm") version "2.3.0" id("io.gitlab.arturbosch.detekt") version "1.23.8" id("org.jlleitschuh.gradle.ktlint") version "14.0.1" } group = "com.wire.apps.jira" version = "1.0-SNAPSHOT" repositories { mavenCentral() } detekt { toolVersion = "1.23.7" config.setFrom(file("$rootDir...
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
settings.gradle.kts
Kotlin
plugins { id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0" } rootProject.name = "jira-app"
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/Main.kt
Kotlin
package com.wire.apps.jira import com.wire.apps.jira.api.registerRoutes import com.wire.apps.jira.infra.config.AppConfig private const val APP_PORT = 8888 fun main() { AppConfig .setup() .apply { registerRoutes() } .start(APP_PORT) }
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/api/CommandHandler.kt
Kotlin
package com.wire.apps.jira.api import com.wire.apps.jira.core.GetJiraIssue import com.wire.apps.jira.core.SendHelp import com.wire.apps.jira.core.exceptions.InvalidCommandException import org.slf4j.LoggerFactory /** * Handler for processing commands in the API layer. * This follows proper layering by acting as an a...
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/api/CommandMapper.kt
Kotlin
package com.wire.apps.jira.api import com.wire.sdk.model.QualifiedId import org.koin.core.component.KoinComponent import org.slf4j.LoggerFactory /** * Maps Wire SDK commands to the CommandHandler. * This acts as an adapter between Wire SDK types and domain types. */ object CommandMapper : KoinComponent { priva...
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/api/HealthController.kt
Kotlin
package com.wire.apps.jira.api import io.javalin.http.Context class HealthController { fun get(context: Context) { context.json(mapOf("status" to "UP")) } }
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/api/Routes.kt
Kotlin
package com.wire.apps.jira.api import io.javalin.Javalin import org.koin.java.KoinJavaComponent.inject fun Javalin.registerRoutes() { get("/") { context -> context.redirect("/health") } val healthController: HealthController by inject(HealthController::class.java) get("/health", healthController::get) }
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/core/GetJiraIssue.kt
Kotlin
package com.wire.apps.jira.core import com.wire.apps.jira.core.model.JiraIssue import org.slf4j.LoggerFactory /** * Use case for retrieving a Jira issue and sending it to a conversation. * This use case is now independent of infrastructure details. */ class GetJiraIssue( private val jiraRepository: JiraReposit...
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/core/JiraRepository.kt
Kotlin
package com.wire.apps.jira.core import com.wire.apps.jira.core.model.JiraIssue /** * Repository interface for accessing Jira issue data. * This abstraction keeps the core layer independent of infrastructure details. */ interface JiraRepository { /** * Retrieves a Jira issue by its key. * @param key T...
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/core/MessagingGateway.kt
Kotlin
package com.wire.apps.jira.core /** * Gateway interface for sending messages to conversations. * This abstraction keeps the core layer independent of messaging infrastructure. */ interface MessagingGateway { /** * Sends a text message to a conversation. * @param conversationId The unique identifier fo...
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/core/SendHelp.kt
Kotlin
package com.wire.apps.jira.core import org.slf4j.LoggerFactory class SendHelp( private val messagingGateway: MessagingGateway, ) : UseCase<String, Unit> { private val logger = LoggerFactory.getLogger(SendHelp::class.java) override fun invoke(input: String) { val message = formatMessage() ...
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/core/UseCase.kt
Kotlin
package com.wire.apps.jira.core /** * Use cases contract. */ interface UseCase<in Input, out Output> { operator fun invoke(input: Input): Output }
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH