kaui 0.7.2 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +1 -2
- data/Gemfile.lock +59 -38
- data/README.md +12 -9
- data/Rakefile +9 -0
- data/{lib/generators/kaui/install/templates/app/assets/javascripts/kaui/all.js → app/assets/javascripts/application.js} +2 -5
- data/{lib/generators/kaui/install/templates/app/assets/stylesheets/kaui/all.css → app/assets/stylesheets/application.css} +0 -4
- data/app/assets/stylesheets/bootstrap_and_overrides.css +7 -0
- data/app/controllers/kaui/admin_allowed_users_controller.rb +48 -0
- data/app/controllers/kaui/admin_tenants_controller.rb +97 -0
- data/app/controllers/kaui/engine_controller.rb +28 -31
- data/app/controllers/kaui/engine_controller_util.rb +33 -0
- data/app/controllers/kaui/login_proxy_controller.rb +11 -0
- data/app/controllers/kaui/sessions_controller.rb +12 -0
- data/app/controllers/kaui/tenants_controller.rb +60 -0
- data/app/models/kaui/ability.rb +20 -3
- data/app/models/kaui/admin_tenant.rb +10 -0
- data/app/models/kaui/allowed_user.rb +8 -0
- data/app/models/kaui/allowed_user_tenant.rb +6 -0
- data/app/models/kaui/killbill_authenticatable.rb +5 -18
- data/app/models/kaui/tenant.rb +13 -0
- data/app/models/kaui/user.rb +14 -16
- data/app/views/kaui/admin_allowed_users/index.html.erb +23 -0
- data/app/views/kaui/admin_allowed_users/new.html.erb +22 -0
- data/app/views/kaui/admin_allowed_users/show.html.erb +53 -0
- data/app/views/kaui/admin_tenants/index.html.erb +25 -0
- data/app/views/kaui/admin_tenants/new.html.erb +32 -0
- data/app/views/kaui/admin_tenants/show.html.erb +68 -0
- data/app/views/kaui/invoices/show.html.erb +1 -1
- data/app/views/kaui/tenants/index.html.erb +17 -0
- data/config/initializers/killbill_authenticatable.rb +3 -5
- data/config/locales/en.bootstrap.yml +18 -0
- data/config/routes.rb +27 -1
- data/config/symmetric-encryption.yml +135 -0
- data/db/ddl.sql +33 -2
- data/db/migrate/20130812155313_devise_create_kaui_users.rb +1 -3
- data/db/migrate/20150109214021_create_kaui_tenants.rb +12 -0
- data/db/migrate/20150112232813_create_kaui_allowed_users.rb +19 -0
- data/kaui.gemspec +5 -3
- data/lib/kaui.rb +49 -1
- data/lib/kaui/version.rb +1 -1
- data/test/dummy/config/application.rb +3 -0
- data/test/dummy/config/database.yml +9 -0
- data/test/dummy/config/environments/development.rb +2 -2
- data/test/dummy/config/initializers/killbill_client.rb +2 -0
- data/test/dummy/config/symmetric-encryption.yml +135 -0
- data/test/dummy/db/migrate/{20130819152643_devise_create_kaui_users.kaui.rb → 20150116052157_devise_create_kaui_users.kaui.rb} +1 -3
- data/test/dummy/db/migrate/20150116052158_create_kaui_tenants.kaui.rb +13 -0
- data/test/dummy/db/migrate/20150116052159_create_kaui_allowed_users.kaui.rb +20 -0
- data/test/dummy/db/schema.rb +29 -3
- data/test/functional/kaui/admin_allowed_users_controller_test.rb +30 -0
- data/test/functional/kaui/admin_tenants_controller_test.rb +35 -0
- data/test/functional/kaui/functional_test_helper.rb +2 -50
- data/test/functional/kaui/functional_test_helper_nosetup.rb +53 -0
- data/test/functional/kaui/invoices_controller_test.rb +22 -0
- data/test/functional/kaui/tenants_controller_test.rb +60 -0
- data/test/integration/kaui/integration_test_helper.rb +2 -0
- data/test/integration/kaui/navigation_test.rb +1 -2
- data/test/killbill_test_helper.rb +46 -4
- data/test/test_helper.rb +1 -0
- data/test/unit/helpers/kaui/admin_allowed_users_helper_test.rb +6 -0
- data/test/unit/helpers/kaui/admin_tenants_helper_test.rb +6 -0
- data/test/unit/helpers/kaui/tenants_helper_test.rb +6 -0
- data/test/unit/kaui/allowed_user_test.rb +34 -0
- data/test/unit/kaui/tenant_test.rb +19 -0
- data/vendor/assets/javascripts/jquery.dataTables.min.js +155 -0
- metadata +86 -21
- data/app/assets/javascripts/kaui/analytics.js +0 -71
- data/app/assets/stylesheets/kaui/analytics.css +0 -30
- data/test/dummy/app/assets/javascripts/application.js +0 -21
- data/test/dummy/app/assets/stylesheets/application.css +0 -15
- data/test/dummy/app/views/layouts/application.html.erb +0 -48
- data/vendor/assets/javascripts/js/bootstrap-datepicker.cd46d38.js +0 -1211
- data/vendor/assets/javascripts/js/bootstrap.v2.2.1.min.js +0 -6
- data/vendor/assets/javascripts/js/jquery.dataTables.v1.9.3.min.js +0 -156
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kaui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Killbill core team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -66,20 +66,34 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 3.2.8
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: twitter-bootstrap-rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.2.8
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.2.8
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: killbill-client
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
87
|
- - "~>"
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
89
|
+
version: 0.10.1
|
76
90
|
type: :runtime
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
94
|
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
96
|
+
version: 0.10.1
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: devise
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,6 +136,20 @@ dependencies:
|
|
122
136
|
- - "~>"
|
123
137
|
- !ruby/object:Gem::Version
|
124
138
|
version: 1.0.0
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: symmetric-encryption
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 3.6.0
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 3.6.0
|
125
153
|
- !ruby/object:Gem::Dependency
|
126
154
|
name: fakeweb
|
127
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -207,14 +235,17 @@ files:
|
|
207
235
|
- README.md
|
208
236
|
- Rakefile
|
209
237
|
- app/assets/images/kaui/.gitkeep
|
210
|
-
- app/assets/javascripts/
|
238
|
+
- app/assets/javascripts/application.js
|
211
239
|
- app/assets/javascripts/kaui/bootstrap-tweaks.js
|
212
240
|
- app/assets/javascripts/kaui/validation.js
|
213
|
-
- app/assets/stylesheets/
|
241
|
+
- app/assets/stylesheets/application.css
|
242
|
+
- app/assets/stylesheets/bootstrap_and_overrides.css
|
214
243
|
- app/controllers/kaui/account_emails_controller.rb
|
215
244
|
- app/controllers/kaui/account_tags_controller.rb
|
216
245
|
- app/controllers/kaui/account_timelines_controller.rb
|
217
246
|
- app/controllers/kaui/accounts_controller.rb
|
247
|
+
- app/controllers/kaui/admin_allowed_users_controller.rb
|
248
|
+
- app/controllers/kaui/admin_tenants_controller.rb
|
218
249
|
- app/controllers/kaui/bundle_tags_controller.rb
|
219
250
|
- app/controllers/kaui/bundles_controller.rb
|
220
251
|
- app/controllers/kaui/chargebacks_controller.rb
|
@@ -222,9 +253,11 @@ files:
|
|
222
253
|
- app/controllers/kaui/credits_controller.rb
|
223
254
|
- app/controllers/kaui/custom_fields_controller.rb
|
224
255
|
- app/controllers/kaui/engine_controller.rb
|
256
|
+
- app/controllers/kaui/engine_controller_util.rb
|
225
257
|
- app/controllers/kaui/home_controller.rb
|
226
258
|
- app/controllers/kaui/invoice_items_controller.rb
|
227
259
|
- app/controllers/kaui/invoices_controller.rb
|
260
|
+
- app/controllers/kaui/login_proxy_controller.rb
|
228
261
|
- app/controllers/kaui/payment_methods_controller.rb
|
229
262
|
- app/controllers/kaui/payments_controller.rb
|
230
263
|
- app/controllers/kaui/refunds_controller.rb
|
@@ -232,6 +265,7 @@ files:
|
|
232
265
|
- app/controllers/kaui/subscriptions_controller.rb
|
233
266
|
- app/controllers/kaui/tag_definitions_controller.rb
|
234
267
|
- app/controllers/kaui/tags_controller.rb
|
268
|
+
- app/controllers/kaui/tenants_controller.rb
|
235
269
|
- app/controllers/kaui/transactions_controller.rb
|
236
270
|
- app/helpers/kaui/application_helper.rb
|
237
271
|
- app/helpers/kaui/date_helper.rb
|
@@ -243,6 +277,9 @@ files:
|
|
243
277
|
- app/models/kaui/account.rb
|
244
278
|
- app/models/kaui/account_email.rb
|
245
279
|
- app/models/kaui/account_timeline.rb
|
280
|
+
- app/models/kaui/admin_tenant.rb
|
281
|
+
- app/models/kaui/allowed_user.rb
|
282
|
+
- app/models/kaui/allowed_user_tenant.rb
|
246
283
|
- app/models/kaui/audit_log.rb
|
247
284
|
- app/models/kaui/base.rb
|
248
285
|
- app/models/kaui/bundle.rb
|
@@ -261,6 +298,7 @@ files:
|
|
261
298
|
- app/models/kaui/subscription.rb
|
262
299
|
- app/models/kaui/tag.rb
|
263
300
|
- app/models/kaui/tag_definition.rb
|
301
|
+
- app/models/kaui/tenant.rb
|
264
302
|
- app/models/kaui/transaction.rb
|
265
303
|
- app/models/kaui/user.rb
|
266
304
|
- app/views/kaui/account_emails/_account_emails_table.html.erb
|
@@ -277,6 +315,12 @@ files:
|
|
277
315
|
- app/views/kaui/accounts/index.html.erb
|
278
316
|
- app/views/kaui/accounts/new.html.erb
|
279
317
|
- app/views/kaui/accounts/show.html.erb
|
318
|
+
- app/views/kaui/admin_allowed_users/index.html.erb
|
319
|
+
- app/views/kaui/admin_allowed_users/new.html.erb
|
320
|
+
- app/views/kaui/admin_allowed_users/show.html.erb
|
321
|
+
- app/views/kaui/admin_tenants/index.html.erb
|
322
|
+
- app/views/kaui/admin_tenants/new.html.erb
|
323
|
+
- app/views/kaui/admin_tenants/show.html.erb
|
280
324
|
- app/views/kaui/bundle_tags/_bundle_tags_table.html.erb
|
281
325
|
- app/views/kaui/bundle_tags/_form.html.erb
|
282
326
|
- app/views/kaui/bundle_tags/edit.html.erb
|
@@ -320,6 +364,7 @@ files:
|
|
320
364
|
- app/views/kaui/tag_definitions/show.html.erb
|
321
365
|
- app/views/kaui/tags/_tags_table.html.erb
|
322
366
|
- app/views/kaui/tags/index.html.erb
|
367
|
+
- app/views/kaui/tenants/index.html.erb
|
323
368
|
- app/views/kaui/transactions/_form.html.erb
|
324
369
|
- app/views/kaui/transactions/new.html.erb
|
325
370
|
- bin/kaui
|
@@ -328,16 +373,18 @@ files:
|
|
328
373
|
- config/initializers/killbill_authenticatable.rb
|
329
374
|
- config/initializers/time_formats.rb
|
330
375
|
- config/locales/devise.en.yml
|
376
|
+
- config/locales/en.bootstrap.yml
|
331
377
|
- config/locales/en.yml
|
332
378
|
- config/locales/fr.yml
|
333
379
|
- config/routes.rb
|
380
|
+
- config/symmetric-encryption.yml
|
334
381
|
- db/ddl.sql
|
335
382
|
- db/migrate/20130812155313_devise_create_kaui_users.rb
|
383
|
+
- db/migrate/20150109214021_create_kaui_tenants.rb
|
384
|
+
- db/migrate/20150112232813_create_kaui_allowed_users.rb
|
336
385
|
- db/schema.rb
|
337
386
|
- kaui.gemspec
|
338
387
|
- lib/generators/kaui/install/install_generator.rb
|
339
|
-
- lib/generators/kaui/install/templates/app/assets/javascripts/kaui/all.js
|
340
|
-
- lib/generators/kaui/install/templates/app/assets/stylesheets/kaui/all.css
|
341
388
|
- lib/generators/kaui/install/templates/config/initializers/kaui.rb
|
342
389
|
- lib/kaui.rb
|
343
390
|
- lib/kaui/engine.rb
|
@@ -348,13 +395,10 @@ files:
|
|
348
395
|
- script/sandbox
|
349
396
|
- test/dummy/README.rdoc
|
350
397
|
- test/dummy/Rakefile
|
351
|
-
- test/dummy/app/assets/javascripts/application.js
|
352
|
-
- test/dummy/app/assets/stylesheets/application.css
|
353
398
|
- test/dummy/app/controllers/application_controller.rb
|
354
399
|
- test/dummy/app/helpers/application_helper.rb
|
355
400
|
- test/dummy/app/mailers/.gitkeep
|
356
401
|
- test/dummy/app/models/.gitkeep
|
357
|
-
- test/dummy/app/views/layouts/application.html.erb
|
358
402
|
- test/dummy/config.ru
|
359
403
|
- test/dummy/config/application.rb
|
360
404
|
- test/dummy/config/boot.rb
|
@@ -365,13 +409,17 @@ files:
|
|
365
409
|
- test/dummy/config/environments/test.rb
|
366
410
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
367
411
|
- test/dummy/config/initializers/inflections.rb
|
412
|
+
- test/dummy/config/initializers/killbill_client.rb
|
368
413
|
- test/dummy/config/initializers/mime_types.rb
|
369
414
|
- test/dummy/config/initializers/secret_token.rb
|
370
415
|
- test/dummy/config/initializers/session_store.rb
|
371
416
|
- test/dummy/config/initializers/wrap_parameters.rb
|
372
417
|
- test/dummy/config/locales/en.yml
|
373
418
|
- test/dummy/config/routes.rb
|
374
|
-
- test/dummy/
|
419
|
+
- test/dummy/config/symmetric-encryption.yml
|
420
|
+
- test/dummy/db/migrate/20150116052157_devise_create_kaui_users.kaui.rb
|
421
|
+
- test/dummy/db/migrate/20150116052158_create_kaui_tenants.kaui.rb
|
422
|
+
- test/dummy/db/migrate/20150116052159_create_kaui_allowed_users.kaui.rb
|
375
423
|
- test/dummy/db/schema.rb
|
376
424
|
- test/dummy/lib/assets/.gitkeep
|
377
425
|
- test/dummy/log/.gitkeep
|
@@ -384,6 +432,8 @@ files:
|
|
384
432
|
- test/functional/kaui/account_tags_controller_test.rb
|
385
433
|
- test/functional/kaui/account_timelines_controller_test.rb
|
386
434
|
- test/functional/kaui/accounts_controller_test.rb
|
435
|
+
- test/functional/kaui/admin_allowed_users_controller_test.rb
|
436
|
+
- test/functional/kaui/admin_tenants_controller_test.rb
|
387
437
|
- test/functional/kaui/bundle_tags_controller_test.rb
|
388
438
|
- test/functional/kaui/bundles_controller_test.rb
|
389
439
|
- test/functional/kaui/chargebacks_controller_test.rb
|
@@ -391,6 +441,7 @@ files:
|
|
391
441
|
- test/functional/kaui/credits_controller_test.rb
|
392
442
|
- test/functional/kaui/custom_fields_controller_test.rb
|
393
443
|
- test/functional/kaui/functional_test_helper.rb
|
444
|
+
- test/functional/kaui/functional_test_helper_nosetup.rb
|
394
445
|
- test/functional/kaui/invoice_items_controller_test.rb
|
395
446
|
- test/functional/kaui/invoices_controller_test.rb
|
396
447
|
- test/functional/kaui/payment_methods_controller_test.rb
|
@@ -399,13 +450,18 @@ files:
|
|
399
450
|
- test/functional/kaui/subscriptions_controller_test.rb
|
400
451
|
- test/functional/kaui/tag_definitions_controller_test.rb
|
401
452
|
- test/functional/kaui/tags_controller_test.rb
|
453
|
+
- test/functional/kaui/tenants_controller_test.rb
|
402
454
|
- test/functional/kaui/transactions_controller_test.rb
|
403
455
|
- test/integration/kaui/integration_test_helper.rb
|
404
456
|
- test/integration/kaui/navigation_test.rb
|
405
457
|
- test/killbill_test_helper.rb
|
406
458
|
- test/test_helper.rb
|
459
|
+
- test/unit/helpers/kaui/admin_allowed_users_helper_test.rb
|
460
|
+
- test/unit/helpers/kaui/admin_tenants_helper_test.rb
|
461
|
+
- test/unit/helpers/kaui/tenants_helper_test.rb
|
407
462
|
- test/unit/kaui/account_email_test.rb
|
408
463
|
- test/unit/kaui/account_test.rb
|
464
|
+
- test/unit/kaui/allowed_user_test.rb
|
409
465
|
- test/unit/kaui/base_test.rb
|
410
466
|
- test/unit/kaui/date_helper_test.rb
|
411
467
|
- test/unit/kaui/invoice_item_test.rb
|
@@ -414,15 +470,14 @@ files:
|
|
414
470
|
- test/unit/kaui/money_helper_test.rb
|
415
471
|
- test/unit/kaui/payment_test.rb
|
416
472
|
- test/unit/kaui/tag_definition_test.rb
|
473
|
+
- test/unit/kaui/tenant_test.rb
|
417
474
|
- test/unit/kaui/uuid_helper_test.rb
|
418
475
|
- vendor/assets/images/img/glyphicons-halflings-white.png
|
419
476
|
- vendor/assets/images/img/glyphicons-halflings.png
|
420
|
-
- vendor/assets/javascripts/
|
421
|
-
- vendor/assets/javascripts/js/bootstrap.v2.2.1.min.js
|
422
|
-
- vendor/assets/javascripts/js/jquery.dataTables.v1.9.3.min.js
|
477
|
+
- vendor/assets/javascripts/jquery.dataTables.min.js
|
423
478
|
- vendor/assets/stylesheets/css/bootstrap-datepicker.cd46d38.css
|
424
479
|
- vendor/assets/stylesheets/css/bootstrap.v2.2.1.min.css
|
425
|
-
homepage: http://www.
|
480
|
+
homepage: http://www.killbill.io
|
426
481
|
licenses:
|
427
482
|
- Apache License (2.0)
|
428
483
|
metadata: {}
|
@@ -445,17 +500,14 @@ rubyforge_project:
|
|
445
500
|
rubygems_version: 2.2.2
|
446
501
|
signing_key:
|
447
502
|
specification_version: 4
|
448
|
-
summary: Killbill Admin UI
|
503
|
+
summary: Killbill Admin UI mountable engine
|
449
504
|
test_files:
|
450
505
|
- test/dummy/README.rdoc
|
451
506
|
- test/dummy/Rakefile
|
452
|
-
- test/dummy/app/assets/javascripts/application.js
|
453
|
-
- test/dummy/app/assets/stylesheets/application.css
|
454
507
|
- test/dummy/app/controllers/application_controller.rb
|
455
508
|
- test/dummy/app/helpers/application_helper.rb
|
456
509
|
- test/dummy/app/mailers/.gitkeep
|
457
510
|
- test/dummy/app/models/.gitkeep
|
458
|
-
- test/dummy/app/views/layouts/application.html.erb
|
459
511
|
- test/dummy/config.ru
|
460
512
|
- test/dummy/config/application.rb
|
461
513
|
- test/dummy/config/boot.rb
|
@@ -466,13 +518,17 @@ test_files:
|
|
466
518
|
- test/dummy/config/environments/test.rb
|
467
519
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
468
520
|
- test/dummy/config/initializers/inflections.rb
|
521
|
+
- test/dummy/config/initializers/killbill_client.rb
|
469
522
|
- test/dummy/config/initializers/mime_types.rb
|
470
523
|
- test/dummy/config/initializers/secret_token.rb
|
471
524
|
- test/dummy/config/initializers/session_store.rb
|
472
525
|
- test/dummy/config/initializers/wrap_parameters.rb
|
473
526
|
- test/dummy/config/locales/en.yml
|
474
527
|
- test/dummy/config/routes.rb
|
475
|
-
- test/dummy/
|
528
|
+
- test/dummy/config/symmetric-encryption.yml
|
529
|
+
- test/dummy/db/migrate/20150116052157_devise_create_kaui_users.kaui.rb
|
530
|
+
- test/dummy/db/migrate/20150116052158_create_kaui_tenants.kaui.rb
|
531
|
+
- test/dummy/db/migrate/20150116052159_create_kaui_allowed_users.kaui.rb
|
476
532
|
- test/dummy/db/schema.rb
|
477
533
|
- test/dummy/lib/assets/.gitkeep
|
478
534
|
- test/dummy/log/.gitkeep
|
@@ -485,6 +541,8 @@ test_files:
|
|
485
541
|
- test/functional/kaui/account_tags_controller_test.rb
|
486
542
|
- test/functional/kaui/account_timelines_controller_test.rb
|
487
543
|
- test/functional/kaui/accounts_controller_test.rb
|
544
|
+
- test/functional/kaui/admin_allowed_users_controller_test.rb
|
545
|
+
- test/functional/kaui/admin_tenants_controller_test.rb
|
488
546
|
- test/functional/kaui/bundle_tags_controller_test.rb
|
489
547
|
- test/functional/kaui/bundles_controller_test.rb
|
490
548
|
- test/functional/kaui/chargebacks_controller_test.rb
|
@@ -492,6 +550,7 @@ test_files:
|
|
492
550
|
- test/functional/kaui/credits_controller_test.rb
|
493
551
|
- test/functional/kaui/custom_fields_controller_test.rb
|
494
552
|
- test/functional/kaui/functional_test_helper.rb
|
553
|
+
- test/functional/kaui/functional_test_helper_nosetup.rb
|
495
554
|
- test/functional/kaui/invoice_items_controller_test.rb
|
496
555
|
- test/functional/kaui/invoices_controller_test.rb
|
497
556
|
- test/functional/kaui/payment_methods_controller_test.rb
|
@@ -500,13 +559,18 @@ test_files:
|
|
500
559
|
- test/functional/kaui/subscriptions_controller_test.rb
|
501
560
|
- test/functional/kaui/tag_definitions_controller_test.rb
|
502
561
|
- test/functional/kaui/tags_controller_test.rb
|
562
|
+
- test/functional/kaui/tenants_controller_test.rb
|
503
563
|
- test/functional/kaui/transactions_controller_test.rb
|
504
564
|
- test/integration/kaui/integration_test_helper.rb
|
505
565
|
- test/integration/kaui/navigation_test.rb
|
506
566
|
- test/killbill_test_helper.rb
|
507
567
|
- test/test_helper.rb
|
568
|
+
- test/unit/helpers/kaui/admin_allowed_users_helper_test.rb
|
569
|
+
- test/unit/helpers/kaui/admin_tenants_helper_test.rb
|
570
|
+
- test/unit/helpers/kaui/tenants_helper_test.rb
|
508
571
|
- test/unit/kaui/account_email_test.rb
|
509
572
|
- test/unit/kaui/account_test.rb
|
573
|
+
- test/unit/kaui/allowed_user_test.rb
|
510
574
|
- test/unit/kaui/base_test.rb
|
511
575
|
- test/unit/kaui/date_helper_test.rb
|
512
576
|
- test/unit/kaui/invoice_item_test.rb
|
@@ -515,4 +579,5 @@ test_files:
|
|
515
579
|
- test/unit/kaui/money_helper_test.rb
|
516
580
|
- test/unit/kaui/payment_test.rb
|
517
581
|
- test/unit/kaui/tag_definition_test.rb
|
582
|
+
- test/unit/kaui/tenant_test.rb
|
518
583
|
- test/unit/kaui/uuid_helper_test.rb
|
@@ -1,71 +0,0 @@
|
|
1
|
-
// Inspired by http://bl.ocks.org/2579599
|
2
|
-
// This function assumes the data to be sorted
|
3
|
-
// TODO: add Y legend, add labels on data points
|
4
|
-
function drawGraph(dataX, dataY, chartId) {
|
5
|
-
if (dataX.length != dataY.length) {
|
6
|
-
return;
|
7
|
-
}
|
8
|
-
|
9
|
-
// Define dimensions of graph
|
10
|
-
var m = [80, 80, 80, 80]; // margins
|
11
|
-
var w = 1000 - m[1] - m[3]; // width
|
12
|
-
var h = 400 - m[0] - m[2]; // height
|
13
|
-
|
14
|
-
// For regular data (non dates):
|
15
|
-
//var x = d3.scale.linear().domain([0, dataX.length]).range([0, w]);
|
16
|
-
// For dates:
|
17
|
-
var minDate = new Date(dataX[0]);
|
18
|
-
var maxDate = new Date(dataX[dataX.length - 1]);
|
19
|
-
var x = d3.time.scale().domain([minDate, maxDate]).range([0, w]);
|
20
|
-
|
21
|
-
// Y scale will fit values from 0-yMax within pixels h-0 (Note the inverted domain for the y-scale: bigger is up!)
|
22
|
-
var yMin = d3.min(dataY);
|
23
|
-
if (yMin > 0) {
|
24
|
-
yMin = 0;
|
25
|
-
}
|
26
|
-
var yMax = d3.max(dataY);
|
27
|
-
var y = d3.scale.linear().domain([yMin, yMax]).range([h, 0]);
|
28
|
-
|
29
|
-
// Create a line function that can convert data[] into x and y points
|
30
|
-
var line = d3.svg.line()
|
31
|
-
.x(function(d,i) {
|
32
|
-
// For regular data (non dates):
|
33
|
-
//console.log('Plotting X value for data point: ' + d + ' using index: ' + i + ' to be at: ' + x(dataX[i]) + ' using our xScale.');
|
34
|
-
//return x(dataX[i]);
|
35
|
-
// For dates
|
36
|
-
//console.log('Plotting X value for data point: ' + d + ' using index: ' + i + ' to be at: ' + x(new Date(dataX[i])) + ' using our xScale.');
|
37
|
-
return x(new Date(dataX[i]));
|
38
|
-
})
|
39
|
-
.y(function(d) {
|
40
|
-
//console.log('Plotting Y value for data point: ' + d + ' to be at: ' + y(d) + " using our yScale.");
|
41
|
-
return y(d);
|
42
|
-
})
|
43
|
-
|
44
|
-
// Add an SVG element with the desired dimensions and margin.
|
45
|
-
var graph = d3.select("#" + chartId)
|
46
|
-
.append("svg:svg")
|
47
|
-
.attr("width", w + m[1] + m[3])
|
48
|
-
.attr("height", h + m[0] + m[2])
|
49
|
-
.append("svg:g")
|
50
|
-
.attr("transform", "translate(" + m[3] + "," + m[0] + ")");
|
51
|
-
|
52
|
-
// Create xAxis
|
53
|
-
var xAxis = d3.svg.axis().scale(x).tickSize(-h).tickSubdivide(true);
|
54
|
-
// Add the x-axis
|
55
|
-
graph.append("svg:g")
|
56
|
-
.attr("class", "x axis")
|
57
|
-
.attr("transform", "translate(0," + h + ")")
|
58
|
-
.call(xAxis);
|
59
|
-
|
60
|
-
// Create left yAxis
|
61
|
-
var yAxisLeft = d3.svg.axis().scale(y).ticks(4).orient("left");
|
62
|
-
// Add the y-axis to the left
|
63
|
-
graph.append("svg:g")
|
64
|
-
.attr("class", "y axis")
|
65
|
-
.attr("transform", "translate(-25,0)")
|
66
|
-
.call(yAxisLeft);
|
67
|
-
|
68
|
-
// Add the line by appending an svg:path element with the data line we created above
|
69
|
-
// do this AFTER the axes above so that the line is above the tick-lines
|
70
|
-
graph.append("svg:path").attr("d", line(dataY));
|
71
|
-
}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
table.right-aligned th, table.right-aligned td {
|
2
|
-
text-align: right;
|
3
|
-
}
|
4
|
-
|
5
|
-
path {
|
6
|
-
stroke: steelblue;
|
7
|
-
stroke-width: 1;
|
8
|
-
fill: none;
|
9
|
-
}
|
10
|
-
|
11
|
-
.axis {
|
12
|
-
shape-rendering: crispEdges;
|
13
|
-
}
|
14
|
-
|
15
|
-
.x.axis line {
|
16
|
-
stroke: lightgrey;
|
17
|
-
}
|
18
|
-
|
19
|
-
.x.axis .minor {
|
20
|
-
stroke-opacity: .5;
|
21
|
-
}
|
22
|
-
|
23
|
-
.x.axis path {
|
24
|
-
display: none;
|
25
|
-
}
|
26
|
-
|
27
|
-
.y.axis line, .y.axis path {
|
28
|
-
fill: none;
|
29
|
-
stroke: #000;
|
30
|
-
}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// the compiled file.
|
9
|
-
//
|
10
|
-
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
|
11
|
-
// GO AFTER THE REQUIRES BELOW.
|
12
|
-
//
|
13
|
-
//= require jquery
|
14
|
-
//= require jquery_ujs
|
15
|
-
//= require d3
|
16
|
-
//= require js/bootstrap.v2.2.1.min
|
17
|
-
//= require js/jquery.dataTables.v1.9.3.min
|
18
|
-
//= require kaui/bootstrap-tweaks
|
19
|
-
//= require kaui/validation
|
20
|
-
//= require kaui/analytics
|
21
|
-
//= require_tree .
|