Skip to content

Commit

Permalink
Import common-utils as javascript import. fix #248
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Apr 17, 2024
1 parent a3b55b8 commit 0705244
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/api-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import formatXml from 'xml-but-prettier';

import { getI18nText } from '../languages/index.js';
import { schemaInObjectNotation, getTypeInfo, generateExample, isPatternProperty } from '../utils/schema-utils.js';
import { toMarkdown } from '../utils/common-utils';
import { toMarkdown } from '../utils/common-utils.js';
import './schema-tree.js';
import getRequestFormTable from './request-form-table.js';
import './tag-input.js';
Expand Down
2 changes: 1 addition & 1 deletion src/components/request-form-table.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable indent */
import { html } from 'lit';
import { toMarkdown } from '../utils/common-utils';
import { toMarkdown } from '../utils/common-utils.js';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import { isPatternProperty } from '../utils/schema-utils.js';
import { map } from 'lit/directives/map.js';
Expand Down
2 changes: 1 addition & 1 deletion src/components/schema-table.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { LitElement, html, css } from 'lit';
import { toMarkdown } from '../utils/common-utils';
import { toMarkdown } from '../utils/common-utils.js';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import FontStyles from '../styles/font-styles.js';
import SchemaStyles from '../styles/schema-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,5 +1,5 @@
import { LitElement, html, css } from 'lit';
import { toMarkdown } from '../utils/common-utils';
import { toMarkdown } from '../utils/common-utils.js';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import { getI18nText } from '../languages/index.js';
import FontStyles from '../styles/font-styles.js';
Expand Down
2 changes: 1 addition & 1 deletion src/templates/components-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { schemaInObjectNotation } from '../utils/schema-utils.js';
import { html } from 'lit';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import { toMarkdown } from '../utils/common-utils';
import { toMarkdown } from '../utils/common-utils.js';
import '../components/schema-tree.js';
import { getI18nText } from '../languages/index.js';

Expand Down
3 changes: 1 addition & 2 deletions src/templates/endpoint-template.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { html } from 'lit';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import { toMarkdown } from '../utils/common-utils';
import '../components/api-request.js';
import '../components/api-response.js';
import codeSamplesTemplate from './code-samples-template.js';
import callbackTemplate from './callback-template.js';
import { pathSecurityTemplate } from './security-scheme-template.js';
import { getCurrentElement, pathIsInSearch, replaceState } from '../utils/common-utils.js';
import { getCurrentElement, pathIsInSearch, replaceState, toMarkdown } from '../utils/common-utils.js';

function toggleExpand(path) {
if (path.expanded) {
Expand Down
2 changes: 1 addition & 1 deletion src/templates/expanded-endpoint-template.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { html } from 'lit';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import { getSanitizedUrl, toMarkdown } from '../utils/common-utils';
import { getSanitizedUrl, toMarkdown } from '../utils/common-utils.js';
import { pathSecurityTemplate } from './security-scheme-template.js';
import codeSamplesTemplate from './code-samples-template.js';
import callbackTemplate from './callback-template.js';
Expand Down
2 changes: 1 addition & 1 deletion src/templates/overview-template.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { html } from 'lit';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import { getSanitizedEmail, getSanitizedUrl, toMarkdown } from '../utils/common-utils';
import { getSanitizedEmail, getSanitizedUrl, toMarkdown } from '../utils/common-utils.js';
import { getI18nText } from '../languages/index.js';

/* eslint-disable indent */
Expand Down
2 changes: 1 addition & 1 deletion src/templates/security-scheme-template.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { html } from 'lit';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import { toMarkdown } from '../utils/common-utils';
import { toMarkdown } from '../utils/common-utils.js';
import base64url from 'base64url';
import { getI18nText } from '../languages/index.js';

Expand Down
2 changes: 1 addition & 1 deletion src/templates/server-template.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { html } from 'lit';
import { toMarkdown } from '../utils/common-utils';
import { toMarkdown } from '../utils/common-utils.js';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import { getI18nText } from '../languages/index.js';

Expand Down

0 comments on commit 0705244

Please sign in to comment.