Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • tudo-fsinfo/events/workadventure-dialogs
  • nicolas.lenz/workadventure-dialogs
2 results
Show changes
Commits on Source (46)
Showing
with 424 additions and 1260 deletions
......@@ -3,8 +3,10 @@ pages:
image: node:14-alpine
stage: deploy
script:
- npm install
- npm run build
- "npm install"
- "npm run build"
- "apk add parallel brotli gzip"
- "parallel --will-cite \"gzip -9 -k {} && brotli -k {}\" ::: ./public/**/*.*"
artifacts:
paths:
- public
......
......@@ -26,13 +26,16 @@ npm run dev
Navigate to [localhost:5000](http://localhost:5000). You should see your app running. Edit a component file in `src`, save it, and reload the page to see your changes.
**DialogSets are loaded via this url schema:**
`http://localhost:5000/?dialogSet=hans`
By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the `sirv` commands in package.json to include the option `--host 0.0.0.0`.
If you're using [Visual Studio Code](https://code.visualstudio.com/) we recommend installing the official extension [Svelte for VS Code](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode). If you are using other editors you may need to install a plugin in order to get syntax highlighting and intellisense.
## Building and running in production mode
To create an optimised version of the app:
To create an optimized version of the app:
```bash
npm run build
......
This diff is collapsed.
......@@ -12,6 +12,7 @@
"@rollup/plugin-node-resolve": "^11.0.0",
"@rollup/plugin-typescript": "^8.0.0",
"@tsconfig/svelte": "^1.0.0",
"@types/lodash.debounce": "^4.0.6",
"prettier": "^2.2.1",
"prettier-plugin-svelte": "^2.2.0",
"rollup": "^2.3.4",
......@@ -28,6 +29,7 @@
"typescript": "^4.0.0"
},
"dependencies": {
"lodash.debounce": "^4.0.8",
"sirv-cli": "^1.0.0"
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Campusführung - AStA</title>
<link rel="icon" type="image/png" href="./favicon.png" />
<link rel="stylesheet" href="../global.css" />
</head>
<body>
<h1>Campusführung - AStA</h1></h1>
<iframe
height="450"
sandbox="allow-same-origin allow-scripts allow-popups"
src="https://video.oh14.de/videos/embed/d2e28209-3cc8-4423-a4c8-5e9df0d5381f?autoplay=1&title=0&warningTitle=0&peertubeLink=0"
frameborder="0"
allowfullscreen
></iframe>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Campusführung - Audimax</title>
<link rel="icon" type="image/png" href="./favicon.png" />
<link rel="stylesheet" href="../global.css" />
</head>
<body>
<h1>Campusführung - Audimax</h1></h1>
<iframe
height="450"
sandbox="allow-same-origin allow-scripts allow-popups"
src="https://video.oh14.de/videos/embed/4cd5fe6a-afb5-4596-a5c5-7a48178caae3?autoplay=1&title=0&warningTitle=0&peertubeLink=0"
frameborder="0"
allowfullscreen
></iframe>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Campusführung - Bibliothek</title>
<link rel="icon" type="image/png" href="./favicon.png" />
<link rel="stylesheet" href="../global.css" />
</head>
<body>
<h1>Campusführung - Bibliothek</h1></h1>
<iframe
height="450"
sandbox="allow-same-origin allow-scripts allow-popups"
src="https://video.oh14.de/videos/embed/681adff5-90fc-478f-8f03-644ff0034604?autoplay=1&title=0&warningTitle=0&peertubeLink=0"
frameborder="0"
allowfullscreen
></iframe>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Campusführung - Chemiegebäude</title>
<link rel="icon" type="image/png" href="./favicon.png" />
<link rel="stylesheet" href="../global.css" />
</head>
<body>
<h1>Campusführung - Chemiegebäude</h1></h1>
<iframe
height="450"
sandbox="allow-same-origin allow-scripts allow-popups"
src="https://video.oh14.de/videos/embed/6d05fbed-42db-4eda-801e-aba78093df91?autoplay=1&title=0&warningTitle=0&peertubeLink=0"
frameborder="0"
allowfullscreen
></iframe>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Campusführung - Emil-Figge-Straße 50</title>
<link rel="icon" type="image/png" href="./favicon.png" />
<link rel="stylesheet" href="../global.css" />
</head>
<body>
<h1>Campusführung - Emil-Figge-Straße 50</h1></h1>
<iframe
height="450"
sandbox="allow-same-origin allow-scripts allow-popups"
src="https://video.oh14.de/videos/embed/9d37797f-6de6-45e5-8043-81abb6d9286c?autoplay=1&title=0&warningTitle=0&peertubeLink=0"
frameborder="0"
allowfullscreen
></iframe>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Campusführung - Emil-Figge-Straße 61</title>
<link rel="icon" type="image/png" href="./favicon.png" />
<link rel="stylesheet" href="../global.css" />
</head>
<body>
<h1>Campusführung - Emil-Figge-Straße 61</h1></h1>
<iframe
height="450"
sandbox="allow-same-origin allow-scripts allow-popups"
src="https://video.oh14.de/videos/embed/98cc0ed0-3c9c-4cd7-b26c-8e318e340094?autoplay=1&title=0&warningTitle=0&peertubeLink=0"
frameborder="0"
allowfullscreen
></iframe>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Campusführung - Hörsaalgebäude 2</title>
<link rel="icon" type="image/png" href="./favicon.png" />
<link rel="stylesheet" href="../global.css" />
</head>
<body>
<h1>Campusführung - Hörsaalgebäude 2</h1></h1>
<iframe
height="450"
sandbox="allow-same-origin allow-scripts allow-popups"
src="https://video.oh14.de/videos/embed/957c6950-05d9-476d-87c3-400028530102?autoplay=1&title=0&warningTitle=0&peertubeLink=0"
frameborder="0"
allowfullscreen
></iframe>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Campusführung - Mathetower</title>
<link rel="icon" type="image/png" href="./favicon.png" />
<link rel="stylesheet" href="../global.css" />
</head>
<body>
<h1>Campusführung - Mathetower</h1></h1>
<iframe
height="450"
sandbox="allow-same-origin allow-scripts allow-popups"
src="https://video.oh14.de/videos/embed/60bf13eb-23e1-45e7-814f-ad7067668f0c?autoplay=1&title=0&warningTitle=0&peertubeLink=0"
frameborder="0"
allowfullscreen
></iframe>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Campusführung - Mensa</title>
<link rel="icon" type="image/png" href="./favicon.png" />
<link rel="stylesheet" href="../global.css" />
</head>
<body>
<h1>Campusführung - Mensa</h1></h1>
<iframe
height="450"
sandbox="allow-same-origin allow-scripts allow-popups"
src="https://video.oh14.de/videos/embed/867c04a8-5df3-4923-ac40-547161c2cae6?autoplay=1&title=0&warningTitle=0&peertubeLink=0"
frameborder="0"
allowfullscreen
></iframe>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Campusführung - OH12</title>
<link rel="icon" type="image/png" href="./favicon.png" />
<link rel="stylesheet" href="../global.css" />
</head>
<body>
<h1>Campusführung - OH12</h1></h1>
<iframe
height="450"
sandbox="allow-same-origin allow-scripts allow-popups"
src="https://video.oh14.de/videos/embed/3b8db9f2-305e-429f-a85b-b674960158ae?autoplay=1&title=0&warningTitle=0&peertubeLink=0"
frameborder="0"
allowfullscreen
></iframe>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Campusführung - OH14</title>
<link rel="icon" type="image/png" href="./favicon.png" />
<link rel="stylesheet" href="../global.css" />
</head>
<body>
<h1>Campusführung - OH14</h1></h1>
<iframe
height="450"
sandbox="allow-same-origin allow-scripts allow-popups"
src="https://video.oh14.de/videos/embed/10757272-7fe7-406b-9a16-5dc000532453?autoplay=1&title=0&warningTitle=0&peertubeLink=0"
frameborder="0"
allowfullscreen
></iframe>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Campusführung - Seminarraumgebäude</title>
<link rel="icon" type="image/png" href="./favicon.png" />
<link rel="stylesheet" href="../global.css" />
</head>
<body>
<h1>Campusführung - Seminarraumgebäude</h1></h1>
<iframe
height="450"
sandbox="allow-same-origin allow-scripts allow-popups"
src="https://video.oh14.de/videos/embed/a71c7bf3-b92d-4200-a0ce-5458d47144b0?autoplay=1&title=0&warningTitle=0&peertubeLink=0"
frameborder="0"
allowfullscreen
></iframe>
</body>
</html>
......@@ -130,12 +130,8 @@
"options": []
},
"startedToStudy": {
"text": "Wunderbar, ich kann deine, verzeihung, ich darf sie doch duzen, oder?\nAlso ich brauche deine Hilfe. Der Studiengang Informatik muss regelmäßig akkreditiert werden, damit wir ihn weiter anbieten dürfen. Jetzt haben leider die verdammten Studenten von der Fachschaft in den letzten genehnmigten Studienplan das Modul \"Angewandte Chaostheorie\" hineingeschmuggelt. Das ist bei uns leider niemanden aufgefallen, der Akkreditierungskommission vom Bildungsministerium aber schon. Wenn wir nicht bald nachweisen können, dass jemand dieses Modul auch belegt und erfolgreich abgeschlossen hat, wird uns die Akkreditierung entzogen und der Informatik-Studiengang muss eingestellt werden. Ich bitte sie, helfen sie mir!",
"addFacts": ["ftb/acceptedMainQuest"],
"options": [
{ "text": "Ich helfe gerne!", "linksToDialog": "agreeToHelp" },
{ "text": "Was geht mich das denn an?", "linksToDialog": "denyHelp" }
]
"text": "Das freut mich, herzlich willkommen hier bei uns. Ich bin leider gerade noch etwas beschäftigt. Viele Leute sind krank und ich muss daher einen Menge Arbeit erledigen. Kommen sie doch an einem anderen Tag mal wieder, da habe ich hoffentlich mehr Zeit.",
"options": [{ "text": "Ok", "linksToDialog": "start" }]
},
"denyHelp": {
"text": "Schade, ich dachte sie hätten das Zeug dazu. Nun gut, gehen sie studieren, ich finde schon selbst eine Lösung.",
......
......@@ -9,23 +9,67 @@
"options": [
{
"text": "Stehen sie öfter in Kellern herum, wenn ihnen langweilig ist? ",
"forbiddenFacts": ["hans/madeFirstContact"],
"forbiddenFacts": [
"hans/madeFirstContact",
"kitchenWaste/carriesStinkingBag",
"kitchenWaste/sentToOutsideWasteBin"
],
"linksToDialog": "firstContact"
},
{
"text": "Stehen sie öfter in Kellern herum, wenn ihnen langweilig ist? ",
"forbiddenFacts": [
"hans/madeFirstContact",
"kitchenWaste/sentToOutsideWasteBin"
],
"requiredFacts": ["kitchenWaste/carriesStinkingBag"],
"linksToDialog": "firstContactButCarriesWaste"
},
{
"text": "Darf ich ihnen meine Unterstützung anbieten?",
"requiredFacts": ["hans/madeFirstContact"],
"forbiddenFacts": ["hans/acceptedQuestToFindNewAlumniMembers"],
"forbiddenFacts": [
"hans/acceptedQuestToFindNewAlumniMembers",
"kitchenWaste/carriesStinkingBag"
],
"linksToDialog": "offerToHelp"
},
{
"text": "Hallo?",
"requiredFacts": [
"hans/madeFirstContact",
"kitchenWaste/carriesStinkingBag"
],
"forbiddenFacts": ["kitchenWaste/sentToOutsideWasteBin"],
"linksToDialog": "kitchenBagResponse"
},
{
"text": "Hallo?",
"requiredFacts": [
"kitchenWaste/carriesStinkingBag",
"kitchenWaste/sentToOutsideWasteBin"
],
"linksToDialog": "kitchenBagResponse2"
},
{
"text": "Hallo Herr Decker!",
"requiredFacts": ["hans/acceptedQuestToFindNewAlumniMembers"],
"forbiddenFacts": ["hans/completedQuestToFindNewAlumniMembers"],
"forbiddenFacts": [
"hans/completedQuestToFindNewAlumniMembers",
"kitchenWaste/carriesStinkingBag"
],
"linksToDialog": "askForQuestStatus"
}
]
},
"kitchenBagResponse": {
"text": "Sie haben Nerven, mich mit ihrem Müllbeutel zu bedrängen. Weg damit!",
"options": []
},
"kitchenBagResponse2": {
"text": "Sie scheinen diesen Beutel ja echt ins Herz geschlossen zu haben.\nFalls das mit dem Informatik-Studium nichts wird, empfehle ich sie gerne bei der EGD.",
"options": []
},
"firstContact": {
"text": "Oh, nett dass sie fragen. Ich habe hier mein Büro.\nHaben sie schon einmal darüber nachgedacht, bei den Alumni Mitglied zu werden? ",
"options": [
......@@ -68,6 +112,10 @@
}
]
},
"firstContactButCarriesWaste": {
"text": "Und laufen sie überall mit ihrem Müllbeutel herum? Herrgott, das stinkt ja vielleicht...",
"options": []
},
"offerToHelp": {
"text": "Wenn sie wollen, gerne: Kennen sie vielleicht noch Leute, die Mitglied bei den Alumni werden wollen? ",
"options": [
......
......@@ -11,6 +11,28 @@
"text": "Boah, was stinkt denn hier so?",
"linksToDialog": "askSmell",
"forbiddenFacts": ["kitchenWaste/acceptedQuest"]
},
{
"text": "Der Müllraum ist verschlossen, was soll ich jetzt machen?",
"requiredFacts": ["kitchenWaste/attemptedToOpenWasteRoomDoor"],
"forbiddenFacts": ["kitchenWaste/sentToOutsideWasteBin"],
"linksToDialog": "askWhatToDoWasteRoomLocked"
},
{
"text": "Ich habe den Müll rausgebracht!",
"requiredFacts": ["kitchenWaste/ejectedWaste"],
"forbiddenFacts": ["kitchenWaste/finishedQuest"],
"linksToDialog": "ejectedWaste"
}
]
},
"ejectedWaste": {
"text": "Toll. Hat den sonst immer deine Mutter raus gebracht, oder weshalb bist du da jetzt so stolz drauf? Aber wie dem auch sei, danke dir.",
"addFacts": ["kitchenWaste/finishedQuest"],
"options": [
{
"text": "Gern geschehen",
"linksToDialog": "start"
}
]
},
......@@ -48,6 +70,29 @@
"text": "Schade, ich will das auch nicht machen. Soll sich jemand anderes darum kümmern.",
"addFacts": ["kitchenWaste/rejectedQuest"],
"options": []
},
"askWhatToDoWasteRoomLocked": {
"text": "Das ist natürlich ungünstig.",
"options": [
{
"text": "Was du nicht sagst...",
"linksToDialog": "askWhatToDoWasteRoomLocked2"
}
]
},
"askWhatToDoWasteRoomLocked2": {
"text": "Na gut, geh mal wieder in den Keller, aber diesmal den ganzen Kellerflur entlang. Am Ende raus, da sollte vor der Tür direkt ein Müllcontainer stehen.",
"options": [
{
"text": "Ok.",
"linksToDialog": "askWhatToDoWasteRoomLocked3"
}
]
},
"askWhatToDoWasteRoomLocked3": {
"addFacts": ["kitchenWaste/sentToOutsideWasteBin"],
"text": "Na dann lauf. Du solltest den Gestank ja beseitigen, nicht im ganzen Gebäude verteilen!",
"options": []
}
}
}
......@@ -9,13 +9,16 @@
"options": [
{
"text": "Bin ich hier richtig bei Herrn Dißmann?",
"forbiddenFacts": ["stefan/madeFirstContact"],
"forbiddenFacts": [
"stefan/madeFirstContact",
"kitchenWaste/carriesStinkingBag"
],
"linksToDialog": "firstContact"
},
{
"text": "Halten sie nicht die DAP1-Vorlesung?",
"requiredFacts": ["stefan/madeFirstContact"],
"forbiddenFacts": ["stefan/askedAfterDap1"],
"forbiddenFacts": ["kitchenWaste/carriesStinkingBag"],
"linksToDialog": "dap1question"
},
{
......@@ -24,8 +27,16 @@
"stefan/madeFirstContact",
"hans/acceptedQuestToFindNewAlumniMembers"
],
"forbiddenFacts": ["stefan/askedToJoinAlumni"],
"forbiddenFacts": [
"stefan/askedToJoinAlumni",
"kitchenWaste/carriesStinkingBag"
],
"linksToDialog": "joinAlumniQuestion"
},
{
"text": "Hallo?",
"requiredFacts": ["kitchenWaste/carriesStinkingBag"],
"linksToDialog": "kitchenBagResponse"
}
]
},
......@@ -41,7 +52,19 @@
},
"dap1question": {
"text": "Ja, schon seit längerer Zeit und auch in diesem Semester wieder.",
"addFacts": ["stefan/askedAfterDap1"],
"options": [
{
"text": "Erzählen sie mir bitte mehr",
"linksToDialog": "showDap1Video"
},
{
"text": "Interessant",
"linksToDialog": "start"
}
]
},
"showDap1Video": {
"peertubeVideoId": "56907252-8545-4bc3-89ed-a3fa2e3cf850",
"options": [
{
"text": "Interessant",
......@@ -76,6 +99,10 @@
"linksToDialog": "start"
}
]
},
"kitchenBagResponse": {
"text": "Mein Büro ist nicht der Müllraum! Bring das bitte weg.",
"options": []
}
}
}