-
Notifications
You must be signed in to change notification settings - Fork 0
updating structure of plugins, adding file reading capability #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| <template> | ||
| <v-btn color='secondary' @click='dialog = true'>Export JSON</v-btn> | ||
| <v-dialog v-model='dialog'> | ||
| <v-card> | ||
| <v-card-title>Select Export Elements</v-card-title> | ||
| <v-card-text>TBD...</v-card-text> | ||
| <v-card-actions> | ||
| <v-btn color='red' @click='dialog = false'>Close</v-btn> | ||
| </v-card-actions> | ||
| </v-card> | ||
| </v-dialog> | ||
| </template> | ||
|
|
||
| <script lang='ts'> | ||
| import { Options, Vue } from 'vue-class-component'; | ||
|
|
||
| @Options({ | ||
| data() { | ||
| return { | ||
| dialog: false | ||
| } | ||
| } | ||
| }) | ||
|
|
||
| export default class JsonExportComponent extends Vue {} | ||
| </script> | ||
|
|
||
| <style scoped></style> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| <template> | ||
| <v-btn color='secondary' @click='dialog = true'>Export RDF</v-btn> | ||
| <v-dialog v-model='dialog'> | ||
| <v-card> | ||
| <v-card-title>Select Export Elements</v-card-title> | ||
| <v-card-text>TBD...</v-card-text> | ||
| <v-card-actions> | ||
| <v-btn color='red' @click='dialog = false'>Close</v-btn> | ||
| </v-card-actions> | ||
| </v-card> | ||
| </v-dialog> | ||
| </template> | ||
|
|
||
| <script lang="ts"> | ||
| import { Options, Vue } from 'vue-class-component'; | ||
|
|
||
| @Options({ | ||
| data() { | ||
| return { | ||
| dialog: false | ||
| } | ||
| } | ||
| }) | ||
|
|
||
| export default class RdfExportComponent extends Vue {} | ||
| </script> | ||
|
|
||
| <style scoped></style> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| import { App, Plugin } from 'vue'; | ||
| import JsonExportComponent from "./JsonExportPlugin.vue" | ||
|
|
||
| const jsonExportPlugin: Plugin = { | ||
| install(app: App) { | ||
| // global property | ||
| // app.config.globalProperties.$definedproperty = 'Example Global Property'; | ||
|
|
||
| // global method | ||
| // app.config.globalProperties.$definedMethods = () => { | ||
| // console.log('Example Method'); | ||
| // }; | ||
|
|
||
| // global component | ||
| app.component('JsonExportComponent', JsonExportComponent); | ||
| } | ||
| } | ||
|
|
||
| export default jsonExportPlugin; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| import { App, Plugin } from 'vue'; | ||
| import RdfExportComponent from "./RdfExportPlugin.vue" | ||
|
|
||
| const rdfExportPlugin: Plugin = { | ||
| install(app: App, options?) { | ||
|
Check warning on line 5 in src/plugins/Exports/rdf-export-plugin.ts
|
||
| // global property | ||
| // app.config.globalProperties.$definedproperty = 'Example Global Property'; | ||
|
|
||
| // global method | ||
| // app.config.globalProperties.$definedMethods = () => { | ||
| // console.log('Example Method'); | ||
| // }; | ||
|
|
||
| // global component | ||
| app.component('RdfExportComponent', RdfExportComponent); | ||
| } | ||
| } | ||
|
|
||
| export default rdfExportPlugin; | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,33 @@ | ||||||
| <template> | ||||||
| <v-btn color='primary' @click='dialog = true'>Import JSON</v-btn> | ||||||
| <v-dialog v-model='dialog'> | ||||||
| <v-card class=w-50> | ||||||
|
||||||
| <v-card class=w-50> | |
| <v-card class="w-50"> |
Copilot
AI
Nov 27, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Material Design icon name should use hyphens, not underscores. Change mdi-folder_open to mdi-folder-open.
| prepend-icon='mdi-folder_open' | |
| prepend-icon='mdi-folder-open' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| import { App, Plugin } from 'vue'; | ||
| import JsonImportComponent from "./JsonImportPlugin.vue" | ||
|
|
||
| const jsonImportPlugin: Plugin = { | ||
| install(app: App) { | ||
| // global property | ||
| // app.config.globalProperties.$definedproperty = 'Example Global Property'; | ||
|
|
||
| // global method | ||
| // app.config.globalProperties.$definedMethods = () => { | ||
| // console.log('Example Method'); | ||
| // }; | ||
|
|
||
| // global component | ||
| app.component('JsonImportComponent', JsonImportComponent); | ||
| } | ||
| } | ||
|
|
||
| export default jsonImportPlugin; |
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
optionsparameter is declared but never used. It should be removed for consistency withjson-export-plugin.ts, which has the same plugin structure but correctly omits the unused parameter.