Skip to content

Commit

Permalink
First release
Browse files Browse the repository at this point in the history
  • Loading branch information
KoblerS committed Dec 30, 2024
1 parent b5098b6 commit 032738d
Show file tree
Hide file tree
Showing 25 changed files with 1,034 additions and 56 deletions.
Binary file added .github/Example_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/Example_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/Example_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/Example_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/Example_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/Example_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/Example_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions .github/workflows/branch-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Branch push
on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
permissions:
# Required to request the OIDC JWT Token
id-token: write
# Required when GH token is used to authenticate with private repo
contents: write

steps:
- uses: actions/checkout@v4

- name: Draft release
uses: KoblerS/release-drafter@v1
with:
version-prefix: ''
29 changes: 29 additions & 0 deletions .github/workflows/release-published.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release published
on:
release:
types:
- released

jobs:
build:
runs-on: ubuntu-latest
permissions:
# Required to request the OIDC JWT Token
id-token: write
# Required when GH token is used to authenticate with private repo
contents: write

steps:
- uses: actions/checkout@v4

- name: Update version in package.json
run: |
jq ".version = \"${{ github.event.release.tag_name}}\"" package.json > tmp.json && mv tmp.json package.json
- name: Commit changes
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git add package.json
git commit -m "Update version to ${{ github.event.release.tag_name}}"
git push
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# https://git-scm.com/docs/gitignore
# https://help.github.com/articles/ignoring-files
# Example .gitignore files: https://github.com/github/gitignore
/bower_components/
/node_modules/
66 changes: 66 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
module.exports = function(grunt) {
require("time-grunt")(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
eslint: {
options: {
configFile: ".eslintrc.json"
},
target: ["*.js"]
},
stylelint: {
simple: {
options: {
configFile: ".stylelintrc"
},
src: ["*.css"]
}
},
jsonlint: {
main: {
src: ["package.json", "translations/*.json"],
options: {
reporter: "jshint"
}
}
},
markdownlint: {
all: {
options: {
config: {
"default": true,
"line-length": false,
"blanks-around-headers": false,
"no-duplicate-header": false,
"no-inline-html": false,
"MD010": false,
"MD001": false,
"MD031": false,
"MD040": false,
"MD002": false,
"MD029": false,
"MD041": false,
"MD032": false,
"MD036": false,
"MD037": false,
"MD009": false,
"MD018": false,
"MD012": false,
"MD026": false,
"MD038": false
}
},
src: ["README.md", "CHANGELOG.md", "LICENSE.txt"]
}
},
yamllint: {
all: [".travis.yml"]
}
});
grunt.loadNpmTasks("grunt-eslint");
grunt.loadNpmTasks("grunt-stylelint");
grunt.loadNpmTasks("grunt-jsonlint");
grunt.loadNpmTasks("grunt-yamllint");
grunt.loadNpmTasks("grunt-markdownlint");
grunt.registerTask("default", ["eslint", "stylelint", "jsonlint", "markdownlint", "yamllint"]);
};
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Simon Kobler

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
159 changes: 159 additions & 0 deletions MMM-MVG.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
/*
* MMM-MVG
*
* By Simon Kobler
* MIT Licensed.
*
*/

.stationColumn {
padding-left: 10px;
padding-right: 10px;
min-width: 240px;
}

.MMM-MVG {
max-width: 400px;
}

.MMM-MVG table {
border-spacing: 0 .3em;
overflow: hidden;
}

.MMM-MVG tr.normal {
color: white;
}

.MMM-MVG tr.gray {
color: dimgray;
}

.MMM-MVG td.tram {
background: url(resources/tram.svg) no-repeat 0 0;
width: 30px;
padding-bottom: 5px;
background-size: 25px;
}

.MMM-MVG td.sbahn {
background: url(resources/s-bahn.svg) no-repeat 0 0;
width: 30px;
padding-bottom: 5px;
background-size: 25px;
}

.MMM-MVG td.bus, .MMM-MVG td.regional_bus {
background: url(resources/bus.svg) no-repeat 0 0;
width: 30px;
padding-bottom: 5px;
background-size: 25px;
}

.MMM-MVG td.ubahn {
background: url(resources/u-bahn.svg) no-repeat 0 0;
width: 30px;
padding-bottom: 5px;
background-size: 25px;
}

.MMM-MVG td.empty {
color: dimgray;
font-size: 16px;
width: 30px;
padding-bottom: 5px;
background-size: 25px;
}

.MMM-MVG td.timing {
text-align: right;
}

.U1 {
--bg: #52822F;
}
.U2 {
--bg: #C2243B;
}
.U3 {
--bg: #EC6726;
}
.U4 {
--bg: #00A984;
}
.U5 {
--bg: #BB7A00;
}
.U6 {
--bg: #0065AD;
}
.U7 {
--bg: #000;
}
.U8 {
--bg: #C2243B;
position: relative;
overflow: hidden;
display: inline-block;
z-index: 0;
}
.U8::after {
background-color: #EC6726;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
clip-path: polygon(100% 0, 0% 100%, 100% 100%);
z-index: -1;
content: '';
}
.S1 {
--bg: #1B9FC6;
}
.S2 {
--bg: #69A338;
}
.S3 {
--bg: #973083;
}
.S4 {
--bg: #136680;
}
.S5 {
--bg: #136680;
}
.S6 {
--bg: #008D5E;
}
.S7 {
--bg: #883B32;
}
.S8 {
--bg: #2D2B29;
}
.SEV {
--bg: #95368C;
}
.TRAM {
--bg: #E30613;
}
.BUS {
--bg: #00586A;
}

.transport {
background-color: var(--bg);
color: #ffffff;
padding: 0 clamp(.25rem, calc(.13rem + .32vw), .38rem);
text-align: center;
font-variant-numeric: lining-nums tabular-nums;
font-family: Manrope, sans-serif;
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 20px;
height: 20px;
border-radius: 4px;
white-space: nowrap;
}
Loading

0 comments on commit 032738d

Please sign in to comment.