-
Notifications
You must be signed in to change notification settings - Fork 61.2k
Develop interview #6472
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
a951273629
wants to merge
3
commits into
ChatGPTNextWeb:main
Choose a base branch
from
a951273629:develop_interview
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
Develop interview #6472
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
.voiceRecognitionContainer { | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
max-width: 800px; | ||
margin: 0 auto; | ||
padding: 20px; | ||
background-color: #1e1e1e; | ||
border-radius: 10px; | ||
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); | ||
color: #ffffff; | ||
} | ||
|
||
.title { | ||
text-align: center; | ||
margin-bottom: 20px; | ||
font-size: 24px; | ||
} | ||
|
||
.statusContainer { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.statusIndicator { | ||
display: flex; | ||
align-items: center; | ||
background-color: rgba(0, 0, 0, 0.5); | ||
padding: 8px 16px; | ||
border-radius: 20px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.statusDot { | ||
width: 12px; | ||
height: 12px; | ||
border-radius: 50%; | ||
margin-right: 10px; | ||
|
||
&.idle { | ||
background-color: #888888; | ||
} | ||
|
||
&.recording { | ||
background-color: #ff9800; | ||
animation: pulse 1.5s infinite; | ||
} | ||
|
||
&.training { | ||
background-color: #2196f3; | ||
animation: pulse 1.5s infinite; | ||
} | ||
|
||
&.recognizing { | ||
background-color: #9c27b0; | ||
animation: pulse 1.5s infinite; | ||
} | ||
|
||
&.trained { | ||
background-color: #4caf50; | ||
} | ||
|
||
&.matched { | ||
background-color: #4caf50; | ||
} | ||
|
||
&.not_matched { | ||
background-color: #f44336; | ||
} | ||
|
||
&.error { | ||
background-color: #f44336; | ||
} | ||
} | ||
|
||
.statusText { | ||
font-size: 14px; | ||
} | ||
|
||
.message { | ||
font-size: 16px; | ||
text-align: center; | ||
margin: 0; | ||
} | ||
|
||
.visualizerContainer { | ||
width: 100%; | ||
height: 150px; | ||
margin-bottom: 20px; | ||
border: 1px solid rgba(255, 255, 255, 0.2); | ||
border-radius: 5px; | ||
overflow: hidden; | ||
} | ||
|
||
.controlsContainer { | ||
display: flex; | ||
justify-content: space-between; | ||
margin-bottom: 20px; | ||
|
||
@media (max-width: 600px) { | ||
flex-direction: column; | ||
} | ||
} | ||
|
||
.trainingControls, | ||
.recognitionControls { | ||
display: flex; | ||
flex-direction: column; | ||
width: 48%; | ||
|
||
@media (max-width: 600px) { | ||
width: 100%; | ||
margin-bottom: 20px; | ||
} | ||
|
||
h3 { | ||
margin-bottom: 10px; | ||
font-size: 18px; | ||
} | ||
} | ||
|
||
.button { | ||
padding: 10px 15px; | ||
margin-bottom: 10px; | ||
border: none; | ||
border-radius: 5px; | ||
background-color: #2196f3; | ||
color: white; | ||
font-size: 14px; | ||
cursor: pointer; | ||
transition: background-color 0.3s; | ||
|
||
&:hover:not(:disabled) { | ||
background-color: #1976d2; | ||
} | ||
|
||
&:disabled { | ||
background-color: #cccccc; | ||
color: #666666; | ||
cursor: not-allowed; | ||
} | ||
} | ||
|
||
.resultContainer { | ||
margin-top: 20px; | ||
padding: 15px; | ||
background-color: rgba(0, 0, 0, 0.3); | ||
border-radius: 5px; | ||
} | ||
|
||
.scoreBar { | ||
width: 100%; | ||
height: 20px; | ||
background-color: rgba(255, 255, 255, 0.1); | ||
border-radius: 10px; | ||
overflow: hidden; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.scoreIndicator { | ||
height: 100%; | ||
background: linear-gradient(to right, #f44336, #ffeb3b, #4caf50); | ||
border-radius: 10px; | ||
transition: width 0.5s ease-in-out; | ||
} | ||
|
||
.scoreValue { | ||
text-align: center; | ||
font-size: 16px; | ||
font-weight: bold; | ||
} | ||
|
||
@keyframes pulse { | ||
0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); } | ||
70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } | ||
100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } | ||
} | ||
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.
π‘ Verification agent
π§© Analysis chain
Add RTL support for internationalization
The component doesn't account for right-to-left (RTL) languages, which might be important for internationalization.
Add RTL support using CSS logical properties:
Apply similar logical property replacements for other directional properties throughout the file.
π Script executed:
Length of output: 3816
Use CSS logical properties for RTL support in TensorFlow.module.scss
To ensure this component adapts when
direction: rtl
is applied elsewhere in the app (e.g.,home.module.scss
), replace the hard-codedmargin-right
with a logical property:β’ In
app/components/TensorFlow.module.scss
No other left/right offsets exist in this file.
π Committable suggestion
π‘ Verification agent
π§© Analysis chain
Improve theming in TensorFlow component with CSS variables
The TensorFlow voice recognition styles use hardcoded color values instead of CSS variables, which can cause inconsistencies with the application's theme system.
Replace hardcoded color values with theme variables:
Similarly, update status colors and other hardcoded values to use the app's theme variables throughout the file.
π Script executed:
Length of output: 8503
π Script executed:
Length of output: 1001
Use CSS theme variables in TensorFlow.module.scss
The app already defines theme variables in globals.scss (
--white
,--black
,--gray
,--primary
,--second
,--hover-color
,--bar-color
,--card-shadow
, etc.). Replace hard-coded colors in your component with those variables:β’ For status dots, extract each stateβs color into globals.scss (e.g.
--status-idle
,--status-recording
, etc.) and reference them withvar(--status-idle, #888888)
,var(--status-recording, #ff9800)
, etc.β’ Audit the rest of this file and swap all hardcoded values for the corresponding CSS variables to ensure consistency with the appβs light/dark themes.
π Committable suggestion