diff --git a/src/components/UserMessageSection.jsx b/src/components/UserMessageSection.jsx index c012c2d..c5a06c2 100644 --- a/src/components/UserMessageSection.jsx +++ b/src/components/UserMessageSection.jsx @@ -6,12 +6,13 @@ import UserMessage from './UserMessage'; export function UserMessageSection({ setjsonPathMap, jsonPathMap }) { return ( + ( (
)} /> + ); } diff --git a/src/data/ContributionResources/Conventions.jsx b/src/data/ContributionResources/Conventions.jsx index 6e8e5f9..af494db 100644 --- a/src/data/ContributionResources/Conventions.jsx +++ b/src/data/ContributionResources/Conventions.jsx @@ -1,4 +1,4 @@ -export default { +const Convention = { 'user-responses': [ { name: 'Code Conventions, please.', @@ -17,3 +17,5 @@ export default { gooey: 'Conventions help a lot to keep code readable, even if many different people contribute to it. For what would you like to see our conventions?', }, }; + +export default Convention; \ No newline at end of file diff --git a/src/data/ContributionResources/Git.jsx b/src/data/ContributionResources/Git.jsx index a2b6e8c..f6691e9 100644 --- a/src/data/ContributionResources/Git.jsx +++ b/src/data/ContributionResources/Git.jsx @@ -1,22 +1,23 @@ -import ContributionResources from "."; +// import index from "./index"; -export default { - 'user-responses': [ - { - name: 'How to work with Git?', - link: 'http://learngitbranching.js.org/', - }, - { - name: 'How to work with forks?', - link: 'https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/working-with-forks' - }, - { - name: 'Done. What else should I know about?', - child: ContributionResources, - }, - ], - 'gooey-response': { - gooey: 'New to Git / GitHub? Check this out.', +const Git = { + 'user-responses': [ + { + name: 'How to work with Git?', + link: 'http://learngitbranching.js.org/', }, - }; - \ No newline at end of file + { + name: 'How to work with forks?', + link: 'https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/working-with-forks' + }, + // { + // name: 'Done. What else should I know about?', + // child: index, + // }, + ], + 'gooey-response': { + gooey: 'New to Git / GitHub? Check this out.', + }, +}; + +export default Git; \ No newline at end of file diff --git a/src/data/ContributionResources/Workspace.jsx b/src/data/ContributionResources/Workspace.jsx index a353066..5be0b50 100644 --- a/src/data/ContributionResources/Workspace.jsx +++ b/src/data/ContributionResources/Workspace.jsx @@ -1,20 +1,21 @@ -export default { - 'user-responses': [ - { - name: 'I`m impatient. Give me the quick start!', - link: 'https://github.com/MovingBlocks/Terasology/wiki/Contributor-Quick-Start', - }, - { - name: 'I want to learn more about the whole project setup!', - link: 'https://github.com/MovingBlocks/Terasology/wiki/Project-Overview', - }, - { - name: 'Done. Now I`m ready to code!', - jump: 'u0u0u3u0' - }, - ], - 'gooey-response': { - gooey: 'Let`s set up your workspace!', +const Workspace = { + 'user-responses': [ + { + name: 'I`m impatient. Give me the quick start!', + link: 'https://github.com/MovingBlocks/Terasology/wiki/Contributor-Quick-Start', }, - }; - \ No newline at end of file + { + name: 'I want to learn more about the whole project setup!', + link: 'https://github.com/MovingBlocks/Terasology/wiki/Project-Overview', + }, + { + name: 'Done. Now I`m ready to code!', + jump: 'u0u0u3u0' + }, + ], + 'gooey-response': { + gooey: 'Let`s set up your workspace!', + }, +}; + +export default Workspace; \ No newline at end of file diff --git a/src/data/ContributionResources/index.jsx b/src/data/ContributionResources/index.jsx index 37f4df2..d906f98 100644 --- a/src/data/ContributionResources/index.jsx +++ b/src/data/ContributionResources/index.jsx @@ -3,7 +3,7 @@ import Conventions from "./Conventions"; import Workspace from "./Workspace"; import Contributor from "../Terasology/Contributor"; -export default { +const index = { 'user-responses': [ { name: 'How do I work with Git / GitHub?', @@ -34,3 +34,5 @@ export default { gooey: "You're a new contributor? Awesome and welcome! How can I help you?", }, }; + +export default index; \ No newline at end of file diff --git a/src/data/DestinationSol/About.jsx b/src/data/DestinationSol/About.jsx index bda7494..b3e80d0 100644 --- a/src/data/DestinationSol/About.jsx +++ b/src/data/DestinationSol/About.jsx @@ -1,4 +1,4 @@ -export default { +const About = { 'user-responses': [ { name: 'Tell me more', @@ -15,3 +15,5 @@ export default { 'Destination Sol is an open-source, free-to-play hardcore arcade/RPG. You start as a pilot of a small fighter ship on the edge of a star system, and you are free to explore the game world, land on planets, fight with enemies, upgrade your ship and equipment, hire mercenaries, mine asteroids, and more.', }, }; + +export default About; \ No newline at end of file diff --git a/src/data/DestinationSol/Contributor.jsx b/src/data/DestinationSol/Contributor.jsx index 7e496e4..5c80216 100644 --- a/src/data/DestinationSol/Contributor.jsx +++ b/src/data/DestinationSol/Contributor.jsx @@ -1,6 +1,6 @@ import ContributionResources from '../ContributionResources'; -export default { +const Contributor = { 'user-responses': [ { name: 'Show me the prerequisites and resources. ', @@ -41,3 +41,5 @@ export default { gooey: 'Here are some contribution areas..', }, }; + +export default Contributor; \ No newline at end of file diff --git a/src/data/DestinationSol/Player.jsx b/src/data/DestinationSol/Player.jsx index 1d077d3..431bbb8 100644 --- a/src/data/DestinationSol/Player.jsx +++ b/src/data/DestinationSol/Player.jsx @@ -1,4 +1,4 @@ -export default { +const Player = { 'user-responses': [ { name: 'No. I wish to download DestinationSol.', @@ -14,3 +14,5 @@ export default { gooey: 'Do you have the game downloaded?', }, }; + +export default Player; \ No newline at end of file diff --git a/src/data/DestinationSol/index.jsx b/src/data/DestinationSol/index.jsx index cb054b0..9444ed3 100644 --- a/src/data/DestinationSol/index.jsx +++ b/src/data/DestinationSol/index.jsx @@ -2,7 +2,7 @@ import AboutDS from './About'; import Player from './Player'; import Contributor from './Contributor'; -export default { +const index = { 'user-responses': [ { name: 'What is DestinationSol? 🧐', @@ -26,3 +26,5 @@ export default { gooey: 'What about DestinationSol?', }, }; + +export default index; \ No newline at end of file diff --git a/src/data/Terasology/About.jsx b/src/data/Terasology/About.jsx index 8735db6..9253b66 100644 --- a/src/data/Terasology/About.jsx +++ b/src/data/Terasology/About.jsx @@ -1,7 +1,7 @@ import Contributor from "./Contributor"; import Player from "./Player"; -export default { +const About = { 'user-responses': [ { name: 'Cool! Tell me more!', @@ -25,3 +25,5 @@ export default { 'Terasology is a super extensible open source voxel-based game. Born from a Minecraft-inspired tech demo, it is gradually becoming a stable platform for all sorts of gameplay settings in a voxel world.', }, }; + +export default About; \ No newline at end of file diff --git a/src/data/Terasology/Art/2D.jsx b/src/data/Terasology/Art/2D.jsx index c85defb..927e1b7 100644 --- a/src/data/Terasology/Art/2D.jsx +++ b/src/data/Terasology/Art/2D.jsx @@ -1,4 +1,4 @@ -export default { +const twoD = { 'user-responses': [ { name: 'Tell me about Textures.', @@ -13,3 +13,5 @@ export default { gooey: 'Terasology 2D Art is all about block textures, icons and so on.', }, }; + +export default twoD; \ No newline at end of file diff --git a/src/data/Terasology/Art/3D.jsx b/src/data/Terasology/Art/3D.jsx index b27fed3..6b7ae33 100644 --- a/src/data/Terasology/Art/3D.jsx +++ b/src/data/Terasology/Art/3D.jsx @@ -1,4 +1,4 @@ -export default { +const threeD = { 'user-responses': [ { name: 'Creation of animated models with Blender', @@ -9,3 +9,5 @@ export default { gooey: 'What in 3D Modeling?', }, }; + +export default threeD; \ No newline at end of file diff --git a/src/data/Terasology/Art/Sound.jsx b/src/data/Terasology/Art/Sound.jsx index 2c2d931..1d51556 100644 --- a/src/data/Terasology/Art/Sound.jsx +++ b/src/data/Terasology/Art/Sound.jsx @@ -1,4 +1,4 @@ -export default { +const Sound = { 'user-responses': [ { name: 'Video Game Sound Design 101', @@ -9,3 +9,5 @@ export default { gooey: 'Here is a nice resource for Sound Design :)', }, }; + +export default Sound; \ No newline at end of file diff --git a/src/data/Terasology/Art/index.jsx b/src/data/Terasology/Art/index.jsx index 82f17af..85106a6 100644 --- a/src/data/Terasology/Art/index.jsx +++ b/src/data/Terasology/Art/index.jsx @@ -2,7 +2,7 @@ import TwoD from './2D' import ThreeD from './3D' import Sound from './Sound' -export default { +const index = { 'user-responses': [ { name: 'Show me open tasks related to art', @@ -25,3 +25,5 @@ export default { gooey: 'What type of art would you like to contribute?', }, }; + +export default index; \ No newline at end of file diff --git a/src/data/Terasology/Contact.jsx b/src/data/Terasology/Contact.jsx index c55c5cb..367e53e 100644 --- a/src/data/Terasology/Contact.jsx +++ b/src/data/Terasology/Contact.jsx @@ -1,17 +1,18 @@ -export default { - 'user-responses': [ - { - name: "Sounds great, I'd like to chat. Do you have Discord?", - link: 'https://discord.gg/terasology', - }, - { - name: "Nice, I'm old school, is there a forum?", - link: 'https://forum.terasology.org/', - } - ], - 'gooey-response': { - gooey: - 'The Terasology community can help you 😉 You only need to ask.', +const Contact = { + 'user-responses': [ + { + name: "Sounds great, I'd like to chat. Do you have Discord?", + link: 'https://discord.gg/terasology', }, - }; - \ No newline at end of file + { + name: "Nice, I'm old school, is there a forum?", + link: 'https://forum.terasology.org/', + } + ], + 'gooey-response': { + gooey: + 'The Terasology community can help you 😉 You only need to ask.', + }, +}; + +export default Contact; \ No newline at end of file diff --git a/src/data/Terasology/Contributor.jsx b/src/data/Terasology/Contributor.jsx index 7871675..4d34c42 100644 --- a/src/data/Terasology/Contributor.jsx +++ b/src/data/Terasology/Contributor.jsx @@ -4,7 +4,7 @@ import Documentation from './Documentation'; import Design from './Design'; import Contact from './Contact'; -export default { +const Contributor = { 'user-responses': [ { name: "I'm a developer. I code. Where is my coffee? ☕", @@ -31,3 +31,5 @@ export default { gooey: 'So I heard you want to contribute? Tell me who you are and I tell you where to go.', }, }; + +export default Contributor; \ No newline at end of file diff --git a/src/data/Terasology/Design/index.jsx b/src/data/Terasology/Design/index.jsx index 0627469..346ac10 100644 --- a/src/data/Terasology/Design/index.jsx +++ b/src/data/Terasology/Design/index.jsx @@ -1,4 +1,4 @@ -export default { +const index = { 'user-responses': [ { name: 'Call me "Bob the Builder" and tell me about in-game structures.', @@ -17,3 +17,5 @@ export default { gooey: 'What would you like to design?', }, }; + +export default index; \ No newline at end of file diff --git a/src/data/Terasology/Development/Architecture.jsx b/src/data/Terasology/Development/Architecture.jsx index 60a484c..fb3fe96 100644 --- a/src/data/Terasology/Development/Architecture.jsx +++ b/src/data/Terasology/Development/Architecture.jsx @@ -2,23 +2,24 @@ import ECS from "./ECS"; import Engine from "./Engine"; import Modules from "./Modules"; -export default { - 'user-responses': [ - { - name: "Give me the architecture deep dive!", - child: ECS - }, - { - name: "I'm interested in the engine.", - child: Engine - }, - { - name: "I'm all-in for modularity.", - child: Modules - } - ], - 'gooey-response': { - gooey: "Terasology mainly consists of an engine and a variety of modules, all based on our core architecture: the Entity-Component-System. About which would you like to learn more?", +const Architechture = { + 'user-responses': [ + { + name: "Give me the architecture deep dive!", + child: ECS }, - }; - \ No newline at end of file + { + name: "I'm interested in the engine.", + child: Engine + }, + { + name: "I'm all-in for modularity.", + child: Modules + } + ], + 'gooey-response': { + gooey: "Terasology mainly consists of an engine and a variety of modules, all based on our core architecture: the Entity-Component-System. About which would you like to learn more?", + }, +}; + +export default Architechture; \ No newline at end of file diff --git a/src/data/Terasology/Development/ECS.jsx b/src/data/Terasology/Development/ECS.jsx index 1916219..a470500 100644 --- a/src/data/Terasology/Development/ECS.jsx +++ b/src/data/Terasology/Development/ECS.jsx @@ -1,20 +1,21 @@ -export default { - 'user-responses': [ - { - name: "The 'ECS': Entity-Component-System.", - link: 'https://github.com/Terasology/TutorialEntitySystem/wiki', - }, - { - name: "Events and Systems", - link: 'https://github.com/MovingBlocks/Terasology/wiki/Events-and-Systems' - }, - { - name: 'Networking - ECS and Events for Multiplayer', - link: 'https://github.com/MovingBlocks/Terasology/wiki/Entities%2C-Components-and-Events-on-the-Network', - } - ], - 'gooey-response': { - gooey: "Oh, you want to dig in deep? Nice! Best go top to bottom ;)", +const ECS = { + 'user-responses': [ + { + name: "The 'ECS': Entity-Component-System.", + link: 'https://github.com/Terasology/TutorialEntitySystem/wiki', }, - }; - \ No newline at end of file + { + name: "Events and Systems", + link: 'https://github.com/MovingBlocks/Terasology/wiki/Events-and-Systems' + }, + { + name: 'Networking - ECS and Events for Multiplayer', + link: 'https://github.com/MovingBlocks/Terasology/wiki/Entities%2C-Components-and-Events-on-the-Network', + } + ], + 'gooey-response': { + gooey: "Oh, you want to dig in deep? Nice! Best go top to bottom ;)", + }, +}; + +export default ECS; \ No newline at end of file diff --git a/src/data/Terasology/Development/Engine.jsx b/src/data/Terasology/Development/Engine.jsx index 22087e1..7f3cc14 100644 --- a/src/data/Terasology/Development/Engine.jsx +++ b/src/data/Terasology/Development/Engine.jsx @@ -1,20 +1,20 @@ -export default { - 'user-responses': [ - { - name: "Sounds important. Tell me more.", - link: 'https://github.com/MovingBlocks/Terasology/wiki/Codebase-Structure#engine', - }, - { - name: "Does it even work without modules?", - link: 'https://github.com/Terasology/TutorialMinimalEngineDemo' - }, - { - name: "I'm convinced, where do I find engine todos?", - link: 'https://github.com/MovingBlocks/Terasology/contribute', - } - ], - 'gooey-response': { - gooey: "The engine is the heart and soul of Terasology. All modules depend on it.", +const Engine = { + 'user-responses': [ + { + name: "Sounds important. Tell me more.", + link: 'https://github.com/MovingBlocks/Terasology/wiki/Codebase-Structure#engine', }, - }; - \ No newline at end of file + { + name: "Does it even work without modules?", + link: 'https://github.com/Terasology/TutorialMinimalEngineDemo' + }, + { + name: "I'm convinced, where do I find engine todos?", + link: 'https://github.com/MovingBlocks/Terasology/contribute', + } + ], + 'gooey-response': { + gooey: "The engine is the heart and soul of Terasology. All modules depend on it.", + }, +}; +export default Engine; \ No newline at end of file diff --git a/src/data/Terasology/Development/Modules.jsx b/src/data/Terasology/Development/Modules.jsx index 03a0d30..76c260a 100644 --- a/src/data/Terasology/Development/Modules.jsx +++ b/src/data/Terasology/Development/Modules.jsx @@ -1,24 +1,25 @@ -export default { - 'user-responses': [ - { - name: "Sounds yummy. Tell me more!", - link: 'https://github.com/MovingBlocks/Terasology/wiki/Codebase-Structure#modules', - }, - { - name: "Understood. How can I contribute?", - link: 'https://github.com/MovingBlocks/Terasology/wiki/Developing-Modules' - }, - { - name: "Sounds like there's already a bunch. Can I see?", - link: 'https://github.com/Terasology', - }, - { - name: "Alright, I'm ready to help. What's there to do?", - link: 'https://github.com/search?q=org%3ATerasology+is%3Apr+is%3Aissue&state=open&type=Issues' - } - ], - 'gooey-response': { - gooey: "If the heart of Terasology is the engine then the content modules are the different organs - delicious! While usually 'mods' are user-created modifications to a game our modules are a little more fundamental.", +const Modules = { + 'user-responses': [ + { + name: "Sounds yummy. Tell me more!", + link: 'https://github.com/MovingBlocks/Terasology/wiki/Codebase-Structure#modules', }, - }; - \ No newline at end of file + { + name: "Understood. How can I contribute?", + link: 'https://github.com/MovingBlocks/Terasology/wiki/Developing-Modules' + }, + { + name: "Sounds like there's already a bunch. Can I see?", + link: 'https://github.com/Terasology', + }, + { + name: "Alright, I'm ready to help. What's there to do?", + link: 'https://github.com/search?q=org%3ATerasology+is%3Apr+is%3Aissue&state=open&type=Issues' + } + ], + 'gooey-response': { + gooey: "If the heart of Terasology is the engine then the content modules are the different organs - delicious! While usually 'mods' are user-created modifications to a game our modules are a little more fundamental.", + }, +}; + +export default Modules; diff --git a/src/data/Terasology/Development/index.jsx b/src/data/Terasology/Development/index.jsx index 116e2aa..33fa055 100644 --- a/src/data/Terasology/Development/index.jsx +++ b/src/data/Terasology/Development/index.jsx @@ -2,7 +2,7 @@ import ContributionResources from "../../ContributionResources"; import Architecture from "./Architecture"; import Workspace from "../../ContributionResources/Workspace"; -export default { +const index = { 'user-responses': [ { name: "No, I'm new here or have contributed only in other areas before.", @@ -29,3 +29,5 @@ export default { gooey: "So I heard you'd like to code? Have you contributed to Terasology as a developer before?", }, }; + +export default index; \ No newline at end of file diff --git a/src/data/Terasology/Documentation/Documentation.jsx b/src/data/Terasology/Documentation/Documentation.jsx index d094ad5..697c8bb 100644 --- a/src/data/Terasology/Documentation/Documentation.jsx +++ b/src/data/Terasology/Documentation/Documentation.jsx @@ -1,6 +1,8 @@ -export default { +const Documentation = { 'user-responses': [{ name: 'Ok.', jump: 'u0u0u2u0' }], 'gooey-response': { gooey: 'Javadoc is under construction, visit later.', }, }; + +export default Documentation; \ No newline at end of file diff --git a/src/data/Terasology/Documentation/Translation.jsx b/src/data/Terasology/Documentation/Translation.jsx index 22a068f..0677e21 100644 --- a/src/data/Terasology/Documentation/Translation.jsx +++ b/src/data/Terasology/Documentation/Translation.jsx @@ -1,4 +1,4 @@ -export default ({ +const Translation = ({ name: 'Take me to the translation site.', child: { 'user-responses': [{ name: 'Ok.', jump: 'u0u0u2u0' }], @@ -12,3 +12,5 @@ export default ({ name: 'How to translate for Terasology?', link: 'https://github.com/MovingBlocks/Terasology/wiki/Translation-Guide', }); + +export default Translation; \ No newline at end of file diff --git a/src/data/Terasology/Documentation/index.jsx b/src/data/Terasology/Documentation/index.jsx index 696f136..cd52de6 100644 --- a/src/data/Terasology/Documentation/index.jsx +++ b/src/data/Terasology/Documentation/index.jsx @@ -1,4 +1,4 @@ -export default { +const index = { 'user-responses': [ { name: 'I want to add JavaDoc. Anything I should know?', @@ -17,3 +17,5 @@ export default { gooey: 'Lorem ipsum dolor sit amet, consectetur... sorry, I was reading the docs. Where do you want to start documenting?', }, }; + +export default index; \ No newline at end of file diff --git a/src/data/Terasology/Player.jsx b/src/data/Terasology/Player.jsx index 27375af..21d6e22 100644 --- a/src/data/Terasology/Player.jsx +++ b/src/data/Terasology/Player.jsx @@ -1,4 +1,4 @@ -export default { +const Player = { 'user-responses': [ { name: 'No. Where can I download it?', @@ -21,3 +21,5 @@ export default { gooey: 'Did you install Terasology?', }, }; + +export default Player; \ No newline at end of file diff --git a/src/data/Terasology/index.jsx b/src/data/Terasology/index.jsx index bccf882..f34bece 100644 --- a/src/data/Terasology/index.jsx +++ b/src/data/Terasology/index.jsx @@ -3,7 +3,7 @@ import Player from './Player'; import Contributor from './Contributor'; import Contact from './Contact'; -export default { +const index = { 'user-responses': [ { name: '🧐 What is Terasology?', @@ -26,3 +26,5 @@ export default { gooey: 'What about Terasology?', }, }; + +export default index; \ No newline at end of file diff --git a/src/data/pathMap.jsx b/src/data/pathMap.jsx index 681b89b..59608f0 100644 --- a/src/data/pathMap.jsx +++ b/src/data/pathMap.jsx @@ -2,7 +2,7 @@ import Terasology from './Terasology/'; import DestinationSol from './DestinationSol'; import Contributor from './Terasology/Contributor'; -export default { +const pathMap = { 'user-responses': [ { name: 'Gotcha 👍 Let the Journey begin. 🌄', @@ -33,3 +33,5 @@ export default { firstMessage: true, }, }; + +export default pathMap; \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 66fdb45..c0d650a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8775,7 +8775,7 @@ safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== -safe-buffer@>=5.1.0, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@~5.2.0: +safe-buffer@>=5.1.0, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.2, safe-buffer@~5.2.0: version "5.2.1" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==