diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 249559342..0ccca964f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ jobs: node-version: 18.x - name: Get yarn cache id: yarn-cache - run: echo "DIR=$(yarn cache dir)" >> $GITHUB_OUTPUT + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - uses: actions/cache@v3 with: path: ${{ steps.yarn-cache.outputs.dir }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1a8c40dec..1088456ff 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,7 +3,7 @@ name: Publish Package on: push: tags: - - "v*" + - 'v*' jobs: publish: @@ -21,8 +21,6 @@ jobs: - name: Install deps run: npm run build - env: - PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1" - name: Publish package run: npm publish diff --git a/README.md b/README.md index 970926040..31d914596 100644 --- a/README.md +++ b/README.md @@ -1,46 +1,3 @@ # omorphia -This template should help get you started developing with Vue 3 in Vite. - -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin). - -## Type Support for `.vue` Imports in TS - -TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types. - -If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps: - -1. Disable the built-in TypeScript Extension - 1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette - 2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)` -2. Reload the VSCode window by running `Developer: Reload Window` from the command palette. - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). - -## Project Setup - -```sh -npm install -``` - -### Compile and Hot-Reload for Development - -```sh -npm run dev -``` - -### Type-Check, Compile and Minify for Production - -```sh -npm run build -``` - -### Lint with [ESLint](https://eslint.org/) - -```sh -npm run lint -``` +Omorphia is modrinth's style and component library. See [omorphia.modrinth.com](https://omorphia.modrinth.com) for more information. diff --git a/docs/.postcssrc.cjs b/docs/.postcssrc.cjs index 186d3c3a3..37c3f9ddf 100644 --- a/docs/.postcssrc.cjs +++ b/docs/.postcssrc.cjs @@ -6,7 +6,7 @@ module.exports = { transform(prefix, _selector) { const [selector, pseudo = ''] = _selector.split(/(:\S*)$/) return selector + prefix + pseudo - } - } - } + }, + }, + }, } diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 05eff9bb7..e029bfea8 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -4,9 +4,7 @@ import svgLoader from 'vite-svg-loader' export default { title: 'Omorphia', description: 'A components library used for Modrinth.', - head: [ - ['link', { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }], - ], + head: [['link', { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]], themeConfig: { sidebar: [ { diff --git a/lib/assets/styles/defaults.scss b/lib/assets/styles/defaults.scss index 454648481..3c8274fea 100644 --- a/lib/assets/styles/defaults.scss +++ b/lib/assets/styles/defaults.scss @@ -51,7 +51,7 @@ a.uncolored { color: inherit; } -input[type="text"] { +input[type='text'] { border-radius: var(--radius-md); box-sizing: border-box; border: 2px solid transparent; @@ -137,7 +137,7 @@ svg { .button-animation { transition: opacity 0.5s ease-in-out, filter 0.2s ease-in-out, transform 0.05s ease-in-out, - outline 0.2s ease-in-out; + outline 0.2s ease-in-out; &:active:not(&:disabled) { transform: scale(0.95); diff --git a/lib/components/base/Button.vue b/lib/components/base/Button.vue index 11341139d..51b9b794d 100644 --- a/lib/components/base/Button.vue +++ b/lib/components/base/Button.vue @@ -26,9 +26,7 @@ const props = defineProps({ }, }) -const accentedButton = computed( - () => ['danger', 'primary'].includes(props.color) -) +const accentedButton = computed(() => ['danger', 'primary'].includes(props.color))