Compare commits

..

33 Commits

Author SHA1 Message Date
olayway
dc4646bc0b [package-lock.json][xs]: refresh after rebasing on main 2023-06-07 11:45:28 +02:00
olayway
11b30560f1 [remark-embed/README][xs]: add @portaljs to pckg name 2023-06-07 11:38:34 +02:00
olayway
c643e6b48d [remark-callouts/README][xs]: add @portaljs to pckg name 2023-06-07 11:38:34 +02:00
olayway
975b4d8697 [core/README][xs]:correct scope name 2023-06-07 11:38:34 +02:00
olayway
18cfb41471 [core][s]: rm old changelog 2023-06-07 11:38:34 +02:00
olayway
113ab3c0c2 [remark-wiki-link/project.json][xs]: rm publish targets 2023-06-07 11:38:34 +02:00
olayway
5dbb4e5f38 [remark-wiki-link][xs]: adjst package.json 2023-06-07 11:38:34 +02:00
olayway
a592048d9a [remark-wiki-link][xs]:rm old changelog 2023-06-07 11:38:34 +02:00
olayway
5e863e4534 [remark-wiki-link/README][xs]: replace @flowershow with @portaljs 2023-06-07 11:38:34 +02:00
olayway
00166a5975 [remark-wiki-link/test][xs]:specify format
- also temporarily force any type on htmlExtension
2023-06-07 11:38:34 +02:00
olayway
310a4cc42a [package.json][xs]: install missing deps 2023-06-07 11:38:34 +02:00
olayway
f6e7e1f01a [remark-wiki-link/eslintrc][xs]:adjst ignorePatterns 2023-06-07 11:38:34 +02:00
olayway
73d10e9771 [remark-embed][s]: rename to @portaljs/remark-embed 2023-06-07 11:38:34 +02:00
olayway
7303a492fe [remark-embed][xs]: rm publish targets 2023-06-07 11:38:34 +02:00
olayway
c02f7c4a02 [remark-embed/jest.config][xs]: rm unknown option coverageDirectory 2023-06-07 11:38:34 +02:00
olayway
90d736a895 [remark-callouts][s]: rm pubish targets and adjst build executor 2023-06-07 11:38:34 +02:00
olayway
e25f1f2cd2 [remark-callouts][xs]: adjst fields in package.json 2023-06-07 11:38:34 +02:00
olayway
93f5316bd4 [package.json][s]: install missing deps 2023-06-07 11:38:34 +02:00
olayway
a02d9dc1d7 [remark-callouts/project.json][xs]: adjst test pattern 2023-06-07 11:38:34 +02:00
olayway
395e072ee5 [packages][m]: mv @flowershow/remark-embed here 2023-06-07 11:38:34 +02:00
olayway
e32332ac84 [packages][m]: mv @flowershow/remark-wiki-link here 2023-06-07 11:38:34 +02:00
olayway
ee6812974d [packages][m]: mv @flowershow/remark-wiki-link here 2023-06-07 11:38:34 +02:00
olayway
c61a2db628 [core/project.json][xs]: rm publish targets 2023-06-07 11:38:34 +02:00
olayway
0710955032 [core/.eslintrc][xs]: adjust ignorePatterns 2023-06-07 11:38:34 +02:00
olayway
6b040b0ca1 [packages.json][s]:use same version for all nrwl packages 2023-06-07 11:38:34 +02:00
olayway
46017e407c [core/package.json][xs]: install core-js 2023-06-07 11:38:34 +02:00
olayway
b9d94df990 [core/jest.config][xs]: rm coverageDirectory 2023-06-07 11:38:34 +02:00
olayway
22b57ae46f [core/tsconfig][xs]: rm extends 2023-06-07 11:38:34 +02:00
olayway
af6957e173 [core/package.json][s]: fix mermaid versions 2023-06-07 11:38:34 +02:00
olayway
9aaeb559c4 [packages/core][xs]:replace deprecated rollup executor 2023-06-07 11:38:34 +02:00
olayway
e44e19737d [package.json][xs]: setup npm workspaces 2023-06-07 11:38:31 +02:00
olayway
772447df11 [packages/core][xs]: rename to @portaljs/core 2023-06-07 11:37:17 +02:00
olayway
9ef5d52497 [packages][m]: mv @flowershow/core package here 2023-06-07 11:37:17 +02:00
21 changed files with 57 additions and 349 deletions

View File

@@ -53,10 +53,6 @@ export function Header() {
},
],
},
{
title: 'Contributing',
href: '/contributing',
},
{
title: 'Resources',
href: '/resources',

View File

@@ -1,36 +0,0 @@
# How to contribute
OpenSpending is a project that aims to make public financial data more accessible, understandable, and usable. It is powered by PortalJS, a framework for building data portals that are fast, secure, and easy to customize.
If you have any questions, the best place to get answers is to reach to us on [Discord](https://discord.gg/xJrxCbkP)
We welcome contributions from anyone who is interested in improving OpenSpending and making it more useful for the public. There are many ways you can contribute to the project, such as:
- Submitting datasets for evaluation and inclusion in OpenSpending
- Reporting bugs or issues with the website or the data
- Suggesting new features or enhancements
- Providing feedback or ideas
- Helping other users or answering questions
## Submitting a contribution
The main platform for communication and collaboration for OpenSpending is Github, if you want to interact with us you can o so by submitting an issue.
If you want to submit a dataset for evaluation and inclusion in OpenSpending, you will need to create an issue on Github using this template:
```markdown
Title: [Dataset Submission] Name of the dataset (This will be the name of the repo where your datasets will be stored)
Readme: A description of your data to include in the new repo that will be created
Datapackage: All our datasets require a datapackage following the [frictionless spec](https://specs.frictionlessdata.io/) more specific the [fiscal version](https://specs.frictionlessdata.io/fiscal-data-package/)
```
Please make sure that the dataset meets the following criteria before submitting it:
- The dataset contains public financial data (e.g., budgets, expenditures, revenues, contracts)
- The dataset is open and free to use (e.g., no restrictions on access or reuse)
- The dataset is structured and machine-readable (e.g., no scanned images or PDFs)
- The dataset has a datapackage containing metadata and documentation (e.g., descriptions, definitions, schemas)
If you have any questions or doubts about submitting a dataset, please contact us on Github or join our [Discord server](https://discord.gg/xJrxCbkP), where you can chat with other contributors and get support from the OpenSpending team.
We appreciate your interest and involvement in OpenSpending, and we look forward to working with you on making public financial data more open and transparent. Thank you for your contribution! 😊

View File

@@ -3,7 +3,7 @@ title: Sample Data Story
date: 06/06/2023
---
The below chart clearly shows the steep upward trend of oil prices these are largely due to social-political factors and civil unrest:
This is a sample data story, you can add charts
<LineChart
data="https://raw.githubusercontent.com/datasets/oil-prices/main/data/wti-year.csv"
@@ -12,26 +12,23 @@ The below chart clearly shows the steep upward trend of oil prices these are lar
yAxis="Price"
/>
But to really understand the different global factors that influence the price of a commodity like oil the long term trends as shown above is not adequate.
When considering the yearly fluctuations it is often beneficial to filter certain time periods.
One can use the below preview to filter year periods. Alternatively, if you want to consider the points in time when the price of oil was the highest the price range can also be filtered.
Or you can add previews
<FlatUiTable url="https://raw.githubusercontent.com/datasets/oil-prices/main/data/wti-year.csv" />
Careful data analysis has identified instability albeit economic or political to be the major driver of oil price flatuations
And you can of course add markdown
## Subtitles
- Lists
- Lists
You can also add mermaid charts
```mermaid
graph LR;
A[Socio-Political Instability]-->B[War & Civil Unrest];
A-->C[Economic Factors];
B-->D[Price Increase];
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
```
___
**To find the raw data used in this article visit https://github.com/datasets/oil-prices/**

View File

@@ -1,158 +0,0 @@
---
title: Where the European Structural and Investment Funds go?
date: 2023-06-08
authors: ['Anuar Ustayev']
---
European Structural and Investment Funds (ESIF) is a financial instrument used by the European Union (EU) to support regional development and economic cohesion among its member states. The ESIF combines several funds to provide financial assistance to regions and cities in the EU with the aim of reducing economic disparities and promoting sustainable growth.
In this data story, our objective is to determine which country benefits the most from the ESIF funds and identify the region within the EU that receives the highest amount of funding.
To begin our analysis, we are using data on the allocation of ESIF funds across EU member states and their respective regions. These datasets are provided by previous work at OpenSpending project. See available datasets:
- Full dataset: https://www.openspending.org/@os-data/complete-european-esif-funds-beneficiaries-2007-2020
- By country, e.g., this is for Austria: https://www.openspending.org/@os-data/complete-european-esif-funds-beneficiaries-2007-2020-filtered-by-at
The data provide insights into the financial assistance provided by the European Union to support regional development and economic cohesion:
<FlatUiTable url="https://storage.openspending.org/complete-european-esif-funds-beneficiaries-2007-2020/eu-esif-funds-beneficiaries-2007-2020-full.csv" />
After processing the available datasets we have derived an aggregated data resource that groups data by country which enables us to understand where the most funding went between 2007 and 2020. Notice that maximum amounts in each column are highlighted in the table but they might be in local currencies so check the 'currency' field:
<FlatUiTable url="https://storage.openspending.org/eu-esif-funds-beneficiaries-2007-2020-full-aggregated-by-country.csv" />
Quick observations:
- The Czech Republic has the EU cofinancing amount of CZK 2,731,165,279,234 which is approximately EUR 115 billions.
- Poland has the EU cofinancing amount of PLN 302,958,765,476 which is approximately EUR 67 billions.
- Other countries that use local currencies do not have significant amounts when comparing to above two nations.
So let's convert all currencies to ~EUR but only include 'eu_cofinancing_amount' values as we will use it for comparison:
<FlatUiTable rawCsv="beneficiary_country_code,eu_cofinancing_amount
AT,0.0
BE,858388537.42
BG,0.0
CY,0.0
CZ,115591108113
DE,912803359.21
DK,492017672
EE,5419641772.0
EL,0.0
ES,0.0
FI,2858282488.0
FR,15027864492.94
HR,0.0
HU,0.0
IE,0.0
IT,34860253672.98
LT,6750675528.74
LU,30852529.89
LV,0.0
MT,0.0
NL,0.0
PL,67537688711
PT,23800568868.02
RO,19970864938.12
SE,0.0
SI,4576151396.24
SK,12295960193.92
UK,12829255012.10" />
With this data table we can easily see top countries by funding. Note that you can use the table component above to sort values by values in 'eu_cofinancing_amount' column which helps you to quickly see top countries. Let's build a quick visualization to make it even more obvious:
<Vega
data={{
table: [
{
x: "LU",
y: 30852529.89
},
{
x: "DK",
y: 492017672
},
{
x: "BE",
y: 858388537.42
},
{
x: "DE",
y: 912803359.21
},
{
x: "FI",
y: 2858282488
},
{
x: "SI",
y: 4576151396.24
},
{
x: "EE",
y: 5419641772
},
{
x: "LT",
y: 6750675528.74
},
{
x: "SK",
y: 12295960193.92
},
{
x: "UK",
y: 12829255012.1
},
{
x: "FR",
y: 15027864492.94
},
{
x: "RO",
y: 19970864938.12
},
{
x: "PT",
y: 23800568868.02
},
{
x: "IT",
y: 34860253672.98
},
{
x: "PL",
y: 67537688711
},
{
x: "CZ",
y: 115591108113
}
]
}}
spec={{
$schema: 'https://vega.github.io/schema/vega-lite/v4.json',
data: {
name: 'table'
},
encoding: {
x: {
field: 'x',
type: 'ordinal'
},
y: {
field: 'y',
type: 'quantitative'
}
},
mark: 'bar'
}}
/>
Based on the bar chart above we can conclude that the following 3 countries have received the most amounts from ESIF fund:
1. Czech Republic - EUR ~116b.
2. Poland - EUR ~68b.
3. Italy - EUR ~35b.
_This data story was created by using Datopian's PortalJS framework. You can learn more about the framework by visiting https://portaljs.org/_

View File

@@ -1,11 +1,13 @@
{
"name": "portaljs",
"workspaces": ["./packages/*"],
"workspaces": [
"./packages/*"
],
"version": "0.0.0",
"license": "MIT",
"scripts": {
"changeset": "changeset",
"prerelease": "nx run-many --targets=lint,test,build --projects=tag:test",
"prerelease": "nx affected --targets=lint,test",
"release": "changeset publish"
},
"private": true,

View File

@@ -1,7 +0,0 @@
# @portaljs/ckan
## 0.0.3
### Patch Changes
- [`e82e2ae`](https://github.com/datopian/portaljs/commit/e82e2ae0211ea3e4701703d353b44cf1001434ef) Thanks [@olayway](https://github.com/olayway)! - Fix: replace deprecated `prepublish` script with `prepare`

View File

@@ -1,6 +1,6 @@
{
"name": "@portaljs/ckan",
"version": "0.0.3",
"version": "0.0.2",
"type": "module",
"description": "https://portaljs.org",
"keywords": [
@@ -13,8 +13,7 @@
"scripts": {
"build": "tsc && vite build && npm run build-tailwind",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"build-tailwind": "NODE_ENV=production npx tailwindcss -o ./dist/styles.css --minify",
"prepare": "npm run build"
"build-tailwind": "NODE_ENV=production npx tailwindcss -o ./dist/styles.css --minify"
},
"peerDependencies": {
"react": "^18.2.0",

View File

@@ -1,17 +1,5 @@
# @portaljs/components
## 0.1.11
### Patch Changes
- [`e82e2ae`](https://github.com/datopian/portaljs/commit/e82e2ae0211ea3e4701703d353b44cf1001434ef) Thanks [@olayway](https://github.com/olayway)! - Fix: replace deprecated `prepublish` script with `prepare`
## 0.1.10
### Patch Changes
- [`40d80d2`](https://github.com/datopian/portaljs/commit/40d80d2282bf8464c1aafb393975065078ad9ea3) Thanks [@olayway](https://github.com/olayway)! - Fix: missing files in the published package.
## 0.1.9
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@portaljs/components",
"version": "0.1.11",
"version": "0.1.9",
"type": "module",
"description": "https://portaljs.org",
"keywords": [
@@ -16,8 +16,7 @@
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"build-tailwind": "NODE_ENV=production npx tailwindcss -o ./dist/styles.css --minify",
"prepare": "npm run build"
"build-tailwind": "NODE_ENV=production npx tailwindcss -o ./dist/styles.css --minify"
},
"peerDependencies": {
"react": "^18.2.0",

View File

@@ -1,19 +0,0 @@
# @portaljs/core
## 1.0.3
### Patch Changes
- [`e82e2ae`](https://github.com/datopian/portaljs/commit/e82e2ae0211ea3e4701703d353b44cf1001434ef) Thanks [@olayway](https://github.com/olayway)! - Fix: replace deprecated `prepublish` script with `prepare`
## 1.0.2
### Patch Changes
- [`40d80d2`](https://github.com/datopian/portaljs/commit/40d80d2282bf8464c1aafb393975065078ad9ea3) Thanks [@olayway](https://github.com/olayway)! - Fix: missing files in the published package.
## 1.0.1
### Patch Changes
- [`b7158a5`](https://github.com/datopian/portaljs/commit/b7158a5be668018d9b947f9c9d63fa30fa91d18b) Thanks [@olayway](https://github.com/olayway)! - Fix what's getting published to npm.

View File

@@ -1,6 +1,6 @@
{
"name": "@portaljs/core",
"version": "1.0.3",
"version": "1.0.0",
"description": "Core Portal.JS components, configs and utils.",
"repository": {
"type": "git",
@@ -16,12 +16,6 @@
"publishConfig": {
"access": "public"
},
"scripts": {
"prepare": "nx build core"
},
"files": [
"dist"
],
"type": "module",
"main": "./dist/index.js",
"dependencies": {

View File

@@ -17,7 +17,13 @@
"generateExportsField": true,
"rollupConfig": "@nrwl/react/plugins/bundle-rollup",
"compiler": "babel",
"assets": []
"assets": [
{
"glob": "packages/core/README.md",
"input": ".",
"output": "."
}
]
}
},
"lint": {

View File

@@ -1,19 +0,0 @@
# @portaljs/remark-callouts
## 1.0.3
### Patch Changes
- [`e82e2ae`](https://github.com/datopian/portaljs/commit/e82e2ae0211ea3e4701703d353b44cf1001434ef) Thanks [@olayway](https://github.com/olayway)! - Fix: replace deprecated `prepublish` script with `prepare`
## 1.0.2
### Patch Changes
- [`40d80d2`](https://github.com/datopian/portaljs/commit/40d80d2282bf8464c1aafb393975065078ad9ea3) Thanks [@olayway](https://github.com/olayway)! - Fix: missing files in the published package.
## 1.0.1
### Patch Changes
- [`b7158a5`](https://github.com/datopian/portaljs/commit/b7158a5be668018d9b947f9c9d63fa30fa91d18b) Thanks [@olayway](https://github.com/olayway)! - Fix what's getting published to npm.

View File

@@ -1,6 +1,6 @@
{
"name": "@portaljs/remark-callouts",
"version": "1.0.3",
"version": "1.0.0",
"description": "Remark plugin to add support for blockquote-based admonitions/callouts",
"repository": {
"type": "git",
@@ -24,12 +24,6 @@
"publishConfig": {
"access": "public"
},
"scripts": {
"prepare": "nx build remark-callouts"
},
"files": [
"dist"
],
"dependencies": {
"mdast-util-from-markdown": "^1.2.0",
"svg-parser": "^2.0.4",

View File

@@ -28,7 +28,13 @@
"project": "packages/remark-callouts/package.json",
"format": ["esm", "cjs"],
"extractCss": true,
"generateExportsField": true,
"assets": [
{
"glob": "packages/remark-callouts/README.md",
"input": ".",
"output": "."
},
{
"glob": "packages/remark-callouts/styles.css",
"input": ".",

View File

@@ -1,19 +0,0 @@
# @portaljs/remark-embed
## 1.0.3
### Patch Changes
- [`e82e2ae`](https://github.com/datopian/portaljs/commit/e82e2ae0211ea3e4701703d353b44cf1001434ef) Thanks [@olayway](https://github.com/olayway)! - Fix: replace deprecated `prepublish` script with `prepare`
## 1.0.2
### Patch Changes
- [`40d80d2`](https://github.com/datopian/portaljs/commit/40d80d2282bf8464c1aafb393975065078ad9ea3) Thanks [@olayway](https://github.com/olayway)! - Fix: missing files in the published package.
## 1.0.1
### Patch Changes
- [`b7158a5`](https://github.com/datopian/portaljs/commit/b7158a5be668018d9b947f9c9d63fa30fa91d18b) Thanks [@olayway](https://github.com/olayway)! - Fix what's getting published to npm.

View File

@@ -1,6 +1,6 @@
{
"name": "@portaljs/remark-embed",
"version": "1.0.3",
"version": "1.0.0",
"description": "Converts youtube link in mdx to an iframe embed",
"repository": {
"type": "git",
@@ -22,12 +22,6 @@
"publishConfig": {
"access": "public"
},
"scripts": {
"prepare": "nx build remark-embed"
},
"files": [
"dist"
],
"dependencies": {
"unist-util-visit": "^4.1.1"
},

View File

@@ -29,7 +29,15 @@
"tsConfig": "packages/remark-embed/tsconfig.lib.json",
"project": "packages/remark-embed/package.json",
"format": ["esm", "cjs"],
"external": ["unist-util-visit"]
"external": ["unist-util-visit"],
"generateExportsField": true,
"assets": [
{
"glob": "packages/remark-embed/README.md",
"input": ".",
"output": "."
}
]
}
}
},

View File

@@ -1,19 +0,0 @@
# @portaljs/remark-wiki-link
## 1.0.3
### Patch Changes
- [`e82e2ae`](https://github.com/datopian/portaljs/commit/e82e2ae0211ea3e4701703d353b44cf1001434ef) Thanks [@olayway](https://github.com/olayway)! - Fix: replace deprecated `prepublish` script with `prepare`
## 1.0.2
### Patch Changes
- [`40d80d2`](https://github.com/datopian/portaljs/commit/40d80d2282bf8464c1aafb393975065078ad9ea3) Thanks [@olayway](https://github.com/olayway)! - Fix: missing files in the published package.
## 1.0.1
### Patch Changes
- [`b7158a5`](https://github.com/datopian/portaljs/commit/b7158a5be668018d9b947f9c9d63fa30fa91d18b) Thanks [@olayway](https://github.com/olayway)! - Fix what's getting published to npm.

View File

@@ -1,6 +1,6 @@
{
"name": "@portaljs/remark-wiki-link",
"version": "1.0.3",
"version": "1.0.0",
"description": "Parse and render wiki-style links in markdown especially Obsidian style links.",
"repository": {
"type": "git",
@@ -23,12 +23,6 @@
"publishConfig": {
"access": "public"
},
"scripts": {
"prepare": "nx build remark-wiki-link"
},
"files": [
"dist"
],
"dependencies": {
"mdast-util-to-markdown": "^1.5.0",
"mdast-util-wiki-link": "^0.0.2",

View File

@@ -29,7 +29,15 @@
"tsConfig": "packages/remark-wiki-link/tsconfig.lib.json",
"project": "packages/remark-wiki-link/package.json",
"format": ["esm", "cjs"],
"external": ["mdast-util-wiki-link"]
"external": ["mdast-util-wiki-link"],
"generateExportsField": true,
"assets": [
{
"glob": "packages/remark-wiki-link/README.md",
"input": ".",
"output": "."
}
]
}
}
},