-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add Custom Overlay Color Editor #34
Conversation
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.
Works on my machine!
I also know our end goal doesn't plan on using the pug templating so if that's the plan just to get some features on the board I approve.
Now that we are at this milestone if we can talk about what are the next few major goals you want to accomplish is to hit twitchcon.
src/files.ts
Outdated
@@ -0,0 +1,21 @@ | |||
import { appendFile, existsSync, writeFile } from 'fs'; |
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.
The name of this file can be more descriptive. I don't know the future of the file, but its explicitly writing to a custom styles class
src/files.ts
Outdated
}); | ||
}); | ||
} | ||
return new Promise((resolve, reject) => { |
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.
The complexity is high with this one, probably going to refactor moving forward, but pull request to me makes it seems like this code is going into master.
src/routes/save-css.ts
Outdated
import * as files from '../files'; | ||
|
||
export const saveCssRoute = (req: express.Request, res: express.Response) => { | ||
const captains = console; |
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.
This can use the log class
src/routes/save-css.ts
Outdated
const data = formatForCSS(colorName, hueRotateDeg); | ||
files | ||
.write(data) | ||
.then((result: any) => { |
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.
You should be able to type what the result is going to be.
$('#container').css('filter', `hue-rotate(${hueRotateDeg}deg)`); | ||
} | ||
|
||
function request(requestOptions) { |
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.
I like this
Purpose
Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
How to Test
What to Check
Verify that the following are valid
Other Information