import { createApp } from 'vue';
import { createPinia } from 'pinia';

import router from './authentication/router';
import App from './authentication/App.vue';

import '@/scss/authentication.scss';

const app = createApp( App );

app.use( createPinia() );
app.use( router );

// Match the dashboard SPA's global property convention.
app.config.globalProperties.SimpleStats = SimpleStatsVue;
app.config.globalProperties.getImageUrl = function ( imageName ) {
	return SimpleStatsVue.assetsUrl + '/images/' + imageName;
};

app.mount( '#simplestats-authentication-app' );
