Skip to content

Configured settings.json to eliminate whitespace on save #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
"typescript.tsdk": "node_modules/typescript/lib",
"files.trimTrailingWhitespace": true
}
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
<body>
<div id="root"></div>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAmAwkv8-x2I--ne-NtA3C_4E_-xLCsFJs" async defer></script>
</body>
</body>

</html>
4 changes: 2 additions & 2 deletions src/components/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ const Map: React.FC<MapProps> = ({ mapCenter, locations }) => {
let infoWindow = new google.maps.InfoWindow({
content: `<h5>${markerData.name}</h5>`
});

let marker = new google.maps.Marker({
position: new google.maps.LatLng(markerData.lat, markerData.lng),
map: map.current!,
title: markerData.name
});

marker.addListener('click', () => {
infoWindow.open(map.current!, marker);
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/SessionListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface SessionListItemProps {

const SessionListItem: React.FC<SessionListItemProps> = ({ isFavorite, onAddFavorite, onRemoveFavorite, onShowAlert, session, listType }) => {
const ionItemSlidingRef = useRef<HTMLIonItemSlidingElement>(null)

const dismissAlert = () => {
ionItemSlidingRef.current && ionItemSlidingRef.current.close();
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/ShareSocialFab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const ShareSocialFab: React.FC = () => {
const [loadingMessage, setLoadingMessage] = useState('')
const [showLoading, setShowLoading] = useState(false);

const openSocial = (network: string) => {
const openSocial = (network: string) => {
setLoadingMessage(`Posting to ${network}`);
setShowLoading(true);
};

return(
<>
<IonLoading
Expand Down
10 changes: 5 additions & 5 deletions src/data/sessions/sessions.actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ export const removeFavorite = (sessionId: number) => ({
} as const);

export const updateFilteredTracks = (filteredTracks: string[]) => ({
type: 'update-filtered-tracks',
filteredTracks
type: 'update-filtered-tracks',
filteredTracks
} as const);

export const setSearchText = (searchText?: string) => ({
type: 'set-search-text',
searchText
export const setSearchText = (searchText?: string) => ({
type: 'set-search-text',
searchText
} as const);

export type SessionsActions =
Expand Down
2 changes: 1 addition & 1 deletion src/data/user/user.actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const setHasSeenTutorial = (hasSeenTutorial: boolean) => async (dispatch:
type: 'set-has-seen-tutorial',
hasSeenTutorial
} as const);
}
}

export const setDarkMode = (darkMode: boolean) => ({
type: 'set-dark-mode',
Expand Down
10 changes: 5 additions & 5 deletions src/pages/About.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@
height: 30%;
text-align: center;
}

.about-header img {
max-height: 100%;
}

.about-info p {
color: var(--ion-color-dark);
text-align: left;
}

.about-info ion-icon {
margin-inline-end: 32px;
}

.ios .about-info {
text-align: center;
}
}
}
2 changes: 1 addition & 1 deletion src/pages/About.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const About: React.FC<AboutProps> = () => {
event={popoverEvent}
onDidDismiss={() => setShowPopover(false)}
>
<AboutPopover dismiss={() => setShowPopover(false)} />
<AboutPopover dismiss={() => setShowPopover(false)} />
</IonPopover>
</IonPage>
);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Account.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
img {
max-width: 140px;
border-radius: 50%;
}
}
}
6 changes: 3 additions & 3 deletions src/pages/Login.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
min-height: 200px;
text-align: center;
}

.login-logo img {
max-width: 150px;
}

.list {
margin-bottom: 0;
}

}
4 changes: 2 additions & 2 deletions src/pages/MainTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ const MainTabs: React.FC<MainTabsProps> = () => {
<IonTabs>
<IonRouterOutlet>
<Redirect exact path="/tabs" to="/tabs/schedule" />
{/*
{/*
Using the render method prop cuts down the number of renders your components will have due to route changes.
Use the component prop when your component depends on the RouterComponentProps passed in automatically.
Use the component prop when your component depends on the RouterComponentProps passed in automatically.
*/}
<Route path="/tabs/schedule" render={() => <SchedulePage />} exact={true} />
<Route path="/tabs/speakers" render={() => <SpeakerList />} exact={true} />
Expand Down
10 changes: 5 additions & 5 deletions src/pages/MapView.scss
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#map-view {
.map-canvas {
position: absolute;

height: 100%;
width: 100%;

background-color: transparent;

opacity: 0;
transition: opacity 250ms ease-in;
}

.show-map {
opacity: 1;
}

}
6 changes: 3 additions & 3 deletions src/pages/SessionDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ const SessionDetail: React.FC<SessionDetailProps> = ({ session, addFavorite, rem
}

const isFavorite = favoriteSessions.indexOf(session.id) > -1;
const toggleFavorite = () => {

const toggleFavorite = () => {
isFavorite ? removeFavorite(session.id) : addFavorite(session.id);
};
const shareSession = () => { };
const sessionClick = (text: string) => {
const sessionClick = (text: string) => {
console.log(`Clicked ${text}`);
};

Expand Down
2 changes: 1 addition & 1 deletion src/pages/SpeakerDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface DispatchProps {};
interface SpeakerDetailProps extends OwnProps, StateProps, DispatchProps {};

const SpeakerDetail: React.FC<SpeakerDetailProps> = ({ speaker }) => {

if (!speaker) {
return <div>Speaker not found</div>
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/SpeakerList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
.speaker-card ion-card-content {
flex: 1 1 auto;
padding: 0;
}
}
}
4 changes: 2 additions & 2 deletions src/pages/Support.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ const Support: React.FC<SupportProps> = () => {
</IonCol>
</IonRow>
</form>

</IonContent>

<IonToast
isOpen={showToast}
duration={3000}
Expand Down
14 changes: 7 additions & 7 deletions src/pages/Tutorial.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,35 @@
--background: transparent;
--border-color: transparent;
}

.swiper-slide {
display: block;
}

.slide-title {
margin-top: 2.8rem;
}

.slide-image {
max-height: 50%;
max-width: 60%;
margin: 36px 0;
pointer-events: none;
}

b {
font-weight: 500;
}

p {
padding: 0 40px;
font-size: 14px;
line-height: 1.5;
color: var(--ion-color-step-600, #60646b);

b {
color: var(--ion-text-color, #000000);
}
}

}
6 changes: 3 additions & 3 deletions src/pages/Tutorial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ interface TutorialProps extends OwnProps, DispatchProps { };
const Tutorial: React.FC<TutorialProps> = ({ history, setHasSeenTutorial }) => {
const [showSkip, setShowSkip] = useState(true);
const slideRef = useRef<HTMLIonSlidesElement>(null);
const startApp = async () => {

const startApp = async () => {
await setHasSeenTutorial(true);
history.push('/tabs/schedule', { direction: 'none' });
};

const handleSlideChangeStart = () => {
const handleSlideChangeStart = () => {
slideRef.current!.isEnd().then(isEnd => setShowSkip(!isEnd));
};

Expand Down