Skip to content

Commit

Permalink
update name of app from "DWYL Calendar" to "GCal" #31
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed May 15, 2023
1 parent d31978b commit c92f972
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions lib/cal_web/controllers/google_auth_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ defmodule CalWeb.GoogleAuthController do
"""
def index(conn, %{"code" => code}) do
{:ok, token} = ElixirAuthGoogle.get_token(code, conn)
# {:ok, profile} = ElixirAuthGoogle.get_user_profile(token.access_token)
dbg(token)

conn
# |> put_flash(:person_email, profile.email)
|> put_flash(:token, token)
|> redirect(to: ~p"/app")
end
Expand Down
2 changes: 1 addition & 1 deletion lib/cal_web/controllers/page_html/home.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<div class="px-4 py-10 sm:px-6 sm:py-28 lg:px-8 xl:px-28 xl:py-32">
<div class="mx-auto max-w-xl lg:mx-0">
<p class="text-[2rem] mt-4 font-semibold leading-10 tracking-tighter text-zinc-900 ">
DWYL Calendar
Google Calendar Demo
</p>
<p class="mt-4 text-base leading-7 text-zinc-600">
A demo project where you can visualize and create events that are stored in your Google Calendar.
Expand Down
1 change: 0 additions & 1 deletion lib/cal_web/live/app_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ defmodule CalWeb.AppLive do
# If none is found, we redirect the user to the home page.
case get_access_token(socket) do
{:ok, access_token} ->
dbg(Timex.now(timezone))
{:ok, primary_calendar} = Gcal.get_calendar_details(access_token, "primary")
# Get event list and update socket
{:ok, event_list} = Gcal.get_event_list(access_token, Timex.now(timezone))
Expand Down

0 comments on commit c92f972

Please sign in to comment.