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
1 change: 0 additions & 1 deletion components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export {}
declare module 'vue' {
export interface GlobalComponents {
Dashboards: typeof import('./src/components/Dashboards.vue')['default']
HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
Home: typeof import('./src/components/Home.vue')['default']
Interfaces: typeof import('./src/components/Interfaces.vue')['default']
Navigation: typeof import('./src/components/Navigation.vue')['default']
Expand Down
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

app.use(vuetify).use(router);

const pluginFiles = require.context('./plugins', false, /\.ts$/);
// parameters: root, recursive, file to match
const pluginFiles = require.context('./plugins', true, /\.ts$/);

pluginFiles.keys().forEach((filePath: string) => {
const plugin = pluginFiles(filePath).default; // Get the default export of the plugin
Expand All @@ -29,12 +30,12 @@
});

// provide all global components
const exportComponents = Object.fromEntries(Object.entries(app._context.components).filter(([key, value]) => key.includes("Export")));

Check warning on line 33 in src/main.ts

View workflow job for this annotation

GitHub Actions / build (24.4.0)

'value' is defined but never used

Check warning on line 33 in src/main.ts

View workflow job for this annotation

GitHub Actions / build (24.4.0)

'value' is defined but never used
const importComponents = Object.fromEntries(Object.entries(app._context.components).filter(([key, value]) => key.includes("Import")));

Check warning on line 34 in src/main.ts

View workflow job for this annotation

GitHub Actions / build (24.4.0)

'value' is defined but never used

Check warning on line 34 in src/main.ts

View workflow job for this annotation

GitHub Actions / build (24.4.0)

'value' is defined but never used

console.log(exportComponents);

Check warning on line 36 in src/main.ts

View workflow job for this annotation

GitHub Actions / build (24.4.0)

Unexpected console statement

Check warning on line 36 in src/main.ts

View workflow job for this annotation

GitHub Actions / build (24.4.0)

Unexpected console statement
app.provide('exportComponents', exportComponents);
console.log(importComponents);

Check warning on line 38 in src/main.ts

View workflow job for this annotation

GitHub Actions / build (24.4.0)

Unexpected console statement

Check warning on line 38 in src/main.ts

View workflow job for this annotation

GitHub Actions / build (24.4.0)

Unexpected console statement
app.provide('importComponents', importComponents);

app.mount('#app');
28 changes: 28 additions & 0 deletions src/plugins/Exports/JsonExportPlugin.vue
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>
28 changes: 28 additions & 0 deletions src/plugins/Exports/RdfExportPlugin.vue
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>
19 changes: 19 additions & 0 deletions src/plugins/Exports/json-export-plugin.ts
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;
19 changes: 19 additions & 0 deletions src/plugins/Exports/rdf-export-plugin.ts
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

View workflow job for this annotation

GitHub Actions / build (24.4.0)

'options' is defined but never used

Check warning on line 5 in src/plugins/Exports/rdf-export-plugin.ts

View workflow job for this annotation

GitHub Actions / build (24.4.0)

'options' is defined but never used
Copy link

Copilot AI Nov 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The options parameter is declared but never used. It should be removed for consistency with json-export-plugin.ts, which has the same plugin structure but correctly omits the unused parameter.

Suggested change
install(app: App, options?) {
install(app: App) {

Copilot uses AI. Check for mistakes.
// 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;
33 changes: 33 additions & 0 deletions src/plugins/Imports/JsonImportPlugin.vue
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>
Copy link

Copilot AI Nov 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing quotes around the class attribute value. The attribute should be class="w-50" instead of class=w-50. This will cause a syntax error in Vue templates.

Suggested change
<v-card class=w-50>
<v-card class="w-50">

Copilot uses AI. Check for mistakes.
<v-card-title>Select Import Elements</v-card-title>
<v-card-actions>
<v-file-input
accept='.json'
label='JSON Input'
prepend-icon='mdi-folder_open'
Copy link

Copilot AI Nov 27, 2025

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.

Suggested change
prepend-icon='mdi-folder_open'
prepend-icon='mdi-folder-open'

Copilot uses AI. Check for mistakes.
multiple
></v-file-input>
<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 JsonImportComponent extends Vue {}
</script>

<style scoped></style>
19 changes: 19 additions & 0 deletions src/plugins/Imports/json-import-plugin.ts
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;
39 changes: 0 additions & 39 deletions src/plugins/json-export-plugin.ts

This file was deleted.

36 changes: 0 additions & 36 deletions src/plugins/json-import-plugin.ts

This file was deleted.

36 changes: 0 additions & 36 deletions src/plugins/rdf-export-plugin.ts

This file was deleted.

Loading