From 35aefea261ad556ce79dcc29d4971fe1016156c8 Mon Sep 17 00:00:00 2001 From: Misode Date: Mon, 23 Nov 2020 14:39:04 +0100 Subject: [PATCH] Rename files part 2 --- src/app/{app_.ts => App.ts} | 2 +- src/app/{locales_.ts => Locales.ts} | 2 +- src/app/Mounter.ts | 2 +- src/app/RegistryFetcher.ts | 2 +- src/app/Router.ts | 2 +- src/app/{utils_.ts => Utils.ts} | 0 src/app/components/Errors.ts | 6 +++--- src/app/components/Header.ts | 2 +- src/app/components/panels/PreviewPanel.ts | 2 +- src/app/components/panels/SourcePanel.ts | 2 +- src/app/components/panels/TreePanel.ts | 4 ++-- src/app/hooks/renderHtml.ts | 4 ++-- src/app/state/Property.ts | 2 +- src/app/views/Generator.ts | 2 +- src/app/views/Home.ts | 2 +- src/app/views/View.ts | 4 ++-- 16 files changed, 20 insertions(+), 20 deletions(-) rename src/app/{app_.ts => App.ts} (98%) rename src/app/{locales_.ts => Locales.ts} (97%) rename src/app/{utils_.ts => Utils.ts} (100%) diff --git a/src/app/app_.ts b/src/app/App.ts similarity index 98% rename from src/app/app_.ts rename to src/app/App.ts index d910fd58..d20b52a9 100644 --- a/src/app/app_.ts +++ b/src/app/App.ts @@ -8,7 +8,7 @@ import { RegistryFetcher } from './RegistryFetcher'; import { BiomeNoisePreview } from './preview/BiomeNoisePreview'; import { NoiseSettingsPreview } from './preview/NoiseSettingsPreview'; import config from '../config.json'; -import { locale, Locales } from './locales_'; +import { locale, Locales } from './Locales'; import { Tracker } from './Tracker'; const Versions: { diff --git a/src/app/locales_.ts b/src/app/Locales.ts similarity index 97% rename from src/app/locales_.ts rename to src/app/Locales.ts index 0c5ebf84..e70d997b 100644 --- a/src/app/locales_.ts +++ b/src/app/Locales.ts @@ -1,5 +1,5 @@ import English from '../locales/en.json' -import { App } from './app_' +import { App } from './App' interface Locale { [key: string]: string diff --git a/src/app/Mounter.ts b/src/app/Mounter.ts index d0ec91fe..09cf502d 100644 --- a/src/app/Mounter.ts +++ b/src/app/Mounter.ts @@ -1,5 +1,5 @@ import { ModelPath } from '@mcschema/core' -import { hexId } from './utils_' +import { hexId } from './Utils' type Registry = { [id: string]: (el: Element) => void diff --git a/src/app/RegistryFetcher.ts b/src/app/RegistryFetcher.ts index ffc3b6f8..1fad9ca5 100644 --- a/src/app/RegistryFetcher.ts +++ b/src/app/RegistryFetcher.ts @@ -1,5 +1,5 @@ import { CollectionRegistry } from '@mcschema/core' -import { checkVersion } from './app_' +import { checkVersion } from './App' import config from '../config.json' const localStorageCache = (version: string) => `cache_${version}` diff --git a/src/app/Router.ts b/src/app/Router.ts index 81a4bbec..0dc992bb 100644 --- a/src/app/Router.ts +++ b/src/app/Router.ts @@ -1,4 +1,4 @@ -import { App } from './app_'; +import { App } from './App'; import { View } from './views/View'; import { Home } from './views/Home' import { Generator } from './views/Generator' diff --git a/src/app/utils_.ts b/src/app/Utils.ts similarity index 100% rename from src/app/utils_.ts rename to src/app/Utils.ts diff --git a/src/app/components/Errors.ts b/src/app/components/Errors.ts index 98e87e3e..6882c5d9 100644 --- a/src/app/components/Errors.ts +++ b/src/app/components/Errors.ts @@ -1,10 +1,10 @@ import { DataModel } from '@mcschema/core'; -import { App } from '../app_'; -import { locale } from '../locales_'; +import { App } from '../App'; +import { locale } from '../Locales'; import { View } from '../views/View'; import { Octicon } from './Octicon'; import { Toggle } from './Toggle'; -import { htmlEncode } from '../utils_' +import { htmlEncode } from '../Utils' import { Tracker } from '../Tracker'; export const Errors = (view: View, model: DataModel) => { diff --git a/src/app/components/Header.ts b/src/app/components/Header.ts index 6d449a0d..c6aff938 100644 --- a/src/app/components/Header.ts +++ b/src/app/components/Header.ts @@ -1,4 +1,4 @@ -import { App } from '../app_'; +import { App } from '../App'; import { View } from '../views/View'; import { Dropdown } from './Dropdown'; import { Octicon } from './Octicon'; diff --git a/src/app/components/panels/PreviewPanel.ts b/src/app/components/panels/PreviewPanel.ts index ec1acc3c..3295faac 100644 --- a/src/app/components/panels/PreviewPanel.ts +++ b/src/app/components/panels/PreviewPanel.ts @@ -1,5 +1,5 @@ import { DataModel } from '@mcschema/core'; -import { App, Previews } from '../../app_'; +import { App, Previews } from '../../App'; import { BiomeNoisePreview } from '../../preview/BiomeNoisePreview'; import { Tracker } from '../../Tracker'; import { View } from '../../views/View'; diff --git a/src/app/components/panels/SourcePanel.ts b/src/app/components/panels/SourcePanel.ts index cb525948..42e8de12 100644 --- a/src/app/components/panels/SourcePanel.ts +++ b/src/app/components/panels/SourcePanel.ts @@ -3,7 +3,7 @@ import { Tracker } from '../../Tracker'; import { transformOutput } from '../../hooks/transformOutput'; import { View } from '../../views/View'; import { Octicon } from '../Octicon'; -import { App } from '../../app_'; +import { App } from '../../App'; export const SourcePanel = (view: View, model: DataModel) => { const updateContent = (el: HTMLTextAreaElement) => { diff --git a/src/app/components/panels/TreePanel.ts b/src/app/components/panels/TreePanel.ts index 33e9aa63..77d11007 100644 --- a/src/app/components/panels/TreePanel.ts +++ b/src/app/components/panels/TreePanel.ts @@ -1,12 +1,12 @@ import { DataModel, ModelPath, Path } from '@mcschema/core'; -import { App, checkVersion, Previews } from '../../app_'; +import { App, checkVersion, Previews } from '../../App'; import { Tracker } from '../../Tracker' import { View } from '../../views/View'; import { Octicon } from '../Octicon'; import { Mounter } from '../../Mounter'; import { renderHtml } from '../../hooks/renderHtml'; import config from '../../../config.json' -import { locale } from '../../locales_'; +import { locale } from '../../Locales'; import { BiomeNoisePreview } from '../../preview/BiomeNoisePreview'; const createPopupIcon = (type: string, icon: keyof typeof Octicon, popup: string) => { diff --git a/src/app/hooks/renderHtml.ts b/src/app/hooks/renderHtml.ts index 27e08949..e37bfc58 100644 --- a/src/app/hooks/renderHtml.ts +++ b/src/app/hooks/renderHtml.ts @@ -1,7 +1,7 @@ import { Hook, ModelPath, Path, StringHookParams, ValidationOption, EnumOption, INode, DataModel, MapNode, StringNode } from '@mcschema/core' -import { locale, segmentedLocale } from '../locales_' +import { locale, segmentedLocale } from '../Locales' import { Mounter } from '../Mounter' -import { hexId, htmlEncode } from '../utils_' +import { hexId, htmlEncode } from '../Utils' /** * Secondary model used to remember the keys of a map diff --git a/src/app/state/Property.ts b/src/app/state/Property.ts index 70f0992e..a5dc4fa2 100644 --- a/src/app/state/Property.ts +++ b/src/app/state/Property.ts @@ -1,4 +1,4 @@ -import { hexId } from "../utils_" +import { hexId } from "../Utils" type PropertyWatcher = (value: T, oldValue: T | null) => void type NamedPropertyWatcher = { diff --git a/src/app/views/Generator.ts b/src/app/views/Generator.ts index 520b9605..f3d5e5da 100644 --- a/src/app/views/Generator.ts +++ b/src/app/views/Generator.ts @@ -1,4 +1,4 @@ -import { App, checkVersion, Models } from '../app_' +import { App, checkVersion, Models } from '../App' import { View } from './View' import { Header } from '../components/Header' import { SplitGroup } from '../components/SplitGroup' diff --git a/src/app/views/Home.ts b/src/app/views/Home.ts index 32ba84f1..977c969f 100644 --- a/src/app/views/Home.ts +++ b/src/app/views/Home.ts @@ -1,4 +1,4 @@ -import { App } from '../app_' +import { App } from '../App' import { Header } from '../components/Header' import { View } from './View' import { Octicon } from '../components/Octicon' diff --git a/src/app/views/View.ts b/src/app/views/View.ts index 5d62764a..1d842fda 100644 --- a/src/app/views/View.ts +++ b/src/app/views/View.ts @@ -1,5 +1,5 @@ -import { locale } from "../locales_" -import { hexId } from "../utils_" +import { locale } from "../Locales" +import { hexId } from "../Utils" export class View { private registry: { [id: string]: (el: Element) => void } = {}