- Add @malio/layer-ui as Nuxt layer (extends in nuxt.config.ts) - Migrate site/employee/contract filters to MalioSelectCheckbox / MalioInputText / MalioSelect on employees, calendar and hours screens - Migrate absence drawer selects + submit button to Malio (MalioSelect + MalioButton) - Migrate calendar "Ajouter une absence" / "Imprimer" actions to MalioButton - Drop now-unused EmployeeNameFilterInput and SiteFilterSelector components - Hours day view: resolve contract nature at selected date (WorkHourDayContext.contractNature) instead of employee.currentContractNature (today-based); fixes interim contracts showing as CDI when mission ended - Calendar: hide employees whose contract periods do not intersect the displayed month - Layout: scrollbar-gutter:stable on <main> to avoid horizontal shift when dropdowns open - Update functional-rules.md, in-app documentation, CLAUDE.md to match Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
44 lines
990 B
TypeScript
44 lines
990 B
TypeScript
export default defineNuxtConfig({
|
|
compatibilityDate: '2025-07-15',
|
|
devtools: {enabled: false},
|
|
ssr: false,
|
|
extends: ['@malio/layer-ui'],
|
|
app: {
|
|
baseURL: process.env.NODE_ENV === 'production'
|
|
? (process.env.NUXT_PUBLIC_APP_BASE || '/')
|
|
: '/'
|
|
},
|
|
modules: [
|
|
'@nuxtjs/tailwindcss',
|
|
'@pinia/nuxt',
|
|
'nuxt-toast',
|
|
'@nuxtjs/i18n',
|
|
'@nuxt/icon'
|
|
],
|
|
runtimeConfig: {
|
|
public: {
|
|
apiBase: process.env.NUXT_PUBLIC_API_BASE
|
|
}
|
|
},
|
|
devServer: {port: 3001},
|
|
toast: {
|
|
settings: {
|
|
timeout: 2000,
|
|
closeOnClick: true,
|
|
progressBar: false
|
|
}
|
|
},
|
|
i18n: {
|
|
strategy: 'no_prefix',
|
|
defaultLocale: 'fr',
|
|
langDir: 'locales',
|
|
locales: [
|
|
{code: 'fr', file: 'fr.json', name: 'Français'}
|
|
],
|
|
vueI18n: './i18n.config.ts'
|
|
},
|
|
typescript: {
|
|
strict: true
|
|
}
|
|
})
|