Skip to content

Commit

Permalink
Rename repository to vtk-wasm-demos
Browse files Browse the repository at this point in the history
- these are all demo applications and not benchmarks.
  • Loading branch information
jspanchu committed Aug 23, 2024
1 parent b91181d commit 3a94d30
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Benchmarks
name: Deploy demos

on:
push:
Expand Down
8 changes: 4 additions & 4 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ $sdk_dir="/VTK-install/$sdk_config/lib/cmake/vtk"

docker run `
--rm `
-v"$pwd":/vtkWasmBenchmarks `
-v"$pwd":/vtk-wasm-demos `
${sdk_image}:${sdk_version} `
emcmake cmake -GNinja -S /vtkWasmBenchmarks -B /vtkWasmBenchmarks/out -DCMAKE_BUILD_TYPE="$sdk_config" -DVTK_DIR="$sdk_dir"
emcmake cmake -GNinja -S /vtk-wasm-demos -B /vtk-wasm-demos/out -DCMAKE_BUILD_TYPE="$sdk_config" -DVTK_DIR="$sdk_dir"

docker run `
--rm `
-v"$pwd":/vtkWasmBenchmarks `
-v"$pwd":/vtk-wasm-demos `
${sdk_image}:${sdk_version} `
cmake --build /vtkWasmBenchmarks/out
cmake --build /vtk-wasm-demos/out

npm i

Expand Down
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ readonly sdk_dir
docker run \
--rm \
-u "$(id -u):$(id -g)" \
-v"$PWD":/vtkWasmBenchmarks \
-v"$PWD":/vtk-wasm-demos \
$sdk_image:$sdk_version \
emcmake cmake -GNinja -S /vtkWasmBenchmarks -B /vtkWasmBenchmarks/out -DCMAKE_BUILD_TYPE=$sdk_config -DVTK_DIR=$sdk_dir
emcmake cmake -GNinja -S /vtk-wasm-demos -B /vtk-wasm-demos/out -DCMAKE_BUILD_TYPE=$sdk_config -DVTK_DIR=$sdk_dir

docker run \
--rm \
-v"$PWD":/vtkWasmBenchmarks \
-v"$PWD":/vtk-wasm-demos \
$sdk_image:$sdk_version \
cmake --build /vtkWasmBenchmarks/out
cmake --build /vtk-wasm-demos/out

npm i

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>VTK WebAssembly Benchmarks</title>
<title>VTK WebAssembly demos</title>
</head>

<body>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "vtk-wasm-benchmarks",
"name": "vtk-wasm-demos",
"version": "0.0.0",
"private": true,
"scripts": {
Expand Down
12 changes: 6 additions & 6 deletions src/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function objectToQueryString(obj: any): string {
return keyValuePairs.join('&');
}
const benchmarks = ref([
const demos = ref([
{
name: "ConesViewer",
previewQuery: {
Expand Down Expand Up @@ -85,21 +85,21 @@ const benchmarks = ref([
<template>
<v-container class="fill-height">
<v-responsive class="text-center fill-height">
<h1 class="text-body-2 font-weight-light mb-n1">VTK WebAssembly Benchmarks</h1>
<h1 class="text-body-2 font-weight-light mb-n1">VTK WebAssembly Demos</h1>

<div class="py-14" />

<v-row class="d-flex align-center justify-center">

<v-col v-for="benchmark in benchmarks" cols="auto" :key="benchmark.id">
<v-col v-for="demo in demos" cols="auto" :key="demo.id">
<v-card hide-details rounded :elevation="9" class="ma-0 pa-0">
<iframe scrolling="no" :src="'#/' + benchmark.name + '?' + objectToQueryString(benchmark.previewQuery)">
<iframe scrolling="no" :src="'#/' + demo.name + '?' + objectToQueryString(demo.previewQuery)">
</iframe>
<v-card-actions>
<v-btn :to="{ name: benchmark.name, query: benchmark.mainQuery }" min-width="164" rel="noopener noreferrer"
<v-btn :to="{ name: demo.name, query: demo.mainQuery }" min-width="164" rel="noopener noreferrer"
target="_blank" variant="text">
<v-sheet>
{{ benchmark.name }} (vtk.wasm {{ benchmark.viewApi }})
{{ demo.name }} (vtk.wasm {{ demo.viewApi }})
</v-sheet>
<v-icon icon="mdi-open-in-new" />
</v-btn>
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ export default defineConfig({
server: {
port: 3000,
},
base: '/vtkWasmBenchmarks/',
base: '/vtk-wasm-demos/',
})

0 comments on commit 3a94d30

Please sign in to comment.