-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #255 from UW-Macrostrat/local-ssl
Changes for local development and PostgREST data views
- Loading branch information
Showing
19 changed files
with
417 additions
and
67 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -26,4 +26,8 @@ docker-compose.yaml | |
*.png | ||
*.jpg | ||
|
||
# Certificates for localhost SSL | ||
*.pem | ||
|
||
|
||
.vite |
This file contains 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
Submodule web-components
updated
9 files
This file contains 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 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 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 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 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,11 @@ | ||
export default { | ||
meta: { | ||
Page: { | ||
env: { | ||
client: true, | ||
server: false, | ||
}, | ||
}, | ||
}, | ||
clientRouting: false, | ||
}; |
This file contains 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 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 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,55 @@ | ||
import { FullscreenPage } from "~/layouts"; | ||
import h from "@macrostrat/hyper"; | ||
import { PageBreadcrumbs } from "~/components"; | ||
import { PostgRESTTableView } from "~/components/legend-table"; | ||
|
||
import { | ||
ColorCell, | ||
EditableTextArea, | ||
ColorPicker, | ||
} from "@macrostrat/data-sheet2"; | ||
import { asChromaColor } from "@macrostrat/color-utils"; | ||
import { LoginButton } from "#/maps/ingestion/components/navbar"; | ||
import { AuthStatus } from "@macrostrat/auth-components"; | ||
|
||
const colorField = { | ||
name: "Color", | ||
key: "color", | ||
required: false, | ||
transform: (d) => d, | ||
dataEditor: ColorPicker, | ||
valueRenderer: (d) => { | ||
let color = asChromaColor(d); | ||
return color?.name() ?? ""; | ||
}, | ||
// Maybe this should be changed to CellProps? | ||
cellComponent: ColorCell, | ||
}; | ||
|
||
export function Page() { | ||
return h(FullscreenPage, { className: "main" }, [ | ||
h(PageBreadcrumbs), | ||
h("div.header", [h("h1", "Entity types"), h("div.spacer"), h(AuthStatus)]), | ||
h(PostgRESTTableView, { | ||
table: "kg_entity_type", | ||
editable: true, | ||
columnOptions: { | ||
omitColumns: ["id"], | ||
overrides: { | ||
color: colorField, | ||
name: { | ||
name: "Name", | ||
style: { fontFamily: "monospace" }, | ||
}, | ||
description: { | ||
name: "Description", | ||
editable: true, | ||
//inlineEditor: true, | ||
dataEditor: EditableTextArea, | ||
}, | ||
}, | ||
}, | ||
order: { key: "id", ascending: true }, | ||
}), | ||
]); | ||
} |
This file contains 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 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 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
Oops, something went wrong.