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

Moduel Not currently working #39

Open
wants to merge 68 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
3478782
Add alternative routes to all types of journey
bilbolodz May 23, 2018
32a5074
Update MMM-MyCommute.js
Knurlnheim Mar 8, 2019
f69c5d8
Update MMM-MyCommute.js
Knurlnheim Mar 8, 2019
aa439aa
Show travel time for calendar appointments
qistoph Mar 14, 2019
931fc57
Configurable how many calendar item routes to show
qistoph Mar 14, 2019
bf7fe35
Update README to include calendar based routes
qistoph Mar 14, 2019
d9234b5
Add maxCalendarTime option
qistoph Mar 14, 2019
4b8f4b9
Use event start time as arrival_time
qistoph Mar 15, 2019
37228fc
Merge branch 'calendar_support'
qistoph Mar 15, 2019
d87fdcc
Merge https://github.com/bilbolodz/MMM-MyCommute
qistoph Mar 15, 2019
1b681ea
Update fork status information and references
qistoph Mar 15, 2019
154de1a
update README
aaronpk Nov 26, 2017
9947776
Support suspend/resume
qistoph Mar 15, 2019
24f3a33
Limit refreshes on calendar events
qistoph Mar 15, 2019
aeb2452
Merge branch 'calendar_support'
qistoph Mar 15, 2019
9ffd0fd
Additional suspend changes
qistoph Mar 15, 2019
cbad3fb
Fix property of undefined error
qistoph Mar 29, 2019
6490f1c
Update issue templates
qistoph Apr 1, 2019
44f8dbe
Add labels to issue templates
qistoph Apr 1, 2019
623ef61
Add package-lock.json
qistoph Mar 29, 2019
b27b91a
Add linting
qistoph Mar 29, 2019
7021aa1
Fix linting errors
qistoph Mar 29, 2019
af075c9
Fix more linting errors
qistoph Mar 29, 2019
9b5880f
Remove trailing whitespace
qistoph Apr 1, 2019
3f78b82
Redo suspending to reshow module after hideDays
qistoph Apr 1, 2019
416fdf4
Keep checking while suspended
qistoph Apr 2, 2019
15d6c2a
Return error if status is not OK
qistoph May 20, 2019
e7992bc
Return error if no transits in transit directions
qistoph May 20, 2019
2bf41f7
Update info on Direction API and billing
qistoph Sep 5, 2019
580a26f
Additional billing information
qistoph Sep 5, 2019
5f271fa
Don't query while suspended
qistoph Sep 5, 2019
35608fe
Add last updated
qistoph Sep 6, 2019
c07e806
Make showing last updated configurable
qistoph Sep 6, 2019
00b92eb
Refresh only when actually resuming
qistoph Sep 6, 2019
41748bc
Support optional destination-specific origin
Sep 23, 2019
6723883
Merge branch 'destination_specific_origin'
qistoph Sep 28, 2019
36ad1fa
Hungarian translation
radokristof Feb 26, 2020
641dd67
dos2unix
qistoph Mar 8, 2020
0495dfe
Added translation option
radokristof Mar 5, 2020
5c4ba5d
Lint fixes
radokristof Mar 5, 2020
fc2b390
Show arrival time
radokristof Mar 5, 2020
a67b2d1
Added screenshot
radokristof Mar 6, 2020
34228dc
Merge part of PR #10
qistoph Mar 8, 2020
0ae62cd
dos2unix node_helper.js
qistoph Mar 8, 2020
649e369
Add dutch translation
qistoph Mar 8, 2020
f554b3d
Renamed variables
radokristof Mar 7, 2020
1eccdce
Add NL translation config
qistoph Mar 8, 2020
560eb1c
Updating Readme for Changes to API Key Formatting
handwrittenjello Mar 9, 2020
bac03c3
Merge pull request #11 from handwrittenjello/master
qistoph Mar 9, 2020
1f946b7
Add update notice about apiKey
qistoph Mar 9, 2020
609007d
Change Node version
qistoph Mar 9, 2020
e9a13ba
Fix not showing module
qistoph Mar 16, 2020
0a7276f
Fix for calendar transit trips and match colors
qistoph Mar 28, 2020
21fbd77
Forward server side errors to client
qistoph Apr 14, 2020
423f826
Add troubleshooting details in README
qistoph Apr 14, 2020
836c7df
Don't update after resume if data is still fresh
qistoph Jul 23, 2020
ca137b3
Fix reference typo
qistoph Jul 24, 2020
a915657
Support apiKey (upper K) and apikey (all lower)
qistoph Feb 23, 2021
e1e891c
npm update
qistoph Feb 23, 2021
33c6e47
Update Travis-CI node version
qistoph Feb 23, 2021
768d3da
Added german translations (#25)
TheDuffman85 Feb 23, 2021
fe96bcd
Added property showUpdatedPosition to change the position where to d…
TheDuffman85 Feb 24, 2021
eafbb9a
Added property showUpdatedPosition to change the position where to d…
TheDuffman85 Feb 24, 2021
9cf8ab6
Fixed strings must use doublequote quotes
TheDuffman85 Feb 24, 2021
dcdc373
Added a new property showError. Hides error message if false and rend…
TheDuffman85 Mar 2, 2021
d67d73f
Merge PR #27:
qistoph Mar 12, 2021
d530aea
Trim label of calendar events at 25 chars
qistoph Jan 7, 2022
8304907
Add rebuild donation info
qistoph Feb 15, 2022
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
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
vendor/
!/vendor/vendor.js
!/modules/default/**
!/modules/node_helper
!/modules/node_helper/**
!/modules/default/defaultmodules.js
17 changes: 17 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": "eslint:recommended",
"rules": {
"indent": ["error", "tab"],
"quotes": ["error", "double"],
"max-len": ["error", 250],
"curly": "error",
"camelcase": ["error", {"properties": "never"}],
"no-console": ["off"],
"no-unused-vars": ["error", {"args": "none"}]
},
"env": {
"browser": true,
"node": true,
"es6": true
}
}
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Bug report
about: Create a report to help us improve
title: 'Bug: '
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Running version**
Hash of the version you're using:
(Use `git rev-parse HEAD` in the MMM-MyCommute directory)

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: 'Feature: '
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
5 changes: 5 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "stylelint-config-standard",
"font-family-name-quotes": "double-where-recommended",
"block-no-empty": false
}
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: node_js
node_js:
- "10"
before_script:
- npm install grunt-cli -g
script: grunt
52 changes: 52 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
module.exports = function(grunt) {
require("time-grunt")(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
eslint: {
main: {
options: {
configFile: ".eslintrc.json",
},
src: ["*.js"]
}
},
stylelint: {
simple: {
options: {
configFile: ".stylelintrc"
},
src: ["*.css"]
}
},
jsonlint: {
main: {
src: ["package.json", ".eslintrc.json", ".stylelint"],
options: {
reporter: "jshint"
}
}
},
markdownlint: {
all: {
options: {
config: {
"default": true,
"MD013": false, //"MD013": {"tables": false},
"MD033": {"allowed_elements": ["br"]}
}
},
src: ["*.md"]
}
},
yamllint: {
all: [".travis.yml"]
}
});
grunt.loadNpmTasks("grunt-eslint");
grunt.loadNpmTasks("grunt-stylelint");
grunt.loadNpmTasks("grunt-jsonlint");
grunt.loadNpmTasks("grunt-markdownlint");
grunt.loadNpmTasks("grunt-staged");
grunt.registerTask("default", ["eslint", "stylelint", "jsonlint", "markdownlint"]);
grunt.registerTask("precommit", ["staged:eslint", "staged:stylelint", "staged:jsonlint", "staged:markdownlint"]);
};
31 changes: 16 additions & 15 deletions MMM-MyCommute.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
padding: 1px;
border-bottom: solid 1px #222;
min-height: 35px;
min-width: 300px;
min-width: 390px;
}

.MMM-MyCommute .transit-mode {
width: 24px;
text-align: center;
position: absolute;
top: 6px;
left: 0px;
left: 0;
display: block;
}

Expand All @@ -37,7 +37,7 @@
}

.MMM-MyCommute .row.with-multiple-routes .destination-label {
margin-right: 0px;
margin-right: 0;
}

.MMM-MyCommute .travel-time,
Expand All @@ -50,7 +50,7 @@
white-space: nowrap;
position: absolute;
top: 6px;
right: 0px;
right: 0;
line-height: 18px;
margin-top: 4px;
}
Expand All @@ -59,18 +59,18 @@
color: #be0e0e;
}


.MMM-MyCommute .travel-time.status-good {
.MMM-MyCommute .travel-time.status-good {
color: #a3ea80;
}
.MMM-MyCommute .travel-time.status-moderate {

.MMM-MyCommute .travel-time.status-moderate {
color: #f8dd70;
}
.MMM-MyCommute .travel-time.status-poor {

.MMM-MyCommute .travel-time.status-poor {
color: #ff5a44;
}


.MMM-MyCommute .route-summary {
font-size: 16px;
font-weight: 400;
Expand All @@ -81,21 +81,22 @@
line-height: 18px;
margin-bottom: 6px;
margin-left: 30px;
/*text-transform: uppercase;*/
text-align: left;

/* text-transform: uppercase; */
}

.MMM-MyCommute .route-summary-outer {
position: relative;
position: relative;
}

.MMM-MyCommute .route-summary-outer .route-summary {
margin-right: 60px;
}

.MMM-MyCommute .route-summary-outer .travel-time {
top: 0px;
margin-top: 0px;
top: 0;
margin-top: 0;
}

.MMM-MyCommute .route-summary .transit-leg {
Expand All @@ -114,5 +115,5 @@
fill: currentColor;
vertical-align: baseline;
margin-bottom: -2px;
margin-right: 2px;
}
margin-right: 2px;
}
Loading