Skip to content

Commit

Permalink
fix(linting): reformat md files and fix linting in js
Browse files Browse the repository at this point in the history
  • Loading branch information
noxilixon committed Aug 28, 2024
1 parent 365ded1 commit f1981bf
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
1 change: 1 addition & 0 deletions .github/linters/.eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
ignorePatterns: ["layouts/page/single.json", "package.json", "package-lock.json", "assets/js/bootstrap.js"]
parserOptions:
ecmaVersion: latest
sourceType: module
env:
es6: true
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ To display up to date information, we fetch and generate some data during the bu
## Events

The events for the calendar are stored in simple markdown files. To create a new event, use the following commands:
```

```bash
hugo new content --kind event events/<EVENT_NAME>.de.md
hugo new content --kind event events/<EVENT_NAME>.en.md
```
Expand Down
2 changes: 1 addition & 1 deletion archetypes/event.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ end: "{{ dateFormat "2006-01-02T15:04:05" .Date }}"
location: "Berlin"
---

Description of the event ...
Description of the event ...
19 changes: 9 additions & 10 deletions assets/js/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ import iCalendarPlugin from '@fullcalendar/icalendar'

document.addEventListener('DOMContentLoaded', function () {
const calendarEl = document.getElementById('calendar')
var calendar = new Calendar(calendarEl, {
const calendar = new Calendar(calendarEl, {
plugins: [dayGridPlugin, iCalendarPlugin],

eventSources: [
{
url: "index.ics",
format: 'ics'
},
]
})
calendar.render()
})
{
url: 'index.ics',
format: 'ics'
}
]
})
calendar.render()
})
8 changes: 4 additions & 4 deletions assets/js/event.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { datetime, RRule, RRuleSet, rrulestr } from 'rrule'
import { rrulestr } from 'rrule'

const rrule_element = document.querySelector("#rrule");
const rrule_object = rrulestr(rrule_element.dataset.rrule)
rrule_element.innerHTML = rrule_object.toText()
const rruleElement = document.querySelector('#rrule')
const rruleObject = rrulestr(rruleElement.dataset.rrule)
rruleElement.innerHTML = rruleObject.toText()
1 change: 0 additions & 1 deletion content/events/freifunktreffen.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ location: "Rungestraße 20, 10179 Berlin"
Hier kannst du viele andere Freifunkende treffen und Kontakte schließen. Wir nutzen dieses Treffen, um Community-Themen zu besprechen und bei einem leckeren Getränk eine schöne Zeit zu haben. Die [c-base](https://www.openstreetmap.org/?mlat=52.51297&mlon=13.42011#map=17/52.51297/13.42011) ist an der Spree, ganz in der Nähe vom Bahnhof Jannowitzbrücke.

Du möchtest ein Thema vorschlagen, dass wir als Community besprechen sollten? Schicke deinen Themenvorschlag über die Mailingliste. Komm gerne einfach vorbei, wir freuen uns immer über neue Menschen.

0 comments on commit f1981bf

Please sign in to comment.