Compare commits
12 commits
4b5efaa76e
...
bff7eca3a0
Author | SHA1 | Date | |
---|---|---|---|
![]() |
bff7eca3a0 | ||
84385a35f4 | |||
6952fa14b8 | |||
4a1eb8d3f9 | |||
13bb4330e5 | |||
31a4cb3c39 | |||
15c4e0b246 | |||
![]() |
b63607ff68 | ||
4f6b5bab31 | |||
c6211418a6 | |||
29d1f41de5 | |||
89e7f84469 |
8 changed files with 162 additions and 44 deletions
9
.woodpecker/cargo_check.yaml
Normal file
9
.woodpecker/cargo_check.yaml
Normal 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
|
9
.woodpecker/cargo_clippy.yaml
Normal file
9
.woodpecker/cargo_clippy.yaml
Normal 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
|
9
.woodpecker/cargo_test.yaml
Normal file
9
.woodpecker/cargo_test.yaml
Normal 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
|
|
@ -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
|
||||
|
|
97
flake.nix
97
flake.nix
|
@ -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
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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
71
pnpm-lock.yaml
generated
|
@ -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: {}
|
||||
|
|
Loading…
Add table
Reference in a new issue