-
Notifications
You must be signed in to change notification settings - Fork 703
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
[highlighter] - new games and import flow #5347
base: master
Are you sure you want to change the base?
Conversation
|
# Conflicts: # app/i18n/en-US/highlighter.json
} else { | ||
callback(); | ||
} | ||
} |
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.
not blocking but there is actually a cleaner way to do this if the validation is just a regex match like this:
const specialCharacterValidator = {
pattern: /[\\/:"*?<>|]+/g,
message: $t('You cannot use special characters in this field'),
}
...
<Input rules={[specialCharacterValidator]} />
setDraggingOver(true); | ||
}} | ||
onDrop={e => { | ||
console.log(e.dataTransfer.files); |
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.
console log
style={ | ||
{ | ||
'--border-style': filePath ? 'solid' : 'dashed', | ||
'--border-color': draggingOver ? 'var(--teal)' : 'var(--midtone)', |
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.
do borderStyle
and borderColor
not work here?
objectFit: 'cover', | ||
borderRadius: '2px', | ||
}} | ||
onError={e => { |
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.
when are we expecting this to happen?
background-color: #232d3530; | ||
border-radius: 22px; | ||
margin-top: 8px; | ||
} |
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.
while global styles should be wrapped in a scoped class we generally want to avoid that for other scoped classes as it impacts performance when painting frames
) : ( | ||
<> | ||
<span style={{ fontWeight: 700 }}>Ai Highlighter requirements</span> | ||
<span style={{ fontWeight: 700 }}>AI Highlighter requirements</span> |
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.
needs translation
@@ -423,6 +420,19 @@ export class HighlighterService extends PersistentStatefulService<IHighlighterSt | |||
title: this.streamingService.views.settings.platforms.twitch?.title, | |||
game, | |||
}; | |||
|
|||
// console.log('recording Alreadyt running?:', this.streamingService.views.isRecording); |
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.
comment
}); | ||
|
||
if (this.streamingService.views.isRecording) { | ||
// console.log('Recording is already running'); |
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.
comment
}); | ||
}) | ||
.catch(error => { | ||
console.error('Failed getting duration right after the recoding.', error); | ||
}); | ||
|
||
aiRecordingInProgress = false; | ||
this.detectAndClipAiHighlights(path, streamInfo, true); | ||
// this.detectAndClipAiHighlights(path, streamInfo, true); |
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.
comment
WARZONE = 'warzone', | ||
MARVEL_RIVALS = 'marvel_rivals', | ||
WAR_THUNDER = 'war_thunder', | ||
VALORANT = 'valorant', |
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.
just fyi the enum values can have spaces in them, might be useful for the switch in highlighter/index.ts
No description provided.