glib-web 4.34.3 → 4.34.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 76695fa02fe7d468260bc636b1a6dbb29bc56ca00370443a1d35b55550078bc2
4
- data.tar.gz: decfecb38f65fa8ea45fcf697de4041bb1866ad4168309a2fa48b79cacb3b131
3
+ metadata.gz: ce49a23fa2c7a5bf890e9b7d333b58b3b9880254e9c1b5177ecf1a43d0fe19c5
4
+ data.tar.gz: ca1ae7dc7858240000d72de5910bbdaf7d903755a7a3554b952e6b7ce22f2f93
5
5
  SHA512:
6
- metadata.gz: 71a7686bc096d072b110ada390d9ffbaf9e3ab7bcdb6d5016f530f3f165c9330585df4324f2f49c34c17606ad8f9d8befbe0dcac2ee35ababb0cd2d2f210decf
7
- data.tar.gz: 26f6c550a14ef952113b1f435c80ff9d30bfcf91fce61773dacd9265322089c492dfc60c1c17084cc90bdb6b3b7a366fe8a9617ce6228d1622164a204185b56d
6
+ metadata.gz: c31cca19a9d044a161e5829579d8cf7abad6f486c99d53ad97519b2ab6331800413c735521e24ebb3b52018b9f4bd226a67886d55c9d8954a70bd6af9b66bcfa
7
+ data.tar.gz: 64ac3b7bb7f694c1e028f2912d3e009061811c6c9cb2ddf1e0e9db8b43db20aadf289f33d2c09e91fd79d6f3758af1728c8eef50bf88967abbc796b411a2e6d1
@@ -85,16 +85,16 @@ page.form id: 'form', url: json_ui_garage_url(path: 'forms/generic_post'), metho
85
85
 
86
86
  languages = {
87
87
  'East Asia' => {
88
- 'zh' => 'Chinese',
89
- 'ja' => 'Japanese',
90
- 'ko' => 'Korean',
88
+ 'cn' => 'Chinese',
89
+ 'jp' => 'Japanese',
90
+ 'kr' => 'Korean',
91
91
  },
92
92
  'Middle East' => {
93
- 'ar' => 'Arabic',
94
- 'hi' => 'Hindi',
93
+ 'sa' => 'Arabic',
94
+ 'in' => 'Hindi',
95
95
  },
96
96
  'Europe' => {
97
- 'nl' => 'Dutch',
97
+ 'an' => 'Dutch',
98
98
  'en' => 'English',
99
99
  'fr' => 'French',
100
100
  'de' => 'German',
@@ -109,7 +109,7 @@ page.form id: 'form', url: json_ui_garage_url(path: 'forms/generic_post'), metho
109
109
  options = []
110
110
  languages.each do |group, sub|
111
111
  options << { type: 'label', text: group }
112
- options.concat(sub.map { |k, v| { value: k, text: v, subtitle: 'Country' } })
112
+ options.concat(sub.map { |k, v| { value: k, text: v, subtitle: 'Country', imageUrl: "https://flagsapi.com/#{k.upcase}/flat/24.png" } })
113
113
  options << { type: 'divider' }
114
114
  end
115
115
 
@@ -118,7 +118,7 @@ page.form id: 'form', url: json_ui_garage_url(path: 'forms/generic_post'), metho
118
118
  width: 'matchParent',
119
119
  label: 'Primary Language',
120
120
  options: options,
121
- value: 'nl',
121
+ value: 'an',
122
122
  accessory: ->(accessory) do
123
123
  accessory.header padding: { x: 16, y: 10 }, childViews: ->(header) do
124
124
  header.label text: 'Header'
@@ -146,7 +146,7 @@ page.form id: 'form', url: json_ui_garage_url(path: 'forms/generic_post'), metho
146
146
  width: 'matchParent',
147
147
  label: 'Primary Language',
148
148
  options: options,
149
- value: ['ja', 'de'],
149
+ value: ['jp', 'de'],
150
150
  accessory: ->(view) do
151
151
  view.footer padding: { x: 16, y: 10 }, width: 'matchParent', styleClass: 'sticky-footer', childViews: ->(footer) do
152
152
  footer.panels_flow width: 'matchParent', styleClass: 'justify-end', childViews: ->(hori) do
@@ -68,6 +68,9 @@ json_ui_page json do |page|
68
68
  template.thumbnail title: 'Table (Web Only)', subtitle: 'Rows with columns', onClick: ->(action) do
69
69
  action.windows_open url: json_ui_garage_url(path: 'tables/index')
70
70
  end
71
+ template.thumbnail title: 'Tree', subtitle: 'Tree like view just like folder and subfolder', onClick: ->(action) do
72
+ action.windows_open url: json_ui_garage_url(path: 'panels/tree')
73
+ end
71
74
 
72
75
  end
73
76
  end, ->(section) do
@@ -131,10 +134,6 @@ json_ui_page json do |page|
131
134
  action.windows_open url: json_ui_garage_url(path: 'panels/grid')
132
135
  end
133
136
 
134
- template.thumbnail title: 'Tree', subtitle: 'Tree like view just like folder and subfolder', onClick: ->(action) do
135
- action.windows_open url: json_ui_garage_url(path: 'panels/tree')
136
- end
137
-
138
137
  template.thumbnail title: 'List Template Accessory', onClick: ->(action) do
139
138
  # TODO
140
139
  end
@@ -9,7 +9,7 @@ onDropFile = ->(action) do
9
9
  end
10
10
  end
11
11
  onDropView = ->(action) do
12
- action.http_post url: json_ui_garage_url(path: 'forms/generic_post_all')
12
+ action.http_post url: json_ui_garage_url(path: 'forms/generic_post_all', source_item_id: '{{moved[item_id]}}')
13
13
  end
14
14
 
15
15
  json_ui_page json do |page|
@@ -38,7 +38,7 @@ json_ui_page json do |page|
38
38
  id: 'pop',
39
39
  title: 'Pop',
40
40
  icon: { name: 'folder', size: 24, color: '#6e6e6e' },
41
- dropData: { genre: 'pop' },
41
+ dropData: { genre: 'pop', item_id: 1 },
42
42
  onClick: ->(action) { action.windows_reload url: json_ui_garage_current_url(selected: 'pop') },
43
43
  subtitle: params['selected'] == 'pop' ? 'Pop music is a genre of popular music that originated in its modern' : nil,
44
44
  rows: ['pop-1.mp3', 'pop-2.mp3', 'pop-3.mp3']
@@ -46,7 +46,7 @@ json_ui_page json do |page|
46
46
  id: 'arab',
47
47
  title: 'Arabian',
48
48
  icon: { name: 'folder', size: 24, color: '#6e6e6e' },
49
- dropData: { genre: 'arab' },
49
+ dropData: { genre: 'arab', item_id: 2 },
50
50
  onClick: ->(action) { action.windows_reload url: json_ui_garage_current_url(selected: 'arab') },
51
51
  subtitle: params['selected'] == 'arab' ? 'Arabic music is the music of the Arab world' : nil,
52
52
  rows: ['arabian-1.mp3', 'arabian-2.mp3', 'arabian-3.mp3']
@@ -55,7 +55,7 @@ json_ui_page json do |page|
55
55
  title: 'Phonk',
56
56
  onClick: ->(action) { action.windows_reload url: json_ui_garage_current_url(selected: 'phonk') },
57
57
  icon: { name: 'folder', size: 24, color: '#6e6e6e' },
58
- dropData: { genre: 'phonk' },
58
+ dropData: { genre: 'phonk', item_id: 3 },
59
59
  subtitle: params['selected'] == 'phonk' ? 'Phonk is a subgenre of hip hop and trap music' : nil,
60
60
  rows: ['phonk1.mp3', 'phonk-2.mp3', { id: 'hard-phonk', title: 'Hard Phonk', rows: ['hard-phonk-1.mp3', 'hard-phonk-2.mp3'] }]
61
61
  end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glib-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.34.3
4
+ version: 4.34.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2019-10-04 00:00:00.000000000 Z
@@ -122,7 +122,7 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
- description:
125
+ description:
126
126
  email: ''
127
127
  executables: []
128
128
  extensions: []
@@ -426,10 +426,10 @@ files:
426
426
  - lib/glib/value.rb
427
427
  - lib/glib/version.rb
428
428
  - lib/tasks/db.rake
429
- homepage:
429
+ homepage:
430
430
  licenses: []
431
431
  metadata: {}
432
- post_install_message:
432
+ post_install_message:
433
433
  rdoc_options: []
434
434
  require_paths:
435
435
  - lib
@@ -445,7 +445,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
445
445
  version: '0'
446
446
  requirements: []
447
447
  rubygems_version: 3.4.6
448
- signing_key:
448
+ signing_key:
449
449
  specification_version: 4
450
450
  summary: ''
451
451
  test_files: []