From c59cd4d2cafc5c89a3e7c97037560e41cb799e4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=90=91=E5=A4=9C?= <46275354+fu050409@users.noreply.github.com> Date: Sat, 30 Nov 2024 08:54:07 +0800 Subject: [PATCH 01/30] release: alpha (#61) --- .changes/optimize-ui.md | 13 + .changes/pre.json | 2 +- .../workflows/covector-version-or-publish.yml | 1 + .gitignore | 3 - farm.config.ts | 3 +- index.html | 2 +- package.json | 3 + pnpm-lock.yaml | 58 ++++- postcss.config.js | 6 + input.css => src/assets/tailwind.css | 0 src/components/UniversalToolBar.vue | 46 ++-- src/config.ts | 2 +- src/scripts/api.ts | 1 - src/views/account/[id].vue | 123 +++++---- src/views/contest/create.vue | 244 ++++++++++++++++++ src/views/dashboard.vue | 2 +- src/views/index.vue | 8 +- src/views/login.vue | 1 - src/views/problem/[id].vue | 21 +- src/views/problem/create.vue | 16 +- tailwind.config.js | 2 +- 21 files changed, 447 insertions(+), 110 deletions(-) create mode 100644 .changes/optimize-ui.md create mode 100644 postcss.config.js rename input.css => src/assets/tailwind.css (100%) create mode 100644 src/views/contest/create.vue diff --git a/.changes/optimize-ui.md b/.changes/optimize-ui.md new file mode 100644 index 0000000..6d3b787 --- /dev/null +++ b/.changes/optimize-ui.md @@ -0,0 +1,13 @@ +--- +"algohub": patch:perf +--- + +Optimize UI for better performance + +- Use `postcss` instead of use `tailwindcss` directly. +- Optimize color design in light mode. +- Add `loading` state for pages. +- Wrap problems list with PrimeVue `Panel` component. +- Fix bread crumps padding if no links. +- Remove `mode` and add `owner` when creating a problem. +- Prepare for `alpha` release. diff --git a/.changes/pre.json b/.changes/pre.json index 2c90dce..cc62a40 100644 --- a/.changes/pre.json +++ b/.changes/pre.json @@ -1,5 +1,5 @@ { - "tag": "nightly", + "tag": "alpha", "changes": [ ".changes/add-icon.md", ".changes/breadcrumb.md", diff --git a/.github/workflows/covector-version-or-publish.yml b/.github/workflows/covector-version-or-publish.yml index 9ec68b6..a6e8c77 100644 --- a/.github/workflows/covector-version-or-publish.yml +++ b/.github/workflows/covector-version-or-publish.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - alpha permissions: # required for npm provenance diff --git a/.gitignore b/.gitignore index 9259d26..1aa9ee7 100644 --- a/.gitignore +++ b/.gitignore @@ -26,8 +26,5 @@ dist-ssr # unplugin-vue-components components.d.ts -# Tailwind CSS -tailwind.css - # Autogenerated files .aur_ssh_key diff --git a/farm.config.ts b/farm.config.ts index a8c8715..9383f09 100644 --- a/farm.config.ts +++ b/farm.config.ts @@ -1,6 +1,7 @@ import { defineConfig } from "@farmfe/core"; import vue from "@vitejs/plugin-vue"; import worker from "@farmfe/plugin-worker"; +import postcss from "@farmfe/js-plugin-postcss"; import Components from "unplugin-vue-components/vite"; import { PrimeVueResolver } from "@primevue/auto-import-resolver"; import path from "path"; @@ -8,7 +9,7 @@ import path from "path"; const host = process.env.TAURI_DEV_HOST; export default defineConfig({ - plugins: [worker()], + plugins: [worker(), postcss()], vitePlugins: [ vue(), Components({ diff --git a/index.html b/index.html index 2d79ea2..4b4234d 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@