mirror of
https://github.com/outline/outline.git
synced 2026-11-27 07:58:51 +03:00
Merge remote-tracking branch 'origin/main' into tommoor/personal-documents
# Conflicts: # app/components/HoverPreview/HoverPreviewDocument.tsx
This commit is contained in:
90 files changed
+432
-568
No files matched your search
@@ -1,5 +1,4 @@
|
||||
import { transparentize } from "polished";
|
||||
import { Link } from "react-router-dom";
|
||||
import styled, { css } from "styled-components";
|
||||
import { s } from "@shared/styles";
|
||||
import Text from "~/components/Text";
|
||||
@@ -16,9 +15,8 @@ const StyledText = styled(Text)`
|
||||
margin-bottom: 0;
|
||||
`;
|
||||
|
||||
export const Preview = styled(Link)`
|
||||
cursor: ${(props: { as?: string }) =>
|
||||
props.as === "div" ? "default" : "var(--pointer)"};
|
||||
export const Preview = styled.a`
|
||||
cursor: ${(props) => (props.as === "div" ? "default" : "var(--pointer)")};
|
||||
border-radius: 4px;
|
||||
box-shadow:
|
||||
0 30px 90px -20px rgba(0, 0, 0, 0.3),
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { richExtensions } from "@shared/editor/nodes";
|
||||
import type { UnfurlResourceType, UnfurlResponse } from "@shared/types";
|
||||
import Editor from "~/components/Editor";
|
||||
@@ -76,7 +77,10 @@ const HoverPreviewDocument = observer(
|
||||
}
|
||||
|
||||
return (
|
||||
<Preview to={`${parsedUrl.pathname}${parsedUrl.search}${parsedUrl.hash}`}>
|
||||
<Preview
|
||||
as={Link}
|
||||
to={`${parsedUrl.pathname}${parsedUrl.search}${parsedUrl.hash}`}
|
||||
>
|
||||
{content}
|
||||
</Preview>
|
||||
);
|
||||
|
||||
@@ -10,9 +10,9 @@ type Props = ActionButtonProps & {
|
||||
type?: "button" | "submit" | "reset";
|
||||
};
|
||||
|
||||
const NudeButton = styled(ActionButton).attrs((props: Props) => ({
|
||||
const NudeButton = styled(ActionButton).attrs<Props>((props) => ({
|
||||
type: "type" in props ? props.type : "button",
|
||||
}))<Props>`
|
||||
}))`
|
||||
width: ${(props) =>
|
||||
typeof props.width === "string"
|
||||
? props.width
|
||||
|
||||
@@ -2,7 +2,7 @@ import { observer } from "mobx-react";
|
||||
import * as React from "react";
|
||||
import { mergeRefs } from "react-merge-refs";
|
||||
import { useHistory } from "react-router-dom";
|
||||
import styled, { css, useTheme } from "styled-components";
|
||||
import styled, { useTheme } from "styled-components";
|
||||
import breakpoint from "styled-components-breakpoint";
|
||||
import { depths, s } from "@shared/styles";
|
||||
import { Avatar } from "~/components/Avatar";
|
||||
@@ -430,7 +430,7 @@ const Container = styled(Flex)<ContainerProps>`
|
||||
props.$collapsed ? `calc(100% - 8px)` : 0});
|
||||
}
|
||||
|
||||
${(props: ContainerProps) => props.$isHovering && css(hoverStyles)}
|
||||
${(props: ContainerProps) => props.$isHovering && hoverStyles(props)}
|
||||
|
||||
&:hover {
|
||||
${ToggleButton} {
|
||||
|
||||
@@ -53,7 +53,7 @@ const Cursor = styled.div<{
|
||||
background: transparent;
|
||||
${(props) => (props.position === "top" ? "top: -7px;" : "bottom: -7px;")}
|
||||
|
||||
::after {
|
||||
&::after {
|
||||
background: ${(props) => props.theme.accent};
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
|
||||
@@ -10,7 +10,10 @@ import { draggableOnDesktop, undraggableOnDesktop } from "~/styles";
|
||||
import Desktop from "~/utils/Desktop";
|
||||
import { HStack } from "~/components/primitives/HStack";
|
||||
|
||||
export type SidebarButtonProps = React.ComponentProps<typeof Button> & {
|
||||
export type SidebarButtonProps = Omit<
|
||||
React.ButtonHTMLAttributes<HTMLButtonElement>,
|
||||
"title"
|
||||
> & {
|
||||
position?: "top" | "bottom";
|
||||
title?: React.ReactNode;
|
||||
image: React.ReactNode;
|
||||
|
||||
@@ -227,6 +227,7 @@ function SidebarLink({
|
||||
|
||||
return (
|
||||
<Link
|
||||
as={NavLink}
|
||||
$isActiveDrop={isActiveDrop}
|
||||
$isDraft={isDraft}
|
||||
$disabled={disabled}
|
||||
@@ -243,7 +244,6 @@ function SidebarLink({
|
||||
to={to!}
|
||||
href={href}
|
||||
className={className}
|
||||
// @ts-expect-error spread props cause overload mismatch with styled NavLink
|
||||
ref={ref}
|
||||
{...rest}
|
||||
>
|
||||
@@ -277,7 +277,7 @@ const HiddenDisclosure = styled(Disclosure)`
|
||||
margin-inline-start: -2px;
|
||||
`;
|
||||
|
||||
const Link = styled(NavLink)<{
|
||||
const Link = styled.a<{
|
||||
$isActiveDrop?: boolean;
|
||||
$isDraft?: boolean;
|
||||
$disabled?: boolean;
|
||||
|
||||
+15
-11
@@ -3,6 +3,7 @@ import { observer } from "mobx-react";
|
||||
import * as React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { ThemeProvider } from "styled-components";
|
||||
import { StyleSheetProvider } from "@shared/components/StyleSheetProvider";
|
||||
import GlobalStyles from "@shared/styles/globals";
|
||||
import { TeamPreference, UserPreference } from "@shared/types";
|
||||
import { isRTLLanguage } from "@shared/utils/rtl";
|
||||
@@ -53,17 +54,20 @@ const Theme: React.FC<Props> = ({ children }: Props) => {
|
||||
|
||||
return (
|
||||
<DirectionProvider dir={direction}>
|
||||
<ThemeProvider theme={theme}>
|
||||
<>
|
||||
<GlobalStyles
|
||||
useCursorPointer={
|
||||
// Default to showing the cursor pointer if no user is logged in (public share)
|
||||
auth.user?.getPreference(UserPreference.UseCursorPointer) ?? true
|
||||
}
|
||||
/>
|
||||
{children}
|
||||
</>
|
||||
</ThemeProvider>
|
||||
<StyleSheetProvider>
|
||||
<ThemeProvider theme={theme}>
|
||||
<>
|
||||
<GlobalStyles
|
||||
useCursorPointer={
|
||||
// Default to showing the cursor pointer if no user is logged in (public share)
|
||||
auth.user?.getPreference(UserPreference.UseCursorPointer) ??
|
||||
true
|
||||
}
|
||||
/>
|
||||
{children}
|
||||
</>
|
||||
</ThemeProvider>
|
||||
</StyleSheetProvider>
|
||||
</DirectionProvider>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { observer } from "mobx-react";
|
||||
import { Toaster } from "sonner";
|
||||
import { Toaster, type ToasterProps } from "sonner";
|
||||
import styled, { useTheme } from "styled-components";
|
||||
import useStores from "~/hooks/useStores";
|
||||
import type { ResolvedTheme } from "~/stores/UiStore";
|
||||
@@ -10,8 +10,7 @@ function Toasts() {
|
||||
|
||||
return (
|
||||
<StyledToaster
|
||||
// @ts-expect-error styled-components overrides sonner's theme prop with DefaultTheme
|
||||
theme={ui.resolvedTheme as ResolvedTheme}
|
||||
resolvedTheme={ui.resolvedTheme as ResolvedTheme}
|
||||
closeButton
|
||||
toastOptions={{
|
||||
duration: 5000,
|
||||
@@ -27,7 +26,15 @@ function Toasts() {
|
||||
);
|
||||
}
|
||||
|
||||
const StyledToaster = styled(Toaster)`
|
||||
// styled-components reserves the `theme` prop, so it is passed under another name.
|
||||
function ThemedToaster({
|
||||
resolvedTheme,
|
||||
...rest
|
||||
}: Omit<ToasterProps, "theme"> & { resolvedTheme: ResolvedTheme }) {
|
||||
return <Toaster {...rest} theme={resolvedTheme} />;
|
||||
}
|
||||
|
||||
const StyledToaster = styled(ThemedToaster)`
|
||||
[data-close-button] {
|
||||
cursor: var(--pointer);
|
||||
opacity: 0;
|
||||
|
||||
@@ -98,11 +98,11 @@ export const MenuButton = styled.button<MenuButtonProps>`
|
||||
${BaseMenuItemCSS}
|
||||
`;
|
||||
|
||||
export const MenuInternalLink = styled(Link)`
|
||||
export const MenuInternalLink = styled(Link)<BaseMenuItemProps>`
|
||||
${BaseMenuItemCSS}
|
||||
`;
|
||||
|
||||
export const MenuExternalLink = styled.a`
|
||||
export const MenuExternalLink = styled.a<BaseMenuItemProps>`
|
||||
${BaseMenuItemCSS}
|
||||
`;
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
import type { Decoration, NodeViewConstructor } from "prosemirror-view";
|
||||
import { EditorView } from "prosemirror-view";
|
||||
import * as React from "react";
|
||||
import type { DefaultTheme, ThemeProps } from "styled-components";
|
||||
import type { DefaultTheme } from "styled-components";
|
||||
import styled, { css } from "styled-components";
|
||||
import type { CommentAnchor } from "@shared/editor/commands/comment";
|
||||
import insertFiles from "@shared/editor/commands/insertFiles";
|
||||
@@ -214,7 +214,7 @@ type State = {
|
||||
* ~/components/Editor instead.
|
||||
*/
|
||||
export class Editor extends React.PureComponent<
|
||||
Props & ThemeProps<DefaultTheme>,
|
||||
Props & { theme: DefaultTheme },
|
||||
State
|
||||
> {
|
||||
static defaultProps = {
|
||||
|
||||
@@ -61,19 +61,19 @@ const StyledInput = styled.input`
|
||||
border-radius: 4px;
|
||||
color: ${s("text")};
|
||||
|
||||
::-webkit-search-cancel-button {
|
||||
&::-webkit-search-cancel-button {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
::-webkit-input-placeholder {
|
||||
&::-webkit-input-placeholder {
|
||||
color: ${s("placeholder")};
|
||||
}
|
||||
:-moz-placeholder {
|
||||
&:-moz-placeholder {
|
||||
color: ${s("placeholder")};
|
||||
}
|
||||
::-moz-placeholder {
|
||||
&::-moz-placeholder {
|
||||
color: ${s("placeholder")};
|
||||
}
|
||||
:-ms-input-placeholder {
|
||||
&:-ms-input-placeholder {
|
||||
color: ${s("placeholder")};
|
||||
}
|
||||
`;
|
||||
|
||||
+6
-17
@@ -68,6 +68,7 @@
|
||||
"@dnd-kit/sortable": "^7.0.2",
|
||||
"@dotenvx/dotenvx": "^1.75.1",
|
||||
"@emoji-mart/data": "^1.2.1",
|
||||
"@emotion/is-prop-valid": "^1.4.0",
|
||||
"@fast-csv/parse": "^5.0.7",
|
||||
"@firecrawl/pdf-inspector": "^1.11.2",
|
||||
"@fortawesome/fontawesome-svg-core": "^7.3.1",
|
||||
@@ -81,9 +82,12 @@
|
||||
"@hocuspocus/provider": "1.1.3",
|
||||
"@hocuspocus/server": "1.1.3",
|
||||
"@juggle/resize-observer": "^3.4.0",
|
||||
"@koa/router": "^15.7.0",
|
||||
"@koa/send": "^6.0.0",
|
||||
"@linear/sdk": "^97.0.0",
|
||||
"@mermaid-js/layout-elk": "0.2.2",
|
||||
"@modelcontextprotocol/sdk": "^1.31.0",
|
||||
"@noble/hashes": "^2.4.0",
|
||||
"@node-oauth/oauth2-server": "^5.3.0",
|
||||
"@notionhq/client": "^2.3.0",
|
||||
"@octokit/auth-app": "^8.3.1",
|
||||
@@ -109,12 +113,11 @@
|
||||
"@sentry/react": "^10.76.0",
|
||||
"@simplewebauthn/browser": "^13.3.0",
|
||||
"@simplewebauthn/server": "^13.3.3",
|
||||
"@socket.io/redis-adapter": "^8.3.0",
|
||||
"@tanstack/react-table": "^8.21.3",
|
||||
"@tanstack/react-virtual": "^3.14.9",
|
||||
"@types/form-data": "^2.5.2",
|
||||
"@types/mailparser": "^3.4.6",
|
||||
"@types/pako": "^2.0.4",
|
||||
"@types/sanitize-filename": "^1.6.3",
|
||||
"@vitejs/plugin-react": "^6.1.1",
|
||||
"addressparser": "^1.0.1",
|
||||
"async-sema": "^3.1.1",
|
||||
@@ -127,7 +130,6 @@
|
||||
"cookie": "^0.7.2",
|
||||
"copy-to-clipboard": "^3.3.3",
|
||||
"core-js": "^3.49.0",
|
||||
"crypto-js": "^4.2.0",
|
||||
"date-fns": "^3.6.0",
|
||||
"dd-trace": "^5.130.0",
|
||||
"diff": "^5.2.2",
|
||||
@@ -168,8 +170,6 @@
|
||||
"koa-helmet": "^6.1.0",
|
||||
"koa-logger": "^3.2.1",
|
||||
"koa-mount": "^4.2.0",
|
||||
"koa-router": "7.4.0",
|
||||
"koa-send": "5.0.1",
|
||||
"koa-sslify": "5.0.1",
|
||||
"koa-useragent": "^4.1.0",
|
||||
"lib0": "^0.2.99",
|
||||
@@ -252,11 +252,10 @@
|
||||
"slugify": "^1.6.9",
|
||||
"socket.io": "^4.8.3",
|
||||
"socket.io-client": "^4.8.4",
|
||||
"socket.io-redis": "^6.1.1",
|
||||
"sonner": "^2.0.8",
|
||||
"stoppable": "^1.1.0",
|
||||
"string-replace-to-array": "^2.1.1",
|
||||
"styled-components": "^5.3.11",
|
||||
"styled-components": "^6.5.3",
|
||||
"styled-components-breakpoint": "^2.1.1",
|
||||
"styled-normalize": "^8.1.1",
|
||||
"throng": "^5.0.0",
|
||||
@@ -287,16 +286,12 @@
|
||||
"@swc/core": "^1.15.32",
|
||||
"@types/addressparser": "^1.0.3",
|
||||
"@types/cookie": "0.6.0",
|
||||
"@types/crypto-js": "^4.2.2",
|
||||
"@types/diff": "^5.0.9",
|
||||
"@types/dotenv": "^8.2.3",
|
||||
"@types/emoji-regex": "^9.2.2",
|
||||
"@types/escape-html": "^1.0.4",
|
||||
"@types/express-useragent": "^1.0.5",
|
||||
"@types/formidable": "^2.0.6",
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/fuzzy-search": "^2.1.5",
|
||||
"@types/glob": "^8.0.1",
|
||||
"@types/google.analytics": "^0.0.46",
|
||||
"@types/invariant": "^2.2.37",
|
||||
"@types/ioredis-mock": "^8.2.8",
|
||||
@@ -308,10 +303,7 @@
|
||||
"@types/koa-compress": "^4.0.7",
|
||||
"@types/koa-logger": "^3.1.5",
|
||||
"@types/koa-mount": "^4.0.5",
|
||||
"@types/koa-router": "^7.4.9",
|
||||
"@types/koa-send": "^4.1.6",
|
||||
"@types/koa-sslify": "^4.0.6",
|
||||
"@types/koa-useragent": "^2.1.2",
|
||||
"@types/markdown-it": "14.2.0",
|
||||
"@types/markdown-it-container": "^2.0.11",
|
||||
"@types/markdown-it-emoji": "^3.0.1",
|
||||
@@ -327,17 +319,14 @@
|
||||
"@types/react": "19.3.0",
|
||||
"@types/react-dom": "^19.3.0",
|
||||
"@types/react-router-dom": "^5.3.3",
|
||||
"@types/react-virtualized-auto-sizer": "^1.0.8",
|
||||
"@types/react-window": "^1.8.8",
|
||||
"@types/readable-stream": "^4.0.24",
|
||||
"@types/redis-info": "^3.0.3",
|
||||
"@types/refractor": "^3.4.1",
|
||||
"@types/resolve-path": "^1.4.3",
|
||||
"@types/semver": "^7.7.1",
|
||||
"@types/sequelize": "^4.28.20",
|
||||
"@types/slug": "^5.0.9",
|
||||
"@types/stoppable": "^1.1.3",
|
||||
"@types/styled-components": "^5.1.36",
|
||||
"@types/throng": "^5.0.7",
|
||||
"@types/tmp": "^0.2.6",
|
||||
"@types/utf8": "^3.0.3",
|
||||
|
||||
@@ -2,7 +2,7 @@ import passport from "@outlinewiki/koa-passport";
|
||||
import { Strategy as AzureStrategy } from "@outlinewiki/passport-azure-ad-oauth2";
|
||||
import jwt from "jsonwebtoken";
|
||||
import type { Request } from "koa";
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import type { Profile } from "passport";
|
||||
import { toError } from "@shared/utils/error";
|
||||
import { slugifyDomain } from "@shared/utils/domains";
|
||||
|
||||
@@ -6,7 +6,7 @@ import type {
|
||||
RESTGetCurrentUserGuildMemberResult,
|
||||
} from "discord-api-types/v10";
|
||||
import type { Request } from "koa";
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
|
||||
import { Strategy } from "passport-oauth2";
|
||||
import { toError } from "@shared/utils/error";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { errToString } from "@shared/utils/error";
|
||||
import { Client, NotificationEventType } from "@shared/types";
|
||||
import { parseDomain } from "@shared/utils/domains";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { toError } from "@shared/utils/error";
|
||||
import auth from "@server/middlewares/authentication";
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import * as T from "./schema";
|
||||
import apexAuthRedirect from "@server/middlewares/apexAuthRedirect";
|
||||
import type { APIContext } from "@server/types";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { find } from "es-toolkit/compat";
|
||||
import { IntegrationService, IntegrationType } from "@shared/types";
|
||||
import { createContext } from "@server/context";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { Op } from "sequelize";
|
||||
import { toError } from "@shared/utils/error";
|
||||
import { IntegrationService, IntegrationType } from "@shared/types";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import passport from "@outlinewiki/koa-passport";
|
||||
import type { Request } from "koa";
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { capitalize } from "es-toolkit/compat";
|
||||
import type { Profile } from "passport";
|
||||
import { Strategy as GoogleStrategy } from "passport-google-oauth2";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { toError } from "@shared/utils/error";
|
||||
import { IntegrationService, IntegrationType } from "@shared/types";
|
||||
import { ValidationError } from "@server/errors";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { IntegrationService, IntegrationType } from "@shared/types";
|
||||
import { ValidationError } from "@server/errors";
|
||||
import apexAuthRedirect from "@server/middlewares/apexAuthRedirect";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { toError } from "@shared/utils/error";
|
||||
import Logger from "@server/logging/Logger";
|
||||
import env from "../env";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import passport from "@outlinewiki/koa-passport";
|
||||
import JWT from "jsonwebtoken";
|
||||
import type { Context, Request } from "koa";
|
||||
import type Router from "koa-router";
|
||||
import type Router from "@koa/router";
|
||||
import { get } from "es-toolkit/compat";
|
||||
import { toError } from "@shared/utils/error";
|
||||
import { slugifyDomain } from "@shared/utils/domains";
|
||||
|
||||
@@ -3,7 +3,7 @@ import validate from "@server/middlewares/validate";
|
||||
import { UserPasskey } from "@server/models";
|
||||
import type { APIContext } from "@server/types";
|
||||
import { AuthenticationType } from "@server/types";
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import * as T from "./schema";
|
||||
import { authorize } from "@server/policies";
|
||||
import { transaction } from "@server/middlewares/transaction";
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
} from "@simplewebauthn/server";
|
||||
import { isoBase64URL } from "@simplewebauthn/server/helpers";
|
||||
import type { AuthenticatorTransportFuture } from "@simplewebauthn/server";
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { randomBytes } from "node:crypto";
|
||||
import { toError } from "@shared/utils/error";
|
||||
import { User, UserPasskey, Team } from "@server/models";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { t } from "i18next";
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { escapeRegExp } from "es-toolkit/compat";
|
||||
import queryString from "query-string";
|
||||
import { z } from "zod";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import passport from "@outlinewiki/koa-passport";
|
||||
import type { Request } from "koa";
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import type { Profile } from "passport";
|
||||
import { Strategy as SlackStrategy } from "passport-slack-oauth2";
|
||||
import { toError } from "@shared/utils/error";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import JWT from "jsonwebtoken";
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import mime from "mime-types";
|
||||
import contentDisposition from "content-disposition";
|
||||
import { bytesToHumanReadable } from "@shared/utils/files";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { compact, isEmpty } from "es-toolkit/compat";
|
||||
import { Op, Sequelize, type WhereOptions } from "sequelize";
|
||||
import { UserRole } from "@shared/types";
|
||||
|
||||
@@ -4,11 +4,8 @@ import type { FunctionComponent } from "react";
|
||||
import { flushSync } from "react-dom";
|
||||
import type { Root } from "react-dom/client";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import {
|
||||
type ServerStyleSheet,
|
||||
StyleSheetManager,
|
||||
ThemeProvider,
|
||||
} from "styled-components";
|
||||
import { type ServerStyleSheet, ThemeProvider } from "styled-components";
|
||||
import { StyleSheetProvider } from "@shared/components/StyleSheetProvider";
|
||||
import type { ComponentProps } from "@shared/editor/types";
|
||||
import light from "@shared/styles/theme";
|
||||
|
||||
@@ -79,11 +76,11 @@ export class ComponentView implements NodeView {
|
||||
// immediately after.
|
||||
flushSync(() => {
|
||||
this.root.render(
|
||||
<StyleSheetManager sheet={sheet.instance}>
|
||||
<StyleSheetProvider sheet={sheet.instance}>
|
||||
<ThemeProvider theme={light}>
|
||||
<Component {...props} />
|
||||
</ThemeProvider>
|
||||
</StyleSheetManager>
|
||||
</StyleSheetProvider>
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import type { AddressInfo } from "node:net";
|
||||
import Koa from "koa";
|
||||
import helmet from "koa-helmet";
|
||||
import logger from "koa-logger";
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import stoppable from "stoppable";
|
||||
import { toError } from "@shared/utils/error";
|
||||
import env from "./env";
|
||||
|
||||
@@ -18,6 +18,7 @@ import {
|
||||
yDocToProsemirrorJSON,
|
||||
} from "y-prosemirror";
|
||||
import * as Y from "yjs";
|
||||
import { StyleSheetProvider } from "@shared/components/StyleSheetProvider";
|
||||
import { toError, errToString } from "@shared/utils/error";
|
||||
import Diff from "@shared/editor/extensions/Diff";
|
||||
import { HeadingPrefixHelper } from "@shared/editor/extensions/HeadingPrefix";
|
||||
@@ -686,7 +687,7 @@ export class ProsemirrorHelper extends SharedProsemirrorHelper {
|
||||
// touch process globals, so it stays outside the export lock below.
|
||||
try {
|
||||
html = renderToString(
|
||||
sheet.collectStyles(
|
||||
<StyleSheetProvider sheet={sheet.instance}>
|
||||
<ThemeProvider theme={light}>
|
||||
<>
|
||||
{options?.includeStyles === false ? (
|
||||
@@ -699,7 +700,7 @@ export class ProsemirrorHelper extends SharedProsemirrorHelper {
|
||||
)}
|
||||
</>
|
||||
</ThemeProvider>
|
||||
)
|
||||
</StyleSheetProvider>
|
||||
);
|
||||
styleTags = sheet.getStyleTags();
|
||||
} catch (error) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import auth from "@server/middlewares/authentication";
|
||||
import { rateLimiter } from "@server/middlewares/rateLimiter";
|
||||
import { transaction } from "@server/middlewares/transaction";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { Op, Sequelize, type WhereOptions } from "sequelize";
|
||||
import auth from "@server/middlewares/authentication";
|
||||
import { rateLimiter } from "@server/middlewares/rateLimiter";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import type { WhereOptions } from "sequelize";
|
||||
import { randomUUID } from "node:crypto";
|
||||
import { AttachmentPreset } from "@shared/types";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { subHours, subMinutes } from "date-fns";
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { uniqBy } from "es-toolkit/compat";
|
||||
import { TeamPreference } from "@shared/types";
|
||||
import { parseDomain } from "@shared/utils/domains";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { UserRole } from "@shared/types";
|
||||
import env from "@server/env";
|
||||
import { InvalidRequestError } from "@server/errors";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { chunk, omit, snakeCase } from "es-toolkit/compat";
|
||||
import type { Middleware } from "koa";
|
||||
import compose from "koa-compose";
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import auth from "@server/middlewares/authentication";
|
||||
import {
|
||||
defaultRateLimiter,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { randomUUID } from "node:crypto";
|
||||
import { truncate } from "es-toolkit/compat";
|
||||
import type { WhereOptions } from "sequelize";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { difference } from "es-toolkit/compat";
|
||||
import { v4 as uuidv4 } from "uuid";
|
||||
import { MentionType, IconType } from "@shared/types";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import env from "@server/env";
|
||||
import { AuthenticationError } from "@server/errors";
|
||||
import Logger from "@server/logging/Logger";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Context, Next } from "koa";
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { Op } from "sequelize";
|
||||
import { randomString, randomElement } from "@shared/random";
|
||||
import { NotificationEventType } from "@shared/types";
|
||||
|
||||
@@ -3,7 +3,7 @@ import fractionalIndex from "fractional-index";
|
||||
import fs from "fs-extra";
|
||||
import invariant from "invariant";
|
||||
import contentDisposition from "content-disposition";
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { escapeRegExp, has, remove, uniq } from "es-toolkit/compat";
|
||||
import mime from "mime-types";
|
||||
import type { Order, ScopeOptions, WhereOptions } from "sequelize";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import type { WhereOptions } from "sequelize";
|
||||
import { Op } from "sequelize";
|
||||
import auth from "@server/middlewares/authentication";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { intersection } from "es-toolkit/compat";
|
||||
import type { WhereOptions } from "sequelize";
|
||||
import { Op } from "sequelize";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import type { WhereOptions } from "sequelize";
|
||||
import { UserRole } from "@shared/types";
|
||||
import { ValidationError } from "@server/errors";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { uniqBy } from "es-toolkit/compat";
|
||||
import { Op } from "sequelize";
|
||||
import auth from "@server/middlewares/authentication";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { compact, uniqBy } from "es-toolkit";
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import type { WhereOptions } from "sequelize";
|
||||
import { Op } from "sequelize";
|
||||
import { MAX_AVATAR_DISPLAY } from "@shared/constants";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { randomUUID } from "node:crypto";
|
||||
import { truncate } from "es-toolkit/compat";
|
||||
import type { WhereOptions } from "sequelize";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { BaseContext } from "koa";
|
||||
import Koa from "koa";
|
||||
import bodyParser from "koa-body";
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import type { UserAgentContext } from "koa-useragent";
|
||||
import userAgent from "koa-useragent";
|
||||
import env from "@server/env";
|
||||
@@ -133,11 +133,11 @@ if (env.isDevelopment) {
|
||||
router.use("/", developer.routes());
|
||||
}
|
||||
|
||||
router.register("*", ["get", "post"], (ctx) => {
|
||||
router.register("{/*path}", ["get", "post"], (ctx) => {
|
||||
ctx.throw(NotFoundError("Endpoint not found"));
|
||||
});
|
||||
|
||||
// Router is embedded in a Koa application wrapper, because koa-router does not
|
||||
// Router is embedded in a Koa application wrapper, because @koa/router does not
|
||||
// allow middleware to catch any routes which were not explicitly defined.
|
||||
api.use(router.routes());
|
||||
api.use(router.allowedMethods());
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { Client, UserRole } from "@shared/types";
|
||||
import teamCreator from "@server/commands/teamCreator";
|
||||
import { ValidationError } from "@server/errors";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import type { WhereOptions } from "sequelize";
|
||||
import { Op } from "sequelize";
|
||||
import { IntegrationType, UserRole } from "@shared/types";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { isEmpty, isNil, isNull, isUndefined } from "es-toolkit/compat";
|
||||
import type { WhereOptions } from "sequelize";
|
||||
import { Op } from "sequelize";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { QueryTypes } from "sequelize";
|
||||
import auth from "@server/middlewares/authentication";
|
||||
import { rateLimiter } from "@server/middlewares/rateLimiter";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { Op } from "sequelize";
|
||||
import AuthenticationHelper from "@shared/helpers/AuthenticationHelper";
|
||||
import { UserRole } from "@shared/types";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { Sequelize, Op, Transaction } from "sequelize";
|
||||
import pinCreator from "@server/commands/pinCreator";
|
||||
import auth from "@server/middlewares/authentication";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import type { WhereOptions } from "sequelize";
|
||||
import auth from "@server/middlewares/authentication";
|
||||
import validate from "@server/middlewares/validate";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { InvalidRequestError } from "@server/errors";
|
||||
import auth from "@server/middlewares/authentication";
|
||||
import validate from "@server/middlewares/validate";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import path from "node:path";
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import contentDisposition from "content-disposition";
|
||||
import { escapeRegExp } from "es-toolkit/compat";
|
||||
import mime from "mime-types";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import auth from "@server/middlewares/authentication";
|
||||
import { transaction } from "@server/middlewares/transaction";
|
||||
import validate from "@server/middlewares/validate";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { isUndefined } from "es-toolkit/compat";
|
||||
import type { FindOptions, WhereAttributeHash, WhereOptions } from "sequelize";
|
||||
import { Op } from "sequelize";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { Sequelize } from "sequelize";
|
||||
import starCreator from "@server/commands/starCreator";
|
||||
import auth from "@server/middlewares/authentication";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import type { WhereOptions } from "sequelize";
|
||||
import { Transaction } from "sequelize";
|
||||
import { QueryNotices } from "@shared/types";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { Op } from "sequelize";
|
||||
import { Sequelize } from "sequelize-typescript";
|
||||
import auth from "@server/middlewares/authentication";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { UserRole } from "@shared/types";
|
||||
import teamCreator from "@server/commands/teamCreator";
|
||||
import teamUpdater from "@server/commands/teamUpdater";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import type { WhereOptions } from "sequelize";
|
||||
import { Op, Sequelize } from "sequelize";
|
||||
import { ProsemirrorDataHelper } from "@shared/utils/ProsemirrorDataHelper";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import dns from "node:dns";
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { traceFunction } from "@server/logging/tracing";
|
||||
import isUUID from "validator/lib/isUUID";
|
||||
import { MentionType, UnfurlResourceType } from "@shared/types";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { Op, Sequelize } from "sequelize";
|
||||
import auth from "@server/middlewares/authentication";
|
||||
import { transaction } from "@server/middlewares/transaction";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import type { WhereOptions } from "sequelize";
|
||||
import { Op, Sequelize } from "sequelize";
|
||||
import { NotificationEventType, UserRole } from "@shared/types";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { ValidationError } from "@server/errors";
|
||||
import auth from "@server/middlewares/authentication";
|
||||
import { rateLimiter } from "@server/middlewares/rateLimiter";
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
import { addMonths } from "date-fns";
|
||||
import { buildUser, buildCollection } from "@server/test/factories";
|
||||
import { getTestServer } from "@server/test/support";
|
||||
import {
|
||||
getTestServer,
|
||||
setCloudHosted,
|
||||
setSelfHosted,
|
||||
} from "@server/test/support";
|
||||
import { getJWTPayload } from "@server/utils/jwt";
|
||||
import { verifyOAuthState } from "@server/utils/oauthState";
|
||||
|
||||
const server = getTestServer();
|
||||
|
||||
@@ -73,3 +78,23 @@ describe("auth/redirect", () => {
|
||||
expect(res.status).toEqual(401);
|
||||
});
|
||||
});
|
||||
|
||||
describe("auth provider routes", () => {
|
||||
beforeEach(setSelfHosted);
|
||||
afterEach(setCloudHosted);
|
||||
|
||||
it("should include the signed-in actor in the OAuth state", async () => {
|
||||
const user = await buildUser();
|
||||
const res = await server.get("/auth/google", {
|
||||
redirect: "manual",
|
||||
headers: {
|
||||
Cookie: `accessToken=${user.getSessionToken()}`,
|
||||
},
|
||||
});
|
||||
expect(res.status).toEqual(302);
|
||||
|
||||
const location = new URL(res.headers.get("location") ?? "");
|
||||
const state = verifyOAuthState(location.searchParams.get("state") ?? "");
|
||||
expect(state.actorId).toEqual(user.id);
|
||||
});
|
||||
});
|
||||
@@ -2,7 +2,7 @@ import passport from "@outlinewiki/koa-passport";
|
||||
import { addMonths } from "date-fns";
|
||||
import Koa from "koa";
|
||||
import bodyParser from "koa-body";
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { AuthenticationError } from "@server/errors";
|
||||
import authMiddleware from "@server/middlewares/authentication";
|
||||
import coalesceBody from "@server/middlewares/coaleseBody";
|
||||
@@ -20,14 +20,16 @@ router.use(passport.initialize());
|
||||
|
||||
// dynamically register available authentication provider routes
|
||||
void (async () => {
|
||||
for (const provider of AuthenticationHelper.providers) {
|
||||
const resolvedRouter = await provider.value.router;
|
||||
const resolvedRouters = await Promise.all(
|
||||
AuthenticationHelper.providers.map((provider) =>
|
||||
Promise.resolve(provider.value.router)
|
||||
)
|
||||
);
|
||||
|
||||
router.use(authMiddleware({ optional: true }));
|
||||
for (const resolvedRouter of resolvedRouters) {
|
||||
if (resolvedRouter) {
|
||||
router.use(
|
||||
"/",
|
||||
authMiddleware({ optional: true }),
|
||||
resolvedRouter.routes()
|
||||
);
|
||||
router.use("/", resolvedRouter.routes());
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { Day } from "@shared/utils/time";
|
||||
import { opensearchResponse } from "./opensearch";
|
||||
import { robotsResponse } from "./robots";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { TeamPreference } from "@shared/types";
|
||||
import env from "@server/env";
|
||||
import { OAuthHelper } from "@server/utils/oauth/OAuthHelper";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
|
||||
const router = new Router();
|
||||
|
||||
|
||||
@@ -316,6 +316,47 @@ describe("content security policy", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("/locales/:lng.json", () => {
|
||||
it("should serve the translation file with cache headers", async () => {
|
||||
const res = await server.get("/locales/en_US.json");
|
||||
expect(res.status).toEqual(200);
|
||||
expect(res.headers.get("content-type")).toContain("application/json");
|
||||
expect(res.headers.get("cache-control")).toEqual("public, max-age=604800");
|
||||
expect(res.headers.get("etag")).toBeTruthy();
|
||||
expect(res.headers.get("last-modified")).toBeTruthy();
|
||||
expect(res.headers.get("access-control-allow-origin")).toEqual("*");
|
||||
const body = await res.json();
|
||||
expect(typeof body).toEqual("object");
|
||||
});
|
||||
|
||||
it("should return 404 for an unknown language", async () => {
|
||||
const res = await server.get("/locales/xx_XX.json");
|
||||
expect(res.status).toEqual(404);
|
||||
});
|
||||
});
|
||||
|
||||
describe("public assets", () => {
|
||||
it.each([
|
||||
"/images/..%2F..%2Fpackage.json",
|
||||
"/fonts/..%2F..%2F..%2Fpackage.json",
|
||||
"/email/%2e%2e%2f%2e%2e%2fpackage.json",
|
||||
"/images/..%5C..%5Cpackage.json",
|
||||
])(
|
||||
"should not serve files outside the public directory for %s",
|
||||
async (path) => {
|
||||
const res = await server.get(path);
|
||||
expect(res.status).toEqual(403);
|
||||
const body = await res.text();
|
||||
expect(body).not.toContain("dependencies");
|
||||
}
|
||||
);
|
||||
|
||||
it("should reject paths with null bytes", async () => {
|
||||
const res = await server.get("/images/logo.png%00.txt");
|
||||
expect(res.status).toEqual(400);
|
||||
});
|
||||
});
|
||||
|
||||
describe("scanner path 404s", () => {
|
||||
it.each([
|
||||
"/.well-known/gpc.json",
|
||||
|
||||
+32
-25
@@ -2,8 +2,8 @@ import crypto from "node:crypto";
|
||||
import path from "node:path";
|
||||
import { formatRFC7231 } from "date-fns";
|
||||
import Koa from "koa";
|
||||
import Router from "koa-router";
|
||||
import send from "koa-send";
|
||||
import Router from "@koa/router";
|
||||
import { send } from "@koa/send";
|
||||
import { languages } from "@shared/i18n";
|
||||
import { TeamPreference } from "@shared/types";
|
||||
import { parseDomain } from "@shared/utils/domains";
|
||||
@@ -25,33 +25,40 @@ const koa = new Koa();
|
||||
const router = new Router();
|
||||
|
||||
// serve public assets
|
||||
router.use(["/images/*", "/email/*", "/fonts/*"], async (ctx, next) => {
|
||||
let done;
|
||||
router.use(
|
||||
["/images/{*path}", "/email/{*path}", "/fonts/{*path}"],
|
||||
async (ctx, next) => {
|
||||
let done;
|
||||
|
||||
if (ctx.method === "HEAD" || ctx.method === "GET") {
|
||||
try {
|
||||
done = await send(ctx, ctx.path, {
|
||||
root: path.resolve(__dirname, "../../../public"),
|
||||
// 7 day expiry, these assets are mostly static but do not contain a hash
|
||||
maxAge: Day.ms * 7,
|
||||
setHeaders: (res) => {
|
||||
res.setHeader("Access-Control-Allow-Origin", "*");
|
||||
},
|
||||
});
|
||||
} catch (err) {
|
||||
if (!(err instanceof Error && "status" in err && err.status === 404)) {
|
||||
throw err;
|
||||
if (ctx.method === "HEAD" || ctx.method === "GET") {
|
||||
try {
|
||||
done = await send(ctx, ctx.path, {
|
||||
root: path.resolve(__dirname, "../../../public"),
|
||||
// 7 day expiry, these assets are mostly static but do not contain a hash
|
||||
maxAge: Day.ms * 7,
|
||||
setHeaders: (res) => {
|
||||
res.setHeader("Access-Control-Allow-Origin", "*");
|
||||
},
|
||||
});
|
||||
} catch (err) {
|
||||
if (!(err instanceof Error && "status" in err && err.status === 404)) {
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!done) {
|
||||
await next();
|
||||
if (!done) {
|
||||
await next();
|
||||
}
|
||||
}
|
||||
});
|
||||
);
|
||||
|
||||
router.use(
|
||||
["/share/:shareId", "/share/:shareId/doc/:documentSlug", "/share/:shareId/*"],
|
||||
[
|
||||
"/share/:shareId",
|
||||
"/share/:shareId/doc/:documentSlug",
|
||||
"/share/:shareId/{*path}",
|
||||
],
|
||||
(ctx) => {
|
||||
const redirectPath = ctx.path.replace(/^\/share/, "/s");
|
||||
ctx.redirect(redirectPath + ctx.request.URL.search);
|
||||
@@ -60,7 +67,7 @@ router.use(
|
||||
);
|
||||
|
||||
if (env.isProduction) {
|
||||
router.get("/static/*", async (ctx) => {
|
||||
router.get("/static/{*path}", async (ctx) => {
|
||||
try {
|
||||
const pathname = ctx.path.substring(8);
|
||||
if (!pathname) {
|
||||
@@ -129,7 +136,7 @@ router.get(
|
||||
renderShare
|
||||
);
|
||||
router.get("/s/:shareId/doc/:documentSlug", shareDomains(), renderShare);
|
||||
router.get("/s/:shareId/*", shareDomains(), renderShare);
|
||||
router.get("/s/:shareId/{*path}", shareDomains(), renderShare);
|
||||
|
||||
router.get("/embeds/gitlab", renderEmbed);
|
||||
router.get("/embeds/github", renderEmbed);
|
||||
@@ -167,7 +174,7 @@ function isPublicAppPath(path: string) {
|
||||
}
|
||||
|
||||
// catch all for application
|
||||
router.get("*", async (ctx, next) => {
|
||||
router.get("{/*path}", async (ctx, next) => {
|
||||
if (isInvalidAppPath(ctx.path)) {
|
||||
ctx.status = 404;
|
||||
return;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import Koa from "koa";
|
||||
import bodyParser from "koa-body";
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
|
||||
import type { AuthInfo } from "@modelcontextprotocol/sdk/server/auth/types.js";
|
||||
import { ErrorCode } from "@modelcontextprotocol/sdk/types.js";
|
||||
@@ -144,7 +144,7 @@ router.delete("/", async (ctx) => {
|
||||
|
||||
// Clients probing for a transport we do not implement, such as the legacy
|
||||
// HTTP+SSE endpoints, must not fall through to the application shell
|
||||
router.all("*", async (ctx) => {
|
||||
router.all("{/*path}", async (ctx) => {
|
||||
ctx.status = 404;
|
||||
ctx.body = { error: "Not found. MCP requests must be sent to /mcp." };
|
||||
});
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import OAuth2Server from "@node-oauth/oauth2-server";
|
||||
import Koa from "koa";
|
||||
import bodyParser from "koa-body";
|
||||
import Router from "koa-router";
|
||||
import Router from "@koa/router";
|
||||
import env from "@server/env";
|
||||
import { ValidationError, NotFoundError } from "@server/errors";
|
||||
import { apiContext } from "@server/middlewares/apiContext";
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { IncomingMessage } from "node:http";
|
||||
import type http from "node:http";
|
||||
import type { Duplex } from "node:stream";
|
||||
import { createAdapter } from "@socket.io/redis-adapter";
|
||||
import cookie from "cookie";
|
||||
import type Koa from "koa";
|
||||
import IO from "socket.io";
|
||||
import { createAdapter } from "socket.io-redis";
|
||||
import { errToId, errToString, toError } from "@shared/utils/error";
|
||||
import env from "@server/env";
|
||||
import { AuthenticationError } from "@server/errors";
|
||||
@@ -92,20 +92,7 @@ export default function init(
|
||||
Metrics.gaugePerInstance("websockets.count", 0);
|
||||
});
|
||||
|
||||
io.adapter(
|
||||
createAdapter({
|
||||
pubClient: Redis.defaultClient,
|
||||
subClient: Redis.defaultSubscriber,
|
||||
})
|
||||
);
|
||||
|
||||
io.of("/").adapter.on("error", (err: Error) => {
|
||||
if (err.name === "MaxRetriesPerRequestError") {
|
||||
Logger.fatal("Redis maximum retries exceeded in socketio adapter", err);
|
||||
} else {
|
||||
Logger.error("Redis error in socketio adapter", err);
|
||||
}
|
||||
});
|
||||
io.adapter(createAdapter(Redis.defaultClient, Redis.defaultSubscriber));
|
||||
|
||||
io.on("connection", async (socket: SocketWithAuth) => {
|
||||
Metrics.increment("websockets.connected");
|
||||
|
||||
+7
-6
@@ -1,5 +1,5 @@
|
||||
import type { ParameterizedContext, DefaultContext } from "koa";
|
||||
import type { IRouterParamContext } from "koa-router";
|
||||
import type { RouterContext } from "@koa/router";
|
||||
import type { InferAttributes, Model, Transaction } from "sequelize";
|
||||
import type { z } from "zod";
|
||||
import type {
|
||||
@@ -92,11 +92,12 @@ export type BaseRes = unknown;
|
||||
export interface APIContext<
|
||||
ReqT = Partial<BaseReq>,
|
||||
ResT = BaseRes,
|
||||
> extends ParameterizedContext<
|
||||
AppState,
|
||||
DefaultContext & IRouterParamContext<AppState>,
|
||||
ResT
|
||||
> {
|
||||
> extends RouterContext<AppState, DefaultContext, ResT> {
|
||||
// Router internals are left untyped so that handlers with a narrower context
|
||||
// remain assignable to route middleware.
|
||||
router: never;
|
||||
matched?: never;
|
||||
|
||||
/** Typed and validated version of request, consisting of validated body, query, etc. */
|
||||
input: ReqT;
|
||||
|
||||
|
||||
+2
-2
@@ -15,7 +15,7 @@ declare module "@outlinewiki/koa-passport" {
|
||||
// oxlint-disable-next-line
|
||||
import Express from "express";
|
||||
import { Request } from "koa";
|
||||
import { IMiddleware } from "koa-router";
|
||||
import { RouterMiddleware } from "@koa/router";
|
||||
|
||||
namespace passport {
|
||||
interface AuthenticateOptions {
|
||||
@@ -40,7 +40,7 @@ declare module "@outlinewiki/koa-passport" {
|
||||
}
|
||||
|
||||
interface Authenticator<
|
||||
InitializeRet = IMiddleware,
|
||||
InitializeRet = RouterMiddleware,
|
||||
AuthenticateRet = any,
|
||||
AuthorizeRet = AuthenticateRet,
|
||||
AuthorizeOptions = AuthenticateOptions,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import path from "node:path";
|
||||
import { glob } from "glob";
|
||||
import type Router from "koa-router";
|
||||
import type Router from "@koa/router";
|
||||
import { isArray, sortBy } from "es-toolkit/compat";
|
||||
import type BaseEmail from "@server/emails/templates/BaseEmail";
|
||||
import env from "@server/env";
|
||||
@@ -111,7 +111,9 @@ export class PluginManager {
|
||||
Logger.debug(
|
||||
"plugins",
|
||||
`Plugin(type=${plugin.type}) registered ${
|
||||
"name" in plugin.value ? plugin.value.name : ""
|
||||
"name" in plugin.value && typeof plugin.value.name === "string"
|
||||
? plugin.value.name
|
||||
: ""
|
||||
} ${plugin.description ? `(${plugin.description})` : ""}`
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
import isPropValid from "@emotion/is-prop-valid";
|
||||
import type { ComponentProps, ReactNode } from "react";
|
||||
import { StyleSheetManager, type WebTarget } from "styled-components";
|
||||
|
||||
interface Props {
|
||||
/** The content to render. */
|
||||
children: ReactNode;
|
||||
/** An optional sheet to collect styles into, used for server rendering. */
|
||||
sheet?: ComponentProps<typeof StyleSheetManager>["sheet"];
|
||||
}
|
||||
|
||||
/**
|
||||
* Configures styled-components for a React tree. Only valid HTML attributes
|
||||
* are forwarded to DOM elements, and vendor prefixes are added to CSS.
|
||||
*
|
||||
* @param props the component props.
|
||||
* @returns the children wrapped in a configured StyleSheetManager.
|
||||
*/
|
||||
export function StyleSheetProvider({ children, sheet }: Props) {
|
||||
return (
|
||||
<StyleSheetManager
|
||||
sheet={sheet}
|
||||
shouldForwardProp={shouldForwardProp}
|
||||
enableVendorPrefixes
|
||||
>
|
||||
{children}
|
||||
</StyleSheetManager>
|
||||
);
|
||||
}
|
||||
|
||||
function shouldForwardProp(prop: string, target: WebTarget) {
|
||||
return typeof target === "string" ? isPropValid(prop) : true;
|
||||
}
|
||||
@@ -450,10 +450,10 @@ const emailStyle = (props: Props) => css`
|
||||
*/
|
||||
const textStyle = () => css`
|
||||
/* Southeast Asian scripts */
|
||||
:lang(th), /* Thai */
|
||||
:lang(lo), /* Lao */
|
||||
:lang(km), /* Khmer */
|
||||
:lang(my) {
|
||||
&:lang(th), /* Thai */
|
||||
&:lang(lo), /* Lao */
|
||||
&:lang(km), /* Khmer */
|
||||
&:lang(my) {
|
||||
/* Burmese */
|
||||
p {
|
||||
line-height: 1.7;
|
||||
@@ -466,16 +466,16 @@ const textStyle = () => css`
|
||||
}
|
||||
|
||||
/* South Asian scripts */
|
||||
:lang(hi), /* Hindi */
|
||||
:lang(mr), /* Marathi */
|
||||
:lang(ne), /* Nepali */
|
||||
:lang(bn), /* Bengali */
|
||||
:lang(gu), /* Gujarati */
|
||||
:lang(pa), /* Punjabi */
|
||||
:lang(te), /* Telugu */
|
||||
:lang(ta), /* Tamil */
|
||||
:lang(ml), /* Malayalam */
|
||||
:lang(si) {
|
||||
&:lang(hi), /* Hindi */
|
||||
&:lang(mr), /* Marathi */
|
||||
&:lang(ne), /* Nepali */
|
||||
&:lang(bn), /* Bengali */
|
||||
&:lang(gu), /* Gujarati */
|
||||
&:lang(pa), /* Punjabi */
|
||||
&:lang(te), /* Telugu */
|
||||
&:lang(ta), /* Tamil */
|
||||
&:lang(ml), /* Malayalam */
|
||||
&:lang(si) {
|
||||
/* Sinhala */
|
||||
p {
|
||||
line-height: 1.7;
|
||||
@@ -488,7 +488,7 @@ const textStyle = () => css`
|
||||
}
|
||||
|
||||
/* Tibetan and related scripts */
|
||||
:lang(bo) {
|
||||
&:lang(bo) {
|
||||
p {
|
||||
line-height: 1.8;
|
||||
}
|
||||
@@ -500,10 +500,10 @@ const textStyle = () => css`
|
||||
}
|
||||
|
||||
/* Middle Eastern scripts */
|
||||
:lang(ar), /* Arabic */
|
||||
:lang(fa), /* Persian */
|
||||
:lang(ur), /* Urdu */
|
||||
:lang(he) {
|
||||
&:lang(ar), /* Arabic */
|
||||
&:lang(fa), /* Persian */
|
||||
&:lang(ur), /* Urdu */
|
||||
&:lang(he) {
|
||||
/* Hebrew */
|
||||
p {
|
||||
line-height: 1.6;
|
||||
@@ -511,8 +511,8 @@ const textStyle = () => css`
|
||||
}
|
||||
|
||||
/* Ethiopic and other complex scripts */
|
||||
:lang(am), /* Amharic */
|
||||
:lang(mn) {
|
||||
&:lang(am), /* Amharic */
|
||||
&:lang(mn) {
|
||||
/* Mongolian */
|
||||
p {
|
||||
line-height: 1.7;
|
||||
@@ -525,9 +525,9 @@ const textStyle = () => css`
|
||||
}
|
||||
|
||||
/* East Asian scripts */
|
||||
:lang(zh), /* Chinese */
|
||||
:lang(ja), /* Japanese */
|
||||
:lang(ko) {
|
||||
&:lang(zh), /* Chinese */
|
||||
&:lang(ja), /* Japanese */
|
||||
&:lang(ko) {
|
||||
/* Korean */
|
||||
p {
|
||||
line-height: 1.8;
|
||||
@@ -1048,11 +1048,11 @@ p:has(> .component-image > .image-left-50, > .component-image > .image-right-50)
|
||||
|
||||
// In static HTML the parser lifts floats out of their paragraph, leaving empty ones
|
||||
p:empty:has(+ .image-left-50, + .image-right-50),
|
||||
:is(.image-left-50, .image-right-50) + br.ProseMirror-trailingBreak + p:empty {
|
||||
&:is(.image-left-50, .image-right-50) + br.ProseMirror-trailingBreak + p:empty {
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
:is(.image-left-50, .image-right-50) + br.ProseMirror-trailingBreak {
|
||||
&:is(.image-left-50, .image-right-50) + br.ProseMirror-trailingBreak {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -2832,7 +2832,7 @@ li > .${EditorStyleHelper.toggleBlock} {
|
||||
}
|
||||
`;
|
||||
|
||||
const EditorContainer = styled.div<Props>`
|
||||
const EditorContainer = styled.div<Omit<Props, "theme">>`
|
||||
${style}
|
||||
${mathStyle}
|
||||
${codeMarkCursor}
|
||||
|
||||
@@ -1,4 +1,21 @@
|
||||
import { ensureContrast, toColorFormats, validateColorHex } from "./color";
|
||||
import {
|
||||
ensureContrast,
|
||||
palette,
|
||||
stringToColor,
|
||||
toColorFormats,
|
||||
validateColorHex,
|
||||
} from "./color";
|
||||
|
||||
describe("stringToColor", () => {
|
||||
it("returns a stable palette color for the input", () => {
|
||||
expect(stringToColor("pdf")).toBe(palette[2]);
|
||||
expect(stringToColor("a@b.com")).toBe(palette[8]);
|
||||
expect(stringToColor("Ünïcødé 😀")).toBe(palette[2]);
|
||||
expect(stringToColor("3f2504e0-4f89-41d3-9a0c-0305e82c3301")).toBe(
|
||||
palette[12]
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe("validateColorHex", () => {
|
||||
it("accepts 3-digit hex", () => {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import md5 from "crypto-js/md5";
|
||||
import { md5 } from "@noble/hashes/legacy.js";
|
||||
import { bytesToHex, utf8ToBytes } from "@noble/hashes/utils.js";
|
||||
import { darken, getLuminance, parseToHsl, parseToRgb } from "polished";
|
||||
import theme from "../styles/theme";
|
||||
import type { RgbaColor } from "polished/lib/types/color";
|
||||
@@ -24,7 +25,7 @@ export const validateColorHex = (color: string) =>
|
||||
/^#(?:[0-9A-F]{3,4}|[0-9A-F]{6}|[0-9A-F]{8})$/i.test(color);
|
||||
|
||||
export const stringToColor = (input: string) => {
|
||||
const inputAsNumber = parseInt(md5(input).toString(), 16);
|
||||
const inputAsNumber = parseInt(bytesToHex(md5(utf8ToBytes(input))), 16);
|
||||
return palette[inputAsNumber % palette.length];
|
||||
};
|
||||
|
||||
|
||||
+1
-1
@@ -244,7 +244,7 @@ export default ({ mode }: ConfigEnv) =>
|
||||
},
|
||||
{
|
||||
name: "vendor-styled",
|
||||
test: /node_modules[\\/](styled-components|stylis)/,
|
||||
test: /node_modules[\\/](styled-components|stylis|@emotion[\\/](is-prop-valid|memoize))/,
|
||||
priority: 22,
|
||||
},
|
||||
{
|
||||
|
||||
@@ -427,7 +427,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/helper-annotate-as-pure@npm:^7.25.9, @babel/helper-annotate-as-pure@npm:^7.29.7":
|
||||
"@babel/helper-annotate-as-pure@npm:^7.29.7":
|
||||
version: 7.29.7
|
||||
resolution: "@babel/helper-annotate-as-pure@npm:7.29.7"
|
||||
dependencies:
|
||||
@@ -511,7 +511,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/helper-module-imports@npm:^7.0.0, @babel/helper-module-imports@npm:^7.18.6, @babel/helper-module-imports@npm:^7.25.9, @babel/helper-module-imports@npm:^7.29.7":
|
||||
"@babel/helper-module-imports@npm:^7.18.6, @babel/helper-module-imports@npm:^7.29.7":
|
||||
version: 7.29.7
|
||||
resolution: "@babel/helper-module-imports@npm:7.29.7"
|
||||
dependencies:
|
||||
@@ -741,17 +741,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/plugin-syntax-jsx@npm:^7.25.9":
|
||||
version: 7.29.7
|
||||
resolution: "@babel/plugin-syntax-jsx@npm:7.29.7"
|
||||
dependencies:
|
||||
"@babel/helper-plugin-utils": "npm:^7.29.7"
|
||||
peerDependencies:
|
||||
"@babel/core": ^7.0.0-0
|
||||
checksum: 10c0/1736000de183538ba8eef34520105508860e48b0c763254ba9158af5e814ed8bbceeedbb4281fbda33de787ae5b3870e92f60c6ae7131e7d322e451d57387896
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/plugin-syntax-unicode-sets-regex@npm:^7.18.6":
|
||||
version: 7.18.6
|
||||
resolution: "@babel/plugin-syntax-unicode-sets-regex@npm:7.18.6"
|
||||
@@ -1477,7 +1466,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/traverse@npm:^7.29.7, @babel/traverse@npm:^7.4.5":
|
||||
"@babel/traverse@npm:^7.29.7":
|
||||
version: 7.29.7
|
||||
resolution: "@babel/traverse@npm:7.29.7"
|
||||
dependencies:
|
||||
@@ -1833,7 +1822,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@emotion/is-prop-valid@npm:^1.1.0":
|
||||
"@emotion/is-prop-valid@npm:1.4.0, @emotion/is-prop-valid@npm:^1.4.0":
|
||||
version: 1.4.0
|
||||
resolution: "@emotion/is-prop-valid@npm:1.4.0"
|
||||
dependencies:
|
||||
@@ -1849,20 +1838,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@emotion/stylis@npm:^0.8.4":
|
||||
version: 0.8.5
|
||||
resolution: "@emotion/stylis@npm:0.8.5"
|
||||
checksum: 10c0/f109e3f11cb0d48e8658aaa23578c5bcfe35e297819cfb089a3de6ba8dc0f89b0960474922690c6028df5d2e1895b4967f2fb280642c030054c312f1e137ce26
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@emotion/unitless@npm:^0.7.4":
|
||||
version: 0.7.5
|
||||
resolution: "@emotion/unitless@npm:0.7.5"
|
||||
checksum: 10c0/4d0d94f53cb97b4481bbfa394953e1899a0b877644642ba9dd7247c27eb8c48e14e22aeb11411d7d9874685ad85dd5fb5b50eb78c6d8840eb56a84b92dcef2f4
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@esbuild/aix-ppc64@npm:0.25.12":
|
||||
version: 0.25.12
|
||||
resolution: "@esbuild/aix-ppc64@npm:0.25.12"
|
||||
@@ -2557,20 +2532,30 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@koa/router@npm:^15.4.0":
|
||||
version: 15.4.0
|
||||
resolution: "@koa/router@npm:15.4.0"
|
||||
"@koa/router@npm:^15.4.0, @koa/router@npm:^15.7.0":
|
||||
version: 15.7.0
|
||||
resolution: "@koa/router@npm:15.7.0"
|
||||
dependencies:
|
||||
debug: "npm:^4.4.3"
|
||||
http-errors: "npm:^2.0.1"
|
||||
koa-compose: "npm:^4.1.0"
|
||||
path-to-regexp: "npm:^8.3.0"
|
||||
path-to-regexp: "npm:^8.4.2"
|
||||
peerDependencies:
|
||||
koa: ^2.0.0 || ^3.0.0
|
||||
peerDependenciesMeta:
|
||||
koa:
|
||||
optional: false
|
||||
checksum: 10c0/a16e079115a9e228399b5ca264ca999b2e008d86e29e139343b927eb010e889a2cd17f03194796fb41d82df8572ac25ba112d1d3c342c9e27376894412c349d5
|
||||
checksum: 10c0/da1f23f07684f5b39db5536cd6d4b77f7e38930786c2c0c13cf27d84ab90b6c9eea5ecf17f8f4c1b87ccc822a874f64c351b6e9b4c2e6c9324765564fce689cb
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@koa/send@npm:^6.0.0":
|
||||
version: 6.0.0
|
||||
resolution: "@koa/send@npm:6.0.0"
|
||||
dependencies:
|
||||
http-errors: "npm:^2.0.0"
|
||||
resolve-path: "npm:^1.4.0"
|
||||
checksum: 10c0/a2c0a2a90c6ff3693a4539cf6face5c2d8b575ed5f6754d9620e645f1ac6a80308af990f477ac4db73ed1e6d307b71b22cd0ac553f556e77bf7c9c119f6eabdb
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -3078,6 +3063,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@noble/hashes@npm:^2.4.0":
|
||||
version: 2.4.0
|
||||
resolution: "@noble/hashes@npm:2.4.0"
|
||||
checksum: 10c0/f5820a38c52886073a69722a030688ad188bbacb822d01554545371259961c2b916266c57c013c2ce5a0d78aec977142fc68fd2a79be4c97b0644fcee9bb35f6
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@node-oauth/formats@npm:1.0.0":
|
||||
version: 1.0.0
|
||||
resolution: "@node-oauth/formats@npm:1.0.0"
|
||||
@@ -5848,6 +5840,19 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@socket.io/redis-adapter@npm:^8.3.0":
|
||||
version: 8.3.0
|
||||
resolution: "@socket.io/redis-adapter@npm:8.3.0"
|
||||
dependencies:
|
||||
debug: "npm:~4.3.1"
|
||||
notepack.io: "npm:~3.0.1"
|
||||
uid2: "npm:1.0.0"
|
||||
peerDependencies:
|
||||
socket.io-adapter: ^2.5.4
|
||||
checksum: 10c0/263cc40473e02055dc4fffe07b44252cc1349faced39e5a4067d534de953437745c74179d2510e1d78e455ec2947ab5b0db395d4fe2a81057653b81b0f0c87cc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@standard-schema/spec@npm:^1.1.0":
|
||||
version: 1.1.0
|
||||
resolution: "@standard-schema/spec@npm:1.1.0"
|
||||
@@ -6156,13 +6161,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/bluebird@npm:*":
|
||||
version: 3.5.42
|
||||
resolution: "@types/bluebird@npm:3.5.42"
|
||||
checksum: 10c0/ce752a5e277bbc0cdee3dee9c875ac093d1331905a8a5175665ccb8cb76b7b95a84836f92bc46076c2fd1e384a107866893eeeb20f6fb33427482663879faf93
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/body-parser@npm:*":
|
||||
version: 1.19.6
|
||||
resolution: "@types/body-parser@npm:1.19.6"
|
||||
@@ -6209,15 +6207,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/continuation-local-storage@npm:*":
|
||||
version: 3.2.7
|
||||
resolution: "@types/continuation-local-storage@npm:3.2.7"
|
||||
dependencies:
|
||||
"@types/node": "npm:*"
|
||||
checksum: 10c0/4225696c70141dcebda5d3a8c1eda0de4ffcd1006a835d7293e73a65fcc7c600eee0c61bd916e6661db162934a8ce51150addd42096eb1a29a7d8c1271f4424e
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/cookie@npm:0.6.0":
|
||||
version: 0.6.0
|
||||
resolution: "@types/cookie@npm:0.6.0"
|
||||
@@ -6246,13 +6235,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/crypto-js@npm:^4.2.2":
|
||||
version: 4.2.2
|
||||
resolution: "@types/crypto-js@npm:4.2.2"
|
||||
checksum: 10c0/760a2078f36f2a3a1089ef367b0d13229876adcf4bcd6e8824d00d9e9bfad8118dc7e6a3cc66322b083535e12be3a29044ccdc9603bfb12519ff61551a3322c6
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/d3-array@npm:*":
|
||||
version: 3.2.2
|
||||
resolution: "@types/d3-array@npm:3.2.2"
|
||||
@@ -6548,24 +6530,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/dotenv@npm:^8.2.3":
|
||||
version: 8.2.3
|
||||
resolution: "@types/dotenv@npm:8.2.3"
|
||||
dependencies:
|
||||
dotenv: "npm:*"
|
||||
checksum: 10c0/af9178da617959cddc8259aaa3f16c474523ead469f4a03490de2f2d1cafc8615c5d0d1ed3fad837096218126421c38cd46b4065548bb5aee3cc002c518b69f7
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/emoji-regex@npm:^9.2.2":
|
||||
version: 9.2.2
|
||||
resolution: "@types/emoji-regex@npm:9.2.2"
|
||||
dependencies:
|
||||
emoji-regex: "npm:*"
|
||||
checksum: 10c0/e085ca1851c0710317d8220ab983ba9cc2b573e2ec06a3d3f592e3fc4a5250b7674accb36c76c981e1a1f8705ec4c307126ec2db9b191650dab6208d1cac901f
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/escape-html@npm:^1.0.4":
|
||||
version: 1.0.4
|
||||
resolution: "@types/escape-html@npm:1.0.4"
|
||||
@@ -6619,15 +6583,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/form-data@npm:^2.5.2":
|
||||
version: 2.5.2
|
||||
resolution: "@types/form-data@npm:2.5.2"
|
||||
dependencies:
|
||||
form-data: "npm:*"
|
||||
checksum: 10c0/d781239cec80c2e4a33c845f4adc6a25883e982e8ae4f472d38e9928a197f62b6a3e24fc9e28407b1be01c8ad22baeb5053e904af77344e9caa9909cbdccbd0b
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/formidable@npm:^2.0.5, @types/formidable@npm:^2.0.6":
|
||||
version: 2.0.6
|
||||
resolution: "@types/formidable@npm:2.0.6"
|
||||
@@ -6661,16 +6616,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/glob@npm:^8.0.1":
|
||||
version: 8.1.0
|
||||
resolution: "@types/glob@npm:8.1.0"
|
||||
dependencies:
|
||||
"@types/minimatch": "npm:^5.1.2"
|
||||
"@types/node": "npm:*"
|
||||
checksum: 10c0/ded07aa0d7a1caf3c47b85e262be82989ccd7933b4a14712b79c82fd45a239249811d9fc3a135b3e9457afa163e74a297033d7245b0dc63cd3d032f3906b053f
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/google.analytics@npm:^0.0.46":
|
||||
version: 0.0.46
|
||||
resolution: "@types/google.analytics@npm:0.0.46"
|
||||
@@ -6694,17 +6639,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/hoist-non-react-statics@npm:*":
|
||||
version: 3.3.7
|
||||
resolution: "@types/hoist-non-react-statics@npm:3.3.7"
|
||||
dependencies:
|
||||
hoist-non-react-statics: "npm:^3.3.0"
|
||||
peerDependencies:
|
||||
"@types/react": "*"
|
||||
checksum: 10c0/ed8f4e88338f7d021d0f956adf6089d2a12b2e254a03c05292324f2e986d2376eb9efdb8a4f04596823e8fca88c9d06361d20dab4a2a00dc935fb36ac911de55
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/http-assert@npm:*":
|
||||
version: 1.5.6
|
||||
resolution: "@types/http-assert@npm:1.5.6"
|
||||
@@ -6830,24 +6764,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/koa-router@npm:^7.4.9":
|
||||
version: 7.4.9
|
||||
resolution: "@types/koa-router@npm:7.4.9"
|
||||
dependencies:
|
||||
"@types/koa": "npm:*"
|
||||
checksum: 10c0/296218c302347e5147b8cd5a6f50312a9d9937ad1082f10d97022841a09c9bc2a821cf3ea381d4ca9dff5643e8c03fe2be1af1bdaba8a065579c54abb1a8dfe1
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/koa-send@npm:^4.1.6":
|
||||
version: 4.1.6
|
||||
resolution: "@types/koa-send@npm:4.1.6"
|
||||
dependencies:
|
||||
"@types/koa": "npm:*"
|
||||
checksum: 10c0/c0428cb67884e21d995eebfb02c4cc243363fe715d72ef4c2278b433e8b169fec17d9f14f0edab268947858434be9626128cc0a84188ba627c29d6b501c4f0d6
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/koa-sslify@npm:^4.0.6":
|
||||
version: 4.0.6
|
||||
resolution: "@types/koa-sslify@npm:4.0.6"
|
||||
@@ -6857,15 +6773,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/koa-useragent@npm:^2.1.2":
|
||||
version: 2.1.2
|
||||
resolution: "@types/koa-useragent@npm:2.1.2"
|
||||
dependencies:
|
||||
koa-useragent: "npm:*"
|
||||
checksum: 10c0/2a8bfc374ffffa172352fdaf773250f1c74ae6fbdb8dafeb481f2e07cc1e1922aabf8cd68b63d30a2983c2d404880c0fa6a86e069e107f2f4a432e0620aaf9cb
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/koa@npm:2.15.1":
|
||||
version: 2.15.1
|
||||
resolution: "@types/koa@npm:2.15.1"
|
||||
@@ -6889,13 +6796,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/lodash@npm:*":
|
||||
version: 4.17.21
|
||||
resolution: "@types/lodash@npm:4.17.21"
|
||||
checksum: 10c0/73cb006e047d8871e9d63f3a165543bf16c44a5b6fe3f9f6299e37cb8d67a7b1d55ac730959a81f9def510fd07232ff7e30e05413e5d5a12793baad84ebe36c3
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/mailparser@npm:^3.4.6":
|
||||
version: 3.4.6
|
||||
resolution: "@types/mailparser@npm:3.4.6"
|
||||
@@ -6955,13 +6855,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/minimatch@npm:^5.1.2":
|
||||
version: 5.1.2
|
||||
resolution: "@types/minimatch@npm:5.1.2"
|
||||
checksum: 10c0/83cf1c11748891b714e129de0585af4c55dd4c2cafb1f1d5233d79246e5e1e19d1b5ad9e8db449667b3ffa2b6c80125c429dbee1054e9efb45758dbc4e118562
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/ms@npm:*":
|
||||
version: 2.1.0
|
||||
resolution: "@types/ms@npm:2.1.0"
|
||||
@@ -7121,15 +7014,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/react-virtualized-auto-sizer@npm:^1.0.8":
|
||||
version: 1.0.8
|
||||
resolution: "@types/react-virtualized-auto-sizer@npm:1.0.8"
|
||||
dependencies:
|
||||
react-virtualized-auto-sizer: "npm:*"
|
||||
checksum: 10c0/ff8c9c3e9c4ccecc24c56de109a725d03a095389288c7da2c685c5fed1793e6b36c498b055b7db5ab1d9607e8371fde8b9455fcd751f09c55f08c64a2687ebbc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/react-window@npm:^1.8.8":
|
||||
version: 1.8.8
|
||||
resolution: "@types/react-window@npm:1.8.8"
|
||||
@@ -7187,15 +7071,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/sanitize-filename@npm:^1.6.3":
|
||||
version: 1.6.3
|
||||
resolution: "@types/sanitize-filename@npm:1.6.3"
|
||||
dependencies:
|
||||
sanitize-filename: "npm:*"
|
||||
checksum: 10c0/e06135549ff3ce83b1cc5035517264435c33f5bdd1759dbd9041f8d4aff47c2141a17fd273e39b0d9f816cb5b3b74e3a72981be1503723c87eace9a1d80fb245
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/semver@npm:^7.7.1":
|
||||
version: 7.7.1
|
||||
resolution: "@types/semver@npm:7.7.1"
|
||||
@@ -7212,18 +7087,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/sequelize@npm:^4.28.20":
|
||||
version: 4.28.20
|
||||
resolution: "@types/sequelize@npm:4.28.20"
|
||||
dependencies:
|
||||
"@types/bluebird": "npm:*"
|
||||
"@types/continuation-local-storage": "npm:*"
|
||||
"@types/lodash": "npm:*"
|
||||
"@types/validator": "npm:*"
|
||||
checksum: 10c0/f7a7f917b9b46abf53289c0cdb7332401dbbc4be8159f8d74d07b93e96bd938715aec743fa3f71d81b3ce2c84ed1bc374b5f176be455077091dfcb293ede262a
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/serve-static@npm:^2":
|
||||
version: 2.2.0
|
||||
resolution: "@types/serve-static@npm:2.2.0"
|
||||
@@ -7266,17 +7129,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/styled-components@npm:^5.1.36":
|
||||
version: 5.1.36
|
||||
resolution: "@types/styled-components@npm:5.1.36"
|
||||
dependencies:
|
||||
"@types/hoist-non-react-statics": "npm:*"
|
||||
"@types/react": "npm:*"
|
||||
csstype: "npm:^3.2.2"
|
||||
checksum: 10c0/bbbf65e22a852a5bc3e1839aa591372febe084e33b8d4f44712f790e0675df9f5a327c6c6a262bbf5fd08032afe2ac9b265de92c72efca0bfa5dea09d7127c28
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/symlink-or-copy@npm:^1.2.0":
|
||||
version: 1.2.2
|
||||
resolution: "@types/symlink-or-copy@npm:1.2.2"
|
||||
@@ -7340,7 +7192,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/validator@npm:*, @types/validator@npm:^13.15.10, @types/validator@npm:^13.15.3, @types/validator@npm:^13.7.17":
|
||||
"@types/validator@npm:^13.15.10, @types/validator@npm:^13.15.3, @types/validator@npm:^13.7.17":
|
||||
version: 13.15.10
|
||||
resolution: "@types/validator@npm:13.15.10"
|
||||
checksum: 10c0/3e2e65fcd37dd6961ca3fd0535293d0c42f5911dc3ca44b96f458835e6db2392b678ccbb0c9815d8c0a14e653439e6c62c7b8758a6cd1d6e390551c9e56618ac
|
||||
@@ -7957,7 +7809,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"any-promise@npm:^1.0.0, any-promise@npm:^1.1.0":
|
||||
"any-promise@npm:^1.0.0":
|
||||
version: 1.3.0
|
||||
resolution: "any-promise@npm:1.3.0"
|
||||
checksum: 10c0/60f0298ed34c74fef50daab88e8dab786036ed5a7fad02e012ab57e376e0a0b4b29e83b95ea9b5e7d89df762f5f25119b83e00706ecaccb22cfbacee98d74889
|
||||
@@ -8196,21 +8048,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"babel-plugin-styled-components@npm:>= 1.12.0":
|
||||
version: 2.3.0
|
||||
resolution: "babel-plugin-styled-components@npm:2.3.0"
|
||||
dependencies:
|
||||
"@babel/helper-annotate-as-pure": "npm:^7.25.9"
|
||||
"@babel/helper-module-imports": "npm:^7.25.9"
|
||||
"@babel/plugin-syntax-jsx": "npm:^7.25.9"
|
||||
picomatch: "npm:^4.0.2"
|
||||
peerDependencies:
|
||||
"@babel/core": ^7.0.0
|
||||
styled-components: ">= 2"
|
||||
checksum: 10c0/b14c06b15be18ce71ddbdf3c0ad073997d62233e21e1224bde2254b6ed4fee41c0e9458479016c066a2dea1aa88d4da225e84ec9f6e7056f47232ae151297fb4
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"balanced-match@npm:^1.0.0":
|
||||
version: 1.0.2
|
||||
resolution: "balanced-match@npm:1.0.2"
|
||||
@@ -9459,7 +9296,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"css-to-react-native@npm:^3.0.0":
|
||||
"css-to-react-native@npm:3.2.0":
|
||||
version: 3.2.0
|
||||
resolution: "css-to-react-native@npm:3.2.0"
|
||||
dependencies:
|
||||
@@ -9486,7 +9323,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"csstype@npm:^3.2.2":
|
||||
"csstype@npm:3.2.3, csstype@npm:^3.2.2":
|
||||
version: 3.2.3
|
||||
resolution: "csstype@npm:3.2.3"
|
||||
checksum: 10c0/cd29c51e70fa822f1cecd8641a1445bed7063697469d35633b516e60fe8c1bde04b08f6c5b6022136bb669b64c63d4173af54864510fbb4ee23281801841a3ce
|
||||
@@ -10167,7 +10004,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"denque@npm:^1.1.0, denque@npm:^1.5.0":
|
||||
"denque@npm:^1.1.0":
|
||||
version: 1.5.1
|
||||
resolution: "denque@npm:1.5.1"
|
||||
checksum: 10c0/9e6fc1a63e1c9ded38325290302fef40e5ad28471ad8c66d68eaea623ef847bd25fc75a7c3f47396206dc967922615999066470a364e1786f2758d61337872b7
|
||||
@@ -10319,13 +10156,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"dotenv@npm:*, dotenv@npm:^17.2.1":
|
||||
version: 17.2.3
|
||||
resolution: "dotenv@npm:17.2.3"
|
||||
checksum: 10c0/c884403209f713214a1b64d4d1defa4934c2aa5b0002f5a670ae298a51e3c3ad3ba79dfee2f8df49f01ae74290fcd9acdb1ab1d09c7bfb42b539036108bb2ba0
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"dotenv@npm:16.5.0":
|
||||
version: 16.5.0
|
||||
resolution: "dotenv@npm:16.5.0"
|
||||
@@ -10333,6 +10163,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"dotenv@npm:^17.2.1":
|
||||
version: 17.2.3
|
||||
resolution: "dotenv@npm:17.2.3"
|
||||
checksum: 10c0/c884403209f713214a1b64d4d1defa4934c2aa5b0002f5a670ae298a51e3c3ad3ba79dfee2f8df49f01ae74290fcd9acdb1ab1d09c7bfb42b539036108bb2ba0
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"dottie@npm:^2.0.6":
|
||||
version: 2.0.7
|
||||
resolution: "dottie@npm:2.0.7"
|
||||
@@ -10476,7 +10313,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"emoji-regex@npm:*, emoji-regex@npm:^10.3.0, emoji-regex@npm:^10.6.0":
|
||||
"emoji-regex@npm:^10.3.0, emoji-regex@npm:^10.6.0":
|
||||
version: 10.6.0
|
||||
resolution: "emoji-regex@npm:10.6.0"
|
||||
checksum: 10c0/1e4aa097bb007301c3b4b1913879ae27327fdc48e93eeefefe3b87e495eb33c5af155300be951b4349ff6ac084f4403dc9eff970acba7c1c572d89396a9a32d7
|
||||
@@ -11456,7 +11293,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"form-data@npm:*, form-data@npm:^4.0.0, form-data@npm:^4.0.4, form-data@npm:^4.0.6":
|
||||
"form-data@npm:^4.0.0, form-data@npm:^4.0.4, form-data@npm:^4.0.6":
|
||||
version: 4.0.6
|
||||
resolution: "form-data@npm:4.0.6"
|
||||
dependencies:
|
||||
@@ -12187,7 +12024,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"hoist-non-react-statics@npm:^3.0.0, hoist-non-react-statics@npm:^3.1.0, hoist-non-react-statics@npm:^3.3.0, hoist-non-react-statics@npm:^3.3.2":
|
||||
"hoist-non-react-statics@npm:^3.1.0, hoist-non-react-statics@npm:^3.3.2":
|
||||
version: 3.3.2
|
||||
resolution: "hoist-non-react-statics@npm:3.3.2"
|
||||
dependencies:
|
||||
@@ -12288,7 +12125,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"http-errors@npm:^1.3.1, http-errors@npm:^1.7.3, http-errors@npm:~1.8.0":
|
||||
"http-errors@npm:^1.7.3, http-errors@npm:~1.8.0":
|
||||
version: 1.8.1
|
||||
resolution: "http-errors@npm:1.8.1"
|
||||
dependencies:
|
||||
@@ -13650,15 +13487,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"koa-compose@npm:^3.0.0":
|
||||
version: 3.2.1
|
||||
resolution: "koa-compose@npm:3.2.1"
|
||||
dependencies:
|
||||
any-promise: "npm:^1.1.0"
|
||||
checksum: 10c0/10f695cf75906d0054d60d29e3a18e8df8962f1a050823bf503711819294283aae92fc145b86ea8e5dd438fc938a501145a8b6447e87cb6374084434eeeeed2f
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"koa-compose@npm:^4.1.0":
|
||||
version: 4.1.0
|
||||
resolution: "koa-compose@npm:4.1.0"
|
||||
@@ -13717,21 +13545,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"koa-router@npm:7.4.0":
|
||||
version: 7.4.0
|
||||
resolution: "koa-router@npm:7.4.0"
|
||||
dependencies:
|
||||
debug: "npm:^3.1.0"
|
||||
http-errors: "npm:^1.3.1"
|
||||
koa-compose: "npm:^3.0.0"
|
||||
methods: "npm:^1.0.1"
|
||||
path-to-regexp: "npm:^1.1.1"
|
||||
urijs: "npm:^1.19.0"
|
||||
checksum: 10c0/1a3ca392668e0a42222523ae459555010a493b759b934164d98b497e1b25ba57d7a8ee463cf351f815b620a4762f7c85ad8593b7d1cb7d1b2c26c15fa919c7f3
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"koa-send@npm:5.0.1, koa-send@npm:^5.0.0, koa-send@npm:^5.0.1":
|
||||
"koa-send@npm:^5.0.0, koa-send@npm:^5.0.1":
|
||||
version: 5.0.1
|
||||
resolution: "koa-send@npm:5.0.1"
|
||||
dependencies:
|
||||
@@ -13759,7 +13573,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"koa-useragent@npm:*, koa-useragent@npm:^4.1.0":
|
||||
"koa-useragent@npm:^4.1.0":
|
||||
version: 4.1.0
|
||||
resolution: "koa-useragent@npm:4.1.0"
|
||||
dependencies:
|
||||
@@ -14528,13 +14342,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"methods@npm:^1.0.1":
|
||||
version: 1.1.2
|
||||
resolution: "methods@npm:1.1.2"
|
||||
checksum: 10c0/bdf7cc72ff0a33e3eede03708c08983c4d7a173f91348b4b1e4f47d4cdbf734433ad971e7d1e8c77247d9e5cd8adb81ea4c67b0a2db526b758b2233d7814b8b2
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"micromatch@npm:^4.0.2":
|
||||
version: 4.0.8
|
||||
resolution: "micromatch@npm:4.0.8"
|
||||
@@ -15195,10 +15002,10 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"notepack.io@npm:~2.2.0":
|
||||
version: 2.2.0
|
||||
resolution: "notepack.io@npm:2.2.0"
|
||||
checksum: 10c0/395e9821c06ebeac8f677e416e186e09e7bb64ad5e7578634eb21842a50d5b1e14ca62816da7431e463fcd5be9c6bfb0c9a6593f6ef92a8861e293025509e309
|
||||
"notepack.io@npm:~3.0.1":
|
||||
version: 3.0.1
|
||||
resolution: "notepack.io@npm:3.0.1"
|
||||
checksum: 10c0/21ea9e2cfc2ac4a187c684787d3514ea9a770a06d3b4e54893f61680f07979d5ae5d3320319b8f3471ff07aaa52956e27f80782dec9ff99f4e9096c60f2998dc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -15472,6 +15279,7 @@ __metadata:
|
||||
"@dnd-kit/sortable": "npm:^7.0.2"
|
||||
"@dotenvx/dotenvx": "npm:^1.75.1"
|
||||
"@emoji-mart/data": "npm:^1.2.1"
|
||||
"@emotion/is-prop-valid": "npm:^1.4.0"
|
||||
"@faker-js/faker": "npm:^10.5.0"
|
||||
"@fast-csv/parse": "npm:^5.0.7"
|
||||
"@firecrawl/pdf-inspector": "npm:^1.11.2"
|
||||
@@ -15486,9 +15294,12 @@ __metadata:
|
||||
"@hocuspocus/provider": "npm:1.1.3"
|
||||
"@hocuspocus/server": "npm:1.1.3"
|
||||
"@juggle/resize-observer": "npm:^3.4.0"
|
||||
"@koa/router": "npm:^15.7.0"
|
||||
"@koa/send": "npm:^6.0.0"
|
||||
"@linear/sdk": "npm:^97.0.0"
|
||||
"@mermaid-js/layout-elk": "npm:0.2.2"
|
||||
"@modelcontextprotocol/sdk": "npm:^1.31.0"
|
||||
"@noble/hashes": "npm:^2.4.0"
|
||||
"@node-oauth/oauth2-server": "npm:^5.3.0"
|
||||
"@notionhq/client": "npm:^2.3.0"
|
||||
"@octokit/auth-app": "npm:^8.3.1"
|
||||
@@ -15515,23 +15326,19 @@ __metadata:
|
||||
"@sentry/react": "npm:^10.76.0"
|
||||
"@simplewebauthn/browser": "npm:^13.3.0"
|
||||
"@simplewebauthn/server": "npm:^13.3.3"
|
||||
"@socket.io/redis-adapter": "npm:^8.3.0"
|
||||
"@swc/cli": "npm:^0.8.1"
|
||||
"@swc/core": "npm:^1.15.32"
|
||||
"@tanstack/react-table": "npm:^8.21.3"
|
||||
"@tanstack/react-virtual": "npm:^3.14.9"
|
||||
"@types/addressparser": "npm:^1.0.3"
|
||||
"@types/cookie": "npm:0.6.0"
|
||||
"@types/crypto-js": "npm:^4.2.2"
|
||||
"@types/diff": "npm:^5.0.9"
|
||||
"@types/dotenv": "npm:^8.2.3"
|
||||
"@types/emoji-regex": "npm:^9.2.2"
|
||||
"@types/escape-html": "npm:^1.0.4"
|
||||
"@types/express-useragent": "npm:^1.0.5"
|
||||
"@types/form-data": "npm:^2.5.2"
|
||||
"@types/formidable": "npm:^2.0.6"
|
||||
"@types/fs-extra": "npm:^11.0.4"
|
||||
"@types/fuzzy-search": "npm:^2.1.5"
|
||||
"@types/glob": "npm:^8.0.1"
|
||||
"@types/google.analytics": "npm:^0.0.46"
|
||||
"@types/invariant": "npm:^2.2.37"
|
||||
"@types/ioredis-mock": "npm:^8.2.8"
|
||||
@@ -15543,10 +15350,7 @@ __metadata:
|
||||
"@types/koa-compress": "npm:^4.0.7"
|
||||
"@types/koa-logger": "npm:^3.1.5"
|
||||
"@types/koa-mount": "npm:^4.0.5"
|
||||
"@types/koa-router": "npm:^7.4.9"
|
||||
"@types/koa-send": "npm:^4.1.6"
|
||||
"@types/koa-sslify": "npm:^4.0.6"
|
||||
"@types/koa-useragent": "npm:^2.1.2"
|
||||
"@types/mailparser": "npm:^3.4.6"
|
||||
"@types/markdown-it": "npm:14.2.0"
|
||||
"@types/markdown-it-container": "npm:^2.0.11"
|
||||
@@ -15564,18 +15368,14 @@ __metadata:
|
||||
"@types/react": "npm:19.3.0"
|
||||
"@types/react-dom": "npm:^19.3.0"
|
||||
"@types/react-router-dom": "npm:^5.3.3"
|
||||
"@types/react-virtualized-auto-sizer": "npm:^1.0.8"
|
||||
"@types/react-window": "npm:^1.8.8"
|
||||
"@types/readable-stream": "npm:^4.0.24"
|
||||
"@types/redis-info": "npm:^3.0.3"
|
||||
"@types/refractor": "npm:^3.4.1"
|
||||
"@types/resolve-path": "npm:^1.4.3"
|
||||
"@types/sanitize-filename": "npm:^1.6.3"
|
||||
"@types/semver": "npm:^7.7.1"
|
||||
"@types/sequelize": "npm:^4.28.20"
|
||||
"@types/slug": "npm:^5.0.9"
|
||||
"@types/stoppable": "npm:^1.1.3"
|
||||
"@types/styled-components": "npm:^5.1.36"
|
||||
"@types/throng": "npm:^5.0.7"
|
||||
"@types/tmp": "npm:^0.2.6"
|
||||
"@types/utf8": "npm:^3.0.3"
|
||||
@@ -15597,7 +15397,6 @@ __metadata:
|
||||
cookie: "npm:^0.7.2"
|
||||
copy-to-clipboard: "npm:^3.3.3"
|
||||
core-js: "npm:^3.49.0"
|
||||
crypto-js: "npm:^4.2.0"
|
||||
date-fns: "npm:^3.6.0"
|
||||
dd-trace: "npm:^5.130.0"
|
||||
diff: "npm:^5.2.2"
|
||||
@@ -15643,8 +15442,6 @@ __metadata:
|
||||
koa-helmet: "npm:^6.1.0"
|
||||
koa-logger: "npm:^3.2.1"
|
||||
koa-mount: "npm:^4.2.0"
|
||||
koa-router: "npm:7.4.0"
|
||||
koa-send: "npm:5.0.1"
|
||||
koa-sslify: "npm:5.0.1"
|
||||
koa-useragent: "npm:^4.1.0"
|
||||
lib0: "npm:^0.2.99"
|
||||
@@ -15737,11 +15534,10 @@ __metadata:
|
||||
slugify: "npm:^1.6.9"
|
||||
socket.io: "npm:^4.8.3"
|
||||
socket.io-client: "npm:^4.8.4"
|
||||
socket.io-redis: "npm:^6.1.1"
|
||||
sonner: "npm:^2.0.8"
|
||||
stoppable: "npm:^1.1.0"
|
||||
string-replace-to-array: "npm:^2.1.1"
|
||||
styled-components: "npm:^5.3.11"
|
||||
styled-components: "npm:^6.5.3"
|
||||
styled-components-breakpoint: "npm:^2.1.1"
|
||||
styled-normalize: "npm:^8.1.1"
|
||||
terser: "npm:^5.49.0"
|
||||
@@ -16414,7 +16210,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"path-to-regexp@npm:^1.1.1, path-to-regexp@npm:^1.7.0":
|
||||
"path-to-regexp@npm:^1.7.0":
|
||||
version: 1.9.0
|
||||
resolution: "path-to-regexp@npm:1.9.0"
|
||||
dependencies:
|
||||
@@ -16430,7 +16226,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"path-to-regexp@npm:^8.0.0, path-to-regexp@npm:^8.3.0":
|
||||
"path-to-regexp@npm:^8.0.0, path-to-regexp@npm:^8.4.2":
|
||||
version: 8.4.2
|
||||
resolution: "path-to-regexp@npm:8.4.2"
|
||||
checksum: 10c0/05b115c49b47ad252ce05faa32930f643f23769c68b8bcfe78ad833545140c48bbffb3266986d6c8d5db13a64cf12e07e0d72d9882cab830efeefa553533ebaf
|
||||
@@ -17439,7 +17235,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"react-virtualized-auto-sizer@npm:*, react-virtualized-auto-sizer@npm:^1.0.26":
|
||||
"react-virtualized-auto-sizer@npm:^1.0.26":
|
||||
version: 1.0.26
|
||||
resolution: "react-virtualized-auto-sizer@npm:1.0.26"
|
||||
peerDependencies:
|
||||
@@ -17535,13 +17331,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"redis-commands@npm:^1.7.0":
|
||||
version: 1.7.0
|
||||
resolution: "redis-commands@npm:1.7.0"
|
||||
checksum: 10c0/c78b46d8d6e811f422961878538c57048a451ab56760d3f1657a7c8f29aaae42cc23890f75655556a59ec67611022e18cb443d2976e6c55036934bfe783aa60e
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"redis-errors@npm:1.2.0, redis-errors@npm:^1.0.0, redis-errors@npm:^1.2.0":
|
||||
version: 1.2.0
|
||||
resolution: "redis-errors@npm:1.2.0"
|
||||
@@ -17567,18 +17356,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"redis@npm:^3.0.0":
|
||||
version: 3.1.2
|
||||
resolution: "redis@npm:3.1.2"
|
||||
dependencies:
|
||||
denque: "npm:^1.5.0"
|
||||
redis-commands: "npm:^1.7.0"
|
||||
redis-errors: "npm:^1.2.0"
|
||||
redis-parser: "npm:^3.0.0"
|
||||
checksum: 10c0/452d4ed65948b101e379c1abcce7682619382c90929a6611baae5f7f1d38134ce20ad65adfbaa569b735274b49db14a2ebb622800e0b45a4d1559e2133c7aabe
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"redlock@npm:^4.2.0":
|
||||
version: 4.2.0
|
||||
resolution: "redlock@npm:4.2.0"
|
||||
@@ -18234,7 +18011,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"sanitize-filename@npm:*, sanitize-filename@npm:^1.6.4":
|
||||
"sanitize-filename@npm:^1.6.4":
|
||||
version: 1.6.4
|
||||
resolution: "sanitize-filename@npm:1.6.4"
|
||||
dependencies:
|
||||
@@ -18535,13 +18312,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"shallowequal@npm:^1.1.0":
|
||||
version: 1.1.0
|
||||
resolution: "shallowequal@npm:1.1.0"
|
||||
checksum: 10c0/b926efb51cd0f47aa9bc061add788a4a650550bbe50647962113a4579b60af2abe7b62f9b02314acc6f97151d4cf87033a2b15fc20852fae306d1a095215396c
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"shebang-command@npm:^2.0.0":
|
||||
version: 2.0.0
|
||||
resolution: "shebang-command@npm:2.0.0"
|
||||
@@ -18718,13 +18488,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"socket.io-adapter@npm:~2.2.0":
|
||||
version: 2.2.0
|
||||
resolution: "socket.io-adapter@npm:2.2.0"
|
||||
checksum: 10c0/0653dad10dc969d8e4bdb19ab98d30bdfdee182f2f0601500c512575e93c33f557f58243fb11d91b39556a2a1dba689b93c05fb050a7c63198a88426263e931f
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"socket.io-adapter@npm:~2.5.2":
|
||||
version: 2.5.5
|
||||
resolution: "socket.io-adapter@npm:2.5.5"
|
||||
@@ -18757,19 +18520,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"socket.io-redis@npm:^6.1.1":
|
||||
version: 6.1.1
|
||||
resolution: "socket.io-redis@npm:6.1.1"
|
||||
dependencies:
|
||||
debug: "npm:~4.3.1"
|
||||
notepack.io: "npm:~2.2.0"
|
||||
redis: "npm:^3.0.0"
|
||||
socket.io-adapter: "npm:~2.2.0"
|
||||
uid2: "npm:0.0.3"
|
||||
checksum: 10c0/3a9374948f89ddde49ef3cfb44f885322e57eaca01b168b094862b5e779b95bb47b1fe11d5180de134e9d0cc948abd4454b6e9ae3e47bba33e40245e7ce455bc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"socket.io@npm:^4.8.3":
|
||||
version: 4.8.3
|
||||
resolution: "socket.io@npm:4.8.3"
|
||||
@@ -19274,25 +19024,27 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"styled-components@npm:^5.3.11":
|
||||
version: 5.3.11
|
||||
resolution: "styled-components@npm:5.3.11"
|
||||
"styled-components@npm:^6.5.3":
|
||||
version: 6.5.3
|
||||
resolution: "styled-components@npm:6.5.3"
|
||||
dependencies:
|
||||
"@babel/helper-module-imports": "npm:^7.0.0"
|
||||
"@babel/traverse": "npm:^7.4.5"
|
||||
"@emotion/is-prop-valid": "npm:^1.1.0"
|
||||
"@emotion/stylis": "npm:^0.8.4"
|
||||
"@emotion/unitless": "npm:^0.7.4"
|
||||
babel-plugin-styled-components: "npm:>= 1.12.0"
|
||||
css-to-react-native: "npm:^3.0.0"
|
||||
hoist-non-react-statics: "npm:^3.0.0"
|
||||
shallowequal: "npm:^1.1.0"
|
||||
supports-color: "npm:^5.5.0"
|
||||
"@emotion/is-prop-valid": "npm:1.4.0"
|
||||
css-to-react-native: "npm:3.2.0"
|
||||
csstype: "npm:3.2.3"
|
||||
stylis: "npm:4.3.6"
|
||||
peerDependencies:
|
||||
css-to-react-native: ">= 3.2.0"
|
||||
react: ">= 16.8.0"
|
||||
react-dom: ">= 16.8.0"
|
||||
react-is: ">= 16.8.0"
|
||||
checksum: 10c0/90b73479770c5d68e22e6366d210119d7203154a3e49dc828f6f6b4c2d5c077f7548210dfddd0af3cb15b0b63fab3eec8dc995c1734e97a313a9b83ba893668e
|
||||
react-native: ">= 0.68.0"
|
||||
peerDependenciesMeta:
|
||||
css-to-react-native:
|
||||
optional: true
|
||||
react-dom:
|
||||
optional: true
|
||||
react-native:
|
||||
optional: true
|
||||
checksum: 10c0/76b525c7cbf4febdf52e6b15eeddb3782bb50e11f078e5d0a299b221067314386c7b05cf703f141f3eb15c541f41b20e43386405322986e441e8bb07324adf06
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -19305,7 +19057,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"stylis@npm:^4.3.6":
|
||||
"stylis@npm:4.3.6, stylis@npm:^4.3.6":
|
||||
version: 4.3.6
|
||||
resolution: "stylis@npm:4.3.6"
|
||||
checksum: 10c0/e736d484983a34f7c65d362c67dc79b7bce388054b261c2b7b23d02eaaf280617033f65d44b1ea341854f4331a5074b885668ac8741f98c13a6cfd6443ae85d0
|
||||
@@ -20126,13 +19878,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"uid2@npm:0.0.3":
|
||||
version: 0.0.3
|
||||
resolution: "uid2@npm:0.0.3"
|
||||
checksum: 10c0/b4b1d5b74ec21ccad48f4c91b2e91551020d4d987d3973dbab396537c798b1aba9f2bd64f2347a7dfd70560c19c9df92a163c9375f6dae9aeae9f2903b7f5410
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"uid2@npm:0.0.x":
|
||||
version: 0.0.4
|
||||
resolution: "uid2@npm:0.0.4"
|
||||
@@ -20140,6 +19885,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"uid2@npm:1.0.0":
|
||||
version: 1.0.0
|
||||
resolution: "uid2@npm:1.0.0"
|
||||
checksum: 10c0/775721fc4116ab7f42abf47e329ea747106e1c1685b77771ba7c2888a14854d84f767846d4ad899586a633b2e813fcf253b1bed5708b5c1e3f6fe711d78a75f2
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"uint8array-extras@npm:^1.4.0":
|
||||
version: 1.5.0
|
||||
resolution: "uint8array-extras@npm:1.5.0"
|
||||
@@ -20449,13 +20201,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"urijs@npm:^1.19.0":
|
||||
version: 1.19.11
|
||||
resolution: "urijs@npm:1.19.11"
|
||||
checksum: 10c0/96e15eea5b41a99361d506e4d8fcc64dc43f334bd5fd34e08261467b6954b97a6b45929a8d6c79e2dc76aadfd6ca950e0f4bd7f3c0757a08978429634d07eda1
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"url-parse@npm:^1.5.3":
|
||||
version: 1.5.10
|
||||
resolution: "url-parse@npm:1.5.10"
|
||||
|
||||
Reference in new issue
Block a user