Update package names

This commit is contained in:
Darren Clarke 2024-06-05 08:52:41 +02:00
parent 89d229eba9
commit 85a0fc11e5
106 changed files with 1908 additions and 2686 deletions

View file

@ -1,4 +1,4 @@
import { About } from "leafcutter-ui";
import { About } from "@link-stack/leafcutter-ui";
export default function Page() {
return <About />;

View file

@ -1,5 +1,5 @@
import { getTemplates } from "app/_lib/opensearch";
import { Create } from "leafcutter-ui";
import { Create } from "@link-stack/leafcutter-ui";
export default async function Page() {
const templates = await getTemplates(100);

View file

@ -1,4 +1,4 @@
import { FAQ } from "leafcutter-ui";
import { FAQ } from "@link-stack/leafcutter-ui";
export default function Page() {
return <FAQ />;

View file

@ -1,7 +1,7 @@
import { getServerSession } from "next-auth";
import { authOptions } from "app/_lib/auth";
import { getUserVisualizations } from "app/_lib/opensearch";
import { Home } from "leafcutter-ui";
import { Home } from "@link-stack/leafcutter-ui";
export default async function Page() {
const session = await getServerSession(authOptions);

View file

@ -1,6 +1,6 @@
/* eslint-disable no-underscore-dangle */
// import { Client } from "@opensearch-project/opensearch";
import { Preview } from "leafcutter-ui";
import { Preview } from "@link-stack/leafcutter-ui";
// import { createVisualization } from "lib/opensearch";
export default function Page() {

View file

@ -5,7 +5,7 @@ import { useLayoutEffect } from "react";
import { useRouter } from "next/navigation";
import { Grid, CircularProgress } from "@mui/material";
import Iframe from "react-iframe";
import { useLeafcutterContext } from "leafcutter-ui/components/LeafcutterProvider";
import { useLeafcutterContext } from "@link-stack/leafcutter-ui/components/LeafcutterProvider";
export const Setup: FC = () => {
const {

View file

@ -1,5 +1,5 @@
import { getTrends } from "app/_lib/opensearch";
import { Trends } from "leafcutter-ui";
import { Trends } from "@link-stack/leafcutter-ui";
export default async function Page() {
const visualizations = await getTrends(25);

View file

@ -1,6 +1,6 @@
/* eslint-disable no-underscore-dangle */
import { Client } from "@opensearch-project/opensearch";
import { VisualizationDetail } from "leafcutter-ui";
import { VisualizationDetail } from "@link-stack/leafcutter-ui";
const getVisualization = async (visualizationID: string) => {
const node = `https://${process.env.OPENSEARCH_USERNAME}:${process.env.OPENSEARCH_PASSWORD}@${process.env.OPENSEARCH_URL}`;