Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/clients/discord_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ class DiscordOauth2Client extends OAuth2Client {
'https://discord.com/oauth2/authorize', //Your service's authorization url
tokenUrl:
'https://discord.com/api/oauth2/token', //Your service access token url
refreshUrl:
'http://localhost:8084/auth/token',
refreshUrl: 'https://discord.com/auth/token',
redirectUri: redirectUri,
customUriScheme: customUriScheme);
}
4 changes: 2 additions & 2 deletions lib/globals/credentials.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'dart:io';

abstract class Credentials {
// static const APP_DISCORD_OAUTH_CLIENT_ID = "837629412328734740";
static const APP_DISCORD_OAUTH_CLIENT_ID = "839586949748228156";
static const APP_DISCORD_OAUTH_CLIENT_ID = "837629412328734740";
// static const APP_DISCORD_OAUTH_CLIENT_ID = "839586949748228156";
static const APP_DISCORD_OAUTH_REDIRECT_URI = "http://localhost:4200/login";
static const SCOPE = ['identify', 'guilds'];
static final appUserCredentialsFile = new File("~/.myapp/credentials.json");
Expand Down
10 changes: 6 additions & 4 deletions lib/pages/home/page/widgets/events_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ class EventsListWidget extends StatelessWidget {
event: {
'title': events[index].key.tournamentName +
events[index].key.tournamentDay,
'date': formatter.format(events[index].key.startTime),
'startTime': formatter.format(events[index].key.startTime),
'endTime': formatter.format(events[index].key.startTime),
'date': formatter.format(events[index].key.startTime.toLocal()),
'startTime':
formatter.format(events[index].key.startTime.toLocal()),
'endTime':
formatter.format(events[index].key.startTime.toLocal()),
'description': "Some description.",
'registrationOpenDateTime':
formatter.format(events[index].key.startTime)
formatter.format(events[index].key.startTime.toLocal())
},
eventTeams: events[index].value,
);
Expand Down