{"size": 1125, "ext": "js", "max_stars_repo_path": "resources/js/app.js", "max_stars_repo_name": "Thavarshan/manuscrite", "max_stars_repo_stars_event_min_datetime": "2021-07-22T03:00:57.000Z", "max_stars_repo_stars_event_max_datetime": "2021-10-17T18:22:45.000Z", "max_issues_repo_path": "resources/js/app.js", "max_issues_repo_name": "Thavarshan/manuscrite", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "resources/js/app.js", "max_forks_repo_name": "Thavarshan/manuscrite", "max_forks_repo_forks_event_min_datetime": "2021-07-22T03:01:22.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-07T09:53:31.000Z"}
{"max_stars_count": 4, "max_issues_count": null, "max_forks_count": 2, "avg_line_length": 23.9361702128, "max_line_length": 76, "alphanum_fraction": 0.5795555556}
import config from './Config';
import axios from 'axios';
import { createApp, h } from 'vue';
import {
    App as InertiaApp,
    plugin as InertiaPlugin,
} from '@inertiajs/inertia-vue3';

import { diffForHumans, simple, expanded } from './Plugins/moment';
import { highlightCode } from './Plugins/prism';
import { InertiaProgress } from '@inertiajs/progress';

axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';

const app = document.getElementById('app');

createApp({
    metaInfo: {
        titleTemplate: (title) =>
            title ? `${title} - ${config('app.name')}` : config('app.name'),
    },

    render: () =>
        h(InertiaApp, {
            initialPage: JSON.parse(app.dataset.page),
            resolveComponent: (name) => require(`./Views/${name}`).default,
        }),
})
    .mixin({
        methods: {
            route,
            config,
            diffForHumans,
            simple,
            expanded,
        },
    })
    .use(InertiaPlugin)
    .mount(app);

InertiaProgress.init({
    delay: 250,
    color: '#F97316',
    includeCSS: true,
    showSpinner: false,
});
