diff --git a/.build b/.build index bf948d54f..01cd00fc7 100644 --- a/.build +++ b/.build @@ -116,7 +116,6 @@ Plausible.Site.Cache.Warmer.All.html Plausible.Site.Cache.Warmer.RecentlyUpdated.html Plausible.Site.Cache.Warmer.html Plausible.Site.Cache.html -Plausible.Site.CustomDomain.html Plausible.Site.Domain.html Plausible.Site.GateKeeper.html Plausible.Site.GoogleAuth.html @@ -154,6 +153,7 @@ Plausible.Stats.Imported.html Plausible.Stats.Interval.html Plausible.Stats.Props.html Plausible.Stats.Query.html +Plausible.Stats.Sampling.html Plausible.Stats.Timeseries.html Plausible.Stats.Util.html Plausible.Stats.html @@ -209,6 +209,7 @@ PlausibleWeb.ErrorHelpers.html PlausibleWeb.ErrorReportController.html PlausibleWeb.ErrorView.html PlausibleWeb.Favicon.html +PlausibleWeb.FirstLaunchPlug.Test.html PlausibleWeb.FirstLaunchPlug.html PlausibleWeb.FormHelpers.html PlausibleWeb.InvitationController.html @@ -320,8 +321,8 @@ dist/merriweather-latin-ext-300-normal-K6L27CZ5.woff2 dist/merriweather-vietnamese-300-italic-EHHNZPUO.woff2 dist/merriweather-vietnamese-300-normal-U376L4Z4.woff2 dist/remixicon-NKANDIL5.woff2 -dist/search_data-6B81A436.js -dist/sidebar_items-9C9BA1D3.js +dist/search_data-94610096.js +dist/sidebar_items-DA03832D.js index.html readme.html search.html diff --git a/404.html b/404.html index ae0272a9d..326c76b97 100644 --- a/404.html +++ b/404.html @@ -13,7 +13,7 @@ - + diff --git a/Mix.Tasks.CancelSubscription.html b/Mix.Tasks.CancelSubscription.html index a76f28775..e09662c77 100644 --- a/Mix.Tasks.CancelSubscription.html +++ b/Mix.Tasks.CancelSubscription.html @@ -13,7 +13,7 @@ - + diff --git a/Mix.Tasks.CleanClickhouse.html b/Mix.Tasks.CleanClickhouse.html index a3a6eea7a..6645291ab 100644 --- a/Mix.Tasks.CleanClickhouse.html +++ b/Mix.Tasks.CleanClickhouse.html @@ -13,7 +13,7 @@ - + diff --git a/Mix.Tasks.CreateFreeSubscription.html b/Mix.Tasks.CreateFreeSubscription.html index ec64d6a3e..3630ef59a 100644 --- a/Mix.Tasks.CreateFreeSubscription.html +++ b/Mix.Tasks.CreateFreeSubscription.html @@ -13,7 +13,7 @@ - + diff --git a/Mix.Tasks.DownloadCountryDatabase.html b/Mix.Tasks.DownloadCountryDatabase.html index 8e5cba5c9..cbff03271 100644 --- a/Mix.Tasks.DownloadCountryDatabase.html +++ b/Mix.Tasks.DownloadCountryDatabase.html @@ -13,7 +13,7 @@ - + diff --git a/Mix.Tasks.GenerateReferrerFavicons.html b/Mix.Tasks.GenerateReferrerFavicons.html index 96078d0e5..656b48dbe 100644 --- a/Mix.Tasks.GenerateReferrerFavicons.html +++ b/Mix.Tasks.GenerateReferrerFavicons.html @@ -13,7 +13,7 @@ - + diff --git a/Mix.Tasks.PullSandboxSubscription.html b/Mix.Tasks.PullSandboxSubscription.html index 7edf045c0..eabab4c73 100644 --- a/Mix.Tasks.PullSandboxSubscription.html +++ b/Mix.Tasks.PullSandboxSubscription.html @@ -13,7 +13,7 @@ - + diff --git a/Mix.Tasks.SendPageview.html b/Mix.Tasks.SendPageview.html index e86b1e936..21e213bd4 100644 --- a/Mix.Tasks.SendPageview.html +++ b/Mix.Tasks.SendPageview.html @@ -13,7 +13,7 @@ - + diff --git a/ObanErrorReporter.html b/ObanErrorReporter.html index a06152439..65310c2e9 100644 --- a/ObanErrorReporter.html +++ b/ObanErrorReporter.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.AsyncInsertRepo.html b/Plausible.AsyncInsertRepo.html index 6945031a9..ccaf0b8da 100644 --- a/Plausible.AsyncInsertRepo.html +++ b/Plausible.AsyncInsertRepo.html @@ -13,7 +13,7 @@ - + @@ -1114,23 +1114,23 @@ pool to disconnect within the given interval.

See -

Similar to insert_all/2 but with the following differences:

Example:

Repo.query!("create table ecto_ch_demo(a UInt64, b String) engine Null")
+

Similar to insert_all/2 but with the following differences:

  • accepts rows as streams or lists
  • sends rows as a chunked request
  • doesn't autogenerate ids or does any other preprocessing

Example:

Repo.query!("create table ecto_ch_demo(a UInt64, b String) engine Null")
 
-defmodule Demo do
+defmodule Demo do
   use Ecto.Schema
 
   @primary_key false
-  schema "ecto_ch_demo" do
+  schema "ecto_ch_demo" do
     field :a, Ch, type: "UInt64"
     field :b, :string
-  end
-end
+  end
+end
 
-rows = Stream.map(1..100_000, fn i -> %{a: i, b: to_string(i)} end)
-{100_000, nil} = Repo.insert_stream(Demo, rows)
+rows = Stream.map(1..100_000, fn i -> %{a: i, b: to_string(i)} end)
+{100_000, nil} = Repo.insert_stream(Demo, rows)
 
 # schemaless
-{100_000, nil} = Repo.insert_stream("ecto_ch_demo", rows, types: [a: Ch.Types.u64(), b: :string])
+
{100_000, nil} = Repo.insert_stream("ecto_ch_demo", rows, types: [a: Ch.Types.u64(), b: :string])
diff --git a/Plausible.Auth.ApiKey.html b/Plausible.Auth.ApiKey.html index 794c3687d..ae65e9f76 100644 --- a/Plausible.Auth.ApiKey.html +++ b/Plausible.Auth.ApiKey.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Auth.ApiKeyAdmin.html b/Plausible.Auth.ApiKeyAdmin.html index b70e0cae3..bda1a5234 100644 --- a/Plausible.Auth.ApiKeyAdmin.html +++ b/Plausible.Auth.ApiKeyAdmin.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Auth.EmailActivationCode.html b/Plausible.Auth.EmailActivationCode.html index 3ff6ba70d..7e885c154 100644 --- a/Plausible.Auth.EmailActivationCode.html +++ b/Plausible.Auth.EmailActivationCode.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Auth.EmailVerification.html b/Plausible.Auth.EmailVerification.html index a740216f0..14eef98a9 100644 --- a/Plausible.Auth.EmailVerification.html +++ b/Plausible.Auth.EmailVerification.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Auth.GracePeriod.html b/Plausible.Auth.GracePeriod.html index ab8fccdbb..ab85238b1 100644 --- a/Plausible.Auth.GracePeriod.html +++ b/Plausible.Auth.GracePeriod.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Auth.Invitation.html b/Plausible.Auth.Invitation.html index a7e695d0d..047077280 100644 --- a/Plausible.Auth.Invitation.html +++ b/Plausible.Auth.Invitation.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Auth.Password.html b/Plausible.Auth.Password.html index 7d8674e21..f2e656477 100644 --- a/Plausible.Auth.Password.html +++ b/Plausible.Auth.Password.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Auth.TOTP.EncryptedBinary.html b/Plausible.Auth.TOTP.EncryptedBinary.html index 9abb0d051..f8029a3cb 100644 --- a/Plausible.Auth.TOTP.EncryptedBinary.html +++ b/Plausible.Auth.TOTP.EncryptedBinary.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Auth.TOTP.RecoveryCode.html b/Plausible.Auth.TOTP.RecoveryCode.html index f5d95025c..bec9741bd 100644 --- a/Plausible.Auth.TOTP.RecoveryCode.html +++ b/Plausible.Auth.TOTP.RecoveryCode.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Auth.TOTP.Vault.html b/Plausible.Auth.TOTP.Vault.html index ab896f2e1..be0eeb879 100644 --- a/Plausible.Auth.TOTP.Vault.html +++ b/Plausible.Auth.TOTP.Vault.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Auth.TOTP.html b/Plausible.Auth.TOTP.html index 1e4697109..3cbc1a8a9 100644 --- a/Plausible.Auth.TOTP.html +++ b/Plausible.Auth.TOTP.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Auth.Token.html b/Plausible.Auth.Token.html index b37324fe1..a9ecac6d4 100644 --- a/Plausible.Auth.Token.html +++ b/Plausible.Auth.Token.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Auth.User.html b/Plausible.Auth.User.html index e62f47361..701a847e6 100644 --- a/Plausible.Auth.User.html +++ b/Plausible.Auth.User.html @@ -13,7 +13,7 @@ - + @@ -258,7 +258,7 @@ Types

t()

- + View Source @@ -323,7 +323,7 @@ Functions

cancel_email_changeset(user)

- + View Source @@ -347,7 +347,7 @@ Functions

changeset(user, attrs \\ %{})

- + View Source @@ -371,7 +371,7 @@ Functions

email_changeset(user, attrs \\ %{})

- + View Source @@ -393,7 +393,7 @@ Functions

end_trial(user)

- + View Source @@ -415,7 +415,7 @@ Functions

hash_password(changeset)

- + View Source @@ -439,7 +439,7 @@ Functions

new(attrs \\ %{})

- + View Source @@ -461,7 +461,7 @@ Functions

password_strength(changeset)

- + View Source @@ -483,7 +483,7 @@ Functions

profile_img_url(user)

- + View Source @@ -505,7 +505,7 @@ Functions

remove_trial_expiry(user)

- + View Source @@ -527,7 +527,7 @@ Functions

set_password(user, password)

- + View Source @@ -551,7 +551,7 @@ Functions

settings_changeset(user, attrs \\ %{})

- + View Source @@ -573,7 +573,7 @@ Functions

start_trial(user)

- + View Source diff --git a/Plausible.Auth.UserAdmin.html b/Plausible.Auth.UserAdmin.html index a7499e20c..74675d382 100644 --- a/Plausible.Auth.UserAdmin.html +++ b/Plausible.Auth.UserAdmin.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Auth.html b/Plausible.Auth.html index a154b006b..6117d9690 100644 --- a/Plausible.Auth.html +++ b/Plausible.Auth.html @@ -13,7 +13,7 @@ - + @@ -228,7 +228,7 @@ Functions

create_api_key(user, name, key)

- + View Source @@ -257,7 +257,7 @@ Functions

create_user(name, email, pwd)

- + View Source @@ -279,7 +279,7 @@ Functions

delete_api_key(user, id)

- + View Source @@ -307,7 +307,7 @@ Functions

delete_user(user)

- + View Source @@ -329,7 +329,7 @@ Functions

enterprise_configured?(user)

- + View Source @@ -351,7 +351,7 @@ Functions

find_api_key(raw_key)

- + View Source @@ -380,7 +380,7 @@ Functions

find_user_by(opts)

- + View Source @@ -404,7 +404,7 @@ Functions

has_active_sites?(user, roles \\ [:owner, :admin, :viewer])

- + View Source @@ -426,7 +426,7 @@ Functions

is_super_admin?(user_id)

- + View Source @@ -448,7 +448,7 @@ Functions

user_owns_sites?(user)

- + View Source diff --git a/Plausible.Billing.Ecto.Feature.html b/Plausible.Billing.Ecto.Feature.html index 480113f03..35fb62b48 100644 --- a/Plausible.Billing.Ecto.Feature.html +++ b/Plausible.Billing.Ecto.Feature.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Billing.Ecto.FeatureList.html b/Plausible.Billing.Ecto.FeatureList.html index e2f5d680f..20e6b30cd 100644 --- a/Plausible.Billing.Ecto.FeatureList.html +++ b/Plausible.Billing.Ecto.FeatureList.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Billing.Ecto.Limit.html b/Plausible.Billing.Ecto.Limit.html index 04191ce90..80e1206cc 100644 --- a/Plausible.Billing.Ecto.Limit.html +++ b/Plausible.Billing.Ecto.Limit.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Billing.EnterprisePlan.html b/Plausible.Billing.EnterprisePlan.html index dcd19ac29..3ea2c7518 100644 --- a/Plausible.Billing.EnterprisePlan.html +++ b/Plausible.Billing.EnterprisePlan.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Billing.EnterprisePlanAdmin.html b/Plausible.Billing.EnterprisePlanAdmin.html index 817074d44..84852583c 100644 --- a/Plausible.Billing.EnterprisePlanAdmin.html +++ b/Plausible.Billing.EnterprisePlanAdmin.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Billing.Feature.html b/Plausible.Billing.Feature.html index bbdc5b103..808c2d6d6 100644 --- a/Plausible.Billing.Feature.html +++ b/Plausible.Billing.Feature.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Billing.PaddleApi.html b/Plausible.Billing.PaddleApi.html index 8ee3959b1..8b1cb5292 100644 --- a/Plausible.Billing.PaddleApi.html +++ b/Plausible.Billing.PaddleApi.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Billing.Plans.html b/Plausible.Billing.Plans.html index c7432cab7..aeb729d89 100644 --- a/Plausible.Billing.Plans.html +++ b/Plausible.Billing.Plans.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Billing.Quota.html b/Plausible.Billing.Quota.html index 1e17661ca..a4847a65b 100644 --- a/Plausible.Billing.Quota.html +++ b/Plausible.Billing.Quota.html @@ -13,7 +13,7 @@ - + @@ -282,7 +282,7 @@ Functions

allowed_features_for(user)

- + View Source @@ -305,7 +305,7 @@ ability to use all features during their trial.

below_limit?(usage, limit)

- + View Source @@ -334,7 +334,7 @@ Returns false if usage is equal to the limit.

ensure_can_subscribe_to_plan(user, plan)

- + View Source @@ -356,7 +356,7 @@ Returns false if usage is equal to the limit.

exceeded_limits(usage, plan)

- + View Source @@ -378,7 +378,7 @@ Returns false if usage is equal to the limit.

features_usage(user)

- + View Source @@ -407,7 +407,7 @@ this user owns + StatsAPI if the user has a configured Stats API key.

Give

monthly_pageview_limit(subscription)

- + View Source @@ -436,7 +436,7 @@ this user owns + StatsAPI if the user has a configured Stats API key.

Give

monthly_pageview_usage(user)

- + View Source @@ -465,7 +465,7 @@ sent by the sites the user owns in last 30 days.

site_limit(user)

- + View Source @@ -494,7 +494,7 @@ background job so as to avoid service disruption.

site_usage(user)

- + View Source @@ -522,7 +522,7 @@ background job so as to avoid service disruption.

team_member_limit(user)

- + View Source @@ -550,7 +550,7 @@ background job so as to avoid service disruption.

team_member_usage(user)

- + View Source @@ -603,7 +603,7 @@ with the user's sites.

within_limit?(usage, limit)

- + View Source diff --git a/Plausible.Billing.SiteLocker.html b/Plausible.Billing.SiteLocker.html index ca285a107..1faee413b 100644 --- a/Plausible.Billing.SiteLocker.html +++ b/Plausible.Billing.SiteLocker.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Billing.Subscription.Status.html b/Plausible.Billing.Subscription.Status.html index 6a2aae59d..bccfe47e1 100644 --- a/Plausible.Billing.Subscription.Status.html +++ b/Plausible.Billing.Subscription.Status.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Billing.html b/Plausible.Billing.html index 0f7d36f16..b4e086983 100644 --- a/Plausible.Billing.html +++ b/Plausible.Billing.html @@ -13,7 +13,7 @@ - + @@ -284,7 +284,7 @@ Functions

active_subscription_for(user_id)

- + View Source @@ -312,7 +312,7 @@ Functions

cancelled_subscription_notice_dismiss_id(user)

- + View Source @@ -334,7 +334,7 @@ Functions

change_plan(user, new_plan_id)

- + View Source @@ -356,7 +356,7 @@ Functions

change_plan_preview(subscription, new_plan_id)

- + View Source @@ -378,7 +378,7 @@ Functions

check_needs_to_upgrade(user)

- + View Source @@ -408,7 +408,7 @@ Functions

has_active_subscription?(user_id)

- + View Source @@ -438,7 +438,7 @@ Functions

last_two_billing_cycles(user, today \\ Timex.today())

- + View Source @@ -462,7 +462,7 @@ Functions

last_two_billing_months_usage(user, today \\ Timex.today())

- + View Source @@ -491,7 +491,7 @@ Functions

on_trial?(user)

- + View Source @@ -513,7 +513,7 @@ Functions

paddle_api()

- + View Source @@ -535,7 +535,7 @@ Functions

subscription_cancelled(params)

- + View Source @@ -557,7 +557,7 @@ Functions

subscription_created(params)

- + View Source @@ -579,7 +579,7 @@ Functions

subscription_payment_succeeded(params)

- + View Source @@ -601,7 +601,7 @@ Functions

subscription_updated(params)

- + View Source @@ -623,7 +623,7 @@ Functions

trial_days_left(user)

- + View Source @@ -645,7 +645,7 @@ Functions

upgrade_route_for(user)

- + View Source @@ -667,7 +667,7 @@ Functions

usage_breakdown(user)

- + View Source diff --git a/Plausible.ChangesetHelpers.html b/Plausible.ChangesetHelpers.html index aed46d0b7..9acd0c790 100644 --- a/Plausible.ChangesetHelpers.html +++ b/Plausible.ChangesetHelpers.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Cldr.AcceptLanguage.html b/Plausible.Cldr.AcceptLanguage.html index ec46c0d3e..0c7ab5103 100644 --- a/Plausible.Cldr.AcceptLanguage.html +++ b/Plausible.Cldr.AcceptLanguage.html @@ -13,7 +13,7 @@ - + @@ -119,7 +119,7 @@ Plausible the set of natural languages that are preferred as a response to the request. Language tags function are provided in Cldr.LanguageTag.

The format of an Accept-Language header is as follows in ABNF format:

   Accept-Language = "Accept-Language" ":"
                      1#( language-range [ ";" "q" "=" qvalue ] )
-   language-range  = ( ( 1*8ALPHA *( "-" 1*8ALPHA ) ) | "*" )

Each language-range MAY be given an associated quality value which represents an + language-range = ( ( 1*8ALPHA *( "-" 1*8ALPHA ) ) | "*" )

Each language-range MAY be given an associated quality value which represents an estimate of the user's preference for the languages specified by that range. The quality value defaults to "q=1". For example,

   Accept-Language: da, en-gb;q=0.8, en;q=0.7

would mean: "I prefer Danish, but will accept British English and other types of English."

@@ -232,54 +232,54 @@ a configured iex> Plausible.Cldr.AcceptLanguage.best_match("da;q=0.1,zh-TW;q=0.3", TestBackend.Cldr) -{:ok, - %Cldr.LanguageTag{ +
iex> Plausible.Cldr.AcceptLanguage.best_match("da;q=0.1,zh-TW;q=0.3", TestBackend.Cldr)
+{:ok,
+ %Cldr.LanguageTag{
    backend: TestBackend.Cldr,
    canonical_locale_name: "zh-TW",
    cldr_locale_name: :"zh-Hant",
-   language_subtags: [],
-   extensions: %{},
+   language_subtags: [],
+   extensions: %{},
    gettext_locale_name: nil,
    language: "zh",
-   locale: %{},
-   private_use: [],
+   locale: %{},
+   private_use: [],
    rbnf_locale_name: :"zh-Hant",
    requested_locale_name: "zh-TW",
    script: :Hant,
    territory: :TW,
-   transform: %{},
-   language_variants: []
- }}
+   transform: %{},
+   language_variants: []
+ }}
 
-iex> Plausible.Cldr.AcceptLanguage.best_match("da;q=0.1,zh-TW;q=0.3", TestBackend.Cldr)
-{:ok,
- %Cldr.LanguageTag{
+iex> Plausible.Cldr.AcceptLanguage.best_match("da;q=0.1,zh-TW;q=0.3", TestBackend.Cldr)
+{:ok,
+ %Cldr.LanguageTag{
    backend: TestBackend.Cldr,
    canonical_locale_name: "zh-TW",
    cldr_locale_name: :"zh-Hant",
-   language_subtags: [],
-   extensions: %{},
+   language_subtags: [],
+   extensions: %{},
    gettext_locale_name: nil,
    language: "zh",
-   locale: %{},
-   private_use: [],
+   locale: %{},
+   private_use: [],
    rbnf_locale_name: :"zh-Hant",
    requested_locale_name: "zh-TW",
    script: :Hant,
    territory: :TW,
-   transform: %{},
-   language_variants: []
- }}
-
-iex> Plausible.Cldr.AcceptLanguage.best_match("xx,yy;q=0.3")
-{:error,
- {Cldr.NoMatchingLocale,
-  "No configured locale could be matched to \"xx,yy;q=0.3\""}}
-
-iex> Plausible.Cldr.AcceptLanguage.best_match("invalid_tag")
-{:error, {Cldr.LanguageTag.ParseError,
-  "Expected a BCP47 language tag. Could not parse the remaining \"g\" starting at position 11"}}
+
transform: %{}, + language_variants: [] + }} + +iex> Plausible.Cldr.AcceptLanguage.best_match("xx,yy;q=0.3") +{:error, + {Cldr.NoMatchingLocale, + "No configured locale could be matched to \"xx,yy;q=0.3\""}} + +iex> Plausible.Cldr.AcceptLanguage.best_match("invalid_tag") +{:error, {Cldr.LanguageTag.ParseError, + "Expected a BCP47 language tag. Could not parse the remaining \"g\" starting at position 11"}}
@@ -340,95 +340,95 @@ wuth an error tuple for each invalid tag added at the end of the list.

-
iex> Cldr.AcceptLanguage.parse("da,zh-TW;q=0.3", TestBackend.Cldr)
-{:ok,
- [
-   {1.0,
-    %Cldr.LanguageTag{
+
iex> Cldr.AcceptLanguage.parse("da,zh-TW;q=0.3", TestBackend.Cldr)
+{:ok,
+ [
+   {1.0,
+    %Cldr.LanguageTag{
       backend: TestBackend.Cldr,
       canonical_locale_name: "da",
       cldr_locale_name: :da,
-      language_subtags: [],
-      extensions: %{},
+      language_subtags: [],
+      extensions: %{},
       gettext_locale_name: nil,
       language: "da",
-      locale: %{},
-      private_use: [],
+      locale: %{},
+      private_use: [],
       rbnf_locale_name: :da,
       requested_locale_name: "da",
       script: :Latn,
       territory: :DK,
-      transform: %{},
-      language_variants: []
-    }},
-   {0.3,
-    %Cldr.LanguageTag{
+      transform: %{},
+      language_variants: []
+    }},
+   {0.3,
+    %Cldr.LanguageTag{
       backend: TestBackend.Cldr,
       canonical_locale_name: "zh-TW",
       cldr_locale_name: :"zh-Hant",
-      language_subtags: [],
-      extensions: %{},
+      language_subtags: [],
+      extensions: %{},
       gettext_locale_name: nil,
       language: "zh",
-      locale: %{},
-      private_use: [],
+      locale: %{},
+      private_use: [],
       rbnf_locale_name: :"zh-Hant",
       requested_locale_name: "zh-TW",
       script: :Hant,
       territory: :TW,
-      transform: %{},
-      language_variants: []
-    }}
- ]}
-
-iex> Plausible.Cldr.AcceptLanguage.parse("invalid_tag")
-{:error,
- {Cldr.LanguageTag.ParseError,
-  "Expected a BCP47 language tag. Could not parse the remaining \"g\" starting at position 11"}}
-
-iex> Plausible.Cldr.AcceptLanguage.parse("da,zh-TW;q=0.3,invalid_tag")
-{:ok,
- [
-   {1.0,
-    %Cldr.LanguageTag{
+      transform: %{},
+      language_variants: []
+    }}
+ ]}
+
+iex> Plausible.Cldr.AcceptLanguage.parse("invalid_tag")
+{:error,
+ {Cldr.LanguageTag.ParseError,
+  "Expected a BCP47 language tag. Could not parse the remaining \"g\" starting at position 11"}}
+
+iex> Plausible.Cldr.AcceptLanguage.parse("da,zh-TW;q=0.3,invalid_tag")
+{:ok,
+ [
+   {1.0,
+    %Cldr.LanguageTag{
       backend: TestBackend.Cldr,
       canonical_locale_name: "da",
       cldr_locale_name: :da,
-      language_subtags: [],
-      extensions: %{},
+      language_subtags: [],
+      extensions: %{},
       gettext_locale_name: nil,
       language: "da",
-      locale: %{},
-      private_use: [],
+      locale: %{},
+      private_use: [],
       rbnf_locale_name: :da,
       requested_locale_name: "da",
       script: :Latn,
       territory: :DK,
-      transform: %{},
-      language_variants: []
-    }},
-   {0.3,
-    %Cldr.LanguageTag{
+      transform: %{},
+      language_variants: []
+    }},
+   {0.3,
+    %Cldr.LanguageTag{
       backend: TestBackend.Cldr,
       canonical_locale_name: "zh-TW",
       cldr_locale_name: :"zh-Hant",
-      language_subtags: [],
-      extensions: %{},
+      language_subtags: [],
+      extensions: %{},
       gettext_locale_name: nil,
       language: "zh",
-      locale: %{},
-      private_use: [],
+      locale: %{},
+      private_use: [],
       rbnf_locale_name: :"zh-Hant",
       requested_locale_name: "zh-TW",
       script: :Hant,
       territory: :TW,
-      transform: %{},
-      language_variants: []
-    }},
-   {:error,
-    {Cldr.LanguageTag.ParseError,
-     "Expected a BCP47 language tag. Could not parse the remaining \"g\" starting at position 11"}}
- ]}
+
transform: %{}, + language_variants: [] + }}, + {:error, + {Cldr.LanguageTag.ParseError, + "Expected a BCP47 language tag. Could not parse the remaining \"g\" starting at position 11"}} + ]}
@@ -473,92 +473,92 @@ wuth an error tuple for each invalid tag added at the end of the list.

-
iex> Plausible.Cldr.AcceptLanguage.parse!("da,zh-TW;q=0.3")
-[
-  {1.0,
-   %Cldr.LanguageTag{
+
iex> Plausible.Cldr.AcceptLanguage.parse!("da,zh-TW;q=0.3")
+[
+  {1.0,
+   %Cldr.LanguageTag{
      backend: TestBackend.Cldr,
      canonical_locale_name: "da",
      cldr_locale_name: :da,
-     language_subtags: [],
-     extensions: %{},
+     language_subtags: [],
+     extensions: %{},
      gettext_locale_name: nil,
      language: "da",
-     locale: %{},
-     private_use: [],
+     locale: %{},
+     private_use: [],
      rbnf_locale_name: :da,
      requested_locale_name: "da",
      script: :Latn,
      territory: :DK,
-     transform: %{},
-     language_variants: []
-   }},
-  {0.3,
-   %Cldr.LanguageTag{
+     transform: %{},
+     language_variants: []
+   }},
+  {0.3,
+   %Cldr.LanguageTag{
      backend: TestBackend.Cldr,
      canonical_locale_name: "zh-TW",
      cldr_locale_name: :"zh-Hant",
-     language_subtags: [],
-     extensions: %{},
+     language_subtags: [],
+     extensions: %{},
      gettext_locale_name: nil,
      language: "zh",
-     locale: %{},
-     private_use: [],
+     locale: %{},
+     private_use: [],
      rbnf_locale_name: :"zh-Hant",
      requested_locale_name: "zh-TW",
      script: :Hant,
      territory: :TW,
-     transform: %{},
-     language_variants: []
-   }}
-]
+     transform: %{},
+     language_variants: []
+   }}
+]
 
 Plausible.Cldr.AcceptLanguage.parse! "invalid_tag"
 ** (Cldr.AcceptLanguageError) "Expected a BCP47 language tag. Could not parse the remaining "g" starting at position 11
     (ex_cldr) lib/cldr/accept_language.ex:304: Cldr.AcceptLanguage.parse!/1
 
-iex> Plausible.Cldr.AcceptLanguage.parse!("da,zh-TW;q=0.3,invalid_tag")
-[
-  {1.0,
-   %Cldr.LanguageTag{
+iex> Plausible.Cldr.AcceptLanguage.parse!("da,zh-TW;q=0.3,invalid_tag")
+[
+  {1.0,
+   %Cldr.LanguageTag{
      backend: TestBackend.Cldr,
      canonical_locale_name: "da",
      cldr_locale_name: :da,
-     language_subtags: [],
-     extensions: %{},
+     language_subtags: [],
+     extensions: %{},
      gettext_locale_name: nil,
      language: "da",
-     locale: %{},
-     private_use: [],
+     locale: %{},
+     private_use: [],
      rbnf_locale_name: :da,
      requested_locale_name: "da",
      script: :Latn,
      territory: :DK,
-     transform: %{},
-     language_variants: []
-   }},
-  {0.3,
-   %Cldr.LanguageTag{
+     transform: %{},
+     language_variants: []
+   }},
+  {0.3,
+   %Cldr.LanguageTag{
      backend: TestBackend.Cldr,
      canonical_locale_name: "zh-TW",
      cldr_locale_name: :"zh-Hant",
-     language_subtags: [],
-     extensions: %{},
+     language_subtags: [],
+     extensions: %{},
      gettext_locale_name: nil,
      language: "zh",
-     locale: %{},
-     private_use: [],
+     locale: %{},
+     private_use: [],
      rbnf_locale_name: :"zh-Hant",
      requested_locale_name: "zh-TW",
      script: :Hant,
      territory: :TW,
-     transform: %{},
-     language_variants: []
-   }},
-  {:error,
-   {Cldr.LanguageTag.ParseError,
-    "Expected a BCP47 language tag. Could not parse the remaining \"g\" starting at position 11"}}
-]
+
transform: %{}, + language_variants: [] + }}, + {:error, + {Cldr.LanguageTag.ParseError, + "Expected a BCP47 language tag. Could not parse the remaining \"g\" starting at position 11"}} +]
diff --git a/Plausible.Cldr.Currency.html b/Plausible.Cldr.Currency.html index a6583e02c..3a483b849 100644 --- a/Plausible.Cldr.Currency.html +++ b/Plausible.Cldr.Currency.html @@ -13,7 +13,7 @@ - + @@ -390,11 +390,11 @@ The default is :all. See
FJD: %Cldr.Currency{ + %{

 FJD: %Cldr.Currency{
    cash_digits: 2,
    cash_rounding: 0,
    code: "FJD",
-   count: %{one: "Fijian dollar", other: "Fijian dollars"},
+   count: %{one: "Fijian dollar", other: "Fijian dollars"},
    digits: 2,
    from: nil,
    iso_digits: 2,
@@ -404,12 +404,12 @@ The default is :all. See symbol: "FJD",
    tender: true,
    to: nil
- },
- SUR: %Cldr.Currency{
+ },
+ SUR: %Cldr.Currency{
    cash_digits: 2,
    cash_rounding: 0,
    code: "SUR",
-   count: %{one: "Soviet rouble", other: "Soviet roubles"},
+   count: %{one: "Soviet rouble", other: "Soviet roubles"},
    digits: 2,
    from: nil,
    iso_digits: nil,
@@ -419,7 +419,7 @@ The default is :all. See symbol: "SUR",
    tender: true,
    to: nil
- },
+ },
  ...
 }}
@@ -470,11 +470,11 @@ The default is :all. See FJD: %Cldr.Currency{ + => %{

FJD: %Cldr.Currency{
   cash_digits: 2,
   cash_rounding: 0,
   code: "FJD",
-  count: %{one: "Fijian dollar", other: "Fijian dollars"},
+  count: %{one: "Fijian dollar", other: "Fijian dollars"},
   digits: 2,
   from: nil,
   iso_digits: 2,
@@ -484,12 +484,12 @@ The default is :all. See symbol: "FJD",
   tender: true,
   to: nil
-},
-SUR: %Cldr.Currency{
+},
+SUR: %Cldr.Currency{
   cash_digits: 2,
   cash_rounding: 0,
   code: "SUR",
-  count: %{one: "Soviet rouble", other: "Soviet roubles"},
+  count: %{one: "Soviet rouble", other: "Soviet roubles"},
   digits: 2,
   from: nil,
   iso_digits: nil,
@@ -499,7 +499,7 @@ The default is :all. See symbol: "SUR",
   tender: true,
   to: nil
-},
+},
 ...

}

@@ -557,13 +557,13 @@ or a -
iex> Plausible.Cldr.Currency.currency_for_code("AUD")
-{:ok,
-  %Cldr.Currency{
+
iex> Plausible.Cldr.Currency.currency_for_code("AUD")
+{:ok,
+  %Cldr.Currency{
     cash_digits: 2,
     cash_rounding: 0,
     code: "AUD",
-    count: %{one: "Australian dollar", other: "Australian dollars"},
+    count: %{one: "Australian dollar", other: "Australian dollars"},
     digits: 2,
     iso_digits: 2,
     name: "Australian Dollar",
@@ -571,15 +571,15 @@ or a rounding: 0,
     symbol: "A$",
     tender: true
-}}
+}}
 
-iex> Plausible.Cldr.Currency.currency_for_code("THB")
-{:ok,
-  %Cldr.Currency{
+iex> Plausible.Cldr.Currency.currency_for_code("THB")
+{:ok,
+  %Cldr.Currency{
     cash_digits: 2,
     cash_rounding: 0,
     code: "THB",
-    count: %{one: "Thai baht", other: "Thai baht"},
+    count: %{one: "Thai baht", other: "Thai baht"},
     digits: 2,
     iso_digits: 2,
     name: "Thai Baht",
@@ -587,7 +587,7 @@ or a rounding: 0,
     symbol: "THB",
     tender: true
-}}
+}}
@@ -646,12 +646,12 @@ or a -
iex> Plausible.Cldr.Currency.currency_for_code!("AUD")
-%Cldr.Currency{
+
iex> Plausible.Cldr.Currency.currency_for_code!("AUD")
+%Cldr.Currency{
   cash_digits: 2,
   cash_rounding: 0,
   code: "AUD",
-  count: %{one: "Australian dollar", other: "Australian dollars"},
+  count: %{one: "Australian dollar", other: "Australian dollars"},
   digits: 2,
   iso_digits: 2,
   name: "Australian Dollar",
@@ -659,14 +659,14 @@ or a rounding: 0,
   symbol: "A$",
   tender: true
-}
+}
 
-iex> Plausible.Cldr.Currency.currency_for_code!("THB")
-%Cldr.Currency{
+iex> Plausible.Cldr.Currency.currency_for_code!("THB")
+%Cldr.Currency{
   cash_digits: 2,
   cash_rounding: 0,
   code: "THB",
-  count: %{one: "Thai baht", other: "Thai baht"},
+  count: %{one: "Thai baht", other: "Thai baht"},
   digits: 2,
   iso_digits: 2,
   name: "Thai Baht",
@@ -674,7 +674,7 @@ or a rounding: 0,
   symbol: "THB",
   tender: true
-}
+}
@@ -715,11 +715,11 @@ or a -
iex> {:ok, locale} = Plausible.Cldr.validate_locale "en"
+
iex> {:ok, locale} = Plausible.Cldr.validate_locale "en"
 iex> Plausible.Cldr.Currency.currency_from_locale locale
 :USD
 
-iex> {:ok, locale} = Plausible.Cldr.validate_locale "en-AU"
+iex> {:ok, locale} = Plausible.Cldr.validate_locale "en-AU"
 iex> Plausible.Cldr.Currency.currency_from_locale locale
 :AUD
 
@@ -768,13 +768,13 @@ or a 
 
 
iex> MyApp.Cldr.Currency.currency_history_for_locale "en"
-{:ok,
-    %{
-    USD: %{from: ~D[1792-01-01], to: nil},
-    USN: %{tender: false},
-    USS: %{from: nil, tender: false, to: ~D[2014-03-01]}
-  }
-}
+{:ok, + %{ + USD: %{from: ~D[1792-01-01], to: nil}, + USN: %{tender: false}, + USS: %{from: nil, tender: false, to: ~D[2014-03-01]} + } +}
@@ -834,8 +834,8 @@ The default is :all. See MyApp.Cldr.Currency.currency_strings "en" -=> {:ok, - %{ +=> {:ok, + %{ "mexican silver pesos" => :MXP, "sudanese dinar" => :SDD, "bad" => :BAD, @@ -845,7 +845,7 @@ The default is :all. See "guyanaese dollars" => :GYD, "equatorial guinean ekwele" => :GQE, ... - }} + }}
@@ -905,7 +905,7 @@ The default is :all. See MyApp.Cldr.Currency.currency_strings! "en" -=> %{ +=> %{ "mexican silver pesos" => :MXP, "sudanese dinar" => :SDD, "bad" => :BAD, @@ -915,7 +915,7 @@ The default is :all. See "guyanaese dollars" => :GYD, "equatorial guinean ekwele" => :GQE, ... - } + }
@@ -1004,7 +1004,7 @@ mapping is returned for that territory.

iex> Plausible.Cldr.Currency.current_territory_currencies() +
iex> Plausible.Cldr.Currency.current_territory_currencies()

@@ -1097,10 +1097,10 @@ currency code

iex> Plausible.Cldr.Currency.known_currency_code "AUD" -{:ok, :AUD} +{:ok, :AUD} iex> Plausible.Cldr.Currency.known_currency_code "GGG" -{:error, {Cldr.UnknownCurrencyError, "The currency \"GGG\" is invalid"}} +{:error, {Cldr.UnknownCurrencyError, "The currency \"GGG\" is invalid"}}

@@ -1247,14 +1247,14 @@ such as 0.05. Optional.

iex> Plausible.Cldr.Currency.new(:XAE, name: "Custom Name", digits: 0) -{:ok, - %Cldr.Currency{ +
iex> Plausible.Cldr.Currency.new(:XAE, name: "Custom Name", digits: 0)
+{:ok,
+ %Cldr.Currency{
    alt_code: :XAE,
    cash_digits: 0,
    cash_rounding: nil,
    code: :XAE,
-   count: %{other: "Custom Name"},
+   count: %{other: "Custom Name"},
    digits: 0,
    from: nil,
    iso_digits: 0,
@@ -1264,11 +1264,11 @@ such as 0.05. Optional.

symbol: "XAE", tender: false, to: nil - }} -iex> MyApp.Cldr.Currency.new(:XAH, name: "Custom Name") -{:error, "Required options are missing. Required options are [:name, :digits]"} -iex> Plausible.Cldr.Currency.new(:XAE, name: "XAE", digits: 0) -{:error, {Cldr.CurrencyAlreadyDefined, "Currency :XAE is already defined."}}

+
}} +iex> MyApp.Cldr.Currency.new(:XAH, name: "Custom Name") +{:error, "Required options are missing. Required options are [:name, :digits]"} +iex> Plausible.Cldr.Currency.new(:XAE, name: "XAE", digits: 0) +{:error, {Cldr.CurrencyAlreadyDefined, "Currency :XAE is already defined."}}

@@ -1327,19 +1327,19 @@ default is Plaus
iex> Plausible.Cldr.Currency.pluralize 1, :USD
-{:ok, "US dollar"}
+{:ok, "US dollar"}
 
 iex> Plausible.Cldr.Currency.pluralize 3, :USD
-{:ok, "US dollars"}
+{:ok, "US dollars"}
 
 iex> Plausible.Cldr.Currency.pluralize 12, :USD, locale: "zh"
-{:ok, "美元"}
+{:ok, "美元"}
 
 iex> Plausible.Cldr.Currency.pluralize 12, :USD, locale: "fr"
-{:ok, "dollars des États-Unis"}
+{:ok, "dollars des États-Unis"}
 
 iex> Plausible.Cldr.Currency.pluralize 1, :USD, locale: "fr"
-{:ok, "dollar des États-Unis"}
+{:ok, "dollar des États-Unis"}
@@ -1382,7 +1382,7 @@ or a
iex> MyApp.Cldr.Currency.strings_for_currency :AUD, "en"
-["a$", "australian dollars", "aud", "australian dollar"]
+["a$", "australian dollars", "aud", "australian dollar"]
diff --git a/Plausible.Cldr.Locale.html b/Plausible.Cldr.Locale.html index ed8fb306d..91b0a23d2 100644 --- a/Plausible.Cldr.Locale.html +++ b/Plausible.Cldr.Locale.html @@ -13,7 +13,7 @@ - + @@ -297,16 +297,16 @@ this specific locale..

iex> Plausible.Cldr.Locale.fallback_locale_names(:"fr-CA") -{:ok, [:"fr-CA", :fr, :und]} +
iex> Plausible.Cldr.Locale.fallback_locale_names(:"fr-CA")
+{:ok, [:"fr-CA", :fr, :und]}
 
 # Fallbacks are typically formed by progressively
 # stripping variant, territory and script from the
 # given locale name. But not always - there are
 # certain fallbacks that take a different path.
 
-iex> Plausible.Cldr.Locale.fallback_locale_names(:nb)
-{:ok, [:nb, :no, :und]}
+
iex> Plausible.Cldr.Locale.fallback_locale_names(:nb) +{:ok, [:nb, :no, :und]}
@@ -360,20 +360,20 @@ this specific locale.

Plausible.Cldr.Locale.fallback_locales(:"fr-CA") -=> {:ok, - [#Cldr.LanguageTag<fr-CA [validated]>, #Cldr.LanguageTag<fr [validated]>, - #Cldr.LanguageTag<und [validated]>]} +
Plausible.Cldr.Locale.fallback_locales(:"fr-CA")
+=> {:ok,
+     [#Cldr.LanguageTag<fr-CA [validated]>, #Cldr.LanguageTag<fr [validated]>,
+      #Cldr.LanguageTag<und [validated]>]}
 
 # Fallbacks are typically formed by progressively
 # stripping variant, territory and script from the
 # given locale name. But not always - there are
 # certain fallbacks that take a different path.
 
-Plausible.Cldr.Locale.fallback_locales(:nb))
-=> {:ok,
-     [#Cldr.LanguageTag<nb [validated]>, #Cldr.LanguageTag<no [validated]>,
-      #Cldr.LanguageTag<und [validated]>]}
+
Plausible.Cldr.Locale.fallback_locales(:nb)) +=> {:ok, + [#Cldr.LanguageTag<nb [validated]>, #Cldr.LanguageTag<no [validated]>, + #Cldr.LanguageTag<und [validated]>]}

@@ -504,15 +504,15 @@ generic top-level domain names.

iex> Plausible.Cldr.Locale.locale_from_host "a.b.com.au" -Elixir.Plausible.Cldr.validate_locale(:"en-AU") +Elixir.Plausible.Cldr.validate_locale(:"en-AU") -iex> Plausible.Cldr.Locale.locale_from_host("a.b.com.tv") -{:error, - {Cldr.UnknownLocaleError, "No locale was identified for territory \"tv\""}} +iex> Plausible.Cldr.Locale.locale_from_host("a.b.com.tv") +{:error, + {Cldr.UnknownLocaleError, "No locale was identified for territory \"tv\""}} -iex> Plausible.Cldr.Locale.locale_from_host("a.b.com") -{:error, - {Cldr.UnknownLocaleError, "No locale was identified for territory \"com\""}} +iex> Plausible.Cldr.Locale.locale_from_host("a.b.com") +{:error, + {Cldr.UnknownLocaleError, "No locale was identified for territory \"com\""}}

@@ -654,12 +654,12 @@ be a territory.

iex> Cldr.Locale.territory_from_host("a.b.com.au") -{:ok, :AU} +
iex> Cldr.Locale.territory_from_host("a.b.com.au")
+{:ok, :AU}
 
-iex> Cldr.Locale.territory_from_host("a.b.com")
-{:error,
- {Cldr.UnknownLocaleError, "No locale was identified for territory \"com\""}}
+
iex> Cldr.Locale.territory_from_host("a.b.com") +{:error, + {Cldr.UnknownLocaleError, "No locale was identified for territory \"com\""}}

diff --git a/Plausible.Cldr.Number.Cardinal.html b/Plausible.Cldr.Number.Cardinal.html index 3d2716851..468192efe 100644 --- a/Plausible.Cldr.Number.Cardinal.html +++ b/Plausible.Cldr.Number.Cardinal.html @@ -13,7 +13,7 @@ - + @@ -426,31 +426,31 @@ The valid substitution keys are :zero, iex> Plausible.Cldr.Number.Cardinal.pluralize 1, "en", %{one: "one"} +
iex> Plausible.Cldr.Number.Cardinal.pluralize 1, "en", %{one: "one"}
 "one"
 
-iex> Plausible.Cldr.Number.Cardinal.pluralize 2, "en", %{one: "one"}
+iex> Plausible.Cldr.Number.Cardinal.pluralize 2, "en", %{one: "one"}
 nil
 
-iex> Plausible.Cldr.Number.Cardinal.pluralize 2, "en", %{one: "one", two: "two", other: "other"}
+iex> Plausible.Cldr.Number.Cardinal.pluralize 2, "en", %{one: "one", two: "two", other: "other"}
 "other"
 
-iex> Plausible.Cldr.Number.Cardinal.pluralize 22, "en", %{one: "one", two: "two", other: "other"}
+iex> Plausible.Cldr.Number.Cardinal.pluralize 22, "en", %{one: "one", two: "two", other: "other"}
 "other"
 
-iex> Plausible.Cldr.Number.Cardinal.pluralize Decimal.new(1), "en", %{one: "one"}
+iex> Plausible.Cldr.Number.Cardinal.pluralize Decimal.new(1), "en", %{one: "one"}
 "one"
 
-iex> Plausible.Cldr.Number.Cardinal.pluralize Decimal.new(2), "en", %{one: "one"}
+iex> Plausible.Cldr.Number.Cardinal.pluralize Decimal.new(2), "en", %{one: "one"}
 nil
 
-iex> Plausible.Cldr.Number.Cardinal.pluralize Decimal.new(2), "en", %{one: "one", two: "two"}
+iex> Plausible.Cldr.Number.Cardinal.pluralize Decimal.new(2), "en", %{one: "one", two: "two"}
 nil
 
-iex> Plausible.Cldr.Number.Cardinal.pluralize 1..10, "ar", %{one: "one", few: "few", other: "other"}
+iex> Plausible.Cldr.Number.Cardinal.pluralize 1..10, "ar", %{one: "one", few: "few", other: "other"}
 "few"
 
-iex> Plausible.Cldr.Number.Cardinal.pluralize 1..10, "en", %{one: "one", few: "few", other: "other"}
+iex> Plausible.Cldr.Number.Cardinal.pluralize 1..10, "en", %{one: "one", few: "few", other: "other"}
 "other"
diff --git a/Plausible.Cldr.Number.Format.html b/Plausible.Cldr.Number.Format.html index 33e92e093..85030c10a 100644 --- a/Plausible.Cldr.Number.Format.html +++ b/Plausible.Cldr.Number.Format.html @@ -13,7 +13,7 @@ - + @@ -439,7 +439,7 @@ to precompile all the known formats at compile time.

#=> Plausible.Cldr.Number.Format.Format.decimal_format_list -["#", "#,##,##0%", +["#", "#,##,##0%", "#,##,##0.###", "#,##,##0.00¤", "#,##,##0.00¤;(#,##,##0.00¤)", "#,##,##0 %", "#,##0%", "#,##0.###", "#,##0.00 ¤", "#,##0.00 ¤;(#,##0.00 ¤)", "#,##0.00¤", "#,##0.00¤;(#,##0.00¤)", @@ -449,7 +449,7 @@ to precompile all the known formats at compile time.

"000 B ¤", "000 E ¤", "000 K ¤", "000 MRD ¤", "000 Md ¤", "000 Mio'.' ¤", "000 Mio ¤", "000 Mld ¤", "000 Mln ¤", "000 Mn ¤", "000 Mrd'.' ¤", "000 Mrd ¤", "000 Mr ¤", "000 M ¤", "000 NT ¤", "000 N ¤", "000 Tn ¤", -"000 Tr ¤", ...] +"000 Tr ¤", ...]
@@ -497,8 +497,8 @@ the known formats at compile time. Its use is not otherwise recommended.

-
iex> Plausible.Cldr.Number.Format.decimal_format_list_for(:en)
-{:ok, ["#,##0%", "#,##0.###", "#,##0.00", "#,##0.00;(#,##0.00)","#E0",
+
iex> Plausible.Cldr.Number.Format.decimal_format_list_for(:en)
+{:ok, ["#,##0%", "#,##0.###", "#,##0.00", "#,##0.00;(#,##0.00)","#E0",
  "0 billion", "0 million", "0 thousand",
  "0 trillion", "00 billion", "00 million", "00 thousand", "00 trillion",
  "000 billion", "000 million", "000 thousand", "000 trillion", "000B", "000K",
@@ -506,7 +506,7 @@ the known formats at compile time. Its use is not otherwise recommended.

"¤#,##0.00", "¤#,##0.00;(¤#,##0.00)", "¤000B", "¤000K", "¤000M", "¤000T", "¤00B", "¤00K", "¤00M", "¤00T", "¤0B", "¤0K", "¤0M", "¤0T", "¤ #,##0.00", "¤ #,##0.00;(¤ #,##0.00)", "¤ 000B", "¤ 000K", "¤ 000M", - "¤ 000T", "¤ 00B", "¤ 00K", "¤ 00M", "¤ 00T", "¤ 0B", "¤ 0K", "¤ 0M", "¤ 0T"]}

+
"¤ 000T", "¤ 00B", "¤ 00K", "¤ 00M", "¤ 00T", "¤ 0B", "¤ 0K", "¤ 0M", "¤ 0T"]}
@@ -559,8 +559,8 @@ is Plausible.Cld Examples

-
iex> Plausible.Cldr.Number.Format.default_grouping_for(:en)
-{:ok, %{fraction: %{first: 0, rest: 0}, integer: %{first: 3, rest: 3}}}
+
iex> Plausible.Cldr.Number.Format.default_grouping_for(:en)
+{:ok, %{fraction: %{first: 0, rest: 0}, integer: %{first: 3, rest: 3}}}
@@ -612,8 +612,8 @@ is Plausible.Cld Examples

-
iex> Plausible.Cldr.Number.Format.default_grouping_for!(:en)
-%{fraction: %{first: 0, rest: 0}, integer: %{first: 3, rest: 3}}
+
iex> Plausible.Cldr.Number.Format.default_grouping_for!(:en)
+%{fraction: %{first: 0, rest: 0}, integer: %{first: 3, rest: 3}}
@@ -670,18 +670,18 @@ by percent: "#,##0 %", scientific: "#E0", standard: "#,##0.###" - currency_short: [{"1000", [one: "0 k ¤", other: "0 k ¤"]}, - {"10000", [one: "00 k ¤", other: "00 k ¤"]}, - {"100000", [one: "000 k ¤", other: "000 k ¤"]}, - {"1000000", [one: "0 M ¤", other: "0 M ¤"]}, - {"10000000", [one: "00 M ¤", other: "00 M ¤"]}, - {"100000000", [one: "000 M ¤", other: "000 M ¤"]}, - {"1000000000", [one: "0 Md ¤", other: "0 Md ¤"]}, - {"10000000000", [one: "00 Md ¤", other: "00 Md ¤"]}, - {"100000000000", [one: "000 Md ¤", other: "000 Md ¤"]}, - {"1000000000000", [one: "0 Bn ¤", other: "0 Bn ¤"]}, - {"10000000000000", [one: "00 Bn ¤", other: "00 Bn ¤"]}, - {"100000000000000", [one: "000 Bn ¤", other: "000 Bn ¤"]}], + currency_short: [{"1000", [one: "0 k ¤", other: "0 k ¤"]}, + {"10000", [one: "00 k ¤", other: "00 k ¤"]}, + {"100000", [one: "000 k ¤", other: "000 k ¤"]}, + {"1000000", [one: "0 M ¤", other: "0 M ¤"]}, + {"10000000", [one: "00 M ¤", other: "00 M ¤"]}, + {"100000000", [one: "000 M ¤", other: "000 M ¤"]}, + {"1000000000", [one: "0 Md ¤", other: "0 Md ¤"]}, + {"10000000000", [one: "00 Md ¤", other: "00 Md ¤"]}, + {"100000000000", [one: "000 Md ¤", other: "000 Md ¤"]}, + {"1000000000000", [one: "0 Bn ¤", other: "0 Bn ¤"]}, + {"10000000000000", [one: "00 Bn ¤", other: "00 Bn ¤"]}, + {"100000000000000", [one: "000 Bn ¤", other: "000 Bn ¤"]}], ... }
@@ -772,8 +772,8 @@ is Plausible.Cld Examples

-
iex> Plausible.Cldr.Number.Format.minimum_grouping_digits_for("en")
-{:ok, 1}
+
iex> Plausible.Cldr.Number.Format.minimum_grouping_digits_for("en")
+{:ok, 1}
@@ -825,7 +825,7 @@ is Plausible.Cld Examples -
iex> Plausible.Cldr.Number.Format.minimum_grouping_digits_for!("en")
+
iex> Plausible.Cldr.Number.Format.minimum_grouping_digits_for!("en")
 1
diff --git a/Plausible.Cldr.Number.Formatter.Decimal.html b/Plausible.Cldr.Number.Formatter.Decimal.html index e89d7bb22..807085b3f 100644 --- a/Plausible.Cldr.Number.Formatter.Decimal.html +++ b/Plausible.Cldr.Number.Formatter.Decimal.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Cldr.Number.Ordinal.html b/Plausible.Cldr.Number.Ordinal.html index dfe4b6478..f244a9e9c 100644 --- a/Plausible.Cldr.Number.Ordinal.html +++ b/Plausible.Cldr.Number.Ordinal.html @@ -13,7 +13,7 @@ - + @@ -429,31 +429,31 @@ The valid substitution keys are :zero, iex> Plausible.Cldr.Number.Ordinal.pluralize 1, :en, %{one: "one"} +
iex> Plausible.Cldr.Number.Ordinal.pluralize 1, :en, %{one: "one"}
 "one"
 
-iex> Plausible.Cldr.Number.Ordinal.pluralize 2, :en, %{one: "one"}
+iex> Plausible.Cldr.Number.Ordinal.pluralize 2, :en, %{one: "one"}
 nil
 
-iex> Plausible.Cldr.Number.Ordinal.pluralize 2, :en, %{one: "one", two: "two"}
+iex> Plausible.Cldr.Number.Ordinal.pluralize 2, :en, %{one: "one", two: "two"}
 "two"
 
-iex> Plausible.Cldr.Number.Ordinal.pluralize 22, :en, %{one: "one", two: "two", other: "other"}
+iex> Plausible.Cldr.Number.Ordinal.pluralize 22, :en, %{one: "one", two: "two", other: "other"}
 "two"
 
-iex> Plausible.Cldr.Number.Ordinal.pluralize Decimal.new(1), :en, %{one: "one"}
+iex> Plausible.Cldr.Number.Ordinal.pluralize Decimal.new(1), :en, %{one: "one"}
 "one"
 
-iex> Plausible.Cldr.Number.Ordinal.pluralize Decimal.new(2), :en, %{one: "one"}
+iex> Plausible.Cldr.Number.Ordinal.pluralize Decimal.new(2), :en, %{one: "one"}
 nil
 
-iex> Plausible.Cldr.Number.Ordinal.pluralize Decimal.new(2), :en, %{one: "one", two: "two"}
+iex> Plausible.Cldr.Number.Ordinal.pluralize Decimal.new(2), :en, %{one: "one", two: "two"}
 "two"
 
-iex> Plausible.Cldr.Number.Ordinal.pluralize 1..10, "ar", %{one: "one", few: "few", other: "other"}
+iex> Plausible.Cldr.Number.Ordinal.pluralize 1..10, "ar", %{one: "one", few: "few", other: "other"}
 "other"
 
-iex> Plausible.Cldr.Number.Ordinal.pluralize 1..10, "en", %{one: "one", few: "few", other: "other"}
+iex> Plausible.Cldr.Number.Ordinal.pluralize 1..10, "en", %{one: "one", few: "few", other: "other"}
 "other"
diff --git a/Plausible.Cldr.Number.PluralRule.Range.html b/Plausible.Cldr.Number.PluralRule.Range.html index e13cc3321..8540c033c 100644 --- a/Plausible.Cldr.Number.PluralRule.Range.html +++ b/Plausible.Cldr.Number.PluralRule.Range.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Cldr.Number.Symbol.html b/Plausible.Cldr.Number.Symbol.html index 328ccf559..fb7c9226c 100644 --- a/Plausible.Cldr.Number.Symbol.html +++ b/Plausible.Cldr.Number.Symbol.html @@ -13,7 +13,7 @@ - + @@ -349,9 +349,9 @@ is Plausible.Cld Example: -
iex> Plausible.Cldr.Number.Symbol.number_symbols_for(:th)
-{:ok, %{
-   latn: %Cldr.Number.Symbol{
+
iex> Plausible.Cldr.Number.Symbol.number_symbols_for(:th)
+{:ok, %{
+   latn: %Cldr.Number.Symbol{
      decimal: ".",
      exponential: "E",
      group: ",",
@@ -364,8 +364,8 @@ is Plausible.Cld
      plus_sign: "+",
      superscripting_exponent: "×",
      time_separator: ":"
-   },
-   thai: %Cldr.Number.Symbol{
+   },
+   thai: %Cldr.Number.Symbol{
      decimal: ".",
      exponential: "E",
      group: ",",
@@ -378,8 +378,8 @@ is Plausible.Cld
      plus_sign: "+",
      superscripting_exponent: "×",
      time_separator: ":"
-   }
- }}
+
} + }}
diff --git a/Plausible.Cldr.Number.System.html b/Plausible.Cldr.Number.System.html index 5bb7db4b6..cf590fa39 100644 --- a/Plausible.Cldr.Number.System.html +++ b/Plausible.Cldr.Number.System.html @@ -13,7 +13,7 @@ - + @@ -288,23 +288,23 @@ it is returned as is.

iex> Plausible.Cldr.Number.System.number_system_for "th", :latn -{:ok, %{digits: "0123456789", type: :numeric}} +{:ok, %{digits: "0123456789", type: :numeric}} iex> Plausible.Cldr.Number.System.number_system_for "en", :default -{:ok, %{digits: "0123456789", type: :numeric}} +{:ok, %{digits: "0123456789", type: :numeric}} iex> Plausible.Cldr.Number.System.number_system_for "he", :traditional -{:ok, %{rules: "hebrew", type: :algorithmic}} +{:ok, %{rules: "hebrew", type: :algorithmic}} iex> Plausible.Cldr.Number.System.number_system_for "en", :native -{:ok, %{digits: "0123456789", type: :numeric}} +{:ok, %{digits: "0123456789", type: :numeric}} iex> Plausible.Cldr.Number.System.number_system_for "en", :finance -{ +{ :error, - {Cldr.UnknownNumberSystemError, - "The number system :finance is unknown for the locale named :en. Valid number systems are %{default: :latn, native: :latn}"} -} + {Cldr.UnknownNumberSystemError, + "The number system :finance is unknown for the locale named :en. Valid number systems are %{default: :latn, native: :latn}"} +}

@@ -395,10 +395,10 @@ or a
iex> Plausible.Cldr.Number.System.number_system_names_for "en"
-{:ok, [:latn]}
+{:ok, [:latn]}
 
 iex> Plausible.Cldr.Number.System.number_system_names_for "zz"
-{:error, {Cldr.InvalidLanguageError, "The language \"zz\" is invalid"}}
+{:error, {Cldr.InvalidLanguageError, "The language \"zz\" is invalid"}}
@@ -480,13 +480,13 @@ or a
iex> Plausible.Cldr.Number.System.number_systems_for "en"
-{:ok, %{default: :latn, native: :latn}}
+{:ok, %{default: :latn, native: :latn}}
 
 iex> Plausible.Cldr.Number.System.number_systems_for "th"
-{:ok, %{default: :latn, native: :thai}}
+{:ok, %{default: :latn, native: :thai}}
 
 iex> Plausible.Cldr.Number.System.number_systems_for "zz"
-{:error, {Cldr.InvalidLanguageError, "The language \"zz\" is invalid"}}
+{:error, {Cldr.InvalidLanguageError, "The language \"zz\" is invalid"}}
@@ -584,20 +584,20 @@ actual system name.

ex> Plausible.Cldr.Number.System.system_name_from(:default, "en") -{:ok, :latn} +
ex> Plausible.Cldr.Number.System.system_name_from(:default, "en")
+{:ok, :latn}
 
-iex> Plausible.Cldr.Number.System.system_name_from("latn", "en")
-{:ok, :latn}
+iex> Plausible.Cldr.Number.System.system_name_from("latn", "en")
+{:ok, :latn}
 
-iex> Plausible.Cldr.Number.System.system_name_from(:native, "en")
-{:ok, :latn}
+iex> Plausible.Cldr.Number.System.system_name_from(:native, "en")
+{:ok, :latn}
 
-iex> Plausible.Cldr.Number.System.system_name_from(:nope, "en")
-{
+iex> Plausible.Cldr.Number.System.system_name_from(:nope, "en")
+{
   :error,
-  {Cldr.UnknownNumberSystemError, "The number system :nope is unknown"}
-}

Note that return value is not guaranteed to be a valid + {Cldr.UnknownNumberSystemError, "The number system :nope is unknown"} +}

Note that return value is not guaranteed to be a valid number system for the given locale as demonstrated in the third example.

@@ -644,16 +644,16 @@ is recommended.

iex> Plausible.Cldr.Number.System.to_system 123456, :hebr -{:ok, "קכ״ג׳תנ״ו"} +{:ok, "קכ״ג׳תנ״ו"} iex> Plausible.Cldr.Number.System.to_system 123, :hans -{:ok, "一百二十三"} +{:ok, "一百二十三"} iex> Plausible.Cldr.Number.System.to_system 123, :hant -{:ok, "一百二十三"} +{:ok, "一百二十三"} iex> Plausible.Cldr.Number.System.to_system 123, :hansfin -{:ok, "壹佰贰拾叁"} +{:ok, "壹佰贰拾叁"}
diff --git a/Plausible.Cldr.Number.Transliterate.html b/Plausible.Cldr.Number.Transliterate.html index 4ffe44254..21692111b 100644 --- a/Plausible.Cldr.Number.Transliterate.html +++ b/Plausible.Cldr.Number.Transliterate.html @@ -13,7 +13,7 @@ - + @@ -133,12 +133,12 @@ digits between number systems. For example from :arabic to :latn. Since genera transliteration map is slow, pairs of transliterations can be configured so that the transliteration map is created at compile time and therefore speeding up transliteration at run time.

To configure these transliteration pairs, add the to the use Cldr configuration -in a backend module:

defmodule MyApp.Cldr do
+in a backend module:

defmodule MyApp.Cldr do
   use Cldr,
-  locale: ["en", "fr", "th"],
+  locale: ["en", "fr", "th"],
   default_locale: "en",
-  precompile_transliterations: [{:latn, :thai}, {:arab, :thai}]
-end

Where each tuple in the list configures one transliteration map. In this example, two maps are + precompile_transliterations: [{:latn, :thai}, {:arab, :thai}] +end

Where each tuple in the list configures one transliteration map. In this example, two maps are configured: from :latn to :thai and from :arab to :thai.

A list of configurable number systems is returned by Cldr.Number.System.systems_with_digits/0.

If a transliteration is requested between two number pairs that have not been configured for precompilation, a warning is logged.

@@ -252,22 +252,22 @@ and

-
iex> Plausible.Cldr.Number.Transliterate.transliterate("123556")
+
iex> Plausible.Cldr.Number.Transliterate.transliterate("123556")
 "123556"
 
-iex> Plausible.Cldr.Number.Transliterate.transliterate("123,556.000", "fr", :default)
+iex> Plausible.Cldr.Number.Transliterate.transliterate("123,556.000", "fr", :default)
 "123 556,000"
 
-iex> Plausible.Cldr.Number.Transliterate.transliterate("123556", "th", :default)
+iex> Plausible.Cldr.Number.Transliterate.transliterate("123556", "th", :default)
 "123556"
 
-iex> Plausible.Cldr.Number.Transliterate.transliterate("123556", "th", "thai")
+iex> Plausible.Cldr.Number.Transliterate.transliterate("123556", "th", "thai")
 "๑๒๓๕๕๖"
 
-iex> Plausible.Cldr.Number.Transliterate.transliterate("123556", "th", :native)
+iex> Plausible.Cldr.Number.Transliterate.transliterate("123556", "th", :native)
 "๑๒๓๕๕๖"
 
-iex> Plausible.Cldr.Number.Transliterate.transliterate("Some number is: 123556", "th", "thai")
+iex> Plausible.Cldr.Number.Transliterate.transliterate("Some number is: 123556", "th", "thai")
 "Some number is: ๑๒๓๕๕๖"
diff --git a/Plausible.Cldr.Number.html b/Plausible.Cldr.Number.html index e1ba4cbfa..7a8166dbc 100644 --- a/Plausible.Cldr.Number.html +++ b/Plausible.Cldr.Number.html @@ -13,7 +13,7 @@ - + @@ -412,19 +412,19 @@ using the Elixir standard library functions.

-
iex> Plausible.Cldr.Number.parse("+1.000,34", locale: "de")
-{:ok, 1000.34}
+
iex> Plausible.Cldr.Number.parse("+1.000,34", locale: "de")
+{:ok, 1000.34}
 
-iex> Plausible.Cldr.Number.parse("-1_000_000.34")
-{:ok, -1000000.34}
+iex> Plausible.Cldr.Number.parse("-1_000_000.34")
+{:ok, -1000000.34}
 
-iex> Plausible.Cldr.Number.parse("1.000", locale: "de", number: :integer)
-{:ok, 1000}
+iex> Plausible.Cldr.Number.parse("1.000", locale: "de", number: :integer)
+{:ok, 1000}
 
-iex> Plausible.Cldr.Number.parse("+1.000,34", locale: "de", number: :integer)
-{:error,
-  {Cldr.Number.ParseError,
-   "The string \"+1.000,34\" could not be parsed as a number"}}
+
iex> Plausible.Cldr.Number.parse("+1.000,34", locale: "de", number: :integer) +{:error, + {Cldr.Number.ParseError, + "The string \"+1.000,34\" could not be parsed as a number"}}
@@ -496,17 +496,17 @@ financial instruments.

-
iex> Plausible.Cldr.Number.scan("100 US dollars")
+
iex> Plausible.Cldr.Number.scan("100 US dollars")
 ...> |> Plausible.Cldr.Number.resolve_currencies
-[100, :USD]
+[100, :USD]
 
-iex> Plausible.Cldr.Number.scan("100 eurosports")
-...> |> Plausible.Cldr.Number.resolve_currencies(fuzzy: 0.75)
-[100, :EUR]
+iex> Plausible.Cldr.Number.scan("100 eurosports")
+...> |> Plausible.Cldr.Number.resolve_currencies(fuzzy: 0.75)
+[100, :EUR]
 
-iex> Plausible.Cldr.Number.scan("100 dollars des États-Unis")
-...> |> Plausible.Cldr.Number.resolve_currencies(locale: "fr")
-[100, :USD]
+
iex> Plausible.Cldr.Number.scan("100 dollars des États-Unis") +...> |> Plausible.Cldr.Number.resolve_currencies(locale: "fr") +[100, :USD]
@@ -583,19 +583,19 @@ financial instruments.

iex> Plausible.Cldr.Number.resolve_currency("US dollars") -[:USD] +
iex> Plausible.Cldr.Number.resolve_currency("US dollars")
+[:USD]
 
-iex> Plausible.Cldr.Number.resolve_currency("100 eurosports", fuzzy: 0.75)
-[:EUR]
+iex> Plausible.Cldr.Number.resolve_currency("100 eurosports", fuzzy: 0.75)
+[:EUR]
 
-iex> Plausible.Cldr.Number.resolve_currency("dollars des États-Unis", locale: "fr")
-[:USD]
+iex> Plausible.Cldr.Number.resolve_currency("dollars des États-Unis", locale: "fr")
+[:USD]
 
-iex> Plausible.Cldr.Number.resolve_currency("not a known currency", locale: "fr")
-{:error,
- {Cldr.UnknownCurrencyError,
-  "The currency \"not a known currency\" is unknown or not supported"}}
+
iex> Plausible.Cldr.Number.resolve_currency("not a known currency", locale: "fr") +{:error, + {Cldr.UnknownCurrencyError, + "The currency \"not a known currency\" is unknown or not supported"}}

@@ -659,13 +659,13 @@ The default is options[:backend].get_locale()
iex> Plausible.Cldr.Number.resolve_per "11%"
-["11", :percent]
+["11", :percent]
 
 iex> Plausible.Cldr.Number.resolve_per "% of linguists"
-[:percent, " of linguists"]
+[:percent, " of linguists"]
 
 iex> Plausible.Cldr.Number.resolve_per "% of linguists %"
-[:percent, " of linguists ", :percent]
+[:percent, " of linguists ", :percent]
@@ -722,9 +722,9 @@ The default is options[:backend].get_locale() -
iex> Plausible.Cldr.Number.scan("100%")
-...> |> Plausible.Cldr.Number.resolve_pers()
-[100, :percent]
+
iex> Plausible.Cldr.Number.scan("100%")
+...> |> Plausible.Cldr.Number.resolve_pers()
+[100, :percent]
@@ -784,20 +784,20 @@ and any options provided are passed to that function.

iex> Plausible.Cldr.Number.scan("£1_000_000.34") -["£", 1000000.34] +
iex> Plausible.Cldr.Number.scan("£1_000_000.34")
+["£", 1000000.34]
 
-iex> Plausible.Cldr.Number.scan("I want £1_000_000 dollars")
-["I want £", 1000000, " dollars"]
+iex> Plausible.Cldr.Number.scan("I want £1_000_000 dollars")
+["I want £", 1000000, " dollars"]
 
-iex> Plausible.Cldr.Number.scan("The prize is 23")
-["The prize is ", 23]
+iex> Plausible.Cldr.Number.scan("The prize is 23")
+["The prize is ", 23]
 
-iex> Plausible.Cldr.Number.scan("The lottery number is 23 for the next draw")
-["The lottery number is ", 23, " for the next draw"]
+iex> Plausible.Cldr.Number.scan("The lottery number is 23 for the next draw")
+["The lottery number is ", 23, " for the next draw"]
 
-iex> Plausible.Cldr.Number.scan("The loss is -1.000 euros", locale: "de", number: :integer)
-["The loss is ", -1000, " euros"]
+
iex> Plausible.Cldr.Number.scan("The loss is -1.000 euros", locale: "de", number: :integer) +["The loss is ", -1000, " euros"]

@@ -844,7 +844,7 @@ options.

iex> Plausible.Cldr.Number.to_approx_string 1234 -{:ok, "~1,234"} +{:ok, "~1,234"}

@@ -891,7 +891,7 @@ options.

iex> Plausible.Cldr.Number.to_at_least_string 1234 -{:ok, "1,234+"} +{:ok, "1,234+"}

@@ -938,7 +938,7 @@ options.

iex> Plausible.Cldr.Number.to_at_most_string 1234 -{:ok, "≤1,234"} +{:ok, "≤1,234"}

@@ -985,7 +985,7 @@ options.

iex> Plausible.Cldr.Number.to_range_string 1234..5678
-{:ok, "1,234–5,678"}
+{:ok, "1,234–5,678"}
@@ -1104,21 +1104,21 @@ extensions.

iex> Cldr.Number.to_string(100, format: :currency, currency: :USD, wrapper: fn +applied to the symbol than the number. For example:

iex> Cldr.Number.to_string(100, format: :currency, currency: :USD, wrapper: fn
 ...>   string, :currency_symbol -> "<span class=\"symbol\">" <> string <> "</span>"
 ...>   string, :number -> "<span class=\"number\">" <> string <> "</span>"
 ...>   string, :currency_space -> "<span>" <> string <> "</span>"
 ...>   string, _other -> string
-...> end)
-{:ok, "<span class=\"symbol\">$</span><span class=\"number\">100.00</span>"}

It is also possible and recommended to use the Phoenix.HTML.Tag.content_tag/3 +...> end) +{:ok, "<span class=\"symbol\">$</span><span class=\"number\">100.00</span>"}

It is also possible and recommended to use the Phoenix.HTML.Tag.content_tag/3 function if wrapping HTML tags since these will ensure HTML entities are -correctly encoded. For example:

iex> Cldr.Number.to_string(100, format: :currency, currency: :USD, wrapper: fn
-...>   string, :currency_symbol -> Phoenix.HTML.Tag.content_tag(:span, string, class: "symbol")
-...>   string, :number -> Phoenix.HTML.Tag.content_tag(:span, string, class: "number")
-...>   string, :currency_space -> Phoenix.HTML.Tag.content_tag(:span, string)
+correctly encoded.  For example:

iex> Cldr.Number.to_string(100, format: :currency, currency: :USD, wrapper: fn
+...>   string, :currency_symbol -> Phoenix.HTML.Tag.content_tag(:span, string, class: "symbol")
+...>   string, :number -> Phoenix.HTML.Tag.content_tag(:span, string, class: "number")
+...>   string, :currency_space -> Phoenix.HTML.Tag.content_tag(:span, string)
 ...>   string, _other -> string
-...> end)
-{:ok, "<span class=\"symbol\">$</span><span class=\"number\">100.00</span>"}

When formatting a number the format is parsed into format elements that might include +...> end) +{:ok, "<span class=\"symbol\">$</span><span class=\"number\">100.00</span>"}

When formatting a number the format is parsed into format elements that might include a currency symbol, a literal string, inserted text between a currency symbol and the currency amount, a percent sign, the number itself and several other elements. In some cases it is helpful to be apply specific formatting to each element. @@ -1139,80 +1139,80 @@ inserted in the final formatted number.

iex> Plausible.Cldr.Number.to_string 12345 -{:ok, "12,345"} +{:ok, "12,345"} iex> Plausible.Cldr.Number.to_string 12345, locale: "fr" -{:ok, "12 345"} +{:ok, "12 345"} iex> Plausible.Cldr.Number.to_string 1345.32, currency: :EUR, locale: "es", minimum_grouping_digits: 1 -{:ok, "1.345,32 €"} +{:ok, "1.345,32 €"} iex> Plausible.Cldr.Number.to_string 1345.32, currency: :EUR, locale: "es" -{:ok, "1345,32 €"} +{:ok, "1345,32 €"} iex> Plausible.Cldr.Number.to_string 12345, locale: "fr", currency: "USD" -{:ok, "12 345,00 $US"} +{:ok, "12 345,00 $US"} iex> Plausible.Cldr.Number.to_string 12345, format: "#E0" -{:ok, "1.2345E4"} +{:ok, "1.2345E4"} iex> Plausible.Cldr.Number.to_string 12345, format: :accounting, currency: "THB" -{:ok, "THB 12,345.00"} +{:ok, "THB 12,345.00"} iex> Plausible.Cldr.Number.to_string -12345, format: :accounting, currency: "THB" -{:ok, "(THB 12,345.00)"} +{:ok, "(THB 12,345.00)"} iex> Plausible.Cldr.Number.to_string 12345, format: :accounting, currency: "THB", ...> locale: "th" -{:ok, "฿12,345.00"} +{:ok, "฿12,345.00"} iex> Plausible.Cldr.Number.to_string 12345, format: :accounting, currency: "THB", ...> locale: "th", number_system: :native -{:ok, "฿๑๒,๓๔๕.๐๐"} +{:ok, "฿๑๒,๓๔๕.๐๐"} iex> Plausible.Cldr.Number.to_string 1244.30, format: :long -{:ok, "1 thousand"} +{:ok, "1 thousand"} iex> Plausible.Cldr.Number.to_string 1244.30, format: :long, currency: "USD" -{:ok, "1,244 US dollars"} +{:ok, "1,244 US dollars"} iex> Plausible.Cldr.Number.to_string 1244.30, format: :short -{:ok, "1K"} +{:ok, "1K"} iex> Plausible.Cldr.Number.to_string 1244.30, format: :short, currency: "EUR" -{:ok, "€1K"} +{:ok, "€1K"} iex> Plausible.Cldr.Number.to_string 1234, format: :spellout -{:ok, "one thousand two hundred thirty-four"} +{:ok, "one thousand two hundred thirty-four"} iex> Plausible.Cldr.Number.to_string 1234, format: :spellout_verbose -{:ok, "one thousand two hundred and thirty-four"} +{:ok, "one thousand two hundred and thirty-four"} iex> Plausible.Cldr.Number.to_string 1989, format: :spellout_year -{:ok, "nineteen eighty-nine"} +{:ok, "nineteen eighty-nine"} iex> Plausible.Cldr.Number.to_string 123, format: :ordinal -{:ok, "123rd"} +{:ok, "123rd"} iex> Plausible.Cldr.Number.to_string 123, format: :roman -{:ok, "CXXIII"} +{:ok, "CXXIII"} iex> Plausible.Cldr.Number.to_string 123, locale: "th-u-nu-thai" -{:ok, "๑๒๓"}

+{:ok, "๑๒๓"}

Errors

An error tuple {:error, reason} will be returned if an error is detected. -The two most likely causes of an error return are:

  • A format cannot be compiled. In this case the error tuple will look like:
    iex> Plausible.Cldr.Number.to_string(12345, format: "0#")
-    {:error, {Cldr.FormatCompileError,
-      "Decimal format compiler: syntax error before: \"#\""}}
  • The format style requested is not defined for the locale and +The two most likely causes of an error return are:

    • A format cannot be compiled. In this case the error tuple will look like:
        iex> Plausible.Cldr.Number.to_string(12345, format: "0#")
    +    {:error, {Cldr.FormatCompileError,
    +      "Decimal format compiler: syntax error before: \"#\""}}
    • The format style requested is not defined for the locale and number_system. This happens typically when the number system is :algorithmic rather than the more common :numeric. In this case the error -return looks like:
        iex> Plausible.Cldr.Number.to_string(1234, locale: "he", number_system: "hebr")
    -    {:error, {Cldr.UnknownFormatError,
    -      "The locale :he with number system :hebr does not define a format :standard"}}
    +return looks like:
    iex> Plausible.Cldr.Number.to_string(1234, locale: "he", number_system: "hebr")
+    {:error, {Cldr.UnknownFormatError,
+      "The locale :he with number system :hebr does not define a format :standard"}}
@@ -1316,17 +1316,17 @@ returned by iex> Plausible.Cldr.Number.validate_number_system "en", :latn -{:ok, :latn} +{:ok, :latn} iex> Plausible.Cldr.Number.validate_number_system "en", :default -{:ok, :latn} +{:ok, :latn} iex> Plausible.Cldr.Number.validate_number_system "en", :unknown -{:error, - {Cldr.UnknownNumberSystemError, "The number system :unknown is unknown"}} +{:error, + {Cldr.UnknownNumberSystemError, "The number system :unknown is unknown"}} iex> Plausible.Cldr.Number.validate_number_system "zz", :default -{:error, {Cldr.InvalidLanguageError, "The language \"zz\" is invalid"}} +{:error, {Cldr.InvalidLanguageError, "The language \"zz\" is invalid"}}
diff --git a/Plausible.Cldr.Rbnf.NumberSystem.html b/Plausible.Cldr.Rbnf.NumberSystem.html index 4981703d4..f91f68910 100644 --- a/Plausible.Cldr.Rbnf.NumberSystem.html +++ b/Plausible.Cldr.Rbnf.NumberSystem.html @@ -13,7 +13,7 @@ - + @@ -116,9 +116,9 @@ Plausible

Functions to implement the number system rule-based-number-format rules of CLDR.

These rules are defined only on the "und" locale and represent specialised number formatting.

The standard public API for RBNF is via the Cldr.Number.to_string/2 function.

The functions on this module are defined at compile time based upon the RBNF rules -defined in the Unicode CLDR data repository. Available rules are identified by:

iex> Plausible.Cldr.Rbnf.NumberSystem.rule_sets(:und)
-...> |> Enum.sort()
-[
+defined in the Unicode CLDR data repository.  Available rules are identified by:

iex> Plausible.Cldr.Rbnf.NumberSystem.rule_sets(:und)
+...> |> Enum.sort()
+[
   :armenian_lower,
   :armenian_upper,
   :cyrillic_lower,
@@ -132,9 +132,9 @@ defined in the Unicode CLDR data repository.  Available rules are identified by:
   :roman_upper,
   :tamil,
   :zz_default
-]

A rule can then be invoked on an available rule_set. For example

iex> Plausible.Cldr.Rbnf.NumberSystem.roman_upper(123, :und)
-"CXXIII"

This particular call is equivalent to the call through the public API of:

iex> Plausible.Cldr.Number.to_string(123, format: :roman)
-{:ok, "CXXIII"}
+
]

A rule can then be invoked on an available rule_set. For example

iex> Plausible.Cldr.Rbnf.NumberSystem.roman_upper(123, :und)
+"CXXIII"

This particular call is equivalent to the call through the public API of:

iex> Plausible.Cldr.Number.to_string(123, format: :roman)
+{:ok, "CXXIII"}
diff --git a/Plausible.Cldr.Rbnf.Ordinal.html b/Plausible.Cldr.Rbnf.Ordinal.html index 118f4b60f..725f4de8f 100644 --- a/Plausible.Cldr.Rbnf.Ordinal.html +++ b/Plausible.Cldr.Rbnf.Ordinal.html @@ -13,7 +13,7 @@ - + @@ -116,20 +116,20 @@ Plausible

Functions to implement the ordinal rule-based-number-format rules of CLDR.

As CLDR notes, the data is incomplete or non-existent for many languages. It is considered complete for English however.

The standard public API for RBNF is via the Cldr.Number.to_string/2 function.

The functions on this module are defined at compile time based upon the RBNF rules -defined in the Unicode CLDR data repository. Available rules are identified by:

iex> Plausible.Cldr.Rbnf.Ordinal.rule_sets(:en)
-[:digits_ordinal]
+defined in the Unicode CLDR data repository.  Available rules are identified by:

iex> Plausible.Cldr.Rbnf.Ordinal.rule_sets(:en)
+[:digits_ordinal]
 
-iex> Plausible.Cldr.Rbnf.Ordinal.rule_sets("fr")
-...> |> Enum.sort()
-[
+iex> Plausible.Cldr.Rbnf.Ordinal.rule_sets("fr")
+...> |> Enum.sort()
+[
   :digits_ordinal,
   :digits_ordinal_feminine,
   :digits_ordinal_feminine_plural,
   :digits_ordinal_masculine,
   :digits_ordinal_masculine_plural
-]

A rule can then be invoked on an available rule_set. For example

iex> Plausible.Cldr.Rbnf.Ordinal.digits_ordinal(123, :en)
-"123rd"

This call is equivalent to the call through the public API of:

iex> Plausible.Cldr.Number.to_string(123, format: :ordinal)
-{:ok, "123rd"}
+
]

A rule can then be invoked on an available rule_set. For example

iex> Plausible.Cldr.Rbnf.Ordinal.digits_ordinal(123, :en)
+"123rd"

This call is equivalent to the call through the public API of:

iex> Plausible.Cldr.Number.to_string(123, format: :ordinal)
+{:ok, "123rd"}
diff --git a/Plausible.Cldr.Rbnf.Spellout.html b/Plausible.Cldr.Rbnf.Spellout.html index 4d7f5b974..71d3711c1 100644 --- a/Plausible.Cldr.Rbnf.Spellout.html +++ b/Plausible.Cldr.Rbnf.Spellout.html @@ -13,7 +13,7 @@ - + @@ -116,9 +116,9 @@ Plausible

Functions to implement the spellout rule-based-number-format rules of CLDR.

As CLDR notes, the data is incomplete or non-existent for many languages. It is considered complete for English however.

The standard public API for RBNF is via the Cldr.Number.to_string/2 function.

The functions on this module are defined at compile time based upon the RBNF rules -defined in the Unicode CLDR data repository. Available rules are identified by:

iex> Plausible.Cldr.Rbnf.Spellout.rule_sets("en")
-...> |> Enum.sort()
-[
+defined in the Unicode CLDR data repository.  Available rules are identified by:

iex> Plausible.Cldr.Rbnf.Spellout.rule_sets("en")
+...> |> Enum.sort()
+[
   :spellout_cardinal,
   :spellout_cardinal_verbose,
   :spellout_numbering,
@@ -126,9 +126,9 @@ defined in the Unicode CLDR data repository.  Available rules are identified by:
   :spellout_numbering_year,
   :spellout_ordinal,
   :spellout_ordinal_verbose
-]

A rule can then be invoked on an available rule_set. For example:

iex> Plausible.Cldr.Rbnf.Spellout.spellout_ordinal(123, "en")
-"one hundred twenty-third"

This call is equivalent to the call through the public API of:

iex> Plausible.Cldr.Number.to_string(123, format: :spellout)
-{:ok, "one hundred twenty-three"}
+
]

A rule can then be invoked on an available rule_set. For example:

iex> Plausible.Cldr.Rbnf.Spellout.spellout_ordinal(123, "en")
+"one hundred twenty-third"

This call is equivalent to the call through the public API of:

iex> Plausible.Cldr.Number.to_string(123, format: :spellout)
+{:ok, "one hundred twenty-three"}
diff --git a/Plausible.Cldr.html b/Plausible.Cldr.html index db43f46cb..265293480 100644 --- a/Plausible.Cldr.html +++ b/Plausible.Cldr.html @@ -13,7 +13,7 @@ - + @@ -518,24 +518,24 @@ Functions Example -
iex> Plausible.Cldr.default_locale()
-%Cldr.LanguageTag{
+
iex> Plausible.Cldr.default_locale()
+%Cldr.LanguageTag{
   backend: Plausible.Cldr,
   canonical_locale_name: "en-001",
   cldr_locale_name: :"en-001",
-  language_subtags: [],
-  extensions: %{},
+  language_subtags: [],
+  extensions: %{},
   gettext_locale_name: "en",
   language: "en",
-  locale: %{},
-  private_use: [],
+  locale: %{},
+  private_use: [],
   rbnf_locale_name: :en,
   requested_locale_name: "en-001",
   script: :Latn,
   territory: :"001",
-  transform: %{},
-  language_variants: []
-}
+
transform: %{}, + language_variants: [] +}
@@ -570,7 +570,7 @@ does not specify one and none can be inferred.

iex> Plausible.Cldr.default_territory() +
iex> Plausible.Cldr.default_territory()
 :"001"

@@ -633,13 +633,13 @@ is inserted between words or sentences. The valid options are
iex> Plausible.Cldr.ellipsis "And furthermore"
 "And furthermore…"
 
-iex> Plausible.Cldr.ellipsis ["And furthermore", "there is much to be done"], locale: :ja
+iex> Plausible.Cldr.ellipsis ["And furthermore", "there is much to be done"], locale: :ja
 "And furthermore…there is much to be done"
 
 iex> Plausible.Cldr.ellipsis "And furthermore", format: :word
 "And furthermore …"
 
-iex> Plausible.Cldr.ellipsis ["And furthermore", "there is much to be done"], locale: :ja, format: :word
+iex> Plausible.Cldr.ellipsis ["And furthermore", "there is much to be done"], locale: :ja, format: :word
 "And furthermore … there is much to be done"
@@ -675,23 +675,23 @@ take an optional locale parameter for which a locale is not supplied.

-
iex> Plausible.Cldr.put_locale("pl")
+
iex> Plausible.Cldr.put_locale("pl")
 iex> Plausible.Cldr.get_locale
-%Cldr.LanguageTag{
+%Cldr.LanguageTag{
    backend: Elixir.Plausible.Cldr,
    canonical_locale_name: "pl",
    cldr_locale_name: :pl,
-   extensions: %{},
+   extensions: %{},
    language: "pl",
-   locale: %{},
-   private_use: [],
+   locale: %{},
+   private_use: [],
    rbnf_locale_name: :pl,
    territory: :PL,
    requested_locale_name: "pl",
    script: :Latn,
-   transform: %{},
-   language_variants: []
- }
+
transform: %{}, + language_variants: [] + }
@@ -824,10 +824,10 @@ name is configured and available in Gettext.

iex> Plausible.Cldr.known_gettext_locale_name?("en") +
iex> Plausible.Cldr.known_gettext_locale_name?("en")
 true
 
-iex> Plausible.Cldr.known_gettext_locale_name?("!!")
+iex> Plausible.Cldr.known_gettext_locale_name?("!!")
 false

@@ -946,10 +946,10 @@ name is configured and available in Cldr.

iex> Plausible.Cldr.known_locale_name?(:en) +
iex> Plausible.Cldr.known_locale_name?(:en)
 true
 
-iex> Plausible.Cldr.known_locale_name?(:"!!")
+iex> Plausible.Cldr.known_locale_name?(:"!!")
 false
@@ -1004,7 +1004,7 @@ in this module or in

iex> Plausible.Cldr.known_number_system_types
-[:default, :finance, :native, :traditional]
+[:default, :finance, :native, :traditional]
@@ -1115,10 +1115,10 @@ rules based number formats (RBNF).

iex> Plausible.Cldr.known_rbnf_locale_name?(:en) +
iex> Plausible.Cldr.known_rbnf_locale_name?(:en)
 true
 
-iex> Plausible.Cldr.known_rbnf_locale_name?(:"!!")
+iex> Plausible.Cldr.known_rbnf_locale_name?(:"!!")
 false

@@ -1239,29 +1239,29 @@ of a language tag.

Examples

-
iex> Plausible.Cldr.put_locale("en")
-{:ok,
- %Cldr.LanguageTag{
+
iex> Plausible.Cldr.put_locale("en")
+{:ok,
+ %Cldr.LanguageTag{
    backend: Plausible.Cldr,
    canonical_locale_name: "en",
    cldr_locale_name: :en,
-   language_subtags: [],
-   extensions: %{},
+   language_subtags: [],
+   extensions: %{},
    gettext_locale_name: "en",
    language: "en",
-   locale: %{},
-   private_use: [],
+   locale: %{},
+   private_use: [],
    rbnf_locale_name: :en,
    requested_locale_name: "en",
    script: :Latn,
    territory: :US,
-   transform: %{},
-   language_variants: []
- }}
+   transform: %{},
+   language_variants: []
+ }}
 
-iex> Plausible.Cldr.put_locale("invalid-locale!")
-{:error, {Cldr.LanguageTag.ParseError,
-  "Expected a BCP47 language tag. Could not parse the remaining \"!\" starting at position 15"}}
+
iex> Plausible.Cldr.put_locale("invalid-locale!") +{:error, {Cldr.LanguageTag.ParseError, + "Expected a BCP47 language tag. Could not parse the remaining \"!\" starting at position 15"}}
@@ -1444,47 +1444,47 @@ of a language tag.

iex> Plausible.Cldr.validate_locale(:en) -{:ok, -%Cldr.LanguageTag{ +
iex> Plausible.Cldr.validate_locale(:en)
+{:ok,
+%Cldr.LanguageTag{
   backend: Plausible.Cldr,
   canonical_locale_name: "en",
   cldr_locale_name: :en,
-  extensions: %{},
+  extensions: %{},
   gettext_locale_name: "en",
   language: "en",
-  locale: %{},
-  private_use: [],
+  locale: %{},
+  private_use: [],
   rbnf_locale_name: :en,
   requested_locale_name: "en",
   script: :Latn,
   territory: :US,
-  transform: %{},
-  language_variants: []
-}}
+  transform: %{},
+  language_variants: []
+}}
 
 
-iex> Plausible.Cldr.validate_locale Plausible.Cldr.default_locale()
-{:ok,
-%Cldr.LanguageTag{
+iex> Plausible.Cldr.validate_locale Plausible.Cldr.default_locale()
+{:ok,
+%Cldr.LanguageTag{
   backend: Plausible.Cldr,
   canonical_locale_name: "en-001",
   cldr_locale_name: :"en-001",
-  extensions: %{},
+  extensions: %{},
   gettext_locale_name: "en",
   language: "en",
-  locale: %{},
-  private_use: [],
+  locale: %{},
+  private_use: [],
   rbnf_locale_name: :en,
   requested_locale_name: "en-001",
   script: :Latn,
   territory: :"001",
-  transform: %{},
-  language_variants: []
-}}
+  transform: %{},
+  language_variants: []
+}}
 
-iex> Plausible.Cldr.validate_locale("zzz")
-{:error, {Cldr.InvalidLanguageError, "The language \"zzz\" is invalid"}}
+
iex> Plausible.Cldr.validate_locale("zzz") +{:error, {Cldr.InvalidLanguageError, "The language \"zzz\" is invalid"}}

@@ -1555,22 +1555,22 @@ of a language tag.

iex> Plausible.Cldr.validate_number_system_type :default -{:ok, :default} +{:ok, :default} iex> Plausible.Cldr.validate_number_system_type :traditional -{:ok, :traditional} +{:ok, :traditional} iex> Plausible.Cldr.validate_number_system_type :latn -{ +{ :error, - {Cldr.UnknownNumberSystemTypeError, "The number system type :latn is unknown"} -} + {Cldr.UnknownNumberSystemTypeError, "The number system type :latn is unknown"} +} iex> Plausible.Cldr.validate_number_system_type "bork" -{ +{ :error, - {Cldr.UnknownNumberSystemTypeError, "The number system type \"bork\" is invalid"} -} + {Cldr.UnknownNumberSystemTypeError, "The number system type \"bork\" is invalid"} +}

diff --git a/Plausible.ClickhouseEventV2.html b/Plausible.ClickhouseEventV2.html index 86f849f8c..632aadb3e 100644 --- a/Plausible.ClickhouseEventV2.html +++ b/Plausible.ClickhouseEventV2.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.ClickhouseRepo.html b/Plausible.ClickhouseRepo.html index 8c96931b0..3a32eca3b 100644 --- a/Plausible.ClickhouseRepo.html +++ b/Plausible.ClickhouseRepo.html @@ -13,7 +13,7 @@ - + @@ -816,23 +816,23 @@ pool to disconnect within the given interval.

See -

Similar to insert_all/2 but with the following differences:

Example:

Repo.query!("create table ecto_ch_demo(a UInt64, b String) engine Null")
+

Similar to insert_all/2 but with the following differences:

  • accepts rows as streams or lists
  • sends rows as a chunked request
  • doesn't autogenerate ids or does any other preprocessing

Example:

Repo.query!("create table ecto_ch_demo(a UInt64, b String) engine Null")
 
-defmodule Demo do
+defmodule Demo do
   use Ecto.Schema
 
   @primary_key false
-  schema "ecto_ch_demo" do
+  schema "ecto_ch_demo" do
     field :a, Ch, type: "UInt64"
     field :b, :string
-  end
-end
+  end
+end
 
-rows = Stream.map(1..100_000, fn i -> %{a: i, b: to_string(i)} end)
-{100_000, nil} = Repo.insert_stream(Demo, rows)
+rows = Stream.map(1..100_000, fn i -> %{a: i, b: to_string(i)} end)
+{100_000, nil} = Repo.insert_stream(Demo, rows)
 
 # schemaless
-{100_000, nil} = Repo.insert_stream("ecto_ch_demo", rows, types: [a: Ch.Types.u64(), b: :string])
+
{100_000, nil} = Repo.insert_stream("ecto_ch_demo", rows, types: [a: Ch.Types.u64(), b: :string])
diff --git a/Plausible.ClickhouseSessionV2.BoolUInt8.html b/Plausible.ClickhouseSessionV2.BoolUInt8.html index 546c3cf33..3111fd5fa 100644 --- a/Plausible.ClickhouseSessionV2.BoolUInt8.html +++ b/Plausible.ClickhouseSessionV2.BoolUInt8.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.ClickhouseSessionV2.html b/Plausible.ClickhouseSessionV2.html index 0d483a4c5..bf90525c6 100644 --- a/Plausible.ClickhouseSessionV2.html +++ b/Plausible.ClickhouseSessionV2.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.ConfigHelpers.html b/Plausible.ConfigHelpers.html index 128430c46..cd12471f0 100644 --- a/Plausible.ConfigHelpers.html +++ b/Plausible.ConfigHelpers.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.DataCase.html b/Plausible.DataCase.html index e2e5e4b42..582844631 100644 --- a/Plausible.DataCase.html +++ b/Plausible.DataCase.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.DataMigration.NumericIDs.html b/Plausible.DataMigration.NumericIDs.html index e04b6082c..c15181d60 100644 --- a/Plausible.DataMigration.NumericIDs.html +++ b/Plausible.DataMigration.NumericIDs.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.DataMigration.Repo.html b/Plausible.DataMigration.Repo.html index 44bd0100b..c177a1d06 100644 --- a/Plausible.DataMigration.Repo.html +++ b/Plausible.DataMigration.Repo.html @@ -13,7 +13,7 @@ - + @@ -1123,23 +1123,23 @@ pool to disconnect within the given interval.

See -

Similar to insert_all/2 but with the following differences:

  • accepts rows as streams or lists
  • sends rows as a chunked request
  • doesn't autogenerate ids or does any other preprocessing

Example:

Repo.query!("create table ecto_ch_demo(a UInt64, b String) engine Null")
+

Similar to insert_all/2 but with the following differences:

  • accepts rows as streams or lists
  • sends rows as a chunked request
  • doesn't autogenerate ids or does any other preprocessing

Example:

Repo.query!("create table ecto_ch_demo(a UInt64, b String) engine Null")
 
-defmodule Demo do
+defmodule Demo do
   use Ecto.Schema
 
   @primary_key false
-  schema "ecto_ch_demo" do
+  schema "ecto_ch_demo" do
     field :a, Ch, type: "UInt64"
     field :b, :string
-  end
-end
+  end
+end
 
-rows = Stream.map(1..100_000, fn i -> %{a: i, b: to_string(i)} end)
-{100_000, nil} = Repo.insert_stream(Demo, rows)
+rows = Stream.map(1..100_000, fn i -> %{a: i, b: to_string(i)} end)
+{100_000, nil} = Repo.insert_stream(Demo, rows)
 
 # schemaless
-{100_000, nil} = Repo.insert_stream("ecto_ch_demo", rows, types: [a: Ch.Types.u64(), b: :string])
+
{100_000, nil} = Repo.insert_stream("ecto_ch_demo", rows, types: [a: Ch.Types.u64(), b: :string])
diff --git a/Plausible.DataMigration.html b/Plausible.DataMigration.html index c9f602ca4..fa9401849 100644 --- a/Plausible.DataMigration.html +++ b/Plausible.DataMigration.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.DebugReplayInfo.html b/Plausible.DebugReplayInfo.html index e0043a292..ab74eb6cd 100644 --- a/Plausible.DebugReplayInfo.html +++ b/Plausible.DebugReplayInfo.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Ecto.EventName.html b/Plausible.Ecto.EventName.html index e9e481ee3..4bcdb4a12 100644 --- a/Plausible.Ecto.EventName.html +++ b/Plausible.Ecto.EventName.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Event.WriteBuffer.html b/Plausible.Event.WriteBuffer.html index 5c145df57..79cfb17c9 100644 --- a/Plausible.Event.WriteBuffer.html +++ b/Plausible.Event.WriteBuffer.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Factory.html b/Plausible.Factory.html index 52b9981ce..2c3efa5da 100644 --- a/Plausible.Factory.html +++ b/Plausible.Factory.html @@ -13,7 +13,7 @@ - + @@ -206,14 +206,6 @@ Plausible - -
enterprise_plan_factory() @@ -526,7 +518,7 @@ Functions

api_key_factory()

- + View Source @@ -765,28 +757,6 @@ Functions
-
- -
- -
- - - Link to this function - -

custom_domain_factory()

- - - - View Source - - - -
- -
- -
@@ -936,7 +906,7 @@ Functions

imported_browsers_factory()

- + View Source @@ -958,7 +928,7 @@ Functions

imported_devices_factory()

- + View Source @@ -980,7 +950,7 @@ Functions

imported_entry_pages_factory()

- + View Source @@ -1002,7 +972,7 @@ Functions

imported_exit_pages_factory()

- + View Source @@ -1024,7 +994,7 @@ Functions

imported_locations_factory()

- + View Source @@ -1046,7 +1016,7 @@ Functions

imported_operating_systems_factory()

- + View Source @@ -1068,7 +1038,7 @@ Functions

imported_pages_factory()

- + View Source @@ -1090,7 +1060,7 @@ Functions

imported_sources_factory()

- + View Source @@ -1112,7 +1082,7 @@ Functions

imported_visitors_factory()

- + View Source @@ -1292,7 +1262,7 @@ Functions

invitation_factory()

- + View Source @@ -1314,7 +1284,7 @@ Functions

monthly_report_factory()

- + View Source @@ -1406,7 +1376,7 @@ Functions

shared_link_factory()

- + View Source @@ -1586,7 +1556,7 @@ Functions

weekly_report_factory()

- + View Source diff --git a/Plausible.Funnel.Const.html b/Plausible.Funnel.Const.html index a9beb8e30..10589cb3b 100644 --- a/Plausible.Funnel.Const.html +++ b/Plausible.Funnel.Const.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Funnel.Step.html b/Plausible.Funnel.Step.html index a1a757ba7..13b513190 100644 --- a/Plausible.Funnel.Step.html +++ b/Plausible.Funnel.Step.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Funnel.html b/Plausible.Funnel.html index 92927d555..0e8ecd7c0 100644 --- a/Plausible.Funnel.html +++ b/Plausible.Funnel.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Funnels.html b/Plausible.Funnels.html index f69027a1c..ff95e5a64 100644 --- a/Plausible.Funnels.html +++ b/Plausible.Funnels.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Geo.html b/Plausible.Geo.html index 2a794f61d..a0c666959 100644 --- a/Plausible.Geo.html +++ b/Plausible.Geo.html @@ -13,7 +13,7 @@ - + @@ -231,8 +231,8 @@ Functions Examples -

In the case of a DB-IP database:

iex> database_type()
-"DBIP-City-Lite"

In the case of a MaxMind database:

iex> database_type()
+

In the case of a DB-IP database:

iex> database_type()
+"DBIP-City-Lite"

In the case of a MaxMind database:

iex> database_type()
 "GeoLite2-City"
@@ -272,8 +272,8 @@ asynchronously.

-

Loading from a local file:

iex> load_db(path: "/etc/plausible/dbip-city.mmdb")
-:ok

Downloading a MaxMind DB (this license key is no longer active):

iex> load_db(license_key: "LNpsJCCKPis6XvBP", edition: "GeoLite2-City", async: true)
+

Loading from a local file:

iex> load_db(path: "/etc/plausible/dbip-city.mmdb")
+:ok

Downloading a MaxMind DB (this license key is no longer active):

iex> load_db(license_key: "LNpsJCCKPis6XvBP", edition: "GeoLite2-City", async: true)
 :ok
@@ -302,21 +302,21 @@ asynchronously.

-
iex> lookup("8.7.6.5")
-%{
-  "city" => %{
+
iex> lookup("8.7.6.5")
+%{
+  "city" => %{
     "geoname_id" => 5349755,
-    "names" => %{
+    "names" => %{
       "de" => "Fontana",
       "en" => "Fontana",
       "ja" => "フォンタナ",
       "ru" => "Фонтана"
-    }
-  },
-  "continent" => %{
+    }
+  },
+  "continent" => %{
     "code" => "NA",
     "geoname_id" => 6255149,
-    "names" => %{
+    "names" => %{
       "de" => "Nordamerika",
       "en" => "North America",
       "es" => "Norteamérica",
@@ -325,12 +325,12 @@ asynchronously.

"pt-BR" => "América do Norte", "ru" => "Северная Америка", "zh-CN" => "北美洲" - } - }, - "country" => %{ + } + }, + "country" => %{ "geoname_id" => 6252001, "iso_code" => "US", - "names" => %{ + "names" => %{ "de" => "Vereinigte Staaten", "en" => "United States", "es" => "Estados Unidos", @@ -339,20 +339,20 @@ asynchronously.

"pt-BR" => "EUA", "ru" => "США", "zh-CN" => "美国" - } - }, - "location" => %{ + } + }, + "location" => %{ "accuracy_radius" => 50, "latitude" => 34.1211, "longitude" => -117.4362, "metro_code" => 803, "time_zone" => "America/Los_Angeles" - }, - "postal" => %{"code" => "92336"}, - "registered_country" => %{ + }, + "postal" => %{"code" => "92336"}, + "registered_country" => %{ "geoname_id" => 6252001, "iso_code" => "US", - "names" => %{ + "names" => %{ "de" => "Vereinigte Staaten", "en" => "United States", "es" => "Estados Unidos", @@ -361,13 +361,13 @@ asynchronously.

"pt-BR" => "EUA", "ru" => "США", "zh-CN" => "美国" - } - }, - "subdivisions" => [ - %{ + } + }, + "subdivisions" => [ + %{ "geoname_id" => 5332921, "iso_code" => "CA", - "names" => %{ + "names" => %{ "de" => "Kalifornien", "en" => "California", "es" => "California", @@ -376,10 +376,10 @@ asynchronously.

"pt-BR" => "Califórnia", "ru" => "Калифорния", "zh-CN" => "加州" - } - } - ] -}

+
} + } + ] +}
diff --git a/Plausible.Goal.Revenue.html b/Plausible.Goal.Revenue.html index b15c7f25f..2fa294615 100644 --- a/Plausible.Goal.Revenue.html +++ b/Plausible.Goal.Revenue.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Goal.html b/Plausible.Goal.html index efbc3c9d0..d8ec2e1ff 100644 --- a/Plausible.Goal.html +++ b/Plausible.Goal.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Goals.html b/Plausible.Goals.html index 718c1c895..ac1a30348 100644 --- a/Plausible.Goals.html +++ b/Plausible.Goals.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Google.Api.Mock.html b/Plausible.Google.Api.Mock.html index f9e44ccbd..d2f1ffaf8 100644 --- a/Plausible.Google.Api.Mock.html +++ b/Plausible.Google.Api.Mock.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Google.Api.html b/Plausible.Google.Api.html index 63945f34e..540c61325 100644 --- a/Plausible.Google.Api.html +++ b/Plausible.Google.Api.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Google.Buffer.html b/Plausible.Google.Buffer.html index 96a4039ca..8957a1443 100644 --- a/Plausible.Google.Buffer.html +++ b/Plausible.Google.Buffer.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Google.HTTP.html b/Plausible.Google.HTTP.html index ed0bdd259..0d16a2f16 100644 --- a/Plausible.Google.HTTP.html +++ b/Plausible.Google.HTTP.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Google.ReportRequest.html b/Plausible.Google.ReportRequest.html index d932b087d..be642c252 100644 --- a/Plausible.Google.ReportRequest.html +++ b/Plausible.Google.ReportRequest.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.HTTPClient.Interface.html b/Plausible.HTTPClient.Interface.html index 346effd05..122028cca 100644 --- a/Plausible.HTTPClient.Interface.html +++ b/Plausible.HTTPClient.Interface.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.HTTPClient.Non200Error.html b/Plausible.HTTPClient.Non200Error.html index 714c53ef6..16e45733c 100644 --- a/Plausible.HTTPClient.Non200Error.html +++ b/Plausible.HTTPClient.Non200Error.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.HTTPClient.html b/Plausible.HTTPClient.html index 4ce68ef36..b830a8f10 100644 --- a/Plausible.HTTPClient.html +++ b/Plausible.HTTPClient.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Helpers.JSON.html b/Plausible.Helpers.JSON.html index 82dbcb0b0..4a0bd41c2 100644 --- a/Plausible.Helpers.JSON.html +++ b/Plausible.Helpers.JSON.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.ImportDeletionRepo.html b/Plausible.ImportDeletionRepo.html index 456c0a810..df364996b 100644 --- a/Plausible.ImportDeletionRepo.html +++ b/Plausible.ImportDeletionRepo.html @@ -13,7 +13,7 @@ - + @@ -1114,23 +1114,23 @@ pool to disconnect within the given interval.

See -

Similar to insert_all/2 but with the following differences:

  • accepts rows as streams or lists
  • sends rows as a chunked request
  • doesn't autogenerate ids or does any other preprocessing

Example:

Repo.query!("create table ecto_ch_demo(a UInt64, b String) engine Null")
+

Similar to insert_all/2 but with the following differences:

  • accepts rows as streams or lists
  • sends rows as a chunked request
  • doesn't autogenerate ids or does any other preprocessing

Example:

Repo.query!("create table ecto_ch_demo(a UInt64, b String) engine Null")
 
-defmodule Demo do
+defmodule Demo do
   use Ecto.Schema
 
   @primary_key false
-  schema "ecto_ch_demo" do
+  schema "ecto_ch_demo" do
     field :a, Ch, type: "UInt64"
     field :b, :string
-  end
-end
+  end
+end
 
-rows = Stream.map(1..100_000, fn i -> %{a: i, b: to_string(i)} end)
-{100_000, nil} = Repo.insert_stream(Demo, rows)
+rows = Stream.map(1..100_000, fn i -> %{a: i, b: to_string(i)} end)
+{100_000, nil} = Repo.insert_stream(Demo, rows)
 
 # schemaless
-{100_000, nil} = Repo.insert_stream("ecto_ch_demo", rows, types: [a: Ch.Types.u64(), b: :string])
+
{100_000, nil} = Repo.insert_stream("ecto_ch_demo", rows, types: [a: Ch.Types.u64(), b: :string])
diff --git a/Plausible.Imported.html b/Plausible.Imported.html index b26c13c35..24747aa90 100644 --- a/Plausible.Imported.html +++ b/Plausible.Imported.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.IngestRepo.html b/Plausible.IngestRepo.html index bf855a5bd..7ba88f448 100644 --- a/Plausible.IngestRepo.html +++ b/Plausible.IngestRepo.html @@ -13,7 +13,7 @@ - + @@ -1114,23 +1114,23 @@ pool to disconnect within the given interval.

See -

Similar to insert_all/2 but with the following differences:

  • accepts rows as streams or lists
  • sends rows as a chunked request
  • doesn't autogenerate ids or does any other preprocessing

Example:

Repo.query!("create table ecto_ch_demo(a UInt64, b String) engine Null")
+

Similar to insert_all/2 but with the following differences:

  • accepts rows as streams or lists
  • sends rows as a chunked request
  • doesn't autogenerate ids or does any other preprocessing

Example:

Repo.query!("create table ecto_ch_demo(a UInt64, b String) engine Null")
 
-defmodule Demo do
+defmodule Demo do
   use Ecto.Schema
 
   @primary_key false
-  schema "ecto_ch_demo" do
+  schema "ecto_ch_demo" do
     field :a, Ch, type: "UInt64"
     field :b, :string
-  end
-end
+  end
+end
 
-rows = Stream.map(1..100_000, fn i -> %{a: i, b: to_string(i)} end)
-{100_000, nil} = Repo.insert_stream(Demo, rows)
+rows = Stream.map(1..100_000, fn i -> %{a: i, b: to_string(i)} end)
+{100_000, nil} = Repo.insert_stream(Demo, rows)
 
 # schemaless
-{100_000, nil} = Repo.insert_stream("ecto_ch_demo", rows, types: [a: Ch.Types.u64(), b: :string])
+
{100_000, nil} = Repo.insert_stream("ecto_ch_demo", rows, types: [a: Ch.Types.u64(), b: :string])
diff --git a/Plausible.Ingestion.Counters.Buffer.html b/Plausible.Ingestion.Counters.Buffer.html index 4d5ea522b..9da0641e2 100644 --- a/Plausible.Ingestion.Counters.Buffer.html +++ b/Plausible.Ingestion.Counters.Buffer.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Ingestion.Counters.Record.html b/Plausible.Ingestion.Counters.Record.html index 89501ed10..c9c410b48 100644 --- a/Plausible.Ingestion.Counters.Record.html +++ b/Plausible.Ingestion.Counters.Record.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Ingestion.Counters.TelemetryHandler.html b/Plausible.Ingestion.Counters.TelemetryHandler.html index 182f7a6c7..bc77be607 100644 --- a/Plausible.Ingestion.Counters.TelemetryHandler.html +++ b/Plausible.Ingestion.Counters.TelemetryHandler.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Ingestion.Counters.html b/Plausible.Ingestion.Counters.html index 91983062c..8e7af8b34 100644 --- a/Plausible.Ingestion.Counters.html +++ b/Plausible.Ingestion.Counters.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Ingestion.Event.Revenue.html b/Plausible.Ingestion.Event.Revenue.html index 118ab6664..f60db7a0c 100644 --- a/Plausible.Ingestion.Event.Revenue.html +++ b/Plausible.Ingestion.Event.Revenue.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Ingestion.Event.html b/Plausible.Ingestion.Event.html index 112ebe5e6..903897e0a 100644 --- a/Plausible.Ingestion.Event.html +++ b/Plausible.Ingestion.Event.html @@ -13,7 +13,7 @@ - + @@ -322,7 +322,6 @@ Types __meta__: term(), allowed_event_props: term(), conversions_enabled: term(), - custom_domain: term(), domain: term(), domain_changed_at: term(), domain_changed_from: term(), diff --git a/Plausible.Ingestion.Request.Revenue.html b/Plausible.Ingestion.Request.Revenue.html index b22174b20..1af6416a6 100644 --- a/Plausible.Ingestion.Request.Revenue.html +++ b/Plausible.Ingestion.Request.Revenue.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Ingestion.Request.html b/Plausible.Ingestion.Request.html index 8405cc1ba..73728b0e6 100644 --- a/Plausible.Ingestion.Request.html +++ b/Plausible.Ingestion.Request.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Mailer.html b/Plausible.Mailer.html index b584ce21c..236e9eead 100644 --- a/Plausible.Mailer.html +++ b/Plausible.Mailer.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.OpenTelemetry.Sampler.html b/Plausible.OpenTelemetry.Sampler.html index a38817d11..20fdb728e 100644 --- a/Plausible.OpenTelemetry.Sampler.html +++ b/Plausible.OpenTelemetry.Sampler.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.PaddleApi.Mock.html b/Plausible.PaddleApi.Mock.html index f97f9ec6d..cd5ec99eb 100644 --- a/Plausible.PaddleApi.Mock.html +++ b/Plausible.PaddleApi.Mock.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Pagination.html b/Plausible.Pagination.html index 0a36aa8d4..fde9f1999 100644 --- a/Plausible.Pagination.html +++ b/Plausible.Pagination.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Plugins.API.Goals.html b/Plausible.Plugins.API.Goals.html index 57289a261..66224d520 100644 --- a/Plausible.Plugins.API.Goals.html +++ b/Plausible.Plugins.API.Goals.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Plugins.API.SharedLinks.html b/Plausible.Plugins.API.SharedLinks.html index 233d53af7..9b2b38239 100644 --- a/Plausible.Plugins.API.SharedLinks.html +++ b/Plausible.Plugins.API.SharedLinks.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Plugins.API.Token.html b/Plausible.Plugins.API.Token.html index 79b193664..36a8f2b77 100644 --- a/Plausible.Plugins.API.Token.html +++ b/Plausible.Plugins.API.Token.html @@ -13,7 +13,7 @@ - + @@ -214,7 +214,7 @@ Types

t()

- + View Source @@ -267,7 +267,7 @@ Functions

generate(random_bytes \\ random_bytes())

- + View Source @@ -295,7 +295,7 @@ Functions

hash(raw)

- + View Source @@ -325,7 +325,7 @@ Functions

insert_changeset(site, map, attrs \\ %{})

- + View Source @@ -353,7 +353,7 @@ Functions

last_used_humanize(token)

- + View Source @@ -381,7 +381,7 @@ Functions

prefix()

- + View Source diff --git a/Plausible.Plugins.API.Tokens.html b/Plausible.Plugins.API.Tokens.html index 0137e82ea..5aed02549 100644 --- a/Plausible.Plugins.API.Tokens.html +++ b/Plausible.Plugins.API.Tokens.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.PromEx.Plugins.PlausibleMetrics.html b/Plausible.PromEx.Plugins.PlausibleMetrics.html index 8f7c12de0..3de9824c4 100644 --- a/Plausible.PromEx.Plugins.PlausibleMetrics.html +++ b/Plausible.PromEx.Plugins.PlausibleMetrics.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.PromEx.html b/Plausible.PromEx.html index a9ae0d47d..b33765e4e 100644 --- a/Plausible.PromEx.html +++ b/Plausible.PromEx.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Props.html b/Plausible.Props.html index 5dd28b2ed..73f781dd6 100644 --- a/Plausible.Props.html +++ b/Plausible.Props.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Purge.html b/Plausible.Purge.html index 5aa96d690..26d7ad68c 100644 --- a/Plausible.Purge.html +++ b/Plausible.Purge.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Release.html b/Plausible.Release.html index af3e04012..185dfa9fe 100644 --- a/Plausible.Release.html +++ b/Plausible.Release.html @@ -13,7 +13,7 @@ - + @@ -190,14 +190,6 @@ Plausible -
-
- selfhost?() - -
- -
-
should_be_first_launch?() @@ -393,34 +385,6 @@ Functions
-
-
-
- - - -
- -
- -
@spec selfhost?() :: boolean()
- -
- -
@@ -432,7 +396,7 @@ Functions

should_be_first_launch?()

- + View Source diff --git a/Plausible.Repo.html b/Plausible.Repo.html index fb8cbba0b..af0786e63 100644 --- a/Plausible.Repo.html +++ b/Plausible.Repo.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Sentry.Client.html b/Plausible.Sentry.Client.html index 382d250b9..ab009006e 100644 --- a/Plausible.Sentry.Client.html +++ b/Plausible.Sentry.Client.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.SentryFilter.html b/Plausible.SentryFilter.html index 7a0ae23db..4feac6bba 100644 --- a/Plausible.SentryFilter.html +++ b/Plausible.SentryFilter.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Session.CacheStore.html b/Plausible.Session.CacheStore.html index 2bcb5522c..22c161e34 100644 --- a/Plausible.Session.CacheStore.html +++ b/Plausible.Session.CacheStore.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Session.Salts.html b/Plausible.Session.Salts.html index d70c9686a..2d3bfbbdf 100644 --- a/Plausible.Session.Salts.html +++ b/Plausible.Session.Salts.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Session.WriteBuffer.html b/Plausible.Session.WriteBuffer.html index 475f98670..1ee527e8f 100644 --- a/Plausible.Session.WriteBuffer.html +++ b/Plausible.Session.WriteBuffer.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.Cache.Warmer.All.html b/Plausible.Site.Cache.Warmer.All.html index ff8578bf9..15695723a 100644 --- a/Plausible.Site.Cache.Warmer.All.html +++ b/Plausible.Site.Cache.Warmer.All.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.Cache.Warmer.RecentlyUpdated.html b/Plausible.Site.Cache.Warmer.RecentlyUpdated.html index 597f86eaf..f82320222 100644 --- a/Plausible.Site.Cache.Warmer.RecentlyUpdated.html +++ b/Plausible.Site.Cache.Warmer.RecentlyUpdated.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.Cache.Warmer.html b/Plausible.Site.Cache.Warmer.html index 2932a708e..688176228 100644 --- a/Plausible.Site.Cache.Warmer.html +++ b/Plausible.Site.Cache.Warmer.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.Cache.html b/Plausible.Site.Cache.html index e8c05b9c6..03eccae23 100644 --- a/Plausible.Site.Cache.html +++ b/Plausible.Site.Cache.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.Domain.html b/Plausible.Site.Domain.html index a692aa448..9949e1100 100644 --- a/Plausible.Site.Domain.html +++ b/Plausible.Site.Domain.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.GateKeeper.html b/Plausible.Site.GateKeeper.html index 6740b9799..29725aa57 100644 --- a/Plausible.Site.GateKeeper.html +++ b/Plausible.Site.GateKeeper.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.GoogleAuth.html b/Plausible.Site.GoogleAuth.html index 490f64fd1..ca417a329 100644 --- a/Plausible.Site.GoogleAuth.html +++ b/Plausible.Site.GoogleAuth.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.ImportedData.html b/Plausible.Site.ImportedData.html index 9bb40e1a8..a1fcf8975 100644 --- a/Plausible.Site.ImportedData.html +++ b/Plausible.Site.ImportedData.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.Membership.html b/Plausible.Site.Membership.html index 2a578e7d4..aa33cd514 100644 --- a/Plausible.Site.Membership.html +++ b/Plausible.Site.Membership.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.Memberships.AcceptInvitation.html b/Plausible.Site.Memberships.AcceptInvitation.html index f88b27f32..e35e563ea 100644 --- a/Plausible.Site.Memberships.AcceptInvitation.html +++ b/Plausible.Site.Memberships.AcceptInvitation.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.Memberships.CreateInvitation.html b/Plausible.Site.Memberships.CreateInvitation.html index 0da50bc53..fac231bf1 100644 --- a/Plausible.Site.Memberships.CreateInvitation.html +++ b/Plausible.Site.Memberships.CreateInvitation.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.Memberships.RejectInvitation.html b/Plausible.Site.Memberships.RejectInvitation.html index 6a91bdbb6..ef0a41f9e 100644 --- a/Plausible.Site.Memberships.RejectInvitation.html +++ b/Plausible.Site.Memberships.RejectInvitation.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.Memberships.RemoveInvitation.html b/Plausible.Site.Memberships.RemoveInvitation.html index 23debbe1a..04071f018 100644 --- a/Plausible.Site.Memberships.RemoveInvitation.html +++ b/Plausible.Site.Memberships.RemoveInvitation.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.Memberships.html b/Plausible.Site.Memberships.html index 0f10eb317..3e9b82d96 100644 --- a/Plausible.Site.Memberships.html +++ b/Plausible.Site.Memberships.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.MonthlyReport.html b/Plausible.Site.MonthlyReport.html index 07eead553..053130b42 100644 --- a/Plausible.Site.MonthlyReport.html +++ b/Plausible.Site.MonthlyReport.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.Removal.html b/Plausible.Site.Removal.html index 3365b35c9..18be2ee40 100644 --- a/Plausible.Site.Removal.html +++ b/Plausible.Site.Removal.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.SharedLink.html b/Plausible.Site.SharedLink.html index 7fafeb57a..f4b220863 100644 --- a/Plausible.Site.SharedLink.html +++ b/Plausible.Site.SharedLink.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.SpikeNotification.html b/Plausible.Site.SpikeNotification.html index 3a4c5a2d9..abd560a98 100644 --- a/Plausible.Site.SpikeNotification.html +++ b/Plausible.Site.SpikeNotification.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.UserPreference.html b/Plausible.Site.UserPreference.html index c2e9d69f8..ad741ed65 100644 --- a/Plausible.Site.UserPreference.html +++ b/Plausible.Site.UserPreference.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.WeeklyReport.html b/Plausible.Site.WeeklyReport.html index 571ff33d0..0d623fc4c 100644 --- a/Plausible.Site.WeeklyReport.html +++ b/Plausible.Site.WeeklyReport.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.html b/Plausible.Site.html index de3c2eb34..e3e917d96 100644 --- a/Plausible.Site.html +++ b/Plausible.Site.html @@ -13,7 +13,7 @@ - + @@ -298,7 +298,6 @@ Types __meta__: term(), allowed_event_props: term(), conversions_enabled: term(), - custom_domain: term(), domain: term(), domain_changed_at: term(), domain_changed_from: term(), @@ -359,7 +358,7 @@ Functions

changeset(site, attrs \\ %{})

- + View Source @@ -381,7 +380,7 @@ Functions

crm_changeset(site, attrs)

- + View Source @@ -403,7 +402,7 @@ Functions

import_failure(site)

- + View Source @@ -425,7 +424,7 @@ Functions

import_success(site)

- + View Source @@ -447,7 +446,7 @@ Functions

local_start_date(site)

- + View Source @@ -486,7 +485,7 @@ This function does 2 transformations:

make_private(site)

- + View Source @@ -508,7 +507,7 @@ This function does 2 transformations:

make_public(site)

- + View Source @@ -530,7 +529,7 @@ This function does 2 transformations:

remove_imported_data(site)

- + View Source @@ -552,7 +551,7 @@ This function does 2 transformations:

set_imported_source(site, imported_source)

- + View Source @@ -574,7 +573,7 @@ This function does 2 transformations:

set_native_stats_start_at(site, val)

- + View Source @@ -596,7 +595,7 @@ This function does 2 transformations:

set_stats_start_date(site, val)

- + View Source @@ -620,7 +619,7 @@ This function does 2 transformations:

start_import(site, start_date, end_date, imported_source, status \\ "importing")

- + View Source @@ -644,7 +643,7 @@ This function does 2 transformations:

tz_offset(site, utc_now \\ DateTime.utc_now())

- + View Source @@ -670,7 +669,7 @@ This function does 2 transformations:

update_changeset(site, attrs \\ %{}, opts \\ [])

- + View Source diff --git a/Plausible.SiteAdmin.html b/Plausible.SiteAdmin.html index ee448b42d..a3f02bb28 100644 --- a/Plausible.SiteAdmin.html +++ b/Plausible.SiteAdmin.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Sites.html b/Plausible.Sites.html index 22b0b6140..049dc1938 100644 --- a/Plausible.Sites.html +++ b/Plausible.Sites.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Stats.Aggregate.html b/Plausible.Stats.Aggregate.html index f92a3e88f..f0ab486b9 100644 --- a/Plausible.Stats.Aggregate.html +++ b/Plausible.Stats.Aggregate.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Stats.Base.html b/Plausible.Stats.Base.html index 942237ce8..5bc2f1fb0 100644 --- a/Plausible.Stats.Base.html +++ b/Plausible.Stats.Base.html @@ -13,7 +13,7 @@ - + @@ -236,7 +236,7 @@ Functions

apply_entry_prop_filter(sessions_q, prop_name, arg3)

- + View Source @@ -258,7 +258,7 @@ Functions

base_event_query(site, query)

- + View Source @@ -280,7 +280,7 @@ Functions

dynamic_filter_condition(query, filter_key, db_field)

- + View Source @@ -302,7 +302,7 @@ Functions

filter_by_entry_props(sessions_q, query)

- + View Source @@ -324,7 +324,7 @@ Functions

filter_converted_sessions(db_query, site, query)

- + View Source @@ -346,7 +346,7 @@ Functions

page_regex(expr)

- + View Source @@ -368,7 +368,7 @@ Functions

query_events(site, query)

- + View Source @@ -390,7 +390,7 @@ Functions

query_sessions(site, query)

- + View Source @@ -412,7 +412,7 @@ Functions

select_event_metrics(q, list)

- + View Source @@ -434,7 +434,7 @@ Functions

select_session_metrics(q, list, query)

- + View Source @@ -456,7 +456,7 @@ Functions

utc_boundaries(query, site)

- + View Source diff --git a/Plausible.Stats.Breakdown.html b/Plausible.Stats.Breakdown.html index ff6008c2d..8bea8b38c 100644 --- a/Plausible.Stats.Breakdown.html +++ b/Plausible.Stats.Breakdown.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Stats.Clickhouse.html b/Plausible.Stats.Clickhouse.html index 18c2b351e..8d08a8448 100644 --- a/Plausible.Stats.Clickhouse.html +++ b/Plausible.Stats.Clickhouse.html @@ -13,7 +13,7 @@ - + @@ -220,7 +220,7 @@ Functions

current_visitors(site, query)

- + View Source @@ -244,7 +244,7 @@ Functions

empty_24h_visitors_hourly_intervals(sites, now \\ NaiveDateTime.utc_now())

- + View Source @@ -273,7 +273,7 @@ Functions

has_pageviews?(site)

- + View Source @@ -295,7 +295,7 @@ Functions

imported_pageview_count(site)

- + View Source @@ -319,7 +319,7 @@ Functions

last_24h_visitors_hourly_intervals(sites, now \\ NaiveDateTime.utc_now())

- + View Source @@ -348,7 +348,7 @@ Functions

pageview_start_date_local(site)

- + View Source @@ -378,7 +378,7 @@ Functions

top_sources(site, query, limit, page, show_noref \\ false, include_details)

- + View Source @@ -400,7 +400,7 @@ Functions

usage_breakdown(domains_or_site_ids)

- + View Source @@ -422,7 +422,7 @@ Functions

usage_breakdown(domains, date_range)

- + View Source diff --git a/Plausible.Stats.Compare.html b/Plausible.Stats.Compare.html index 9892fde46..666c91e4b 100644 --- a/Plausible.Stats.Compare.html +++ b/Plausible.Stats.Compare.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Stats.Comparisons.html b/Plausible.Stats.Comparisons.html index 4d08dfff4..86b1786ff 100644 --- a/Plausible.Stats.Comparisons.html +++ b/Plausible.Stats.Comparisons.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Stats.CurrentVisitors.html b/Plausible.Stats.CurrentVisitors.html index e3280f8ed..eb13ccfa4 100644 --- a/Plausible.Stats.CurrentVisitors.html +++ b/Plausible.Stats.CurrentVisitors.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Stats.CustomProps.html b/Plausible.Stats.CustomProps.html index 7576373e3..635e9556a 100644 --- a/Plausible.Stats.CustomProps.html +++ b/Plausible.Stats.CustomProps.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Stats.FilterParser.html b/Plausible.Stats.FilterParser.html index 3439c0098..d00822245 100644 --- a/Plausible.Stats.FilterParser.html +++ b/Plausible.Stats.FilterParser.html @@ -13,7 +13,7 @@ - + @@ -178,14 +178,14 @@ Functions Examples: -
iex> FilterParser.parse_filters("{\"page\":\"/blog/**\"}")
-%{"page" => "/blog/**"}
+
iex> FilterParser.parse_filters("{\"page\":\"/blog/**\"}")
+%{"page" => "/blog/**"}
 
-iex> FilterParser.parse_filters("visit:browser!=Chrome")
-%{"visit:browser" => {:is_not, "Chrome"}}
+iex> FilterParser.parse_filters("visit:browser!=Chrome")
+%{"visit:browser" => {:is_not, "Chrome"}}
 
-iex> FilterParser.parse_filters(nil)
-%{}
+
iex> FilterParser.parse_filters(nil) +%{}
diff --git a/Plausible.Stats.FilterSuggestions.html b/Plausible.Stats.FilterSuggestions.html index 440ee4bb4..1eac2bd83 100644 --- a/Plausible.Stats.FilterSuggestions.html +++ b/Plausible.Stats.FilterSuggestions.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Stats.Filters.html b/Plausible.Stats.Filters.html index 961b18d37..9f9ef8702 100644 --- a/Plausible.Stats.Filters.html +++ b/Plausible.Stats.Filters.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Stats.Fragments.html b/Plausible.Stats.Fragments.html index e7813c269..90e032502 100644 --- a/Plausible.Stats.Fragments.html +++ b/Plausible.Stats.Fragments.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Stats.Funnel.html b/Plausible.Stats.Funnel.html index 68e1bf345..31b0eb52d 100644 --- a/Plausible.Stats.Funnel.html +++ b/Plausible.Stats.Funnel.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Stats.Goal.Revenue.html b/Plausible.Stats.Goal.Revenue.html index dda4e37ad..3c7c895fb 100644 --- a/Plausible.Stats.Goal.Revenue.html +++ b/Plausible.Stats.Goal.Revenue.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Stats.Imported.html b/Plausible.Stats.Imported.html index 2fa71c5aa..649f23d44 100644 --- a/Plausible.Stats.Imported.html +++ b/Plausible.Stats.Imported.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Stats.Interval.html b/Plausible.Stats.Interval.html index 48e17b7f2..8fee1bcb9 100644 --- a/Plausible.Stats.Interval.html +++ b/Plausible.Stats.Interval.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Stats.Props.html b/Plausible.Stats.Props.html index 583ed8298..9b23a38ed 100644 --- a/Plausible.Stats.Props.html +++ b/Plausible.Stats.Props.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Stats.Query.html b/Plausible.Stats.Query.html index 0883a140c..b0fa1b675 100644 --- a/Plausible.Stats.Query.html +++ b/Plausible.Stats.Query.html @@ -13,7 +13,7 @@ - + @@ -218,7 +218,7 @@ Types

t()

- + View Source @@ -266,7 +266,7 @@ Functions

from(site, params)

- + View Source @@ -288,7 +288,7 @@ Functions

get_filter_by_prefix(query, prefix)

- + View Source @@ -310,7 +310,7 @@ Functions

has_event_filters?(query)

- + View Source @@ -332,7 +332,7 @@ Functions

include_imported?(query, site, requested?)

- + View Source @@ -360,7 +360,7 @@ Functions

put_filter(query, key, val)

- + View Source @@ -382,7 +382,7 @@ Functions

remove_event_filters(query, opts)

- + View Source @@ -404,7 +404,7 @@ Functions

trace(query)

- + View Source diff --git a/Plausible.Stats.Sampling.html b/Plausible.Stats.Sampling.html new file mode 100644 index 000000000..8787f2a6c --- /dev/null +++ b/Plausible.Stats.Sampling.html @@ -0,0 +1,292 @@ + + + + + + + + + + Plausible.Stats.Sampling — Plausible v0.0.1 + + + + + + + + + + + + + + + + +
+ + + + + +
+ +
+
+ +

+ + + + + + View Source + + + Plausible.Stats.Sampling + (Plausible v0.0.1) + +

+ + +
+

Sampling related functions

+
+ + +
+

+ + + Summary + +

+
+

+ Functions +

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

+ + +Functions + +

+
+
+ +
+ + + Link to this function + +

add_query_hint(query)

+ + + + View Source + + + +
+ +
+ +
+ +
@spec add_query_hint(Ecto.Query.t()) :: Ecto.Query.t()
+ +
+ + +
+
+
+ +
+ + + Link to this function + +

add_query_hint(db_query, query)

+ + + + View Source + + + +
+ +
+ +
+ +
@spec add_query_hint(Ecto.Query.t(), Plausible.Stats.Query.t()) :: Ecto.Query.t()
+ +
@spec add_query_hint(Ecto.Query.t(), pos_integer()) :: Ecto.Query.t()
+ +
+ + +
+
+
+ +
+ + + Link to this function + +

put_threshold(query, params)

+ + + + View Source + + + +
+ +
+ +
+ +
@spec put_threshold(Plausible.Stats.Query.t(), map()) :: Plausible.Stats.Query.t()
+ +
+ + +
+
+ +
+
+ + +
+
+
+
+ + + + + + diff --git a/Plausible.Stats.Timeseries.html b/Plausible.Stats.Timeseries.html index 7b5c4d4f7..f6416a844 100644 --- a/Plausible.Stats.Timeseries.html +++ b/Plausible.Stats.Timeseries.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Stats.Util.html b/Plausible.Stats.Util.html index a69fe05a1..ba834f590 100644 --- a/Plausible.Stats.Util.html +++ b/Plausible.Stats.Util.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Stats.html b/Plausible.Stats.html index d77820b46..fe2fda51a 100644 --- a/Plausible.Stats.html +++ b/Plausible.Stats.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Test.Support.HTML.html b/Plausible.Test.Support.HTML.html index 6615371b4..f3c7aee03 100644 --- a/Plausible.Test.Support.HTML.html +++ b/Plausible.Test.Support.HTML.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Test.Support.HTTPMocker.html b/Plausible.Test.Support.HTTPMocker.html index 3f4b50d26..c027ee3f9 100644 --- a/Plausible.Test.Support.HTTPMocker.html +++ b/Plausible.Test.Support.HTTPMocker.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.TestUtils.html b/Plausible.TestUtils.html index 8882c34be..f1bd3b018 100644 --- a/Plausible.TestUtils.html +++ b/Plausible.TestUtils.html @@ -13,7 +13,7 @@ - + @@ -316,7 +316,7 @@ Functions

add_imported_data(map)

- + View Source @@ -338,7 +338,7 @@ Functions

await_clickhouse_count(query, expected)

- + View Source @@ -360,7 +360,7 @@ Functions

create_api_key(map)

- + View Source @@ -382,7 +382,7 @@ Functions

create_events(events)

- + View Source @@ -404,7 +404,7 @@ Functions

create_new_site(map)

- + View Source @@ -426,7 +426,7 @@ Functions

create_pageviews(pageviews)

- + View Source @@ -448,7 +448,7 @@ Functions

create_sessions(sessions)

- + View Source @@ -470,7 +470,7 @@ Functions

create_site(map)

- + View Source @@ -518,7 +518,7 @@ Functions

eventually(expectation, wait_time_ms \\ 50, retries \\ 10)

- + View Source @@ -540,7 +540,7 @@ Functions

generate_usage_for(site, i)

- + View Source @@ -562,7 +562,7 @@ Functions

init_session(conn)

- + View Source @@ -584,7 +584,7 @@ Functions

log_in(map)

- + View Source @@ -630,7 +630,7 @@ Functions

populate_stats(events)

- + View Source @@ -652,7 +652,7 @@ Functions

populate_stats(site, events)

- + View Source @@ -674,7 +674,7 @@ Functions

random_ip()

- + View Source @@ -696,7 +696,7 @@ Functions

relative_time(shifts)

- + View Source @@ -742,7 +742,7 @@ Functions

to_naive_truncate(dt)

- + View Source @@ -764,7 +764,7 @@ Functions

use_api_key(map)

- + View Source diff --git a/Plausible.Themes.html b/Plausible.Themes.html index e05b62f3a..9b2cb05ea 100644 --- a/Plausible.Themes.html +++ b/Plausible.Themes.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Timezones.html b/Plausible.Timezones.html index 2de93e7e2..e98551cac 100644 --- a/Plausible.Timezones.html +++ b/Plausible.Timezones.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Users.html b/Plausible.Users.html index 3a508f4c8..aa6dc8e9f 100644 --- a/Plausible.Users.html +++ b/Plausible.Users.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Workers.CheckUsage.html b/Plausible.Workers.CheckUsage.html index 47848c52c..24cdd43f5 100644 --- a/Plausible.Workers.CheckUsage.html +++ b/Plausible.Workers.CheckUsage.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Workers.CleanInvitations.html b/Plausible.Workers.CleanInvitations.html index b28d466a2..df128e976 100644 --- a/Plausible.Workers.CleanInvitations.html +++ b/Plausible.Workers.CleanInvitations.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Workers.ExpireDomainChangeTransitions.html b/Plausible.Workers.ExpireDomainChangeTransitions.html index 3a923349b..77ae8f1c2 100644 --- a/Plausible.Workers.ExpireDomainChangeTransitions.html +++ b/Plausible.Workers.ExpireDomainChangeTransitions.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Workers.ImportGoogleAnalytics.html b/Plausible.Workers.ImportGoogleAnalytics.html index f7fa23587..83aad1f1d 100644 --- a/Plausible.Workers.ImportGoogleAnalytics.html +++ b/Plausible.Workers.ImportGoogleAnalytics.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Workers.LockSites.html b/Plausible.Workers.LockSites.html index 812f2c5b6..cb4da8106 100644 --- a/Plausible.Workers.LockSites.html +++ b/Plausible.Workers.LockSites.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Workers.NotifyAnnualRenewal.html b/Plausible.Workers.NotifyAnnualRenewal.html index c1374ee9a..e163b3432 100644 --- a/Plausible.Workers.NotifyAnnualRenewal.html +++ b/Plausible.Workers.NotifyAnnualRenewal.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Workers.RotateSalts.html b/Plausible.Workers.RotateSalts.html index e73e8308d..fc999cffc 100644 --- a/Plausible.Workers.RotateSalts.html +++ b/Plausible.Workers.RotateSalts.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Workers.ScheduleEmailReports.html b/Plausible.Workers.ScheduleEmailReports.html index ee11ae94f..66fd3319c 100644 --- a/Plausible.Workers.ScheduleEmailReports.html +++ b/Plausible.Workers.ScheduleEmailReports.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Workers.SendCheckStatsEmails.html b/Plausible.Workers.SendCheckStatsEmails.html index 88448ffba..32767e453 100644 --- a/Plausible.Workers.SendCheckStatsEmails.html +++ b/Plausible.Workers.SendCheckStatsEmails.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Workers.SendEmailReport.html b/Plausible.Workers.SendEmailReport.html index 9e7af8c7a..cc2091c94 100644 --- a/Plausible.Workers.SendEmailReport.html +++ b/Plausible.Workers.SendEmailReport.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Workers.SendSiteSetupEmails.html b/Plausible.Workers.SendSiteSetupEmails.html index 4efcc29d9..f8b577c21 100644 --- a/Plausible.Workers.SendSiteSetupEmails.html +++ b/Plausible.Workers.SendSiteSetupEmails.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Workers.SendTrialNotifications.html b/Plausible.Workers.SendTrialNotifications.html index a1fd16118..e78be4d7b 100644 --- a/Plausible.Workers.SendTrialNotifications.html +++ b/Plausible.Workers.SendTrialNotifications.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Workers.SpikeNotifier.html b/Plausible.Workers.SpikeNotifier.html index 4f2d8ac0e..f215cc1ff 100644 --- a/Plausible.Workers.SpikeNotifier.html +++ b/Plausible.Workers.SpikeNotifier.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.epub b/Plausible.epub index 7540602b5..45f0b528d 100644 Binary files a/Plausible.epub and b/Plausible.epub differ diff --git a/Plausible.html b/Plausible.html index f5ad8ea51..33fc830a9 100644 --- a/Plausible.html +++ b/Plausible.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.Api.ExternalController.html b/PlausibleWeb.Api.ExternalController.html index 15e27b88b..649866900 100644 --- a/PlausibleWeb.Api.ExternalController.html +++ b/PlausibleWeb.Api.ExternalController.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.Api.ExternalSitesController.html b/PlausibleWeb.Api.ExternalSitesController.html index 9aacc6dcf..30c92e27f 100644 --- a/PlausibleWeb.Api.ExternalSitesController.html +++ b/PlausibleWeb.Api.ExternalSitesController.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.Api.ExternalStatsController.html b/PlausibleWeb.Api.ExternalStatsController.html index 2690dc362..3f2cae871 100644 --- a/PlausibleWeb.Api.ExternalStatsController.html +++ b/PlausibleWeb.Api.ExternalStatsController.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.Api.Helpers.html b/PlausibleWeb.Api.Helpers.html index da8e4d479..ec6fdb166 100644 --- a/PlausibleWeb.Api.Helpers.html +++ b/PlausibleWeb.Api.Helpers.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.Api.InternalController.html b/PlausibleWeb.Api.InternalController.html index bc752d87e..f3919d960 100644 --- a/PlausibleWeb.Api.InternalController.html +++ b/PlausibleWeb.Api.InternalController.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.Api.PaddleController.html b/PlausibleWeb.Api.PaddleController.html index 85e0c7146..ce390bbb3 100644 --- a/PlausibleWeb.Api.PaddleController.html +++ b/PlausibleWeb.Api.PaddleController.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.Api.StatsController.html b/PlausibleWeb.Api.StatsController.html index e0f647d93..6ed6876c2 100644 --- a/PlausibleWeb.Api.StatsController.html +++ b/PlausibleWeb.Api.StatsController.html @@ -13,7 +13,7 @@ - + @@ -748,13 +748,13 @@ and month. The default depends on the Plausible.Query.from/2 for each default.

  • filters - optional filters to drill down data. See the Stats API "Filtering" section for more details.

  • with_imported - boolean indicating whether to include Google Analytics -imported data or not. Defaults to false.

  • Full example:

    %{
    +imported data or not. Defaults to false.

    Full example:

    %{
       "from" => "2021-09-06",
       "interval" => "month",
       "metric" => "visitors",
       "period" => "custom",
       "to" => "2021-12-13"
    -}

    +}

    Response @@ -769,20 +769,20 @@ cut off by the requested date range or not. For example, if looking at a month week-by-week, some weeks may be cut off by the month boundaries. It's useful to adjust the graph display slightly in case the interval is not 'full' so that the user understands why the numbers might be lower for -those partial periods.

    Full example:

    %{
    -  "full_intervals" => %{
    +those partial periods.

    Full example:

    %{
    +  "full_intervals" => %{
         "2021-09-01" => false,
         "2021-10-01" => true,
         "2021-11-01" => true,
         "2021-12-01" => false
    -  },
    +  },
       "imported_source" => nil,
       "interval" => "month",
    -  "labels" => ["2021-09-01", "2021-10-01", "2021-11-01", "2021-12-01"],
    -  "plot" => [0, 0, 0, 0],
    +  "labels" => ["2021-09-01", "2021-10-01", "2021-11-01", "2021-12-01"],
    +  "plot" => [0, 0, 0, 0],
       "present_index" => nil,
       "with_imported" => false
    -}
    +
    }
    diff --git a/PlausibleWeb.AuthController.html b/PlausibleWeb.AuthController.html index 5d43e8336..9f6060dc8 100644 --- a/PlausibleWeb.AuthController.html +++ b/PlausibleWeb.AuthController.html @@ -13,7 +13,7 @@ - + @@ -316,7 +316,7 @@ Functions

    activate(conn, map)

    - + View Source @@ -338,7 +338,7 @@ Functions

    activate_form(conn, params)

    - + View Source @@ -360,7 +360,7 @@ Functions

    cancel_update_email(conn, params)

    - + View Source @@ -382,7 +382,7 @@ Functions

    create_api_key(conn, map)

    - + View Source @@ -404,7 +404,7 @@ Functions

    delete_api_key(conn, map)

    - + View Source @@ -426,7 +426,7 @@ Functions

    delete_me(conn, params)

    - + View Source @@ -448,7 +448,7 @@ Functions

    google_auth_callback(conn, params)

    - + View Source @@ -470,7 +470,7 @@ Functions

    login(conn, map)

    - + View Source @@ -492,7 +492,7 @@ Functions

    login_form(conn, params)

    - + View Source @@ -514,7 +514,7 @@ Functions

    logout(conn, params)

    - + View Source @@ -536,7 +536,7 @@ Functions

    new_api_key(conn, params)

    - + View Source @@ -558,7 +558,7 @@ Functions

    password_reset(conn, params)

    - + View Source @@ -580,7 +580,7 @@ Functions

    password_reset_form(conn, params)

    - + View Source @@ -602,7 +602,7 @@ Functions

    password_reset_request(conn, params)

    - + View Source @@ -624,7 +624,7 @@ Functions

    password_reset_request_form(conn, _)

    - + View Source @@ -646,7 +646,7 @@ Functions

    register(conn, map)

    - + View Source @@ -668,7 +668,7 @@ Functions

    register_from_invitation(conn, map)

    - + View Source @@ -690,7 +690,7 @@ Functions

    request_activation_code(conn, params)

    - + View Source @@ -712,7 +712,7 @@ Functions

    save_settings(conn, map)

    - + View Source @@ -734,7 +734,7 @@ Functions

    update_email(conn, map)

    - + View Source @@ -756,7 +756,7 @@ Functions

    user_settings(conn, params)

    - + View Source diff --git a/PlausibleWeb.AuthPlug.html b/PlausibleWeb.AuthPlug.html index 144bcf33e..758ed562e 100644 --- a/PlausibleWeb.AuthPlug.html +++ b/PlausibleWeb.AuthPlug.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.AuthView.html b/PlausibleWeb.AuthView.html index 5a2305a03..33b5f8d3e 100644 --- a/PlausibleWeb.AuthView.html +++ b/PlausibleWeb.AuthView.html @@ -13,7 +13,7 @@ - + @@ -308,7 +308,7 @@ Functions

    __resource__()

    - + View Source @@ -352,7 +352,7 @@ Functions

    base_domain()

    - + View Source @@ -374,7 +374,7 @@ Functions

    delimit_integer(number)

    - + View Source @@ -396,7 +396,7 @@ Functions

    format_invoices(invoice_list)

    - + View Source @@ -528,7 +528,7 @@ Functions

    plausible_url()

    - + View Source @@ -550,7 +550,7 @@ Functions

    present_subscription_status(status)

    - + View Source @@ -603,7 +603,7 @@ Functions

    render(template, assigns \\ %{})

    - + View Source @@ -625,7 +625,7 @@ Functions

    subscription_colors(_)

    - + View Source @@ -654,7 +654,7 @@ Functions

    subscription_interval(subscription)

    - + View Source @@ -678,7 +678,7 @@ Functions

    subscription_quota(subscription, options \\ [])

    - + View Source @@ -700,7 +700,7 @@ Functions

    template_not_found(template, assigns)

    - + View Source diff --git a/PlausibleWeb.AuthorizeSiteAccess.html b/PlausibleWeb.AuthorizeSiteAccess.html index ce09d6f5d..81033e415 100644 --- a/PlausibleWeb.AuthorizeSiteAccess.html +++ b/PlausibleWeb.AuthorizeSiteAccess.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.AuthorizeSitesApiPlug.html b/PlausibleWeb.AuthorizeSitesApiPlug.html index 962df12b6..467f962d9 100644 --- a/PlausibleWeb.AuthorizeSitesApiPlug.html +++ b/PlausibleWeb.AuthorizeSitesApiPlug.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.AuthorizeStatsApiPlug.html b/PlausibleWeb.AuthorizeStatsApiPlug.html index d407329b7..fc7103fc7 100644 --- a/PlausibleWeb.AuthorizeStatsApiPlug.html +++ b/PlausibleWeb.AuthorizeStatsApiPlug.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.AvatarController.html b/PlausibleWeb.AvatarController.html index 57ca36f3a..3c8bbc3c2 100644 --- a/PlausibleWeb.AvatarController.html +++ b/PlausibleWeb.AvatarController.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.BillingController.html b/PlausibleWeb.BillingController.html index 89993d46c..a9c9b8a4c 100644 --- a/PlausibleWeb.BillingController.html +++ b/PlausibleWeb.BillingController.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.BillingView.html b/PlausibleWeb.BillingView.html index a034a8a31..810a3a709 100644 --- a/PlausibleWeb.BillingView.html +++ b/PlausibleWeb.BillingView.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.CRMAuthPlug.html b/PlausibleWeb.CRMAuthPlug.html index dcab13d38..e1e242f59 100644 --- a/PlausibleWeb.CRMAuthPlug.html +++ b/PlausibleWeb.CRMAuthPlug.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.Captcha.html b/PlausibleWeb.Captcha.html index 2aa6a582b..0f674bbce 100644 --- a/PlausibleWeb.Captcha.html +++ b/PlausibleWeb.Captcha.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.Components.Generic.html b/PlausibleWeb.Components.Generic.html index 2d3faf28a..edd7be156 100644 --- a/PlausibleWeb.Components.Generic.html +++ b/PlausibleWeb.Components.Generic.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.Components.Google.html b/PlausibleWeb.Components.Google.html index e2195eb74..3428c67d3 100644 --- a/PlausibleWeb.Components.Google.html +++ b/PlausibleWeb.Components.Google.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.Components.Settings.html b/PlausibleWeb.Components.Settings.html index f414feafb..509b68a9f 100644 --- a/PlausibleWeb.Components.Settings.html +++ b/PlausibleWeb.Components.Settings.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.Components.Site.Feature.html b/PlausibleWeb.Components.Site.Feature.html index 5327ee088..02de81e37 100644 --- a/PlausibleWeb.Components.Site.Feature.html +++ b/PlausibleWeb.Components.Site.Feature.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.ConnCase.html b/PlausibleWeb.ConnCase.html index 2d66c4e1a..2353927af 100644 --- a/PlausibleWeb.ConnCase.html +++ b/PlausibleWeb.ConnCase.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.ControllerHelpers.html b/PlausibleWeb.ControllerHelpers.html index d2ff7d1f2..d75ca7719 100644 --- a/PlausibleWeb.ControllerHelpers.html +++ b/PlausibleWeb.ControllerHelpers.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.Controllers.API.Revenue.html b/PlausibleWeb.Controllers.API.Revenue.html index 46df03236..7fe508b4f 100644 --- a/PlausibleWeb.Controllers.API.Revenue.html +++ b/PlausibleWeb.Controllers.API.Revenue.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.Email.html b/PlausibleWeb.Email.html index 82d58214b..61e2a5537 100644 --- a/PlausibleWeb.Email.html +++ b/PlausibleWeb.Email.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.EmailView.html b/PlausibleWeb.EmailView.html index 59e396248..d3f82df9f 100644 --- a/PlausibleWeb.EmailView.html +++ b/PlausibleWeb.EmailView.html @@ -13,7 +13,7 @@ - + @@ -452,7 +452,7 @@ Functions

    __resource__()

    - + View Source @@ -496,7 +496,7 @@ Functions

    base_domain()

    - + View Source @@ -606,7 +606,7 @@ Functions

    date_format(date)

    - + View Source @@ -716,7 +716,7 @@ Functions

    greet_recipient(_)

    - + View Source @@ -914,7 +914,7 @@ Functions

    plausible_url()

    - + View Source @@ -938,7 +938,7 @@ Functions

    render(template, assigns \\ %{})

    - + View Source @@ -962,7 +962,7 @@ Functions

    sentry_link(trace_id, dsn \\ Sentry.Config.dsn())

    - + View Source @@ -1072,7 +1072,7 @@ Functions

    template_not_found(template, assigns)

    - + View Source diff --git a/PlausibleWeb.Endpoint.html b/PlausibleWeb.Endpoint.html index 118b6c211..23f79c4df 100644 --- a/PlausibleWeb.Endpoint.html +++ b/PlausibleWeb.Endpoint.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.ErrorHelpers.html b/PlausibleWeb.ErrorHelpers.html index 150e86dcc..ec26336a5 100644 --- a/PlausibleWeb.ErrorHelpers.html +++ b/PlausibleWeb.ErrorHelpers.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.ErrorReportController.html b/PlausibleWeb.ErrorReportController.html index 7e8f90726..17c66d846 100644 --- a/PlausibleWeb.ErrorReportController.html +++ b/PlausibleWeb.ErrorReportController.html @@ -13,7 +13,7 @@ - + diff --git a/PlausibleWeb.ErrorView.html b/PlausibleWeb.ErrorView.html index f750699d6..883d626d9 100644 --- a/PlausibleWeb.ErrorView.html +++ b/PlausibleWeb.ErrorView.html @@ -13,7 +13,7 @@ - + @@ -234,7 +234,7 @@ Functions

    __resource__()

    - + View Source @@ -280,7 +280,7 @@ Functions

    render(template, assigns \\ %{})

    - + View Source @@ -346,7 +346,7 @@ Functions

    template_not_found(template, assigns)

    - + View Source diff --git a/PlausibleWeb.Favicon.html b/PlausibleWeb.Favicon.html index 62862d739..620f7e35c 100644 --- a/PlausibleWeb.Favicon.html +++ b/PlausibleWeb.Favicon.html @@ -13,7 +13,7 @@ - + diff --git a/Plausible.Site.CustomDomain.html b/PlausibleWeb.FirstLaunchPlug.Test.html similarity index 67% rename from Plausible.Site.CustomDomain.html rename to PlausibleWeb.FirstLaunchPlug.Test.html index dcf517853..3dd24f9f5 100644 --- a/Plausible.Site.CustomDomain.html +++ b/PlausibleWeb.FirstLaunchPlug.Test.html @@ -7,13 +7,13 @@ - Plausible.Site.CustomDomain — Plausible v0.0.1 + PlausibleWeb.FirstLaunchPlug.Test — Plausible v0.0.1 - + @@ -102,19 +102,87 @@ Plausible - + View Source - Plausible.Site.CustomDomain + PlausibleWeb.FirstLaunchPlug.Test (Plausible v0.0.1)

    +
    +

    Test helper for setup blocks allowing to skip the plug processing

    +
    +
    +

    + + + Summary + +

    +
    +

    + Functions +

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

    + + +Functions + +

    +
    +
    + + + +
    + +
    + +
    @spec skip(map()) :: {:ok, map()}
    + +
    + + +
    +
    + +
    +
    +