diff --git a/README.md b/README.md index 784e4e2..8391bd6 100644 --- a/README.md +++ b/README.md @@ -1,72 +1,85 @@ ## Development To start development on #Larus, execute the following: #. Become some sort of privileged user: $ sudo su - #. Download the repository configuration: # cd /etc/yum.repos.d/ # wget https://obs.kolabsys.com/repositories/home:/vanmeeuwen:/erlang-18.3/Fedora_23/home:vanmeeuwen:erlang-18.3.repo # wget https://obs.kolabsys.com/repositories/home:/vanmeeuwen:/phoenix/Fedora_23/home:vanmeeuwen:phoenix.repo #. Install phoenix: # dnf -y install phoenix +#. Install and start a Postgres server: + + # dnf -y install postgresql-server + # systemctl enable postgresql + # postgresql-setup --initdb + # sed -i -e 's/ident/trust/g' /var/lib/pgsql/data/pg_hba.conf + # systemctl start postgresql + #. Don't forget to log out: # logout #. Provided your GIT checkout, initialize git flow: $ git flow init --default #. Download and install the required `.ez` files: $ mix local.hex $ mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez #. Start a feature, support, hotfix, ...: $ git flow feature start trial-and-error $ cd larus $ mix deps.get $ npm install $ mix phoenix.server -### Before you commit +### Before You Commit $ mix dogma $ mix credo +Fix coding style issues that are reported. + + $ mix test + $ mix docs + ## `~/.vimrc` Use `~/.vimrc` or equivalent to ensure the "correct" indentation is used: ``` " " elixir and such autocmd BufRead,BufNewFile *.ex set shiftwidth=2 tabstop=2 expandtab autocmd BufRead,BufNewFile *.ex set shiftwidth=2 tabstop=2 expandtab autocmd BufRead,BufNewFile *.exs set shiftwidth=2 tabstop=2 expandtab ``` ## l10n Add supported locales to `larus/config/config.exs`. Extract strings: $ mix gettext.extract Merge in new translated strings: $ mix gettext.merge priv/gettext/ Create a new locale: $ mix gettext.merge priv/gettext/ --locale de diff --git a/larus/doc/404.html b/larus/doc/404.html new file mode 100644 index 0000000..07153d3 --- /dev/null +++ b/larus/doc/404.html @@ -0,0 +1,90 @@ + + + + + + + + 404 – larus v0.0.1 + + + + + + +
+ + + +
+
+ + +

Page not found

+ +

Sorry, but the page you were trying to get to, does not exist. You +may want to try searching this site using the sidebar or using our +API Reference page to find what +you were looking for.

+ + +
+
+
+ + + + diff --git a/larus/doc/Blank.Protocol.html b/larus/doc/Blank.Protocol.html new file mode 100644 index 0000000..f07a181 --- /dev/null +++ b/larus/doc/Blank.Protocol.html @@ -0,0 +1,194 @@ + + + + + + + + Blank.Protocol – larus v0.0.1 + + + + + + +
+ + + +
+
+ + +

+ larus v0.0.1 + Blank.Protocol + + protocol + + +

+ + +
+

Provides only one single method definition blank?/1

+ +
+ + + +
+

+ + + + Summary +

+ +
+

+ Types +

+
+
+ t() +
+ +
+ +
+ + + +
+

+ Functions +

+
+ + +

Returns true if data is considered blank/empty

+
+ +
+ +
+ + + + + + +
+ + + +
+

+ + + + Types +

+
+
+
t :: term
+ +
+ +
+
+ + + +
+

+ + + + Functions +

+
+
+ + + + blank?(data) + +
+ +
+

Returns true if data is considered blank/empty.

+ +
+
+ +
+ + + + + + +
+
+
+ + + + diff --git a/larus/doc/Blank.html b/larus/doc/Blank.html new file mode 100644 index 0000000..e472f37 --- /dev/null +++ b/larus/doc/Blank.html @@ -0,0 +1,209 @@ + + + + + + + + Blank – larus v0.0.1 + + + + + + +
+ + + +
+
+ + +

+ larus v0.0.1 + Blank + + +

+ + +
+

Tools around checking and handling undefined or blank data.

+ +
+ + + +
+

+ + + + Summary +

+ + + +
+

+ Functions +

+
+ + +

Returns true if data is considered blank/empty

+
+ +
+
+ + +

Returns the provided data if valid of the default value if not

+
+ +
+
+ + +

Returns true if data is not considered blank/empty

+
+ +
+ +
+ + + + + + +
+ + + + + +
+

+ + + + Functions +

+
+
+ + + + blank?(data) + +
+ +
+

Returns true if data is considered blank/empty.

+ +
+
+
+
+ + + + default_to(data, default) + +
+ +
+

Returns the provided data if valid of the default value if not.

+ +
+
+
+
+ + + + present?(data) + +
+ +
+

Returns true if data is not considered blank/empty.

+ +
+
+ +
+ + + + + + +
+
+
+ + + + diff --git a/larus/doc/Larus.Endpoint.html b/larus/doc/Larus.Endpoint.html new file mode 100644 index 0000000..e218696 --- /dev/null +++ b/larus/doc/Larus.Endpoint.html @@ -0,0 +1,562 @@ + + + + + + + + Larus.Endpoint – larus v0.0.1 + + + + + + +
+ + + +
+
+ + +

+ larus v0.0.1 + Larus.Endpoint + + +

+ + +
+

Larus.Endpoint

+ +
+ + + +
+

+ + + + Summary +

+ + + +
+

+ Functions +

+
+ + +

Returns all sockets configured in this endpoint

+
+ +
+ + + + +
+ + +

Callback implementation for c:Plug.call/2

+
+ +
+
+ + +

Returns the endpoint configuration for key

+
+ +
+
+ + +

Reloads the configuration given the application environment changes

+
+ +
+
+ + +

Callback implementation for c:Plug.init/1

+
+ +
+
+ + +

Generates the path information when routing to this endpoint

+
+ +
+
+ + +

Starts the endpoint supervision tree

+
+ +
+
+ + +

Generates a route to a static file in priv/static

+
+ +
+
+ + +

Generates the static URL without any path information

+
+ +
+
+ + +

Generates the endpoint base URL but as a URI struct

+
+ +
+ + +
+
+ url() +
+ +

Generates the endpoint base URL without any path information

+
+ +
+ +
+ + + +
+

+ Macros +

+
+ + +

Instruments the given function

+
+ +
+ +
+ + + + +
+ + + + + +
+

+ + + + Functions +

+
+
+ + + + __sockets__() + +
+ +
+

Returns all sockets configured in this endpoint.

+ +
+
+
+
+ + + + broadcast(topic, event, msg) + +
+ +
+ +
+
+
+
+ + + + broadcast!(topic, event, msg) + +
+ +
+ +
+
+
+
+ + + + broadcast_from(from, topic, event, msg) + +
+ +
+ +
+
+
+
+ + + + broadcast_from!(from, topic, event, msg) + +
+ +
+ +
+
+
+
+ + + + call(conn, opts) + +
+ +
+

Callback implementation for c:Plug.call/2.

+ +
+
+
+
+ + + + config(key, default \\ nil) + +
+ +
+

Returns the endpoint configuration for key

+

Returns default if the key does not exist.

+ +
+
+
+
+ + + + config_change(changed, removed) + +
+ +
+

Reloads the configuration given the application environment changes.

+ +
+
+
+
+ + + + init(opts) + +
+ +
+

Callback implementation for c:Plug.init/1.

+ +
+
+
+
+ + + + path(path) + +
+ +
+

Generates the path information when routing to this endpoint.

+ +
+
+
+
+ + + + start_link() + +
+ +
+

Starts the endpoint supervision tree.

+ +
+
+
+
+ + + + static_path(path) + +
+ +
+

Generates a route to a static file in priv/static.

+ +
+
+
+
+ + + + static_url() + +
+ +
+

Generates the static URL without any path information.

+

It uses the configuration under :static_url to generate +such. It fallsback to :url if :static_url is not set.

+ +
+
+
+
+ + + + struct_url() + +
+ +
+

Generates the endpoint base URL but as a URI struct.

+

It uses the configuration under :url to generate such. +Useful for manipulating the url data and passing to +URL helpers.

+ +
+
+
+
+ + + + subscribe(pid, topic, opts \\ []) + +
+ +
+ +
+
+
+
+ + + + unsubscribe(pid, topic) + +
+ +
+ +
+
+
+
+ + + + url() + +
+ +
+

Generates the endpoint base URL without any path information.

+

It uses the configuration under :url to generate such.

+ +
+
+ +
+ + + +
+

+ + + + Macros +

+
+
+ + + + instrument(event, runtime \\ Macro.escape(%{}), fun) + +
+ +
+

Instruments the given function.

+

event is the event identifier (usually an atom) that specifies which +instrumenting function to call in the instrumenter modules. runtime is +metadata to be associated with the event at runtime (e.g., the query being +issued if the event to instrument is a DB query).

+

Examples

+
instrument :render_view, %{view: "index.html"}, fn ->
+  render conn, "index.html"
+end
+ +
+
+ +
+ + + + +
+
+
+ + + + diff --git a/larus/doc/Larus.ErrorHelpers.html b/larus/doc/Larus.ErrorHelpers.html new file mode 100644 index 0000000..4d0dee8 --- /dev/null +++ b/larus/doc/Larus.ErrorHelpers.html @@ -0,0 +1,186 @@ + + + + + + + + Larus.ErrorHelpers – larus v0.0.1 + + + + + + +
+ + + +
+
+ + +

+ larus v0.0.1 + Larus.ErrorHelpers + + +

+ + +
+

Conveniences for translating and building error messages.

+ +
+ + + +
+

+ + + + Summary +

+ + + +
+

+ Functions +

+
+ + +

Generates tag for inlined form input errors

+
+ +
+
+ + +

Translates an error message using gettext

+
+ +
+ +
+ + + + + + +
+ + + + + +
+

+ + + + Functions +

+
+
+ + + + error_tag(form, field) + +
+ +
+

Generates tag for inlined form input errors.

+ +
+
+
+
+ + + + translate_error(msg) + +
+ +
+

Translates an error message using gettext.

+ +
+
+ +
+ + + + + + +
+
+
+ + + + diff --git a/larus/doc/Larus.ErrorView.html b/larus/doc/Larus.ErrorView.html new file mode 100644 index 0000000..b4e821f --- /dev/null +++ b/larus/doc/Larus.ErrorView.html @@ -0,0 +1,259 @@ + + + + + + + + Larus.ErrorView – larus v0.0.1 + + + + + + +
+ + + +
+
+ + +

+ larus v0.0.1 + Larus.ErrorView + + +

+ + +
+

Views on errors

+ +
+ + + +
+

+ + + + Summary +

+ + + +
+

+ Functions +

+
+ + +

Returns true whenever the list of templates changes in the filesystem

+
+ +
+
+ + +

The resource name, as an atom, for this view

+
+ +
+
+ + +

Returns the template root alongside all templates

+
+ +
+
+ + +

Renders the given template locally

+
+ +
+
+ + +

Callback invoked when no template is found. +By default it raises but can be customized +to render a particular template

+
+ +
+ +
+ + + + + + +
+ + + + + +
+

+ + + + Functions +

+
+
+ + + + __phoenix_recompile__?() + +
+ +
+

Returns true whenever the list of templates changes in the filesystem.

+ +
+
+
+
+ + + + __resource__() + +
+ +
+

The resource name, as an atom, for this view

+ +
+
+
+
+ + + + __templates__() + +
+ +
+

Returns the template root alongside all templates.

+ +
+
+
+
+ + + + render(template, assigns \\ %{}) + +
+ +
+

Renders the given template locally.

+ +
+
+
+
+ + + + template_not_found(template, assigns) + +
+ +
+

Callback invoked when no template is found. +By default it raises but can be customized +to render a particular template.

+ +
+
+ +
+ + + + + + +
+
+
+ + + + diff --git a/larus/doc/Larus.Gettext.html b/larus/doc/Larus.Gettext.html new file mode 100644 index 0000000..abb217f --- /dev/null +++ b/larus/doc/Larus.Gettext.html @@ -0,0 +1,302 @@ + + + + + + + + Larus.Gettext – larus v0.0.1 + + + + + + +
+ + + +
+
+ + +

+ larus v0.0.1 + Larus.Gettext + + +

+ + +
+

A module providing Internationalization with a gettext-based API.

+

By using Gettext, +your module gains a set of macros for translations, for example:

+

import Larus.Gettext

+

# Simple translation + gettext “Here is the string to translate”

+

# Plural translation + ngettext “Here is the string to translate”,

+
       "Here are the strings to translate",
+       3
+

# Domain-based translation + dgettext “errors”, “Here is the error message to translate”

+

See the Gettext Docs for detailed usage.

+ +
+ + + +
+

+ + + + Summary +

+ + + + + + + + + + + + +
+ + + + + +
+

+ + + + Functions +

+
+
+ + + + lgettext(locale, domain, msgid, bindings \\ %{}) + +
+ +
+ +
+
+
+
+ + + + lngettext(locale, domain, msgid, msgid_plural, n, bindings \\ %{}) + +
+ +
+ +
+
+
+
+ + + + supported_locales() + +
+ +
+ +
+
+ +
+ + + +
+

+ + + + Macros +

+
+
+ + + + dgettext(domain, msgid, bindings \\ Macro.escape(%{})) + +
+ +
+ +
+
+
+
+ + + + dngettext(domain, msgid, msgid_plural, n, bindings \\ Macro.escape(%{})) + +
+ +
+ +
+
+
+
+ + + + gettext(msgid, bindings \\ Macro.escape(%{})) + +
+ +
+ +
+
+
+
+ + + + ngettext(msgid, msgid_plural, n, bindings \\ Macro.escape(%{})) + +
+ +
+ +
+
+ +
+ + + + +
+
+
+ + + + diff --git a/larus/doc/Larus.LayoutView.html b/larus/doc/Larus.LayoutView.html new file mode 100644 index 0000000..492d361 --- /dev/null +++ b/larus/doc/Larus.LayoutView.html @@ -0,0 +1,316 @@ + + + + + + + + Larus.LayoutView – larus v0.0.1 + + + + + + +
+ + + +
+
+ + +

+ larus v0.0.1 + Larus.LayoutView + + +

+ + +
+

A layout view.

+ +
+ + + +
+

+ + + + Summary +

+ + + +
+

+ Functions +

+
+ + +

Returns true whenever the list of templates changes in the filesystem

+
+ +
+
+ + +

The resource name, as an atom, for this view

+
+ +
+
+ + +

Returns the template root alongside all templates

+
+ +
+
+
+ author() +
+ +
+
+ + +
+
+ + +

Renders the given template locally

+
+ +
+
+ + +

Callback invoked when no template is found. +By default it raises but can be customized +to render a particular template

+
+ +
+
+
+ title() +
+ +
+ +
+ + + + + + +
+ + + + + +
+

+ + + + Functions +

+
+
+ + + + __phoenix_recompile__?() + +
+ +
+

Returns true whenever the list of templates changes in the filesystem.

+ +
+
+
+
+ + + + __resource__() + +
+ +
+

The resource name, as an atom, for this view

+ +
+
+
+
+ + + + __templates__() + +
+ +
+

Returns the template root alongside all templates.

+ +
+
+
+
+ + + + author() + +
+ +
+ +
+
+
+
+ + + + description() + +
+ +
+ +
+
+
+
+ + + + render(template, assigns \\ %{}) + +
+ +
+

Renders the given template locally.

+ +
+
+
+
+ + + + template_not_found(template, assigns) + +
+ +
+

Callback invoked when no template is found. +By default it raises but can be customized +to render a particular template.

+ +
+
+
+
+ + + + title() + +
+ +
+ +
+
+ +
+ + + + + + +
+
+
+ + + + diff --git a/larus/doc/Larus.PageController.html b/larus/doc/Larus.PageController.html new file mode 100644 index 0000000..88f5d23 --- /dev/null +++ b/larus/doc/Larus.PageController.html @@ -0,0 +1,159 @@ + + + + + + + + Larus.PageController – larus v0.0.1 + + + + + + +
+ + + +
+
+ + +

+ larus v0.0.1 + Larus.PageController + + +

+ + +
+

Larus.PageController

+ +
+ + + +
+

+ + + + Summary +

+ + + +
+

+ Functions +

+ + +
+ + + + + + +
+ + + + + +
+

+ + + + Functions +

+
+
+ + + + index(conn, params) + +
+ +
+ +
+
+ +
+ + + + + + +
+
+
+ + + + diff --git a/larus/doc/Larus.PageView.html b/larus/doc/Larus.PageView.html new file mode 100644 index 0000000..9620fb7 --- /dev/null +++ b/larus/doc/Larus.PageView.html @@ -0,0 +1,259 @@ + + + + + + + + Larus.PageView – larus v0.0.1 + + + + + + +
+ + + +
+
+ + +

+ larus v0.0.1 + Larus.PageView + + +

+ + +
+

The Larus page view

+ +
+ + + +
+

+ + + + Summary +

+ + + +
+

+ Functions +

+
+ + +

Returns true whenever the list of templates changes in the filesystem

+
+ +
+
+ + +

The resource name, as an atom, for this view

+
+ +
+
+ + +

Returns the template root alongside all templates

+
+ +
+
+ + +

Renders the given template locally

+
+ +
+
+ + +

Callback invoked when no template is found. +By default it raises but can be customized +to render a particular template

+
+ +
+ +
+ + + + + + +
+ + + + + +
+

+ + + + Functions +

+
+
+ + + + __phoenix_recompile__?() + +
+ +
+

Returns true whenever the list of templates changes in the filesystem.

+ +
+
+
+
+ + + + __resource__() + +
+ +
+

The resource name, as an atom, for this view

+ +
+
+
+
+ + + + __templates__() + +
+ +
+

Returns the template root alongside all templates.

+ +
+
+
+
+ + + + render(template, assigns \\ %{}) + +
+ +
+

Renders the given template locally.

+ +
+
+
+
+ + + + template_not_found(template, assigns) + +
+ +
+

Callback invoked when no template is found. +By default it raises but can be customized +to render a particular template.

+ +
+
+ +
+ + + + + + +
+
+
+ + + + diff --git a/larus/doc/Larus.Plug.Locale.html b/larus/doc/Larus.Plug.Locale.html new file mode 100644 index 0000000..de09b18 --- /dev/null +++ b/larus/doc/Larus.Plug.Locale.html @@ -0,0 +1,173 @@ + + + + + + + + Larus.Plug.Locale – larus v0.0.1 + + + + + + +
+ + + +
+
+ + +

+ larus v0.0.1 + Larus.Plug.Locale + + +

+ + + + +
+

+ + + + Summary +

+ + + +
+

+ Functions +

+ +
+ + +
+ +
+ + + + + + +
+ + + + + +
+

+ + + + Functions +

+
+
+ + + + call(conn, default) + +
+ +
+ +
+
+
+
+ + + + init(default) + +
+ +
+ +
+
+ +
+ + + + + + +
+
+
+ + + + diff --git a/larus/doc/Larus.Repo.html b/larus/doc/Larus.Repo.html new file mode 100644 index 0000000..47e9aec --- /dev/null +++ b/larus/doc/Larus.Repo.html @@ -0,0 +1,697 @@ + + + + + + + + Larus.Repo – larus v0.0.1 + + + + + + +
+ + + +
+
+ + +

+ larus v0.0.1 + Larus.Repo + + +

+ + +
+

Larus.Repo

+ +
+ + + +
+

+ + + + Summary +

+ + + +
+

+ Functions +

+
+ + +

Callback implementation for c:Ecto.Repo.all/2

+
+ +
+
+
+ config() +
+ +

Callback implementation for c:Ecto.Repo.config/0

+
+ +
+
+ + +

Callback implementation for c:Ecto.Repo.delete/2

+
+ +
+
+ + +

Callback implementation for c:Ecto.Repo.delete!/2

+
+ +
+
+ + +

Callback implementation for c:Ecto.Repo.delete_all/2

+
+ +
+
+ + +

Callback implementation for c:Ecto.Repo.get/3

+
+ +
+
+ + +

Callback implementation for c:Ecto.Repo.get!/3

+
+ +
+
+ + +

Callback implementation for c:Ecto.Repo.get_by/3

+
+ +
+
+ + +

Callback implementation for c:Ecto.Repo.get_by!/3

+
+ +
+
+ + +

Callback implementation for c:Ecto.Repo.insert/2

+
+ +
+
+ + +

Callback implementation for c:Ecto.Repo.insert!/2

+
+ +
+
+ + +

Callback implementation for c:Ecto.Repo.insert_or_update/2

+
+ +
+
+ + +

Callback implementation for c:Ecto.Repo.insert_or_update!/2

+
+ +
+
+ + +

Callback implementation for c:Ecto.Repo.log/1

+
+ +
+
+ + +

Callback implementation for c:Ecto.Repo.one/2

+
+ +
+
+ + +

Callback implementation for c:Ecto.Repo.one!/2

+
+ +
+
+ + +

Callback implementation for c:Ecto.Repo.preload/2

+
+ +
+
+ + +

Callback implementation for c:Ecto.Repo.rollback/1

+
+ +
+ +
+ + +

Callback implementation for c:Ecto.Repo.stop/2

+
+ +
+
+ + +

Callback implementation for c:Ecto.Repo.transaction/2

+
+ +
+
+ + +

Callback implementation for c:Ecto.Repo.update/2

+
+ +
+
+ + +

Callback implementation for c:Ecto.Repo.update!/2

+
+ +
+
+ + +

Callback implementation for c:Ecto.Repo.update_all/3

+
+ +
+ +
+ + + + + + +
+ + + + + +
+

+ + + + Functions +

+
+
+ + + + all(queryable, opts \\ []) + +
+ +
+

Callback implementation for c:Ecto.Repo.all/2.

+ +
+
+
+
+ + + + config() + +
+ +
+

Callback implementation for c:Ecto.Repo.config/0.

+ +
+
+
+
+ + + + delete(model, opts \\ []) + +
+ +
+

Callback implementation for c:Ecto.Repo.delete/2.

+ +
+
+
+
+ + + + delete!(model, opts \\ []) + +
+ +
+

Callback implementation for c:Ecto.Repo.delete!/2.

+ +
+
+
+
+ + + + delete_all(queryable, opts \\ []) + +
+ +
+

Callback implementation for c:Ecto.Repo.delete_all/2.

+ +
+
+
+
+ + + + get(queryable, id, opts \\ []) + +
+ +
+

Callback implementation for c:Ecto.Repo.get/3.

+ +
+
+
+
+ + + + get!(queryable, id, opts \\ []) + +
+ +
+

Callback implementation for c:Ecto.Repo.get!/3.

+ +
+
+
+
+ + + + get_by(queryable, clauses, opts \\ []) + +
+ +
+

Callback implementation for c:Ecto.Repo.get_by/3.

+ +
+
+
+
+ + + + get_by!(queryable, clauses, opts \\ []) + +
+ +
+

Callback implementation for c:Ecto.Repo.get_by!/3.

+ +
+
+
+
+ + + + insert(model, opts \\ []) + +
+ +
+

Callback implementation for c:Ecto.Repo.insert/2.

+ +
+
+
+
+ + + + insert!(model, opts \\ []) + +
+ +
+

Callback implementation for c:Ecto.Repo.insert!/2.

+ +
+
+
+
+ + + + insert_or_update(changeset, opts \\ []) + +
+ +
+

Callback implementation for c:Ecto.Repo.insert_or_update/2.

+ +
+
+
+
+ + + + insert_or_update!(changeset, opts \\ []) + +
+ +
+

Callback implementation for c:Ecto.Repo.insert_or_update!/2.

+ +
+
+
+
+ + + + log(entry) + +
+ +
+

Callback implementation for c:Ecto.Repo.log/1.

+ +
+
+
+
+ + + + one(queryable, opts \\ []) + +
+ +
+

Callback implementation for c:Ecto.Repo.one/2.

+ +
+
+
+
+ + + + one!(queryable, opts \\ []) + +
+ +
+

Callback implementation for c:Ecto.Repo.one!/2.

+ +
+
+
+
+ + + + preload(model_or_models, preloads) + +
+ +
+

Callback implementation for c:Ecto.Repo.preload/2.

+ +
+
+
+
+ + + + rollback(value) + +
+ +
+

Specs

+
+ +
rollback(term) :: no_return
+ +
+
+ +
+

Callback implementation for c:Ecto.Repo.rollback/1.

+ +
+
+
+
+ + + + start_link(opts \\ []) + +
+ +
+ +
+
+
+
+ + + + stop(pid, timeout \\ 5000) + +
+ +
+

Callback implementation for c:Ecto.Repo.stop/2.

+ +
+
+
+
+ + + + transaction(opts \\ [], fun) + +
+ +
+

Callback implementation for c:Ecto.Repo.transaction/2.

+ +
+
+
+
+ + + + update(model, opts \\ []) + +
+ +
+

Callback implementation for c:Ecto.Repo.update/2.

+ +
+
+
+
+ + + + update!(model, opts \\ []) + +
+ +
+

Callback implementation for c:Ecto.Repo.update!/2.

+ +
+
+
+
+ + + + update_all(queryable, updates, opts \\ []) + +
+ +
+

Callback implementation for c:Ecto.Repo.update_all/3.

+ +
+
+ +
+ + + + + + +
+
+
+ + + + diff --git a/larus/doc/Larus.Router.Helpers.html b/larus/doc/Larus.Router.Helpers.html new file mode 100644 index 0000000..77584c9 --- /dev/null +++ b/larus/doc/Larus.Router.Helpers.html @@ -0,0 +1,308 @@ + + + + + + + + Larus.Router.Helpers – larus v0.0.1 + + + + + + +
+ + + +
+
+ + +

+ larus v0.0.1 + Larus.Router.Helpers + + +

+ + +
+

Module with named helpers generated from Larus.Router.

+ +
+ + + +
+

+ + + + Summary +

+ + + +
+

+ Functions +

+ + + + +
+ + +

Generates the path information including any necessary prefix

+
+ +
+
+ + +

Generates path to a static asset given its file path

+
+ +
+
+ + +

Generates url to a static asset given its file path

+
+ +
+
+
+ url(data) +
+ +

Generates the connection/endpoint base URL without any path information

+
+ +
+ +
+ + + + + + +
+ + + + + +
+

+ + + + Functions +

+
+
+ + + + page_path(conn_or_endpoint, action) + +
+ +
+ +
+
+
+
+ + + + page_path(conn_or_endpoint, action, params) + +
+ +
+ +
+
+
+
+ + + + page_url(conn_or_endpoint, action) + +
+ +
+ +
+
+
+
+ + + + page_url(conn_or_endpoint, action, params) + +
+ +
+ +
+
+
+
+ + + + path(data, path) + +
+ +
+

Generates the path information including any necessary prefix.

+ +
+
+
+
+ + + + static_path(conn, path) + +
+ +
+

Generates path to a static asset given its file path.

+ +
+
+
+
+ + + + static_url(conn, path) + +
+ +
+

Generates url to a static asset given its file path.

+ +
+
+
+
+ + + + url(data) + +
+ +
+

Generates the connection/endpoint base URL without any path information.

+ +
+
+ +
+ + + + + + +
+
+
+ + + + diff --git a/larus/doc/Larus.Router.html b/larus/doc/Larus.Router.html new file mode 100644 index 0000000..6719fe0 --- /dev/null +++ b/larus/doc/Larus.Router.html @@ -0,0 +1,226 @@ + + + + + + + + Larus.Router – larus v0.0.1 + + + + + + +
+ + + +
+
+ + +

+ larus v0.0.1 + Larus.Router + + +

+ + +
+

Larus.Router

+ +
+ + + +
+

+ + + + Summary +

+ + + +
+

+ Functions +

+
+ + +
+
+ + +
+
+ + +

Callback invoked by Plug on every request

+
+ +
+
+ + +

Callback required by Plug that initializes the router +for serving web requests

+
+ +
+ +
+ + + + + + +
+ + + + + +
+

+ + + + Functions +

+
+
+ + + + api(conn, ) + +
+ +
+ +
+
+
+
+ + + + browser(conn, ) + +
+ +
+ +
+
+
+
+ + + + call(conn, opts) + +
+ +
+

Callback invoked by Plug on every request.

+ +
+
+
+
+ + + + init(opts) + +
+ +
+

Callback required by Plug that initializes the router +for serving web requests.

+ +
+
+ +
+ + + + + + +
+
+
+ + + + diff --git a/larus/doc/Larus.UserSocket.html b/larus/doc/Larus.UserSocket.html new file mode 100644 index 0000000..2505f28 --- /dev/null +++ b/larus/doc/Larus.UserSocket.html @@ -0,0 +1,186 @@ + + + + + + + + Larus.UserSocket – larus v0.0.1 + + + + + + +
+ + + +
+
+ + +

+ larus v0.0.1 + Larus.UserSocket + + +

+ + +
+

Larus.UserSocket

+ +
+ + + +
+

+ + + + Summary +

+ + + +
+

+ Functions +

+
+ + +

Callback implementation for c:Phoenix.Socket.connect/2

+
+ +
+
+ + +

Callback implementation for c:Phoenix.Socket.id/1

+
+ +
+ +
+ + + + + + +
+ + + + + +
+

+ + + + Functions +

+
+
+ + + + connect(params, socket) + +
+ +
+

Callback implementation for c:Phoenix.Socket.connect/2.

+ +
+
+
+
+ + + + id(socket) + +
+ +
+

Callback implementation for c:Phoenix.Socket.id/1.

+ +
+
+ +
+ + + + + + +
+
+
+ + + + diff --git a/larus/doc/Larus.Web.html b/larus/doc/Larus.Web.html new file mode 100644 index 0000000..4f25c83 --- /dev/null +++ b/larus/doc/Larus.Web.html @@ -0,0 +1,284 @@ + + + + + + + + Larus.Web – larus v0.0.1 + + + + + + +
+ + + +
+
+ + +

+ larus v0.0.1 + Larus.Web + + +

+ + +
+

A module that keeps using definitions for controllers, +views and so on.

+

This can be used in your application as:

+
use Larus.Web, :controller
+use Larus.Web, :view
+

The definitions below will be executed for every view, +controller, etc, so keep them short and clean, focused +on imports, uses and aliases.

+

Do NOT define functions inside the quoted expressions +below.

+ +
+ + + +
+

+ + + + Summary +

+ + + +
+

+ Functions +

+
+
+ channel() +
+ +
+
+ + +
+
+
+ model() +
+ +
+
+
+ router() +
+ +
+
+
+ view() +
+ +
+ +
+ + + +
+

+ Macros +

+
+ + +

When used, dispatch to the appropriate controller/view/etc

+
+ +
+ +
+ + + + +
+ + + + + +
+

+ + + + Functions +

+
+
+ + + + channel() + +
+ +
+ +
+
+
+
+ + + + controller() + +
+ +
+ +
+
+
+
+ + + + model() + +
+ +
+ +
+
+
+
+ + + + router() + +
+ +
+ +
+
+
+
+ + + + view() + +
+ +
+ +
+
+ +
+ + + +
+

+ + + + Macros +

+
+
+ + + + __using__(which) + +
+ +
+

When used, dispatch to the appropriate controller/view/etc.

+ +
+
+ +
+ + + + +
+
+
+ + + + diff --git a/larus/doc/Larus.html b/larus/doc/Larus.html new file mode 100644 index 0000000..9dd763c --- /dev/null +++ b/larus/doc/Larus.html @@ -0,0 +1,182 @@ + + + + + + + + Larus – larus v0.0.1 + + + + + + +
+ + + +
+
+ + +

+ larus v0.0.1 + Larus + + +

+ + +
+

Application

+ +
+ + + +
+

+ + + + Summary +

+ + + +
+

+ Functions +

+ +
+ + +

Callback implementation for c::application.start/2

+
+ +
+ +
+ + + + + + +
+ + + + + +
+

+ + + + Functions +

+
+
+ + + + config_change(changed, new, removed) + +
+ +
+ +
+
+
+
+ + + + start(type, args) + +
+ +
+

Callback implementation for c::application.start/2.

+ +
+
+ +
+ + + + + + +
+
+
+ + + + diff --git a/larus/doc/api-reference.html b/larus/doc/api-reference.html new file mode 100644 index 0000000..0dbd294 --- /dev/null +++ b/larus/doc/api-reference.html @@ -0,0 +1,226 @@ + + + + + + + + API Reference – larus v0.0.1 + + + + + + +
+ + + +
+
+ +

+ larus v0.0.1 + API Reference +

+ + + + +
+

Modules

+
+
+ + +

Tools around checking and handling undefined or blank data

+
+ +
+
+ + +

Application

+
+ +
+
+ + +

Larus.Endpoint

+
+ +
+
+ + +

Conveniences for translating and building error messages

+
+ +
+
+ + +

Views on errors

+
+ +
+
+ + +

A module providing Internationalization with a gettext-based API

+
+ +
+
+ + +

A layout view

+
+ +
+
+ + +

Larus.PageController

+
+ +
+
+ + +

The Larus page view

+
+ +
+ +
+ + +

Larus.Repo

+
+ +
+
+ + +

Larus.Router

+
+ +
+
+ + +

Module with named helpers generated from Larus.Router

+
+ +
+
+ + +

Larus.UserSocket

+
+ +
+
+ + +

A module that keeps using definitions for controllers, +views and so on

+
+ +
+ +
+
+ + + + + +
+

Protocols

+
+
+ + +

Provides only one single method definition blank?/1

+
+ +
+ +
+
+ + +
+
+
+ + + + diff --git a/larus/doc/dist/app-918614602f.js b/larus/doc/dist/app-918614602f.js new file mode 100644 index 0000000..a10d1ba --- /dev/null +++ b/larus/doc/dist/app-918614602f.js @@ -0,0 +1,6 @@ +!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;case"object":e[t]=function(t){var n=t.slice(1),r=e[t[0]];return function(e,t,i){r.apply(this,[e,t,i].concat(n))}}(e[t]);break;default:e[t]=e[e[t]]}return e}([function(e,t,n){"use strict";var r=n(1)["default"],i=n(2),a=r(i),o=n(3),s=r(o),l=n(4),c=n(95),u=n(96);window.$=a["default"],a["default"](function(){s["default"].configure({tabReplace:" ",languages:[]}),u.initialize(),c.initialize(),l.initialize(),s["default"].initHighlighting()})},function(e,t){"use strict";t["default"]=function(e){return e&&e.__esModule?e:{"default":e}},t.__esModule=!0},function(e,t,n){var r,i;!function(t,n){"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,a){function o(e){var t="length"in e&&e.length,n=re.type(e);return"function"===n||re.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function s(e,t,n){if(re.isFunction(t))return re.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return re.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(fe.test(t))return re.filter(t,e,n);t=re.filter(t,e)}return re.grep(e,function(e){return V.call(t,e)>=0!==n})}function l(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function c(e){var t=ye[e]={};return re.each(e.match(ve)||[],function(e,n){t[n]=!0}),t}function u(){te.removeEventListener("DOMContentLoaded",u,!1),n.removeEventListener("load",u,!1),re.ready()}function f(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=re.expando+f.uid++}function d(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ke,"-$1").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:Ee.test(n)?re.parseJSON(n):n}catch(i){}we.set(e,t,n)}else n=void 0;return n}function p(){return!0}function h(){return!1}function g(){try{return te.activeElement}catch(e){}}function m(e,t){return re.nodeName(e,"table")&&re.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function v(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function y(e){var t=Be.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function b(e,t){for(var n=0,r=e.length;r>n;n++)_e.set(e[n],"globalEval",!t||_e.get(t[n],"globalEval"))}function x(e,t){var n,r,i,a,o,s,l,c;if(1===t.nodeType){if(_e.hasData(e)&&(a=_e.access(e),o=_e.set(t,a),c=a.events)){delete o.handle,o.events={};for(i in c)for(n=0,r=c[i].length;r>n;n++)re.event.add(t,i,c[i][n])}we.hasData(e)&&(s=we.access(e),l=re.extend({},s),we.set(t,l))}}function _(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&re.nodeName(e,t)?re.merge([e],n):n}function w(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Se.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function E(e,t){var r,i=re(t.createElement(e)).appendTo(t.body),a=n.getDefaultComputedStyle&&(r=n.getDefaultComputedStyle(i[0]))?r.display:re.css(i[0],"display");return i.detach(),a}function k(e){var t=te,n=We[e];return n||(n=E(e,t),"none"!==n&&n||(ze=(ze||re("