Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
fix: show documentations always, closes #182
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Aug 7, 2023
1 parent d27080f commit f5ac779
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/client/pages/documentations.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
<script setup lang="ts">
import { rpc } from '~/logic/rpc'
import type { DocumentInfo } from '~/types'
import { data } from '~/logic/documentations'
const items = ref(data)
const iframeViewUrl = ref('')
rpc.getPackages().then((res) => {
const packagesName = Object.keys(res.packages)
items.value = items.value.filter(item => packagesName.includes(item.id))
})
function navigate(data: DocumentInfo) {
if (data.openInBlank)
Expand All @@ -35,6 +29,6 @@ function back() {
</teleport>
</div>
<div v-else grid grid-cols-minmax-400px h-screen select-none gap3 overflow-scroll p4 class="no-scrollbar">
<DocDetails v-for="(item, index) in items" :key="index" :data="item" @navigate="navigate" />
<DocDetails v-for="(item, index) in data" :key="index" :data="item" @navigate="navigate" />
</div>
</template>

0 comments on commit f5ac779

Please sign in to comment.