Skip to content

Commit 3e6c988

Browse files
committed
wip
1 parent 3463a3a commit 3e6c988

36 files changed

+770
-851
lines changed

env.d.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,3 @@ declare namespace NodeJS {
1616
readonly ORAMA_PRIVATE_API_KEY: string;
1717
}
1818
}
19-
20-
declare module "solid:collection" {
21-
// eslint-disable-next-line
22-
const component: any;
23-
export default component;
24-
}
25-
26-
declare module "solid:hero-code-snippet" {
27-
export const highlightedCode: string;
28-
}

osmium/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
"@kobalte/solidbase": "^0.4.2",
3434
"@orama/core": "^1.2.19",
3535
"@solid-primitives/context": "^0.3.2",
36+
"@solid-primitives/event-listener": "^2.4.5",
37+
"@solid-primitives/marker": "^0.2.2",
38+
"@solid-primitives/platform": "^0.2.1",
3639
"@solidjs/router": "0.15.3",
3740
"solid-heroicons": "^3.2.4",
3841
"solid-js": "^1.9.11"

osmium/src/Layout.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { ErrorBoundary } from "solid-js";
33

44
import { Layout } from "~/ui/layout";
55
import { NotFound } from "~/ui/not-found";
6-
import { I18nProvider } from "~/i18n/i18n-context";
76
import { useThemeListener } from "@kobalte/solidbase/client";
87
import { usePace } from "@kobalte/solidbase/default-theme/pace.js";
98

@@ -12,10 +11,8 @@ export default function (props: RouteSectionProps) {
1211
usePace();
1312

1413
return (
15-
<I18nProvider>
16-
<ErrorBoundary fallback={() => <NotFound />}>
17-
<Layout>{props.children}</Layout>
18-
</ErrorBoundary>
19-
</I18nProvider>
14+
<ErrorBoundary fallback={() => <NotFound />}>
15+
<Layout>{props.children}</Layout>
16+
</ErrorBoundary>
2017
);
2118
}

osmium/src/env.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
interface ImportMetaEnv {
2+
readonly VITE_ORAMA_PROJECT_ID?: string;
3+
readonly VITE_ORAMA_PUBLIC_API_KEY?: string;
4+
}
5+
6+
interface ImportMeta {
7+
readonly env: ImportMetaEnv;
8+
}

osmium/src/frontmatter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export type RelativePageConfig =
3434
};
3535

3636
interface OsmiumThemeBaseFrontmatter {
37+
category?: string;
3738
sidebar?: boolean;
3839
footer?: boolean;
3940
toc?: boolean;

osmium/src/i18n/config.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

osmium/src/i18n/dictionaries/index.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

osmium/src/i18n/dictionaries/pt-br/ui.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

osmium/src/i18n/helpers.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

osmium/src/i18n/i18n-context.tsx

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)