Skip to content
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

Dfki branch update with all changes from mcq-dev #634

Open
wants to merge 53 commits into
base: dfki
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
0ac425d
hide for us unnecessary UI components
Oct 16, 2019
48b95c2
change berkeley url to localhost in the app to connect to dev server …
Oct 16, 2019
06be975
readme: how to setup local server
st-patrick Oct 17, 2019
d55206d
remove hardcoded localhost url and get the url from the json connecti…
IIanFumenchu Oct 18, 2019
0760caf
first style changes
st-patrick Oct 21, 2019
90e94f1
add npm script to compile scss files to css
IIanFumenchu Oct 22, 2019
3c3a8ed
remove compiled www/css files from repo
IIanFumenchu Oct 22, 2019
b16a998
ignore in git css compiled files in www/css/
IIanFumenchu Oct 22, 2019
b02ccf9
add in README info about css compilation step
IIanFumenchu Oct 22, 2019
1c9f307
add basic scss for the diary page, and some basic elements of the new UI
IIanFumenchu Oct 22, 2019
9806c8f
work on dashboard tab and tab navigation
st-patrick Oct 22, 2019
bfef769
details, dashboard ui, ....
st-patrick Oct 23, 2019
9ad4994
building diary list UI,...
st-patrick Nov 12, 2019
116b95f
realized design for controls, added modes percentages for debugging
st-patrick Nov 18, 2019
0700e46
mainly work on D3 graphs with NVD3
st-patrick Nov 22, 2019
aac7743
mainly dashboard timeframe selection, donut chart and mode selection
st-patrick Nov 28, 2019
20037cf
add icons for bottom tabs nav and update dashboard top tabs nav
vacchi Dec 3, 2019
59d9217
remove unused scss code from tabs
vacchi Dec 3, 2019
cb69986
avatar radius 0
vacchi Dec 3, 2019
df53808
Merge remote-tracking branch 'origin/ui-dfki/main' into dfki
st-patrick Dec 5, 2019
8388164
get kg of CO2 emission values from distances
st-patrick Dec 5, 2019
3349f1f
merge ui-dfki/main into dfki
st-patrick Dec 5, 2019
0182821
update change btn mode
vacchi Dec 9, 2019
225c6a3
co2 value conversion and label translation
st-patrick Dec 9, 2019
4fd5275
add cumulative data for line chart
vacchi Dec 10, 2019
d4842a6
add average/goal lines to linechart
vacchi Dec 10, 2019
31081c9
update average/goal lines order
vacchi Dec 10, 2019
542bfa8
Merge remote-tracking branch 'origin/ui-dfki/linechart' into dfki
st-patrick Dec 10, 2019
1030153
back to english
st-patrick Dec 10, 2019
41569f5
add class for linechart dashboard
vacchi Dec 10, 2019
98b0d68
Merge remote-tracking branch 'origin/ui-dfki/linechart' into dfki
st-patrick Dec 10, 2019
8fb3787
add gradiant and different format for xaxis linechart ticks
vacchi Dec 10, 2019
026f1ce
Merge branch 'ui-dfki/linechart' into dfki
vacchi Dec 10, 2019
5dd1fba
calculate radius pie text from chart height
vacchi Dec 11, 2019
f3ca232
update text label inside donut chart
vacchi Dec 11, 2019
c1ce5d2
add function to get radius donut chart and add text to donut chart
vacchi Dec 11, 2019
71f9206
update font size donut label text
vacchi Dec 11, 2019
af78ed0
Merge remote-tracking branch 'origin/ui-dfki/piechart' into dfki
vacchi Dec 11, 2019
b34e433
update tabs active state style
vacchi Dec 11, 2019
47affc2
Merge remote-tracking branch 'origin/ui-dfki/tabs' into dfki
vacchi Dec 11, 2019
bff29d6
add format time for day option
vacchi Dec 11, 2019
06a2012
update splash screen
vacchi Dec 12, 2019
0932054
Merge branch 'ui-dfki/intro-screen' into dfki
vacchi Dec 12, 2019
aed374a
emission value to two decimal if is less then 1
vacchi Dec 13, 2019
b0e5b5e
add km text inside tooltip
vacchi Dec 13, 2019
24847a6
move nv3d style to nvd3.scss
vacchi Dec 16, 2019
f99f587
convert emission to km for tooltip
vacchi Dec 16, 2019
026ae0c
deploy
st-patrick Dec 16, 2019
68bc765
fix km on tooltip pie chart
vacchi Dec 16, 2019
de6c628
fix km on tooltip pie chart
vacchi Dec 16, 2019
02bdbe9
deactivate post trip notifications
st-patrick Dec 19, 2019
73e734d
remove the committed config file
Mar 17, 2020
a172804
Merge pull request #1 from mcq-dev/deploy
sosias Mar 17, 2020
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
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,11 @@ www/js/control/sync-settings.js
www/js/control/transition-notify-settings.js
config.xml
package.json

# ignore css from scss compiled files
www/css/*.css
*.css
*.css.map

**/.sass-cache/**

8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,16 @@ If you want to make only UI changes, (as opposed to modifying the existing plugi
```
$ bower install
```
1. Compile sass files to www/css

```
$ npm run sass-build
```

1. Configure values if necessary - e.g.
What you need to do here is e.g. copy "physical_device" json sample to the connectionConfig.json
The connectionConfig.json is a necessary file. Just copy connectionConfig.physical_device2localhost.json.sample,
replace the host with your own server on any other working server and then name it connectionConfig.json

```
$ ls www/json/*.sample
Expand Down
5 changes: 4 additions & 1 deletion package.serve.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
"displayName": "emission",
"scripts": {
"setup-serve": "./bin/download_settings_controls.js",
"serve": "phonegap --verbose serve"
"serve": "phonegap --verbose serve",
"sass-watch": "npm run sass-build && node-sass --watch scss -o www/css",
"sass-build": "node-sass scss -o www/css"
},
"devDependencies": {
"node-sass": "^4.12.0",
"phonegap": "7.1.1"
},
"dependencies": {
Expand Down
18 changes: 18 additions & 0 deletions scss/_diary.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* diary page start*/

.diary-entry{
.date-picker-button {
color: #303030;
padding: 0 15px;
margin-top: 4px;
box-shadow: none;
border-style: none;
background: transparent;
}

ion-item{
background: transparent;
}
}

/* diary page ends */
34 changes: 34 additions & 0 deletions scss/_icons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@font-face {
font-family: 'icomoon';
src: url('../fonts/icomoon.eot?gbrohl');
src: url('../fonts/icomoon.eot?gbrohl#iefix') format('embedded-opentype'),
url('../fonts/icomoon.ttf?gbrohl') format('truetype'),
url('../fonts/icomoon.woff?gbrohl') format('woff'),
url('../fonts/icomoon.svg?gbrohl#icomoon') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;
}

[class^="icon-"], [class*=" icon-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'icomoon' !important;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;

/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.icon-trips:before {
content: "\e901";
}
.icon-dashboard:before {
content: "\e900";
}

106 changes: 106 additions & 0 deletions scss/_nvd3.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@

/***
* styles for nvd3 charts on dahsboard / main-metrics.js
*/
/* hide vertical lines showing x-axis units (because design says so) */
.nv-x .tick line {
display: none;
}
/* hide y-axis line */
.nv-y .domain {
display: none;
}
/* label background styles */
.nvd3.nv-pie .nv-label {
rect {
fill-opacity: 1;
stroke-opacity: 1;
stroke: #91F2DC !important;
width: 66px;
height: 19px;
transform: translate(-33px, -13px);
}
}
.nvd3 text {
font-size: 10px;
}

// line chart on dashboard

.nvd3-linechart-dashboard {
.nvd3 {
.nv-axis {
.tick {
line {
stroke-dasharray: 12;
}
}
}
}

.nv-series-0 {
stroke-width: 1!important;
stroke: #91F2DC!important;
stroke-dasharray: 4;
fill: none;
.nv-area {
display: none;
}
}
.nv-series-1 {
stroke-width: 1!important;
stroke: #DF284B!important;
stroke-dasharray: 4;
fill: none;
.nv-area {
display: none;
}
}

.nv-series-2 {
.nv-area {
fill: url(#grad)
}
}

.legend {
display: flex;
justify-content: space-between;
margin-top: 10px;
span {
margin-left: 10px;
font-size: 12px;
text-decoration: underline;
&:before {
content: '';
width: 20px;
height: 5px;
margin-right: 3px;
border: none;
border-top: 2px dashed;
display: inline-block;
}
&:first-child:before {
border-color: #DF284B;
}
&:last-child:before {
border-color: #91F2DC;
}
}
}
}

.nv-pieLabels-text {
text:nth-child(1) {
font-size: 52px;
text-anchor: middle;
alignment-baseline: middle;
}

text:nth-child(2) {
text-anchor: middle;
font-size: 16px;
fill: rgba(0,0,0,0.5);
}

}
14 changes: 14 additions & 0 deletions scss/_splash.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.splash {
background-size: contain;
background-repeat: no-repeat;
background-color: #4febb6;
background-position: center;
center {

display: flex;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
}
}
8 changes: 8 additions & 0 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* DFKI OSL (Open Source Lab) corporate design
*/
$primary: #91F2DC;
$dfki-stable: #f5f5f5;
$attention: #df284b;

$default-text: black;
89 changes: 89 additions & 0 deletions scss/intro.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
@import "splash";

.slider {
height: 100%;
}

.slider-slide {
padding-top: 80px;
color: #000;
background-color: #fff;
text-align: center;
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-weight: 300;
}

.scroll {
min-width: 100%;
}
.nav-placeholder {
height: 30px;
}
.wide-as-needed {
overflow-y: scroll;
white-space: nowrap;
}
.intro-view {
/*background-color: #eeeeee;*/
}

.intro-title {
padding-top: 10%;
padding-right: 8%;
padding-left: 8%;
font-size: 18px;
}
.intro-text {
padding-top: 5%;
padding-right: 8%;
padding-left: 8%;
font-size: 15px;
line-height: 1.5;
text-align: left;
}
.intro-space {
height: 15px;
}
#intro-footer {
padding: 15px;
height: 90px;
}
.consent-title {
padding-top: 10%;
padding-right: 8%;
padding-left: 8%;
font-size: 18px;
}
.consent-text {
padding-top: 5%;
padding-right: 8%;
padding-left: 8%;
font-size: 15px;
line-height: 1.5;
text-align: left;
}
.consent-space {
height: 15px;
}
#consent-footer {
padding: 15px;
height: 90px;
position: absolute;
}
#consent-button {
height: 35px;
}
.refuse-popup {
font-size: 13px;
line-height: 1.5;
text-align: left;
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}
.refuse-popup .popup-buttons {
margin-left: 15%;
width: 70% !important;
}
.refuse-popup .popup-body {
padding-left: 8%;
padding-right: 8%;
}
7 changes: 7 additions & 0 deletions scss/ionic.app.css.map

Large diffs are not rendered by default.

40 changes: 37 additions & 3 deletions scss/ionic.app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,43 @@ $royal: #886aea !default;
$dark: #444 !default;
*/

// The path for our ionicons font files, relative to the built CSS in www/css
$ionicons-font-path: "../lib/ionic/fonts" !default;

@import "variables";


/*
* customize Ionic with our theme colors
*/
$button-color: $primary;
$toggle-on-default-bg: $primary;

$stable: $dfki-stable;
$light: white;
$energized: $attention;
$balanced: $primary;



/*
* other, non-brand customizations to Ionic css
*/
$bar-height: 0;
$tabs-height: 60px;
$tabs-text-font-size: 16px;
$tabs-text-font-size-side-icon: 16px;
$tabs-striped-border-width: 0;


// The path for our ionicons font files, relative to the built CSS in www/css
$ionicons-font-path: "../lib/ionic/fonts";


// avatar
$item-avatar-border-radius: 0;


// Include all of Ionic
@import "www/lib/ionic/scss/ionic";
@import "../www/lib/ionic/scss/ionic";

// customize
@import "ionic/tabs";
Loading