Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(org): create org page #103

Merged
merged 37 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
c59cd4d
release: alpha (#61)
fu050409 Nov 30, 2024
3c27e24
Merge branch 'main' into alpha
fu050409 Nov 30, 2024
885de38
release: bump version (#63)
github-actions[bot] Nov 30, 2024
9710c94
fix(lint): fix code spell check
fu050409 Nov 30, 2024
a243999
ci(release): remove `tailwindcss` building
fu050409 Nov 30, 2024
62d606c
Merge branch 'main' into alpha
fu050409 Nov 30, 2024
514f839
fix(profile): fix profile problem panel (#65)
fu050409 Nov 30, 2024
7703d20
chore: fix aur release
fu050409 Nov 30, 2024
ea4e3bb
Merge branch 'alpha' of github.com:swpu-acm/algohub into alpha
fu050409 Nov 30, 2024
2a9babd
release: bump version (#66)
github-actions[bot] Nov 30, 2024
a07cd8d
chore: fix code spell check
fu050409 Nov 30, 2024
539e48f
Merge branch 'alpha' of github.com:swpu-acm/algohub into alpha
fu050409 Nov 30, 2024
3cf98fb
feat: add `NProgress` bar (#67)
fu050409 Nov 30, 2024
053eb9a
release: bump version (#68)
github-actions[bot] Nov 30, 2024
d50148f
chore: fix aur ssh known hosts
fu050409 Nov 30, 2024
9bbb526
chore: fix version check
fu050409 Nov 30, 2024
7b6134b
release: alpha releases (#62)
fu050409 Dec 6, 2024
266bba2
chore: fix ci branches
fu050409 Dec 6, 2024
3f4a486
release: bump version (#96)
github-actions[bot] Dec 6, 2024
a8ceba7
feat(contest): support acc (#97)
fu050409 Dec 6, 2024
e986572
release: bump version (#98)
github-actions[bot] Dec 9, 2024
802cc86
feat(org): inrt ui
luo0602141017 Dec 13, 2024
965d469
feat(org): inrt ui
luo0602141017 Dec 13, 2024
8015f9c
feat(org): inrt ui
luo0602141017 Dec 14, 2024
70abf22
feat(org): inrt ui
luo0602141017 Dec 15, 2024
10b8793
feat(org): inrt ui
luo0602141017 Dec 15, 2024
121e4dc
feat(org): inrt ui
luo0602141017 Dec 16, 2024
3487fd6
Merge branch 'main' into feat/create-org
luo0602141017 Dec 16, 2024
68f03b2
feat(org): inrt ui
luo0602141017 Dec 16, 2024
bae1615
feat(org): inrt ui
luo0602141017 Dec 18, 2024
8cd12ce
Merge branch 'main' into feat/create-org
fu050409 Dec 19, 2024
db58480
feat(org): edit org page
luo0602141017 Dec 19, 2024
a48deac
Merge branch 'feat/create-org' of https://github.com/swpu-acm/algohub…
luo0602141017 Dec 19, 2024
e1b7515
Merge branch 'main' into feat/create-org
fu050409 Dec 19, 2024
19eb942
feat(org): edit org page
luo0602141017 Dec 19, 2024
b90c8bc
Merge branch 'feat/create-org' of https://github.com/swpu-acm/algohub…
luo0602141017 Dec 19, 2024
9dffdc8
Update src/views/org/create.vue
fu050409 Dec 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changes/birthday.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"algohub": patch:feat
---

Support for Birthday datetime picker in the register page.
5 changes: 5 additions & 0 deletions .changes/contest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"algohub": patch:feat
---

Support create new contest.
5 changes: 5 additions & 0 deletions .changes/fix-acc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"algohub": patch:fix
---

Fixed accuracy calculation in the contest.
5 changes: 5 additions & 0 deletions .changes/fix-md-preview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"algohub": patch:fix
---

Fix scroll height of rendered markdown in preview mode.
7 changes: 7 additions & 0 deletions .changes/fix-signup-birthday.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"algohub": patch:feat
---

Fixed the issue of not being able to sign up without a birthday.

> All fields are now not required.
5 changes: 5 additions & 0 deletions .changes/main-contest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"algohub": patch:feat
---

Support for contest page.
5 changes: 5 additions & 0 deletions .changes/n-progress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"algohub": patch:feat
---

Add `NProgress` loading bar to the whole frontend.
5 changes: 5 additions & 0 deletions .changes/optimize-editor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"algohub": patch:feat
---

Optimize monaco editor error notification.
5 changes: 5 additions & 0 deletions .changes/optimize-problem.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"algohub": patch:feat
---

Optimize problem pages, including create and edit pages.
13 changes: 13 additions & 0 deletions .changes/optimize-ui.md
Original file line number Diff line number Diff line change
@@ -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.
20 changes: 19 additions & 1 deletion .changes/pre.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,56 @@
{
"tag": "nightly",
"tag": "beta",
"changes": [
".changes/add-icon.md",
".changes/birthday.md",
".changes/breadcrumb-bg.md",
".changes/breadcrumb.md",
".changes/contest.md",
".changes/create-panel-bg.md",
".changes/create-panel.md",
".changes/create-problem.md",
".changes/fetch-version.md",
".changes/fix-acc.md",
".changes/fix-aur.md",
".changes/fix-dark-mode.md",
".changes/fix-layout.md",
".changes/fix-login.md",
".changes/fix-md-preview.md",
".changes/fix-sha256.md",
".changes/fix-signup-birthday.md",
".changes/fix-tauri-version.md",
".changes/fix-toast.md",
".changes/fix-windows-ci.md",
".changes/fix-windows.md",
".changes/index-page.md",
".changes/list-problem.md",
".changes/login.md",
".changes/main-contest.md",
".changes/n-progress.md",
".changes/optimize-dark.md",
".changes/optimize-editor.md",
".changes/optimize-monaco.md",
".changes/optimize-problem.md",
".changes/optimize-ui.md",
".changes/problem-page.md",
".changes/problem-panel.md",
".changes/refactor-asset.md",
".changes/refactor-login.md",
".changes/refactor-problem-create.md",
".changes/refactor-problem.md",
".changes/refactor-submit.md",
".changes/release-nightly.md",
".changes/release-url.md",
".changes/resize-toolbar.md",
".changes/rust-nightly.md",
".changes/rust-stable.md",
".changes/side-panel.md",
".changes/signup-panel.md",
".changes/splash.md",
".changes/submission.md",
".changes/update-icon.md",
".changes/update-profile.md",
".changes/upload-max.md",
".changes/use-farm.md",
".changes/user-home.md"
]
Expand Down
5 changes: 5 additions & 0 deletions .changes/problem-panel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"algohub": patch:fix
---

Fix multiple panels displaying on the user profile page.
5 changes: 5 additions & 0 deletions .changes/refactor-asset.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"algohub": patch:feat
---

Full rewrite asset logic, use latest api and support get assets by api.
5 changes: 5 additions & 0 deletions .changes/refactor-problem-create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"algohub": patch:refactor
---

Refactored problem creation page.
9 changes: 9 additions & 0 deletions .changes/refactor-problem.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"algohub": patch:refactor
---

Fully refactored the problem api to sync changes with the `algohub-server`, also:

- Fixed icon sizes in markdown editor.
- Extract supported languages from ts enum.
- Refactored problem editor.
5 changes: 5 additions & 0 deletions .changes/refactor-submit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"algohub": patch:refactor
---

Refactor and enable code submission in monaco editor.
5 changes: 5 additions & 0 deletions .changes/splash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"algohub": patch:feat
---

Add splash screen before loading index page.
5 changes: 5 additions & 0 deletions .changes/submission.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"algohub": patch:feat
---

Support auto load submissions in AlgoHub.
5 changes: 5 additions & 0 deletions .changes/upload-max.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"algohub": patch:fix
---

Fix upload max size limit.
5 changes: 4 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
"agplv",
"algohub",
"amannn",
"archlinux",
"cdylib",
"clippy",
"confirmationservice",
"covector",
"dtolnay",
"emptydirs",
"farmfe",
"Gridlines",
"icns",
"ICPC",
"jbolda",
Expand Down Expand Up @@ -53,6 +55,7 @@
"usetoast"
],
"ignorePaths": [
"pnpm-lock.yaml"
"pnpm-lock.yaml",
"CHANGELOG.md"
]
}
4 changes: 1 addition & 3 deletions .github/workflows/covector-version-or-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- beta
luo0602141017 marked this conversation as resolved.
Show resolved Hide resolved

permissions:
# required for npm provenance
Expand Down Expand Up @@ -128,9 +129,6 @@ jobs:
- name: Install frontend dependencies
run: pnpm install

- name: Build TailwindCSS
run: pnpx tailwindcss -i ./input.css -o ./src/assets/tailwind.css

- name: Bump Tauri version
run: pnpm version:bump tauri --version ${{ needs.version-or-publish.outputs.version }}

Expand Down
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,5 @@ dist-ssr
# unplugin-vue-components
components.d.ts

# Tailwind CSS
tailwind.css

# Autogenerated files
.aur_ssh_key
/release
6 changes: 5 additions & 1 deletion farm.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
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";

const host = process.env.TAURI_DEV_HOST;

export default defineConfig({
plugins: [worker()],
plugins: [worker(), postcss()],
vitePlugins: [
vue(),
Components({
Expand All @@ -24,6 +25,9 @@ export default defineConfig({
},
},
treeShaking: false,
define: {
"process.env.LOCAL": process.env.LOCAL ? true : false,
},
},
server: {
port: 1420,
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>AlgoHub</title>
</head>

<body class="bg-zinc-200 dark:bg-zinc-950">
<body class="bg-zinc-50 dark:bg-zinc-950">
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,21 @@
"publish:aur": "node scripts/release-aur.mjs"
},
"dependencies": {
"@farmfe/js-plugin-postcss": "^1.9.0",
"@farmfe/plugin-worker": "^0.0.6",
"@monaco-editor/loader": "^1.4.0",
"@primevue/forms": "^4.2.2",
"@primevue/themes": "^4.2.2",
"@tauri-apps/api": "^2.1.1",
"@tauri-apps/plugin-shell": "^2.0.1",
"autoprefixer": "^10.4.20",
"axios": "^1.7.7",
"md-editor-v3": "^5.0.2",
"monaco-editor": "^0.52.0",
"nprogress": "^0.2.0",
"pinia": "^2.2.6",
"pinia-plugin-persistedstate": "^4.1.3",
"postcss": "^8.4.49",
"primeicons": "^7.0.0",
"primevue": "^4.2.2",
"vue": "^3.5.13",
Expand All @@ -40,6 +44,7 @@
"@primevue/auto-import-resolver": "^4.2.2",
"@tauri-apps/cli": "^2.1.0",
"@types/node": "^22.9.0",
"@types/nprogress": "^0.2.3",
"@types/path-browserify": "^1.0.3",
"@vitejs/plugin-vue": "^5.2.0",
"archons": "^0.2.5",
Expand Down
Loading
Loading