2023-02-18 11:43:12 -07:00
|
|
|
import { resolve } from 'path'
|
|
|
|
|
import svgLoader from 'vite-svg-loader'
|
2023-04-22 12:18:09 -07:00
|
|
|
import eslintPlugin from 'vite-plugin-eslint'
|
2023-02-18 11:43:12 -07:00
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
title: 'Omorphia',
|
|
|
|
|
description: 'A components library used for Modrinth.',
|
2023-03-13 13:28:30 -07:00
|
|
|
head: [['link', { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]],
|
2023-02-18 11:43:12 -07:00
|
|
|
themeConfig: {
|
|
|
|
|
sidebar: [
|
|
|
|
|
{
|
|
|
|
|
items: [
|
|
|
|
|
{ text: 'Introduction', link: '/' },
|
|
|
|
|
{ text: 'Setup', link: '/setup' },
|
2023-03-01 17:31:48 -07:00
|
|
|
],
|
2023-02-18 11:43:12 -07:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
text: 'Components',
|
|
|
|
|
items: [
|
2023-03-01 17:31:48 -07:00
|
|
|
{ text: 'Avatar', link: '/components/avatar' },
|
|
|
|
|
{ text: 'Badge', link: '/components/badge' },
|
2023-02-18 11:43:12 -07:00
|
|
|
{ text: 'Button', link: '/components/button' },
|
|
|
|
|
{ text: 'Card', link: '/components/card' },
|
2023-03-01 17:31:48 -07:00
|
|
|
{ text: 'Checkbox', link: '/components/checkbox' },
|
|
|
|
|
{ text: 'Chips', link: '/components/chips' },
|
2023-03-14 14:22:50 -07:00
|
|
|
{ text: 'File Input', link: '/components/file-input' },
|
|
|
|
|
{ text: 'Drop Area', link: '/components/drop-area' },
|
2023-03-01 17:31:48 -07:00
|
|
|
{ text: 'Icons', link: '/components/icons' },
|
|
|
|
|
{ text: 'Pagination', link: '/components/pagination' },
|
2023-03-24 15:15:34 -04:00
|
|
|
{ text: 'Modal', link: '/components/modal' },
|
|
|
|
|
{ text: 'Dropdown Select', link: '/components/dropdown-select' },
|
2023-03-07 16:59:21 -05:00
|
|
|
{ text: 'Project Card', link: '/components/project-card' },
|
|
|
|
|
{ text: 'Environment Indicator', link: '/components/environment-indicator' },
|
|
|
|
|
{ text: 'Categories', link: '/components/categories' },
|
2023-03-02 15:02:50 -05:00
|
|
|
{ text: 'Animated Logo', link: '/components/animated-logo' },
|
|
|
|
|
{ text: 'Text Logo', link: '/components/text-logo' },
|
2023-03-06 17:26:10 -05:00
|
|
|
{ text: 'Slider', link: '/components/slider' },
|
|
|
|
|
{ text: 'Text Inputs', link: '/components/text-inputs' },
|
2023-04-13 15:05:45 -04:00
|
|
|
{ text: 'Number Inputs', link: '/components/number-inputs' },
|
2023-03-14 14:22:50 -07:00
|
|
|
{ text: 'Search Filter', link: '/components/search-filter' },
|
2023-03-24 15:15:55 -04:00
|
|
|
{ text: 'Toggle', link: '/components/toggle' },
|
2023-03-26 17:32:25 -07:00
|
|
|
{ text: 'Promotion', link: '/components/promotion' },
|
2023-03-31 10:54:04 -07:00
|
|
|
{ text: 'Markdown', link: '/components/markdown' },
|
2023-04-02 01:53:29 -04:00
|
|
|
{ text: 'Copy Code', link: '/components/copy-code' },
|
2023-05-22 14:33:45 -07:00
|
|
|
{ text: 'Notifications', link: '/components/notifications' },
|
2023-03-01 17:31:48 -07:00
|
|
|
],
|
|
|
|
|
},
|
2023-02-18 11:43:12 -07:00
|
|
|
],
|
|
|
|
|
footer: {
|
2023-03-01 17:31:48 -07:00
|
|
|
message:
|
2023-05-22 14:33:45 -07:00
|
|
|
'Released under the <a href="https://github.com/modrinth/omoprhia/blob/main/LICENSE">AGPLv3 License</a>.',
|
2023-03-01 17:31:48 -07:00
|
|
|
copyright: 'Copyright © 2023-present <a href="https://modrinth.com">Rinth, Inc.</a>',
|
2023-02-18 11:43:12 -07:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
vite: {
|
|
|
|
|
plugins: [
|
|
|
|
|
svgLoader({
|
|
|
|
|
svgoConfig: {
|
|
|
|
|
plugins: [
|
|
|
|
|
{
|
|
|
|
|
name: 'preset-default',
|
|
|
|
|
params: {
|
|
|
|
|
overrides: {
|
|
|
|
|
removeViewBox: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
2023-03-01 17:31:48 -07:00
|
|
|
},
|
|
|
|
|
}),
|
2023-04-22 12:18:09 -07:00
|
|
|
eslintPlugin(),
|
2023-02-18 11:43:12 -07:00
|
|
|
],
|
|
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
'@': resolve(__dirname, '../../lib'),
|
2023-03-01 17:31:48 -07:00
|
|
|
omorphia: resolve(__dirname, '../../lib'),
|
2023-02-18 11:43:12 -07:00
|
|
|
},
|
|
|
|
|
dedupe: ['vue'],
|
2023-03-01 17:31:48 -07:00
|
|
|
},
|
|
|
|
|
},
|
2023-02-18 11:43:12 -07:00
|
|
|
}
|