voxality_core 0.1 → 0.1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/LICENSE.txt +21 -0
- data/README.md +38 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/generators/voxality_core/init_generator.rb +15 -0
- data/lib/generators/voxality_core/templates/app/assets/images/.keep +0 -0
- data/lib/generators/voxality_core/templates/app/assets/images/drawer_background_teal.png +0 -0
- data/lib/generators/voxality_core/templates/app/assets/images/icons/menu.svg +4 -0
- data/lib/generators/voxality_core/templates/app/assets/javascripts/application.js +51 -0
- data/lib/generators/voxality_core/templates/app/assets/javascripts/config/Themes.js +24 -0
- data/lib/generators/voxality_core/templates/app/assets/javascripts/controllers/AdminDidsController.js +222 -0
- data/lib/generators/voxality_core/templates/app/assets/javascripts/controllers/AdminUserController.js +51 -0
- data/lib/generators/voxality_core/templates/app/assets/javascripts/controllers/NotificationsController.js +9 -0
- data/lib/generators/voxality_core/templates/app/assets/javascripts/controllers/RegistrationsController.js +40 -0
- data/lib/generators/voxality_core/templates/app/assets/javascripts/environment.js.erb +5 -0
- data/lib/generators/voxality_core/templates/app/assets/javascripts/modules/navigation/_Navigation.js +3 -0
- data/lib/generators/voxality_core/templates/app/assets/javascripts/modules/navigation/controllers/Navigation.js +77 -0
- data/lib/generators/voxality_core/templates/app/assets/javascripts/modules/navigation/providers/Menu.js +24 -0
- data/lib/generators/voxality_core/templates/app/assets/javascripts/modules/navigation/services/Sidenav.js +16 -0
- data/lib/generators/voxality_core/templates/app/assets/javascripts/voxality.js.erb +27 -0
- data/lib/generators/voxality_core/templates/app/assets/stylesheets/application.scss +8 -0
- data/lib/generators/voxality_core/templates/app/assets/stylesheets/base/base.scss +3 -0
- data/lib/generators/voxality_core/templates/app/assets/stylesheets/components/icon.scss +25 -0
- data/lib/generators/voxality_core/templates/app/assets/stylesheets/components/notifications.scss +6 -0
- data/lib/generators/voxality_core/templates/app/assets/stylesheets/layouts/content.scss +12 -0
- data/lib/generators/voxality_core/templates/app/assets/stylesheets/layouts/side_nav.scss +60 -0
- data/lib/generators/voxality_core/templates/app/assets/stylesheets/modules/transform.scss +7 -0
- data/lib/generators/voxality_core/templates/app/assets/stylesheets/modules/variables.scss +7 -0
- data/lib/generators/voxality_core/templates/app/assets/stylesheets/voxels/main.css.scss +0 -0
- data/lib/generators/voxality_core/templates/app/controllers/application_controller.rb +14 -0
- data/lib/generators/voxality_core/templates/app/controllers/voxality_core_controller.rb +4 -0
- data/lib/generators/voxality_core/templates/app/helpers/application_helper.rb +3 -0
- data/lib/generators/voxality_core/templates/app/views/layouts/application.html.erb +18 -0
- data/lib/generators/voxality_core/templates/app/views/shared/_notif.html.erb +25 -0
- data/lib/generators/voxality_core/templates/app/views/voxality_core/_sidenav.html.erb +29 -0
- data/lib/generators/voxality_core/templates/app/views/voxality_core/_toolbar.html.erb +19 -0
- data/lib/generators/voxality_core/templates/app/views/voxality_core/index.html.erb +7 -0
- data/lib/voxality_core/version.rb +3 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/voxality_core_spec.rb +11 -0
- data/voxality_core.gemspec +20 -0
- metadata +52 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bc50c7b6037d17befaae6b563b4807fca822a27
|
4
|
+
data.tar.gz: 6a4f28e7708923901881ab90d0d9c313e02ea8c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20cbedf1b1465422b46cc7874d18650b557fcaae944b1cb808fe65386d64f51e311ecc820db2a43817c2627df11da6028722a1e4ed3b14f2cee8ce2ef4a130b6
|
7
|
+
data.tar.gz: 4cc8e81abbc29252d95d40c5677b20b5606622ddea1b569aefc7fefd90d64f7d7c9e8954589f925e2d8c2b9a0719c0082edc335a8afa7fae995534a5b6e34983
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at julien.chabanon@modulis.ca. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2016 Modulis.ca Inc
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 CHABANON Julien
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# VoxalityCore
|
2
|
+
|
3
|
+
Angular material module manager for RoR
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'voxality_core'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install voxality_core
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
TODO: Write usage instructions here
|
24
|
+
|
25
|
+
## Development
|
26
|
+
|
27
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
28
|
+
|
29
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
30
|
+
|
31
|
+
## Contributing
|
32
|
+
|
33
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/voxality_core. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
34
|
+
|
35
|
+
|
36
|
+
## License
|
37
|
+
|
38
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "voxality_core"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rails/generators/base'
|
2
|
+
|
3
|
+
module VoxalityCore
|
4
|
+
module Generators
|
5
|
+
class InitGenerator < ::Rails::Generators::Base
|
6
|
+
# include Rails::Generators::Migration
|
7
|
+
source_root File.expand_path('../templates', __FILE__)
|
8
|
+
|
9
|
+
desc "Setup project to work with voxality_core"
|
10
|
+
def copy_files_from_templates
|
11
|
+
directory 'app', 'app', recursive: true
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
File without changes
|
Binary file
|
@@ -0,0 +1,51 @@
|
|
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 any plugin's vendor/assets/javascripts directory 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
|
+
// compiled file.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require jquery2
|
14
|
+
//= require jquery_ujs
|
15
|
+
//= require angular/angular
|
16
|
+
//= require angular-animate/angular-animate
|
17
|
+
//= require angular-aria/angular-aria
|
18
|
+
//= require angular-material/angular-material
|
19
|
+
//= require angular-messages/angular-messages
|
20
|
+
//= require angular-ui-router/release/angular-ui-router
|
21
|
+
//= require Chart.js/Chart
|
22
|
+
//= require angular-chart.js/angular-chart
|
23
|
+
//= require angular-country-picker/country-picker
|
24
|
+
//= require environment
|
25
|
+
//= require voxality
|
26
|
+
//= require_self
|
27
|
+
//= require_tree .
|
28
|
+
|
29
|
+
Stripe.setPublishableKey(window.stripePublishableKey)
|
30
|
+
|
31
|
+
window.Voxality = {
|
32
|
+
currentUser: {
|
33
|
+
id: 0,
|
34
|
+
email: ""
|
35
|
+
},
|
36
|
+
|
37
|
+
API: {
|
38
|
+
temporaryToken: "",
|
39
|
+
developmentToken: "",
|
40
|
+
|
41
|
+
getToken: function() {
|
42
|
+
var devToken = window.Voxality.API.developmentToken;
|
43
|
+
var tempToken = window.Voxality.API.temporaryToken;
|
44
|
+
if (devToken != "") {
|
45
|
+
return devToken;
|
46
|
+
} else {
|
47
|
+
return tempToken;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
angular.module('voxality')
|
4
|
+
.config([
|
5
|
+
'$mdThemingProvider',
|
6
|
+
function ($mdThemingProvider) {
|
7
|
+
$mdThemingProvider.setDefaultTheme('voxality');
|
8
|
+
|
9
|
+
//Buttons can only use 'default' theme
|
10
|
+
$mdThemingProvider
|
11
|
+
.theme('default')
|
12
|
+
.primaryPalette('teal')
|
13
|
+
.accentPalette('blue')
|
14
|
+
.warnPalette('red');
|
15
|
+
|
16
|
+
//The default theme for everything else
|
17
|
+
$mdThemingProvider
|
18
|
+
.theme('voxality')
|
19
|
+
.primaryPalette('teal')
|
20
|
+
.accentPalette('indigo')
|
21
|
+
.warnPalette('red')
|
22
|
+
.backgroundPalette('grey');
|
23
|
+
}
|
24
|
+
])
|
@@ -0,0 +1,222 @@
|
|
1
|
+
angular.module('voxality').controller('AdminDidsController', [
|
2
|
+
'$scope',
|
3
|
+
'$http',
|
4
|
+
'$window',
|
5
|
+
'$mdDialog',
|
6
|
+
function($scope, $http, $window, $mdDialog) {
|
7
|
+
$scope.editMarkup = function(markup) {
|
8
|
+
$mdDialog.show({
|
9
|
+
template: editMarkupDialogTemplate,
|
10
|
+
controller: editMarkupDialogController,
|
11
|
+
clickOutsideToClose: true,
|
12
|
+
locals: {
|
13
|
+
// clones the object
|
14
|
+
markup: $.extend({}, markup)
|
15
|
+
}
|
16
|
+
})
|
17
|
+
};
|
18
|
+
|
19
|
+
$scope.deleteMarkup = function(markup) {
|
20
|
+
var confirm = $mdDialog.confirm()
|
21
|
+
.title('Confirm delete?')
|
22
|
+
.textContent('Are you sure you want to delete this markup?')
|
23
|
+
.ok('Delete')
|
24
|
+
.cancel('Cancel');
|
25
|
+
$mdDialog.show(confirm).then(function() {
|
26
|
+
deleteMarkup(markup);
|
27
|
+
});
|
28
|
+
};
|
29
|
+
|
30
|
+
$scope.newMarkup = function() {
|
31
|
+
$mdDialog.show({
|
32
|
+
template: newMarkupDialogTemplate,
|
33
|
+
controller: newMarkupDialogController,
|
34
|
+
clickOutsideToClose: true
|
35
|
+
})
|
36
|
+
};
|
37
|
+
|
38
|
+
$scope.displayTextFor = function(markup) {
|
39
|
+
if (markup.flat) {
|
40
|
+
return '+ $' + markup.modifier;
|
41
|
+
} else {
|
42
|
+
return '+ ' + (markup.modifier * 100) + '%';
|
43
|
+
}
|
44
|
+
};
|
45
|
+
|
46
|
+
var urlFromPath = function(path) {
|
47
|
+
var protocol = $window.location.protocol;
|
48
|
+
var host = $window.location.host;
|
49
|
+
var url = protocol + '//' + host + path;
|
50
|
+
return url;
|
51
|
+
};
|
52
|
+
|
53
|
+
var filterMarkupTypes = function(markups) {
|
54
|
+
$scope.initialMarkups = [];
|
55
|
+
$scope.monthlyMarkups = [];
|
56
|
+
|
57
|
+
var sortMarkup = function(markup) {
|
58
|
+
if (markup.markup_type == 'initial') {
|
59
|
+
$scope.initialMarkups.push(markup);
|
60
|
+
}
|
61
|
+
if (markup.markup_type == 'monthly') {
|
62
|
+
$scope.monthlyMarkups.push(markup);
|
63
|
+
}
|
64
|
+
};
|
65
|
+
|
66
|
+
markups.forEach(sortMarkup);
|
67
|
+
};
|
68
|
+
|
69
|
+
var loadMarkups = function() {
|
70
|
+
var url = urlFromPath('/api/admin/dids/markups');
|
71
|
+
var token = $window.Voxality.API.getToken();
|
72
|
+
var params = { api_token: token }
|
73
|
+
|
74
|
+
var onSuccess = function(response) {
|
75
|
+
filterMarkupTypes(response.data.data);
|
76
|
+
};
|
77
|
+
|
78
|
+
var onFailure = function(response) {
|
79
|
+
alert(response.data.type + '\n' + response.data.exception);
|
80
|
+
};
|
81
|
+
|
82
|
+
$http.get(url, { params: params }).then(onSuccess, onFailure);
|
83
|
+
};
|
84
|
+
|
85
|
+
var saveMarkup = function(markup) {
|
86
|
+
var url = urlFromPath('/api/admin/markups/' + markup.id);
|
87
|
+
var token = $window.Voxality.API.getToken();
|
88
|
+
var params = {
|
89
|
+
modifier: markup.modifier,
|
90
|
+
flat: markup.flat,
|
91
|
+
markup_type: markup.markup_type,
|
92
|
+
api_token: token
|
93
|
+
};
|
94
|
+
|
95
|
+
var onSuccess = function(response) {
|
96
|
+
loadMarkups();
|
97
|
+
};
|
98
|
+
var onFailure = function(response) {
|
99
|
+
alert(response.data.type + '\n' + response.data.exception);
|
100
|
+
};
|
101
|
+
|
102
|
+
$http.patch(url, params).then(onSuccess, onFailure);
|
103
|
+
};
|
104
|
+
|
105
|
+
var createMarkup = function(markup) {
|
106
|
+
var url = urlFromPath('/api/admin/dids/create_markup');
|
107
|
+
var token = $window.Voxality.API.getToken();
|
108
|
+
var params = {
|
109
|
+
modifier: markup.modifier,
|
110
|
+
flat: markup.flat,
|
111
|
+
markup_type: markup.markup_type,
|
112
|
+
api_token: token
|
113
|
+
};
|
114
|
+
|
115
|
+
var onSuccess = function(response) {
|
116
|
+
loadMarkups();
|
117
|
+
};
|
118
|
+
var onFailure = function(response) {
|
119
|
+
alert(response.data.type + '\n' + response.data.exception);
|
120
|
+
};
|
121
|
+
|
122
|
+
$http.post(url, params).then(onSuccess, onFailure);
|
123
|
+
};
|
124
|
+
|
125
|
+
var deleteMarkup = function(markup) {
|
126
|
+
var url = urlFromPath('/api/admin/markups/' + markup.id);
|
127
|
+
var token = $window.Voxality.API.getToken();
|
128
|
+
var params = {
|
129
|
+
api_token: token
|
130
|
+
}
|
131
|
+
|
132
|
+
var onSuccess = function(response) {
|
133
|
+
loadMarkups();
|
134
|
+
};
|
135
|
+
var onFailure = function(response) {
|
136
|
+
alert(response.data.type + '\n' + response.data.exception);
|
137
|
+
};
|
138
|
+
|
139
|
+
$http.delete(url, { params: params }).then(onSuccess, onFailure);
|
140
|
+
};
|
141
|
+
|
142
|
+
var initialize = function() {
|
143
|
+
loadMarkups();
|
144
|
+
};
|
145
|
+
|
146
|
+
initialize();
|
147
|
+
|
148
|
+
// I hate myself for having to write this...
|
149
|
+
// but angular material doesn't support DOM templates
|
150
|
+
// and every other alternative is worse...
|
151
|
+
var editMarkupDialogTemplate = '' +
|
152
|
+
'<md-dialog aria-label="markup dialog">' +
|
153
|
+
' <md-dialog-content layout-padding>' +
|
154
|
+
' <form name="editMarkupForm" layout="column" layout-align="center">' +
|
155
|
+
' <h2 layout="row" layout-align="center" layout-margin>Edit Markup</h2>' +
|
156
|
+
' <md-input-container>' +
|
157
|
+
' <label>Modifier</label>' +
|
158
|
+
' <input ng-model="markup.modifier" required ng-pattern="/^[+-]?[0-9]{1,3}(?:,?[0-9]{3})*(?:\\.[0-9]{1,2})?$/">' +
|
159
|
+
' </md-input-container>' +
|
160
|
+
' <md-input-container>' +
|
161
|
+
' <label>Type</label>' +
|
162
|
+
' <md-select ng-model="markup.markup_type">' +
|
163
|
+
' <md-option ng-repeat="type in markupTypes">' +
|
164
|
+
' {{ type }}' +
|
165
|
+
' </md-option>' +
|
166
|
+
' </md-select>' +
|
167
|
+
' </md-input-container>' +
|
168
|
+
' <md-checkbox ng-model="markup.flat">' +
|
169
|
+
' flat fee?' +
|
170
|
+
' </md-checkbox>' +
|
171
|
+
' <md-button class="md-primary" ng-disabled="editMarkupForm.$invalid" ' +
|
172
|
+
' ng-click="save()">Save</md-button>' +
|
173
|
+
' </form>' +
|
174
|
+
' </md-dialog-content>' +
|
175
|
+
'</md-dialog>';
|
176
|
+
|
177
|
+
var editMarkupDialogController = function($scope, $mdDialog, markup) {
|
178
|
+
$scope.markup = markup;
|
179
|
+
$scope.markupTypes = ['initial', 'monthly'];
|
180
|
+
$scope.save = function() {
|
181
|
+
saveMarkup($scope.markup);
|
182
|
+
$mdDialog.hide();
|
183
|
+
};
|
184
|
+
};
|
185
|
+
|
186
|
+
// please no more :(
|
187
|
+
var newMarkupDialogTemplate = '' +
|
188
|
+
'<md-dialog aria-label="markup dialog">' +
|
189
|
+
' <md-dialog-content layout-padding>' +
|
190
|
+
' <form name="newMarkupForm" layout="column" layout-align="center">' +
|
191
|
+
' <h2 layout="row" layout-align="center" layout-margin>New Markup</h2>' +
|
192
|
+
' <md-input-container>' +
|
193
|
+
' <label>Modifier</label>' +
|
194
|
+
' <input ng-model="markup.modifier" required ng-pattern="/^[+-]?[0-9]{1,3}(?:,?[0-9]{3})*(?:\\.[0-9]{1,2})?$/">' +
|
195
|
+
' </md-input-container>' +
|
196
|
+
' <md-input-container>' +
|
197
|
+
' <label>Type</label>' +
|
198
|
+
' <md-select ng-model="markup.markup_type">' +
|
199
|
+
' <md-option ng-repeat="type in markupTypes">' +
|
200
|
+
' {{ type }}' +
|
201
|
+
' </md-option>' +
|
202
|
+
' </md-select>' +
|
203
|
+
' </md-input-container>' +
|
204
|
+
' <md-checkbox ng-model="markup.flat">' +
|
205
|
+
' flat fee?' +
|
206
|
+
' </md-checkbox>' +
|
207
|
+
' <md-button class="md-primary" ng-disabled="newMarkupForm.$invalid" ' +
|
208
|
+
' ng-click="save()">Save</md-button>' +
|
209
|
+
' </form>' +
|
210
|
+
' </md-dialog-content>' +
|
211
|
+
'</md-dialog>';
|
212
|
+
|
213
|
+
var newMarkupDialogController = function($scope, $mdDialog) {
|
214
|
+
$scope.markup = { flat: false, markup_type: 'monthly' };
|
215
|
+
$scope.markupTypes = ['initial', 'monthly'];
|
216
|
+
$scope.save = function() {
|
217
|
+
createMarkup($scope.markup);
|
218
|
+
$mdDialog.hide();
|
219
|
+
};
|
220
|
+
};
|
221
|
+
}
|
222
|
+
])
|
@@ -0,0 +1,51 @@
|
|
1
|
+
angular.module('voxality').controller('AdminUserController', [
|
2
|
+
'$scope',
|
3
|
+
'$http',
|
4
|
+
'$window',
|
5
|
+
function(
|
6
|
+
$scope,
|
7
|
+
$http,
|
8
|
+
$window) {
|
9
|
+
$scope.displayUser = function(user) {
|
10
|
+
return user.detail.first_name + ' ' + user.detail.last_name + '(' + user.email + ')'
|
11
|
+
};
|
12
|
+
|
13
|
+
$scope.searchUsers = function(text) {
|
14
|
+
var protocol = $window.location.protocol;
|
15
|
+
var host = $window.location.host;
|
16
|
+
var token = $window.Voxality.API.getToken();
|
17
|
+
var url = protocol + '//' + host + '/api/admin/users/search';
|
18
|
+
var params = { api_token: token, query: text };
|
19
|
+
|
20
|
+
var onSuccess = function(response) {
|
21
|
+
$scope.resultUsers = response.data.data;
|
22
|
+
};
|
23
|
+
var onFailure = function(response) {
|
24
|
+
alert(response.data.type + '\n' + response.data.exception);
|
25
|
+
};
|
26
|
+
|
27
|
+
$http.get(url, { params: params }).then(onSuccess, onFailure);
|
28
|
+
};
|
29
|
+
|
30
|
+
$scope.addFunds = function(amount) {
|
31
|
+
$scope.fundsLoading = true;
|
32
|
+
var protocol = $window.location.protocol;
|
33
|
+
var host = $window.location.host;
|
34
|
+
var token = $window.Voxality.API.getToken();
|
35
|
+
var url = protocol + '//' + host + '/api/admin/users/' + $scope.selectedUser.id + '/balance/deposit';
|
36
|
+
var params = { api_token: token, amount: amount };
|
37
|
+
|
38
|
+
var onSuccess = function(response) {
|
39
|
+
$scope.fundsAmount = null;
|
40
|
+
$scope.topupForm.$setPristine();
|
41
|
+
$scope.topupForm.$setUntouched();
|
42
|
+
$scope.fundsLoading = false;
|
43
|
+
};
|
44
|
+
var onFailure = function(response) {
|
45
|
+
alert(response.data.type + '\n' + response.data.exception);
|
46
|
+
};
|
47
|
+
|
48
|
+
$http.post(url, params).then(onSuccess, onFailure);
|
49
|
+
};
|
50
|
+
}
|
51
|
+
]);
|
@@ -0,0 +1,40 @@
|
|
1
|
+
(function() {
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
voxality.controller('RegistrationsController', [
|
5
|
+
'$scope',
|
6
|
+
function ($scope) {
|
7
|
+
$scope.months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'];
|
8
|
+
$scope.years = Array.apply(null, Array(11)).map(function(_, i) {
|
9
|
+
return String(new Date().getFullYear() + i)
|
10
|
+
});
|
11
|
+
|
12
|
+
//Jquery is used because angular doesn't play nice
|
13
|
+
//with refreshing or changing pages (when there's a validation error)
|
14
|
+
var autoRealm = false;
|
15
|
+
var init = function() {
|
16
|
+
$scope.errors = [];
|
17
|
+
|
18
|
+
$('input#company').on('input', updateDomain);
|
19
|
+
$('input#realm').on('input', shutoffAutoRealm);
|
20
|
+
};
|
21
|
+
|
22
|
+
var shutoffAutoRealm = function() {
|
23
|
+
autoRealm = false;
|
24
|
+
};
|
25
|
+
|
26
|
+
var updateDomain = function() {
|
27
|
+
var realm = $('input#realm').val();
|
28
|
+
var domain = $('input#company').val().toLowerCase().replace(/[^a-zA-Z\d]/g, '');
|
29
|
+
if (realm.length == 0) {
|
30
|
+
autoRealm = true;
|
31
|
+
}
|
32
|
+
if (autoRealm == true) {
|
33
|
+
$('input#realm').val(domain);
|
34
|
+
$('input#realm').blur();
|
35
|
+
}
|
36
|
+
};
|
37
|
+
|
38
|
+
init();
|
39
|
+
}])
|
40
|
+
}).call(this)
|
@@ -0,0 +1,5 @@
|
|
1
|
+
//WARNING
|
2
|
+
//This file is used to load environment variables into the javascript front end
|
3
|
+
//Anything loaded into the front end is visible to anyone from their browser
|
4
|
+
//Do not load secret keys, passwords, or any confidential information
|
5
|
+
window.stripePublishableKey = "<%= ENV['STRIPE_PUBLISHABLE_KEY'] %>"
|
@@ -0,0 +1,77 @@
|
|
1
|
+
(function() {
|
2
|
+
angular.module('Navigation')
|
3
|
+
.controller('NavigationController', [
|
4
|
+
'$scope',
|
5
|
+
'$state',
|
6
|
+
'$menu',
|
7
|
+
'$sidenav',
|
8
|
+
'$location',
|
9
|
+
function(
|
10
|
+
$scope,
|
11
|
+
$state,
|
12
|
+
$menu,
|
13
|
+
$sidenav,
|
14
|
+
$location)
|
15
|
+
{
|
16
|
+
$scope.toggleSideNav = $sidenav.toggle;
|
17
|
+
$scope.menuItems = $menu.items;
|
18
|
+
|
19
|
+
$scope.navigate = function(menuItem) {
|
20
|
+
//reset the path or ui router will favor path over our navigation
|
21
|
+
$location.path('/#/dashboard');
|
22
|
+
$scope.currentMenuItem = menuItem;
|
23
|
+
$state.go(menuItem.state);
|
24
|
+
}
|
25
|
+
|
26
|
+
$scope.getMenuClass = function(menuItem) {
|
27
|
+
if (menuItem.state == $scope.currentMenuItem.state) {
|
28
|
+
return 'md-focused';
|
29
|
+
} else {
|
30
|
+
return '';
|
31
|
+
}
|
32
|
+
};
|
33
|
+
|
34
|
+
var findMenuItemByState = function(state) {
|
35
|
+
var result;
|
36
|
+
$menu.items.forEach(function(item) {
|
37
|
+
if (item.state == state.name) {
|
38
|
+
result = item;
|
39
|
+
}
|
40
|
+
});
|
41
|
+
return result;
|
42
|
+
};
|
43
|
+
|
44
|
+
var findStateByUrl = function(url) {
|
45
|
+
var result;
|
46
|
+
$state.get().forEach(function(state) {
|
47
|
+
if (state.url == url) {
|
48
|
+
result = state
|
49
|
+
}
|
50
|
+
});
|
51
|
+
return result;
|
52
|
+
};
|
53
|
+
|
54
|
+
var init = function() {
|
55
|
+
//find a state by URL
|
56
|
+
var state = findStateByUrl($location.path());
|
57
|
+
//if found, find it's menu item and set it to current
|
58
|
+
if (state != null) {
|
59
|
+
$scope.currentMenuItem = findMenuItemByState(state);
|
60
|
+
};
|
61
|
+
|
62
|
+
//if there is no current set, default to 0
|
63
|
+
if ($scope.currentMenuItem == null) {
|
64
|
+
$scope.currentMenuItem = $menu.items[0];
|
65
|
+
// default redirect path
|
66
|
+
$location.path('/' + $menu.items[0].state);
|
67
|
+
}
|
68
|
+
|
69
|
+
if ($scope.currentMenuItem == null) {
|
70
|
+
$scope.navigate($scope.currentMenuItem);
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
init();
|
75
|
+
}
|
76
|
+
]);
|
77
|
+
}).call(this);
|
@@ -0,0 +1,24 @@
|
|
1
|
+
(function() {
|
2
|
+
angular.module('Navigation')
|
3
|
+
.provider('$menu', function() {
|
4
|
+
var menuItems = [];
|
5
|
+
|
6
|
+
this.menuItem = function(item) {
|
7
|
+
menuItems.push(item);
|
8
|
+
};
|
9
|
+
|
10
|
+
this.$get = function() {
|
11
|
+
return {
|
12
|
+
items: menuItems.sort(function(a, b) {
|
13
|
+
if (a.priority == null) {
|
14
|
+
a.priority = 0;
|
15
|
+
}
|
16
|
+
if (b.priority == null) {
|
17
|
+
b.priority = 0;
|
18
|
+
}
|
19
|
+
return b.priority - a.priority;
|
20
|
+
})
|
21
|
+
}
|
22
|
+
}
|
23
|
+
});
|
24
|
+
}).call(this);
|
@@ -0,0 +1,16 @@
|
|
1
|
+
(function() {
|
2
|
+
angular.module('Navigation')
|
3
|
+
.service('$sidenav', ['$mdSidenav', function($mdSidenav) {
|
4
|
+
this.toggle = function() {
|
5
|
+
$mdSidenav('left').toggle();
|
6
|
+
};
|
7
|
+
|
8
|
+
this.open = function() {
|
9
|
+
$mdSidenav('left').open();
|
10
|
+
};
|
11
|
+
|
12
|
+
this.close = function() {
|
13
|
+
$mdSidenav('left').close();
|
14
|
+
};
|
15
|
+
}])
|
16
|
+
}).call(this);
|
@@ -0,0 +1,27 @@
|
|
1
|
+
(function() {
|
2
|
+
<%
|
3
|
+
voxels_dir_path = Rails.root.join(
|
4
|
+
'app',
|
5
|
+
'assets',
|
6
|
+
'javascripts',
|
7
|
+
'voxels'
|
8
|
+
)
|
9
|
+
|
10
|
+
@voxels = Dir.entries(voxels_dir_path).reject { |entry| entry.match(/\./) } if Dir.exists?(voxels_dir_path)
|
11
|
+
@voxels ||= []
|
12
|
+
%>
|
13
|
+
|
14
|
+
var statics = [
|
15
|
+
'ngAnimate',
|
16
|
+
'ngAria',
|
17
|
+
'ngMessages',
|
18
|
+
'ngMaterial',
|
19
|
+
'ui.router',
|
20
|
+
'Navigation'
|
21
|
+
];
|
22
|
+
var dynamics = <%=raw @voxels %>;
|
23
|
+
var dependencies = statics.concat(dynamics);
|
24
|
+
|
25
|
+
// start voxality module with all sub module
|
26
|
+
window.voxality = angular.module('voxality', dependencies);
|
27
|
+
}).call(this);
|
@@ -0,0 +1,8 @@
|
|
1
|
+
// Import your stylesheets in the order you require. For example we must define
|
2
|
+
// modules before anything that uses these modules.
|
3
|
+
//@import 'angular-material/angular-material.css';
|
4
|
+
@import 'base/*';
|
5
|
+
@import 'modules/*';
|
6
|
+
@import 'voxels/**/*';
|
7
|
+
@import 'layouts/*';
|
8
|
+
@import 'components/*';
|
@@ -0,0 +1,25 @@
|
|
1
|
+
.material-icons {
|
2
|
+
&.menu {
|
3
|
+
@include transform(TranslateY(6px));
|
4
|
+
}
|
5
|
+
|
6
|
+
&.home::before {
|
7
|
+
content: 'home';
|
8
|
+
}
|
9
|
+
|
10
|
+
&.phone::before {
|
11
|
+
content: 'phone';
|
12
|
+
}
|
13
|
+
|
14
|
+
&.bill::before {
|
15
|
+
content: 'receipt';
|
16
|
+
}
|
17
|
+
|
18
|
+
&.pbx::before {
|
19
|
+
content: 'account_circle'
|
20
|
+
}
|
21
|
+
|
22
|
+
&.setting::before {
|
23
|
+
content: 'settings'
|
24
|
+
}
|
25
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
.md-sidenav-left {
|
2
|
+
height: 100%;
|
3
|
+
|
4
|
+
.nav-header {
|
5
|
+
background-image: image-url("drawer_background.png");
|
6
|
+
height: $sn-header-height;
|
7
|
+
width: $sidenav-width;
|
8
|
+
|
9
|
+
h1 {
|
10
|
+
text-align: center;
|
11
|
+
margin-top: 0;
|
12
|
+
}
|
13
|
+
|
14
|
+
.nav-user-info {
|
15
|
+
img {
|
16
|
+
border-radius: 50%;
|
17
|
+
border: 3px solid white;
|
18
|
+
height: $sn-user-image-size;
|
19
|
+
width: $sn-user-image-size;
|
20
|
+
}
|
21
|
+
|
22
|
+
span {
|
23
|
+
margin-left: 10px;
|
24
|
+
color: white;
|
25
|
+
font-weight: bold;
|
26
|
+
font-size: 125%;
|
27
|
+
max-width: 250px;
|
28
|
+
overflow: hidden;
|
29
|
+
text-overflow: ellipsis;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
ul {
|
35
|
+
margin-top: 0;
|
36
|
+
padding: 0;
|
37
|
+
|
38
|
+
.md-button {
|
39
|
+
border-radius: 0;
|
40
|
+
margin: 0;
|
41
|
+
padding: 0;
|
42
|
+
padding-left: 15px;
|
43
|
+
text-align: left;
|
44
|
+
width: 100%;
|
45
|
+
height: $sn-link-height;
|
46
|
+
}
|
47
|
+
|
48
|
+
.material-icons {
|
49
|
+
@include transform(TranslateY(6px));
|
50
|
+
}
|
51
|
+
|
52
|
+
li {
|
53
|
+
height: $sn-link-height;
|
54
|
+
|
55
|
+
a {
|
56
|
+
line-height: $sn-link-height;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
File without changes
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Application controller, global controller
|
2
|
+
class ApplicationController < ActionController::Base
|
3
|
+
protect_from_forgery with: :exception
|
4
|
+
|
5
|
+
def common
|
6
|
+
render partial: '/common.html.erb'
|
7
|
+
end
|
8
|
+
|
9
|
+
def default
|
10
|
+
respond_to do |format|
|
11
|
+
format.html { render template: 'default.html.erb' }
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Voxality</title>
|
5
|
+
<link rel="stylesheet" type="text/css" href="https://ajax.googleapis.com/ajax/libs/angular_material/1.0.9/angular-material.css">
|
6
|
+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
7
|
+
<%= stylesheet_link_tag 'https://fonts.googleapis.com/icon?family=Material+Icons', media: 'all' %>
|
8
|
+
<%= javascript_include_tag 'https://js.stripe.com/v2/' %>
|
9
|
+
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
10
|
+
<%= csrf_meta_tags %>
|
11
|
+
</head>
|
12
|
+
|
13
|
+
<body ng-app="voxality">
|
14
|
+
<%= render 'shared/notif' %>
|
15
|
+
|
16
|
+
<%= yield %>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<div ng-controller="NotificationsController" ng-show="showNotifications" class="notifications">
|
2
|
+
<% if notice %>
|
3
|
+
<div layout="row" layout-align="center center">
|
4
|
+
<md-card>
|
5
|
+
<md-card-title>
|
6
|
+
<md-card-title-text>
|
7
|
+
<span class="md-headline"><%= notice %></span>
|
8
|
+
</md-card-title-text>
|
9
|
+
</md-card-title>
|
10
|
+
</md-card>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<% if alert %>
|
15
|
+
<div layout="row" layout-align="center center">
|
16
|
+
<md-card>
|
17
|
+
<md-card-title>
|
18
|
+
<md-card-title-text>
|
19
|
+
<span class="md-headline"><%= alert %></span>
|
20
|
+
</md-card-title-text>
|
21
|
+
</md-card-title>
|
22
|
+
</md-card>
|
23
|
+
</div>
|
24
|
+
<% end %>
|
25
|
+
</div>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<md-sidenav
|
2
|
+
class="md-sidenav-left md-whiteframe-z2"
|
3
|
+
md-component-id="left"
|
4
|
+
md-is-locked-open="$mdMedia('gt-sm')">
|
5
|
+
|
6
|
+
<div class="nav-header" layout="column" layout-align="center">
|
7
|
+
<h1 class="md-heading" style="color:#fff;" >Voxality</h1>
|
8
|
+
<div class="nav-user-info" layout="row" layout-align="center center">
|
9
|
+
<img src="https://lh5.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/s128-c-k/photo.jpg" alt="Smiley face">
|
10
|
+
<span><%= current_user.email %></span>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<md-content flex role="navigation" layout="column" layout-align="space-between" ss-style-color="{'background-color': 'primary.default'}">
|
15
|
+
<ul>
|
16
|
+
<li ng-repeat="menuItem in menuItems">
|
17
|
+
<a class="md-button"
|
18
|
+
md-ink-ripple
|
19
|
+
ng-click="navigate(menuItem)"
|
20
|
+
ng-class="getMenuClass(menuItem)">
|
21
|
+
<span class="material-icons">{{ menuItem.icon }}</span>
|
22
|
+
<span class="menu-item-name">{{ menuItem.name | uppercase }}</span>
|
23
|
+
</a>
|
24
|
+
</li>
|
25
|
+
</ul>
|
26
|
+
|
27
|
+
<%= link_to 'Logout', destroy_user_session_path, method: :delete, class: 'md-button md-ink-ripple', "md-ink-ripple" => true %>
|
28
|
+
</md-content>
|
29
|
+
</md-sidenav>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<md-toolbar>
|
2
|
+
<div class="md-toolbar-tools">
|
3
|
+
<md-button class="md-icon-button"
|
4
|
+
aria-label="Menu Button"
|
5
|
+
hide-gt-sm
|
6
|
+
ng-click="toggleSideNav()">
|
7
|
+
<md-icon
|
8
|
+
md-svg-icon=<%= image_url("icons/menu.svg") %>
|
9
|
+
aria-label="Menu Icon">
|
10
|
+
</md-icon>
|
11
|
+
</md-button>
|
12
|
+
|
13
|
+
<h2>{{ currentMenuItem.name }}</h2>
|
14
|
+
|
15
|
+
<span flex layout="row" layout-align="end center">
|
16
|
+
<%= yield %>
|
17
|
+
</span>
|
18
|
+
</div>
|
19
|
+
</md-toolbar>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<%= render 'shared/javascript_data', temporary_token: @temporary_token %>
|
2
|
+
|
3
|
+
<div layout="row" class="content-wrapper" layout-align="none stretch" ng-controller="NavigationController">
|
4
|
+
<%= render "sidenav" %>
|
5
|
+
|
6
|
+
<div ui-view flex layout="column" class="voxel-content-wrapper"></div>
|
7
|
+
</div>
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'voxality_core/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = 'voxality_core'
|
8
|
+
s.version = VoxalityCore::VERSION
|
9
|
+
s.date = '2016-09-16'
|
10
|
+
s.summary = "Frontend and backend module manager for RoR"
|
11
|
+
s.description = "The aim of this gem is to create/pack/unpack/install/uninstall a voxel which is a module using Angular Material for frontend with RoR for backend"
|
12
|
+
s.authors = ["CHABANON Julien"]
|
13
|
+
s.email = 'julien.chabanon@modulis.ca'
|
14
|
+
s.files = `git ls-files`.split("\n")
|
15
|
+
s.test_files = `git ls-files -- test/*`.split("\n")
|
16
|
+
s.require_paths = ["lib"]
|
17
|
+
s.required_ruby_version = '>= 2.1.0'
|
18
|
+
s.homepage = 'http://rubygems.org/gems/voxality_core'
|
19
|
+
s.license = 'MIT'
|
20
|
+
end
|
metadata
CHANGED
@@ -1,23 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: voxality_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CHABANON Julien
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: The aim of this gem is to create/pack/unpack/install/uninstall a voxel
|
14
|
-
which is a module using Angular
|
14
|
+
which is a module using Angular Material for frontend with RoR for backend
|
15
15
|
email: julien.chabanon@modulis.ca
|
16
16
|
executables: []
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
+
- ".gitignore"
|
21
|
+
- ".rspec"
|
22
|
+
- ".travis.yml"
|
23
|
+
- CODE_OF_CONDUCT.md
|
24
|
+
- Gemfile
|
25
|
+
- LICENSE
|
26
|
+
- LICENSE.txt
|
27
|
+
- README.md
|
28
|
+
- Rakefile
|
29
|
+
- bin/console
|
30
|
+
- bin/setup
|
31
|
+
- lib/generators/voxality_core/init_generator.rb
|
32
|
+
- lib/generators/voxality_core/templates/app/assets/images/.keep
|
33
|
+
- lib/generators/voxality_core/templates/app/assets/images/drawer_background_teal.png
|
34
|
+
- lib/generators/voxality_core/templates/app/assets/images/icons/menu.svg
|
35
|
+
- lib/generators/voxality_core/templates/app/assets/javascripts/application.js
|
36
|
+
- lib/generators/voxality_core/templates/app/assets/javascripts/config/Themes.js
|
37
|
+
- lib/generators/voxality_core/templates/app/assets/javascripts/controllers/AdminDidsController.js
|
38
|
+
- lib/generators/voxality_core/templates/app/assets/javascripts/controllers/AdminUserController.js
|
39
|
+
- lib/generators/voxality_core/templates/app/assets/javascripts/controllers/NotificationsController.js
|
40
|
+
- lib/generators/voxality_core/templates/app/assets/javascripts/controllers/RegistrationsController.js
|
41
|
+
- lib/generators/voxality_core/templates/app/assets/javascripts/environment.js.erb
|
42
|
+
- lib/generators/voxality_core/templates/app/assets/javascripts/modules/navigation/_Navigation.js
|
43
|
+
- lib/generators/voxality_core/templates/app/assets/javascripts/modules/navigation/controllers/Navigation.js
|
44
|
+
- lib/generators/voxality_core/templates/app/assets/javascripts/modules/navigation/providers/Menu.js
|
45
|
+
- lib/generators/voxality_core/templates/app/assets/javascripts/modules/navigation/services/Sidenav.js
|
46
|
+
- lib/generators/voxality_core/templates/app/assets/javascripts/voxality.js.erb
|
47
|
+
- lib/generators/voxality_core/templates/app/assets/stylesheets/application.scss
|
48
|
+
- lib/generators/voxality_core/templates/app/assets/stylesheets/base/base.scss
|
49
|
+
- lib/generators/voxality_core/templates/app/assets/stylesheets/components/icon.scss
|
50
|
+
- lib/generators/voxality_core/templates/app/assets/stylesheets/components/notifications.scss
|
51
|
+
- lib/generators/voxality_core/templates/app/assets/stylesheets/layouts/content.scss
|
52
|
+
- lib/generators/voxality_core/templates/app/assets/stylesheets/layouts/side_nav.scss
|
53
|
+
- lib/generators/voxality_core/templates/app/assets/stylesheets/modules/transform.scss
|
54
|
+
- lib/generators/voxality_core/templates/app/assets/stylesheets/modules/variables.scss
|
55
|
+
- lib/generators/voxality_core/templates/app/assets/stylesheets/voxels/main.css.scss
|
56
|
+
- lib/generators/voxality_core/templates/app/controllers/application_controller.rb
|
57
|
+
- lib/generators/voxality_core/templates/app/controllers/voxality_core_controller.rb
|
58
|
+
- lib/generators/voxality_core/templates/app/helpers/application_helper.rb
|
59
|
+
- lib/generators/voxality_core/templates/app/views/layouts/application.html.erb
|
60
|
+
- lib/generators/voxality_core/templates/app/views/shared/_notif.html.erb
|
61
|
+
- lib/generators/voxality_core/templates/app/views/voxality_core/_sidenav.html.erb
|
62
|
+
- lib/generators/voxality_core/templates/app/views/voxality_core/_toolbar.html.erb
|
63
|
+
- lib/generators/voxality_core/templates/app/views/voxality_core/index.html.erb
|
20
64
|
- lib/voxality_core.rb
|
65
|
+
- lib/voxality_core/version.rb
|
66
|
+
- spec/spec_helper.rb
|
67
|
+
- spec/voxality_core_spec.rb
|
68
|
+
- voxality_core.gemspec
|
21
69
|
homepage: http://rubygems.org/gems/voxality_core
|
22
70
|
licenses:
|
23
71
|
- MIT
|
@@ -30,7 +78,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
30
78
|
requirements:
|
31
79
|
- - ">="
|
32
80
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
81
|
+
version: 2.1.0
|
34
82
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
83
|
requirements:
|
36
84
|
- - ">="
|