lanes 0.5.0 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/client/fonts/fontawesome-webfont.woff +0 -0
  3. data/client/fonts/fontawesome-webfont.woff2 +0 -0
  4. data/client/lanes/Boot.cjsx +1 -6
  5. data/client/lanes/components/grid/Body.cjsx +14 -1
  6. data/client/lanes/components/grid/Grid.cjsx +20 -19
  7. data/client/lanes/components/grid/Toolbar.cjsx +7 -4
  8. data/client/lanes/components/grid/editors.scss +1 -1
  9. data/client/lanes/components/grid/styles.scss +16 -5
  10. data/client/lanes/components/modal/Modal.cjsx +9 -11
  11. data/client/lanes/components/record-finder/RecordFinder.cjsx +2 -2
  12. data/client/lanes/components/record-finder/styles.scss +7 -5
  13. data/client/lanes/components/shared/FormGroup.cjsx +1 -1
  14. data/client/lanes/components/shared/Icon.cjsx +3 -2
  15. data/client/lanes/components/shared/Input.cjsx +1 -0
  16. data/client/lanes/components/shared/PanelHeader.cjsx +8 -0
  17. data/client/lanes/components/shared/fields.scss +5 -4
  18. data/client/lanes/components/shared/styles.scss +18 -0
  19. data/client/lanes/index.js +0 -1
  20. data/client/lanes/{plugins → lib}/ResizeSensor.js +0 -0
  21. data/client/lanes/lib/all.js +13 -0
  22. data/client/lanes/lib/dom.coffee +1 -1
  23. data/client/lanes/lib/format.coffee +2 -2
  24. data/client/lanes/lib/index.js.erb +1 -13
  25. data/client/lanes/lib/loader.coffee +2 -2
  26. data/client/lanes/lib/utilFunctions.coffee +12 -0
  27. data/client/lanes/models/AssociationMap.coffee +27 -18
  28. data/client/lanes/models/Base.coffee +12 -4
  29. data/client/lanes/models/Collection.coffee +5 -3
  30. data/client/lanes/models/PubSub.coffee +1 -1
  31. data/client/lanes/models/Query.coffee +0 -1
  32. data/client/lanes/models/State.coffee +5 -1
  33. data/client/lanes/models/Sync.coffee +5 -9
  34. data/client/lanes/models/query/ArrayResult.coffee +27 -7
  35. data/client/lanes/models/query/Result.coffee +2 -0
  36. data/client/lanes/react/Component.coffee +3 -3
  37. data/client/lanes/react/Viewport.coffee +17 -5
  38. data/client/lanes/react/mixins/Access.coffee +2 -2
  39. data/client/lanes/react/mixins/FieldErrors.coffee +3 -3
  40. data/client/lanes/remote/BaseClasses.coffee +0 -0
  41. data/client/lanes/remote/api.coffee +8 -0
  42. data/client/lanes/styles/fonts/_icons.scss +139 -2
  43. data/client/lanes/styles/fonts/_variables.scss +142 -4
  44. data/client/lanes/styles/global/mixins.scss +5 -0
  45. data/client/lanes/styles/global/styles.scss +5 -2
  46. data/client/lanes/styles/global.scss +1 -0
  47. data/client/lanes/vendor/base.js.erb +4 -2
  48. data/client/lanes/vendor/development/calendar.js +65 -65
  49. data/client/lanes/vendor/development/commons.js +34530 -34719
  50. data/client/lanes/vendor/development/data.js +30832 -0
  51. data/client/lanes/vendor/development/helpers.js +26 -26
  52. data/client/lanes/vendor/development/toggle.js +19 -19
  53. data/client/lanes/vendor/development/ui.js +22568 -0
  54. data/client/lanes/vendor/development/widgets.js +362 -362
  55. data/client/lanes/vendor/production/calendar.js +65 -65
  56. data/client/lanes/vendor/production/commons.js +34360 -34549
  57. data/client/lanes/vendor/production/data.js +30829 -0
  58. data/client/lanes/vendor/production/toggle.js +19 -19
  59. data/client/lanes/vendor/production/ui.js +22564 -0
  60. data/client/lanes/vendor/production/widgets.js +362 -362
  61. data/client/lanes/vendor/{production/base.js → standalone/index.js} +43836 -53602
  62. data/client/lanes/workspace/Modal.cjsx +1 -1
  63. data/client/lanes/workspace/styles/header.scss +1 -0
  64. data/client/lanes/workspace/styles/layout.scss +12 -0
  65. data/lanes.gemspec +1 -0
  66. data/lib/lanes/access/authentication_provider.rb +4 -3
  67. data/lib/lanes/api/coffeescript_processor.rb +9 -3
  68. data/lib/lanes/api/{controller.rb → controller_base.rb} +3 -35
  69. data/lib/lanes/api/formatted_reply.rb +2 -2
  70. data/lib/lanes/api/generic_controller.rb +42 -0
  71. data/lib/lanes/api/helper_methods.rb +1 -1
  72. data/lib/lanes/api/null_authentication_provider.rb +3 -0
  73. data/lib/lanes/api/request_wrapper.rb +32 -18
  74. data/lib/lanes/api/root.rb +25 -3
  75. data/lib/lanes/api/routing.rb +41 -22
  76. data/lib/lanes/api/sprockets_extension.rb +3 -1
  77. data/lib/lanes/api.rb +2 -1
  78. data/lib/lanes/configuration.rb +0 -1
  79. data/lib/lanes/extension/definition.rb +5 -1
  80. data/lib/lanes/hot_reload_plugin.rb +0 -1
  81. data/lib/lanes/version.rb +1 -1
  82. data/npm-build/build +3 -0
  83. data/npm-build/{base.js → data.js} +16 -16
  84. data/npm-build/package.json +3 -1
  85. data/npm-build/standalone.js +4 -0
  86. data/npm-build/ui.js +8 -0
  87. data/npm-build/webpack-standalone.config.js +16 -0
  88. data/npm-build/webpack.config.js +4 -3
  89. data/templates/config/lanes.rb +3 -3
  90. metadata +34 -10
  91. data/client/lanes/lib/noConflict.coffee +0 -15
  92. data/client/lanes/plugins/index.js +0 -1
  93. data/client/lanes/vendor/development/base.js +0 -61239
@@ -2,6 +2,7 @@
2
2
  "name": "lanes-vendor-modules",
3
3
  "author": "Nathan Stitt",
4
4
  "license": "MIT",
5
+ "private": true,
5
6
  "description": "Build for deploy",
6
7
  "version": "0.1.0",
7
8
  "main": "vendor.js",
@@ -18,13 +19,14 @@
18
19
  "dayz": "0.6.3",
19
20
  "get-object-path": "~0.0.3",
20
21
  "history": "^2.1.0",
21
- "lodash": "^4.6.1",
22
+ "lodash": "*",
22
23
  "lodash-inflection": "^1.3.2",
23
24
  "loglevel": "1.4.0",
24
25
  "moment": "^2.12.0",
25
26
  "moment-range": "^2.2.0",
26
27
  "object-assign": "^4.0.1",
27
28
  "react": "*",
29
+ "react-lite": "0.15.14",
28
30
  "react-addons-test-utils": "^15.0",
29
31
  "react-bootstrap": "^0.29.4",
30
32
  "react-component-resizable": "git://github.com/justinanastos/react-component-resizable#8c995a6a624fee7f9651e18c6177f79d41244898",
@@ -0,0 +1,4 @@
1
+ require("./data");
2
+
3
+ Lanes.Vendor.React = require("react-lite");
4
+ Lanes.Vendor.ReactDOM = require("react-lite");
data/npm-build/ui.js ADDED
@@ -0,0 +1,8 @@
1
+ Lanes.Vendor.React = require("react");
2
+ Lanes.Vendor.ReactDOM = require("react-dom");
3
+
4
+ Lanes.Vendor.ReactBootstrap = require("react-bootstrap");
5
+ Lanes.Vendor.BrowserHistory = require("history");
6
+ Lanes.Vendor.ComponentResize = require('react-component-resizable');
7
+ Lanes.Vendor.List = require('react-list')
8
+ Lanes.Vendor.Overlay = require('react-overlays');
@@ -0,0 +1,16 @@
1
+ var fs = require('fs');
2
+ var path = require('path');
3
+ var webpack = require("webpack");
4
+
5
+ var ENTRIES = {
6
+ index: "./standalone.js"
7
+ }
8
+
9
+ module.exports = {
10
+ cache: false,
11
+ entry: ENTRIES,
12
+ output: {
13
+ path: path.join(__dirname, "../client/lanes/vendor/standalone"),
14
+ filename: "[name].js"
15
+ }
16
+ };
@@ -7,9 +7,10 @@ var CommonsChunkPlugin = require("webpack/lib/optimize/CommonsChunkPlugin");
7
7
  var buildEnv = process.env.BUILD_ENV || 'development';
8
8
  var COMMONS = "commons";
9
9
  var SCRIPTS = {
10
- base: "./base.js",
11
- widgets: "./react-widgets.js",
12
- toggle: "./react-toggle.js",
10
+ data: "./data.js",
11
+ ui: "./ui.js",
12
+ widgets: "./react-widgets.js",
13
+ toggle: "./react-toggle.js",
13
14
  calendar: "./calendar.js",
14
15
  }
15
16
 
@@ -1,7 +1,7 @@
1
- # This file will be loaded if the current extension is the
2
- # one controlling Lanes.
1
+ # This file will be loaded as part of Lanes startup.
3
2
  #
4
- # It will not be evaluated if another extension is loading this one
3
+ # Extensions are called in load order, so be aware latter extensions may
4
+ # override config options specified
5
5
  Lanes.configure do | config |
6
6
  # You can specify a different initial vew by setting it here
7
7
  # It must be set if the "Workspace" extension is disabled in
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lanes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Stitt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-28 00:00:00.000000000 Z
11
+ date: 2016-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob
@@ -304,6 +304,20 @@ dependencies:
304
304
  - - "~>"
305
305
  - !ruby/object:Gem::Version
306
306
  version: '0.8'
307
+ - !ruby/object:Gem::Dependency
308
+ name: rack-cors
309
+ requirement: !ruby/object:Gem::Requirement
310
+ requirements:
311
+ - - "~>"
312
+ - !ruby/object:Gem::Version
313
+ version: '0.4'
314
+ type: :runtime
315
+ prerelease: false
316
+ version_requirements: !ruby/object:Gem::Requirement
317
+ requirements:
318
+ - - "~>"
319
+ - !ruby/object:Gem::Version
320
+ version: '0.4'
307
321
  - !ruby/object:Gem::Dependency
308
322
  name: rack-protection
309
323
  requirement: !ruby/object:Gem::Requirement
@@ -601,6 +615,7 @@ files:
601
615
  - client/lanes/components/shared/JobProgress.cjsx
602
616
  - client/lanes/components/shared/NetworkActivityOverlay.cjsx
603
617
  - client/lanes/components/shared/NumberInput.cjsx
618
+ - client/lanes/components/shared/PanelHeader.cjsx
604
619
  - client/lanes/components/shared/RadioField.cjsx
605
620
  - client/lanes/components/shared/ResizeSensor.cjsx
606
621
  - client/lanes/components/shared/ScreenWrapper.cjsx
@@ -633,6 +648,8 @@ files:
633
648
  - client/lanes/lib/HotReload.coffee
634
649
  - client/lanes/lib/MakeBaseClass.coffee
635
650
  - client/lanes/lib/ModuleSupport.coffee
651
+ - client/lanes/lib/ResizeSensor.js
652
+ - client/lanes/lib/all.js
636
653
  - client/lanes/lib/development.coffee
637
654
  - client/lanes/lib/dom-polyfills.coffee
638
655
  - client/lanes/lib/dom.coffee
@@ -641,7 +658,6 @@ files:
641
658
  - client/lanes/lib/index.js.erb
642
659
  - client/lanes/lib/loader.coffee
643
660
  - client/lanes/lib/namespace.coffee
644
- - client/lanes/lib/noConflict.coffee
645
661
  - client/lanes/lib/objToParam.coffee
646
662
  - client/lanes/lib/production.coffee
647
663
  - client/lanes/lib/promise_helpers.coffee
@@ -667,8 +683,6 @@ files:
667
683
  - client/lanes/models/query/ArrayResult.coffee
668
684
  - client/lanes/models/query/CollectionResult.coffee
669
685
  - client/lanes/models/query/Result.coffee
670
- - client/lanes/plugins/ResizeSensor.js
671
- - client/lanes/plugins/index.js
672
686
  - client/lanes/react/Component.coffee
673
687
  - client/lanes/react/DefaultComponentNotFound.cjsx
674
688
  - client/lanes/react/ModelObserver.coffee
@@ -692,6 +706,8 @@ files:
692
706
  - client/lanes/react/mixins/RelayFieldChange.coffee
693
707
  - client/lanes/react/mixins/Screen.coffee
694
708
  - client/lanes/react/mixins/Viewport.coffee
709
+ - client/lanes/remote/BaseClasses.coffee
710
+ - client/lanes/remote/api.coffee
695
711
  - client/lanes/screens/ChangeListener.coffee
696
712
  - client/lanes/screens/Commands.coffee
697
713
  - client/lanes/screens/CommonComponents.cjsx
@@ -793,6 +809,7 @@ files:
793
809
  - client/lanes/styles/global.scss
794
810
  - client/lanes/styles/global/fancy-header.scss
795
811
  - client/lanes/styles/global/flexbox.scss
812
+ - client/lanes/styles/global/mixins.scss
796
813
  - client/lanes/styles/global/styles.scss
797
814
  - client/lanes/styles/mixins/_dropdown.scss
798
815
  - client/lanes/styles/mixins/_flexbox.scss
@@ -808,20 +825,23 @@ files:
808
825
  - client/lanes/vendor/base.js.erb
809
826
  - client/lanes/vendor/calendar.js.erb
810
827
  - client/lanes/vendor/commons.js.erb
811
- - client/lanes/vendor/development/base.js
812
828
  - client/lanes/vendor/development/calendar.js
813
829
  - client/lanes/vendor/development/commons.js
830
+ - client/lanes/vendor/development/data.js
814
831
  - client/lanes/vendor/development/helpers.js
815
832
  - client/lanes/vendor/development/toggle.js
833
+ - client/lanes/vendor/development/ui.js
816
834
  - client/lanes/vendor/development/widgets.js
817
835
  - client/lanes/vendor/index.js
818
836
  - client/lanes/vendor/message-bus-ajax.js
819
837
  - client/lanes/vendor/message-bus.js
820
- - client/lanes/vendor/production/base.js
821
838
  - client/lanes/vendor/production/calendar.js
822
839
  - client/lanes/vendor/production/commons.js
840
+ - client/lanes/vendor/production/data.js
823
841
  - client/lanes/vendor/production/toggle.js
842
+ - client/lanes/vendor/production/ui.js
824
843
  - client/lanes/vendor/production/widgets.js
844
+ - client/lanes/vendor/standalone/index.js
825
845
  - client/lanes/vendor/styles/calendar.scss
826
846
  - client/lanes/vendor/styles/toggle.scss
827
847
  - client/lanes/vendor/styles/widgets.scss
@@ -879,10 +899,11 @@ files:
879
899
  - lib/lanes/access/version.rb
880
900
  - lib/lanes/api.rb
881
901
  - lib/lanes/api/coffeescript_processor.rb
882
- - lib/lanes/api/controller.rb
902
+ - lib/lanes/api/controller_base.rb
883
903
  - lib/lanes/api/default_routes.rb
884
904
  - lib/lanes/api/error_formatter.rb
885
905
  - lib/lanes/api/formatted_reply.rb
906
+ - lib/lanes/api/generic_controller.rb
886
907
  - lib/lanes/api/handlers/asset.rb
887
908
  - lib/lanes/api/helper_methods.rb
888
909
  - lib/lanes/api/javascript_processor.rb
@@ -964,10 +985,10 @@ files:
964
985
  - lib/lanes/workspace/extension.rb
965
986
  - log/.gitkeep
966
987
  - npm-build/README
967
- - npm-build/base.js
968
988
  - npm-build/build
969
989
  - npm-build/calendar.js
970
990
  - npm-build/common.js
991
+ - npm-build/data.js
971
992
  - npm-build/development.js
972
993
  - npm-build/grid.js
973
994
  - npm-build/package.json
@@ -975,7 +996,10 @@ files:
975
996
  - npm-build/react-widgets.js
976
997
  - npm-build/react-widgets.less
977
998
  - npm-build/shims/underscore.js
999
+ - npm-build/standalone.js
1000
+ - npm-build/ui.js
978
1001
  - npm-build/update-dayz
1002
+ - npm-build/webpack-standalone.config.js
979
1003
  - npm-build/webpack.config.js
980
1004
  - spec/command-reference-files/component/client/appy-app/components/Big.cjsx
981
1005
  - spec/command-reference-files/component/spec/appy-app/components/BigSpec.coffee
@@ -1137,7 +1161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1137
1161
  version: '0'
1138
1162
  requirements: []
1139
1163
  rubyforge_project:
1140
- rubygems_version: 2.6.4
1164
+ rubygems_version: 2.5.1
1141
1165
  signing_key:
1142
1166
  specification_version: 4
1143
1167
  summary: Lanes is a framework for easily writing single page web applications
@@ -1,15 +0,0 @@
1
-
2
- `
3
- var previousLanes = window.Lanes;
4
-
5
- if (!Lanes){
6
- window.Lanes = Lanes = {};
7
- }
8
-
9
- Lanes.noConflict = function(){
10
- Lanes.$ = window.jQuery.noConflict(true);
11
- window.Lanes = previousLanes;
12
- return Lanes;
13
- };
14
-
15
- `
@@ -1 +0,0 @@
1
- //= require_tree .