-
Notifications
You must be signed in to change notification settings - Fork 6
Propositional Logic Response Area #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ashwin6-dev
wants to merge
20
commits into
lambda-feedback:main
Choose a base branch
from
ashwin6-dev:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 15 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
8d92173
implemented textarea with special symbols buttons
ashwin6-dev 3f1863b
fixed ResponseArea Loading Error by changing responseType to SANDBOX
HarrySu123 386f6c7
implemented drawing and photo mode, but preview not available yet (im…
HarrySu123 c886eda
implemented truth table ui
ashwin6-dev 3294edd
fixed answer updating issues and changed truth table to use dropdowns
ashwin6-dev 1fcfc9c
implemented wizard component with truth table
ashwin6-dev 9ada330
fixed truth table not showing issue by renaming index to SANDBOX
HarrySu123 784ceae
let user configure the table themselves
ashwin6-dev 613bdef
Merge branch 'main' of https://github.com/ashwin6-dev/prop-logic-resp…
ashwin6-dev 1a814df
removed omni input temporarily
ashwin6-dev 6cc6370
feat: done the wiring withthe frontend, certain schema might need cha…
HongleiGu c0ad390
feat: wizard contains marking parameters
ashwin6-dev 9bf9191
special characters keyboard fixed. now adds to cursor position
ashwin6-dev e20e41a
factored special characters keyboard out into its own component
ashwin6-dev 4bf2ae0
added ability to remove rows and cols from truth table
ashwin6-dev 33fffb0
added XOR to special characters
ashwin6-dev 1e3260a
removed package-lock.json
ashwin6-dev a2492e6
added yarn.lock to .gitignore
ashwin6-dev ff5ac18
only show truth table button if answer expects it
ashwin6-dev 99ca3e1
restored original yarn.lock
ashwin6-dev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this file be commited? |
Empty file.
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why was this workaround necessary? This would be good to feedback. |
This file contains hidden or 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,80 +1,48 @@ | ||
| import { Fira_Sans, Fira_Mono, Lato, Roboto } from 'next/font/google' | ||
| // Vite-compatible font loader (replaces next/font/google) | ||
| // Since this is a Vite build, we can't use next/font/google which requires Next.js compiler | ||
| // Instead, we create compatible objects and inject Google Fonts via CSS | ||
|
|
||
| export const roboto = Roboto({ | ||
| subsets: ['latin'], | ||
| weight: ['400', '700'], | ||
| style: ['normal', 'italic'], | ||
| fallback: [ | ||
| '-apple-system', | ||
| 'BlinkMacSystemFont', | ||
| 'Segoe UI', | ||
| 'Roboto', | ||
| 'Helvetica Neue', | ||
| 'Arial', | ||
| 'sans-serif', | ||
| 'Apple Color Emoji', | ||
| 'Segoe UI Emoji', | ||
| 'Segoe UI Symbol', | ||
| ], | ||
| variable: '--font-roboto', | ||
| preload: false, | ||
| }) | ||
| // Helper function to create a font object compatible with next/font/google structure | ||
| function createFontObject(fontFamily: string, fallback: string[] = []) { | ||
| const fallbackStr = fallback.length > 0 ? `, ${fallback.join(', ')}` : '' | ||
| return { | ||
| style: { | ||
| fontFamily: `"${fontFamily}"${fallbackStr}`, | ||
| }, | ||
| variable: `--font-${fontFamily.toLowerCase().replace(/\s+/g, '-')}`, | ||
| } | ||
| } | ||
|
|
||
| export const firaSans = Fira_Sans({ | ||
| subsets: ['latin'], | ||
| weight: ['300', '400', '500', '600', '700'], | ||
| style: ['normal', 'italic'], | ||
| fallback: [ | ||
| '-apple-system', | ||
| 'BlinkMacSystemFont', | ||
| 'Segoe UI', | ||
| 'Roboto', | ||
| 'Helvetica Neue', | ||
| 'Arial', | ||
| 'sans-serif', | ||
| 'Apple Color Emoji', | ||
| 'Segoe UI Emoji', | ||
| 'Segoe UI Symbol', | ||
| ], | ||
| variable: '--font-fira-sans', | ||
| preload: false, | ||
| }) | ||
| // Inject Google Fonts CSS if not already injected | ||
| if (typeof document !== 'undefined') { | ||
| const fontLinkId = 'google-fonts-vite-loader' | ||
| if (!document.getElementById(fontLinkId)) { | ||
| const link = document.createElement('link') | ||
| link.id = fontLinkId | ||
| link.rel = 'stylesheet' | ||
| link.href = | ||
| 'https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Fira+Sans:wght@300;400;500;600;700&family=Fira+Mono:wght@400&family=Lato:wght@400&display=swap' | ||
| document.head.appendChild(link) | ||
| } | ||
| } | ||
|
|
||
| export const firaMono = Fira_Mono({ | ||
| subsets: ['latin'], | ||
| weight: ['400'], | ||
| fallback: [ | ||
| '-apple-system', | ||
| 'BlinkMacSystemFont', | ||
| 'Segoe UI', | ||
| 'Roboto', | ||
| 'Helvetica Neue', | ||
| 'Arial', | ||
| 'sans-serif', | ||
| 'Apple Color Emoji', | ||
| 'Segoe UI Emoji', | ||
| 'Segoe UI Symbol', | ||
| ], | ||
| variable: '--font-fira-mono', | ||
| preload: false, | ||
| }) | ||
| const robotoFallback = [ | ||
| '-apple-system', | ||
| 'BlinkMacSystemFont', | ||
| 'Segoe UI', | ||
| 'Roboto', | ||
| 'Helvetica Neue', | ||
| 'Arial', | ||
| 'sans-serif', | ||
| 'Apple Color Emoji', | ||
| 'Segoe UI Emoji', | ||
| 'Segoe UI Symbol', | ||
| ] | ||
|
|
||
| export const lato = Lato({ | ||
| subsets: ['latin'], | ||
| weight: ['400'], | ||
| style: ['normal', 'italic'], | ||
| fallback: [ | ||
| '-apple-system', | ||
| 'BlinkMacSystemFont', | ||
| 'Segoe UI', | ||
| 'Roboto', | ||
| 'Helvetica Neue', | ||
| 'Arial', | ||
| 'sans-serif', | ||
| 'Apple Color Emoji', | ||
| 'Segoe UI Emoji', | ||
| 'Segoe UI Symbol', | ||
| ], | ||
| variable: '--font-lato', | ||
| preload: false, | ||
| }) | ||
| export const roboto = createFontObject('Roboto', robotoFallback) | ||
|
|
||
| export const firaSans = createFontObject('Fira Sans', robotoFallback) | ||
|
|
||
| export const firaMono = createFontObject('Fira Mono', robotoFallback) | ||
|
|
||
| export const lato = createFontObject('Lato', robotoFallback) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be commited as a change?