Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
8003b92
Remove cesium-martini submodule
davenquinn Feb 13, 2025
339493d
Got cesium-viewer to work as a portal
davenquinn Feb 13, 2025
58551c4
Removed separately packaged Cesium-Viewer dependency
davenquinn Feb 13, 2025
e94b8f0
Added local links to web dependencies
davenquinn Feb 13, 2025
4f45a0a
Updated with locally referenced dependencies
davenquinn Feb 13, 2025
5e3b4c2
Fixed broken packages
davenquinn Feb 14, 2025
90d6d72
Added vcs mappings
davenquinn Feb 14, 2025
09dc201
Got patterns to compile
davenquinn Feb 14, 2025
b7c87c8
Remove an unused import
davenquinn Feb 14, 2025
1544f4a
Remove separate map-components dependency
davenquinn Feb 14, 2025
6d71664
Upgrade paleogeography pages to use newer Corelle module
davenquinn Feb 15, 2025
71b1385
Added dependencies containing CSS to noExternal
davenquinn Feb 15, 2025
2579a2f
Reduced complexity of pattern loading
davenquinn Feb 15, 2025
49b207e
Starting point for upgrading vite and vike
davenquinn Feb 15, 2025
9c38ab4
Merge branch 'upgrade-vite' into simplify-dependencies
davenquinn Feb 15, 2025
da170cf
Update Yarn to 4.6.0
davenquinn Feb 15, 2025
5e5eed5
Column page compiles on server
davenquinn Feb 15, 2025
25de0e5
Small improvements to filter panel and dependency bundling
davenquinn Feb 16, 2025
ada1d23
Updated dependency versions
davenquinn Feb 16, 2025
1ad6b6a
Upgrade out-of-date dependencies
davenquinn Feb 16, 2025
bce0d05
Works ok with SSR noExternal
davenquinn Feb 16, 2025
3041435
Fix small styling errors with map interface
davenquinn Feb 16, 2025
3432890
Added css modules patch
davenquinn Feb 16, 2025
f077822
Fix page scrolling
davenquinn Feb 16, 2025
e610ecd
Resolve dependencies from source
davenquinn Feb 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
[submodule "bundledDeps/cesium-martini"]
path = packages/cesium-martini
url = https://github.com/davenquinn/cesium-martini.git
[submodule "deps/ui-components"]
path = deps/web-components
url = https://github.com/UW-Macrostrat/web-components.git
[submodule "deps/cesium-viewer"]
path = deps/cesium-viewer
url = https://github.com/UW-Macrostrat/cesium-viewer.git
[submodule "deps/cesium-martini"]
path = deps/cesium-martini
url = https://github.com/davenquinn/cesium-martini.git
5 changes: 0 additions & 5 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

556 changes: 278 additions & 278 deletions .yarn/releases/yarn-4.5.1.cjs → .yarn/releases/yarn-4.6.0.cjs

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@ compressionLevel: mixed
enableGlobalCache: false

packageExtensions:
"@next/react-dev-overlay@*":
peerDependencies:
react: "*"
debug@*:
dependencies:
supports-color: "*"
vite@*:
dependencies:
supports-color: "*"

'@next/react-dev-overlay@*':
peerDependencies:
react: '*'

pnpFallbackMode: all

pnpMode: loose

yarnPath: .yarn/releases/yarn-4.5.1.cjs
yarnPath: .yarn/releases/yarn-4.6.0.cjs
1 change: 0 additions & 1 deletion deps/cesium-martini
Submodule cesium-martini deleted from 88779c
1 change: 0 additions & 1 deletion deps/cesium-viewer
Submodule cesium-viewer deleted from d57812
1 change: 0 additions & 1 deletion deps/web-components
Submodule web-components deleted from c60bc8
63 changes: 30 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"test": "vitest"
},
"workspaces": [
"deps/web-components/packages/*",
"deps/cesium-viewer",
"deps/cesium-martini",
"packages/*"
],
"authors": [
Expand All @@ -42,17 +39,16 @@
"chalk": "^5.3.0",
"http-proxy-middleware": "^3.0.3",
"prettier": "^2.7.1",
"sass": "^1.49.0",
"sass-embedded": "^1.79.1",
"stylus": "^0.55.0",
"typescript": "^5.1.6",
"vite-plugin-rewrite-all": "^1.0.1",
"vitest": "^1.6.0"
},
"dependencies": {
"@blueprintjs/core": "^5.10.2",
"@blueprintjs/select": "^5.1.4",
"@blueprintjs/table": "^5.1.4",
"@corelle/svg-map-layers": "^1.0.0",
"@lagunovsky/redux-react-router": "^3.2.0",
"@loadable/component": "^5.14.1",
"@macrostrat-web/column-builder": "workspace:*",
Expand All @@ -66,27 +62,25 @@
"@macrostrat-web/sift": "workspace:*",
"@macrostrat-web/text-toolchain": "workspace:*",
"@macrostrat-web/utility-functions": "workspace:*",
"@macrostrat/api-utils": "workspace:*",
"@macrostrat/api-views": "workspace:*",
"@macrostrat/auth-components": "workspace:*",
"@macrostrat/color-utils": "workspace:*",
"@macrostrat/column-components": "workspace:*",
"@macrostrat/column-views": "workspace:*",
"@macrostrat/corelle": "^2.0.1",
"@macrostrat/data-components": "workspace:*",
"@macrostrat/data-sheet2": "workspace:*",
"@macrostrat/feedback-components": "workspace:*",
"@macrostrat/hyper": "^2.2.1",
"@macrostrat/map-components": "workspace:*",
"@macrostrat/map-interface": "workspace:*",
"@macrostrat/mapbox-react": "workspace:^2.1.0",
"@macrostrat/mapbox-styles": "workspace:*",
"@macrostrat/mapbox-utils": "workspace:*",
"@macrostrat/style-system": "workspace:*",
"@macrostrat/timescale": "workspace:*",
"@macrostrat/ui-components": "workspace:*",
"@macrostrat/api-types": "^1.0.0",
"@macrostrat/color-utils": "^1.0.0",
"@macrostrat/column-components": "^1.0.3",
"@macrostrat/column-views": "^1.0.2",
"@macrostrat/data-components": "^0.0.6",
"@macrostrat/data-sheet": "^2.0.1",
"@macrostrat/feedback-components": "^1.0.1",
"@macrostrat/form-components": "^0.1.2",
"@macrostrat/hyper": "^3.0.6",
"@macrostrat/map-interface": "^1.2.2",
"@macrostrat/map-styles": "^1.1.1",
"@macrostrat/mapbox-react": "^2.5.0",
"@macrostrat/mapbox-utils": "^1.4.0",
"@macrostrat/style-system": "^0.2.0",
"@macrostrat/svg-map-components": "^1.0.3",
"@macrostrat/timescale": "^2.1.1",
"@macrostrat/ui-components": "^4.1.2",
"@react-hook/size": "^2.1.2",
"@supabase/postgrest-js": "^1.11.0",
"@supabase/postgrest-js": "^1.18.1",
"@turf/bbox": "^6.5.0",
"@turf/boolean-contains": "^6.5.0",
"@turf/buffer": "^6.5.0",
Expand All @@ -106,25 +100,26 @@
"@visx/scale": "^2.2.2",
"@vitejs/plugin-react": "^4.0.4",
"allotment": "^1.20.2",
"axios": "^0.25.0",
"axios": "^1.7.9",
"chroma-js": "^3.0.0",
"classnames": "^2.2.6",
"compression": "^1.7.4",
"cookie-parser": "^1.4.6",
"cross-fetch": "^4.0.0",
"d3-array": "^3.1.1",
"d3-axis": "^3.0.0",
"d3-format": "^1.4.4",
"d3-format": "^3.1.0",
"d3-geo": "^3.0.1",
"d3-scale": "^4.0.2",
"d3-selection": "^1.0.0",
"d3-selection": "^3.0.0",
"d3-shape": "^3.2.0",
"esbuild": "^0.20.0",
"esbuild-register": "^3.5.0",
"esprima": "^4.0.1",
"express": "^4.18.2",
"express": "^4.21.2",
"express-http-proxy": "^2.0.0",
"fuse.js": "^7.0.0",
"geologic-patterns": "2.0.0-dev1",
"hex-to-css-filter": "^5.4.0",
"history": "^5.3.0",
"immutability-helper": "^3.1.1",
Expand Down Expand Up @@ -153,10 +148,12 @@
"use-element-dimensions": "^2.1.3",
"use-react-router-breadcrumbs": "^3.2.1",
"use-resize-observer": "^9.1.0",
"vike": "^0.4.199",
"vike-react": "^0.5.7",
"vite": "^5.3.2",
"vike": "^0.4.222",
"vike-react": "^0.5.12",
"vite": "^6.1.0",
"vite-css-modules": "^1.8.4",
"vite-plugin-cesium": "^1.2.22",
"vite-plugin-cjs-interop": "^2.1.6",
"vite-plugin-inspect": "^0.8.4",
"zustand": "^4.5.1"
},
Expand All @@ -167,5 +164,5 @@
"prettier": {
"proseWrap": "always"
},
"packageManager": "yarn@4.5.1"
"packageManager": "yarn@4.6.0"
}
14 changes: 7 additions & 7 deletions packages/column-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
"@blueprintjs/popover2": "^1.2.1",
"@blueprintjs/select": "^5.2.1",
"@macrostrat-web/settings": "workspace:*",
"@macrostrat/column-components": "workspace:*",
"@macrostrat/data-components": "workspace:*",
"@macrostrat/form-components": "workspace:*",
"@macrostrat/hyper": "^2.0.1",
"@macrostrat/ui-components": "workspace:*",
"@macrostrat/column-components": "^1.0.3",
"@macrostrat/data-components": "^0.0.6",
"@macrostrat/form-components": "^0.1.2",
"@macrostrat/hyper": "^3.0.6",
"@macrostrat/ui-components": "^4.1.2",
"@mapbox/mapbox-gl-draw": "^1.3.0",
"@supabase/postgrest-js": "^0.36.0",
"@supabase/postgrest-js": "^1.18.1",
"@types/mapbox__mapbox-gl-draw": "^1.2.3",
"axios": "^0.27.2",
"axios": "^1.7.9",
"cross-fetch": "^3.1.5",
"mapbox-gl": "^2.8.2",
"react": "^18",
Expand Down
2 changes: 1 addition & 1 deletion packages/globe-dev/__temp_disabled/cesium-view.old.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function BaseLayer({ enabled = true, style, accessToken, ...rest }) {
import "@znemz/cesium-navigation/dist/index.css";

import { SETTINGS } from "../settings";
import { buildXRayStyle } from "@macrostrat/mapbox-styles";
import { buildXRayStyle } from "@macrostrat/map-styles";

// const VectorGeologyLayer = ({ enabled = true, ...rest }) => {
// const provider = useRef(
Expand Down
13 changes: 7 additions & 6 deletions packages/globe-dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
"vite-plugin-cesium": "^1.2.22"
},
"dependencies": {
"@macrostrat/cesium-martini": "workspace:^1.3.0",
"@macrostrat/cesium-martini": "^1.5.3",
"@macrostrat/cesium-vector-provider": "2.0.2",
"@macrostrat/cesium-viewer": "workspace:*",
"@macrostrat/hyper": "^2.0.1",
"@macrostrat/mapbox-react": "workspace:*",
"@macrostrat/mapbox-utils": "workspace:*",
"cesium": "^1.123.1"
"@macrostrat/cesium-viewer": "^1.2.1",
"@macrostrat/hyper": "^3.0.6",
"@macrostrat/mapbox-react": "^2.5.0",
"@macrostrat/mapbox-utils": "^1.4.0",
"cesium": "^1.123.1",
"resium": "^1.18.0"
}
}
1 change: 0 additions & 1 deletion packages/globe-dev/src/cesium-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import TerrainProvider from "@macrostrat/cesium-martini";
import { useRef, useEffect } from "react";
import h from "@macrostrat/hyper";
import { ImageryLayer } from "resium";
import CesiumViewer, {
DisplayQuality,
MapboxLogo,
Expand Down
1 change: 0 additions & 1 deletion packages/globe-dev/src/main.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ body {
border-radius: 4px;
margin-bottom: 2px;
text-decoration: none;
background-color: #eee;
}

.controls li a.active {
Expand Down
6 changes: 3 additions & 3 deletions packages/lithology-hierarchy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"main": "src/index.ts",
"license": "ISC",
"dependencies": {
"@macrostrat-web/settings": "workspace:^1.0.0",
"@macrostrat/hyper": "^2.2.1",
"@macrostrat/ui-components": "workspace:*",
"@macrostrat-web/settings": "workspace:^",
"@macrostrat/hyper": "^3.0.6",
"@macrostrat/ui-components": "^4.1.2",
"@visx/gradient": "^3.3.0",
"@visx/group": "^3.3.0",
"@visx/hierarchy": "^3.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/qgis-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"node": ">=18.0.0"
},
"dependencies": {
"express": "^4.19.2"
"express": "^4.21.2"
},
"devDependencies": {
"@types/express": "^4"
Expand Down
4 changes: 2 additions & 2 deletions packages/section-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"license": "ISC",
"dependencies": {
"@blueprintjs/core": "^5.10.3",
"@macrostrat/hyper": "^2.0",
"@macrostrat/ui-components": "workspace:*",
"@macrostrat/hyper": "^3.0.6",
"@macrostrat/ui-components": "^4.1.2",
"chroma-js": "^2.0.6",
"d3": "^5.12.0",
"labella": "^1.1.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/sift/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"license": "CC0-1.0",
"dependencies": {
"@macrostrat-web/settings": "workspace:*",
"@macrostrat/hyper": "^2.2.1",
"@macrostrat/hyper": "^3.0.6",
"async": "^1.5.2",
"chart.js": "^1.0.2",
"fastclick": "^1.0.6",
Expand Down
6 changes: 1 addition & 5 deletions pages/+Layout.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import {
DarkModeProvider,
DevToolsConsole,
DevToolsProvider,
} from "@macrostrat/ui-components";
import { DarkModeProvider, DevToolsConsole } from "@macrostrat/ui-components";
import { ReactNode } from "react";

import { AuthProvider } from "~/_providers/auth";
Expand Down
1 change: 1 addition & 0 deletions pages/+config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type { Config } from "vike/types";
// Default config (can be overridden by pages)
export default {
title: "Macrostrat",
pageStyle: "content",
description:
"A platform for geological data exploration, integration, and analysis.",
extends: vikeReact,
Expand Down
2 changes: 1 addition & 1 deletion pages/_error/+Page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function LoginButton() {
/** For now, the login button only loads on the client side */
return h(ClientOnly, {
load: async () => {
const res = await import("@macrostrat/auth-components");
const res = await import("@macrostrat/form-components");
return res.AuthStatus;
},
fallback: h(
Expand Down
1 change: 1 addition & 0 deletions pages/columns/+config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export default {
title: "Columns",
pageStyle: "content",
};
15 changes: 0 additions & 15 deletions pages/columns/@column/+config.ts

This file was deleted.

2 changes: 1 addition & 1 deletion pages/columns/@column/+onBeforeRender.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// https://vike.dev/onBeforeRender

import { apiV2Prefix } from "@macrostrat-web/settings";
import { preprocessUnits } from "@macrostrat/column-views/src/helpers";
import { preprocessUnits } from "@macrostrat/column-views";
import fetch from "node-fetch";

import { ColumnSummary } from "#/map/map-interface/app-state/handlers/columns";
Expand Down
8 changes: 5 additions & 3 deletions pages/columns/@column/column-inspector/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MacrostratAPIProvider } from "@macrostrat/api-views";
import { MacrostratAPIProvider } from "@macrostrat/column-views";
import {
ColumnNavigatorMap,
UnitSelectionProvider,
Expand All @@ -10,13 +10,15 @@ import { hyperStyled } from "@macrostrat/hyper";
import { getHashString, setHashString } from "@macrostrat/ui-components";
import { useEffect, useRef } from "react";
import { apiV2Prefix } from "@macrostrat-web/settings";
import { PatternProvider } from "~/_providers.client";
import { PatternProvider } from "~/_providers";
import styles from "./column-inspector.module.styl";
import ModalUnitPanel from "./modal-panel";
import { BasePage } from "~/layouts";

import { navigate } from "vike/client/router";
import { PageBreadcrumbs } from "~/components";
import { onDemand } from "~/_utils";

const ModalUnitPanel = onDemand(() => import("./modal-panel"));

const h = hyperStyled(styles);

Expand Down
2 changes: 1 addition & 1 deletion pages/columns/correlation/+Page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Feature, FeatureCollection, LineString, Point } from "geojson";
import { useEffect, useMemo } from "react";
import { setGeoJSON } from "@macrostrat/mapbox-utils";
import { useCorrelationDiagramStore } from "./state";
import { PatternProvider } from "~/_providers.client";
import { PatternProvider } from "~/_providers";

import { buildCrossSectionLayers } from "~/_utils/map-layers";
import { Button, OverlaysProvider } from "@blueprintjs/core";
Expand Down
Loading