Compare commits

...

12 commits

Author SHA1 Message Date
jopejoe1
bff7eca3a0 add various cargo ci checks
All checks were successful
ci/woodpecker/pr/cargo_check Pipeline was successful
ci/woodpecker/pr/cargo_clippy Pipeline was successful
ci/woodpecker/pr/cargo_test Pipeline was successful
ci/woodpecker/pr/check_fmt Pipeline was successful
2025-04-04 13:20:52 +02:00
84385a35f4 Merge pull request 'Adding PrimeVue' (#37) from frontend/adding-PrimeVue into main
Reviewed-on: #37
2025-04-04 13:15:24 +02:00
6952fa14b8 Leck meine Pipeline
All checks were successful
ci/woodpecker/pr/check_fmt Pipeline was successful
2025-04-04 13:09:16 +02:00
4a1eb8d3f9 Merge pull request 'add cargo to dev shell' (#39) from nix-update-dev-shell into main
Reviewed-on: #39
2025-04-04 13:07:19 +02:00
13bb4330e5 fixxes
Some checks failed
ci/woodpecker/pr/check_fmt Pipeline failed
2025-04-04 12:53:14 +02:00
31a4cb3c39 Merge branch 'frontend/adding-PrimeVue' of https://git.mixel.cloud/Turbo/peer-group-grading into frontend/adding-PrimeVue 2025-04-04 12:52:26 +02:00
15c4e0b246 formating 2025-04-04 12:50:34 +02:00
jopejoe1
b63607ff68 add cargo to dev shell
All checks were successful
ci/woodpecker/pr/check_fmt Pipeline was successful
2025-04-04 12:23:13 +02:00
4f6b5bab31 Adding primevue to project
Some checks failed
ci/woodpecker/pr/check_fmt Pipeline failed
2025-04-04 11:48:14 +02:00
c6211418a6 Adding PrimeVue dependencies 2025-04-04 11:48:14 +02:00
29d1f41de5 Adding primevue to project 2025-04-04 11:21:19 +02:00
89e7f84469 Adding PrimeVue dependencies 2025-04-04 11:20:46 +02:00
8 changed files with 162 additions and 44 deletions

View file

@ -0,0 +1,9 @@
when:
- event: pull_request
steps:
- name: "Run cargo check"
image: docker.nix-community.org/nixpkgs/nix-flakes
commands:
- nix shell github:nixos/nixpkgs/nixos-unstable#cargo github:nixos/nixpkgs/nixos-unstable#gcc
- cargo check --workspace --all-targets

View file

@ -0,0 +1,9 @@
when:
- event: pull_request
steps:
- name: "Run cargo clippy"
image: docker.nix-community.org/nixpkgs/nix-flakes
commands:
- nix shell github:nixos/nixpkgs/nixos-unstable#clippy github:nixos/nixpkgs/nixos-unstable#cargo github:nixos/nixpkgs/nixos-unstable#gcc
- cargo clippy

View file

@ -0,0 +1,9 @@
when:
- event: pull_request
steps:
- name: "Run cargo test"
image: docker.nix-community.org/nixpkgs/nix-flakes
commands:
- nix shell github:nixos/nixpkgs/nixos-unstable#cargo github:nixos/nixpkgs/nixos-unstable#gcc
- cargo test --workspace --all-targets

View file

@ -2,7 +2,7 @@ when:
- event: pull_request
steps:
- name: "Run nix flake check"
- name: "Run treefmt"
image: docker.nix-community.org/nixpkgs/nix-flakes
commands:
- nix fmt -- --fail-on-change

View file

@ -24,58 +24,69 @@
packages = with pkgs; [
corepack_latest
nodejs
cargo
clippy
];
};
}
);
packages = forSystems (
system:
let
pkgs = pkgs' system;
in
{
fmt = pkgs.treefmt.withConfig {
runtimeInputs = with pkgs; [
nixfmt-rfc-style
nodePackages.prettier
rustfmt
];
settings = {
tree-root-file = ".git/index";
formatter = {
nixfmt = {
command = "nixfmt";
includes = [ "*.nix" ];
};
rustfmt = {
command = "rustfmt";
options = [
"--edition"
"2018"
];
includes = [ "*.rs" ];
};
prettier = {
command = "prettier";
options = [ "--write" ];
excludes = [ "pnpm-lock.yaml" ];
includes = [
"*.css"
"*.html"
"*.js"
"*.json"
"*.jsx"
"*.md"
"*.mdx"
"*.scss"
"*.ts"
"*.yaml"
"*.yml"
"*.vue"
];
};
};
};
};
}
);
formatter = forSystems (
system:
let
pkgs = pkgs' system;
in
pkgs.treefmt.withConfig {
runtimeInputs = with pkgs; [
nixfmt-rfc-style
nodePackages.prettier
rustfmt
];
settings = {
tree-root-file = ".git/index";
formatter = {
nixfmt = {
command = "nixfmt";
includes = [ "*.nix" ];
};
rustfmt = {
command = "rustfmt";
options = [
"--edition"
"2018"
];
includes = [ "*.rs" ];
};
prettier = {
command = "prettier";
options = [ "--write" ];
excludes = [ "pnpm-lock.yaml" ];
includes = [
"*.css"
"*.html"
"*.js"
"*.json"
"*.jsx"
"*.md"
"*.mdx"
"*.scss"
"*.ts"
"*.yaml"
"*.yml"
"*.vue"
];
};
};
};
}
self.outputs.packages.${system}.fmt
);
};
}

View file

@ -14,7 +14,9 @@
"format": "prettier --write src/"
},
"dependencies": {
"@primeuix/themes": "^1.0.1",
"pinia": "^3.0.1",
"primevue": "^4.3.3",
"vue": "^3.5.13",
"vue-router": "^4.5.0"
},

View file

@ -2,12 +2,19 @@ import './assets/main.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import PrimeVue from 'primevue/config'
import Aura from '@primeuix/themes/aura'
import App from './App.vue'
import router from './router'
const app = createApp(App)
app.use(PrimeVue, {
theme: {
preset: Aura,
},
})
app.use(createPinia())
app.use(router)

71
pnpm-lock.yaml generated
View file

@ -10,9 +10,15 @@ importers:
frontend:
dependencies:
'@primeuix/themes':
specifier: ^1.0.1
version: 1.0.1
pinia:
specifier: ^3.0.1
version: 3.0.1(typescript@5.8.2)(vue@3.5.13(typescript@5.8.2))
primevue:
specifier: ^4.3.3
version: 4.3.3(vue@3.5.13(typescript@5.8.2))
vue:
specifier: ^3.5.13
version: 3.5.13(typescript@5.8.2)
@ -516,6 +522,30 @@ packages:
'@polka/url@1.0.0-next.28':
resolution: {integrity: sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw==}
'@primeuix/styled@0.5.1':
resolution: {integrity: sha512-5Ftw/KSauDPClQ8F2qCyCUF7cIUEY4yLNikf0rKV7Vsb8zGYNK0dahQe7CChaR6M2Kn+NA2DSBSk76ZXqj6Uog==}
engines: {node: '>=12.11.0'}
'@primeuix/styles@1.0.1':
resolution: {integrity: sha512-R7SX001ILHIJM9hh1opbsuOFFK8dOM8GY1y99jaCFnAc5gGy3mFPJMhoexRYV1a6UZ2YbfcsQVPbIhoONI1gfg==}
'@primeuix/themes@1.0.1':
resolution: {integrity: sha512-RllttI3oGTZa66UQDCIA2lPnJvO/xqtNpy+0eNql6fIxdS2AUg5n7L81jTZrHNZ+31T5OBzL/SGFCDycmHTz2g==}
'@primeuix/utils@0.5.3':
resolution: {integrity: sha512-7SGh7734wcF1/uK6RzO6Z6CBjGQ97GDHfpyl2F1G/c7R0z9hkT/V72ypDo82AWcCS7Ta07oIjDpOCTkSVZuEGQ==}
engines: {node: '>=12.11.0'}
'@primevue/core@4.3.3':
resolution: {integrity: sha512-kSkN5oourG7eueoFPIqiNX3oDT/f0I5IRK3uOY/ytz+VzTZp5yuaCN0Nt42ZQpVXjDxMxDvUhIdaXVrjr58NhQ==}
engines: {node: '>=12.11.0'}
peerDependencies:
vue: ^3.5.0
'@primevue/icons@4.3.3':
resolution: {integrity: sha512-ouQaxHyeFB6MSfEGGbjaK5Qv9efS1xZGetZoU5jcPm090MSYLFtroP1CuK3lZZAQals06TZ6T6qcoNukSHpK5w==}
engines: {node: '>=12.11.0'}
'@rollup/pluginutils@5.1.4':
resolution: {integrity: sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==}
engines: {node: '>=14.0.0'}
@ -1713,6 +1743,10 @@ packages:
resolution: {integrity: sha512-4yf0QO/sllf/1zbZWYnvWw3NxCQwLXKzIj0G849LSufP15BXKM0rbD2Z3wVnkMfjdn/CB0Dpp444gYAACdsplg==}
engines: {node: '>=18'}
primevue@4.3.3:
resolution: {integrity: sha512-nooYVoEz5CdP3EhUkD6c3qTdRmpLHZh75fBynkUkl46K8y5rksHTjdSISiDijwTA5STQIOkyqLb+RM+HQ6nC1Q==}
engines: {node: '>=12.11.0'}
proto-list@1.2.4:
resolution: {integrity: sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==}
@ -2550,6 +2584,33 @@ snapshots:
'@polka/url@1.0.0-next.28': {}
'@primeuix/styled@0.5.1':
dependencies:
'@primeuix/utils': 0.5.3
'@primeuix/styles@1.0.1':
dependencies:
'@primeuix/styled': 0.5.1
'@primeuix/themes@1.0.1':
dependencies:
'@primeuix/styled': 0.5.1
'@primeuix/utils@0.5.3': {}
'@primevue/core@4.3.3(vue@3.5.13(typescript@5.8.2))':
dependencies:
'@primeuix/styled': 0.5.1
'@primeuix/utils': 0.5.3
vue: 3.5.13(typescript@5.8.2)
'@primevue/icons@4.3.3(vue@3.5.13(typescript@5.8.2))':
dependencies:
'@primeuix/utils': 0.5.3
'@primevue/core': 4.3.3(vue@3.5.13(typescript@5.8.2))
transitivePeerDependencies:
- vue
'@rollup/pluginutils@5.1.4(rollup@4.37.0)':
dependencies:
'@types/estree': 1.0.6
@ -3779,6 +3840,16 @@ snapshots:
dependencies:
parse-ms: 4.0.0
primevue@4.3.3(vue@3.5.13(typescript@5.8.2)):
dependencies:
'@primeuix/styled': 0.5.1
'@primeuix/styles': 1.0.1
'@primeuix/utils': 0.5.3
'@primevue/core': 4.3.3(vue@3.5.13(typescript@5.8.2))
'@primevue/icons': 4.3.3(vue@3.5.13(typescript@5.8.2))
transitivePeerDependencies:
- vue
proto-list@1.2.4: {}
punycode@2.3.1: {}