From af4660b4c4fea455dfffbf2d966bae425ed6effb Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Wed, 12 Feb 2020 21:25:07 +0100 Subject: viewer: project configuration - eof-last enforced --- viewer/src/components/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'viewer/src/components/index.ts') diff --git a/viewer/src/components/index.ts b/viewer/src/components/index.ts index 8e73274..ef55489 100644 --- a/viewer/src/components/index.ts +++ b/viewer/src/components/index.ts @@ -38,4 +38,4 @@ requireComponent.keys().forEach(fileName => { // otherwise fall back to module's root. componentConfig.default ?? componentConfig ) -}) \ No newline at end of file +}) -- cgit v1.2.3 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/index.ts') 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