Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 75 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ import EditorReadOnlyPlugin from './plugins/editor-read-only/index.js';
import EditorSpecOriginPlugin from './plugins/editor-spec-origin/index.js';
import EditorPersistencePlugin from './plugins/editor-persistence/index.js';

// from webpack at compile time
const { GIT_DIRTY, GIT_COMMIT, PACKAGE_VERSION } = buildInfo; // eslint-disable-line no-undef
window.versions = window.versions || {};
window.versions.swaggerEditor = `${PACKAGE_VERSION}/${GIT_COMMIT || 'unknown'}${
GIT_DIRTY ? '-dirty' : ''
}`;

const SafeRenderPlugin = (system) =>
SwaggerUI.plugins.SafeRender({
componentList: [
Expand Down