-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load datapacks from Modrinth & add url configuration (#62)
* store zip datapacks in opfs * remove some logging * implement open from modrinth * add type icons to recents, handle not found * allow mods from modrinth, fix modal * cache some modrinth api requests + small fixes * url parameters and other changes, completes #11 * prevent vanilla datapack removing * remove dev_mode url param * update mc-datapack-loader
- Loading branch information
Showing
26 changed files
with
811 additions
and
174 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -40,7 +40,8 @@ const open = ref(true) | |
} | ||
.toggle.open { | ||
left: 15.8rem | ||
left: 15.8rem; | ||
border-radius: 1rem; | ||
} | ||
.icon { | ||
|
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
|
||
|
||
|
||
<template> | ||
<span class="faq" tabindex="0"> | ||
<font-awesome-icon class="icon" icon="fa-circle-question" /> | ||
<div class="popup"> | ||
<slot></slot> | ||
</div> | ||
</span> | ||
|
||
</template> | ||
|
||
<style scoped> | ||
.faq { | ||
position: relative; | ||
} | ||
.icon { | ||
cursor: pointer; | ||
} | ||
.popup { | ||
display: none; | ||
position: absolute; | ||
left: 50%; | ||
top: calc(100% + 0.5rem); | ||
transform: translate(-50%, 0); | ||
background-color: rgba(0, 0, 0, 0.75); | ||
padding: 0.2rem 0.6rem; | ||
border-radius: 0.5rem; | ||
max-width: 15rem; | ||
width: max-content; | ||
text-align: center; | ||
} | ||
.popup::after { | ||
content: ''; | ||
position: absolute; | ||
top: 0; | ||
left: 50%; | ||
width: 0; | ||
height: 0; | ||
border: 0.5rem solid transparent; | ||
border-bottom-color: rgba(0, 0, 0, 0.75);; | ||
border-top: 0; | ||
margin-left: -0.5rem; | ||
margin-top: -0.5rem; | ||
} | ||
.faq:hover .popup,.faq:focus .popup{ | ||
display: block; | ||
} | ||
</style> |
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
Oops, something went wrong.