mirror of
https://github.com/luminous-devs/lume.git
synced 2024-09-29 16:30:55 +00:00
chore: clean up
This commit is contained in:
parent
ed52105c02
commit
90f149b09c
2
apps/desktop2/.gitignore
vendored
2
apps/desktop2/.gitignore
vendored
@ -22,3 +22,5 @@ dist-ssr
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
|
||||
src/router.gen.ts
|
||||
|
@ -6,10 +6,10 @@ import React, { StrictMode } from "react";
|
||||
import ReactDOM from "react-dom/client";
|
||||
import { I18nextProvider } from "react-i18next";
|
||||
import "./app.css";
|
||||
import i18n from "./i18n";
|
||||
import i18n from "./locale";
|
||||
|
||||
// Import the generated route tree
|
||||
import { routeTree } from "./tree.gen";
|
||||
import { routeTree } from "./router.gen";
|
||||
|
||||
const queryClient = new QueryClient();
|
||||
const router = createRouter({
|
||||
@ -17,8 +17,6 @@ const router = createRouter({
|
||||
context: {
|
||||
queryClient,
|
||||
},
|
||||
defaultPreload: "intent",
|
||||
defaultPreloadStaleTime: 0,
|
||||
});
|
||||
|
||||
declare module "@tanstack/react-router" {
|
||||
|
@ -1,99 +0,0 @@
|
||||
/* prettier-ignore-start */
|
||||
|
||||
/* eslint-disable */
|
||||
|
||||
// @ts-nocheck
|
||||
|
||||
// noinspection JSUnusedGlobalSymbols
|
||||
|
||||
// This file is auto-generated by TanStack Router
|
||||
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
|
||||
// Import Routes
|
||||
|
||||
import { Route as rootRoute } from './routes/__root'
|
||||
import { Route as AppImport } from './routes/app'
|
||||
import { Route as IndexImport } from './routes/index'
|
||||
import { Route as LandingIndexImport } from './routes/landing/index'
|
||||
|
||||
// Create Virtual Routes
|
||||
|
||||
const AuthImportLazyImport = createFileRoute('/auth/import')()
|
||||
const AuthCreateLazyImport = createFileRoute('/auth/create')()
|
||||
const AppSpaceLazyImport = createFileRoute('/app/space')()
|
||||
|
||||
// Create/Update Routes
|
||||
|
||||
const AppRoute = AppImport.update({
|
||||
path: '/app',
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any)
|
||||
|
||||
const IndexRoute = IndexImport.update({
|
||||
path: '/',
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any)
|
||||
|
||||
const LandingIndexRoute = LandingIndexImport.update({
|
||||
path: '/landing/',
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any)
|
||||
|
||||
const AuthImportLazyRoute = AuthImportLazyImport.update({
|
||||
path: '/auth/import',
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any).lazy(() => import('./routes/auth/import.lazy').then((d) => d.Route))
|
||||
|
||||
const AuthCreateLazyRoute = AuthCreateLazyImport.update({
|
||||
path: '/auth/create',
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any).lazy(() => import('./routes/auth/create.lazy').then((d) => d.Route))
|
||||
|
||||
const AppSpaceLazyRoute = AppSpaceLazyImport.update({
|
||||
path: '/space',
|
||||
getParentRoute: () => AppRoute,
|
||||
} as any).lazy(() => import('./routes/app/space.lazy').then((d) => d.Route))
|
||||
|
||||
// Populate the FileRoutesByPath interface
|
||||
|
||||
declare module '@tanstack/react-router' {
|
||||
interface FileRoutesByPath {
|
||||
'/': {
|
||||
preLoaderRoute: typeof IndexImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
'/app': {
|
||||
preLoaderRoute: typeof AppImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
'/app/space': {
|
||||
preLoaderRoute: typeof AppSpaceLazyImport
|
||||
parentRoute: typeof AppImport
|
||||
}
|
||||
'/auth/create': {
|
||||
preLoaderRoute: typeof AuthCreateLazyImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
'/auth/import': {
|
||||
preLoaderRoute: typeof AuthImportLazyImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
'/landing/': {
|
||||
preLoaderRoute: typeof LandingIndexImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Create and export the route tree
|
||||
|
||||
export const routeTree = rootRoute.addChildren([
|
||||
IndexRoute,
|
||||
AppRoute.addChildren([AppSpaceLazyRoute]),
|
||||
AuthCreateLazyRoute,
|
||||
AuthImportLazyRoute,
|
||||
LandingIndexRoute,
|
||||
])
|
||||
|
||||
/* prettier-ignore-end */
|
@ -1,4 +1,6 @@
|
||||
import sharedConfig from "@lume/tailwindcss";
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
|
||||
import preset from "@lume/tailwindcss";
|
||||
|
||||
const config = {
|
||||
content: [
|
||||
@ -8,7 +10,7 @@ const config = {
|
||||
"../../packages/ui/**/*{.js,.ts,.jsx,.tsx}",
|
||||
"index.html",
|
||||
],
|
||||
presets: [sharedConfig],
|
||||
presets: [preset],
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"routesDirectory": "./src/routes",
|
||||
"generatedRouteTree": "./src/tree.gen.ts",
|
||||
"generatedRouteTree": "./src/router.gen.ts",
|
||||
"routeFileIgnorePrefix": "-",
|
||||
"quoteStyle": "single"
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { type CurrentAccount, Event, Keys, Metadata } from "@lume/types";
|
||||
import type { CurrentAccount, Event, Keys, Metadata } from "@lume/types";
|
||||
import { invoke } from "@tauri-apps/api/core";
|
||||
|
||||
export class Ark {
|
||||
|
@ -1,7 +1,6 @@
|
||||
export * from "./provider";
|
||||
export * from "./hooks/useEvent";
|
||||
export * from "./hooks/useProfile";
|
||||
export * from "./hooks/useRelayList";
|
||||
export * from "./components/user";
|
||||
export * from "./components/column";
|
||||
export * from "./components/note";
|
||||
|
@ -1,8 +1,10 @@
|
||||
import sharedConfig from "@lume/tailwindcss";
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
|
||||
import preset from "@lume/tailwindcss";
|
||||
|
||||
const config = {
|
||||
content: ["./src/**/*.{js,ts,jsx,tsx}"],
|
||||
presets: [sharedConfig],
|
||||
presets: [preset],
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
@ -13,10 +13,7 @@
|
||||
"@tailwindcss/forms": "^0.5.7",
|
||||
"@tailwindcss/typography": "^0.5.10",
|
||||
"tailwind-scrollbar": "^3.0.5",
|
||||
"tailwindcss": "^3.4.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@evilmartians/harmony": "^1.2.0",
|
||||
"tailwindcss": "^3.4.1",
|
||||
"tailwindcss-radix-colors": "^1.2.0"
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
|
||||
const config = {
|
||||
theme: {
|
||||
|
Loading…
Reference in New Issue
Block a user