-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
493 additions
and
240 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,4 +1,5 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true | ||
"singleQuote": true, | ||
"tabWidth": 4 | ||
} |
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,34 +1,36 @@ | ||
import type { Metadata } from "next"; | ||
import { Geist, Geist_Mono } from "next/font/google"; | ||
import "./globals.css"; | ||
import { FloatingMenu } from '@/components/FloatingMenu' | ||
import type { Metadata } from 'next' | ||
import { Geist, Geist_Mono } from 'next/font/google' | ||
import './globals.css' | ||
|
||
const geistSans = Geist({ | ||
variable: "--font-geist-sans", | ||
subsets: ["latin"], | ||
}); | ||
variable: '--font-geist-sans', | ||
subsets: ['latin'] | ||
}) | ||
|
||
const geistMono = Geist_Mono({ | ||
variable: "--font-geist-mono", | ||
subsets: ["latin"], | ||
}); | ||
variable: '--font-geist-mono', | ||
subsets: ['latin'] | ||
}) | ||
|
||
export const metadata: Metadata = { | ||
title: "Create Next App", | ||
description: "Generated by create next app", | ||
}; | ||
title: 'Create Next App', | ||
description: 'Generated by create next app' | ||
} | ||
|
||
export default function RootLayout({ | ||
children, | ||
children | ||
}: Readonly<{ | ||
children: React.ReactNode; | ||
children: React.ReactNode; | ||
}>) { | ||
return ( | ||
<html lang="en"> | ||
<body | ||
className={`${geistSans.variable} ${geistMono.variable} antialiased`} | ||
> | ||
{children} | ||
</body> | ||
</html> | ||
); | ||
return ( | ||
<html lang='en'> | ||
<body | ||
className={ `${ geistSans.variable } ${ geistMono.variable } antialiased` } | ||
> | ||
{ children } | ||
<FloatingMenu /> | ||
</body> | ||
</html> | ||
) | ||
} |
File renamed without changes.
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 @@ | ||
export const Icons = { | ||
Settings: (props: React.ComponentProps<'svg'>) => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
stroke="currentColor" | ||
className="h-5 w-5" | ||
{...props} | ||
> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="2" | ||
d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" | ||
/> | ||
</svg> | ||
), | ||
} |
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,126 @@ | ||
import { StreamLanguage } from '@codemirror/language' | ||
|
||
export const languages = [ | ||
{ | ||
name: 'Python', | ||
extension: () => | ||
import('@codemirror/legacy-modes/mode/python').then(({ python }) => | ||
StreamLanguage.define(python) | ||
) | ||
}, | ||
{ | ||
name: 'C#', | ||
extension: () => | ||
import('@codemirror/legacy-modes/mode/clike').then(({ csharp }) => | ||
StreamLanguage.define(csharp) | ||
) | ||
}, | ||
{ | ||
name: 'C++', | ||
extension: () => | ||
import('@codemirror/legacy-modes/mode/clike').then(({ cpp }) => | ||
StreamLanguage.define(cpp) | ||
) | ||
}, | ||
{ | ||
name: 'C', | ||
extension: () => | ||
import('@codemirror/legacy-modes/mode/clike').then(({ c }) => | ||
StreamLanguage.define(c) | ||
) | ||
}, | ||
{ | ||
name: 'JavaScript', | ||
extension: () => | ||
import('@codemirror/legacy-modes/mode/javascript').then( | ||
({ javascript }) => StreamLanguage.define(javascript) | ||
) | ||
}, | ||
{ | ||
name: 'TypeScript', | ||
extension: () => | ||
import('@codemirror/legacy-modes/mode/javascript').then( | ||
({ typescript }) => StreamLanguage.define(typescript) | ||
) | ||
}, | ||
{ | ||
name: 'Kotlin', | ||
extension: () => | ||
import('@codemirror/legacy-modes/mode/clike').then(({ kotlin }) => | ||
StreamLanguage.define(kotlin) | ||
) | ||
}, | ||
{ | ||
name: 'Java', | ||
extension: () => | ||
import('@codemirror/legacy-modes/mode/clike').then(({ java }) => | ||
StreamLanguage.define(java) | ||
) | ||
}, | ||
{ | ||
name: 'PHP', | ||
extension: () => | ||
import('@codemirror/lang-php').then(({ php }) => php()) | ||
}, | ||
{ | ||
name: 'Swift', | ||
extension: () => | ||
import('@codemirror/legacy-modes/mode/swift').then(({ swift }) => | ||
StreamLanguage.define(swift) | ||
) | ||
}, | ||
{ | ||
name: 'Dart', | ||
extension: () => | ||
import('@codemirror/legacy-modes/mode/clike').then(({ dart }) => | ||
StreamLanguage.define(dart) | ||
) | ||
}, | ||
{ | ||
name: 'Go', | ||
extension: () => | ||
import('@codemirror/legacy-modes/mode/go').then(({ go }) => | ||
StreamLanguage.define(go) | ||
) | ||
}, | ||
{ | ||
name: 'Ruby', | ||
extension: () => | ||
import('@codemirror/legacy-modes/mode/ruby').then(({ ruby }) => | ||
StreamLanguage.define(ruby) | ||
) | ||
}, | ||
{ | ||
name: 'Scala', | ||
extension: () => | ||
import('@codemirror/legacy-modes/mode/clike').then(({ scala }) => | ||
StreamLanguage.define(scala) | ||
) | ||
}, | ||
{ | ||
name: 'Rust', | ||
extension: () => | ||
import('@codemirror/legacy-modes/mode/rust').then(({ rust }) => | ||
StreamLanguage.define(rust) | ||
) | ||
}, | ||
{ | ||
name: 'Racket', | ||
extension: () => | ||
import('@codemirror/legacy-modes/mode/scheme').then(({ scheme }) => | ||
StreamLanguage.define(scheme) | ||
) | ||
}, | ||
{ | ||
name: 'Erlang', | ||
extension: () => | ||
import('@codemirror/legacy-modes/mode/erlang').then(({ erlang }) => | ||
StreamLanguage.define(erlang) | ||
) | ||
}, | ||
{ | ||
name: 'Elixir', | ||
extension: () => | ||
import('codemirror-lang-elixir').then(({ elixir }) => elixir()) | ||
} | ||
] |
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,34 @@ | ||
export default themes = [ | ||
'cupcake', | ||
'dark', | ||
'light', | ||
'bumblebee', | ||
'emerald', | ||
'corporate', | ||
'synthwave', | ||
'retro', | ||
'cyberpunk', | ||
'valentine', | ||
'halloween', | ||
'garden', | ||
'forest', | ||
'aqua', | ||
'lofi', | ||
'pastel', | ||
'fantasy', | ||
'wireframe', | ||
'black', | ||
'luxury', | ||
'dracula', | ||
'cmyk', | ||
'autumn', | ||
'business', | ||
'acid', | ||
'lemonade', | ||
'night', | ||
'coffee', | ||
'winter', | ||
'dim', | ||
'nord', | ||
'sunset', | ||
] |
Oops, something went wrong.