decidim-system 0.0.1.alpha3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of decidim-system might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/README.md +28 -0
- data/Rakefile +32 -0
- data/app/assets/config/decidim_system_manifest.js +2 -0
- data/app/assets/javascripts/decidim/system.js +21 -0
- data/app/assets/stylesheets/decidim/system/_actions.scss +8 -0
- data/app/assets/stylesheets/decidim/system/_foundation_and_overrides.scss +52 -0
- data/app/assets/stylesheets/decidim/system/_layout.scss +16 -0
- data/app/assets/stylesheets/decidim/system/_login.scss +36 -0
- data/app/assets/stylesheets/decidim/system/_settings.scss +566 -0
- data/app/assets/stylesheets/decidim/system/_sidebar.scss +73 -0
- data/app/assets/stylesheets/decidim/system/_tables.scss +5 -0
- data/app/assets/stylesheets/decidim/system.scss +8 -0
- data/app/commands/decidim/system/create_admin.rb +40 -0
- data/app/commands/decidim/system/register_organization.rb +59 -0
- data/app/commands/decidim/system/update_admin.rb +52 -0
- data/app/commands/decidim/system/update_organization.rb +51 -0
- data/app/controllers/decidim/system/admins_controller.rb +67 -0
- data/app/controllers/decidim/system/application_controller.rb +11 -0
- data/app/controllers/decidim/system/dashboard_controller.rb +9 -0
- data/app/controllers/decidim/system/devise/passwords_controller.rb +12 -0
- data/app/controllers/decidim/system/devise/sessions_controller.rb +12 -0
- data/app/controllers/decidim/system/organizations_controller.rb +59 -0
- data/app/forms/decidim/system/admin_form.rb +33 -0
- data/app/forms/decidim/system/register_organization_form.rb +20 -0
- data/app/forms/decidim/system/update_organization_form.rb +28 -0
- data/app/helpers/decidim/system/application_helper.rb +12 -0
- data/app/jobs/decidim/system/application_job.rb +9 -0
- data/app/mailers/decidim/system/application_mailer.rb +11 -0
- data/app/models/decidim/system/admin.rb +18 -0
- data/app/models/decidim/system/application_record.rb +10 -0
- data/app/views/decidim/system/admins/_form.html.erb +11 -0
- data/app/views/decidim/system/admins/edit.html.erb +11 -0
- data/app/views/decidim/system/admins/index.html.erb +33 -0
- data/app/views/decidim/system/admins/new.html.erb +11 -0
- data/app/views/decidim/system/admins/show.html.erb +9 -0
- data/app/views/decidim/system/dashboard/show.html.erb +3 -0
- data/app/views/decidim/system/devise/mailers/password_change.html.erb +3 -0
- data/app/views/decidim/system/devise/mailers/reset_password_instructions.html.erb +8 -0
- data/app/views/decidim/system/devise/passwords/edit.html.erb +23 -0
- data/app/views/decidim/system/devise/passwords/new.html.erb +15 -0
- data/app/views/decidim/system/devise/sessions/new.html.erb +23 -0
- data/app/views/decidim/system/devise/shared/_links.html.erb +25 -0
- data/app/views/decidim/system/organizations/edit.html.erb +17 -0
- data/app/views/decidim/system/organizations/index.html.erb +34 -0
- data/app/views/decidim/system/organizations/new.html.erb +25 -0
- data/app/views/decidim/system/organizations/show.html.erb +11 -0
- data/app/views/layouts/decidim/system/_header.html.erb +4 -0
- data/app/views/layouts/decidim/system/_login_items.html.erb +8 -0
- data/app/views/layouts/decidim/system/_sidebar.html.erb +15 -0
- data/app/views/layouts/decidim/system/application.html.erb +40 -0
- data/app/views/layouts/decidim/system/login.html.erb +19 -0
- data/config/i18n-tasks.yml +120 -0
- data/config/locales/en.yml +60 -0
- data/config/routes.rb +17 -0
- data/db/migrate/20160919105637_devise_create_decidim_admins.rb +26 -0
- data/db/seeds.rb +9 -0
- data/lib/decidim/system/engine.rb +31 -0
- data/lib/decidim/system.rb +12 -0
- data/lib/tasks/decidim/system_tasks.rake +5 -0
- metadata +317 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f891ae2fea63809ed084a6a092cff01edd01162d
|
4
|
+
data.tar.gz: e517f258d2e48369191c4cb5d7c13e190aed219d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 67a29daad803844e4d363a782c3793c7083fea6dd6d299f3f7676845661e454fd9d376ccddba1cd786c911e8739c17edb30ed7b80397fb1e89d2eb4ca244120b
|
7
|
+
data.tar.gz: 78e0e9054374c7c5e17504713c8a8ae6f81c4352a2a8cd416a53b86d3cb73e14f109d889142805be139eca005c31253005503d34ba9ae4f20d43d5aea1d2ebcb
|
data/README.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# Decidim::System
|
2
|
+
Short description and motivation.
|
3
|
+
|
4
|
+
## Usage
|
5
|
+
How to use my plugin.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'decidim-system'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
```bash
|
16
|
+
$ bundle
|
17
|
+
```
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
```bash
|
21
|
+
$ gem install decidim-system
|
22
|
+
```
|
23
|
+
|
24
|
+
## Contributing
|
25
|
+
Contribution directions go here.
|
26
|
+
|
27
|
+
## License
|
28
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
begin
|
3
|
+
require "bundler/setup"
|
4
|
+
rescue LoadError
|
5
|
+
puts "You must `gem install bundler` and `bundle install` to run rake tasks"
|
6
|
+
end
|
7
|
+
|
8
|
+
require "decidim/common_rake"
|
9
|
+
require "rdoc/task"
|
10
|
+
|
11
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
12
|
+
rdoc.rdoc_dir = "rdoc"
|
13
|
+
rdoc.title = "Decidim::System"
|
14
|
+
rdoc.options << "--line-numbers"
|
15
|
+
rdoc.rdoc_files.include("README.md")
|
16
|
+
rdoc.rdoc_files.include("lib/**/*.rb")
|
17
|
+
end
|
18
|
+
|
19
|
+
load "rails/tasks/statistics.rake"
|
20
|
+
|
21
|
+
require "bundler/gem_tasks"
|
22
|
+
|
23
|
+
begin
|
24
|
+
require "rspec/core/rake_task"
|
25
|
+
RSpec::Core::RakeTask.new(:spec)
|
26
|
+
ENV["ENGINE_PATH"] = File.dirname(__FILE__)
|
27
|
+
|
28
|
+
task default: :spec
|
29
|
+
|
30
|
+
Rake::Task["spec"].enhance ["common:test_app"]
|
31
|
+
rescue LoadError
|
32
|
+
end
|
@@ -0,0 +1,21 @@
|
|
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. JavaScript code in this file should be added after the last require_* statement.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require jquery
|
14
|
+
//= require jquery.turbolinks
|
15
|
+
//= require jquery_ujs
|
16
|
+
//= require foundation
|
17
|
+
//= require_self
|
18
|
+
|
19
|
+
$(function(){ $(document).foundation(); });
|
20
|
+
|
21
|
+
//= require turbolinks
|
@@ -0,0 +1,52 @@
|
|
1
|
+
@charset "utf-8";
|
2
|
+
|
3
|
+
@import "settings";
|
4
|
+
@import "foundation";
|
5
|
+
|
6
|
+
// If you'd like to include motion-ui the foundation-rails gem comes prepackaged with it, uncomment the 3 @imports, if you are not using the gem you need to install the motion-ui sass package.
|
7
|
+
//
|
8
|
+
// @import 'motion-ui/motion-ui';
|
9
|
+
|
10
|
+
// We include everything by default. To slim your CSS, remove components you don't use.
|
11
|
+
|
12
|
+
@include foundation-global-styles;
|
13
|
+
@include foundation-flex-grid;
|
14
|
+
@include foundation-typography;
|
15
|
+
@include foundation-button;
|
16
|
+
@include foundation-forms;
|
17
|
+
@include foundation-visibility-classes;
|
18
|
+
@include foundation-flex-classes;
|
19
|
+
@include foundation-accordion;
|
20
|
+
@include foundation-accordion-menu;
|
21
|
+
@include foundation-badge;
|
22
|
+
@include foundation-breadcrumbs;
|
23
|
+
@include foundation-button-group;
|
24
|
+
@include foundation-callout;
|
25
|
+
@include foundation-close-button;
|
26
|
+
@include foundation-drilldown-menu;
|
27
|
+
@include foundation-dropdown;
|
28
|
+
@include foundation-dropdown-menu;
|
29
|
+
@include foundation-flex-video;
|
30
|
+
@include foundation-label;
|
31
|
+
@include foundation-media-object;
|
32
|
+
@include foundation-menu;
|
33
|
+
@include foundation-menu-icon;
|
34
|
+
@include foundation-off-canvas;
|
35
|
+
@include foundation-orbit;
|
36
|
+
@include foundation-pagination;
|
37
|
+
@include foundation-progress-bar;
|
38
|
+
@include foundation-slider;
|
39
|
+
@include foundation-sticky;
|
40
|
+
@include foundation-reveal;
|
41
|
+
@include foundation-switch;
|
42
|
+
@include foundation-table;
|
43
|
+
@include foundation-tabs;
|
44
|
+
@include foundation-thumbnail;
|
45
|
+
@include foundation-title-bar;
|
46
|
+
@include foundation-tooltip;
|
47
|
+
@include foundation-top-bar;
|
48
|
+
|
49
|
+
// If you'd like to include motion-ui the foundation-rails gem comes prepackaged with it, uncomment the 3 @imports, if you are not using the gem you need to install the motion-ui sass package.
|
50
|
+
//
|
51
|
+
// @include motion-ui-transitions;
|
52
|
+
// @include motion-ui-animations;
|
@@ -0,0 +1,36 @@
|
|
1
|
+
body.login{
|
2
|
+
background: $light-gray;
|
3
|
+
position: relative;
|
4
|
+
|
5
|
+
.login-form-wrapper{
|
6
|
+
@include grid-row;
|
7
|
+
@include flex;
|
8
|
+
|
9
|
+
height: 100vh;
|
10
|
+
|
11
|
+
.login-form{
|
12
|
+
@include grid-column(12);
|
13
|
+
@include grid-column-position(center);
|
14
|
+
|
15
|
+
@include breakpoint(medium){
|
16
|
+
@include grid-column(8);
|
17
|
+
@include grid-column-position(center);
|
18
|
+
}
|
19
|
+
|
20
|
+
@include breakpoint(large){
|
21
|
+
@include grid-column(6);
|
22
|
+
@include grid-column-position(center);
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
@include breakpoint(medium){
|
27
|
+
@include flex-align(center, middle);
|
28
|
+
transform: translateY(-8%);
|
29
|
+
}
|
30
|
+
|
31
|
+
.login-form-inner{
|
32
|
+
background-color: $white;
|
33
|
+
padding: $global-padding;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|