Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Adapt for Wezuwiusz
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrbadelek committed Jul 15, 2024
1 parent 78eb70a commit 1532547
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 31 deletions.
3 changes: 2 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
MIT License

Copyright (c) Wulkanowy 2021 - now
Copyright (c) Wezuwiusz 2024 - now
Copyright (c) Wulkanowy 2021 - 2024

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Wulkanowy Messages
# Wezuwiusz Messages

[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/wulkanowy/messages/deploy.yml?branch=master&style=flat-square)](https://github.com/wulkanowy/messages/actions)
[![GitHub deployments](https://img.shields.io/github/deployments/wulkanowy/messages/github-pages?style=flat-square)](https://messages.wulkanowy.net.pl/)
Expand Down
7 changes: 0 additions & 7 deletions generator/src/main/kotlin/end.kt

This file was deleted.

6 changes: 3 additions & 3 deletions generator/src/main/kotlin/html.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ fun generateHtml(messages: List<Message>): String = buildString {
lang = "pl"
head {
meta { charset = "UTF-8" }
title("Wulkanowy Messages")
title("Wezuwiusz Messages")
}
body {
h1 { +"Wulkanowy Messages" }
h1 { +"Wezuwiusz Messages" }
ul {
messages.forEach {
li {
Expand All @@ -33,7 +33,7 @@ fun generateHtml(messages: List<Message>): String = buildString {
}
}
footer {
+"© ${LocalDate.now().year} by Wulkanowy | "
+"© ${LocalDate.now().year} by Wezuwiusz | "
+"wygenerowano ${LocalDateTime.now()} | "
a("v1.json") {
+"raw json"
Expand Down
2 changes: 0 additions & 2 deletions generator/src/main/kotlin/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@ fun main() {
responseMap = ApiEndpointsResponseMapping,
)
val html = generateHtml(filteredMessages)
val end = json.encodeToString(endMessage)

File("../dist/v1.json").writeText(messagesV1)
File("../dist/end.json").writeText(end)
File("../dist/mapping1.json").writeText(mappingV1)
File("../dist/mapping2.json").writeText(mappingV2)
File("../dist/mapping3.json").writeText(mappingV3)
Expand Down
11 changes: 11 additions & 0 deletions generator/src/main/kotlin/messages.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
import io.github.wulkanowy.messages.pojo.*

val messages = listOf(
Message(
id = 96,
title = "Witamy w Dzienniczku Wezuwiusz!",
content = "Zapraszamy do uczestniczenia w tej przygodzie oraz do dołączenia do naszego kanału oraz chatu na telegramie.",
priority = MessagePriority.LOW,
destinationUrl = "https://t.me/neowulkanowy",
messageTypes = listOf(
MessageType.DASHBOARD_MESSAGE,
),
isVisible = true
),
Message(
id = 95,
title = "Wulkanowy powstał ponad 8 lat temu...",
Expand Down
17 changes: 0 additions & 17 deletions pojos/src/main/kotlin/EndMessage.kt

This file was deleted.

0 comments on commit 1532547

Please sign in to comment.