Skip to content

Commit

Permalink
Directly import languages/index.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Aug 29, 2023
1 parent d6b8db9 commit c6f3b74
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/components/api-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { keyed } from 'lit/directives/keyed.js';
import formatXml from 'xml-but-prettier';

import { copyToClipboard } from '../utils/common-utils.js';
import { getI18nText } from '../languages';
import { getI18nText } from '../languages/index.js';
import { schemaInObjectNotation, getTypeInfo, generateExample, isPatternProperty } from '../utils/schema-utils.js';
import './json-tree.js';
import './schema-tree.js';
Expand Down
2 changes: 1 addition & 1 deletion src/components/api-response.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { LitElement, html, css } from 'lit';
import { marked } from 'marked';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import { schemaInObjectNotation, generateExample, getTypeInfo } from '../utils/schema-utils.js';
import { getI18nText } from '../languages';
import { getI18nText } from '../languages/index.js';
import FontStyles from '../styles/font-styles.js';
import FlexStyles from '../styles/flex-styles.js';
import TableStyles from '../styles/table-styles.js';
Expand Down
2 changes: 1 addition & 1 deletion src/components/json-tree.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LitElement, html, css } from 'lit';
import { copyToClipboard } from '../utils/common-utils.js';
import { getI18nText } from '../languages';
import { getI18nText } from '../languages/index.js';
import FontStyles from '../styles/font-styles.js';
import BorderStyles from '../styles/border-styles.js';
import InputStyles from '../styles/input-styles.js';
Expand Down
2 changes: 1 addition & 1 deletion src/components/schema-tree.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { LitElement, html, css } from 'lit';
import { marked } from 'marked';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import { getI18nText } from '../languages';
import { getI18nText } from '../languages/index.js';
import FontStyles from '../styles/font-styles.js';
import SchemaStyles from '../styles/schema-styles.js';
import BorderStyles from '../styles/border-styles.js';
Expand Down
2 changes: 1 addition & 1 deletion src/openapi-explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import InfoStyles from './styles/info-styles.js';
import advancedSearchStyles from './styles/advanced-search-styles.js';

import { advancedSearch, getCurrentElement, replaceState, sleep } from './utils/common-utils.js';
import { initI18n } from './languages';
import { initI18n } from './languages/index.js';
import ProcessSpec from './utils/spec-parser.js';
import mainBodyTemplate from './templates/mainBodyTemplate.js';
import apiRequestStyles from './styles/api-request-styles.js';
Expand Down
2 changes: 1 addition & 1 deletion src/templates/code-samples-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { html } from 'lit';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import Prism from 'prismjs';
import { copyToClipboard } from '../utils/common-utils.js';
import { getI18nText } from '../languages';
import { getI18nText } from '../languages/index.js';

/* eslint-disable indent */
export default function codeSamplesTemplate(xCodeSamples) {
Expand Down
2 changes: 1 addition & 1 deletion src/templates/navbar-template.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { html } from 'lit';
import { marked } from 'marked';
import { componentIsInSearch, pathIsInSearch } from '../utils/common-utils.js';
import { getI18nText } from '../languages';
import { getI18nText } from '../languages/index.js';

function onExpandCollapse(tagId) {
const tag = this.resolvedSpec.tags.find(t => t.elementId === tagId);
Expand Down
2 changes: 1 addition & 1 deletion src/templates/overview-template.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { html } from 'lit';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import { marked } from 'marked';
import { getI18nText } from '../languages';
import { getI18nText } from '../languages/index.js';

/* eslint-disable indent */
export default function overviewTemplate() {
Expand Down
2 changes: 1 addition & 1 deletion src/templates/security-scheme-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { html } from 'lit';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import { marked } from 'marked';
import base64url from 'base64url';
import { getI18nText } from '../languages';
import { getI18nText } from '../languages/index.js';

function onApiKeyChange(apiKeyId, e) {
e.preventDefault();
Expand Down
2 changes: 1 addition & 1 deletion src/templates/server-template.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { html } from 'lit';
import { marked } from 'marked';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import { getI18nText } from '../languages';
import { getI18nText } from '../languages/index.js';

function onApiServerChange(e, server) {
if (e && e.target.checked) {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/common-utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getI18nText } from '../languages';
import { getI18nText } from '../languages/index.js';

/* For Delayed Event Handler Execution */
export function debounce(fn, delay) {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/spec-parser.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import OpenApiResolver from 'openapi-resolver/dist/openapi-resolver.browser';
import { marked } from 'marked';
import { invalidCharsRegEx } from './common-utils.js';
import { getI18nText } from '../languages';
import { getI18nText } from '../languages/index.js';
import cloneDeep from 'lodash.clonedeep';

export default async function ProcessSpec(specUrlOrObject, serverUrl = '') {
Expand Down

0 comments on commit c6f3b74

Please sign in to comment.