Skip to content

Commit

Permalink
Merge pull request #258 from davidmyersdev/dm/update-deps
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
davidmyersdev authored Oct 26, 2023
2 parents 842ebe2 + 4535910 commit 00b9253
Show file tree
Hide file tree
Showing 7 changed files with 2,390 additions and 1,654 deletions.
2 changes: 1 addition & 1 deletion components/AppLayout.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { type LayoutKey } from '#build/types/layouts'
import type { LayoutKey } from '#build/types/layouts'
import Dashboard from '#root/layouts/dashboard.vue'
export default defineComponent({
Expand Down
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default defineNuxtConfig({
registerPlugin: true,
},
devOptions: {
enabled: false,
enabled: true,
type: 'module',
},
includeManifestIcons: true,
Expand Down
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"fuse.js": "^6.6.2",
"ink-mde": "^0.29.1",
"jszip": "^3.10.1",
"khroma": "^2.0.0",
"khroma": "^2.1.0",
"localforage": "^1.10.0",
"mermaid": "^9.4.3",
"micromark": "^3.2.0",
Expand All @@ -43,53 +43,53 @@
"moment": "^2.29.4",
"mousetrap": "^1.6.5",
"nanoid": "^3.3.6",
"overlayscrollbars": "^2.3.2",
"pinia": "^2.1.6",
"overlayscrollbars": "^2.4.3",
"pinia": "^2.1.7",
"remarkable": "^2.0.1",
"vellma": "^0.7.0",
"vue3-mq": "^3.1.3",
"vuex": "^4.1.0"
},
"devDependencies": {
"@heroicons/vue": "^2.0.18",
"@nuxtjs/tailwindcss": "^6.8.0",
"@nuxtjs/tailwindcss": "^6.8.1",
"@pinia/nuxt": "^0.4.11",
"@tailwindcss/typography": "^0.5.10",
"@types/file-saver": "^2.0.5",
"@types/mime-types": "^2.1.2",
"@types/node": "^18.18.3",
"@types/remarkable": "^2.0.4",
"@types/file-saver": "^2.0.6",
"@types/mime-types": "^2.1.3",
"@types/node": "^18.18.7",
"@types/remarkable": "^2.0.7",
"@vite-pwa/nuxt": "^0.0.4",
"@vue/test-utils": "^2.4.1",
"@vueuse/core": "^10.4.1",
"@vueuse/core": "^10.5.0",
"@vueuse/head": "^1.3.1",
"@vueuse/nuxt": "^9.13.0",
"@vueuse/rxjs": "^10.4.1",
"@vueuse/rxjs": "^10.5.0",
"autoprefixer": "^10.4.16",
"cypress": "^13.3.0",
"cypress": "^13.3.3",
"cypress-network-idle": "^1.14.2",
"deepmerge-ts": "^4.3.0",
"eslint": "^8.50.0",
"eslint": "^8.52.0",
"eslint-config-artisan": "^0.2.1",
"eslint-generate-todo": "^0.2.0",
"firebase-tools": "^12.6.1",
"happy-dom": "^12.6.0",
"firebase-tools": "^12.7.0",
"happy-dom": "^12.9.1",
"micromark": "^3.1.0",
"npm-run-all": "^4.1.5",
"nuxt": "^3.7.4",
"nuxt": "^3.8.0",
"postcss": "^8.4.31",
"remarkable-front-matter": "1.0.1-beta.1",
"rimraf": "^4.4.1",
"serve": "^14.2.1",
"tailwindcss": "^3.3.3",
"tsx": "^3.13.0",
"tailwindcss": "^3.3.5",
"tsx": "^3.14.0",
"typescript": "^5.2.2",
"vercel": "^28.20.0",
"vite-plugin-node-polyfills": "^0.14.1",
"vite-plugin-pwa": "^0.14.7",
"vite-svg-loader": "^3.6.0",
"vitest": "^0.34.6",
"vue-tsc": "^1.8.15",
"vue-tsc": "^1.8.21",
"workbox-build": "^6.6.0",
"workbox-window": "^6.6.0"
},
Expand Down
42 changes: 21 additions & 21 deletions pages/docs/import.vue
Original file line number Diff line number Diff line change
@@ -1,29 +1,10 @@
<template>
<div class="flex flex-col gap-4">
<div class="flex flex-col items-start gap-4">
<CoreButton :is="'label'" class="button button-size-medium button-color-gray gap-3">
<input @change="onFiles" type="file" class="hidden" accept=".md,.markdown,text/markdown" multiple />
<svg class="w-4" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.75" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round">
<path d="M10 13V4M10 4L13 7M10 4L7 7"/>
<path d="M2 13V15C2 15.5523 2.44772 16 3 16H17C17.5523 16 18 15.5523 18 15V13"/>
</svg>
<span>Choose Markdown files to import</span>
</CoreButton>
<ul v-if="fileNames.length" class="list-disc pl-4">
<li v-for="fileName in fileNames">{{ fileName }}</li>
</ul>
<button class="button button-size-medium button-color-gray" @click="handleImport">Import</button>
</div>
</div>
</template>

<script lang="ts">
import Doc from '#root/src/models/doc'
export default defineComponent({
setup() {
const { store } = useVuex()
const files = ref<Blob[]>([])
const files = ref<File[]>([])
const fileNames = computed(() => files.value.map(f => f.name))
const text = ref('')
Expand Down Expand Up @@ -82,7 +63,7 @@ export default defineComponent({
}
const onFiles = inputHandler((event) => {
files.value = Array.from(event.target?.files || []) as Blob[]
files.value = Array.from(event.target?.files || [])
})
return {
Expand All @@ -95,3 +76,22 @@ export default defineComponent({
},
})
</script>

<template>
<div class="flex flex-col gap-4">
<div class="flex flex-col items-start gap-4">
<CoreButton is="label" class="button button-size-medium button-color-gray gap-3">
<input type="file" class="hidden" accept=".md,.markdown,text/markdown" multiple @change="onFiles">
<svg class="w-4" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.75" stroke-miterlimit="5" stroke-linecap="round" stroke-linejoin="round">
<path d="M10 13V4M10 4L13 7M10 4L7 7" />
<path d="M2 13V15C2 15.5523 2.44772 16 3 16H17C17.5523 16 18 15.5523 18 15V13" />
</svg>
<span>Choose Markdown files to import</span>
</CoreButton>
<ul v-if="fileNames.length" class="list-disc pl-4">
<li v-for="fileName in fileNames">{{ fileName }}</li>
</ul>
<button class="button button-size-medium button-color-gray" @click="handleImport">Import</button>
</div>
</div>
</template>
Loading

0 comments on commit 00b9253

Please sign in to comment.