From b6659cae84c8cadfdc177a26152de85b5fb0434f Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 9 Jul 2018 14:19:24 +0200 Subject: [PATCH] Mostly UI stuff Signed-off-by: Thomas Citharel --- .gitignore | 2 + config/config.exs | 9 + js/src/App.vue | 27 +- js/src/components/Account/Account.vue | 342 +++++++++--------- js/src/components/Event/Create.vue | 2 +- js/src/components/Event/Event.vue | 211 +++++++---- js/src/components/Home.vue | 61 ++-- js/src/components/NavBar.vue | 10 +- lib/eventos/events/events.ex | 14 + .../controllers/event_controller.ex | 17 +- .../controllers/participant_controller.ex | 16 + lib/eventos_web/router.ex | 4 +- lib/eventos_web/views/event_view.ex | 11 +- mix.exs | 3 +- mix.lock | 2 + ...8_alter_events_set_description_as_text.exs | 15 + 16 files changed, 450 insertions(+), 296 deletions(-) create mode 100644 lib/eventos_web/controllers/participant_controller.ex create mode 100644 priv/repo/migrations/20180706082208_alter_events_set_description_as_text.exs diff --git a/.gitignore b/.gitignore index d32c7a3c5..e17e12332 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,5 @@ erl_crash.dump .elixir_ls /doc +priv/static/GeoLite2-City.mmdb +.vscode/ \ No newline at end of file diff --git a/config/config.exs b/config/config.exs index 0d07197ca..627eb09fd 100644 --- a/config/config.exs +++ b/config/config.exs @@ -48,3 +48,12 @@ config :guardian, Guardian.DB, schema_name: "guardian_tokens", # default token_types: ["refresh_token"], # store all token types if not set sweep_interval: 60 # default: 60 minutes + +config :geolix, + databases: [ + %{ + id: :city, + adapter: Geolix.Adapter.MMDB2, + source: "priv/static/GeoLite2-City.mmdb" + } + ] diff --git a/js/src/App.vue b/js/src/App.vue index 4714027db..24816741b 100644 --- a/js/src/App.vue +++ b/js/src/App.vue @@ -9,6 +9,22 @@ enable-resize-watcher > + + + + + + + + {{ this.displayed_name }} + +