diff --git a/components/Header.vue b/components/Header.vue index 4ceb5bc..0baa536 100644 --- a/components/Header.vue +++ b/components/Header.vue @@ -1,11 +1,25 @@ diff --git a/components/users/UsersProfile.vue b/components/users/UsersProfile.vue index 3268894..0d7b22d 100644 --- a/components/users/UsersProfile.vue +++ b/components/users/UsersProfile.vue @@ -2,7 +2,7 @@

絞り込み

@@ -33,7 +32,7 @@ @click="onClickFilterVisibilities(visibility)" />
-
+
+
diff --git a/nuxt.config.js b/nuxt.config.js index 5acfd99..9c988a9 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -80,7 +80,9 @@ export default { { src: '~/plugins/mavonEditor.ts', mode: 'client' }, { src: '~/plugins/localStorage.ts', mode: 'client' }, { src: '~/plugins/three.ts', mode: 'client' }, - { src: '~/plugins/dayjs.ts', mode: 'client' } + { src: '~/plugins/dayjs.ts', mode: 'client' }, + { src: '~/plugins/prism.ts', mode: 'client' }, + { src: '~/plugins/markdownit.ts', mode: 'client' } ], // Auto import components: https://go.nuxtjs.dev/config-components @@ -93,7 +95,6 @@ export default { '@nuxtjs/style-resources', '@nuxtjs/tailwindcss', '@nuxt/postcss8', - '@nuxtjs/markdownit', '@nuxtjs/composition-api/module', [ '@nuxtjs/google-gtag', @@ -104,8 +105,7 @@ export default { }, debug: true } - ], - '@nuxtjs/sitemap' + ] ], // Modules: https://go.nuxtjs.dev/config-modules @@ -165,27 +165,6 @@ export default { } }, - sitemap: { - hostname: process.env.BASE_URL, - defaults: { - lastmod: new Date(), - changefreq: 'always' - }, - cacheTime: 1000 * 60 * 60 * 24, - exclude: ['/tmp', '/login', '/discord', '/works/create', '/works/*/edit'], - async routes() { - return Promise.all([ - await axios.get(process.env.API_URL + '/users?limit=9999'), - await axios.get(process.env.API_URL + '/works?limit=9999') - ]).then(([users, works]) => { - const urls = [] - users.data.map((user) => urls.push({ route: `/users/${user.id}` })) - works.data.map((work) => urls.push({ route: `/works/${work.id}` })) - return urls - }) - } - }, - generate: { fallback: true, async routes() { diff --git a/package.json b/package.json index 1b856d4..a33ce90 100644 --- a/package.json +++ b/package.json @@ -30,19 +30,23 @@ "@nuxtjs/axios": "^5.13.6", "@nuxtjs/composition-api": "^0.33.1", "@nuxtjs/google-gtag": "^1.0.4", - "@nuxtjs/markdownit": "^2.0.0", - "@nuxtjs/sitemap": "^2.4.0", "@types/file-saver": "^2.0.5", + "@types/prismjs": "^1.26.0", "@types/three": "^0.146.0", + "clipboard": "^2.0.11", "core-js": "^3.26.1", "dayjs": "^1.11.6", "file-saver": "^2.0.5", "github-markdown-css": "^5.1.0", "hooper": "^0.3.4", + "katex": "^0.16.4", + "markdown-it": "^13.0.1", + "markdown-it-texmath": "^1.0.0", "mavon-editor": "^2.10.4", "nuxt": "^2.15.8", "nuxt-fontawesome": "^0.4.0", "nuxt-property-decorator": "^2.9.1", + "prismjs": "^1.29.0", "swiper": "^8.4.5", "three": "^0.146.0", "tsparticles": "^2.5.3", @@ -62,6 +66,7 @@ "@storybook/addon-actions": "^6.5.13", "@storybook/addon-viewport": "^6.5.13", "@storybook/addons": "^6.5.13", + "@types/katex": "^0.16.0", "@types/markdown-it": "^12.2.3", "@vue/test-utils": "^2.2.4", "autoprefixer": "^10.4.13", diff --git a/pages/index.vue b/pages/index.vue index ce6acb2..5368b5b 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,16 +1,17 @@