Skip to content

Commit

Permalink
refactor: remove unused pretty-code-viewer component
Browse files Browse the repository at this point in the history
  • Loading branch information
amoncaldas committed Nov 25, 2021
1 parent 4c2156b commit 2efaf0a
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 159 deletions.
6 changes: 1 addition & 5 deletions src/fragments/dialogs/confirm/Confirm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@
<h3>{{confirmTitle}}</h3>
</div>
<div slot="content">
<pretty-code-viewer v-if="textIsMarkdown" :source="confirmText" max-height-minimized="100%"></pretty-code-viewer>
<div v-else v-html="confirmText"></div>
<div class="code-container" v-if="code">
<pretty-code-viewer :level="3" :source="code" max-height-minimized="100%"></pretty-code-viewer>
</div>
<div v-html="confirmText"></div>
</div>
<div slot="footer" class="text-right">
<v-spacer></v-spacer>
Expand Down
6 changes: 0 additions & 6 deletions src/fragments/dialogs/confirm/confirm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import PrettyCodeViewer from '@/fragments/pretty-code-viewer/PrettyCodeViewer'
import JsonTree from 'ors-vue-json-tree'
import utils from '@/support/utils'
export default {
data: () => ({
Expand Down Expand Up @@ -56,9 +54,5 @@ export default {
this.eventBus.$on('triggerConfirm', (confirm) => {
this.showDialog(confirm)
})
},
components: {
PrettyCodeViewer,
JsonTree
}
}
6 changes: 1 addition & 5 deletions src/fragments/dialogs/info/Info.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@
<h3>{{infoTitle}}</h3>
</div>
<div slot="content" >
<pretty-code-viewer v-if="textIsMarkdown" :source="infoText" max-height-minimized="100%"></pretty-code-viewer>
<div v-else v-html="infoText"></div>
<div class="code-container" v-if="code">
<pretty-code-viewer :level="3" :source="code" max-height-minimized="100%"></pretty-code-viewer>
</div>
<div v-html="infoText"></div>
</div>
<div slot="footer" class="text-right">
<v-spacer></v-spacer>
Expand Down
4 changes: 0 additions & 4 deletions src/fragments/dialogs/info/info.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import PrettyCodeViewer from '@/fragments/pretty-code-viewer/PrettyCodeViewer'
import utils from '@/support/utils'
export default {
data: () => ({
Expand Down Expand Up @@ -45,8 +44,5 @@ export default {
this.eventBus.$on('triggerShowInfo', (info) => {
this.showDialog(info)
})
},
components: {
PrettyCodeViewer
}
}
10 changes: 0 additions & 10 deletions src/fragments/pretty-code-viewer/PrettyCodeViewer.vue

This file was deleted.

63 changes: 0 additions & 63 deletions src/fragments/pretty-code-viewer/pretty-code-viewer.js

This file was deleted.

66 changes: 0 additions & 66 deletions src/fragments/pretty-code-viewer/pretty-code-viewer.scss

This file was deleted.

0 comments on commit 2efaf0a

Please sign in to comment.