- added own provider for drive methods
Some checks failed
CI Pipeline / japa-tests (push) Failing after 1m13s

- renamed middleware Role and Can to role_middleware and can_middleware
- added some typing for inertia vue3 components
- npm updates
This commit is contained in:
Kaimbacher 2024-04-23 19:36:45 +02:00
parent cb51a4136f
commit 296c8fd46e
67 changed files with 2515 additions and 1913 deletions

View file

@ -4,10 +4,10 @@
* Feel free to let us know via PR, if you find something broken in this config
* file.
*/
import { defineConfig } from '#providers/drive/src/types/define_config';
import env from '#start/env';
// import { driveConfig } from '@adonisjs/core/build/config';
import { driveConfig } from "@adonisjs/drive/build/config.js";
// import { driveConfig } from "@adonisjs/drive/build/config.js";
// import Application from '@ioc:Adonis/Core/Application';
/*
@ -19,7 +19,7 @@ import { driveConfig } from "@adonisjs/drive/build/config.js";
| defined inside the `contracts` directory.
|
*/
export default driveConfig({
export default defineConfig({
/*
|--------------------------------------------------------------------------
| Default disk

View file

@ -11,22 +11,22 @@ export default defineConfig({
* Data that should be shared with all rendered pages
*/
sharedData: {
errors: (ctx) => ctx.session.flashMessages.get('errors'),
errors: (ctx) => ctx.session?.flashMessages.get('errors'),
user_id: (ctx) => {
return ctx.session.flashMessages.get('user_id');
return ctx.session?.flashMessages.get('user_id');
},
flash: (ctx) => {
return {
message: ctx.session.flashMessages.get('message'),
warning: ctx.session.flashMessages.get('warning'),
message: ctx.session?.flashMessages.get('message'),
warning: ctx.session?.flashMessages.get('warning'),
};
},
// params: ({ params }) => params,
authUser: async ({ auth }: HttpContext) => {
if (auth.user) {
if (auth?.user) {
await auth.user.load('roles');
return auth.user;
// {
@ -38,6 +38,14 @@ export default defineConfig({
}
},
},
/**
* Options for the server-side rendering
*/
ssr: {
enabled: false,
entrypoint: 'inertia/app/ssr.ts',
},
});
// import { InertiaConfig } from '@ioc:EidelLev/Inertia';

View file

@ -7,8 +7,8 @@ interface OaiConfig {
}
const config: OaiConfig = {
max: {
listidentifiers: parseInt(env.get('OAI_LIST_SIZE', 100), 10),
listrecords: parseInt(env.get('OAI_LIST_SIZE', 100), 10),
listidentifiers: env.get('OAI_LIST_SIZE', 100),
listrecords: env.get('OAI_LIST_SIZE', 100),
},
workspacePath: 'workspace',
redis: {