Skip to content

Commit

Permalink
Typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mewim committed Feb 8, 2024
1 parent 2fc201e commit 06adbc7
Showing 1 changed file with 15 additions and 40 deletions.
55 changes: 15 additions & 40 deletions src/components/DatasetView/DatasetMainView.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<template>
<div
v-if="schema"
ref="wrapper"
class="dataset-view__wrapper"
>
<div v-if="schema" ref="wrapper" class="dataset-view__wrapper">

Check warning on line 2 in src/components/DatasetView/DatasetMainView.vue

View workflow job for this annotation

GitHub Actions / Lint / Run linters

'ref' should be on a new line

Check warning on line 2 in src/components/DatasetView/DatasetMainView.vue

View workflow job for this annotation

GitHub Actions / Lint / Run linters

'class' should be on a new line

Check warning on line 2 in src/components/DatasetView/DatasetMainView.vue

View workflow job for this annotation

GitHub Actions / Build and push Docker image

'ref' should be on a new line

Check warning on line 2 in src/components/DatasetView/DatasetMainView.vue

View workflow job for this annotation

GitHub Actions / Build and push Docker image

'class' should be on a new line
<div
v-if="!isSchemaEmpty && isProduction && !datasetLoadingLog && modeStore.isReadWrite"
class="alert alert-warning"
Expand Down Expand Up @@ -35,69 +31,48 @@
database. However, please make sure there is no conflict with the existing schema.
</div>

<div
v-if="modeStore.isReadOnly"
class="alert alert-warning"
role="alert"
>
<div v-if="modeStore.isReadOnly" class="alert alert-warning" role="alert">

Check warning on line 34 in src/components/DatasetView/DatasetMainView.vue

View workflow job for this annotation

GitHub Actions / Lint / Run linters

'class' should be on a new line

Check warning on line 34 in src/components/DatasetView/DatasetMainView.vue

View workflow job for this annotation

GitHub Actions / Lint / Run linters

'role' should be on a new line

Check warning on line 34 in src/components/DatasetView/DatasetMainView.vue

View workflow job for this annotation

GitHub Actions / Build and push Docker image

'class' should be on a new line

Check warning on line 34 in src/components/DatasetView/DatasetMainView.vue

View workflow job for this annotation

GitHub Actions / Build and push Docker image

'role' should be on a new line
<i class="fa-solid fa-info-circle" />
KùzuExplorer is running in read-only mode. You can still review the schema of the
bundled datasets. If you want to load a dataset, please restart your KùzuExplorer
Docker image in read-write mode with an empty database.
</div>

<div
v-if="modeStore.isDemo"
class="alert alert-warning"
role="alert"
>
<div v-if="modeStore.isDemo" class="alert alert-warning" role="alert">

Check warning on line 41 in src/components/DatasetView/DatasetMainView.vue

View workflow job for this annotation

GitHub Actions / Lint / Run linters

'class' should be on a new line

Check warning on line 41 in src/components/DatasetView/DatasetMainView.vue

View workflow job for this annotation

GitHub Actions / Lint / Run linters

'role' should be on a new line

Check warning on line 41 in src/components/DatasetView/DatasetMainView.vue

View workflow job for this annotation

GitHub Actions / Build and push Docker image

'class' should be on a new line

Check warning on line 41 in src/components/DatasetView/DatasetMainView.vue

View workflow job for this annotation

GitHub Actions / Build and push Docker image

'role' should be on a new line
<i class="fa-solid fa-info-circle" />
KùzuExplorer is running in demo mode. You can still review the schema of the bundled
datasets. Loading a dataset is not possible in this demo. However, you can load a
bundled dataset or use your own dataset if you run KùzuExplorer locally. Please
refer to
<a
target="_blank"
href="https://kuzudb.com/docusaurus/kuzuexplorer/"
>
the documentation </a>for more information.
<a target="_blank" href="https://kuzudb.com/docusaurus/kuzuexplorer/">

Check warning on line 47 in src/components/DatasetView/DatasetMainView.vue

View workflow job for this annotation

GitHub Actions / Lint / Run linters

'href' should be on a new line

Check warning on line 47 in src/components/DatasetView/DatasetMainView.vue

View workflow job for this annotation

GitHub Actions / Build and push Docker image

'href' should be on a new line
the documentation </a

Check warning on line 48 in src/components/DatasetView/DatasetMainView.vue

View workflow job for this annotation

GitHub Actions / Lint / Run linters

Expected no line breaks before closing bracket, but 1 line break found

Check warning on line 48 in src/components/DatasetView/DatasetMainView.vue

View workflow job for this annotation

GitHub Actions / Build and push Docker image

Expected no line breaks before closing bracket, but 1 line break found
>for more information.
</div>
<div
v-if="!datasetLoadingLog"
class="form-group"
>
<div v-if="!datasetLoadingLog" class="form-group">

Check warning on line 51 in src/components/DatasetView/DatasetMainView.vue

View workflow job for this annotation

GitHub Actions / Lint / Run linters

'class' should be on a new line

Check warning on line 51 in src/components/DatasetView/DatasetMainView.vue

View workflow job for this annotation

GitHub Actions / Build and push Docker image

'class' should be on a new line
<label for="dataset-select">
<h6>Select a dataset from the list below to review its schema.</h6>
</label>
<select
id="dataset-select"
v-model="selectedDataset"
class="form-select"
>
<option
v-for="dataset in allDatasets"
:key="dataset"
:value="dataset"
>
<select id="dataset-select" v-model="selectedDataset" class="form-select">

Check warning on line 55 in src/components/DatasetView/DatasetMainView.vue

View workflow job for this annotation

GitHub Actions / Lint / Run linters

'v-model' should be on a new line

Check warning on line 55 in src/components/DatasetView/DatasetMainView.vue

View workflow job for this annotation

GitHub Actions / Build and push Docker image

'v-model' should be on a new line
<option v-for="dataset in allDatasets" :key="dataset" :value="dataset">
{{ dataset }}
</option>
</select>
</div>
<br>
<br />
<code v-if="selectedDatasetSchema || datasetLoadingLog">
<pre v-text="datasetLoadingLog ? datasetLoadingLog : selectedDatasetSchema" />
</code>
<br>
<br />
<div>
<button
v-if="!datasetLoadingEnded"
class="btn btn-lg btn-primary"
title="Load Dataset"
:disabled="
(!isSchemaEmpty && isProduction) ||
!selectedDatasetSchema ||
datasetLoadingLog ||
!modeStore.isReadWrite
!selectedDatasetSchema ||
datasetLoadingLog ||
!modeStore.isReadWrite
"
@click="copyDataset"
>
Expand Down Expand Up @@ -157,7 +132,7 @@ export default {
methods: {
fetchDatasets() {
Axios.get('/api/mode').then((response) => {
const isProduction = response.mode.isProduction;
const isProduction = response.data.isProduction;
this.isProduction = isProduction;
}).catch((error) => {
console.error(error);
Expand Down

0 comments on commit 06adbc7

Please sign in to comment.