Skip to content

Commit 2e436e3

Browse files
committed
cleanup dummy app
1 parent 7274c60 commit 2e436e3

Some content is hidden

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

55 files changed

+178
-586
lines changed

spec/dummy/app/controllers/api_controller.rb

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

spec/dummy/app/controllers/components_tests_controller.rb

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

spec/dummy/app/controllers/components_tests_with_app_controller.rb

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,14 @@
11
class DemoController < ActionController::Base
22
include Matestack::Ui::Core::Helper
3+
34
matestack_app Demo::App
45

56
def first
6-
render Demo::FirstPage, user: 'Nils'
7+
render Demo::Pages::FirstPage
78
end
89

910
def second
10-
render Demo::SecondPage
11-
end
12-
13-
def collection
14-
render Demo::Pages::Collection
15-
end
16-
17-
def action
18-
if params[:test][:foo]
19-
render json: {}, status: :ok
20-
else
21-
render json: { errors: { foo: ['missing'] } }, status: :unprocessable_entity
22-
end
23-
ActionCable.server.broadcast('matestack_ui_core', {
24-
event: 'replace',
25-
data: Demo::Components::Time.()
26-
})
27-
end
28-
29-
def speed
30-
render Demo::Index
31-
end
32-
33-
def index
34-
# view_context.javascript_pack_tag 'application'
35-
render 'rails/index', layout: 'application'
11+
render Demo::Pages::SecondPage
3612
end
3713

3814
end

spec/dummy/app/controllers/form_tests_controller.rb

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

spec/dummy/app/controllers/legacy_views/0_USED_IN_SPECS_DONT_TOUCH

Whitespace-only changes.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# used in specs
2+
13
class LegacyViews::PagesController < ApplicationController
24
include Matestack::Ui::Core::Helper
35
include Matestack::Ui::VueJs::Components::Collection::Helper

spec/dummy/app/matestack/app.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# used within specs only
1+
# used in specs only, look for the demo app here: ./demo/app.rb
2+
23
class App < Matestack::Ui::App
34

45
def response

spec/dummy/app/matestack/application_component.rb

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

spec/dummy/app/matestack/application_page.rb

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

0 commit comments

Comments
 (0)