-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge dev in main Closes #109, #108, and #107 * fix typo * update version string * update u-type format name * Refactoring * Added icon to help page + exit button to modals Fixes #109 * Added some margin below help accordions * Updated the ecall help page section Fixes #108 * Page doesn't do weird horizontal scrolls on its own anymore Fixed not by making the container not scrollable anymore (that didn't fix it) but by switching to a different scroll method for scrolling the memory table which just doesn't scroll horizontally Fixes #107 * separate rows for memory access pseudo instr See merge request es/lehre/rechnerarchitektur/architecture-simulator!73
- Loading branch information
Showing
11 changed files
with
208 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<!-- Base component for bootstrap modals --> | ||
<script setup> | ||
const props = defineProps({ | ||
baseId: String, | ||
iconName: String, | ||
title: String, | ||
showGithubLink: Boolean, | ||
modalSize: String, | ||
}); | ||
</script> | ||
<template> | ||
<div | ||
class="modal fade" | ||
:id="props.baseId" | ||
tabindex="-1" | ||
:aria-labelledby="`${props.baseId}-label`" | ||
aria-hidden="true" | ||
> | ||
<div :class="`modal-dialog modal-${props.modalSize}`"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h1 | ||
class="modal-title fs-2 text-light" | ||
:id="`${props.baseId}-label`" | ||
> | ||
<i :class="`bi ${props.iconName}`"></i> | ||
<span class="ms-2">{{ props.title }}</span> | ||
</h1> | ||
<button | ||
class="ms-auto archsim-icon-button fs-2 text-light" | ||
data-bs-dismiss="modal" | ||
title="exit" | ||
> | ||
<i class="bi bi-x-circle"></i> | ||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
<slot></slot> | ||
</div> | ||
<div class="modal-footer"> | ||
<a | ||
v-if="props.showGithubLink" | ||
href="https://github.com/ekut-es/architecture-simulator" | ||
class="link-light" | ||
target="_blank" | ||
rel="noreferrer noopener" | ||
>GitHub</a | ||
> | ||
<button | ||
class="btn btn-secondary ms-auto" | ||
data-bs-dismiss="modal" | ||
> | ||
Close | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,26 @@ | ||
<script setup> | ||
import ToyHelp from "@/components/toy/ToyHelp.vue"; | ||
import RiscvHelp from "@/components/riscv/RiscvHelp.vue"; | ||
import ArchsimModal from "@/components/ArchsimModal.vue"; | ||
import { globalSettings } from "@/js/global_settings"; | ||
const modalProps = { | ||
baseId: "help-modal", | ||
iconName: "bi-question-circle-fill", | ||
title: "Help", | ||
showGithubLink: true, | ||
modalSize: "xl", | ||
}; | ||
</script> | ||
|
||
<template> | ||
<div | ||
class="modal fade" | ||
id="help-modal" | ||
tabindex="-1" | ||
aria-labelledby="help-modal-label" | ||
aria-hidden="true" | ||
> | ||
<div class="modal-dialog modal-xl"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h1 | ||
class="modal-title fs-2 text-light" | ||
id="help-modal-label" | ||
> | ||
<i | ||
class="bi bi-question-circle-fill" | ||
width="35px" | ||
height="35px" | ||
></i> | ||
<span> Help </span> | ||
</h1> | ||
</div> | ||
<div id="help-modal-body" class="modal-body"> | ||
<!--Insert custom help pages here--> | ||
<ToyHelp v-if="globalSettings.selectedIsa === 'toy'" /> | ||
<RiscvHelp v-if="globalSettings.selectedIsa === 'riscv'" /> | ||
<h1>Accessibility</h1> | ||
<p> | ||
To exit the editor without a mouse, you can press | ||
ESC+Tab. | ||
</p> | ||
</div> | ||
<div class="modal-footer"> | ||
<a | ||
href="https://github.com/ekut-es/architecture-simulator" | ||
class="me-auto link-light" | ||
target="_blank" | ||
rel="noreferrer noopener" | ||
>GitHub</a | ||
> | ||
<button class="btn btn-secondary" data-bs-dismiss="modal"> | ||
Close | ||
</button> | ||
</div> | ||
</div> | ||
<ArchsimModal v-bind="modalProps"> | ||
<div id="help-modal-body" class="modal-body"> | ||
<!--Insert custom help pages here--> | ||
<ToyHelp v-if="globalSettings.selectedIsa === 'toy'" /> | ||
<RiscvHelp v-if="globalSettings.selectedIsa === 'riscv'" /> | ||
<h1>Accessibility</h1> | ||
<p>To exit the editor without a mouse, you can press ESC+Tab.</p> | ||
</div> | ||
</div> | ||
</ArchsimModal> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,10 @@ body { | |
overflow: hidden; | ||
} | ||
|
||
.accordion { | ||
margin: 0 0 1rem 0; | ||
} | ||
|
||
#app { | ||
height: 100%; | ||
display: flex; | ||
|
Oops, something went wrong.