deesse 0.1.23 → 0.2.0
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/.turbo/turbo-build.log +4 -0
- package/.turbo/turbo-type-check.log +4 -0
- package/dist/config/define.d.ts +6 -2
- package/dist/config/define.d.ts.map +1 -0
- package/dist/config/define.js +4 -11
- package/dist/config/define.js.map +1 -0
- package/dist/config/index.d.ts +3 -2
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +2 -18
- package/dist/config/index.js.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -19
- package/dist/index.js.map +1 -0
- package/package.json +14 -53
- package/src/config/define.ts +9 -0
- package/src/config/index.ts +2 -0
- package/src/index.ts +4 -0
- package/tsconfig.json +11 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/dist/auth/index.d.ts +0 -3
- package/dist/auth/index.js +0 -19
- package/dist/auth/react/index.d.ts +0 -688
- package/dist/auth/react/index.js +0 -5
- package/dist/auth/server.d.ts +0 -1168
- package/dist/auth/server.js +0 -13
- package/dist/config/types.d.ts +0 -14
- package/dist/config/types.js +0 -2
- package/dist/plugins/admin/define.d.ts +0 -5
- package/dist/plugins/admin/define.js +0 -19
- package/dist/plugins/admin/index.d.ts +0 -2
- package/dist/plugins/admin/index.js +0 -18
- package/dist/plugins/admin/types.d.ts +0 -18
- package/dist/plugins/admin/types.js +0 -2
- package/dist/plugins/define.d.ts +0 -2
- package/dist/plugins/define.js +0 -7
- package/dist/plugins/index.d.ts +0 -3
- package/dist/plugins/index.js +0 -19
- package/dist/plugins/types.d.ts +0 -8
- package/dist/plugins/types.js +0 -2
package/dist/auth/server.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createAuth = void 0;
|
|
4
|
-
const better_auth_1 = require("better-auth");
|
|
5
|
-
const drizzle_1 = require("better-auth/adapters/drizzle");
|
|
6
|
-
const plugins_1 = require("better-auth/plugins");
|
|
7
|
-
const createAuth = (config) => (0, better_auth_1.betterAuth)({
|
|
8
|
-
database: (0, drizzle_1.drizzleAdapter)(config.database, { provider: "pg" }),
|
|
9
|
-
...config.auth,
|
|
10
|
-
plugins: [(0, plugins_1.admin)()],
|
|
11
|
-
secret: process.env.DEESSE_SECRET,
|
|
12
|
-
});
|
|
13
|
-
exports.createAuth = createAuth;
|
package/dist/config/types.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Collection } from "@deessejs/collections";
|
|
2
|
-
import { BetterAuthOptions } from "better-auth";
|
|
3
|
-
import { drizzle as createDrizzle } from "drizzle-orm/node-postgres";
|
|
4
|
-
import { createAuth } from "../auth";
|
|
5
|
-
import { Plugin } from "../plugins/types";
|
|
6
|
-
export type Config = {
|
|
7
|
-
database: ReturnType<typeof createDrizzle>;
|
|
8
|
-
auth?: Omit<BetterAuthOptions, "secret" | "database">;
|
|
9
|
-
plugins?: Plugin[];
|
|
10
|
-
collections?: Collection[];
|
|
11
|
-
};
|
|
12
|
-
export type FinalConfig = Config & {
|
|
13
|
-
auth: ReturnType<typeof createAuth>;
|
|
14
|
-
};
|
package/dist/config/types.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Page, SidebarGroup, SidebarMenu, SidebarSubmenu } from "./types";
|
|
2
|
-
export declare const sidebarGroup: (group: SidebarGroup) => SidebarGroup;
|
|
3
|
-
export declare const sidebarMenu: (menu: SidebarMenu) => SidebarMenu;
|
|
4
|
-
export declare const sidebarSubmenu: (submenu: SidebarSubmenu) => SidebarSubmenu;
|
|
5
|
-
export declare const page: (page: Page) => Page;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.page = exports.sidebarSubmenu = exports.sidebarMenu = exports.sidebarGroup = void 0;
|
|
4
|
-
const sidebarGroup = (group) => {
|
|
5
|
-
return group;
|
|
6
|
-
};
|
|
7
|
-
exports.sidebarGroup = sidebarGroup;
|
|
8
|
-
const sidebarMenu = (menu) => {
|
|
9
|
-
return menu;
|
|
10
|
-
};
|
|
11
|
-
exports.sidebarMenu = sidebarMenu;
|
|
12
|
-
const sidebarSubmenu = (submenu) => {
|
|
13
|
-
return submenu;
|
|
14
|
-
};
|
|
15
|
-
exports.sidebarSubmenu = sidebarSubmenu;
|
|
16
|
-
const page = (page) => {
|
|
17
|
-
return page;
|
|
18
|
-
};
|
|
19
|
-
exports.page = page;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./define"), exports);
|
|
18
|
-
__exportStar(require("./types"), exports);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { LucideIcon } from 'lucide-react';
|
|
2
|
-
export type SidebarGroup = {
|
|
3
|
-
label: string;
|
|
4
|
-
collapsible: boolean;
|
|
5
|
-
children: SidebarMenu[];
|
|
6
|
-
};
|
|
7
|
-
export type SidebarMenu = {
|
|
8
|
-
children: (SidebarSubmenu | Page)[];
|
|
9
|
-
};
|
|
10
|
-
export type SidebarSubmenu = {
|
|
11
|
-
children: Page[];
|
|
12
|
-
};
|
|
13
|
-
export type Page = {
|
|
14
|
-
label: string;
|
|
15
|
-
href: string;
|
|
16
|
-
icon: LucideIcon;
|
|
17
|
-
content: React.ReactNode;
|
|
18
|
-
};
|
package/dist/plugins/define.d.ts
DELETED
package/dist/plugins/define.js
DELETED
package/dist/plugins/index.d.ts
DELETED
package/dist/plugins/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./define"), exports);
|
|
18
|
-
__exportStar(require("./types"), exports);
|
|
19
|
-
__exportStar(require("./admin"), exports);
|
package/dist/plugins/types.d.ts
DELETED
package/dist/plugins/types.js
DELETED