cattr-app/server-application

View on GitHub
resources/frontend/core/modules/Screenshots/module.init.js

Summary

Maintainability
A
0 mins
Test Coverage
export const ModuleConfig = {
    routerPrefix: 'screenshots',
    loadOrder: 20,
    moduleName: 'Screenshots',
};

export function init(context) {
    context.addRoute({
        path: '/screenshots',
        name: 'screenshots',
        component: () => import(/* webpackChunkName: "screenshots" */ './views/Screenshots.vue'),
        meta: {
            auth: true,
        },
    });

    context.addNavbarEntry({
        label: 'navigation.screenshots',
        to: {
            name: 'screenshots',
        },
    });

    context.addLocalizationData({
        en: require('./locales/en'),
        ru: require('./locales/ru'),
    });

    return context;
}