Skip to content
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

Theme Editor #108

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Theme Editor #108

wants to merge 10 commits into from

Conversation

brizandrew
Copy link

The biggest issue for gaining widespread usage for this tool in my newsroom was the problem of editing JSON for non-coders. Even if all they wanted to change was a single image, they needed to open the JSON file. With this version, any user can edit themes and upload files to the proper directory on the server without needing the full server access required previously.

You can see a working version of this builder (with the actually audiogram generation disabled) on my website. And read more about these changes on my Medium post.

This PR also includes contributions by qrkourier.

@tomByrer
Copy link

Looks neat!
But @brizandrew you might have better chances at BBC:
https://github.com/BBC-News-Labs/audiogram

Copy link

@twobob twobob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// containerWidth = document.querySelector('#preview').clientWidth,
aspectRatio = height/width;
// containerWidth = containerWidth > 0 ? containerWidth : 640;

Is how I run this since that would actually cause the halfbars to offset to the right by a certain - annoying amount

although oddly just deleting 50 or so pixel from Client Width fixes the bar widths. I'll have to look into it.

@brizandrew we use your thing btw - very handy

Copy link

@twobob twobob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change in preview.js also has an odd effect of shrinking the backgrounds width when updating the caption text

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants