From ccecfd9421f4550a71134cd46e1388e486f8c564 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Tue, 28 Apr 2020 03:47:39 +0200 Subject: viewer: global formatting unification --- viewer/src/components/index.ts | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'viewer/src/components') diff --git a/viewer/src/components/index.ts b/viewer/src/components/index.ts index ef55489..559000e 100644 --- a/viewer/src/components/index.ts +++ b/viewer/src/components/index.ts @@ -17,25 +17,25 @@ -- along with this program. If not, see . */ -import Vue from 'vue' +import Vue from "vue" const requireComponent = require.context( - '@/components', - false, // Whether or not to look in subfolders - // The regular expression used to match base component filenames - /Ld[A-Z]\w+\.vue$/ + "@/components", + false, // Whether or not to look in subfolders + // The regular expression used to match base component filenames + /Ld[A-Z]\w+\.vue$/ ) requireComponent.keys().forEach(fileName => { - const componentConfig = requireComponent(fileName) - const componentName = fileName.split('/').pop()!.replace(/\.vue$/, ''); + const componentConfig = requireComponent(fileName) + const componentName = fileName.split("/").pop()!.replace(/\.vue$/, ""); - // Register component globally - Vue.component( - componentName, - // Look for the component options on `.default`, which will - // exist if the component was exported with `export default`, - // otherwise fall back to module's root. - componentConfig.default ?? componentConfig - ) + // Register component globally + Vue.component( + componentName, + // Look for the component options on `.default`, which will + // exist if the component was exported with `export default`, + // otherwise fall back to module's root. + componentConfig.default ?? componentConfig + ) }) -- cgit v1.2.3