mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
updated ui/client components, refactored deps
This commit is contained in:
15
app/build.ts
15
app/build.ts
@@ -76,12 +76,7 @@ await tsup.build({
|
|||||||
minify,
|
minify,
|
||||||
sourcemap,
|
sourcemap,
|
||||||
watch,
|
watch,
|
||||||
entry: [
|
entry: ["src/ui/index.ts", "src/ui/client/index.ts", "src/ui/main.css", "src/ui/styles.css"],
|
||||||
"src/ui/index.ts",
|
|
||||||
"src/ui/client/index.ts",
|
|
||||||
"src/ui/main.css",
|
|
||||||
"src/ui/styles.css"
|
|
||||||
],
|
|
||||||
outDir: "dist/ui",
|
outDir: "dist/ui",
|
||||||
external: [
|
external: [
|
||||||
"bun:test",
|
"bun:test",
|
||||||
@@ -90,19 +85,21 @@ await tsup.build({
|
|||||||
"react/jsx-runtime",
|
"react/jsx-runtime",
|
||||||
"react/jsx-dev-runtime",
|
"react/jsx-dev-runtime",
|
||||||
"use-sync-external-store",
|
"use-sync-external-store",
|
||||||
/codemirror/
|
/codemirror/,
|
||||||
|
"@xyflow/react",
|
||||||
|
"@mantine/core"
|
||||||
],
|
],
|
||||||
metafile: true,
|
metafile: true,
|
||||||
platform: "browser",
|
platform: "browser",
|
||||||
format: ["esm"],
|
format: ["esm"],
|
||||||
splitting: true,
|
splitting: false,
|
||||||
|
bundle: true,
|
||||||
treeshake: true,
|
treeshake: true,
|
||||||
loader: {
|
loader: {
|
||||||
".svg": "dataurl"
|
".svg": "dataurl"
|
||||||
},
|
},
|
||||||
esbuildOptions: (options) => {
|
esbuildOptions: (options) => {
|
||||||
options.logLevel = "silent";
|
options.logLevel = "silent";
|
||||||
options.chunkNames = "chunks/[name]-[hash]";
|
|
||||||
},
|
},
|
||||||
onSuccess: async () => {
|
onSuccess: async () => {
|
||||||
delayTypes();
|
delayTypes();
|
||||||
|
|||||||
@@ -49,7 +49,9 @@
|
|||||||
"@uiw/react-codemirror": "^4.23.6",
|
"@uiw/react-codemirror": "^4.23.6",
|
||||||
"@codemirror/lang-html": "^6.4.9",
|
"@codemirror/lang-html": "^6.4.9",
|
||||||
"@codemirror/lang-json": "^6.0.1",
|
"@codemirror/lang-json": "^6.0.1",
|
||||||
"@codemirror/lang-liquid": "^6.2.1"
|
"@codemirror/lang-liquid": "^6.2.1",
|
||||||
|
"@xyflow/react": "^12.3.2",
|
||||||
|
"@mantine/core": "^7.13.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@aws-sdk/client-s3": "^3.613.0",
|
"@aws-sdk/client-s3": "^3.613.0",
|
||||||
@@ -60,7 +62,6 @@
|
|||||||
"@hono/zod-validator": "^0.4.1",
|
"@hono/zod-validator": "^0.4.1",
|
||||||
"@hookform/resolvers": "^3.9.1",
|
"@hookform/resolvers": "^3.9.1",
|
||||||
"@libsql/kysely-libsql": "^0.4.1",
|
"@libsql/kysely-libsql": "^0.4.1",
|
||||||
"@mantine/core": "^7.13.4",
|
|
||||||
"@mantine/hooks": "^7.13.4",
|
"@mantine/hooks": "^7.13.4",
|
||||||
"@mantine/modals": "^7.13.4",
|
"@mantine/modals": "^7.13.4",
|
||||||
"@mantine/notifications": "^7.13.5",
|
"@mantine/notifications": "^7.13.5",
|
||||||
@@ -71,7 +72,6 @@
|
|||||||
"@types/react": "^18.3.12",
|
"@types/react": "^18.3.12",
|
||||||
"@types/react-dom": "^18.3.1",
|
"@types/react-dom": "^18.3.1",
|
||||||
"@vitejs/plugin-react": "^4.3.3",
|
"@vitejs/plugin-react": "^4.3.3",
|
||||||
"@xyflow/react": "^12.3.2",
|
|
||||||
"autoprefixer": "^10.4.20",
|
"autoprefixer": "^10.4.20",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"esbuild-postcss": "^0.0.4",
|
"esbuild-postcss": "^0.0.4",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { AuthActionResponse } from "auth/api/AuthController";
|
import type { AuthActionResponse } from "auth/api/AuthController";
|
||||||
import type { AppAuthSchema, AppAuthStrategies } from "auth/auth-schema";
|
import type { AppAuthSchema } from "auth/auth-schema";
|
||||||
import type { AuthResponse, SafeUser, Strategy } from "auth/authenticate/Authenticator";
|
import type { AuthResponse, SafeUser, Strategy } from "auth/authenticate/Authenticator";
|
||||||
import { type BaseModuleApiOptions, ModuleApi } from "modules/ModuleApi";
|
import { type BaseModuleApiOptions, ModuleApi } from "modules/ModuleApi";
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { type PrimaryFieldType, isDebug } from "core";
|
import type { PrimaryFieldType } from "core";
|
||||||
import { encodeSearch } from "core/utils";
|
import { isDebug } from "core/env";
|
||||||
|
import { encodeSearch } from "core/utils/reqres";
|
||||||
|
|
||||||
export type { PrimaryFieldType };
|
export type { PrimaryFieldType };
|
||||||
export type BaseModuleApiOptions = {
|
export type BaseModuleApiOptions = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Api, type ApiOptions, type TApiUser } from "Api";
|
import { Api, type ApiOptions, type TApiUser } from "Api";
|
||||||
import { createContext, useContext, useEffect, useState } from "react";
|
import { createContext, useContext } from "react";
|
||||||
|
|
||||||
const ClientContext = createContext<{ baseUrl: string; api: Api }>({
|
const ClientContext = createContext<{ baseUrl: string; api: Api }>({
|
||||||
baseUrl: undefined
|
baseUrl: undefined
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import type { DB, PrimaryFieldType } from "core";
|
import type { DB, PrimaryFieldType } from "core";
|
||||||
import { encodeSearch, objectTransform } from "core/utils";
|
import { objectTransform } from "core/utils/objects";
|
||||||
import type { EntityData, RepoQuery, RepoQueryIn } from "data";
|
import { encodeSearch } from "core/utils/reqres";
|
||||||
|
import type { EntityData, RepoQueryIn } from "data";
|
||||||
import type { ModuleApi, ResponseObject } from "modules/ModuleApi";
|
import type { ModuleApi, ResponseObject } from "modules/ModuleApi";
|
||||||
import useSWR, { type SWRConfiguration, mutate } from "swr";
|
import useSWR, { type SWRConfiguration, mutate } from "swr";
|
||||||
import { type Api, useApi } from "ui/client";
|
import { type Api, useApi } from "ui/client";
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { Api, type AuthState } from "Api";
|
import type { AuthState } from "Api";
|
||||||
import type { AuthResponse } from "auth";
|
import type { AuthResponse } from "auth";
|
||||||
import type { AppAuthSchema } from "auth/auth-schema";
|
import { useState } from "react";
|
||||||
import { useEffect, useState } from "react";
|
|
||||||
import { useApi, useInvalidate } from "ui/client";
|
import { useApi, useInvalidate } from "ui/client";
|
||||||
|
|
||||||
type LoginData = {
|
type LoginData = {
|
||||||
|
|||||||
Reference in New Issue
Block a user