Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
isamu committed Jan 30, 2025
1 parent 1b036df commit 4eb08b1
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@
</div>

<div v-if="selectedGraphName === 'stream'">
<div>streamData</div>
<div class="w-10/12 m-auto">
<textarea class="border-2 p-2 w-full" rows="20">{{ streamData }}</textarea>
</div>
<Stream :stream-data="streamData" />
</div>
<div v-if="selectedGraphName === 'stream2'">
<div>streamData</div>
Expand All @@ -37,25 +34,15 @@
</div>
</div>

<div class="mt-2">Graph Data</div>
<div class="w-10/12 m-auto">
<textarea class="border-2 p-2 w-full" rows="20">{{ selectedGraph }}</textarea>
</div>
<div>Result</div>
<div class="w-10/12 m-auto">
<textarea class="border-2 p-2 w-full" rows="20">{{ graphaiResponse }}</textarea>
</div>
<div>Log</div>
<div class="w-10/12 m-auto">
<textarea class="border-2 p-2 w-full" rows="20">{{ logs }}</textarea>
</div>
<GraphData :selected-graph="selectedGraph" />
<Result :graphai-response="graphaiResponse" />
<Logs :logs="logs" />
</div>
</div>
</template>

<script lang="ts">
import { defineComponent, ref, computed } from "vue";
import { GraphAI } from "graphai";
import * as agents from "@graphai/vanilla";
import { agentInfoWrapper } from "graphai/lib/utils/utils";
Expand All @@ -69,9 +56,19 @@ import { useStreamData, useGraphData } from "@/utils/stream";
import { useCytoscape } from "@receptron/graphai_vue_cytoscape";
import Stream from "../components/Stream.vue";
import GraphData from "../components/GraphData.vue";
import Result from "../components/Result.vue";
import Logs from "../components/Logs.vue";
export default defineComponent({
name: "HomePage",
components: {},
components: {
Stream,
GraphData,
Result,
Logs,
},
setup() {
const { graphdata_any, words } = useGraphData();
const graph_random = generateGraph();
Expand Down

0 comments on commit 4eb08b1

Please sign in to comment.