aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorMichael Foiani <mfoiani2019@communiyschoolnaples.org>2018-08-04 20:35:19 -0400
committerMichael Foiani <mfoiani2019@communiyschoolnaples.org>2018-08-04 20:35:19 -0400
commit8a4ac744830f61f1309ad83221a9736f0364fe1c (patch)
tree7cd6d2f44ebc0b708c6ee8aa63e1335663910f3e /src/components
parentdccdb5d99218396b59705d9852a081f4b657f446 (diff)
Deployed on firebase using the firebase.json config file. Also, fixed a spelling issue with forums.
Diffstat (limited to 'src/components')
-rw-r--r--src/components/mao-app.js6
-rw-r--r--src/components/mao-competitions.js2
-rw-r--r--src/components/mao-forums.js (renamed from src/components/mao-fourms.js)40
-rw-r--r--src/components/mao-tutoring.js2
4 files changed, 25 insertions, 25 deletions
diff --git a/src/components/mao-app.js b/src/components/mao-app.js
index 530d460..7fc57f1 100644
--- a/src/components/mao-app.js
+++ b/src/components/mao-app.js
@@ -205,7 +205,7 @@ class MaoApp extends connect(store)(LitElement) {
<a selected?="${_page === 'home'}" href="/home">Home</a>
<a selected?="${_page === 'tutor'}" href="/tutor">Tutoring</a>
<a selected?="${_page === 'compete'}" href="/compete">Compete</a>
- <a selected?="${_page === 'fourms'}" href="/fourms">Fourms</a>
+ <a selected?="${_page === 'forums'}" href="/forums">Forums</a>
<a selected?="${_page === 'account'}" href="/account">Account</a>
<a style="display: ${_isAdmin ? 'inline-block' : 'none'};"
selected?="${_page === 'admin'}" href="/admin">Admin</a>
@@ -219,7 +219,7 @@ class MaoApp extends connect(store)(LitElement) {
<a selected?="${_page === 'home'}" href="/home">Home</a>
<a selected?="${_page === 'tutor'}" href="/tutor">Tutoring</a>
<a selected?="${_page === 'compete'}" href="/compete">Compete</a>
- <a selected?="${_page === 'fourms'}" href="/fourms">Fourms</a>
+ <a selected?="${_page === 'forums'}" href="/forums">Forums</a>
<a selected?="${_page === 'account'}" href="/account">Account</a>
<a style="display: ${_isAdmin ? 'inline-block' : 'none'};"
selected?="${_page === 'admin'}" href="/admin">Admin</a>
@@ -232,7 +232,7 @@ class MaoApp extends connect(store)(LitElement) {
<mao-tutoring class="page" active?="${_page === 'tutor'}"></mao-tutoring>
<mao-competitions class="page" active?="${_page === 'compete'}"></mao-competitions>
<mao-account class="page" active?="${_page === 'account'}"></mao-account>
- <mao-fourms class="page" active?="${_page === 'fourms'}"></mao-fourms>
+ <mao-forums class="page" active?="${_page === 'forums'}"></mao-forums>
<mao-admin class="page" active?="${_page === 'admin'}"></mao-admin>
<my-view404 class="page" active?="${_page === 'view404'}"></my-view404>
</main>
diff --git a/src/components/mao-competitions.js b/src/components/mao-competitions.js
index 9a50d9e..2f3277f 100644
--- a/src/components/mao-competitions.js
+++ b/src/components/mao-competitions.js
@@ -219,7 +219,7 @@ class MaoCompetitions extends connect(store)(PageViewElement) {
<competition-element
id="dec-competition-element"
name="December"
- information="Dank ass regional competition"
+ information="Dank regional competition"
location="Miami, American Heritage"
initialized="${props.initialized}"
isRegistered="${props.registeredComps.includes('December')}"
diff --git a/src/components/mao-fourms.js b/src/components/mao-forums.js
index 0672da4..d77329a 100644
--- a/src/components/mao-fourms.js
+++ b/src/components/mao-forums.js
@@ -16,7 +16,7 @@ import { connect } from 'pwa-helpers/connect-mixin.js';
import { store } from '../store.js';
//These are the actions needed by this element.
-import { requestHours, createFourmPost } from '../actions/firebase.js';
+import { requestHours, createForumPost } from '../actions/firebase.js';
// We are lazy loading its reducer.
import firebase from '../reducers/firebase.js';
@@ -41,7 +41,7 @@ import '@polymer/paper-button/paper-button.js';
// Import other customElements
import '@vaadin/vaadin-date-picker/vaadin-date-picker.js';
-class MaoFourms extends connect(store)(PageViewElement) {
+class MaoForums extends connect(store)(PageViewElement) {
_render(props) {
return html`
${SharedStyles}
@@ -96,7 +96,7 @@ class MaoFourms extends connect(store)(PageViewElement) {
<paper-card elevation="0">
<div class="card-content">
- <h3>Create Fourm Post</h3>
+ <h3>Create Forum Post</h3>
<paper-input label="Subject" id="subject-field"></paper-input>
<paper-textarea label="Content" id="content-field"></paper-textarea>
</div>
@@ -105,7 +105,7 @@ class MaoFourms extends connect(store)(PageViewElement) {
<paper-button
raised
class ="info"
- on-tap ="${() => this.submitFourm()}">
+ on-tap ="${() => this.submitForum()}">
Create Post
</paper-button>
</div>
@@ -128,18 +128,18 @@ class MaoFourms extends connect(store)(PageViewElement) {
// This is the data from the store.
signedIn: Boolean,
authMessage: String,
- fourmPosts: Array
+ forumPosts: Array
}}
_stateChanged(state) {
this.signedIn = state.firebase.initialized;
this.authMessage = state.firebase.authMessage;
- this.fourmPosts = state.firebase.fourmPosts;
+ this.forumPosts = state.firebase.forumPosts;
this.updateSection();
}
- submitFourm() {
+ submitForum() {
if(this.shadowRoot) {
var subjectElement = this.shadowRoot.getElementById('subject-field');
var contentElement = this.shadowRoot.getElementById('content-field');
@@ -154,8 +154,8 @@ class MaoFourms extends connect(store)(PageViewElement) {
{
alert("Please fill out all fields when creating a form post.");
} else {
- if(confirm('Are you sure you want to submit this to the fourm page? It will be public to everyone.')) {
- store.dispatch(createFourmPost(subjectElement.value, contentElement.value));
+ if(confirm('Are you sure you want to submit this to the forum page? It will be public to everyone.')) {
+ store.dispatch(createForumPost(subjectElement.value, contentElement.value));
subjectElement.value = "";
contentElement.value = "";
@@ -170,21 +170,21 @@ class MaoFourms extends connect(store)(PageViewElement) {
var postsGrid = this.shadowRoot.getElementById('posts-grid');
postsGrid.innerHTML = "";
- for(var i = this.fourmPosts.length-1; i >=0; i--) {
+ for(var i = this.forumPosts.length-1; i >=0; i--) {
var paperCard = document.createElement('paper-card');
var cardContent = document.createElement('div');
- var fourmAuthor = document.createElement('h4');
- var fourmSubject = document.createElement('h3');
- var fourmContent = document.createElement('p');
+ var forumAuthor = document.createElement('h4');
+ var forumSubject = document.createElement('h3');
+ var forumContent = document.createElement('p');
- fourmAuthor.innerHTML = this.fourmPosts[i].email .replace('@communityschoolnaples.org', '');
- fourmSubject.innerHTML = this.fourmPosts[i].subject;
- fourmContent.innerHTML = this.fourmPosts[i].content;
+ forumAuthor.innerHTML = this.forumPosts[i].email .replace('@communityschoolnaples.org', '');
+ forumSubject.innerHTML = this.forumPosts[i].subject;
+ forumContent.innerHTML = this.forumPosts[i].content;
cardContent.classList.add('card-content');
- cardContent.appendChild( fourmAuthor);
- cardContent.appendChild( fourmSubject);
- cardContent.appendChild( fourmContent);
+ cardContent.appendChild( forumAuthor);
+ cardContent.appendChild( forumSubject);
+ cardContent.appendChild( forumContent);
paperCard.elevation = 0;
paperCard.appendChild( cardContent);
@@ -196,4 +196,4 @@ class MaoFourms extends connect(store)(PageViewElement) {
}
-window.customElements.define('mao-fourms', MaoFourms);
+window.customElements.define('mao-forums', MaoForums);
diff --git a/src/components/mao-tutoring.js b/src/components/mao-tutoring.js
index c25c570..9bce4a7 100644
--- a/src/components/mao-tutoring.js
+++ b/src/components/mao-tutoring.js
@@ -256,7 +256,7 @@ class MaoTutoring extends connect(store)(PageViewElement) {
<div class="card-actions">
<h3>Need Help Finiding A Tutor?</h3>
<p>Please meet with your friends to create tutring sessions.</p>
- <p>Also, ypu can try the fourm page if you want.</p>
+ <p>Also, you can try the fourm page if you want.</p>
<p>Otherwise, contact our tutoring coordinator <em>Mike Binkowski</em>.</p>
</div>