Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1f6f88ebe |
No files matched your search
@@ -18,6 +18,7 @@ jobs:
|
||||
node-version: 22
|
||||
cache: pnpm
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: npx prisma generate
|
||||
- run: pnpm exec tsc --noEmit
|
||||
|
||||
test:
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "worldwideview",
|
||||
"version": "1.8.2",
|
||||
"version": "1.8.3",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"setup": "node scripts/setup.mjs",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@worldwideview/wwv-plugin-embassies",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"description": "WorldWideView plugin — Global embassies, consulates, and diplomatic missions from OpenStreetMap",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
|
||||
@@ -6,8 +6,8 @@ export class EmbassiesConsulatesPlugin extends BaseFacilityPlugin {
|
||||
name = "Embassies & Consulates";
|
||||
description = "Global embassies, consulates, and diplomatic missions from OpenStreetMap";
|
||||
icon = Landmark;
|
||||
category = "government" as const;
|
||||
version = "1.0.2";
|
||||
category = "infrastructure" as const;
|
||||
version = "1.0.3";
|
||||
|
||||
protected defaultLayerColor = "#a855f7";
|
||||
protected maxEntities = 1000;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@worldwideview/wwv-plugin-osm-search",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"description": "OSM Search Plugin for WorldWideView",
|
||||
"main": "src/index.ts",
|
||||
"type": "module",
|
||||
|
||||
@@ -43,7 +43,7 @@ export class OSMSearchPlugin implements WorldPlugin {
|
||||
return {
|
||||
// Default "go-to" distance in meters.
|
||||
// 500m provides a good "street-level" view for OSM features.
|
||||
preferredZoomDistance: 500,
|
||||
flyToBaseDistance: 500,
|
||||
showTrail: false
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@worldwideview/wwv-plugin-sdk",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"description": "Plugin SDK — types, interfaces, and utilities for building WorldWideView globe plugins",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
||||
@@ -231,7 +231,7 @@ export interface WorldPlugin {
|
||||
getServerConfig?(): ServerPluginConfig;
|
||||
getFilterDefinitions?(): FilterDefinition[];
|
||||
getLegend?(): { label: string; color: string; filterId?: string; filterValue?: string }[];
|
||||
getSidebarComponent?(): ComponentType;
|
||||
getSidebarComponent?(): ComponentType<{ plugin?: any } | any>;
|
||||
getDetailComponent?(): ComponentType<{ entity: GeoEntity }>;
|
||||
getSettingsComponent?(): ComponentType<{ pluginId: string }>;
|
||||
/** Custom React component injected into the Globe view for rendering primitives/data sources (e.g. GeoJSON). */
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@worldwideview/wwv-plugin-spaceports",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"description": "WorldWideView plugin — Space launch sites worldwide from OSM",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
|
||||
@@ -6,8 +6,8 @@ export class SpaceportsPlugin extends BaseFacilityPlugin {
|
||||
name = "Spaceports";
|
||||
description = "Space launch sites worldwide from OSM";
|
||||
icon = Rocket;
|
||||
category = "science" as const;
|
||||
version = "1.0.1";
|
||||
category = "space" as const;
|
||||
version = "1.0.2";
|
||||
|
||||
protected defaultLayerColor = "#7c3aed";
|
||||
protected maxEntities = 1000;
|
||||
|
||||
@@ -35,7 +35,7 @@ export async function GET(request: Request) {
|
||||
]);
|
||||
|
||||
const manifests = records
|
||||
.map((r): PluginManifest | null => {
|
||||
.map((r: any): PluginManifest | null => {
|
||||
try {
|
||||
const manifest = JSON.parse(r.config);
|
||||
if (!manifest.id) manifest.id = r.pluginId;
|
||||
@@ -44,7 +44,7 @@ export async function GET(request: Request) {
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.filter((m): m is PluginManifest => {
|
||||
.filter((m: any): m is PluginManifest => {
|
||||
if (!m) return false;
|
||||
// Skip built-in plugins — already registered by AppShell
|
||||
if (m.trust === "built-in") return false;
|
||||
@@ -62,7 +62,7 @@ export async function GET(request: Request) {
|
||||
const { valid } = validateManifest(m);
|
||||
return valid;
|
||||
})
|
||||
.map((m) => {
|
||||
.map((m: any) => {
|
||||
// Re-stamp trust against the live registry so revoked plugins
|
||||
// are correctly gated by the unverified dialog on the client.
|
||||
if (m.trust !== "built-in") {
|
||||
|
||||
@@ -26,10 +26,10 @@ export async function GET(request: Request) {
|
||||
|
||||
try {
|
||||
const dbPlugins = await getInstalledPlugins();
|
||||
const dbMap = new Map(dbPlugins.map((p) => [p.pluginId, p]));
|
||||
const dbMap = new Map(dbPlugins.map((p: any) => [p.pluginId, p]));
|
||||
|
||||
// Collect active DB plugins (exclude disabled ones)
|
||||
const activeDbPlugins = dbPlugins.filter((p) => p.enabled !== false);
|
||||
const activeDbPlugins = dbPlugins.filter((p: any) => p.enabled !== false);
|
||||
|
||||
// Add built-in plugins that aren't in the DB at all (default = installed)
|
||||
const builtInRecords = BUILT_IN_PLUGIN_IDS
|
||||
|
||||
@@ -377,7 +377,7 @@ export function IntelTab() {
|
||||
lat: selectedEntity.latitude,
|
||||
lon: selectedEntity.longitude,
|
||||
alt: selectedEntity.altitude || 0,
|
||||
distance: behavior?.preferredZoomDistance
|
||||
distance: behavior?.flyToBaseDistance
|
||||
});
|
||||
}}
|
||||
>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { expect, test, describe } from "vitest";
|
||||
import { readFileSync, globSync } from "fs";
|
||||
import * as fs from "fs";
|
||||
import { join } from "path";
|
||||
|
||||
describe("Monorepo Workspace Integrity", () => {
|
||||
@@ -8,15 +8,19 @@ describe("Monorepo Workspace Integrity", () => {
|
||||
// __dirname is dist/core/__tests__ when transpiled or src/core/__tests__ when running tsx/vitest natively
|
||||
const rootDir = process.cwd(); // vitest runs from workspace root
|
||||
|
||||
const packageDirs = fs.readdirSync(join(rootDir, "packages"), { withFileTypes: true })
|
||||
.filter(d => d.isDirectory())
|
||||
.map(d => `packages/${d.name}/package.json`)
|
||||
.filter(p => fs.existsSync(join(rootDir, p)));
|
||||
const packageJsonFiles = [
|
||||
"package.json",
|
||||
...globSync("packages/**/package.json", { cwd: rootDir, ignore: ["**/node_modules/**"] })
|
||||
...packageDirs
|
||||
];
|
||||
|
||||
let failedFiles: string[] = [];
|
||||
|
||||
for (const file of packageJsonFiles) {
|
||||
const content = readFileSync(join(rootDir, file), "utf-8");
|
||||
const content = fs.readFileSync(join(rootDir, file), "utf-8");
|
||||
const pkg = JSON.parse(content);
|
||||
const deps = { ...pkg.dependencies, ...pkg.devDependencies, ...pkg.peerDependencies };
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ export default function GlobeView() {
|
||||
|
||||
// Apply color overrides
|
||||
let options = originalOptions;
|
||||
if (colorOverrides && colorOverrides[originalOptions.color]) {
|
||||
if (originalOptions.color && colorOverrides && colorOverrides[originalOptions.color]) {
|
||||
options = { ...originalOptions, color: colorOverrides[originalOptions.color] };
|
||||
} else if (customLayerColor) {
|
||||
options = { ...originalOptions, color: customLayerColor };
|
||||
|
||||
@@ -55,5 +55,5 @@ export async function getDisabledPluginIds(): Promise<Set<string>> {
|
||||
where: { enabled: false },
|
||||
select: { pluginId: true },
|
||||
});
|
||||
return new Set(records.map((r) => r.pluginId));
|
||||
return new Set(records.map((r: any) => r.pluginId));
|
||||
}
|
||||
Reference in new issue
Block a user