-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Change instances of "cc-chooser" to "chooser", other cleanup and small fixes #129
Conversation
Sorry about all the funky review requests, github seems to be automatically adding and removing some requests :/ |
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.
Ari, did you run eslint on the repo?
I have changed the linter settings from vue/essential
to vue/recommended
in .eslintrc.js
, and when I run npm run-script lint
from Webstorm (actually, it runs it automatically when I click a green triangle next to lint
line in 'package.json'), all the additional new lines are inserted.
I haven't tried running the linter from Visual Studio Code, it might behave differently (it does so with regards to line endings).
I was thinking that automatic linting could be added to github action so that the code in the repo is consistent, and code review is simplified. However, if you think it makes the code unnecessarily long, or makes writing the code unnecessarily difficult, maybe it would be better to restore the linter settings to vue\essential
in the '.eslintrc.js'. Otherwise, every time I click on lint in Webstorm, all extra newlines are inserted again, and all component files look as if they were edited.
Yep, there were linting errors causing build to fail. I think it's a good idea to add a lint workflow, one for testing, one for linting, one for build maybe? Maybe on each push would be good. |
I didn't realize that there were two linting changes: one in 'Cleanup' commit and one in 'Linting fixes' commit, and thought that the change in 'Cleanup' (removing extra new lines) was the final one. So, if I understand correctly now, 'Linting fixes' applied the 'vue/recommended' standard to the whole repo, and this makes the code look consistent and applies recommended Vue.js code style. I can look into the workflows. |
@obulat Yep, that's correct. Sounds good re workflows :) |
@@ -1,28 +1,46 @@ | |||
<template> |
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 edited LicenseIcons css only looking at this component, so I added margin-left of 3px to the icons so that they are not too close to the license name in RichText code. Now I see LicenseIcons are used in the HelpSection as well, so because the left margin is local to LicenseCode component, it would be better to add styling here, so that the styling in other components is not affected.
.license-text .photo-license-icons {
height: 1.4rem!important;
**margin-left: 3px;**
}
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.
Looks and works great.
Only a 3px styling change is needed, I think :)
Fixes #128
Description
The repo was renamed from "cc-chooser" to "chooser". This PR updates various strings to reflect that change.
There are also some piggyback fixes that were preventing the site from building. These include:
Other information
Checklist
Update index.md
).master
branch of the repository.visible errors.
Developer Certificate of Origin