ish_manager 0.1.8.312 → 0.1.8.313

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01ba80484218980a06df42236fd65c651f61abeea9a40f9ed8db9f5a172bb3ed
4
- data.tar.gz: 2310bf2f411f019232af7c47a7c7e8547a42d85916bc44ea17b3fb48b70ffb86
3
+ metadata.gz: c2264f938ca1b829a33a034b011f8b772f7d70475cdac1ffeb244ef2668baf5d
4
+ data.tar.gz: 2ac39dfcd50a93c87c603a627dba86470a8490f13b5a6fd490265a0e48c2f7f8
5
5
  SHA512:
6
- metadata.gz: e6e888c1d79e5433f6811821d31d64cfe17f9174645c8e9d56fde60e698d372f8d184f7d354266251b733e2ba54df964106087aa64af211a5a0dac5e9a5c2320
7
- data.tar.gz: 5fa02a1f155617cc8ce37c14dd8e270c130003972790f7db2847edc37670f4c9d8c714c3db1cfd7e15ab8ad3bdc7d8fefcdeeb9d4c7167bd5e3a7642106cdea4
6
+ metadata.gz: c9afd9b1e238acc8d192d447fb3fd11f29c039246fb6e598a7cd8d147a5a4f6a37f5b08f3d7d93fd3206f7aae3e7c1048c06b1891a569ad5f0281d466dff2ec0
7
+ data.tar.gz: 363a73b3dd5221f9b55f20486ea3504c6b0f04aac26674a6ee2b762f7c732831a858e6c2443c10a6e43c79e62e0ffb8dab1d52f99d0add890aa24ea7e1acc151
@@ -251,6 +251,12 @@ textarea.large {
251
251
  border-bottom: 1px solid red;
252
252
  }
253
253
 
254
+ .markers--form .row {
255
+ margin-bottom: 1em;
256
+ padding-bottom: 1em;
257
+ border-bottom: 1px solid blue;
258
+ }
259
+
254
260
  .menu-secondary li {
255
261
  display: inline;
256
262
  }
@@ -137,7 +137,7 @@ class IshManager::MapsController < IshManager::ApplicationController
137
137
  authorize! :index, ::Gameui::Map
138
138
 
139
139
  if params[:q]
140
- @maps = ::Gameui::Map.where({ slug: /#{params[:q]}/i })
140
+ @maps = ::Gameui::Map.or({ slug: /#{params[:q]}/i }, { name: /#{params[:q]}/i })
141
141
  if @maps.length == 1
142
142
  redirect_to map_path(@maps[0])
143
143
  return
@@ -5,6 +5,8 @@ class IshManager::MarkersController < IshManager::ApplicationController
5
5
  before_action :set_marker, only: [ :edit, :update ]
6
6
  before_action :set_lists
7
7
 
8
+ layout 'ish_manager/application_no_material'
9
+
8
10
  def new
9
11
  authorize! :new_marker, ::Gameui::Map
10
12
  @marker = ::Gameui::Marker.new
@@ -80,7 +80,7 @@
80
80
  description.collapsible: bool
81
81
  map_panel_type: "Equirectangular" | "Panoramic" |
82
82
  "MapPanel" | "MapPanelNoZoom" |
83
- "ThreePanelV1" | "ThreePanelV4" |
83
+ "ThreePanelV1" | "ThreePanelV1Fullscreen" |
84
84
  "GoogleMaps" | "TabiversePlanet"
85
85
  .row
86
86
  .col.s6
@@ -92,6 +92,9 @@
92
92
  .col.s4
93
93
  = f.text_field :y
94
94
  .col.s6
95
- unused
95
+ .field
96
+ = f.label :newsitems_page_size
97
+ = f.number_field :newsitems_page_size
98
+
96
99
  .actions
97
100
  = f.submit 'Save'
@@ -12,19 +12,19 @@
12
12
  .actions
13
13
  = f.submit 'Save'
14
14
  .row
15
- .col.s4
15
+ .col-sm-4
16
16
  = f.label :map
17
- = f.select :map_id, options_for_select(@maps_list, selected: @marker.map_id || params[:map_id])
18
- .col.s4
17
+ = f.select :map_id, options_for_select(@maps_list, selected: @marker.map_id || params[:map_id]), {}, class: 'select2'
18
+ .col-sm-4
19
19
  .field
20
20
  = f.label :name
21
21
  = f.text_field :name
22
- .col.s4
22
+ .col-sm-4
23
23
  .field
24
24
  = f.label :destination
25
- = f.select :destination_id, options_for_select(@maps_list, selected: @marker.destination_id)
25
+ = f.select :destination_id, options_for_select(@maps_list, selected: @marker.destination_id), {}, class: 'select2'
26
26
  .row
27
- .col.s3
27
+ .col-sm-3
28
28
  .field
29
29
  = f.label :image
30
30
  = file_field_tag :image
@@ -34,21 +34,21 @@
34
34
  .field
35
35
  = f.label :asset3d
36
36
  = file_field_tag :asset3d
37
- .col.s3
37
+ .col-sm-3
38
38
  .field
39
39
  = f.label :centerOffsetX
40
40
  = f.text_field :centerOffsetX
41
41
  .field
42
42
  = f.label :centerOffsetY
43
43
  = f.text_field :centerOffsetY
44
- .col.s3
44
+ .col-sm-3
45
45
  .field
46
46
  = f.label :x
47
47
  = f.text_field :x
48
48
  .field
49
49
  = f.label :y
50
50
  = f.text_field :y
51
- .col.s3
51
+ .col-sm-3
52
52
  .field
53
53
  = f.label :title_image
54
54
  = file_field_tag :title_image
@@ -60,21 +60,21 @@
60
60
  = f.label :url, "URL (if any)"
61
61
  = f.text_field :url
62
62
  .row
63
- .col.s3 &nbsp;
64
- .col.s6
63
+ .col-sm-3 &nbsp;
64
+ .col-sm-5
65
65
  .field
66
66
  = f.label :description
67
67
  = f.text_area :description
68
68
  .row
69
- .col.s4
69
+ .col-sm-4
70
70
  .field
71
71
  = f.label :item_type
72
72
  = f.select :item_type, options_for_select( ::Gameui::Marker::ITEM_TYPES, selected: @marker.item_type )
73
- .col.s4
73
+ .col-sm-4
74
74
  .field
75
75
  = f.label :ordering
76
76
  = f.text_field :ordering
77
- .col.s4
77
+ .col-sm-4
78
78
  .field
79
79
  = f.check_box :is_active
80
80
  = f.label :is_active
@@ -7,7 +7,7 @@
7
7
  - else
8
8
  = image_missing_tag
9
9
  .flex-row
10
- .a= marker.destination.name
10
+ .a= marker.destination&.name
11
11
  .a= button_to '~', edit_marker_path(marker), method: :get
12
12
  .a= button_to 'x', marker_path(marker), method: :delete, data: { confirm: 'Are you sure?' }
13
13
  .flex-row
@@ -35,6 +35,9 @@
35
35
  .field
36
36
  = f.label :Description
37
37
  = f.text_area :descr, :class => 'tinymce'
38
+ .field
39
+ = f.label :raw_json
40
+ = f.text_area :raw_json
38
41
 
39
42
  %br
40
43
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.312
4
+ version: 0.1.8.313
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-17 00:00:00.000000000 Z
11
+ date: 2022-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk