- I am a Vue Component {{ test }} {{ message }}
+ I am a Vue Component {{ props.test }} {{ message }}
-
-
diff --git a/lib/potassium/assets/active_admin/admin_application.js b/lib/potassium/assets/active_admin/admin_application.js
deleted file mode 100644
index 77b330e4..00000000
--- a/lib/potassium/assets/active_admin/admin_application.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import Vue from 'vue/dist/vue.esm';
-import AdminComponent from '../components/admin-component';
-
-Vue.component('admin_component', AdminComponent);
-
-document.addEventListener('DOMContentLoaded', () => {
- if (document.getElementById('wrapper') !== null) {
- return new Vue({
- el: '#wrapper',
- });
- }
-
- return null;
-});
diff --git a/lib/potassium/assets/active_admin/init_activeadmin_vue.rb b/lib/potassium/assets/active_admin/init_activeadmin_vue.rb
deleted file mode 100644
index 5f0c1deb..00000000
--- a/lib/potassium/assets/active_admin/init_activeadmin_vue.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-module AdminPageLayoutOverride
- def build_page(*args)
- within head do
- text_node(javascript_packs_with_chunks_tag('admin_application'))
- end
- super
- end
-end
-
-ActiveAdmin::Views::Pages::Base.send :prepend, AdminPageLayoutOverride
diff --git a/lib/potassium/assets/app/javascript/app.spec.js b/lib/potassium/assets/app/javascript/components/app.spec.ts
similarity index 92%
rename from lib/potassium/assets/app/javascript/app.spec.js
rename to lib/potassium/assets/app/javascript/components/app.spec.ts
index fefca344..0409dc45 100644
--- a/lib/potassium/assets/app/javascript/app.spec.js
+++ b/lib/potassium/assets/app/javascript/components/app.spec.ts
@@ -1,5 +1,5 @@
import { shallowMount } from '@vue/test-utils';
-import App from 'app';
+import App from './app.vue';
describe('App', () => {
test('is a Vue instance', () => {
diff --git a/lib/potassium/assets/app/javascript/components/app.vue b/lib/potassium/assets/app/javascript/components/app.vue
new file mode 100644
index 00000000..27a3070d
--- /dev/null
+++ b/lib/potassium/assets/app/javascript/components/app.vue
@@ -0,0 +1,9 @@
+
+
+