
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Page type showing scraped svg diagramms from Datawrapper.
Add this line to your application's Gemfile:
# Gemfile
gem 'pageflow-chart'
Mount the engine:
# config/routes.rb
mount Pageflow::Chart::Engine, at: '/chart'
Register the plugin:
# config/initializers/pageflow.rb
config.plugin(Pageflow::Chart.plugin)
Include javascript/stylesheets:
# app/assets/javascripts/pageflow/application.js
//= require "pageflow/chart"
# app/assets/javascripts/pageflow/editor.js
//= require pageflow/chart/editor
# app/assets/stylesheets/pageflow/application.scss;
@import "pageflow/chart";
# app/assets/stylesheets/pageflow/editor.scss;
@import "pageflow/chart/editor";
# Adding basic style to your theme
# app/assets/stylesheets/pageflow/themes/default.scss
@import "pageflow/chart/themes/default";
Execute bundle install
. Then Install and run migrations:
rake pageflow_chart:install:migrations
rake db:migrate SCOPE=pageflow_chart
Create a proxy (via Apache, Nginx, ...) from your domain to your configured
S3_HOST_ALIAS
to circumvent the same-domain policy. Configure this
in your Pageflow Chart initializer config/initializers/pageflow_chart.rb
.
Example conf snippet for Nginx. Add this location
block inside every server
that's being used by Ruby/Rails.
location /datawrapper/ {
proxy_pass http://bucketname.s3-website-eu-west-1.amazonaws.com/;
proxy_redirect http://bucketname.s3-website-eu-west-1.amazonaws.com/ $scheme://$host/datawrapper/;
}
Normally you will do in two servers: the one that has listen 80
in it
and the other one which has `listen 443' in it (for https). This is needed
so the charts can be servered from the same origin a the entry.
Configure Pageflow Chart by creating an initializer in your app
config/initializers/pageflow_chart.rb
.
Example:
Pageflow::Chart.configure do |config|
config.scraped_sites_root_url = '/datawrapper'
# Allow scraping charts from custom account URLs
config.supported_hosts << 'http://mycustom.datawrapper.de'
# Uncomment to inject custom css into iframe.
# config.use_custom_theme = true
end
Also see lib/pageflow/chart/configuration.rb
for the additional options.
If you run into problems while installing the page type, please also refer to the Troubleshooting wiki page in the Pageflow repository. If that doesn't help, consider filing an issue.
Edit the translations directly on the pageflow-chart locale project.
FAQs
Unknown package
We found that pageflow-chart demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.