Browse Source

Rename project to Mobilizon

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
osm-theme
Thomas Citharel 3 years ago
parent
commit
559c889f1b
191 changed files with 740 additions and 740 deletions
  1. +2
    -2
      .gitlab-ci.yml
  2. +1
    -1
      LICENSE
  3. +2
    -2
      README.md
  4. +9
    -9
      config/config.exs
  5. +8
    -8
      config/dev.exs
  6. +6
    -6
      config/prod.exs
  7. +5
    -5
      config/test.exs
  8. +5
    -5
      docker-compose.yml
  9. +2
    -2
      js/.env.dist
  10. +1
    -1
      js/package-lock.json
  11. +1
    -1
      js/package.json
  12. +2
    -2
      js/public/index.html
  13. +2
    -2
      js/public/manifest.json
  14. +1
    -1
      js/src/components/Home.vue
  15. +1
    -1
      js/src/components/NavBar.vue
  16. +2
    -2
      js/src/i18n/en.js
  17. +2
    -2
      js/src/i18n/fr.js
  18. +3
    -3
      lib/eventos.ex
  19. +0
    -6
      lib/eventos/mailer.ex
  20. +12
    -12
      lib/eventos_web.ex
  21. +0
    -6
      lib/eventos_web/controllers/inboxes_controller.ex
  22. +0
    -10
      lib/eventos_web/templates/email/email.html.eex
  23. +0
    -3
      lib/eventos_web/templates/email/email.text.eex
  24. +0
    -3
      lib/eventos_web/views/email_view.ex
  25. +0
    -6
      lib/eventos_web/views/page_view.ex
  26. +0
    -10
      lib/eventos_web/views/user_session_view.ex
  27. +4
    -4
      lib/mix/tasks/create_bot.ex
  28. +1
    -1
      lib/mobilizon/activity.ex
  29. +18
    -18
      lib/mobilizon/actors/actor.ex
  30. +15
    -15
      lib/mobilizon/actors/actors.ex
  31. +2
    -2
      lib/mobilizon/actors/bot.ex
  32. +3
    -3
      lib/mobilizon/actors/follower.ex
  33. +3
    -3
      lib/mobilizon/actors/member.ex
  34. +3
    -3
      lib/mobilizon/actors/service/activation.ex
  35. +3
    -3
      lib/mobilizon/actors/service/reset_password.ex
  36. +2
    -2
      lib/mobilizon/actors/user.ex
  37. +4
    -4
      lib/mobilizon/addresses/address.ex
  38. +3
    -3
      lib/mobilizon/addresses/addresses.ex
  39. +9
    -9
      lib/mobilizon/application.ex
  40. +8
    -8
      lib/mobilizon/email/user.ex
  41. +2
    -2
      lib/mobilizon/events/category.ex
  42. +5
    -5
      lib/mobilizon/events/comment.ex
  43. +5
    -5
      lib/mobilizon/events/event.ex
  44. +12
    -12
      lib/mobilizon/events/events.ex
  45. +3
    -3
      lib/mobilizon/events/participant.ex
  46. +2
    -2
      lib/mobilizon/events/session.ex
  47. +7
    -7
      lib/mobilizon/events/tag.ex
  48. +2
    -2
      lib/mobilizon/events/track.ex
  49. +2
    -2
      lib/mobilizon/export/icalendar.ex
  50. +6
    -0
      lib/mobilizon/mailer.ex
  51. +1
    -1
      lib/mobilizon/postgrex_types.ex
  52. +3
    -3
      lib/mobilizon/repo.ex
  53. +1
    -1
      lib/mobilizon/slug.ex
  54. +1
    -1
      lib/mobilizon_web/auth_error_handler.ex
  55. +4
    -4
      lib/mobilizon_web/auth_pipeline.ex
  56. +3
    -3
      lib/mobilizon_web/channels/user_socket.ex
  57. +6
    -6
      lib/mobilizon_web/controllers/activity_pub_controller.ex
  58. +6
    -6
      lib/mobilizon_web/controllers/actor_controller.ex
  59. +5
    -5
      lib/mobilizon_web/controllers/address_controller.ex
  60. +5
    -5
      lib/mobilizon_web/controllers/bot_controller.ex
  61. +5
    -5
      lib/mobilizon_web/controllers/category_controller.ex
  62. +5
    -5
      lib/mobilizon_web/controllers/comment_controller.ex
  63. +7
    -7
      lib/mobilizon_web/controllers/event_controller.ex
  64. +5
    -5
      lib/mobilizon_web/controllers/event_request_controller.ex
  65. +5
    -5
      lib/mobilizon_web/controllers/fallback_controller.ex
  66. +5
    -5
      lib/mobilizon_web/controllers/follower_controller.ex
  67. +9
    -9
      lib/mobilizon_web/controllers/group_controller.ex
  68. +6
    -0
      lib/mobilizon_web/controllers/inboxes_controller.ex
  69. +7
    -7
      lib/mobilizon_web/controllers/nodeinfo_controller.ex
  70. +2
    -2
      lib/mobilizon_web/controllers/outboxes_controller.ex
  71. +2
    -2
      lib/mobilizon_web/controllers/page_controller.ex
  72. +3
    -3
      lib/mobilizon_web/controllers/participant_controller.ex
  73. +5
    -5
      lib/mobilizon_web/controllers/search_controller.ex
  74. +5
    -5
      lib/mobilizon_web/controllers/session_controller.ex
  75. +5
    -5
      lib/mobilizon_web/controllers/tag_controller.ex
  76. +5
    -5
      lib/mobilizon_web/controllers/track_controller.ex
  77. +10
    -10
      lib/mobilizon_web/controllers/user_controller.ex
  78. +5
    -5
      lib/mobilizon_web/controllers/user_session_controller.ex
  79. +3
    -3
      lib/mobilizon_web/controllers/web_finger_controller.ex
  80. +7
    -7
      lib/mobilizon_web/endpoint.ex
  81. +3
    -3
      lib/mobilizon_web/gettext.ex
  82. +4
    -4
      lib/mobilizon_web/guardian.ex
  83. +2
    -2
      lib/mobilizon_web/http_signature.ex
  84. +10
    -10
      lib/mobilizon_web/router.ex
  85. +10
    -0
      lib/mobilizon_web/templates/email/email.html.eex
  86. +3
    -0
      lib/mobilizon_web/templates/email/email.text.eex
  87. +1
    -1
      lib/mobilizon_web/templates/email/password_reset.html.eex
  88. +1
    -1
      lib/mobilizon_web/templates/email/password_reset.text.eex
  89. +1
    -1
      lib/mobilizon_web/templates/email/registration_confirmation.html.eex
  90. +1
    -1
      lib/mobilizon_web/templates/email/registration_confirmation.text.eex
  91. +13
    -13
      lib/mobilizon_web/views/activity_pub/actor_view.ex
  92. +4
    -4
      lib/mobilizon_web/views/activity_pub/object_view.ex
  93. +4
    -4
      lib/mobilizon_web/views/actor_view.ex
  94. +3
    -3
      lib/mobilizon_web/views/address_view.ex
  95. +3
    -3
      lib/mobilizon_web/views/bot_view.ex
  96. +3
    -3
      lib/mobilizon_web/views/category_view.ex
  97. +3
    -3
      lib/mobilizon_web/views/changeset_view.ex
  98. +3
    -3
      lib/mobilizon_web/views/comment_view.ex
  99. +3
    -0
      lib/mobilizon_web/views/email_view.ex
  100. +3
    -3
      lib/mobilizon_web/views/error_helpers.ex

+ 2
- 2
.gitlab-ci.yml View File

@ -6,11 +6,11 @@ services:
variables:
MIX_ENV: "test"
POSTGRES_DB: eventos_test
POSTGRES_DB: mobilizon_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ""
POSTGRES_HOST: postgres
GEOLITE_CITIES_PATH: "/builds/tcit/eventos/priv/data/GeoLite2-City.mmdb"
GEOLITE_CITIES_PATH: "/builds/tcit/mobilizon/priv/data/GeoLite2-City.mmdb"
cache:
key: "$CI_JOB_NAME"


+ 1
- 1
LICENSE View File

@ -629,7 +629,7 @@ to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
eventos
Mobilizon
Copyright (C) 2018 Thomas Citharel
This program is free software: you can redistribute it and/or modify


+ 2
- 2
README.md View File

@ -1,4 +1,4 @@
# Eventos
# Mobilizon
## Development
@ -22,7 +22,7 @@ to start a database container, an API container and the front-end dev container
* Fetch dependencies with `mix deps.get`.
* Create your database with `mix ecto.create`.
* Create the postgis extension on the database with a postgres user that has
superuser capabilities: `psql eventos_dev`
superuser capabilities: `psql mobilizon_dev`
``` create extension if not exists postgis; ```


+ 9
- 9
config/config.exs View File

@ -6,10 +6,10 @@
use Mix.Config
# General application configuration
config :eventos,
ecto_repos: [Eventos.Repo]
config :mobilizon,
ecto_repos: [Mobilizon.Repo]
config :eventos, :instance,
config :mobilizon, :instance,
name: "Localhost",
version: "1.0.0-dev",
registrations_open: true
@ -20,11 +20,11 @@ config :mime, :types, %{
}
# Configures the endpoint
config :eventos, EventosWeb.Endpoint,
config :mobilizon, MobilizonWeb.Endpoint,
url: [host: "localhost"],
secret_key_base: "1yOazsoE0Wqu4kXk3uC5gu3jDbShOimTCzyFL3OjCdBmOXMyHX87Qmf3+Tu9s0iM",
render_errors: [view: EventosWeb.ErrorView, accepts: ~w(html json)],
pubsub: [name: Eventos.PubSub, adapter: Phoenix.PubSub.PG2],
render_errors: [view: MobilizonWeb.ErrorView, accepts: ~w(html json)],
pubsub: [name: Mobilizon.PubSub, adapter: Phoenix.PubSub.PG2],
instance: "localhost",
email_from: "noreply@localhost",
email_to: "noreply@localhost"
@ -38,12 +38,12 @@ config :logger, :console,
# of this file so it overrides the configuration defined above.
import_config "#{Mix.env()}.exs"
config :eventos, EventosWeb.Guardian,
issuer: "eventos",
config :mobilizon, MobilizonWeb.Guardian,
issuer: "mobilizon",
secret_key: "ty0WM7YBE3ojvxoUQxo8AERrNpfbXnIJ82ovkPdqbUFw31T5LcK8wGjaOiReVQjo"
config :guardian, Guardian.DB,
repo: Eventos.Repo,
repo: Mobilizon.Repo,
# default
schema_name: "guardian_tokens",
# store all token types if not set


+ 8
- 8
config/dev.exs View File

@ -6,7 +6,7 @@ use Mix.Config
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :eventos, EventosWeb.Endpoint,
config :mobilizon, MobilizonWeb.Endpoint,
http: [port: System.get_env("PORT") || 4001],
debug_errors: true,
code_reloader: true,
@ -30,13 +30,13 @@ config :eventos, EventosWeb.Endpoint,
# different ports.
# Watch static and templates for browser reloading.
config :eventos, EventosWeb.Endpoint,
config :mobilizon, MobilizonWeb.Endpoint,
live_reload: [
patterns: [
~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
~r{priv/gettext/.*(po)$},
~r{lib/eventos_web/views/.*(ex)$},
~r{lib/eventos_web/templates/.*(eex)$}
~r{lib/mobilizon_web/views/.*(ex)$},
~r{lib/mobilizon_web/templates/.*(eex)$}
]
]
@ -47,14 +47,14 @@ config :logger, :console, format: "[$level] $message\n", level: :debug
# in production as building large stacktraces may be expensive.
config :phoenix, :stacktrace_depth, 20
config :eventos, Eventos.Mailer, adapter: Bamboo.LocalAdapter
config :mobilizon, Mobilizon.Mailer, adapter: Bamboo.LocalAdapter
# Configure your database
config :eventos, Eventos.Repo,
config :mobilizon, Mobilizon.Repo,
adapter: Ecto.Adapters.Postgres,
types: Eventos.PostgresTypes,
types: Mobilizon.PostgresTypes,
username: System.get_env("POSTGRES_USER") || "elixir",
password: System.get_env("POSTGRES_PASSWORD") || "elixir",
database: System.get_env("POSTGRES_DATABASE") || "eventos_dev",
database: System.get_env("POSTGRES_DATABASE") || "mobilizon_dev",
hostname: System.get_env("POSTGRES_HOST") || "localhost",
pool_size: 10

+ 6
- 6
config/prod.exs View File

@ -3,7 +3,7 @@ use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# EventosWeb.Endpoint.init/2 when load_from_system_env is
# MobilizonWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# Don't forget to configure the url host to something meaningful,
@ -13,12 +13,12 @@ use Mix.Config
# containing the digested version of static files. This
# manifest is generated by the mix phx.digest task
# which you typically run after static files are built.
config :eventos, EventosWeb.Endpoint,
config :mobilizon, MobilizonWeb.Endpoint,
load_from_system_env: true,
url: [host: "example.com", port: 80],
cache_static_manifest: "priv/static/cache_manifest.json"
config :eventos, Eventos.Mailer,
config :mobilizon, Mobilizon.Mailer,
adapter: Bamboo.SMTPAdapter,
server: "localhost",
hostname: "localhost",
@ -45,7 +45,7 @@ config :logger, level: :info
# To get SSL working, you will need to add the `https` key
# to the previous section and set your `:url` port to 443:
#
# config :eventos, EventosWeb.Endpoint,
# config :mobilizon, MobilizonWeb.Endpoint,
# ...
# url: [host: "example.com", port: 443],
# https: [:inet6,
@ -60,7 +60,7 @@ config :logger, level: :info
# We also recommend setting `force_ssl`, ensuring no data is
# ever sent via http, always redirecting to https:
#
# config :eventos, EventosWeb.Endpoint,
# config :mobilizon, MobilizonWeb.Endpoint,
# force_ssl: [hsts: true]
#
# Check `Plug.SSL` for all available options in `force_ssl`.
@ -75,7 +75,7 @@ config :logger, level: :info
# Alternatively, you can configure exactly which server to
# start per endpoint:
#
# config :eventos, EventosWeb.Endpoint, server: true
# config :mobilizon, MobilizonWeb.Endpoint, server: true
#
# Finally import the config/prod.secret.exs


+ 5
- 5
config/test.exs View File

@ -2,7 +2,7 @@ use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :eventos, EventosWeb.Endpoint,
config :mobilizon, MobilizonWeb.Endpoint,
http: [port: 4001],
server: false
@ -13,13 +13,13 @@ config :logger,
level: :info
# Configure your database
config :eventos, Eventos.Repo,
config :mobilizon, Mobilizon.Repo,
adapter: Ecto.Adapters.Postgres,
username: System.get_env("POSTGRES_USER") || "elixir",
password: System.get_env("POSTGRES_PASSWORD") || "elixir",
database: "eventos_test",
database: "mobilizon_test",
hostname: System.get_env("POSTGRES_HOST") || "localhost",
pool: Ecto.Adapters.SQL.Sandbox,
types: Eventos.PostgresTypes
types: Mobilizon.PostgresTypes
config :eventos, Eventos.Mailer, adapter: Bamboo.TestAdapter
config :mobilizon, Mobilizon.Mailer, adapter: Bamboo.TestAdapter

+ 5
- 5
docker-compose.yml View File

@ -3,15 +3,15 @@ version: '3'
services:
postgres:
container_name: eventos_db
container_name: mobilizon_db
restart: unless-stopped
image: mdillon/postgis:10
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: eventos_dev
POSTGRES_DB: mobilizon_dev
front:
container_name: eventos_front
container_name: mobilizon_front
restart: unless-stopped
build: ./js
volumes:
@ -21,7 +21,7 @@ services:
entrypoint: entrypoint
api:
container_name: eventos_api
container_name: mobilizon_api
restart: unless-stopped
build: .
volumes:
@ -33,7 +33,7 @@ services:
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DATABASE: eventos_dev
POSTGRES_DATABASE: mobilizon_dev
POSTGRES_HOST: postgres
PORT: 4000
entrypoint: entrypoint

+ 2
- 2
js/.env.dist View File

@ -1,3 +1,3 @@
API_HOST=eventos.tld
API_ORIGIN=https://eventos.tld
API_HOST=mobilizon.tld
API_ORIGIN=https://mobilizon.tld
API_PATH=/api/v1

+ 1
- 1
js/package-lock.json View File

@ -1,5 +1,5 @@
{
"name": "eventos",
"name": "mobilizon",
"version": "0.1.0",
"lockfileVersion": 1,
"requires": true,


+ 1
- 1
js/package.json View File

@ -1,5 +1,5 @@
{
"name": "eventos",
"name": "mobilizon",
"version": "0.1.0",
"private": true,
"scripts": {


+ 2
- 2
js/public/index.html View File

@ -5,11 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>eventos</title>
<title>mobilizon</title>
</head>
<body>
<noscript>
<strong>We're sorry but eventos doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
<strong>We're sorry but mobilizon doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->


+ 2
- 2
js/public/manifest.json View File

@ -1,6 +1,6 @@
{
"name": "eventos",
"short_name": "eventos",
"name": "mobilizon",
"short_name": "mobilizon",
"icons": [
{
"src": "/img/icons/android-chrome-192x192.png",


+ 1
- 1
js/src/components/Home.vue View File

@ -11,7 +11,7 @@
<v-layout align-center>
<v-flex text-xs-center>
<h1 class="display-3">Find events you like</h1>
<h2>Share it with Eventos</h2>
<h2>Share it with Mobilizon</h2>
<v-btn :to="{ name: 'Register' }">{{ $t("home.register") }}</v-btn>
</v-flex>
</v-layout>


+ 1
- 1
js/src/components/NavBar.vue View File

@ -8,7 +8,7 @@
>
<v-toolbar-title style="width: 300px" class="ml-0 pl-3 white--text">
<v-toolbar-side-icon @click.stop="toggleDrawer()"></v-toolbar-side-icon>
<router-link :to="{ name: 'Home' }" class="hidden-sm-and-down white--text">Eventos
<router-link :to="{ name: 'Home' }" class="hidden-sm-and-down white--text">Mobilizon
</router-link>
</v-toolbar-title>
<v-autocomplete


+ 2
- 2
js/src/i18n/en.js View File

@ -1,7 +1,7 @@
export default {
home: {
welcome: 'Welcome on Eventos, {username}',
welcome_off: 'Welcome on Eventos',
welcome: 'Welcome on Mobilizon, {username}',
welcome_off: 'Welcome on Mobilizon',
events: 'Events',
groups: 'Groups',
login: 'Login',


+ 2
- 2
js/src/i18n/fr.js View File

@ -1,7 +1,7 @@
export default {
home: {
welcome: 'Bienvenue sur Eventos, {username}!',
welcome_off: 'Bienvenue sur Eventos',
welcome: 'Bienvenue sur Mobilizon, {username}!',
welcome_off: 'Bienvenue sur Mobilizon',
events: 'Événements',
groups: 'Groupes',
login: 'Se connecter',


+ 3
- 3
lib/eventos.ex View File

@ -1,9 +1,9 @@
defmodule Eventos do
defmodule Mobilizon do
@moduledoc """
Eventos is a decentralized and federated Meetup-like using [ActivityPub](http://activitypub.rocks/).
Mobilizon is a decentralized and federated Meetup-like using [ActivityPub](http://activitypub.rocks/).
It consists of an API server build with [Elixir](http://elixir-lang.github.io/) and the [Phoenix Framework](https://hexdocs.pm/phoenix).
Eventos relies on `Guardian` for auth and `Geo`/Postgis for geographical informations.
Mobilizon relies on `Guardian` for auth and `Geo`/Postgis for geographical informations.
"""
end

+ 0
- 6
lib/eventos/mailer.ex View File

@ -1,6 +0,0 @@
defmodule Eventos.Mailer do
@moduledoc """
Mailer
"""
use Bamboo.Mailer, otp_app: :eventos
end

+ 12
- 12
lib/eventos_web.ex View File

@ -1,12 +1,12 @@
defmodule EventosWeb do
defmodule MobilizonWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use EventosWeb, :controller
use EventosWeb, :view
use MobilizonWeb, :controller
use MobilizonWeb, :view
The definitions below will be executed for every view,
controller, etc, so keep them short and clean, focused
@ -19,18 +19,18 @@ defmodule EventosWeb do
def controller do
quote do
use Phoenix.Controller, namespace: EventosWeb
use Phoenix.Controller, namespace: MobilizonWeb
import Plug.Conn
import EventosWeb.Router.Helpers
import EventosWeb.Gettext
import MobilizonWeb.Router.Helpers
import MobilizonWeb.Gettext
end
end
def view do
quote do
use Phoenix.View,
root: "lib/eventos_web/templates",
namespace: EventosWeb
root: "lib/mobilizon_web/templates",
namespace: MobilizonWeb
# Import convenience functions from controllers
import Phoenix.Controller, only: [get_flash: 2, view_module: 1]
@ -38,9 +38,9 @@ defmodule EventosWeb do
# Use all HTML functionality (forms, tags, etc)
use Phoenix.HTML
import EventosWeb.Router.Helpers
import EventosWeb.ErrorHelpers
import EventosWeb.Gettext
import MobilizonWeb.Router.Helpers
import MobilizonWeb.ErrorHelpers
import MobilizonWeb.Gettext
end
end
@ -55,7 +55,7 @@ defmodule EventosWeb do
def channel do
quote do
use Phoenix.Channel
import EventosWeb.Gettext
import MobilizonWeb.Gettext
end
end


+ 0
- 6
lib/eventos_web/controllers/inboxes_controller.ex View File

@ -1,6 +0,0 @@
defmodule EventosWeb.InboxesController do
use EventosWeb, :controller
def create(conn) do
end
end

+ 0
- 10
lib/eventos_web/templates/email/email.html.eex View File

@ -1,10 +0,0 @@
<html>
<head>
<link rel="stylesheet" href="<%= static_url(EventosWeb.Endpoint, "/css/email.css") %>">
</head>
<body>
<%= render @view_module, @view_template, assigns %>
<p><%= gettext "An email sent by Eventos on %{instance}.", instance: @instance %></p>
</body>
</html>

+ 0
- 3
lib/eventos_web/templates/email/email.text.eex View File

@ -1,3 +0,0 @@
<%= render @view_module, @view_template, assigns %>
<%= gettext "An email sent by Eventos on %{instance}.", instance: @instance %>

+ 0
- 3
lib/eventos_web/views/email_view.ex View File

@ -1,3 +0,0 @@
defmodule Eventos.EmailView do
use EventosWeb, :view
end

+ 0
- 6
lib/eventos_web/views/page_view.ex View File

@ -1,6 +0,0 @@
defmodule EventosWeb.PageView do
@moduledoc """
View for our webapp
"""
use EventosWeb, :view
end

+ 0
- 10
lib/eventos_web/views/user_session_view.ex View File

@ -1,10 +0,0 @@
defmodule EventosWeb.UserSessionView do
@moduledoc """
View for user Sessions
"""
use EventosWeb, :view
def render("token.json", %{token: token, user: user}) do
%{token: token, user: render_one(user, EventosWeb.UserView, "user_simple.json")}
end
end

+ 4
- 4
lib/mix/tasks/create_bot.ex View File

@ -4,10 +4,10 @@ defmodule Mix.Tasks.CreateBot do
"""
use Mix.Task
alias Eventos.Actors
alias Eventos.Actors.Bot
alias Eventos.Repo
alias Eventos.Actors.User
alias Mobilizon.Actors
alias Mobilizon.Actors.Bot
alias Mobilizon.Repo
alias Mobilizon.Actors.User
import Logger
@shortdoc "Register user"


lib/eventos/activity.ex → lib/mobilizon/activity.ex View File


lib/eventos/actors/actor.ex → lib/mobilizon/actors/actor.ex View File


lib/eventos/actors/actors.ex → lib/mobilizon/actors/actors.ex View File


lib/eventos/actors/bot.ex → lib/mobilizon/actors/bot.ex View File


lib/eventos/actors/follower.ex → lib/mobilizon/actors/follower.ex View File


lib/eventos/actors/member.ex → lib/mobilizon/actors/member.ex View File


lib/eventos/actors/service/activation.ex → lib/mobilizon/actors/service/activation.ex View File


lib/eventos/actors/service/reset_password.ex → lib/mobilizon/actors/service/reset_password.ex View File


lib/eventos/actors/user.ex → lib/mobilizon/actors/user.ex View File


lib/eventos/addresses/address.ex → lib/mobilizon/addresses/address.ex View File


lib/eventos/addresses/addresses.ex → lib/mobilizon/addresses/addresses.ex View File


lib/eventos/application.ex → lib/mobilizon/application.ex View File


lib/eventos/email/user.ex → lib/mobilizon/email/user.ex View File


lib/eventos/events/category.ex → lib/mobilizon/events/category.ex View File


lib/eventos/events/comment.ex → lib/mobilizon/events/comment.ex View File


lib/eventos/events/event.ex → lib/mobilizon/events/event.ex View File


lib/eventos/events/events.ex → lib/mobilizon/events/events.ex View File


lib/eventos/events/participant.ex → lib/mobilizon/events/participant.ex View File


lib/eventos/events/session.ex → lib/mobilizon/events/session.ex View File


lib/eventos/events/tag.ex → lib/mobilizon/events/tag.ex View File


lib/eventos/events/track.ex → lib/mobilizon/events/track.ex View File


lib/eventos/export/icalendar.ex → lib/mobilizon/export/icalendar.ex View File


+ 6
- 0
lib/mobilizon/mailer.ex View File

@ -0,0 +1,6 @@
defmodule Mobilizon.Mailer do
@moduledoc """
Mailer
"""
use Bamboo.Mailer, otp_app: :mobilizon
end

lib/eventos/postgrex_types.ex → lib/mobilizon/postgrex_types.ex View File


lib/eventos/repo.ex → lib/mobilizon/repo.ex View File


lib/eventos/slug.ex → lib/mobilizon/slug.ex View File


lib/eventos_web/auth_error_handler.ex → lib/mobilizon_web/auth_error_handler.ex View File


lib/eventos_web/auth_pipeline.ex → lib/mobilizon_web/auth_pipeline.ex View File


lib/eventos_web/channels/user_socket.ex → lib/mobilizon_web/channels/user_socket.ex View File


lib/eventos_web/controllers/activity_pub_controller.ex → lib/mobilizon_web/controllers/activity_pub_controller.ex View File


lib/eventos_web/controllers/actor_controller.ex → lib/mobilizon_web/controllers/actor_controller.ex View File


lib/eventos_web/controllers/address_controller.ex → lib/mobilizon_web/controllers/address_controller.ex View File


lib/eventos_web/controllers/bot_controller.ex → lib/mobilizon_web/controllers/bot_controller.ex View File


lib/eventos_web/controllers/category_controller.ex → lib/mobilizon_web/controllers/category_controller.ex View File


lib/eventos_web/controllers/comment_controller.ex → lib/mobilizon_web/controllers/comment_controller.ex View File


lib/eventos_web/controllers/event_controller.ex → lib/mobilizon_web/controllers/event_controller.ex View File


lib/eventos_web/controllers/event_request_controller.ex → lib/mobilizon_web/controllers/event_request_controller.ex View File


lib/eventos_web/controllers/fallback_controller.ex → lib/mobilizon_web/controllers/fallback_controller.ex View File


lib/eventos_web/controllers/follower_controller.ex → lib/mobilizon_web/controllers/follower_controller.ex View File


lib/eventos_web/controllers/group_controller.ex → lib/mobilizon_web/controllers/group_controller.ex View File


+ 6
- 0
lib/mobilizon_web/controllers/inboxes_controller.ex View File

@ -0,0 +1,6 @@
defmodule MobilizonWeb.InboxesController do
use MobilizonWeb, :controller
def create(conn) do
end
end

lib/eventos_web/controllers/nodeinfo_controller.ex → lib/mobilizon_web/controllers/nodeinfo_controller.ex View File


lib/eventos_web/controllers/outboxes_controller.ex → lib/mobilizon_web/controllers/outboxes_controller.ex View File


lib/eventos_web/controllers/page_controller.ex → lib/mobilizon_web/controllers/page_controller.ex View File


lib/eventos_web/controllers/participant_controller.ex → lib/mobilizon_web/controllers/participant_controller.ex View File


lib/eventos_web/controllers/search_controller.ex → lib/mobilizon_web/controllers/search_controller.ex View File


lib/eventos_web/controllers/session_controller.ex → lib/mobilizon_web/controllers/session_controller.ex View File


lib/eventos_web/controllers/tag_controller.ex → lib/mobilizon_web/controllers/tag_controller.ex View File


lib/eventos_web/controllers/track_controller.ex → lib/mobilizon_web/controllers/track_controller.ex View File


lib/eventos_web/controllers/user_controller.ex → lib/mobilizon_web/controllers/user_controller.ex View File


lib/eventos_web/controllers/user_session_controller.ex → lib/mobilizon_web/controllers/user_session_controller.ex View File


lib/eventos_web/controllers/web_finger_controller.ex → lib/mobilizon_web/controllers/web_finger_controller.ex View File


lib/eventos_web/endpoint.ex → lib/mobilizon_web/endpoint.ex View File


lib/eventos_web/gettext.ex → lib/mobilizon_web/gettext.ex View File


lib/eventos_web/guardian.ex → lib/mobilizon_web/guardian.ex View File


lib/eventos_web/http_signature.ex → lib/mobilizon_web/http_signature.ex View File


lib/eventos_web/router.ex → lib/mobilizon_web/router.ex View File


+ 10
- 0
lib/mobilizon_web/templates/email/email.html.eex View File

@ -0,0 +1,10 @@
<html>
<head>
<link rel="stylesheet" href="<%= static_url(MobilizonWeb.Endpoint, "/css/email.css") %>">
</head>
<body>
<%= render @view_module, @view_template, assigns %>
<p><%= gettext "An email sent by Mobilizon on %{instance}.", instance: @instance %></p>
</body>
</html>

+ 3
- 0
lib/mobilizon_web/templates/email/email.text.eex View File

@ -0,0 +1,3 @@
<%= render @view_module, @view_template, assigns %>
<%= gettext "An email sent by Mobilizon on %{instance}.", instance: @instance %>

lib/eventos_web/templates/email/password_reset.html.eex → lib/mobilizon_web/templates/email/password_reset.html.eex View File


lib/eventos_web/templates/email/password_reset.text.eex → lib/mobilizon_web/templates/email/password_reset.text.eex View File


lib/eventos_web/templates/email/registration_confirmation.html.eex → lib/mobilizon_web/templates/email/registration_confirmation.html.eex View File


lib/eventos_web/templates/email/registration_confirmation.text.eex → lib/mobilizon_web/templates/email/registration_confirmation.text.eex View File


lib/eventos_web/views/activity_pub/actor_view.ex → lib/mobilizon_web/views/activity_pub/actor_view.ex View File


lib/eventos_web/views/activity_pub/object_view.ex → lib/mobilizon_web/views/activity_pub/object_view.ex View File


lib/eventos_web/views/actor_view.ex → lib/mobilizon_web/views/actor_view.ex View File


lib/eventos_web/views/address_view.ex → lib/mobilizon_web/views/address_view.ex View File


lib/eventos_web/views/bot_view.ex → lib/mobilizon_web/views/bot_view.ex View File


lib/eventos_web/views/category_view.ex → lib/mobilizon_web/views/category_view.ex View File


lib/eventos_web/views/changeset_view.ex → lib/mobilizon_web/views/changeset_view.ex View File


lib/eventos_web/views/comment_view.ex → lib/mobilizon_web/views/comment_view.ex View File


+ 3
- 0
lib/mobilizon_web/views/email_view.ex View File

@ -0,0 +1,3 @@
defmodule Mobilizon.EmailView do
use MobilizonWeb, :view
end

lib/eventos_web/views/error_helpers.ex → lib/mobilizon_web/views/error_helpers.ex View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save