[examples-ssc][s]: update dataset link and path
This commit is contained in:
@@ -6,7 +6,7 @@ import { Vega } from 'react-vega';
|
|||||||
import { getDataset } from '../lib/dataset'
|
import { getDataset } from '../lib/dataset'
|
||||||
import Chart from '../components/Chart'
|
import Chart from '../components/Chart'
|
||||||
import { addView } from '../lib/utils'
|
import { addView } from '../lib/utils'
|
||||||
const datasetsDirectory = process.env.PORTAL_DATASET_PATH || path.join(process.cwd(), "fixtures", "datasetsDoubleView")
|
const datasetsDirectory = process.env.PORTAL_DATASET_PATH || path.join(process.cwd(), "public", "dataset")
|
||||||
|
|
||||||
export default function Home({ dataset, specs }) {
|
export default function Home({ dataset, specs }) {
|
||||||
|
|
||||||
@@ -144,9 +144,11 @@ export default function Home({ dataset, specs }) {
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h3 className="text-1xl">
|
<h3 className="text-1xl">
|
||||||
<a className="text-yellow-600" href={`/dataset/${resource.path}`}>
|
<Link href={`/dataset/${resource.path}`}>
|
||||||
{resource.format} ({filesize(resource.size, { bits: true })})
|
<a className="text-yellow-600">
|
||||||
|
{resource.format} ({filesize(resource.size, { bits: true })})
|
||||||
</a>
|
</a>
|
||||||
|
</Link>
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user