run formater
All checks were successful
ci/woodpecker/push/check_fmt Pipeline was successful

This commit is contained in:
jopejoe1 2025-03-31 13:41:32 +02:00
parent 6ca637658f
commit c1264ac2fe
9 changed files with 41 additions and 46 deletions

View file

@ -1,2 +1 @@
# peer-group-grading

View file

@ -2,5 +2,4 @@ use actix_web::web::{self, ServiceConfig};
pub fn register_controllers(cfg: &mut ServiceConfig) {
cfg.service(web::scope("/users"));
}

View file

@ -1,5 +1,5 @@
use actix_session::{SessionMiddleware, storage::RedisSessionStore};
use actix_web::{App, HttpResponse, HttpServer, cookie::Key, middleware::Logger, web};
use actix_session::{storage::RedisSessionStore, SessionMiddleware};
use actix_web::{cookie::Key, middleware::Logger, web, App, HttpResponse, HttpServer};
mod controller;

View file

@ -1,41 +1,41 @@
# Running Migrator CLI
- Generate a new migration file
```sh
cargo run -- generate MIGRATION_NAME
```
```sh
cargo run -- generate MIGRATION_NAME
```
- Apply all pending migrations
```sh
cargo run
```
```sh
cargo run -- up
```
```sh
cargo run
```
```sh
cargo run -- up
```
- Apply first 10 pending migrations
```sh
cargo run -- up -n 10
```
```sh
cargo run -- up -n 10
```
- Rollback last applied migrations
```sh
cargo run -- down
```
```sh
cargo run -- down
```
- Rollback last 10 applied migrations
```sh
cargo run -- down -n 10
```
```sh
cargo run -- down -n 10
```
- Drop all tables from the database, then reapply all migrations
```sh
cargo run -- fresh
```
```sh
cargo run -- fresh
```
- Rollback all applied migrations, then reapply all migrations
```sh
cargo run -- refresh
```
```sh
cargo run -- refresh
```
- Rollback all applied migrations
```sh
cargo run -- reset
```
```sh
cargo run -- reset
```
- Check the status of all migrations
```sh
cargo run -- status
```
```sh
cargo run -- status
```

View file

@ -57,6 +57,7 @@
prettier = {
command = "prettier";
options = [ "--write" ];
excludes = [ "pnpm-lock.yaml" ];
includes = [
"*.css"
"*.html"

View file

@ -21,7 +21,7 @@ export default defineConfigWithVueTs(
pluginVue.configs['flat/essential'],
vueTsConfigs.recommended,
{
...pluginVitest.configs.recommended,
files: ['src/**/__tests__/*'],

View file

@ -1,9 +1,9 @@
<!DOCTYPE html>
<!doctype html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
</head>
<body>

View file

@ -7,14 +7,10 @@ import vueDevTools from 'vite-plugin-vue-devtools'
// https://vite.dev/config/
export default defineConfig({
plugins: [
vue(),
vueJsx(),
vueDevTools(),
],
plugins: [vue(), vueJsx(), vueDevTools()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
})

View file

@ -1,2 +1,2 @@
packages:
- 'frontend'
- "frontend"