shulkerscript-webpage/src/pages/playground.astro

53 lines
1.3 KiB
Plaintext
Raw Normal View History

2024-06-20 15:43:14 +02:00
---
import PlaygroundComponent from "@components/Playground";
import StarlightPage from "@astrojs/starlight/components/StarlightPage.astro";
import type { PlaygroundLang } from "@utils/playground";
const lang: PlaygroundLang = {
header: {
title: "Playground",
buttons: {
build: "Build",
zip: "Download zip",
save: "Save",
reset: "Reset",
},
},
explorer: {
title: "Explorer",
2024-06-23 20:28:12 +02:00
menu: {
2024-06-23 21:22:03 +02:00
add: "Add file",
addPrompt: {
label: "File path",
2024-06-27 10:59:13 +02:00
message:
"Enter the path you want the new file to be created at.",
2024-06-23 21:22:03 +02:00
},
2024-06-23 20:28:12 +02:00
delete: "Delete",
rename: "Rename",
renamePrompt: {
label: "New file path",
2024-06-27 10:59:13 +02:00
message:
"Enter the path you want the file to be renamed/moved to.",
2024-06-23 20:28:12 +02:00
},
cancel: "Cancel",
2024-06-27 10:59:13 +02:00
},
},
errorDisplay: {
title: "Error during compilation!",
buttons: {
close: "Close",
},
},
};
2024-06-20 15:43:14 +02:00
---
<StarlightPage frontmatter={{ title: "Playground", template: "splash" }}>
<PlaygroundComponent client:only="react" {lang} />
2024-06-20 15:43:14 +02:00
</StarlightPage>
<style is:global>
.pagination-links {
display: none;
}
2024-06-27 10:59:13 +02:00
</style>