From 6c52808655c3db655df7be4bf29c22bac7e624a1 Mon Sep 17 00:00:00 2001 From: "Maurice L." Date: Wed, 7 May 2025 12:33:01 +0200 Subject: [PATCH] Updated some small things and edited README and some issue templates --- .github/CONTRIBUTING.md | 10 -- .github/ISSUE_TEMPLATE/bug_report.yml | 52 +-------- .github/ISSUE_TEMPLATE/feature_request.yml | 17 +-- README.md | 13 +-- src/components/app/ListItem.vue | 20 ++-- src/router.ts | 10 ++ src/views/app/App.vue | 8 +- src/views/app/coasters/Coaster.vue | 104 ++++++++++++++++++ .../{Coaster.vue => coasters/Coasters.vue} | 0 9 files changed, 141 insertions(+), 93 deletions(-) delete mode 100644 .github/CONTRIBUTING.md create mode 100644 src/views/app/coasters/Coaster.vue rename src/views/app/{Coaster.vue => coasters/Coasters.vue} (100%) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md deleted file mode 100644 index 11c2a09..0000000 --- a/.github/CONTRIBUTING.md +++ /dev/null @@ -1,10 +0,0 @@ -## Making Changes - -Depending on your changes there are certain rules you have to follow if you expect your Pull Request (PR) to be merged. - -1. Check for existing pull requests that might already implement your changes. - You can review those pull requests with your suggestions for improvements. -1. Reference documentation or issues that are relevant to your changes. -1. If you implement a new feature, include some examples on how you intend it to be used in your PR description. -1. Write documentation for all public API methods and types. -1. Follow the coding style, even if unconventional, we want to keep it consistent to maintain readability. diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 50fc7e5..fa96a8c 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -1,13 +1,6 @@ name: Bug Report description: Found a Bug that needs to be fixed? body: -- type: markdown - attributes: - value: |- - Please join the [Discord Server](https://discord.gg/0hMr4ce0tIl3SLv5) for questions or ask them in [our Discussions](https://github.com/discord-jda/JDA/discussions). - - Keep in mind that this isn't the place to learn Java. - Please head over to [Stack Overflow](https://stackoverflow.com/questions/tagged/java) for your general programming questions. - type: checkboxes attributes: label: General Troubleshooting @@ -17,50 +10,19 @@ body: required: true - label: I have checked for PRs that might already address this issue. required: true -- type: input - attributes: - label: "Version of JDA" - description: | - Please let us know, which specific version of JDA you used. - If your version is outdated, maybe try updating and see if that already fixes your problem. - You can see the latest version in the [Releases](https://github.com/discord-jda/JDA/releases). - To find out your version, you can add `System.out.println(JDAInfo.VERSION);` in your code. - placeholder: "For example 5.0.0-beta.7" - validations: - required: true - type: textarea attributes: label: "Expected Behaviour" - description: "What did you expect JDA to do?" - placeholder: "JDA should do ..." + description: "What did you expect the program to do?" + placeholder: "Webserver should do ..." validations: required: true - type: textarea attributes: - label: "Code Example for Reproduction Steps" + label: "Reproduction Steps" description: |- - Please add the code you use to reproduce this problem. - Make sure to remove or replace any sensitive data like your Bot's token. + Please add the steps you use to reproduce this problem. Put "N/A" if you don't have a reproducible setup. - - The provided text will be rendered as Java code, so you don't have to provide a Code block for it. - render: java - placeholder: |- - public void causeError() { - throw new Exception("Error!"); - } - validations: - required: true -- type: textarea - attributes: - label: "Code for JDABuilder or DefaultShardManagerBuilder used" - description: |- - Please provide the code used to create your JDA or ShardManager instance. - Make sure to remove or replace any sensitive data like your Bot's token. - - The provided text will be rendered as Java code, so you don't have to provide a Code block for it. - render: java - placeholder: 'JDA jda = JDABuilder.createDefault("token").build();' validations: required: true - type: textarea @@ -68,8 +30,4 @@ body: label: "Exception or Error" description: |- Share any Exception or Error you encountered. - Leave this blank or put "N/A" if you don't have an Exception or Error. - - The provided text will be rendered as code, so you don't have to provide a Code block for it. - render: yesyes # Unknown code-names = no highlighting. - placeholder: "java.lang.NullPointerException: null" \ No newline at end of file + Leave this blank or put "N/A" if you don't have an Exception or Error. \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 5589caf..f1af1c5 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -1,13 +1,6 @@ name: Feature Request description: Request a new feature body: -- type: markdown - attributes: - value: |- - Please join the [Discord Server](https://discord.gg/0hMr4ce0tIl3SLv5) for questions or ask them in [our Discussions](https://github.com/discord-jda/JDA/discussions). - - Keep in mind that this isn't the place to learn Java. - Please head over to [Stack Overflow](https://stackoverflow.com/questions/tagged/java) for your general programming questions. - type: checkboxes attributes: label: General Troubleshooting @@ -15,23 +8,17 @@ body: options: - label: I have checked for similar issues on the Issue-tracker. required: true - - label: I have updated to the [latest JDA version](https://github.com/discord-jda/JDA/releases/latest) - required: true - label: I have checked the branches or the maintainers' PRs for upcoming features. required: true - type: textarea attributes: label: "Feature Request" description: "Provide a small description of the feature you want to have added." - placeholder: "JDA should get ..." + placeholder: "Werbserver should get ..." validations: required: true - type: textarea attributes: label: "Example Use-Case" description: |- - Provide some code or describe a possible use-case for this feature. - - The provided text will be rendered as Java code, so you don't have to provide a Code block for it. - placeholder: "public void newAwesomeMethod(){}" - render: java \ No newline at end of file + Provide some code or describe a possible use-case for this feature. \ No newline at end of file diff --git a/README.md b/README.md index 279cc03..1146a84 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # CoasterDB -Roller coaster and amusement park database with web view as a project for the seminar subject s_Tec (Q1.2) +Achterbahn- und Freizeitparkdatenbank mit Webansicht für das Seminarfach s_Tec (Q1.2) ## Summary 1. [Installation](#installation) @@ -9,18 +9,13 @@ Roller coaster and amusement park database with web view as a project for the se 3. [Contributing](#contributing-to-the-project) ## Installation -Just clone the project and install all dependencies via: +Klone das Projekt und installiere es samt Dependencies mit: ```sh $ npm install ``` ## Getting started -If you configured everything adjusted to your needs, you can start the development server via: +Wenn du alles deinen Bedürfnissen nach angepasst hast, starte den Development-Server mit: ```sh $ npm run dev -``` - -## Contributing to the project -Use the development branch for further updates.
-The development branch will only be merged with the master if the new version is completely finished for being live.
-Follow the [Contributing Guidelines](https://github.com/MiauRizius/CoasterDB/blob/master/.github/CONTRIBUTING.md). \ No newline at end of file +``` \ No newline at end of file diff --git a/src/components/app/ListItem.vue b/src/components/app/ListItem.vue index b12a706..a82b8dd 100644 --- a/src/components/app/ListItem.vue +++ b/src/components/app/ListItem.vue @@ -2,11 +2,11 @@ export default { props: { - prop1: String, - prop2: String, - prop3: String, - prop4: String, - prop5: String + name: String, + park: String, + length: String, + height: String, + speed: String }, components: { @@ -17,10 +17,10 @@ export default { \ No newline at end of file diff --git a/src/router.ts b/src/router.ts index cb8e7fd..a663d5f 100644 --- a/src/router.ts +++ b/src/router.ts @@ -22,6 +22,16 @@ const routes: Array = [ component: () => import('./views/app/App.vue') }, + //Coaster pages + { + path: '/app/coasters', + component: () => import('./views/app/coasters/Coasters.vue') + }, + { + path: '/app/coaster/:coasterId', + component: () => import('./views/app/coasters/Coaster.vue') + }, + //Redirects //Configuration diff --git a/src/views/app/App.vue b/src/views/app/App.vue index ae76baa..5718622 100644 --- a/src/views/app/App.vue +++ b/src/views/app/App.vue @@ -26,10 +26,14 @@ export default { Help }, mounted() { + var current_page = ""; setInterval(() => { const docs = document.getElementById("docs-container"); const help = document.getElementById("docs-container"); + if (current_page == window.location.href.replace("https://", "").split("/")[4]) return; + current_page = window.location.href.replace("https://", "").split("/")[4]; + switch (window.location.href.replace("https://", "").split("/")[4]) { case "docs": if (docs?.classList.contains('hidden')) docs?.classList.remove('hidden'); else help?.classList.add('hidden'); @@ -51,11 +55,11 @@ export default { \ No newline at end of file diff --git a/src/views/app/coasters/Coaster.vue b/src/views/app/coasters/Coaster.vue new file mode 100644 index 0000000..5289dc7 --- /dev/null +++ b/src/views/app/coasters/Coaster.vue @@ -0,0 +1,104 @@ + + + + + \ No newline at end of file diff --git a/src/views/app/Coaster.vue b/src/views/app/coasters/Coasters.vue similarity index 100% rename from src/views/app/Coaster.vue rename to src/views/app/coasters/Coasters.vue