Skip to content

Dev #6

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 123 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
400c3e5
got a response for Firebase working fine. Just need to work on the fi…
Mar 9, 2018
cda2225
implemented iteration throw new Firebase data file
Mar 9, 2018
2558698
Merge branch 'master' of https://github.com/codeuniversity/s2_move_ap…
Mar 9, 2018
fa6904f
Implemented User Profile in the user menu
Mar 9, 2018
6286bf1
Merge branch 'master' of github.com:codeuniversity/s2_move_app into f…
Mar 9, 2018
e4fc810
Added loader dependency to externalize css
Mar 9, 2018
03dcc69
added style in a separate css sheet
Mar 9, 2018
0a7857d
Removes vuefire
Mar 9, 2018
4222da2
Implemented basic location navigation menu
Mar 10, 2018
4fde2a8
created profile
Mar 11, 2018
4a387b5
changed the name of the css folder to styles
Mar 11, 2018
949d3bb
Merge branch 'feat/search' into dev
Mar 11, 2018
4e70a41
Merge branch 'feat/profile' into dev
Mar 11, 2018
28aa92c
Implemented burger menu location navigation.
Mar 11, 2018
acd0309
started changing the profile
Mar 11, 2018
d508584
Made submenus inline.
Mar 12, 2018
7a479fd
Made menu 75% of screensize while keeping image ratio 4x3. Added togg…
Mar 13, 2018
f4bf5f4
Removed submenu2 (buildings) from menu.
Mar 13, 2018
d91d430
Won war over borders.
Mar 13, 2018
39eea30
Made menu open and close after selection of route.
Mar 13, 2018
caf24b1
Made content overlay togglble to close burger menu.
Mar 13, 2018
f598cfe
added profile
Mar 18, 2018
0abcab2
Made feedback container responsive.
Mar 19, 2018
428a2c7
Added default user image.
Mar 19, 2018
cc7b001
fixed the issue with the search and profile. Added one more component…
Mar 22, 2018
42801e9
added svgs
Mar 23, 2018
00183ee
Implemented menu toggle functionality as search-menu component commun…
Mar 23, 2018
e7ec43f
Fixed Vue property warn to avoid mutating a property.
Mar 23, 2018
583c32b
Added close button. Made smartphone clickable to close menu.
Mar 24, 2018
7ea2316
Added pointer cursor to toggle buttons
Mar 24, 2018
97604c6
Changed menu component.
Mar 24, 2018
2c0e496
Merge branch 'feat/menu' into dev
Mar 24, 2018
37de9e2
Fixed merging conflicts. Merged Menu into Header/Search component.
Mar 24, 2018
bc41e4d
Positioned elements of the search.
Mar 24, 2018
9d8bf7a
Added header flexbox.
Mar 24, 2018
eaaa6ed
Implemented header logos.
Mar 29, 2018
70aa594
Made menu child of dashboard. Implemented global state to show/hide m…
Mar 31, 2018
25c5f23
Made burger menu overlay entire page when opened.
Mar 31, 2018
197a43a
Fixed minor formatting.
Mar 31, 2018
6f5b754
testing Vuex
Apr 1, 2018
d4cf3d3
externalized axios as well as some of the methods and properties to Vuex
Apr 1, 2018
d811307
fixed some issues with the profile
Apr 1, 2018
96d5094
Made size of search responsive.
Apr 1, 2018
8fcc150
fixed ux/ui problems, by addid black background to the overlay. Also …
Apr 1, 2018
97bdd81
deleted test files and migrated the code to HamburgOttensen component…
Apr 1, 2018
0321263
fixed merging conflicts
Apr 1, 2018
764c532
Styled searchlist.
Apr 1, 2018
b49b0d1
Implemented profile component.
Apr 1, 2018
3543d63
Minor changes
Apr 2, 2018
3906339
added coordinates
Apr 2, 2018
5ff9809
Made profile height responsive.
Apr 2, 2018
c35ceb8
Made profile reponsive for very small screens.
Apr 2, 2018
0626c29
Turned all contact infos into link.
Apr 2, 2018
756cd00
Fixed broken menu.
Apr 2, 2018
7890db4
Made team searchable.
Apr 2, 2018
5ce19cd
changed style of seats
Apr 3, 2018
47b48cc
Replaced Sinnerschrader Logo.
Apr 5, 2018
c3e37b5
Implemented no user found option in SEARCH.
Apr 5, 2018
456d17c
Implemented clear search function in SEARCH.
Apr 5, 2018
45ce79e
Implemented clear search button in PROFILE.
Apr 5, 2018
adc7562
fixed css
Apr 6, 2018
dd71aaa
change dthe order
Apr 6, 2018
2de943d
Swapped email/phone icons.
Apr 6, 2018
4de76b2
Merge pull request #5 from codeuniversity/feat/maps_dev
dani-santos-code Apr 6, 2018
67a40f2
fixed merging conflicts
Apr 6, 2018
021b3d6
Minor changes.
Apr 6, 2018
e3b8bde
fixed css issues
Apr 6, 2018
3c4803f
made the axios to desks globally accessible
Apr 8, 2018
8b0d89a
maps
Apr 9, 2018
5d55df5
experimenting with Vuex and Firebase
Apr 9, 2018
32be824
Minor changes.
Apr 9, 2018
88a173d
Resolved merging conflicts.
Apr 10, 2018
0ee04b3
Made slack a firebase request.
Apr 10, 2018
73e9833
Minor changes
Apr 10, 2018
62c905b
Updated all users, iso only users with assigned seat.
Apr 10, 2018
960dba5
Resolved merging conflict.
Apr 10, 2018
3661dd4
Implemented basic desktop styling of Login.
Apr 10, 2018
5563779
Improved styling for desktop.
Apr 11, 2018
e18312b
Implemented logout button.
Apr 11, 2018
9e7caa8
Added close menu functionality on signout.
Apr 11, 2018
95abf86
Minor changes
Apr 11, 2018
0df2923
Implemented deskref.
Apr 11, 2018
715fc60
Responsive styling.
Apr 11, 2018
84ac985
Fixed styling of different components due to change of scope of CSS.
Apr 11, 2018
fa6b305
Implemented deskinfo in search list. And not checked in option.
Apr 11, 2018
9b6ced8
Implemented deskref in profile component.
Apr 11, 2018
5c4bfe6
Solved merging conflicts.
Apr 11, 2018
56f8385
added user from Google
Apr 12, 2018
b6bb578
added pitcure and name from Google to our user that is logged in
Apr 12, 2018
c7ea6ba
fixed the behaviour when you click outside the search. Now it won't c…
Apr 12, 2018
5ee49b0
refactoring
Apr 12, 2018
d5c7da3
added style to the dropdown
Apr 12, 2018
553c290
styling
Apr 12, 2018
07c081a
minor improvements dropdown
Apr 12, 2018
a0191e9
minor layout improvements (dropdown)
Apr 12, 2018
27c6eea
deleted the vue logo
Apr 12, 2018
4a56bf4
changed z/index of desk
Apr 12, 2018
0c14882
fixed issue with the seats overlapping our search
Apr 12, 2018
78a165c
fixes to the latest change
Apr 12, 2018
2bf2c8a
fixed the priblem with the seats overlapping the profile
Apr 12, 2018
9488f55
fixed the problem we had during sign out
Apr 12, 2018
c120b74
added comment to make it easier to understand
Apr 12, 2018
75c038d
Added auth user to store.
Apr 13, 2018
91af2d7
added latest changes in the dev
Apr 14, 2018
b12b875
changed user desk
Apr 15, 2018
c12874d
Created Google auth user in Vuex. Made user in menu auth user.
Apr 15, 2018
ca83e41
added user image
Apr 15, 2018
60bdd0e
Replaced auth user img and name in menu searchlist.
Apr 15, 2018
8a9326b
Replaced auth user img and name in profile.
Apr 15, 2018
9c42414
Restored no user found (<p>) visibility in search.
Apr 15, 2018
145de41
Minor changes.
Apr 15, 2018
3abfc11
changed style of pic
Apr 15, 2018
6f1b62b
made some changes
Apr 16, 2018
df6c4f2
Fixed vuex auth user
Apr 16, 2018
ce8e63e
minor adjustments
Apr 16, 2018
ea9545f
Added userref to desks. Added authUserRef to user.
Apr 16, 2018
f3f5543
Moved images, icons and fonts to static folder. Removed folders in as…
Apr 16, 2018
84d7803
Cleaned up store file.
Apr 16, 2018
4c3c060
small changes
Apr 19, 2018
a6dab5f
fixed the issue of having nobody sittingon the desk
Apr 20, 2018
b212fab
fixed merging conflicts
Apr 20, 2018
caf59c4
merged feat/checkin into dev
Apr 20, 2018
e1180f2
new build to be deployed
Apr 20, 2018
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
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "s2-move"
}
}
Binary file removed build/logo.png
Binary file not shown.
30 changes: 15 additions & 15 deletions build/webpack.base.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,27 +52,27 @@ module.exports = {
include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')]
},
{
test: /\.(png|jpe?g|gif)(\?.*)?$/,
test: /\.(png|svg|jpe?g|gif)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: utils.assetsPath('img/[name].[hash:7].[ext]')
}
},
{
test: /\.svg$/,
loader: 'vue-svg-loader', // `vue-svg` for webpack 1.x
options: {
// optional [svgo](https://github.com/svg/svgo) options
svgo: {
plugins: [
{removeDoctype: true},
{removeComments: true},
{cleanupIDs: false}
]
}
}
},
// {
// test: /\.svg$/,
// loader: 'vue-svg-loader', // `vue-svg` for webpack 1.x
// options: {
// // optional [svgo](https://github.com/svg/svgo) options
// svgo: {
// plugins: [
// {removeDoctype: true},
// {removeComments: true},
// {cleanupIDs: false}
// ]
// }
// }
// },
{
test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
loader: 'url-loader',
Expand Down
16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">

<title> Move App</title>
</head>
<body>
Expand Down
20 changes: 20 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@
"style-loader": "^0.20.1",
"svg-pan-zoom": "^3.5.3",
"svg-url-loader": "^2.3.1",
"v-click-outside": "^1.0.4",
"vue": "^2.5.2",
"vue-js-modal": "^1.3.12",
"vue-resource": "^1.3.6",
"vue-router": "^3.0.1"
"vue-router": "^3.0.1",
"vuetify": "^1.0.10",
"vuex": "^3.0.1"
},
"devDependencies": {
"autoprefixer": "^7.1.2",
Expand All @@ -35,7 +39,7 @@
"babel-plugin-transform-runtime": "^6.22.0",
"babel-plugin-transform-vue-jsx": "^3.5.0",
"babel-preset-env": "^1.3.2",
"babel-preset-stage-2": "^6.22.0",
"babel-preset-stage-2": "^6.24.1",
"chalk": "^2.0.1",
"copy-webpack-plugin": "^4.0.1",
"css-loader": "^0.28.9",
Expand Down
7 changes: 5 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ export default {
components: {
"appDashboard": Dashboard
}
}
}
</script>

<style>

@font-face {
font-family: 'MaisonNeue';
src: url('./assets/fonts/MaisonWEB-Regular.woff2') format('woff2');
src: url('../static/fonts/maison/MaisonWEB-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
Expand All @@ -33,11 +33,14 @@ body {
.body__text {
font-size: 20px;
}

.header {
margin-top: 180px;
}

h1 {
font size: 45px;
}


</style>
18 changes: 18 additions & 0 deletions src/api/desks.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* Fetching desks from the API (Firebase) --> to mock client-server processing */

const desks = {}

import axios from "axios";
export default {

getDesks(desks, {commit}) {
return axios.get("https://s2-move.firebaseio.com/desks.json")
.then(res => {
this.desks = res.data
commit("setDesks", this.desks);
// promise to update user
commit('updateUser');
})
.catch(error => console.log(error))
}
}
23 changes: 23 additions & 0 deletions src/api/users.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* Fetching users from the API (Firebase) --> to mock client-server processing */

// const users = {}
const userList = []

import axios from "axios";

export default {
getUsers(users, {commit}) {
return axios.get("https://s2-move.firebaseio.com/users.json")
.then(res => {
let users = res.data
for (let key in users) {
const user = users[key]
user.idRef = key
userList.push(user)
}
commit("setUsers", userList)
//promise to update users
})
.catch(error => console.log(error))
}
}
Binary file removed src/assets/icons/account-group.png
Binary file not shown.
Binary file removed src/assets/icons/calendar.png
Binary file not shown.
Binary file removed src/assets/icons/cellphone-iphone.png
Binary file not shown.
Binary file removed src/assets/icons/city.png
Binary file not shown.
Binary file removed src/assets/icons/email-outline.png
Binary file not shown.
Binary file removed src/assets/icons/lightbulb-on-outline.png
Binary file not shown.
Binary file removed src/assets/icons/phone-classic.png
Binary file not shown.
Binary file removed src/assets/icons/slack.png
Binary file not shown.
Binary file removed src/assets/icons/wikipedia.png
Binary file not shown.
Binary file removed src/assets/images/S2logo_purple_white.png
Binary file not shown.
62 changes: 22 additions & 40 deletions src/components/Auth.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<template>
<div class="login">
<h3> Sign In </h3>
<div id="firebaseui-auth-container">
</div>
<div id="loader">Loading...</div>
<img id="s2-logo" src="../../static/images/s-2-logo.png" alt="Sinnerschrader Logo">
<img id="move-logo" src="../../static/images/move-logo.png" alt="Sinnerschrader Logo">
<h1 class="login__headline"> Login via Google </h1>
<p class="login__text">Are you looking for a colleague, meeting room or space for a new team at SinnerSchrader?</p>
<div id="loader">Loading...</div>
<div id="firebaseui-auth-container"></div>
<h1 class="button__text">Let's go!</h1>
<br>
</div>

</template>

<script>
Expand All @@ -25,7 +28,10 @@ export default {
callbacks: {
signInSuccess: function(currentUser, credential, redirectUrl) {
// Return type determines whether we continue the redirect automatically or whether we leave that to developer to handle.
var user = signInSucces.currentUser;
console.log("Successfully logged in.", user)
return true;
// console.log("Hello", currentUser.email)
},
signInFailure: function(error) {
// Some unrecoverable error occurred during sign-in.
Expand All @@ -51,44 +57,20 @@ export default {
firebase.auth.GoogleAuthProvider.PROVIDER_ID
]
};

var ui = new firebaseui.auth.AuthUI(firebase.auth());
// The start method will wait until the DOM is loaded.
ui.start('#firebaseui-auth-container', uiConfig);
let ui = firebaseui.auth.AuthUI.getInstance();
if(!ui) {
ui = new firebaseui.auth.AuthUI(firebase.auth());
}
ui.start('#firebaseui-auth-container', uiConfig);
//This is what it was like before and it won"t work because it says the AuthUI instance is duplicated
// var ui = new firebaseui.auth.AuthUI(firebase.auth());
// ui.start('#firebaseui-auth-container', uiConfig);
}
}

</script>

<style>

<style lang="css">

span.firebaseui-idp-text.firebaseui-idp-text-short {
display: none;
}
li.firebaseui-list-item {
list-style-type: none;
margin-top: -50px;
}

button.firebaseui-idp-button.mdl-button.mdl-js-button.mdl-button--raised.firebaseui-idp-google.firebaseui-id-idp-button {
margin:0, auto;
}

ul.firebaseui-idp-list {

}

div#firebaseui-auth-container {
width: 300px;
margin-left: 500px;
margin-top: 100px;
}

h3 {
width: 300px;
margin-left: 615px;
margin-top: 30px;
}
</style>
@import "../../styles/css/auth.component.css"

</style>
48 changes: 38 additions & 10 deletions src/components/Dashboard.vue
Original file line number Diff line number Diff line change
@@ -1,24 +1,52 @@
<template>
<div>
<div>
<div class="dashboard">
<!-- App menu -->
<app-menu :class="{'menu-visible':hideMenu}"></app-menu>
<app-header></app-header>
</div>
<app-profile></app-profile>
</div>
<app-hamburg-ottensen></app-hamburg-ottensen>
<!-- <img src="/static/images/mapedited.svg"/>
--> </div>

</template>

<script>

import Header from "./Header.vue"
import Profile from "./Profile.vue"

import HamburgOttensen from "./maps/HamburgOttensen"
import Menu from "./Menu.vue"
import { mapActions } from 'vuex';

export default {
name: "appDashboard",
components: {
"appHeader": Header,
"appProfile": Profile
}
}
"appHamburgOttensen": HamburgOttensen,
"appMenu": Menu
},
computed: {
// refers to global state of menu
hideMenu() {
return this.$store.state.hideMenu;
}
},
methods: {
...mapActions([
"fetchUsers",
"fetchDesks",
"checkUserStatus",
]),
},
mounted() {
this.fetchUsers();
this.fetchDesks();
this.checkUserStatus();
}
}

</script>

<style lang="css" scoped>

@import "../../styles/css/dashboard.component.css"

</style>
Loading