-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
*.egg-info | ||
*.egg-info | ||
*.pyc | ||
*.log | ||
*.DS_Store |
14 changes: 14 additions & 0 deletions
14
arches_rdm/media/js/views/components/plugins/reference-data-manager.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import ko from 'knockout'; | ||
import { createApp } from 'vue'; | ||
import PrimeVue from 'primevue/config'; | ||
import RDMApp from '@/App.vue'; | ||
import RDMAppTepmlate from 'templates/views/components/plugins/reference-data-manager.htm'; | ||
|
||
ko.components.register('reference-data-manager', { | ||
viewModel: function() { | ||
const app = createApp(RDMApp); | ||
app.use(PrimeVue); | ||
app.mount('#rdm-mounting-point'); | ||
}, | ||
template: RDMAppTepmlate, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
from arches.app.models import models | ||
|
||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
("models", "10121_workflowhistory"), | ||
] | ||
|
||
def add_plugins(apps, schema_editor): | ||
Plugin = apps.get_model("models", "Plugin") | ||
|
||
Plugin.objects.update_or_create( | ||
pluginid="29321ce0-bd95-4357-a2a5-822e9cb06f70", | ||
name="Reference Data Manager (RDM)", | ||
icon="fa fa-code-fork", | ||
component="views/components/plugins/reference-data-manager", | ||
componentname="reference-data-manager", | ||
config={}, | ||
slug="reference-data-manager", | ||
sortorder=0 | ||
) | ||
|
||
def remove_plugin(apps, schema_editor): | ||
Plugin = apps.get_model("models", "Plugin") | ||
|
||
for plugin in Plugin.objects.filter(pluginid__in=["29321ce0-bd95-4357-a2a5-822e9cb06f70"]): | ||
plugin.delete() | ||
|
||
operations = [ | ||
migrations.RunPython(add_plugins, remove_plugin), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<script setup> | ||
import Foo from "@/components/Foo.vue" | ||
</script> | ||
|
||
<template> | ||
<Foo /> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<script setup> | ||
console.log('hello world!') | ||
</script> | ||
|
||
<template> | ||
<h1>Hello World!</h1> | ||
</template> |
1 change: 1 addition & 0 deletions
1
arches_rdm/templates/views/components/plugins/reference-data-manager.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div id="rdm-mounting-point"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters