Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
235 commits
Select commit Hold shift + click to select a range
eb55c7e
create sandcastle package
jjspace Apr 15, 2025
793ba88
elevate eslint config, run prettier
jjspace Apr 17, 2025
8a73405
import hackathon code
jjspace Apr 17, 2025
c05ed50
adjusting paths for built and local dev
jjspace Apr 17, 2025
4a2082a
readme and build commands
jjspace Apr 18, 2025
1d8cd04
fix ci
jjspace Apr 18, 2025
1522aa7
set up itwin-ui, fix types route
jjspace Apr 18, 2025
f775608
build for ci
jjspace Apr 18, 2025
c3e3f11
Config setups, including CI
ggetz Apr 24, 2025
db51183
remove extra files
jjspace Apr 29, 2025
414fc15
Merge remote-tracking branch 'origin/main' into sandcastle-reborn
jjspace May 2, 2025
463c6b3
test html build
jjspace Apr 25, 2025
5c02885
adjust paths
jjspace Apr 25, 2025
93955b7
adjust paths again
jjspace Apr 25, 2025
f714fa2
switch to custom plugin and vite define
jjspace May 2, 2025
ebafd4d
ci test
jjspace May 2, 2025
ab625d8
remove static bucket.html
jjspace May 2, 2025
f574e97
adjust configs slightly
jjspace May 5, 2025
fc38e02
streamline vite config with custom plugin
jjspace May 5, 2025
8fa32a4
fix types url
jjspace May 5, 2025
2ac1ed3
nest bucket.html like in current sandcastle
jjspace May 6, 2025
7ecb6f5
better workspace check
jjspace May 9, 2025
0e3c658
Merge pull request #12574 from CesiumGS/sandcastle-reborn
ggetz May 9, 2025
d2d5220
Merge remote-tracking branch 'origin/main' into sandcastle-v2
jjspace May 12, 2025
5d73a3c
move and integrate sandcastle client api
jjspace May 12, 2025
26c5f17
update types generation and loading on the page
jjspace May 13, 2025
2e1259a
remove code that's been moved into Sandcastle module
jjspace May 13, 2025
92d5826
remove window listener to avoid StaticMode creating duplicates
jjspace May 13, 2025
88034e1
add standalone page to sandcastle v2
jjspace May 13, 2025
b2e54a1
switch to object over static class
jjspace May 14, 2025
cad1a92
refine eslint-disable comments
jjspace May 14, 2025
5dbe390
Merge branch 'sandcastle-helpers' into sandcastle-standalone
jjspace May 20, 2025
0ed68bd
Merge pull request #12619 from CesiumGS/sandcastle-helpers
ggetz May 21, 2025
9daa1b0
Merge branch 'sandcastle-v2' into sandcastle-standalone
ggetz May 21, 2025
cbb7cd3
pr comments
jjspace May 21, 2025
5d31cd1
new gallery structure
jjspace May 22, 2025
05206b7
switch sandcastle code to modules
jjspace May 22, 2025
8f142fa
Merge pull request #12620 from CesiumGS/sandcastle-standalone
ggetz May 22, 2025
90ed59c
label windows based on env
jjspace May 22, 2025
f14170a
apply new React structure
jjspace May 29, 2025
23ea0f9
useReducer instead of useState
jjspace May 29, 2025
18af66d
gallery loading by id, small cleanup
jjspace May 29, 2025
20a8882
fix a few small bugs
jjspace May 29, 2025
d048629
Merge remote-tracking branch 'origin/main' into sandcastle-v2
jjspace May 30, 2025
2222c64
Merge remote-tracking branch 'origin/main' into sandcastle-v2
jjspace Jun 6, 2025
e1955f9
Merge branch 'sandcastle-v2' into nested-gallery
jjspace Jun 6, 2025
3b03f8a
remove iife Cesium from bucket and standalone
jjspace Jun 6, 2025
5185be6
isolate sandcastle api compilation
jjspace Jun 6, 2025
382516b
move build gallery script
jjspace Jun 6, 2025
1dcbbd9
integrate gallery build script more
jjspace Jun 6, 2025
8081c69
prevent building using vite dev config
jjspace Jun 6, 2025
dcdc2c5
minor gallery format adjustments
jjspace Jun 6, 2025
0dd9463
change gallery url per build env
jjspace Jun 6, 2025
11d39ee
relocate gallery
jjspace Jun 6, 2025
ba4ac4d
Merge branch 'nested-gallery' into sandcastle-react-structure
jjspace Jun 6, 2025
52e0568
fix legacy id
jjspace Jun 6, 2025
61627d6
small change
jjspace Jun 9, 2025
15095e5
fix script as main detection
jjspace Jun 11, 2025
193925a
small style adjustments for scrolling gallery
jjspace Jun 12, 2025
7381646
document gallery structure, support development only sandcastles
jjspace Jun 13, 2025
05f0a6f
add import to default code
jjspace Jun 13, 2025
464128c
Merge branch 'nested-gallery' into sandcastle-react-structure
jjspace Jun 13, 2025
d03590d
enable prettier formatter in monaco
jjspace May 29, 2025
43a5095
modify more monaco settings
jjspace Jun 3, 2025
08fb8cb
prevent missing types from breaking dev server
jjspace Jun 13, 2025
7ec2400
change import detection
jjspace Jun 13, 2025
b75874d
remove todo
jjspace Jun 13, 2025
319c640
remove id from sandcastle yaml
jjspace Jun 16, 2025
1baddfc
don't generate tsbuildinfo files into tmp directory
jjspace Jun 16, 2025
4ff03ca
Merge branch 'nested-gallery' into sandcastle-react-structure
jjspace Jun 16, 2025
6dc45ee
minor cleanup
jjspace Jun 16, 2025
5b0643f
clean up bucket code, solidify window message interface
jjspace Jun 16, 2025
b56fe8a
improve url handling and forward/back navigation
jjspace Jun 16, 2025
d837c68
move types back into single copy plugin for dev server
jjspace Jun 16, 2025
a514c3d
Merge branch 'nested-gallery' into sandcastle-react-structure
jjspace Jun 16, 2025
4206a8d
add imports to end of sandcastle
jjspace Jun 16, 2025
47c3609
fix error line adjustment
jjspace Jun 16, 2025
46b9179
better editor dynamic height
jjspace Jun 17, 2025
20f8ed5
Merge branch 'sandcastle-react-structure' into monaco-prettier
jjspace Jun 17, 2025
f6b15d3
extract editor component and monaco setup
jjspace Jun 17, 2025
843b10c
extract snippets for a different pr
jjspace Jun 18, 2025
88c01e0
add snippets to sandcastle for buttons/toggles/menus
jjspace Jun 18, 2025
6c8d3fe
fix spelling, add type
jjspace Jun 18, 2025
3d897b0
create sandcastle deployment workflow
jjspace Jun 18, 2025
cfc768c
build types
jjspace Jun 18, 2025
f60befe
skip build-apps
jjspace Jun 18, 2025
711f9b8
change target branch to feature branch
jjspace Jun 18, 2025
97f231b
Merge remote-tracking branch 'origin/main' into sandcastle-v2
jjspace Jun 26, 2025
6e3a872
Merge pull request #12631 from CesiumGS/nested-gallery
ggetz Jun 27, 2025
ebe34ca
Merge branch 'sandcastle-v2' into sandcastle-react-structure
ggetz Jun 27, 2025
eb4dacb
Merge pull request #12639 from CesiumGS/sandcastle-react-structure
ggetz Jun 27, 2025
cfdff45
Merge remote-tracking branch 'origin/main' into sandcastle-v2
jjspace Jun 27, 2025
7d3aa43
Merge remote-tracking branch 'origin/sandcastle-v2' into monaco-prettier
jjspace Jun 27, 2025
504b5cf
add resize splitter using allotment
jjspace Jun 17, 2025
549657d
Merge remote-tracking branch 'origin/sandcastle-v2' into sandcastle-d…
jjspace Jun 27, 2025
9041996
remove lint workflow and zip download
jjspace Jun 27, 2025
7f476c8
add commit hash to header
jjspace Jun 27, 2025
335402e
only run on the staging branch
jjspace Jun 27, 2025
2dd7168
Merge pull request #12640 from CesiumGS/monaco-prettier
ggetz Jun 30, 2025
2e7e07b
Merge remote-tracking branch 'origin/main' into sandcastle-v2
jjspace Jul 1, 2025
fdba3d6
convert imports to stratakit
jjspace Jul 3, 2025
464f4bd
add viewerless sandcastle for development
jjspace Jul 3, 2025
852f7ef
Merge pull request #12680 from CesiumGS/sandcastle-dev-deployment
ggetz Jul 7, 2025
d89959b
Merge branch 'sandcastle-v2' into sandcastle-resize
ggetz Jul 7, 2025
27075cc
Merge pull request #12672 from CesiumGS/sandcastle-resize
ggetz Jul 7, 2025
7fc857c
Merge remote-tracking branch 'origin/sandcastle-v2' into stratakit-ui
jjspace Jul 7, 2025
6a19832
update stratakit and set up icons
jjspace Jul 7, 2025
1ccf886
small changes
jjspace Jul 9, 2025
ae2459c
rough in UI structure in test component
jjspace Jul 9, 2025
0521f99
transfer new layout to main App and clean up
jjspace Jul 10, 2025
be7f151
pretty up console output
jjspace Jul 11, 2025
373fdfb
try to avoid flashing viewer when running and on page load
jjspace Jul 11, 2025
5d3fac2
convert gallery cards to links, add labels
jjspace Jul 11, 2025
f97e8a3
app bar icon buttons, relocate editor actions
jjspace Jul 11, 2025
bf07b3c
allow deploy to finish
jjspace Jul 11, 2025
1427e03
fix logo url
jjspace Jul 11, 2025
0f5b834
force React v19
jjspace Jul 15, 2025
dbc3f72
Merge remote-tracking branch 'origin/main' into sandcastle-v2
jjspace Jul 15, 2025
8c0e07c
Merge branch 'sandcastle-v2' into stratakit-ui
jjspace Jul 15, 2025
acad9cf
clear console when picking from gallery
jjspace Jul 15, 2025
0fd152d
Merge branch 'sandcastle-v2' into sandcastle-snippets
jjspace Jul 16, 2025
87b163e
move snippets to their own file
jjspace Jul 16, 2025
a33e968
fix auto-indenting of template strings
jjspace Jul 16, 2025
5cff453
preliminary working pagefind search index and component
jjspace Jul 17, 2025
105d3cc
add script to npm scripts
jjspace Jul 17, 2025
a5648f8
testing gallery filtering system
jjspace Jul 18, 2025
7c868a3
gallery conversion script
jjspace Jun 13, 2025
c85807f
convert entire gallery
jjspace Jul 18, 2025
b3895a6
fix eslint errors
jjspace Jul 18, 2025
51e99b7
implement gallery search with pagefind
jjspace Jul 21, 2025
567d92e
merge gallery build scripts
jjspace Jul 21, 2025
1e05d97
Merge pull request #12679 from CesiumGS/sandcastle-snippets
ggetz Jul 22, 2025
f7756b3
fix pagefind log location
jjspace Jul 22, 2025
6612098
load monaco from local packages
jjspace Jul 22, 2025
9e2fc10
add search placeholder
jjspace Jul 28, 2025
e29f69f
Merge remote-tracking branch 'origin/main' into sandcastle-v2
jjspace Jul 28, 2025
69fcd34
Merge branch 'sandcastle-v2' into stratakit-ui
jjspace Jul 28, 2025
2cc3558
Merge pull request #12752 from CesiumGS/gallery-conversion
ggetz Jul 28, 2025
38b78cd
Merge remote-tracking branch 'origin/sandcastle-v2' into stratakit-ui
jjspace Jul 28, 2025
4b3f7b8
Merge remote-tracking branch 'origin/stratakit-ui' into gallery-search
jjspace Jul 28, 2025
b39d298
fix console messages bleeding to next run
jjspace Jul 28, 2025
9060c71
touch up styling to remove !important
jjspace Jul 28, 2025
8abb9ee
stay on gallery when picking
jjspace Jul 28, 2025
380ab63
Merge remote-tracking branch 'origin/stratakit-ui' into gallery-search
jjspace Jul 28, 2025
4e22789
Merge pull request #12731 from CesiumGS/stratakit-ui
ggetz Jul 28, 2025
5ecefdb
restrict TS version
jjspace Aug 1, 2025
5838993
use node eslint config for sandcastle scripts
jjspace Aug 1, 2025
be50b8b
search input touchups
jjspace Aug 1, 2025
b8781c4
remove TestApp, import types directly
jjspace Aug 1, 2025
376e762
Merge remote-tracking branch 'origin/main' into sandcastle-v2
jjspace Aug 1, 2025
da1fb4f
Merge branch 'sandcastle-v2' into gallery-search
jjspace Aug 1, 2025
6341032
update page title, track dirty state, prevent navigation when dirty
jjspace Aug 1, 2025
cb04ec5
Merge branch 'sandcastle-v2' into monaco-loader
jjspace Aug 1, 2025
dba8344
beginnings of swapping to stratakit
jjspace Jun 6, 2025
a72e4d7
use unstable css function
jjspace Jul 16, 2025
35456c9
update stratakit and swap to css variables
jjspace Aug 1, 2025
eefe66a
implement stratakit-mimic styles
jjspace Aug 6, 2025
7bb0191
clean up bucket styles and FOUC fallback
jjspace Aug 6, 2025
7b08a51
reorganize components css and remove unneeded reset
jjspace Aug 6, 2025
e9f31ed
Merge remote-tracking branch 'origin/main' into sandcastle-v2
jjspace Aug 6, 2025
3cc096f
Merge branch 'sandcastle-v2' into stratakit-css
jjspace Aug 6, 2025
580d7da
fix prettier
jjspace Aug 6, 2025
1400b19
Merge branch 'sandcastle-v2' into stratakit-css
jjspace Aug 6, 2025
cd45db2
Merge branch 'sandcastle-v2' into gallery-search
jjspace Aug 8, 2025
7f0775c
Merge branch 'gallery-search' into window-title-dirty-state
jjspace Aug 8, 2025
3c2335c
Merge branch 'sandcastle-v2' into monaco-loader
jjspace Aug 8, 2025
37dd9c1
Merge pull request #12755 from CesiumGS/gallery-search
ggetz Aug 8, 2025
8126080
Merge pull request #12760 from CesiumGS/monaco-loader
ggetz Aug 8, 2025
d1236d6
Merge branch 'sandcastle-v2' into stratakit-css
jjspace Aug 8, 2025
2307ecb
update gallery styles for stratakit vars
jjspace Aug 8, 2025
43b11d8
extremely basic and unstyled modals, settings provider and context
jjspace Aug 8, 2025
9483529
Merge branch 'sandcastle-v2' into window-title-dirty-state
jjspace Aug 8, 2025
ab0d640
add common coding fonts for monaco
jjspace Aug 8, 2025
3e39586
limit gallery card rendering to help performance
jjspace Aug 13, 2025
b6d5312
hook up font settings
jjspace Aug 13, 2025
8992acf
define styles for dialog boxes and update settings modal
jjspace Aug 14, 2025
5fb8582
add setting for default left panel
jjspace Aug 14, 2025
2d2178b
remove popover for now
jjspace Aug 14, 2025
bc95028
Revert "remove popover for now"
jjspace Aug 19, 2025
de483b8
Search and gallery updates
ggetz Aug 22, 2025
5eb1128
add share and metadata popovers
jjspace Aug 22, 2025
1e368f1
add support for loading GH Gist urls
jjspace Aug 22, 2025
642bbc3
update title when importing gist
jjspace Aug 22, 2025
ed12b9b
add docs link, small style changes
jjspace Aug 22, 2025
2a0aae0
Merge pull request #12833 from CesiumGS/gist-urls
lukemckinstry Aug 25, 2025
2a07bc9
Simplify title
jjspace Aug 25, 2025
21c4cc7
small edits
jjspace Aug 25, 2025
7b72cb9
Merge pull request #12794 from CesiumGS/window-title-dirty-state
ggetz Aug 26, 2025
8c788bc
consolidate toolbar styles for all sandcastles
jjspace Aug 27, 2025
167d50e
Merge pull request #12802 from CesiumGS/stratakit-css
ggetz Aug 27, 2025
63957cf
Merge pull request #12848 from CesiumGS/sandcastle-toolbar-style
ggetz Aug 27, 2025
b8150ac
add font size setting, other minor edits
jjspace Aug 27, 2025
9108737
update fonts
jjspace Aug 27, 2025
338bb63
Merge remote-tracking branch 'origin/sandcastle-v2' into sandcastle-s…
jjspace Aug 27, 2025
6ca2bdd
fix icon not showing
jjspace Aug 27, 2025
91e24a8
Merge pull request #12819 from CesiumGS/sandcastle-settings
ggetz Aug 28, 2025
077827c
Merge branch 'sandcastle-v2' into docs-link
ggetz Aug 28, 2025
85d0149
Merge pull request #12834 from CesiumGS/docs-link
ggetz Aug 28, 2025
e1dfbbb
Default to Showcases label
ggetz Aug 28, 2025
9553528
Merge branch 'sandcastle-v2' into sandcastle-default-tag
ggetz Aug 28, 2025
e57d96b
Merge remote-tracking branch 'origin/main' into sandcastle-v2
jjspace Aug 28, 2025
bb8338e
Merge remote-tracking branch 'origin/sandcastle-v2' into sandcastle-p…
jjspace Aug 28, 2025
a81480f
Move default tag to the top of the selection list
ggetz Aug 28, 2025
2e58dc9
Add copied state to share popover, tweaked popover styling options
ggetz Aug 28, 2025
122d206
Merge pull request #12852 from CesiumGS/sandcastle-default-tag
jjspace Aug 28, 2025
5dac797
reset copy button, remove title, a11y description, adjust styles
jjspace Aug 28, 2025
c493b07
fix type
jjspace Aug 28, 2025
b9f3934
Merge branch 'sandcastle-v2' into sandcastle-search-updates
ggetz Aug 28, 2025
23eb110
Fixup load states
ggetz Aug 29, 2025
150fc4a
Build from root
ggetz Aug 29, 2025
d0c6608
update shadow
jjspace Aug 29, 2025
35941d5
add crosslink between old and new sandcastle
jjspace Aug 29, 2025
86ffbdf
update CI job to cesium.com branch
jjspace Aug 29, 2025
a508219
Merge pull request #12832 from CesiumGS/sandcastle-popovers
ggetz Aug 29, 2025
7d251b4
Merge branch 'sandcastle-v2' into sandcastle-search-updates
ggetz Aug 29, 2025
97f1f1f
update wording
jjspace Aug 29, 2025
7b675ab
Fixup load time and title issue
ggetz Sep 2, 2025
29db886
Cleanup
ggetz Sep 2, 2025
b39fdce
prettier
ggetz Sep 2, 2025
565e264
Merge pull request #12855 from CesiumGS/sandcastle-cross-links
ggetz Sep 2, 2025
d9604a9
Update packages/sandcastle/scripts/createGalleryRecord.js
ggetz Sep 2, 2025
6f594d7
Start Sandcastle metadata update pass
ggetz Sep 2, 2025
b450fe1
minor style and code changes from comments
jjspace Sep 2, 2025
e8ad99e
convert mars sandcastle
jjspace Sep 2, 2025
cac41cf
Merge pull request #12854 from CesiumGS/sandcastle-search-updates
jjspace Sep 2, 2025
ac704be
Merge remote-tracking branch 'origin/main' into sandcastle-v2
jjspace Sep 2, 2025
0f22e61
Merge remote-tracking branch 'origin/sandcastle-v2' into sandcastle-m…
jjspace Sep 2, 2025
7933edf
limit filter list height
jjspace Sep 2, 2025
d7375c0
Content updates for Sandcastle metadata
ggetz Sep 2, 2025
9aa7bb3
remove unneeded styles
jjspace Sep 2, 2025
8ca1824
add missing sandcastles and update gaussian splat sandcastle
jjspace Sep 2, 2025
9c6a9c3
Edit pass on sandcastle metadata
ggetz Sep 2, 2025
7fe1d62
Merge pull request #12865 from CesiumGS/sandcastle-metadata-cleanup
ggetz Sep 2, 2025
f3fe213
Merge branch 'main' into sandcastle-v2
ggetz Sep 3, 2025
55f21c9
Adjust verify package install order
ggetz Sep 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 4 additions & 2 deletions .github/actions/verify-package/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ cp cesium*.tgz ../test
cp Specs/test.*js ../test
cd ../test

npm install cesium*.tgz
npm install cesium-engine*.tgz
npm install cesium-widgets*.tgz
npm install cesium-1.*.tgz
NODE_ENV=development node test.cjs
NODE_ENV=production node test.cjs
node test.mjs
node test.mjs
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPO: ${{ github.repository }}
GITHUB_SHA: ${{ github.sha }}
BASE_URL: /cesium/${{ github.ref_name }}/
DEPLOYED_URL: https://ci-builds.cesium.com/cesium/${{ github.ref_name }}/
steps:
- uses: actions/checkout@v5
- name: install node 22
Expand All @@ -40,6 +42,8 @@ jobs:
run: npm pack --workspaces &> /dev/null
- name: build apps
run: npm run build-apps
- name: build sandcastle v2
run: npm run build-ci -w packages/sandcastle -- -l warn
- uses: ./.github/actions/verify-package
- name: deploy to s3
if: ${{ env.AWS_ACCESS_KEY_ID != '' }}
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/sandcastle-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: sandcastle-dev
on:
push:
branches:
- 'cesium.com'
jobs:
deploy:
runs-on: ubuntu-latest
env:
PROD: true
AWS_ACCESS_KEY_ID: ${{ secrets.PROD_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.PROD_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
BRANCH: ${{ github.ref_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPO: ${{ github.repository }}
GITHUB_SHA: ${{ github.sha }}
steps:
- uses: actions/checkout@v5
- name: install node 22
uses: actions/setup-node@v4
with:
node-version: '22'
- name: npm install
run: npm install
- name: build website release
run: npm run website-release
- name: build types
run: npm run build-ts
- name: build prod sandcastle
run: npm run build-prod -w packages/sandcastle -- -l warn
- name: deploy to dev-sandcastle.cesium.com
if: ${{ env.AWS_ACCESS_KEY_ID != '' }}
run: |
aws s3 sync Build/Sandcastle2/ s3://cesium-dev-sandcastle-website/ --cache-control "public, max-age=1800" --delete
1 change: 1 addition & 0 deletions .markdownlintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/node_modules
packages/sandcastle/node_modules
/ThirdParty
/Tools/**

Expand Down
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
!**/*.html
!**/*.md
!**/*.ts
!**/*.tsx

# Re-ignore a few things caught above

Expand All @@ -33,6 +34,9 @@ packages/widgets/Build/**
packages/widgets/index.js
packages/widgets/Source/ThirdParty/**

packages/sandcastle/node_modules/**
Apps/Sandcastle2/**

Specs/jasmine/**

Apps/Sandcastle/ThirdParty
Expand Down
28 changes: 9 additions & 19 deletions Apps/Sandcastle/CesiumSandcastle.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ body {
float: right;
}

#banner {
text-align: center;
background: #daf6ff;

a {
color: blue;
}
}

#codeContainer {
width: 40%;
}
Expand Down Expand Up @@ -186,25 +195,6 @@ a.linkButton:hover {
overflow: auto !important;
}

.feedback {
width: 250px;

.future-banner {
display: flex;
justify-content: center;
align-items: stretch;
text-align: center;
flex-direction: column;

h3 {
margin: 0 1em;
}
p {
margin: 1em 1.5em;
}
}
}

.claro .dijitTabContainerTop-tabs .dijitTabChecked .dijitTabContent {
background-position: 0 -103px;
}
Expand Down
37 changes: 9 additions & 28 deletions Apps/Sandcastle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@
data-dojo-type="dijit.layout.BorderContainer"
data-dojo-props="design: 'headline', gutters: true, liveSplitters: true"
>
<div
id="banner"
data-dojo-type="dijit.layout.ContentPane"
data-dojo-props="region: 'top'"
>
<a href="https://dev-sandcastle.cesium.com"
>Try the new version of Sandcastle today!</a
>
</div>
<div
id="toolbar"
data-dojo-type="dijit.Toolbar"
Expand Down Expand Up @@ -341,36 +350,8 @@
</div>
</div>
</div>
<div
class="feedback"
data-dojo-type="dijit.layout.TabContainer"
data-dojo-props="region: 'right'"
>
<div
class="future-banner"
data-dojo-type="dijit.layout.ContentPane"
data-dojo-props="title: 'Feedback'"
>
<h3>Help needed</h3>
<p>
We're currently gathering user feedback to make Sandcastle even
better.
</p>
<button data-dojo-type="dijit/form/Button" type="button">
Please share your thoughts!
<script
type="dojo/on"
data-dojo-event="click"
data-dojo-args="evt"
>
window.open("https://community.cesium.com/t/upgrading-sandcastle-we-need-your-input/39715/", "_blank")
</script>
</button>
</div>
</div>
</div>
</div>

<div class="dijitTooltip dijitTooltipBelow" id="docPopup">
<div
class="dijitTooltipContainer dijitTooltipContents"
Expand Down
59 changes: 58 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import globals from "globals";
import html from "eslint-plugin-html";
import configCesium from "@cesium/eslint-config";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import tseslint from "typescript-eslint";

export default [
{
Expand All @@ -15,6 +18,11 @@ export default [
"Apps/HelloWorld.html",
"Apps/Sandcastle/jsHintOptions.js",
"Apps/Sandcastle/gallery/gallery-index.js",
"Apps/Sandcastle2/",
"packages/sandcastle/public/",
"packages/sandcastle/templates/Sandcastle.d.ts",
"packages/sandcastle/templates/Sandcastle.js",
"packages/sandcastle/gallery/pagefind/",
"packages/engine/Source/Scene/GltfPipeline/**/*",
"packages/engine/Source/Shaders/**/*",
"Specs/jasmine/*",
Expand All @@ -32,7 +40,13 @@ export default [
...configCesium.configs.node,
},
{
files: [".github/**/*.js", "scripts/**/*.js", "gulpfile.js", "server.js"],
files: [
".github/**/*.js",
"scripts/**/*.js",
"packages/sandcastle/scripts/**/*.js",
"gulpfile.js",
"server.js",
],
...configCesium.configs.node,
languageOptions: {
...configCesium.configs.node.languageOptions,
Expand All @@ -41,6 +55,7 @@ export default [
},
{
files: ["packages/**/*.js", "Apps/**/*.js", "Specs/**/*.js", "**/*.html"],
ignores: ["packages/sandcastle/scripts/**/*.js"],
...configCesium.configs.browser,
plugins: { html },
rules: {
Expand Down Expand Up @@ -86,6 +101,48 @@ export default [
sourceType: "module",
},
},
...[...tseslint.configs.recommended].map((config) => ({
// This is needed to restrict to a specific path unless using the tseslint.config function
// https://typescript-eslint.io/packages/typescript-eslint#config
...config,
files: ["packages/sandcastle/**/*.{ts,tsx}"],
})),
{
// This config came from the vite project generation
files: ["packages/sandcastle/**/*.{ts,tsx}"],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
"react-hooks": reactHooks,
"react-refresh": reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
},
},
{
files: ["packages/sandcastle/gallery/**/*.js"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
},
rules: {
"no-alert": "off",
},
},
{
files: ["packages/sandcastle/gallery/hello-world/main.js"],
rules: {
// ignore this rule here to avoid the excessive eslint-disable comment in our bare minimum example
"no-unused-vars": "off",
},
},
{
files: ["Specs/**/*", "packages/**/Specs/**/*"],
languageOptions: {
Expand Down
26 changes: 17 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,18 @@ if (/\.0$/.test(version)) {
version = version.substring(0, version.length - 2);
}
const karmaConfigFile = resolve("./Specs/karma.conf.cjs");
function getWorkspaces(onlyDependencies = false) {
const dependencies = Object.keys(packageJson.dependencies);
return onlyDependencies
? packageJson.workspaces.filter((workspace) => {
return dependencies.includes(
workspace.replace("packages", `@${scope}`),
);
})
: packageJson.workspaces;
}

const devDeployUrl = "https://ci-builds.cesium.com/cesium/";
const devDeployUrl = process.env.DEPLOYED_URL;
const isProduction = process.env.PROD;

//Gulp doesn't seem to have a way to get the currently running tasks for setting
Expand Down Expand Up @@ -247,7 +257,7 @@ export async function buildTs() {
} else if (argv.workspace) {
workspaces = argv.workspace;
} else {
workspaces = packageJson.workspaces;
workspaces = getWorkspaces(true);
}

// Generate types for passed packages in order.
Expand Down Expand Up @@ -400,7 +410,7 @@ export async function buildDocs() {
stdio: "inherit",
env: Object.assign({}, process.env, {
CESIUM_VERSION: version,
CESIUM_PACKAGES: packageJson.workspaces,
CESIUM_PACKAGES: getWorkspaces(true),
}),
},
);
Expand Down Expand Up @@ -698,12 +708,10 @@ export async function deployStatus() {
const status = argv.status;
const message = argv.message;

const deployUrl = `${devDeployUrl + process.env.BRANCH}/`;
const deployUrl = `${devDeployUrl}`;
const zipUrl = `${deployUrl}Cesium-${version}.zip`;
const npmUrl = `${deployUrl}cesium-${version}.tgz`;
const coverageUrl = `${
devDeployUrl + process.env.BRANCH
}/Build/Coverage/index.html`;
const coverageUrl = `${devDeployUrl}Build/Coverage/index.html`;

return Promise.all([
setStatus(status, deployUrl, message, "deployment"),
Expand Down Expand Up @@ -1490,8 +1498,8 @@ async function getLicenseDataFromThirdPartyExtra(path, discoveredDependencies) {
return result;
}

// Resursively check the workspaces
for (const workspace of packageJson.workspaces) {
// Recursively check the workspaces
for (const workspace of getWorkspaces(true)) {
const workspacePackageJson = require(`./${workspace}/package.json`);
result = await getLicenseDataFromPackage(
workspacePackageJson,
Expand Down
7 changes: 6 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@
</li>
<li>
<a href="Apps/Sandcastle/index.html">Sandcastle</a>
(<a href="Build/Apps/Sandcastle/index.html">built version</a>)
<ul>
<li>
<a href="Build/Apps/Sandcastle/index.html">Built Sandcastle</a>
</li>
<li><a href="Apps/Sandcastle2/index.html">Sandcastle v2</a></li>
</ul>
</li>
<li>
<a href="Apps/CesiumViewer/index.html?inspector=true"
Expand Down
Loading
Loading