-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved migrations to tle extension. updated migration to use tle
- Loading branch information
1 parent
6506e9b
commit c4a809a
Showing
51 changed files
with
296 additions
and
782 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
import withMarkdoc from '@markdoc/next.js' | ||
import withSearch from './src/markdoc/search.mjs' | ||
import withMarkdoc from '@markdoc/next.js'; | ||
import withSearch from './src/markdoc/search.mjs'; | ||
|
||
const isProd = process.env.NODE_ENV === 'production'; | ||
|
||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
assetPrefix: isProd ? 'https://docs.elwood.software' : undefined, | ||
pageExtensions: ['js', 'jsx', 'md', 'ts', 'tsx'], | ||
} | ||
}; | ||
|
||
export default withSearch( | ||
withMarkdoc({ schemaPath: './src/markdoc' })(nextConfig), | ||
) | ||
withMarkdoc({schemaPath: './src/markdoc'})(nextConfig), | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** @type {import("eslint").Linter.Config} */ | ||
module.exports = { | ||
extends: ['@elwood/eslint-config/next.js'], | ||
parser: '@typescript-eslint/parser', | ||
ignorePatterns: ['next.config.mjs'], | ||
parserOptions: { | ||
project: true, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/image-types/global" /> | ||
|
||
// NOTE: This file should not be edited | ||
// see https://nextjs.org/docs/basic-features/typescript for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** @type {import('next').NextConfig} */ | ||
export default { | ||
reactStrictMode: true, | ||
transpilePackages: [ | ||
'@elwood/common', | ||
'@elwood/react', | ||
'@elwood/js', | ||
'@elwood/ui', | ||
], | ||
webpack(config) { | ||
config.resolve.alias.canvas = false; | ||
return config; | ||
}, | ||
async rewrites() { | ||
return [ | ||
{ | ||
source: '/db/latest.json', | ||
destination: | ||
'https://github.com/elwood-software/db/raw/main/versions/latest.json', | ||
}, | ||
{ | ||
source: '/db/v:version', | ||
destination: | ||
'https://github.com/elwood-software/db/raw/main/versions/:version', | ||
}, | ||
{ | ||
source: '/docs/', | ||
destination: 'https://docs.elwood.software/docs/', | ||
}, | ||
{ | ||
source: '/docs/:path*/', | ||
destination: 'https://docs.elwood.software/docs/:path*/', | ||
}, | ||
]; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"name": "@elwood/apps-www", | ||
"version": "0.0.0", | ||
"private": true, | ||
"scripts": { | ||
"build": "next build", | ||
"clean": "rm -rf .next", | ||
"dev": "next dev -p 3001", | ||
"lint": "next lint", | ||
"type-check": "tsc --noEmit", | ||
"start": "next start" | ||
}, | ||
"dependencies": { | ||
"@elwood/common": "workspace:*", | ||
"@elwood/ui": "workspace:*", | ||
"@supabase/ssr": "^0.3.0", | ||
"autoprefixer": "^10.4.19", | ||
"geist": "^1.3.0", | ||
"next": "^14.2.3", | ||
"postcss": "^8.4.38", | ||
"react": "^18.3.1", | ||
"react-dom": "^18.3.1", | ||
"react-use": "^17.5.0", | ||
"tailwindcss": "^3.4.3", | ||
"zod": "^3.23.8" | ||
}, | ||
"devDependencies": { | ||
"@elwood/eslint-config": "workspace:*", | ||
"@elwood/typescript-config": "workspace:*", | ||
"@next/eslint-plugin-next": "^14.2.3", | ||
"@types/node": "^20.12.12", | ||
"@types/react": "^18.3.2", | ||
"@types/react-dom": "^18.3.0", | ||
"prettier-plugin-tailwindcss": "^0.5.14", | ||
"typescript": "^5.4.5" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('@elwood/ui/postcss.config.js'); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import type {PropsWithChildren} from 'react'; | ||
import {type Metadata} from 'next'; | ||
import {cookies} from 'next/headers'; | ||
import {ElwoodThemeProvider} from '@elwood/ui'; | ||
|
||
import './global.css'; | ||
import '@elwood/ui/style.css'; | ||
|
||
export const metadata: Metadata = { | ||
title: 'Elwood', | ||
}; | ||
|
||
export default function RootLayout(props: PropsWithChildren): JSX.Element { | ||
const theme = cookies().get('system-theme')?.value ?? ''; | ||
const validThemes = ['light', 'dark']; | ||
const themeClassName = validThemes.includes(theme) ? theme : ''; | ||
|
||
return ( | ||
<html lang="en" suppressHydrationWarning> | ||
<body | ||
className={`overflow-hidden w-screen h-screen text-foreground bg-background ${themeClassName}`} | ||
data-color-mode={themeClassName} | ||
data-color-server-theme={theme}> | ||
<ElwoodThemeProvider>{props.children}</ElwoodThemeProvider> | ||
</body> | ||
</html> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import {Logo, Button} from '@elwood/ui'; | ||
|
||
export default function Page() { | ||
return ( | ||
<div className="w-screen h-screen flex flex-col items-center justify-center"> | ||
<h1 className="size-1/4"> | ||
<Logo className="size-full fill-current" /> | ||
<span className="sr-only">Elwood</span> | ||
</h1> | ||
|
||
<h2 className="mt-12 font-bold text-2xl"> | ||
Open source Dropbox alternative | ||
</h2> | ||
|
||
<div className="flex items-center space-x-3 mt-6"> | ||
<Button variant="outline" href="/docs"> | ||
Docs | ||
</Button> | ||
<Button variant="outline" href="https://github.elwood.software"> | ||
Github | ||
</Button> | ||
<Button variant="outline" href="https://discord.elwood.software"> | ||
Discord | ||
</Button> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const {theme, plugins} = require('@elwood/ui/tailwind.config.js'); | ||
const {resolve, dirname} = require('path'); | ||
|
||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
content: [ | ||
resolve( | ||
dirname(require.resolve('@elwood/react')), | ||
'./**/*.{js,ts,jsx,tsx,mdx}', | ||
), | ||
resolve( | ||
dirname(require.resolve('@elwood/ui')), | ||
'./**/*.{js,ts,jsx,tsx,mdx}', | ||
), | ||
'./src/**/*.{js,ts,jsx,tsx,mdx}', | ||
], | ||
theme, | ||
plugins: [...plugins], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"exclude": ["node_modules", "next.config.mjs"], | ||
"extends": "@elwood/typescript-config/nextjs.json", | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"plugins": [ | ||
{ | ||
"name": "next" | ||
} | ||
], | ||
"paths": { | ||
"@/*": ["./src/*"] | ||
} | ||
}, | ||
"include": ["src", "next-env.d.ts", ".next/types/**/*.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": ["//"], | ||
"globalEnv": [], | ||
"pipeline": { | ||
"build": { | ||
"outputs": [".next/**", "!.next/cache/**"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
"prettier-plugin-tailwindcss": "^0.5.14", | ||
"turbo": "latest" | ||
}, | ||
"packageManager": "[email protected].0", | ||
"packageManager": "[email protected].1", | ||
"engines": { | ||
"node": ">=20" | ||
}, | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.