Skip to content

Commit 229c3a6

Browse files
committed
removing vuejs code
1 parent 3613f53 commit 229c3a6

File tree

110 files changed

+3
-13583
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+3
-13583
lines changed

package.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

spec/dummy/app/channels/matestack_ui_vue_js_channel.rb

Lines changed: 0 additions & 7 deletions
This file was deleted.

spec/dummy/app/controllers/demo_vue_js_controller.rb

Lines changed: 0 additions & 30 deletions
This file was deleted.

spec/dummy/app/controllers/legacy_views/pages_controller.rb

Lines changed: 0 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -2,85 +2,10 @@
22

33
class LegacyViews::PagesController < ApplicationController
44
include Matestack::Ui::Core::Helper
5-
include Matestack::Ui::VueJs::Components::Collection::Helper
65

76
layout 'legacy_views'
87

9-
def action_inline
10-
end
11-
12-
def action_custom_component
13-
@title = 'Test Title'
14-
end
15-
16-
def async_custom_component
17-
end
18-
19-
def async_inline
20-
end
21-
22-
def collection_inline
23-
my_collection_id = "my-first-collection"
24-
current_filter = get_collection_filter(my_collection_id)
25-
my_filtered_query = DummyModel.all.where("title LIKE ?", "%#{current_filter[:title]}%")
26-
27-
@my_collection = set_collection({
28-
id: my_collection_id,
29-
data: my_filtered_query
30-
})
31-
end
32-
33-
def collection_custom_component
34-
my_collection_id = "my-first-collection"
35-
current_filter = get_collection_filter(my_collection_id)
36-
my_filtered_query = DummyModel.all.where("title LIKE ?", "%#{current_filter[:title]}%")
37-
38-
@my_collection = set_collection({
39-
id: my_collection_id,
40-
data: my_filtered_query
41-
})
42-
end
43-
44-
def form_custom_component
45-
end
46-
47-
def onclick_custom_component
48-
end
49-
508
def viewcontext_custom_component
519
end
5210

53-
def isolated_custom_component
54-
render 'isolated_custom_component'
55-
end
56-
57-
def success
58-
render json: params.to_unsafe_h, status: :ok
59-
end
60-
61-
def failure
62-
render json: params.to_unsafe_h, status: :not_found
63-
end
64-
65-
def create
66-
@dummy_model = DummyModel.create(dummy_model_params)
67-
if @dummy_model.errors.any?
68-
render json: {
69-
errors: @dummy_model.errors,
70-
message: "Test Model could not be saved!"
71-
}, status: :unprocessable_entity
72-
else
73-
render json: {}, status: :created
74-
end
75-
end
76-
77-
private
78-
79-
def dummy_model_params
80-
params.require(:dummy_model).permit(
81-
:title,
82-
:description
83-
)
84-
end
85-
8611
end

spec/dummy/app/javascript/channels/matestack_ui_vue_js_channel.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

spec/dummy/app/javascript/js/components.js

Lines changed: 0 additions & 174 deletions
This file was deleted.

spec/dummy/app/javascript/packs/application.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,3 @@
99

1010
require("@rails/ujs").start()
1111
require("channels")
12-
13-
import { createApp } from 'vue'
14-
import MatestackUiVueJs from 'matestack-ui-vue_js'
15-
16-
const appInstance = createApp({})
17-
18-
document.addEventListener('DOMContentLoaded', () => {
19-
MatestackUiVueJs.mount(appInstance)
20-
})

spec/dummy/app/javascript/packs/application_vue_js.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

spec/dummy/app/matestack/app.rb

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)