-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Sandcastle using Stratakit #12731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Sandcastle using Stratakit #12731
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
fdba3d6
convert imports to stratakit
jjspace 464f4bd
add viewerless sandcastle for development
jjspace 7fc857c
Merge remote-tracking branch 'origin/sandcastle-v2' into stratakit-ui
jjspace 6a19832
update stratakit and set up icons
jjspace 1ccf886
small changes
jjspace ae2459c
rough in UI structure in test component
jjspace 0521f99
transfer new layout to main App and clean up
jjspace be7f151
pretty up console output
jjspace 373fdfb
try to avoid flashing viewer when running and on page load
jjspace 5d3fac2
convert gallery cards to links, add labels
jjspace f97e8a3
app bar icon buttons, relocate editor actions
jjspace bf07b3c
allow deploy to finish
jjspace 1427e03
fix logo url
jjspace 0f5b834
force React v19
jjspace 8c0e07c
Merge branch 'sandcastle-v2' into stratakit-ui
jjspace acad9cf
clear console when picking from gallery
jjspace 69fcd34
Merge branch 'sandcastle-v2' into stratakit-ui
jjspace 38b78cd
Merge remote-tracking branch 'origin/sandcastle-v2' into stratakit-ui
jjspace b39d298
fix console messages bleeding to next run
jjspace 9060c71
touch up styling to remove !important
jjspace 8abb9ee
stay on gallery when picking
jjspace File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,6 @@ | ||
<style> | ||
@import url(../templates/bucket.css); | ||
</style> | ||
<div id="cesiumContainer" class="fullSize"></div> | ||
<div id="loadingOverlay"><h1>Loading...</h1></div> | ||
<div id="toolbar"></div> |
This file contains hidden or 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,8 @@ | ||
//import * as Cesium from "cesium"; | ||
|
||
//const viewer = new Cesium.Viewer("cesiumContainer"); | ||
|
||
console.log("Sandcastle loaded"); | ||
jjspace marked this conversation as resolved.
Show resolved
Hide resolved
|
||
document.body.style.background = ` | ||
no-repeat center/30% url(../images/cesium-logomark.svg), | ||
linear-gradient(to bottom, lightskyblue, lightgreen)`; |
This file contains hidden or 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,3 @@ | ||
title: Viewerless Sandcastle | ||
description: A Sandcastle that does not construct the viewer for faster, easier development of Sandcastle itself | ||
development: true |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,73 +1,56 @@ | ||
#root { | ||
.sandcastle-root { | ||
display: grid; | ||
width: 100vw; | ||
height: 100vh; | ||
display: grid; | ||
grid-template: | ||
"toolbar" | ||
"center" | ||
"gallery"; | ||
grid-template-rows: max-content auto 150px; | ||
} | ||
|
||
.split-view { | ||
/* These control the styling of the Allotment dividers */ | ||
--focus-border: var(--ids-color-border-accent-base); | ||
--separator-border: var(--ids-color-border-neutral-base); | ||
} | ||
|
||
.toolbar { | ||
grid-area: toolbar; | ||
display: flex; | ||
align-items: center; | ||
gap: 0.5rem; | ||
padding: 0.5rem; | ||
background: var(--ids-color-bg-page-base); | ||
|
||
.spacer { | ||
flex-grow: 10; | ||
--header-height: min-content; | ||
--app-bar-width: 52px; | ||
grid-template-rows: var(--header-height) auto; | ||
grid-template-columns: var(--app-bar-width) auto; | ||
grid-template-areas: "header header" "app-bar content"; | ||
|
||
header { | ||
grid-area: header; | ||
display: flex; | ||
align-items: center; | ||
padding: 0.5em 1em 0.5em 0.5em; | ||
gap: 0.5em; | ||
background: var(--stratakit-color-bg-page-depth); | ||
|
||
.metadata { | ||
margin-left: 0.5em; | ||
color: var(--stratakit-color-text-accent-strong); | ||
} | ||
|
||
.version { | ||
color: var(--stratakit-color-text-neutral-secondary); | ||
} | ||
} | ||
} | ||
|
||
.tabs { | ||
background: var(--ids-color-bg-page-base); | ||
} | ||
|
||
.editor-container { | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
.application-bar { | ||
grid-area: app-bar; | ||
display: flex; | ||
flex-direction: column; | ||
padding: 0.5em; | ||
gap: 0.5em; | ||
background: var(--stratakit-color-bg-page-depth); | ||
|
||
button { | ||
/* Force buttons to be square */ | ||
padding: 8px; | ||
} | ||
} | ||
|
||
section { | ||
border-top: 1px solid var(--ids-color-border-neutral-base); | ||
flex-shrink: 1; | ||
.content { | ||
grid-area: content; | ||
} | ||
} | ||
|
||
.viewer-bucket { | ||
height: 100%; | ||
background-color: white; | ||
background-image: var(--_rings), var(--_gradient); | ||
--_rings: repeating-radial-gradient( | ||
circle at center, | ||
var(--ids-color-border-neutral-muted) 1px, | ||
var(--ids-color-border-neutral-muted) 3px, | ||
transparent 3px, | ||
transparent 10px | ||
); | ||
--_gradient: linear-gradient( | ||
180deg, | ||
var(--ids-color-bg-page-base) 0%, | ||
var(--ids-color-bg-page-depth) 100% | ||
); | ||
|
||
.fullFrame { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
.flex-spacer { | ||
flex-grow: 1000; | ||
} | ||
|
||
.gallery { | ||
grid-area: gallery; | ||
border-top: 1px solid var(--ids-color-border-neutral-base); | ||
background: var(--ids-color-bg-page-depth); | ||
.split-view { | ||
/* These control the styling of the Allotment dividers */ | ||
--focus-border: var(--stratakit-color-border-accent-base); | ||
--separator-border: var(--stratakit-color-border-neutral-base); | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.