axiodb 2.10.25 → 2.10.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/Document/eslint.config.js +0 -28
- package/Document/index.html +0 -31
- package/Document/package-lock.json +0 -4254
- package/Document/package.json +0 -35
- package/Document/postcss.config.js +0 -6
- package/Document/public/AXioDB.png +0 -0
- package/Document/src/App.tsx +0 -39
- package/Document/src/Assets/AXioDB.png +0 -0
- package/Document/src/components/content/AdvancedFeatures.tsx +0 -318
- package/Document/src/components/content/ApiReference.tsx +0 -319
- package/Document/src/components/content/Community.tsx +0 -203
- package/Document/src/components/content/Comparison.tsx +0 -227
- package/Document/src/components/content/CreateCollection.tsx +0 -59
- package/Document/src/components/content/CreateDatabase.tsx +0 -57
- package/Document/src/components/content/Features.tsx +0 -263
- package/Document/src/components/content/Installation.tsx +0 -67
- package/Document/src/components/content/Introduction.tsx +0 -107
- package/Document/src/components/content/MaintainersZone.tsx +0 -142
- package/Document/src/components/content/PainPoints.tsx +0 -126
- package/Document/src/components/content/Security.tsx +0 -137
- package/Document/src/components/content/Usage.tsx +0 -247
- package/Document/src/components/layout/Header.tsx +0 -154
- package/Document/src/components/layout/Layout.tsx +0 -91
- package/Document/src/components/layout/Sidebar.tsx +0 -185
- package/Document/src/components/ui/Button.tsx +0 -45
- package/Document/src/components/ui/CodeBlock.tsx +0 -41
- package/Document/src/context/ThemeContext.tsx +0 -71
- package/Document/src/hooks/useTheme.tsx +0 -12
- package/Document/src/index.css +0 -3
- package/Document/src/main.tsx +0 -10
- package/Document/src/styles/global.css +0 -18
- package/Document/src/vite-env.d.ts +0 -1
- package/Document/tailwind.config.js +0 -9
- package/Document/tsconfig.app.json +0 -24
- package/Document/tsconfig.node.json +0 -22
- package/Document/vite.config.ts +0 -40
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
interface ButtonProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
variant?: "primary" | "secondary" | "outline";
|
|
6
|
-
size?: "sm" | "md" | "lg";
|
|
7
|
-
onClick?: () => void;
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const Button: React.FC<ButtonProps> = ({
|
|
12
|
-
children,
|
|
13
|
-
variant = "primary",
|
|
14
|
-
size = "md",
|
|
15
|
-
onClick,
|
|
16
|
-
className = "",
|
|
17
|
-
}) => {
|
|
18
|
-
const baseClasses =
|
|
19
|
-
"inline-flex items-center justify-center rounded-md font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2";
|
|
20
|
-
|
|
21
|
-
const variantClasses = {
|
|
22
|
-
primary: "bg-blue-500 text-white hover:bg-blue-600 shadow-sm",
|
|
23
|
-
secondary:
|
|
24
|
-
"bg-gray-100 text-gray-900 hover:bg-gray-200 dark:bg-gray-700 dark:text-gray-100 dark:hover:bg-gray-600",
|
|
25
|
-
outline:
|
|
26
|
-
"border border-gray-300 bg-transparent text-gray-700 hover:bg-gray-50 dark:border-gray-600 dark:text-gray-300 dark:hover:bg-gray-800",
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
const sizeClasses = {
|
|
30
|
-
sm: "px-3 py-1.5 text-sm",
|
|
31
|
-
md: "px-4 py-2 text-base",
|
|
32
|
-
lg: "px-6 py-3 text-lg",
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
return (
|
|
36
|
-
<button
|
|
37
|
-
className={`${baseClasses} ${variantClasses[variant]} ${sizeClasses[size]} ${className}`}
|
|
38
|
-
onClick={onClick}
|
|
39
|
-
>
|
|
40
|
-
{children}
|
|
41
|
-
</button>
|
|
42
|
-
);
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export default Button;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
|
-
import { Check, Copy } from "lucide-react";
|
|
3
|
-
|
|
4
|
-
interface CodeBlockProps {
|
|
5
|
-
code: string;
|
|
6
|
-
language: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const CodeBlock: React.FC<CodeBlockProps> = ({ code, language }) => {
|
|
10
|
-
const [copied, setCopied] = useState(false);
|
|
11
|
-
|
|
12
|
-
const handleCopy = async () => {
|
|
13
|
-
await navigator.clipboard.writeText(code);
|
|
14
|
-
setCopied(true);
|
|
15
|
-
setTimeout(() => setCopied(false), 2000);
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<div className="relative group rounded-lg overflow-hidden my-6">
|
|
20
|
-
<div className="flex items-center justify-between px-4 py-2 bg-gray-800 text-gray-400">
|
|
21
|
-
<span className="text-sm font-mono">{language}</span>
|
|
22
|
-
<button
|
|
23
|
-
onClick={handleCopy}
|
|
24
|
-
className="text-gray-400 hover:text-white transition-colors p-1 rounded"
|
|
25
|
-
aria-label="Copy code"
|
|
26
|
-
>
|
|
27
|
-
{copied ? (
|
|
28
|
-
<Check size={18} className="text-green-400" />
|
|
29
|
-
) : (
|
|
30
|
-
<Copy size={18} />
|
|
31
|
-
)}
|
|
32
|
-
</button>
|
|
33
|
-
</div>
|
|
34
|
-
<pre className="overflow-x-auto p-4 bg-gray-900 text-white text-sm">
|
|
35
|
-
<code className="font-mono">{code}</code>
|
|
36
|
-
</pre>
|
|
37
|
-
</div>
|
|
38
|
-
);
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export default CodeBlock;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import React, { createContext, useState, useEffect } from "react";
|
|
2
|
-
|
|
3
|
-
type Theme = "light" | "dark";
|
|
4
|
-
|
|
5
|
-
interface ThemeContextType {
|
|
6
|
-
theme: Theme;
|
|
7
|
-
toggleTheme: () => void;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export const ThemeContext = createContext<ThemeContextType | undefined>(
|
|
11
|
-
undefined,
|
|
12
|
-
);
|
|
13
|
-
|
|
14
|
-
interface ThemeProviderProps {
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export const ThemeProvider: React.FC<ThemeProviderProps> = ({ children }) => {
|
|
19
|
-
const [theme, setTheme] = useState<Theme>(() => {
|
|
20
|
-
// Check for saved theme preference in localStorage
|
|
21
|
-
const savedTheme = localStorage.getItem("theme");
|
|
22
|
-
|
|
23
|
-
// Check for system preference if no saved preference
|
|
24
|
-
if (!savedTheme) {
|
|
25
|
-
return window.matchMedia("(prefers-color-scheme: dark)").matches
|
|
26
|
-
? "dark"
|
|
27
|
-
: "light";
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
return (savedTheme as Theme) || "light";
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
// Apply theme class to document
|
|
34
|
-
useEffect(() => {
|
|
35
|
-
const root = window.document.documentElement;
|
|
36
|
-
|
|
37
|
-
if (theme === "dark") {
|
|
38
|
-
root.classList.add("dark");
|
|
39
|
-
} else {
|
|
40
|
-
root.classList.remove("dark");
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// Save theme preference to localStorage
|
|
44
|
-
localStorage.setItem("theme", theme);
|
|
45
|
-
}, [theme]);
|
|
46
|
-
|
|
47
|
-
// Listen for system theme changes
|
|
48
|
-
useEffect(() => {
|
|
49
|
-
const mediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
|
|
50
|
-
|
|
51
|
-
const handleChange = (e: MediaQueryListEvent) => {
|
|
52
|
-
// Only update if user hasn't manually set a preference
|
|
53
|
-
if (!localStorage.getItem("theme")) {
|
|
54
|
-
setTheme(e.matches ? "dark" : "light");
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
mediaQuery.addEventListener("change", handleChange);
|
|
59
|
-
return () => mediaQuery.removeEventListener("change", handleChange);
|
|
60
|
-
}, []);
|
|
61
|
-
|
|
62
|
-
const toggleTheme = () => {
|
|
63
|
-
setTheme((prevTheme) => (prevTheme === "light" ? "dark" : "light"));
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
return (
|
|
67
|
-
<ThemeContext.Provider value={{ theme, toggleTheme }}>
|
|
68
|
-
{children}
|
|
69
|
-
</ThemeContext.Provider>
|
|
70
|
-
);
|
|
71
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { useContext } from "react";
|
|
2
|
-
import { ThemeContext } from "../context/ThemeContext";
|
|
3
|
-
|
|
4
|
-
export const useTheme = () => {
|
|
5
|
-
const context = useContext(ThemeContext);
|
|
6
|
-
|
|
7
|
-
if (!context) {
|
|
8
|
-
throw new Error("useTheme must be used within a ThemeProvider");
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
return context;
|
|
12
|
-
};
|
package/Document/src/index.css
DELETED
package/Document/src/main.tsx
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/* ...existing styles... */
|
|
2
|
-
@keyframes fade-in {
|
|
3
|
-
from {
|
|
4
|
-
opacity: 0;
|
|
5
|
-
transform: translateY(20px);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
to {
|
|
9
|
-
opacity: 1;
|
|
10
|
-
transform: translateY(0);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.animate-fade-in {
|
|
15
|
-
animation: fade-in 0.8s ease-out;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* ...existing styles... */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"useDefineForClassFields": true,
|
|
5
|
-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
6
|
-
"module": "ESNext",
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
|
|
9
|
-
/* Bundler mode */
|
|
10
|
-
"moduleResolution": "bundler",
|
|
11
|
-
"allowImportingTsExtensions": true,
|
|
12
|
-
"isolatedModules": true,
|
|
13
|
-
"moduleDetection": "force",
|
|
14
|
-
"noEmit": true,
|
|
15
|
-
"jsx": "react-jsx",
|
|
16
|
-
|
|
17
|
-
/* Linting */
|
|
18
|
-
"strict": true,
|
|
19
|
-
"noUnusedLocals": true,
|
|
20
|
-
"noUnusedParameters": true,
|
|
21
|
-
"noFallthroughCasesInSwitch": true
|
|
22
|
-
},
|
|
23
|
-
"include": ["src"]
|
|
24
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"lib": ["ES2023"],
|
|
5
|
-
"module": "ESNext",
|
|
6
|
-
"skipLibCheck": true,
|
|
7
|
-
|
|
8
|
-
/* Bundler mode */
|
|
9
|
-
"moduleResolution": "bundler",
|
|
10
|
-
"allowImportingTsExtensions": true,
|
|
11
|
-
"isolatedModules": true,
|
|
12
|
-
"moduleDetection": "force",
|
|
13
|
-
"noEmit": true,
|
|
14
|
-
|
|
15
|
-
/* Linting */
|
|
16
|
-
"strict": true,
|
|
17
|
-
"noUnusedLocals": true,
|
|
18
|
-
"noUnusedParameters": true,
|
|
19
|
-
"noFallthroughCasesInSwitch": true
|
|
20
|
-
},
|
|
21
|
-
"include": ["vite.config.ts"]
|
|
22
|
-
}
|
package/Document/vite.config.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from "vite";
|
|
2
|
-
import react from "@vitejs/plugin-react";
|
|
3
|
-
|
|
4
|
-
// https://vitejs.dev/config/
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
plugins: [react()],
|
|
7
|
-
optimizeDeps: {
|
|
8
|
-
exclude: ["lucide-react"],
|
|
9
|
-
},
|
|
10
|
-
cacheDir: ".vite",
|
|
11
|
-
assetsInclude: [
|
|
12
|
-
"**/*.jpeg",
|
|
13
|
-
"**/*.txt",
|
|
14
|
-
"**/*.png",
|
|
15
|
-
"**/*.svg",
|
|
16
|
-
"**/*.jpg, **/*.webp, **/*.ico, **/*.json, **/*.webmanifest, **/*.xml, **/*.pdf, **/*.txt, **/*.md, **/*.woff, **/*.woff2, **/*.ttf, **/*.otf, **/*.eot, **/*.wav, **/*.mp3, **/*.mp4, **/*.webm, **/*.ogg, **/*.m4a, **/*.aac, **/*.flac, **/*.oga, **/*.opus, **/*.svg, **/*.svgz, **/*.zip, **/*.gz, **/*.tgz, **/*.brotli, **/*.7z, **/*.rar, **/*.bz2, **/*.xz, **/*.pdf, **/*.epub, **/*.woff, **/*.woff2, **/*.ttf, **/*.otf, **/*.eot, **/*.wav, **/*.mp3, **/*.mp4, **/*.webm, **/*.ogg, **/*.m4a, **/*.aac, **/*.flac, **/*.oga, **/*.opus, **/*.svg, **/*.svgz, **/*.zip, **/*.gz, **/*.tgz, **/*.brotli, **/*.7z, **/*.rar, **/*.bz2, **/*.xz, **/*.pdf, **/*.epub, **/*.woff, **/*.woff2, **/*.ttf, **/*.otf, **/*.eot, **/*.wav, **/*.mp3, **/*.mp4, **/*.webm, **/*.ogg, **/*.m4a, **/*.aac, **/*.flac, **/*.oga, **/*.opus, **/*.svg, **/*.svgz, **/*.zip, **/*.gz, **/*.tgz, **/*.brotli, **/*.7z, **/*.rar, **/*.bz2, **/*.xz, **/*.pdf, **/*.epub",
|
|
17
|
-
],
|
|
18
|
-
base: "/",
|
|
19
|
-
mode: "production",
|
|
20
|
-
publicDir: "public",
|
|
21
|
-
build: {
|
|
22
|
-
outDir: "AxioDB_Docs",
|
|
23
|
-
emptyOutDir: true,
|
|
24
|
-
sourcemap: false,
|
|
25
|
-
minify: true,
|
|
26
|
-
ssrManifest: true,
|
|
27
|
-
modulePreload: true,
|
|
28
|
-
copyPublicDir: true,
|
|
29
|
-
cssCodeSplit: true,
|
|
30
|
-
manifest: true,
|
|
31
|
-
cssTarget: "es2015",
|
|
32
|
-
target: "es2015",
|
|
33
|
-
assetsDir: "assets",
|
|
34
|
-
chunkSizeWarningLimit: 100000,
|
|
35
|
-
cssMinify: true,
|
|
36
|
-
ssrEmitAssets: true,
|
|
37
|
-
write: true,
|
|
38
|
-
assetsInlineLimit: 5128,
|
|
39
|
-
},
|
|
40
|
-
});
|