hippo-fw 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.nvmrc +2 -0
- data/.travis.yml +1 -1
- data/client/hippo/access/login-dialog.jsx +3 -5
- data/client/hippo/boot.jsx +2 -2
- data/client/hippo/components/asset.jsx +0 -1
- data/client/hippo/components/data-list.jsx +16 -15
- data/client/hippo/components/data-list/data-list.scss +10 -0
- data/client/hippo/components/data-table.jsx +14 -14
- data/client/hippo/components/data-table/header-cell.jsx +0 -1
- data/client/hippo/components/data-table/table-styles.scss +7 -0
- data/client/hippo/components/date-time.jsx +19 -16
- data/client/hippo/components/date-time/calendar.jsx +5 -7
- data/client/hippo/components/date-time/date-time-drop.jsx +0 -2
- data/client/hippo/components/date-time/time.jsx +0 -1
- data/client/hippo/components/form.jsx +1 -1
- data/client/hippo/components/form/{model.js → api.js} +25 -7
- data/client/hippo/components/form/fields.jsx +12 -11
- data/client/hippo/components/form/fields/date-wrapper.jsx +1 -1
- data/client/hippo/components/form/fields/form-field.scss +9 -1
- data/client/hippo/components/form/fields/label.jsx +14 -0
- data/client/hippo/components/form/fields/select-wrapper.jsx +2 -3
- data/client/hippo/components/form/wrapper.jsx +1 -3
- data/client/hippo/components/icon.jsx +2 -69
- data/client/hippo/components/master-detail.jsx +0 -2
- data/client/hippo/components/network-activity-overlay.jsx +1 -4
- data/client/hippo/components/query-builder.jsx +15 -16
- data/client/hippo/components/record-finder.jsx +2 -5
- data/client/hippo/components/record-finder/query-layer.jsx +1 -5
- data/client/hippo/components/screen.jsx +7 -3
- data/client/hippo/components/text-editor.jsx +2 -8
- data/client/hippo/components/tool-tip.jsx +2 -3
- data/client/hippo/components/warning-notification.jsx +3 -3
- data/client/hippo/lib/date-range.js +28 -0
- data/client/hippo/lib/util.js +6 -0
- data/client/hippo/models/asset.js +6 -3
- data/client/hippo/models/config.js +1 -1
- data/client/hippo/models/pub_sub.js +12 -7
- data/client/hippo/models/pub_sub/channel.js +6 -4
- data/client/hippo/models/query.js +19 -4
- data/client/hippo/models/query/array-result.js +9 -8
- data/client/hippo/models/query/clause.js +21 -13
- data/client/hippo/models/query/field.js +7 -2
- data/client/hippo/models/query/info.js +7 -3
- data/client/hippo/models/sync.js +11 -14
- data/client/hippo/react/Root.jsx +1 -2
- data/client/hippo/react/{DefaultComponentNotFound.jsx → component-not-found.jsx} +1 -3
- data/client/hippo/screens/index.js +6 -2
- data/client/hippo/screens/system-settings.jsx +10 -6
- data/client/hippo/screens/system-settings/mailer-config.jsx +0 -2
- data/client/hippo/screens/system-settings/tenant.jsx +1 -4
- data/client/hippo/screens/user-management.jsx +0 -1
- data/client/hippo/screens/user-management/edit-form.jsx +1 -2
- data/client/hippo/workspace/index.jsx +21 -12
- data/client/hippo/workspace/menu-group.jsx +4 -7
- data/client/hippo/workspace/menu-option.jsx +1 -3
- data/client/hippo/workspace/menu.jsx +29 -11
- data/client/hippo/workspace/navbar.jsx +1 -2
- data/client/hippo/workspace/root-view.jsx +5 -2
- data/client/hippo/workspace/screen.jsx +2 -3
- data/client/hippo/workspace/styles.scss +17 -0
- data/command-reference-files/screen/client/appy-app/screens/ready-set-go.jsx +2 -1
- data/db/migrate/20170530120004_create_users.rb +1 -1
- data/hippo-fw.gemspec +3 -2
- data/lib/hippo/api/cable.rb +13 -13
- data/lib/hippo/api/controller_base.rb +1 -0
- data/lib/hippo/api/handlers/tenant.rb +1 -1
- data/lib/hippo/api/handlers/user_session.rb +2 -1
- data/lib/hippo/api/helper_methods.rb +4 -1
- data/lib/hippo/api/pub_sub.rb +7 -6
- data/lib/hippo/api/to_json.rb +1 -1
- data/lib/hippo/api/updates.rb +2 -0
- data/lib/hippo/command/console.rb +11 -3
- data/lib/hippo/command/jest.rb +2 -0
- data/lib/hippo/configuration.rb +4 -7
- data/lib/hippo/rake_tasks.rb +1 -1
- data/lib/hippo/screen.rb +31 -93
- data/lib/hippo/screen/definition.rb +76 -0
- data/lib/hippo/screen/group.rb +26 -0
- data/lib/hippo/spec_helper.rb +3 -0
- data/lib/hippo/system_settings.rb +6 -0
- data/lib/hippo/user.rb +11 -3
- data/lib/hippo/version.rb +1 -1
- data/package-lock.json +419 -533
- data/package.json +32 -30
- data/spec/client/access/login-dialog.spec.jsx +4 -5
- data/spec/client/components/__snapshots__/query-builder.spec.jsx.snap +1 -1
- data/spec/client/components/__snapshots__/record-finder.spec.jsx.snap +72 -0
- data/spec/client/components/asset.spec.jsx +2 -6
- data/spec/client/components/data-list.spec.jsx +2 -6
- data/spec/client/components/data-table.spec.jsx +3 -5
- data/spec/client/components/date-time.spec.jsx +1 -1
- data/spec/client/components/form.spec.jsx +2 -2
- data/spec/client/components/master-detail.spec.jsx +1 -2
- data/spec/client/components/network-activity-overlay.spec.jsx +2 -3
- data/spec/client/components/query-builder.spec.jsx +3 -6
- data/spec/client/components/record-finder.spec.jsx +4 -4
- data/spec/client/models/pub_sub.spec.js +3 -1
- data/spec/client/models/query.spec.js +4 -9
- data/spec/client/screens/system-settings-tenants.spec.jsx +1 -1
- data/spec/client/screens/system-settings.spec.jsx +1 -4
- data/spec/client/workspace/__snapshots__/menu.spec.jsx.snap +15 -20
- data/spec/client/workspace/menu.spec.jsx +1 -2
- data/spec/server/api/user_sessions_spec.rb +15 -0
- data/templates/client/screens/screen.jsx +2 -1
- data/views/hippo_root_view.erb +1 -0
- metadata +30 -52
- data/client/hippo/components/calendar/Calendar.jsx +0 -25
- data/client/hippo/components/calendar/index.js +0 -3
- data/client/hippo/components/calendar/styles.scss +0 -3
- data/client/hippo/components/shared/AssetsListing.jsx +0 -23
- data/client/hippo/components/shared/Checkbox.jsx +0 -49
- data/client/hippo/components/shared/CountBadge.jsx +0 -13
- data/client/hippo/components/shared/DateTime.jsx +0 -58
- data/client/hippo/components/shared/DisplayValue.jsx +0 -15
- data/client/hippo/components/shared/ErrorDisplay.jsx +0 -37
- data/client/hippo/components/shared/FieldMixin.jsx +0 -254
- data/client/hippo/components/shared/FieldSet.jsx +0 -52
- data/client/hippo/components/shared/FieldWrapper.jsx +0 -94
- data/client/hippo/components/shared/FormGroup.jsx +0 -41
- data/client/hippo/components/shared/GenericField.jsx +0 -7
- data/client/hippo/components/shared/IconButton.jsx +0 -13
- data/client/hippo/components/shared/ImageAsset.jsx +0 -78
- data/client/hippo/components/shared/IndeterminateCheckbox.jsx +0 -31
- data/client/hippo/components/shared/Input.jsx +0 -16
- data/client/hippo/components/shared/InputFieldMixin.jsx +0 -78
- data/client/hippo/components/shared/JobProgress.jsx +0 -46
- data/client/hippo/components/shared/NumberInput.jsx +0 -37
- data/client/hippo/components/shared/PanelHeader.jsx +0 -15
- data/client/hippo/components/shared/RadioField.jsx +0 -33
- data/client/hippo/components/shared/ResizeSensor.jsx +0 -18
- data/client/hippo/components/shared/ScreenWrapper.jsx +0 -17
- data/client/hippo/components/shared/TextArea.jsx +0 -19
- data/client/hippo/components/shared/Throbber.jsx +0 -8
- data/client/hippo/components/shared/ToggleField.jsx +0 -2
- data/client/hippo/components/shared/Tooltip.jsx +0 -23
- data/client/hippo/components/shared/fields.scss +0 -58
- data/client/hippo/components/shared/fieldset.scss +0 -27
- data/client/hippo/components/shared/image-asset.scss +0 -53
- data/client/hippo/components/shared/index.js +0 -5
- data/client/hippo/components/shared/overlay.scss +0 -83
- data/client/hippo/components/shared/resize-sensor.scss +0 -30
- data/client/hippo/components/shared/styles.scss +0 -64
- data/client/hippo/components/shared/throbber.scss +0 -53
- data/client/hippo/fonts/fontawesome-webfont.woff +0 -0
- data/client/hippo/fonts/fontawesome-webfont.woff2 +0 -0
- data/client/hippo/workspace/content.jsx +0 -22
- data/client/hippo/workspace/tabs.jsx +0 -60
- data/client/hippo/workspace/viewport.jsx +0 -82
- data/spec/client/screens/__snapshots__/tabs.spec.jsx.snap +0 -127
- data/spec/client/screens/tabs.spec.jsx +0 -36
@@ -17,7 +17,7 @@ describe('Workspace Menu', () => {
|
|
17
17
|
Group.enabled_group_ids.push(gid);
|
18
18
|
Group.register({ id: gid, title: `Group # ${i}`, icon: `grp-${i}` });
|
19
19
|
Screen.register({
|
20
|
-
group_id: gid, icon: 'unknown', id: `screen-${i}`, title: `test screen for ${i}
|
20
|
+
group_id: gid, icon: 'unknown', id: `screen-${i}`, title: `test screen for ${i}`,
|
21
21
|
});
|
22
22
|
});
|
23
23
|
});
|
@@ -38,7 +38,6 @@ describe('Workspace Menu', () => {
|
|
38
38
|
const screen = getTestScreen();
|
39
39
|
const option = shallow(<MenuOption screen={screen} />);
|
40
40
|
expect(option).toHaveRendered(`Anchor[path="/${screen.id}/"]`);
|
41
|
-
expect(option).toHaveRendered(`Icon[type="${screen.icon}"]`);
|
42
41
|
expect(Snapshot(<MenuOption screen={screen} />)).toMatchSnapshot();
|
43
42
|
});
|
44
43
|
});
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require_relative '../spec_helper'
|
2
|
+
|
3
|
+
describe "User Login", api: true, vcr: VCR_OPTS do
|
4
|
+
|
5
|
+
let!(:user) { FactoryGirl.create :user, login: 'SamTheMan', password: 'password' }
|
6
|
+
|
7
|
+
it 'logs in using case insensitive logins' do
|
8
|
+
post '/api/hippo/user-session.json', {
|
9
|
+
'login' => 'samTheman',
|
10
|
+
'password' => 'password'
|
11
|
+
}.to_json
|
12
|
+
expect(last_response_json['success']).to eq(true)
|
13
|
+
expect(last_response_json.dig('data', 'user', 'login')).to eq(user.login)
|
14
|
+
end
|
15
|
+
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
2
3
|
import { observer } from 'mobx-react';
|
3
4
|
import Screen from 'hippo/components/screen';
|
4
5
|
|
@@ -6,7 +7,7 @@ import Screen from 'hippo/components/screen';
|
|
6
7
|
export default class <%= screen_class %> extends React.PureComponent {
|
7
8
|
|
8
9
|
static propTypes = {
|
9
|
-
screen:
|
10
|
+
screen: PropTypes.instanceOf(Screen.Instance).isRequired,
|
10
11
|
}
|
11
12
|
|
12
13
|
render() {
|
data/views/hippo_root_view.erb
CHANGED
@@ -65,5 +65,6 @@
|
|
65
65
|
</script>
|
66
66
|
</div>
|
67
67
|
<%= javascript_tags :app %>
|
68
|
+
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
|
68
69
|
</body>
|
69
70
|
</html>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hippo-fw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Stitt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activejob
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
47
|
+
version: '0.7'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
54
|
+
version: '0.7'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: litecable
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 0.4.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: anycable
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.4.6
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.4.6
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: websocket
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -478,14 +492,14 @@ dependencies:
|
|
478
492
|
requirements:
|
479
493
|
- - "~>"
|
480
494
|
- !ruby/object:Gem::Version
|
481
|
-
version: '
|
495
|
+
version: '3.3'
|
482
496
|
type: :runtime
|
483
497
|
prerelease: false
|
484
498
|
version_requirements: !ruby/object:Gem::Requirement
|
485
499
|
requirements:
|
486
500
|
- - "~>"
|
487
501
|
- !ruby/object:Gem::Version
|
488
|
-
version: '
|
502
|
+
version: '3.3'
|
489
503
|
- !ruby/object:Gem::Dependency
|
490
504
|
name: pg
|
491
505
|
requirement: !ruby/object:Gem::Requirement
|
@@ -668,6 +682,7 @@ files:
|
|
668
682
|
- ".flowconfig"
|
669
683
|
- ".gitignore"
|
670
684
|
- ".jshintrc"
|
685
|
+
- ".nvmrc"
|
671
686
|
- ".rubocop.yml"
|
672
687
|
- ".ruby-version"
|
673
688
|
- ".travis.yml"
|
@@ -684,10 +699,8 @@ files:
|
|
684
699
|
- client/hippo/boot.jsx
|
685
700
|
- client/hippo/components/asset.jsx
|
686
701
|
- client/hippo/components/asset.scss
|
687
|
-
- client/hippo/components/calendar/Calendar.jsx
|
688
|
-
- client/hippo/components/calendar/index.js
|
689
|
-
- client/hippo/components/calendar/styles.scss
|
690
702
|
- client/hippo/components/data-list.jsx
|
703
|
+
- client/hippo/components/data-list/data-list.scss
|
691
704
|
- client/hippo/components/data-table.jsx
|
692
705
|
- client/hippo/components/data-table/header-cell.jsx
|
693
706
|
- client/hippo/components/data-table/table-styles.scss
|
@@ -700,13 +713,14 @@ files:
|
|
700
713
|
- client/hippo/components/enabled.js.erb
|
701
714
|
- client/hippo/components/field-validation.js
|
702
715
|
- client/hippo/components/form.jsx
|
716
|
+
- client/hippo/components/form/api.js
|
703
717
|
- client/hippo/components/form/fields.jsx
|
704
718
|
- client/hippo/components/form/fields/checkbox-wrapper.jsx
|
705
719
|
- client/hippo/components/form/fields/date-wrapper.jsx
|
706
720
|
- client/hippo/components/form/fields/form-field.scss
|
721
|
+
- client/hippo/components/form/fields/label.jsx
|
707
722
|
- client/hippo/components/form/fields/select-wrapper.jsx
|
708
723
|
- client/hippo/components/form/fields/text-wrapper.jsx
|
709
|
-
- client/hippo/components/form/model.js
|
710
724
|
- client/hippo/components/form/validations.js
|
711
725
|
- client/hippo/components/form/wrapper.jsx
|
712
726
|
- client/hippo/components/grid/config.json
|
@@ -731,40 +745,6 @@ files:
|
|
731
745
|
- client/hippo/components/screen.jsx
|
732
746
|
- client/hippo/components/select-field/index.js
|
733
747
|
- client/hippo/components/select-field/styles.scss
|
734
|
-
- client/hippo/components/shared/AssetsListing.jsx
|
735
|
-
- client/hippo/components/shared/Checkbox.jsx
|
736
|
-
- client/hippo/components/shared/CountBadge.jsx
|
737
|
-
- client/hippo/components/shared/DateTime.jsx
|
738
|
-
- client/hippo/components/shared/DisplayValue.jsx
|
739
|
-
- client/hippo/components/shared/ErrorDisplay.jsx
|
740
|
-
- client/hippo/components/shared/FieldMixin.jsx
|
741
|
-
- client/hippo/components/shared/FieldSet.jsx
|
742
|
-
- client/hippo/components/shared/FieldWrapper.jsx
|
743
|
-
- client/hippo/components/shared/FormGroup.jsx
|
744
|
-
- client/hippo/components/shared/GenericField.jsx
|
745
|
-
- client/hippo/components/shared/IconButton.jsx
|
746
|
-
- client/hippo/components/shared/ImageAsset.jsx
|
747
|
-
- client/hippo/components/shared/IndeterminateCheckbox.jsx
|
748
|
-
- client/hippo/components/shared/Input.jsx
|
749
|
-
- client/hippo/components/shared/InputFieldMixin.jsx
|
750
|
-
- client/hippo/components/shared/JobProgress.jsx
|
751
|
-
- client/hippo/components/shared/NumberInput.jsx
|
752
|
-
- client/hippo/components/shared/PanelHeader.jsx
|
753
|
-
- client/hippo/components/shared/RadioField.jsx
|
754
|
-
- client/hippo/components/shared/ResizeSensor.jsx
|
755
|
-
- client/hippo/components/shared/ScreenWrapper.jsx
|
756
|
-
- client/hippo/components/shared/TextArea.jsx
|
757
|
-
- client/hippo/components/shared/Throbber.jsx
|
758
|
-
- client/hippo/components/shared/ToggleField.jsx
|
759
|
-
- client/hippo/components/shared/Tooltip.jsx
|
760
|
-
- client/hippo/components/shared/fields.scss
|
761
|
-
- client/hippo/components/shared/fieldset.scss
|
762
|
-
- client/hippo/components/shared/image-asset.scss
|
763
|
-
- client/hippo/components/shared/index.js
|
764
|
-
- client/hippo/components/shared/overlay.scss
|
765
|
-
- client/hippo/components/shared/resize-sensor.scss
|
766
|
-
- client/hippo/components/shared/styles.scss
|
767
|
-
- client/hippo/components/shared/throbber.scss
|
768
748
|
- client/hippo/components/text-editor.jsx
|
769
749
|
- client/hippo/components/text-editor/display-modes/Button.jsx
|
770
750
|
- client/hippo/components/text-editor/display-modes/SaveState.jsx
|
@@ -798,14 +778,13 @@ files:
|
|
798
778
|
- client/hippo/extensions/hippo.js
|
799
779
|
- client/hippo/extensions/index.js
|
800
780
|
- client/hippo/extensions/namespace-available.js.erb
|
801
|
-
- client/hippo/fonts/fontawesome-webfont.woff
|
802
|
-
- client/hippo/fonts/fontawesome-webfont.woff2
|
803
781
|
- client/hippo/index.js
|
804
782
|
- client/hippo/index.scss.erb
|
805
783
|
- client/hippo/lib/__mocks__/loader.js
|
806
784
|
- client/hippo/lib/__mocks__/request-assets.js
|
807
785
|
- client/hippo/lib/all.js
|
808
786
|
- client/hippo/lib/bootstrap.js
|
787
|
+
- client/hippo/lib/date-range.js
|
809
788
|
- client/hippo/lib/index.js.erb
|
810
789
|
- client/hippo/lib/loader.js
|
811
790
|
- client/hippo/lib/request-assets.js
|
@@ -831,8 +810,8 @@ files:
|
|
831
810
|
- client/hippo/models/sync.js
|
832
811
|
- client/hippo/models/system-setting.js
|
833
812
|
- client/hippo/models/tenant.js
|
834
|
-
- client/hippo/react/DefaultComponentNotFound.jsx
|
835
813
|
- client/hippo/react/Root.jsx
|
814
|
+
- client/hippo/react/component-not-found.jsx
|
836
815
|
- client/hippo/react/index.js
|
837
816
|
- client/hippo/screens/all.js.erb
|
838
817
|
- client/hippo/screens/definition.js
|
@@ -876,7 +855,6 @@ files:
|
|
876
855
|
- client/hippo/testing/screens.js
|
877
856
|
- client/hippo/testing/utils.js
|
878
857
|
- client/hippo/user.js
|
879
|
-
- client/hippo/workspace/content.jsx
|
880
858
|
- client/hippo/workspace/foo.js
|
881
859
|
- client/hippo/workspace/index.jsx
|
882
860
|
- client/hippo/workspace/menu-group.jsx
|
@@ -892,8 +870,6 @@ files:
|
|
892
870
|
- client/hippo/workspace/styles/layout.scss
|
893
871
|
- client/hippo/workspace/styles/screens.scss
|
894
872
|
- client/hippo/workspace/styles/tabs.scss
|
895
|
-
- client/hippo/workspace/tabs.jsx
|
896
|
-
- client/hippo/workspace/viewport.jsx
|
897
873
|
- client/images/hippo/ajax-loader.gif
|
898
874
|
- client/images/hippo/logo-sm.png
|
899
875
|
- coffeelint.json
|
@@ -1066,6 +1042,8 @@ files:
|
|
1066
1042
|
- lib/hippo/redis.rb
|
1067
1043
|
- lib/hippo/reloadable_sinatra.rb
|
1068
1044
|
- lib/hippo/screen.rb
|
1045
|
+
- lib/hippo/screen/definition.rb
|
1046
|
+
- lib/hippo/screen/group.rb
|
1069
1047
|
- lib/hippo/spec_helper.rb
|
1070
1048
|
- lib/hippo/strings.rb
|
1071
1049
|
- lib/hippo/system_settings.rb
|
@@ -1092,6 +1070,7 @@ files:
|
|
1092
1070
|
- spec/client/components/__snapshots__/master-detail.spec.jsx.snap
|
1093
1071
|
- spec/client/components/__snapshots__/network-activity-overlay.spec.jsx.snap
|
1094
1072
|
- spec/client/components/__snapshots__/query-builder.spec.jsx.snap
|
1073
|
+
- spec/client/components/__snapshots__/record-finder.spec.jsx.snap
|
1095
1074
|
- spec/client/components/asset.spec.jsx
|
1096
1075
|
- spec/client/components/data-list.spec.jsx
|
1097
1076
|
- spec/client/components/data-table.spec.jsx
|
@@ -1110,13 +1089,11 @@ files:
|
|
1110
1089
|
- spec/client/models/query.spec.js
|
1111
1090
|
- spec/client/models/sync.spec.js
|
1112
1091
|
- spec/client/models/system-setting.spec.js
|
1113
|
-
- spec/client/screens/__snapshots__/tabs.spec.jsx.snap
|
1114
1092
|
- spec/client/screens/definition.spec.js
|
1115
1093
|
- spec/client/screens/group.spec.js
|
1116
1094
|
- spec/client/screens/instance.spec.js
|
1117
1095
|
- spec/client/screens/system-settings-tenants.spec.jsx
|
1118
1096
|
- spec/client/screens/system-settings.spec.jsx
|
1119
|
-
- spec/client/screens/tabs.spec.jsx
|
1120
1097
|
- spec/client/screens/user-management.spec.jsx
|
1121
1098
|
- spec/client/setup.js
|
1122
1099
|
- spec/client/test-logo.json
|
@@ -1156,6 +1133,7 @@ files:
|
|
1156
1133
|
- spec/server/api/controller_base_spec.rb
|
1157
1134
|
- spec/server/api/tenant_change_spec.rb
|
1158
1135
|
- spec/server/api/tenant_isolation_spec.rb
|
1136
|
+
- spec/server/api/user_sessions_spec.rb
|
1159
1137
|
- spec/server/assertions.rb
|
1160
1138
|
- spec/server/asset_spec.rb
|
1161
1139
|
- spec/server/command_spec.rb
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
|
3
|
-
import PropTypes from 'prop-types';
|
4
|
-
|
5
|
-
export default class Calendar extends React.Component {
|
6
|
-
static statics =
|
7
|
-
{Events: Hippo.Vendor.Dayz.EventsCollection};
|
8
|
-
|
9
|
-
static propTypes = {
|
10
|
-
display: PropTypes.oneOf(['month', 'week', 'day']),
|
11
|
-
date: PropTypes.object.isRequired,
|
12
|
-
dayComponent: PropTypes.func,
|
13
|
-
events: PropTypes.instanceOf(Hippo.Vendor.Dayz.EventsCollection),
|
14
|
-
dayLabelComponent: PropTypes.func,
|
15
|
-
onDayClick: PropTypes.func,
|
16
|
-
onEventClick: PropTypes.func
|
17
|
-
};
|
18
|
-
render() {
|
19
|
-
return (
|
20
|
-
<Hippo.Vendor.Dayz {...this.props}>
|
21
|
-
{this.props.children}
|
22
|
-
</Hippo.Vendor.Dayz>
|
23
|
-
);
|
24
|
-
}
|
25
|
-
}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
|
3
|
-
import PropTypes from 'prop-types';
|
4
|
-
|
5
|
-
export class AssetsListing extends React.Component {
|
6
|
-
static propTypes = {
|
7
|
-
assets: Hippo.PropTypes.Collection.isRequired,
|
8
|
-
size: PropTypes.oneOf([
|
9
|
-
'thumb', 'medium', 'original'
|
10
|
-
]).isRequired
|
11
|
-
};
|
12
|
-
|
13
|
-
static modelBindings =
|
14
|
-
{assets: 'props'};
|
15
|
-
render() {
|
16
|
-
return (
|
17
|
-
<div export className="assets-listing">
|
18
|
-
{this.assets.map(asset =>
|
19
|
-
<LC.ImageAsset key={asset.cid} asset={asset} size="thumb" />)}
|
20
|
-
</div>
|
21
|
-
);
|
22
|
-
}
|
23
|
-
}
|
@@ -1,49 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
|
3
|
-
import PropTypes from 'prop-types';
|
4
|
-
|
5
|
-
export class FakeInputEvent {
|
6
|
-
constructor(value) {
|
7
|
-
this.target = {value};
|
8
|
-
}
|
9
|
-
isDefaultPrevented() { return false; }
|
10
|
-
}
|
11
|
-
|
12
|
-
|
13
|
-
export class Checkbox extends React.Component {
|
14
|
-
static propTypes =
|
15
|
-
{supportIndeterminate: PropTypes.bool};
|
16
|
-
|
17
|
-
static mixins = [
|
18
|
-
Hippo.Components.Form.InputFieldMixin
|
19
|
-
];
|
20
|
-
componentDidMount() { return this.updateIndeterminate(); }
|
21
|
-
componentDidUpdate() { return this.updateIndeterminate(); }
|
22
|
-
|
23
|
-
updateIndeterminate() {
|
24
|
-
if (!this.props.supportIndeterminate) { return; }
|
25
|
-
return (
|
26
|
-
_.dom(this).el.indeterminate =
|
27
|
-
(this.props.checked !== true) && (this.props.checked !== false)
|
28
|
-
);
|
29
|
-
}
|
30
|
-
|
31
|
-
handleCheckboxChange(ev) {
|
32
|
-
if (ev.target.checked) {
|
33
|
-
return (
|
34
|
-
this.fieldMixinSetValue( new FakeInputEvent(this.props.value) )
|
35
|
-
);
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
renderInputField(props, handlers) {
|
40
|
-
return (
|
41
|
-
<input
|
42
|
-
type="checkbox"
|
43
|
-
{...handlers}
|
44
|
-
{...props}
|
45
|
-
checked={this.props.checked}
|
46
|
-
onChange={this.handleCheckboxChange} />
|
47
|
-
);
|
48
|
-
}
|
49
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
|
3
|
-
export class CountBadge extends React.Component {
|
4
|
-
static propTypes =
|
5
|
-
{count: React.PropTypes.number};
|
6
|
-
|
7
|
-
render() {
|
8
|
-
const export classes = _.classnames('count', {super: (this.props.superScript != null)});
|
9
|
-
return (
|
10
|
-
React.createElement(BS.Badge, {"export className": (classes)}, (this.props.count))
|
11
|
-
);
|
12
|
-
}
|
13
|
-
}
|
@@ -1,58 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
|
3
|
-
import PropTypes from 'prop-types';
|
4
|
-
|
5
|
-
export default class DateTime extends React.Component {
|
6
|
-
static mixins = [
|
7
|
-
Hippo.Components.Form.FieldMixin
|
8
|
-
];
|
9
|
-
static fieldClassName = 'date-time';
|
10
|
-
|
11
|
-
static propTypes = {
|
12
|
-
unlabled: PropTypes.bool,
|
13
|
-
format: PropTypes.string
|
14
|
-
};
|
15
|
-
getDefaultProps() {
|
16
|
-
return (
|
17
|
-
{format: 'ddd, MMM Do YYYY, h:mm a'}
|
18
|
-
);
|
19
|
-
}
|
20
|
-
|
21
|
-
|
22
|
-
handleKeyDown(ev) {
|
23
|
-
if (ev.key === 'Enter') { return this.props.onEnter(); }
|
24
|
-
}
|
25
|
-
|
26
|
-
renderDisplay(props) {
|
27
|
-
const clean = LC.Form.FieldMixin.statics.cleanSizeProps(props);
|
28
|
-
return (
|
29
|
-
<BS.FormControl.Static {...clean}>
|
30
|
-
{this.getDateValue().format(this.props.format)}
|
31
|
-
</BS.FormControl.Static>
|
32
|
-
);
|
33
|
-
}
|
34
|
-
|
35
|
-
getDateValue() {
|
36
|
-
return (
|
37
|
-
_.moment.utc(this.fieldMixinGetValue())
|
38
|
-
);
|
39
|
-
}
|
40
|
-
|
41
|
-
handleDateTimeChange(val) {
|
42
|
-
return (
|
43
|
-
this.fieldMixinSetValue({target: {value: Hippo.u.utcToLocalDate(val)}})
|
44
|
-
);
|
45
|
-
}
|
46
|
-
|
47
|
-
renderEdit(props) {
|
48
|
-
props = _.extend({
|
49
|
-
ref: 'control',
|
50
|
-
value: Hippo.u.dateToUTC(this.getDateValue().toDate()),
|
51
|
-
onChange: this.handleDateTimeChange
|
52
|
-
}, this.props);
|
53
|
-
props = _.omit(LC.Form.FieldMixin.statics.cleanSizeProps(props), 'writable');
|
54
|
-
return (
|
55
|
-
<Hippo.Vendor.ReactWidgets.DateTimePicker {...props} />
|
56
|
-
);
|
57
|
-
}
|
58
|
-
}
|