Skip to content

Commit

Permalink
feat(problem): support for problems (#43)
Browse files Browse the repository at this point in the history
* chore: update spell check

* ci(release): fix version in ci

* feat(md): add markdown editor

* feat(problem): support create new problem

* chore: bump version

* chore: fix code spell check

* chore: fix code spell

* feat(problem): add problem page
  • Loading branch information
fu050409 authored Nov 27, 2024
1 parent ded0848 commit 1ef441e
Show file tree
Hide file tree
Showing 11 changed files with 461 additions and 17 deletions.
9 changes: 9 additions & 0 deletions .changes/problem-page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"algohub": patch:feat
---

Add page for problem

- Add support for microsoft Monaco editor and setup to run Monaco locally.
- Initial commit for submit code with specific language.
- Set `Rust` as default language for submit code.
6 changes: 4 additions & 2 deletions farm.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { defineConfig } from "@farmfe/core";
import vue from "@vitejs/plugin-vue";
import worker from "@farmfe/plugin-worker";
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: [],
plugins: [worker()],
vitePlugins: [
vue(),
Components({
Expand All @@ -22,6 +23,7 @@ export default defineConfig({
"@": path.resolve(__dirname, "src"),
},
},
treeShaking: false
},
server: {
port: 1420,
Expand All @@ -34,7 +36,7 @@ export default defineConfig({
port: 1421,
watchOptions: {
ignored: ["**/src-tauri/**"],
}
},
}
: undefined,
},
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@
"version:check": "node scripts/version-check.mjs"
},
"dependencies": {
"@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",
"axios": "^1.7.7",
"md-editor-v3": "^5.0.2",
"monaco-editor": "^0.52.0",
"pinia": "^2.2.6",
"pinia-plugin-persistedstate": "^4.1.3",
"primeicons": "^7.0.0",
Expand All @@ -35,6 +38,7 @@
"@primevue/auto-import-resolver": "^4.2.2",
"@tauri-apps/cli": "^2.1.0",
"@types/node": "^22.9.0",
"@types/path-browserify": "^1.0.3",
"@vitejs/plugin-vue": "^5.2.0",
"core-js": "^3.39.0",
"covector": "^0.12.3",
Expand Down
Loading

0 comments on commit 1ef441e

Please sign in to comment.