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

@ -9,7 +9,7 @@ import { useTranslate } from "react-polyglot";
import { LanguageSelect } from "app/_components/LanguageSelect";
import LeafcutterLogoLarge from "images/leafcutter-logo-large.png";
import { signIn } from "next-auth/react";
import { useLeafcutterContext } from "leafcutter-ui";
import { useLeafcutterContext } from "@link-stack/leafcutter-ui";
type LoginProps = {
session: any;

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}`;

View file

@ -11,7 +11,7 @@ import {
bindTrigger,
bindMenu,
} from "material-ui-popup-state/hooks";
import { useLeafcutterContext } from "leafcutter-ui/components/LeafcutterProvider";
import { useLeafcutterContext } from "@link-stack/leafcutter-ui/components/LeafcutterProvider";
export const AccountButton: FC = () => {
const t = useTranslate();

View file

@ -8,7 +8,7 @@ import {
useState,
PropsWithChildren,
} from "react";
import { colors, typography } from "leafcutter-ui/styles/theme";
import { colors, typography } from "@link-stack/leafcutter-ui/styles/theme";
const basePath = process.env.GITLAB_CI
? "/link/link-stack/apps/leafcutter"

View file

@ -4,7 +4,7 @@ import { FC, useState } from "react";
import { useRouter, usePathname } from "next/navigation";
import { Button } from "@mui/material";
import { QuestionMark as QuestionMarkIcon } from "@mui/icons-material";
import { useLeafcutterContext } from "leafcutter-ui/components/LeafcutterProvider";
import { useLeafcutterContext } from "@link-stack/leafcutter-ui/components/LeafcutterProvider";
export const HelpButton: FC = () => {
const router = useRouter();

View file

@ -7,8 +7,8 @@ import CookieConsent from "react-cookie-consent";
import { useCookies } from "react-cookie";
import { TopNav } from "./TopNav";
import { Sidebar } from "./Sidebar";
import { GettingStartedDialog } from "leafcutter-ui";
import { useLeafcutterContext } from "leafcutter-ui/components/LeafcutterProvider";
import { GettingStartedDialog } from "@link-stack/leafcutter-ui";
import { useLeafcutterContext } from "@link-stack/leafcutter-ui/components/LeafcutterProvider";
// import { Footer } from "./Footer";
type LayoutProps = PropsWithChildren<{

View file

@ -8,7 +8,7 @@ import {
bindTrigger,
bindMenu,
} from "material-ui-popup-state/hooks";
import { useLeafcutterContext } from "leafcutter-ui/components/LeafcutterProvider";
import { useLeafcutterContext } from "@link-stack/leafcutter-ui/components/LeafcutterProvider";
// import { Tooltip } from "./Tooltip";
export const LanguageSelect = () => {

View file

@ -8,10 +8,10 @@ import { CookiesProvider } from "react-cookie";
import { I18n } from "react-polyglot";
import { AdapterDateFns } from "@mui/x-date-pickers-pro/AdapterDateFnsV3";
import { LocalizationProvider } from "@mui/x-date-pickers-pro";
import { LeafcutterProvider } from "leafcutter-ui/components/LeafcutterProvider";
import { LeafcutterProvider } from "@link-stack/leafcutter-ui/components/LeafcutterProvider";
import { NextAppDirEmotionCacheProvider } from "tss-react/next/appDir";
import en from "leafcutter-ui/locales/en.json";
import fr from "leafcutter-ui/locales/fr.json";
import en from "@link-stack/leafcutter-ui/locales/en.json";
import fr from "@link-stack/leafcutter-ui/locales/fr.json";
import { LicenseInfo } from "@mui/x-license";
LicenseInfo.setLicenseKey(

View file

@ -20,8 +20,8 @@ import {
import Link from "next/link";
import { usePathname } from "next/navigation";
import { useTranslate } from "react-polyglot";
import { useLeafcutterContext } from "leafcutter-ui/components/LeafcutterProvider";
import { Tooltip } from "leafcutter-ui";
import { useLeafcutterContext } from "@link-stack/leafcutter-ui/components/LeafcutterProvider";
import { Tooltip } from "@link-stack/leafcutter-ui";
// import { ArrowCircleRight as ArrowCircleRightIcon } from "@mui/icons-material";
const MenuItem = ({

View file

@ -8,8 +8,8 @@ import { useTranslate } from "react-polyglot";
import LeafcutterLogo from "images/leafcutter-logo.png";
import { AccountButton } from "./AccountButton";
import { HelpButton } from "./HelpButton";
import { Tooltip } from "leafcutter-ui";
import { useLeafcutterContext } from "leafcutter-ui/components/LeafcutterProvider";
import { Tooltip } from "@link-stack/leafcutter-ui";
import { useLeafcutterContext } from "@link-stack/leafcutter-ui/components/LeafcutterProvider";
// import { LanguageSelect } from "./LanguageSelect";
export const TopNav: FC = () => {

View file

@ -7,7 +7,7 @@ const ContentSecurityPolicy = `
`;
module.exports = {
transpilePackages: ["leafcutter-ui", "opensearch-common"],
transpilePackages: ["@link-stack/leafcutter-ui", "@link-stack/opensearch-common"],
experimental: {
missingSuspenseWithCSRBailout: false,
},

View file

@ -1,5 +1,5 @@
{
"name": "leafcutter",
"name": "@link-stack/leafcutter",
"version": "0.2.0",
"scripts": {
"dev": "next dev -p 3001",
@ -20,18 +20,18 @@
"@mui/icons-material": "^5",
"@mui/lab": "^5.0.0-alpha.170",
"@mui/material": "^5",
"@mui/x-data-grid-pro": "^7.4.0",
"@mui/x-date-pickers-pro": "^7.4.0",
"@opensearch-project/opensearch": "^2.8.0",
"@mui/x-data-grid-pro": "^7.6.1",
"@mui/x-date-pickers-pro": "^7.6.1",
"@opensearch-project/opensearch": "^2.9.0",
"cryptr": "^6.3.0",
"date-fns": "^3.6.0",
"http-proxy-middleware": "^3.0.0",
"leafcutter-ui": "*",
"material-ui-popup-state": "^5.1.0",
"@link-stack/leafcutter-ui": "*",
"material-ui-popup-state": "^5.1.2",
"next": "14.2.3",
"next-auth": "^4.24.7",
"next-http-proxy-middleware": "^1.2.6",
"opensearch-common": "*",
"@link-stack/opensearch-common": "*",
"nodemailer": "^6.9.13",
"react": "18.3.1",
"react-cookie": "^7.1.4",
@ -40,15 +40,15 @@
"react-iframe": "^1.8.5",
"react-markdown": "^9.0.1",
"react-polyglot": "^0.7.2",
"sharp": "^0.33.3",
"sharp": "^0.33.4",
"swr": "^2.2.5",
"tss-react": "^4.9.10",
"uuid": "^9.0.1"
},
"devDependencies": {
"@babel/core": "^7.24.5",
"@types/node": "^20.12.12",
"@types/react": "18.3.2",
"@babel/core": "^7.24.6",
"@types/node": "^20.14.1",
"@types/react": "18.3.3",
"@types/uuid": "^9.0.8",
"babel-loader": "^9.1.3",
"eslint": "^8.0.0",
@ -57,7 +57,7 @@
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react": "^7.34.2",
"typescript": "5.4.5"
}
}