尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Frontend Code for https://energie.wifo.ac.at
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
Joint project by Johannes Schmidt and me. This repository provides the frontend code for the monitor webpage.
Any contribution is welcome, start by cloning this repo:
The website uses webpack as bundler and the javascript framework Vue.js.
The visualisations are created by the gen-vis library which is build on top of Vue.js and d3.
To run the monitor website locally in dev mode:
cd web
npm install
npm run dev查看完整 README ↗Joint project by Johannes Schmidt and me. This repository provides the frontend code for the monitor webpage.
Any contribution is welcome, start by cloning this repo:
git clone https://github.com/energy-monitor/web.git
The website uses webpack as bundler and the javascript framework Vue.js. The visualisations are created by the gen-vis library which is build on top of Vue.js and d3.
To run the monitor website locally in dev mode:
cd web
npm install
npm run dev
To try changes of gen-vis, its checkout at ../../gen-vis (next to the energy folder) is linked with npm run link-gen-vis, with npm run watch in gen-vis the dev server takes its changes. npm run unlink-gen-vis installs the version of package.json again, npm run check and so a deploy fail while it is linked.
The build (npm run build) also writes an html file for each page, e.g. collection/gas.html for /collection/gas. Each file has the page's title, description, canonical url, and its text and chart titles for search engines, plus sitemap.xml and robots.txt, see build/pages.js and assets/.htaccess.
The charts are gen-vis definitions in data/, their id is the path without .json, e.g. gas/price. The CSVs are written by the export scripts of the explore repository and are not part of this repository.
electricity, gas, oil, coal, fossil (totals of the fossil fuels), wood, mobility, weather, economy.<measure>[-<form>]: without a form the chart compares the years (one line per year), otherwise -stacked (monthly stacked bars), -map (europe map), -hourly (daily profile) or -countries.gas/price.json and gas/price.csv._ are parents, not charts. The ones in data/ are combined as mixins, e.g. "parent": ["../_years.json", "../_facets.json", "../_scale-switch.json"]:
_years.json: one line per year, x is the day of the year, y the column value_years-cum.json: _years with the facets rolling mean and cumulated_timeline.json: x is the column date with monthly ticks, y the column value_stacked.json: _timeline as monthly stacked bars, the stacks are the mapping type_facets.json: facets by the mapping facet_scale-switch.json: switch between separate and shared y scales of the facets_share-switch.json: switch between the values and their shares, the column value.share_facet-toggle.json: the facets can be switched on and off in the legend_monthly.json: monthly data of _years, the month in the hover, smoothed lines (monotoneX)_line-types.json: line styles (stroke-dasharray) of the mapping type in addition to the years, e.g. mean, min and max_europe-map.json: a map of Europe ("coord": "geo", the geometry assets/geo/europe.json), the countries by the mapping country with their German names, colored by the mapping valueelectricity/_sources.json with the colors of the energy sources.build/_base.jsbuild/charts.js"coord": "geo"src/globals.jsaliases of src/globals.js, e.g. for embedded /single/ urls.data/pages/.