Feat: Map Node Stats (Version, Operating System etc) to each Node in Feed (#591)

* added functionality for specifying node details per each node

* Backend done
Added new item in Ranking
node_map, mapping node id to node detail

Co-authored-by: Cyndie Kamau <cyndiekamaa@gmail.com>

* feat: last frontend working version

* chore: Clean up unused code

* fix(frontend): update node details to carry 10 fields

* chore: remove unnecessary code

* chore: run cargo fmt for formatting

* chore: run prettier to format frontend

* fixed e2e tests added missing struct params

* remoted .idea file

* Hide new columns by default, default to - if no data, and remove .idea folder

---------

Co-authored-by: MrishoLukamba <abdulrazzaqlukamba@gmail.com>
Co-authored-by: Cyndie Kamau <cyndiekamaa@gmail.com>
This commit is contained in:
James Wilson
2024-09-25 14:01:42 +01:00
committed by GitHub
parent bb4c7272d8
commit 0cd8726ce5
34 changed files with 611 additions and 53 deletions
+7 -7
View File
@@ -16,19 +16,19 @@ module.exports = {
// allow 'import "foo.css"' and '@import "foo.css" in css files
test: /\.css$/i,
use: ['style-loader', 'css-loader'],
generator: { filename: 'styles/[name].[contenthash][ext]' }
generator: { filename: 'styles/[name].[contenthash][ext]' },
},
{
// allow 'import Icon from "./icon.png"'
test: /\.(png|svg|jpg|jpeg|gif)$/i,
type: 'asset/resource',
generator: { filename: 'images/[name].[contenthash][ext]' }
generator: { filename: 'images/[name].[contenthash][ext]' },
},
{
// allow CSS @url('./my-font.woff2')" style font loading
test: /\.(woff|woff2|eot|ttf|otf)$/i,
type: 'asset/resource',
generator: { filename: 'fonts/[name].[contenthash][ext]' }
generator: { filename: 'fonts/[name].[contenthash][ext]' },
},
],
},
@@ -36,8 +36,8 @@ module.exports = {
// Use our index.html as a starting point (to add script links etc to)
// and make sure to use/copy over the favicon too.
new HtmlWebpackPlugin({
favicon: "./assets/favicon.svg",
template: "./assets/index.html"
favicon: './assets/favicon.svg',
template: './assets/index.html',
}),
],
resolve: {
@@ -46,6 +46,6 @@ module.exports = {
output: {
filename: 'main.[contenthash].js',
path: path.resolve(__dirname, 'build'),
clean: true
clean: true,
},
};
};