aureus 2.1.4 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -1
- data/Gemfile.lock +39 -40
- data/README.md +56 -64
- data/app/assets/javascripts/aureus/index.js +0 -41
- data/app/assets/javascripts/aureus/layout.js.erb +9 -0
- data/{spec/internal/app/assets/stylesheets/application.scss → app/assets/stylesheets/aureus/layout.scss.erb} +1 -1
- data/app/assets/stylesheets/aureus/skin/default.scss +0 -4
- data/app/assets/stylesheets/aureus/theme/content.scss +0 -4
- data/app/assets/stylesheets/aureus/theme/table.scss +1 -16
- data/app/assets/stylesheets/aureus/theme.scss +8 -0
- data/app/controllers/aureus/resources_controller.rb +52 -0
- data/app/controllers/aureus_controller.rb +2 -0
- data/app/views/aureus/resources/_form.html.haml +8 -0
- data/app/views/aureus/resources/_item.html.haml +7 -0
- data/app/views/aureus/resources/_navigation.html.haml +5 -0
- data/app/views/aureus/resources/_table.html.haml +11 -0
- data/app/views/aureus/resources/edit.html.haml +2 -0
- data/app/views/aureus/resources/index.html.haml +2 -0
- data/app/views/aureus/resources/new.html.haml +2 -0
- data/app/views/aureus/resources/show.html.haml +2 -0
- data/app/views/layouts/aureus.html.haml +14 -0
- data/aureus.gemspec +0 -1
- data/config.ru +1 -1
- data/lib/aureus/components/box.rb +8 -26
- data/lib/aureus/components/data_table.rb +15 -49
- data/lib/aureus/components/listing.rb +7 -14
- data/lib/aureus/components/messages.rb +2 -8
- data/lib/aureus/components/navigation.rb +5 -18
- data/lib/aureus/components/row.rb +4 -11
- data/lib/aureus/components/simple_map.rb +2 -8
- data/lib/aureus/components/toolbar.rb +14 -29
- data/lib/aureus/engine.rb +0 -3
- data/lib/aureus/helper.rb +18 -41
- data/lib/aureus/renderable.rb +6 -9
- data/lib/aureus/version.rb +1 -1
- data/lib/aureus.rb +10 -2
- data/lib/generators/aureus/copy/copy_generator.rb +13 -0
- data/lib/generators/aureus/setup/setup_generator.rb +12 -0
- data/spec/internal/app/controllers/all_controller.rb +0 -2
- data/spec/internal/app/controllers/application_controller.rb +2 -0
- data/spec/internal/app/controllers/resources_controller.rb +50 -1
- data/spec/internal/app/views/layouts/application.html.haml +6 -4
- data/spec/internal/app/views/layouts/naked.html.haml +4 -4
- data/spec/internal/config/initializers/aureus.rb +7 -0
- data/spec/internal/config/routes.rb +1 -1
- data/spec/lib/generators/copy_spec.rb +17 -0
- data/spec/lib/generators/setup_spec.rb +16 -0
- data/spec/requests/all_spec.rb +4 -3
- data/spec/requests/resources_spec.rb +23 -0
- metadata +27 -82
- data/app/assets/images/aureus/icon-sort-abc-asc.png +0 -0
- data/app/assets/images/aureus/icon-sort-abc-desc.png +0 -0
- data/app/assets/images/aureus/icon-sort.png +0 -0
- data/config/locales/aureus.de.yml +0 -9
- data/config/locales/aureus.en.yml +0 -9
- data/lib/aureus/components/content.rb +0 -19
- data/lib/generators/aureus/devise_i18n/devise_i18n_generator.rb +0 -25
- data/lib/generators/aureus/devise_i18n/locales/devise_base.de.yml +0 -55
- data/lib/generators/aureus/devise_i18n/locales/devise_base.en.yml +0 -55
- data/lib/generators/aureus/devise_i18n/locales/devise_mail.de.yml +0 -18
- data/lib/generators/aureus/devise_i18n/locales/devise_mail.en.yml +0 -18
- data/lib/generators/aureus/devise_i18n/locales/devise_ui.de.yml +0 -54
- data/lib/generators/aureus/devise_i18n/locales/devise_ui.en.yml +0 -54
- data/lib/generators/aureus/devise_invitable_i18n/devise_invitable_i18n_generator.rb +0 -25
- data/lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_base.de.yml +0 -11
- data/lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_base.en.yml +0 -11
- data/lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_mail.de.yml +0 -9
- data/lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_mail.en.yml +0 -9
- data/lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_ui.de.yml +0 -12
- data/lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_ui.en.yml +0 -12
- data/lib/generators/aureus/devise_invitable_views/devise_invitable_views_generator.rb +0 -23
- data/lib/generators/aureus/devise_invitable_views/templates/devise/invitations/edit.html.haml +0 -9
- data/lib/generators/aureus/devise_invitable_views/templates/devise/invitations/new.html.haml +0 -8
- data/lib/generators/aureus/devise_invitable_views/templates/devise/mailer/invitation_instructions.html.haml +0 -5
- data/lib/generators/aureus/devise_views/devise_views_generator.rb +0 -25
- data/lib/generators/aureus/devise_views/templates/devise/confirmations/new.html.haml +0 -7
- data/lib/generators/aureus/devise_views/templates/devise/mailer/confirmation_instructions.html.haml +0 -3
- data/lib/generators/aureus/devise_views/templates/devise/mailer/reset_password_instructions.html.haml +0 -5
- data/lib/generators/aureus/devise_views/templates/devise/mailer/unlock_instructions.html.haml +0 -4
- data/lib/generators/aureus/devise_views/templates/devise/passwords/edit.html.haml +0 -9
- data/lib/generators/aureus/devise_views/templates/devise/passwords/new.html.haml +0 -7
- data/lib/generators/aureus/devise_views/templates/devise/registrations/edit.html.haml +0 -11
- data/lib/generators/aureus/devise_views/templates/devise/registrations/new.html.haml +0 -9
- data/lib/generators/aureus/devise_views/templates/devise/sessions/new.html.haml +0 -9
- data/lib/generators/aureus/devise_views/templates/devise/shared/_links.html.haml +0 -19
- data/lib/generators/aureus/devise_views/templates/devise/unlocks/new.html.haml +0 -7
- data/lib/generators/aureus/layout/layout_generator.rb +0 -19
- data/lib/generators/aureus/layout/templates/layout.html.haml +0 -17
- data/lib/generators/aureus/views/templates/views/_form.html.haml +0 -6
- data/lib/generators/aureus/views/templates/views/_item.html.haml +0 -6
- data/lib/generators/aureus/views/templates/views/_list.html.haml +0 -10
- data/lib/generators/aureus/views/templates/views/edit.html.haml +0 -7
- data/lib/generators/aureus/views/templates/views/index.html.haml +0 -6
- data/lib/generators/aureus/views/templates/views/new.html.haml +0 -7
- data/lib/generators/aureus/views/templates/views/show.html.haml +0 -7
- data/lib/generators/aureus/views/views_generator.rb +0 -81
- data/spec/controllers/all_spec.rb +0 -19
- data/spec/internal/app/assets/javascripts/application.js +0 -9
- data/spec/internal/public/favicon.ico +0 -0
- data/spec/lib/generators/devise_i18n_spec.rb +0 -19
- data/spec/lib/generators/devise_invitable_i18n_spec.rb +0 -19
- data/spec/lib/generators/devise_invitable_views_spec.rb +0 -19
- data/spec/lib/generators/devise_views_spec.rb +0 -25
- data/spec/lib/generators/layout_spec.rb +0 -17
- data/spec/lib/generators/views_spec.rb +0 -26
@@ -1,2 +1,51 @@
|
|
1
|
-
class ResourcesController <
|
1
|
+
class ResourcesController < Aureus::ResourcesController
|
2
|
+
before_filter :prepare_aureus
|
3
|
+
|
4
|
+
def index
|
5
|
+
@resources = Resource.all
|
6
|
+
end
|
7
|
+
|
8
|
+
def new
|
9
|
+
@resource = Resource.new
|
10
|
+
end
|
11
|
+
|
12
|
+
def create
|
13
|
+
Resource.create!(permitted_params[:resource])
|
14
|
+
redirect_to resources_url
|
15
|
+
end
|
16
|
+
|
17
|
+
def show
|
18
|
+
@resource = Resource.find(params[:id])
|
19
|
+
end
|
20
|
+
|
21
|
+
def edit
|
22
|
+
@resource = Resource.find(params[:id])
|
23
|
+
end
|
24
|
+
|
25
|
+
def update
|
26
|
+
resource = Resource.find(params[:id])
|
27
|
+
resource.update!(permitted_params[:resource])
|
28
|
+
redirect_to resource_url(resource)
|
29
|
+
end
|
30
|
+
|
31
|
+
def destroy
|
32
|
+
resource = Resource.find(params[:id])
|
33
|
+
resource.destroy!
|
34
|
+
redirect_to resources_url
|
35
|
+
end
|
36
|
+
|
37
|
+
protected
|
38
|
+
|
39
|
+
def prepare_aureus
|
40
|
+
aureus({
|
41
|
+
actions: [:index, :new, :create, :show, :edit, :update, :destroy],
|
42
|
+
table_fields: [:id, :title, :text],
|
43
|
+
form_fields: [:title, :text],
|
44
|
+
item_fields: [:title, :text]
|
45
|
+
})
|
46
|
+
end
|
47
|
+
|
48
|
+
def permitted_params
|
49
|
+
params.permit(resource: [:title, :text])
|
50
|
+
end
|
2
51
|
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
!!! 5
|
2
2
|
%html
|
3
3
|
%head
|
4
|
-
%meta{ charset: 'utf-8' }
|
4
|
+
%meta{ charset: 'utf-8' }
|
5
5
|
%title Aureus
|
6
|
-
= stylesheet_link_tag '
|
7
|
-
= javascript_include_tag '
|
6
|
+
= stylesheet_link_tag 'aureus/layout'
|
7
|
+
= javascript_include_tag 'aureus/layout'
|
8
8
|
= csrf_meta_tag
|
9
9
|
%body
|
10
10
|
= aureus_toolbar 'Aureus' do |t|
|
@@ -13,6 +13,8 @@
|
|
13
13
|
- d.link_to 'Element', '#'
|
14
14
|
- d.link_to 'Element', '#'
|
15
15
|
- l.info 'Info'
|
16
|
+
- l.link_to 'Centered', centered_path
|
17
|
+
- l.link_to 'Resources', resources_path
|
16
18
|
- t.right do |r|
|
17
19
|
- r.info 'Info'
|
18
20
|
- r.dropdown 'Dropdown' do |d|
|
@@ -21,4 +23,4 @@
|
|
21
23
|
- r.link_to 'Element', '#'
|
22
24
|
= yield(:navigation)
|
23
25
|
= aureus_messages flash
|
24
|
-
=
|
26
|
+
.aureus-content= yield
|
@@ -1,10 +1,10 @@
|
|
1
1
|
!!! 5
|
2
2
|
%html
|
3
3
|
%head
|
4
|
-
%meta{ charset: 'utf-8' }
|
4
|
+
%meta{ charset: 'utf-8' }
|
5
5
|
%title Aureus
|
6
|
-
= stylesheet_link_tag '
|
7
|
-
= javascript_include_tag '
|
6
|
+
= stylesheet_link_tag 'aureus/layout'
|
7
|
+
= javascript_include_tag 'aureus/layout'
|
8
8
|
= csrf_meta_tag
|
9
9
|
%body
|
10
|
-
=
|
10
|
+
.aureus-content= yield
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
require_relative '../../../lib/generators/aureus/copy/copy_generator'
|
4
|
+
|
5
|
+
describe Aureus::Generators::CopyGenerator do
|
6
|
+
destination File.expand_path('../../../../tmp/gen', __FILE__)
|
7
|
+
|
8
|
+
before do
|
9
|
+
prepare_destination
|
10
|
+
run_generator
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'copies views and layout' do
|
14
|
+
assert_file 'app/views/aureus/resources/index.html.haml'
|
15
|
+
assert_file 'app/layouts/aureus.html.haml'
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
require_relative '../../../lib/generators/aureus/setup/setup_generator'
|
4
|
+
|
5
|
+
describe Aureus::Generators::SetupGenerator do
|
6
|
+
destination File.expand_path('../../../../tmp/gen', __FILE__)
|
7
|
+
|
8
|
+
before do
|
9
|
+
prepare_destination
|
10
|
+
run_generator
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'creates initializer file' do
|
14
|
+
assert_file 'config/initializers/aureus.rb'
|
15
|
+
end
|
16
|
+
end
|
data/spec/requests/all_spec.rb
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe 'Templates' do
|
4
|
-
|
5
|
-
it 'renders all templates properly' do
|
4
|
+
it 'renders the main template properly' do
|
6
5
|
get '/'
|
7
6
|
expect(response).to render_template(:index)
|
7
|
+
end
|
8
|
+
|
9
|
+
it 'renders the centered template properly' do
|
8
10
|
get '/centered'
|
9
11
|
expect(response).to render_template(:centered)
|
10
12
|
end
|
11
|
-
|
12
13
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Resources' do
|
4
|
+
it 'renders index template properly' do
|
5
|
+
get '/resources'
|
6
|
+
expect(response).to render_template(:index)
|
7
|
+
end
|
8
|
+
|
9
|
+
it 'renders show template properly' do
|
10
|
+
get '/resources/1'
|
11
|
+
expect(response).to render_template(:show)
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'renders new template properly' do
|
15
|
+
get '/resources/new'
|
16
|
+
expect(response).to render_template(:new)
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'renders edit template properly' do
|
20
|
+
get '/resources/1/edit'
|
21
|
+
expect(response).to render_template(:edit)
|
22
|
+
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aureus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joël Gähhwiler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass-rails
|
@@ -122,20 +122,6 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '1.6'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: jquery-datatables-rails
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '1.12'
|
132
|
-
type: :runtime
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '1.12'
|
139
125
|
description: Aureus is a tool to quickly generate admin interfaces for a rails app.
|
140
126
|
Its between scaffolding and tools like ActiveAdmin.
|
141
127
|
email: joel.gaehwiler@bluewin.ch
|
@@ -153,11 +139,10 @@ files:
|
|
153
139
|
- app/assets/images/aureus/icon-pencil.png
|
154
140
|
- app/assets/images/aureus/icon-print.png
|
155
141
|
- app/assets/images/aureus/icon-refresh.png
|
156
|
-
- app/assets/images/aureus/icon-sort-abc-asc.png
|
157
|
-
- app/assets/images/aureus/icon-sort-abc-desc.png
|
158
|
-
- app/assets/images/aureus/icon-sort.png
|
159
142
|
- app/assets/javascripts/aureus/index.js
|
143
|
+
- app/assets/javascripts/aureus/layout.js.erb
|
160
144
|
- app/assets/stylesheets/aureus/index.scss
|
145
|
+
- app/assets/stylesheets/aureus/layout.scss.erb
|
161
146
|
- app/assets/stylesheets/aureus/skin/default.scss
|
162
147
|
- app/assets/stylesheets/aureus/theme.scss
|
163
148
|
- app/assets/stylesheets/aureus/theme/base.scss
|
@@ -167,13 +152,21 @@ files:
|
|
167
152
|
- app/assets/stylesheets/aureus/theme/navigation.scss
|
168
153
|
- app/assets/stylesheets/aureus/theme/table.scss
|
169
154
|
- app/assets/stylesheets/aureus/theme/toolbar.scss
|
155
|
+
- app/controllers/aureus/resources_controller.rb
|
156
|
+
- app/controllers/aureus_controller.rb
|
157
|
+
- app/views/aureus/resources/_form.html.haml
|
158
|
+
- app/views/aureus/resources/_item.html.haml
|
159
|
+
- app/views/aureus/resources/_navigation.html.haml
|
160
|
+
- app/views/aureus/resources/_table.html.haml
|
161
|
+
- app/views/aureus/resources/edit.html.haml
|
162
|
+
- app/views/aureus/resources/index.html.haml
|
163
|
+
- app/views/aureus/resources/new.html.haml
|
164
|
+
- app/views/aureus/resources/show.html.haml
|
165
|
+
- app/views/layouts/aureus.html.haml
|
170
166
|
- aureus.gemspec
|
171
167
|
- config.ru
|
172
|
-
- config/locales/aureus.de.yml
|
173
|
-
- config/locales/aureus.en.yml
|
174
168
|
- lib/aureus.rb
|
175
169
|
- lib/aureus/components/box.rb
|
176
|
-
- lib/aureus/components/content.rb
|
177
170
|
- lib/aureus/components/data_table.rb
|
178
171
|
- lib/aureus/components/listing.rb
|
179
172
|
- lib/aureus/components/messages.rb
|
@@ -186,50 +179,10 @@ files:
|
|
186
179
|
- lib/aureus/renderable.rb
|
187
180
|
- lib/aureus/version.rb
|
188
181
|
- lib/generators/aureus/.DS_Store
|
189
|
-
- lib/generators/aureus/
|
190
|
-
- lib/generators/aureus/
|
191
|
-
- lib/generators/aureus/devise_i18n/locales/devise_base.en.yml
|
192
|
-
- lib/generators/aureus/devise_i18n/locales/devise_mail.de.yml
|
193
|
-
- lib/generators/aureus/devise_i18n/locales/devise_mail.en.yml
|
194
|
-
- lib/generators/aureus/devise_i18n/locales/devise_ui.de.yml
|
195
|
-
- lib/generators/aureus/devise_i18n/locales/devise_ui.en.yml
|
196
|
-
- lib/generators/aureus/devise_invitable_i18n/devise_invitable_i18n_generator.rb
|
197
|
-
- lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_base.de.yml
|
198
|
-
- lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_base.en.yml
|
199
|
-
- lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_mail.de.yml
|
200
|
-
- lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_mail.en.yml
|
201
|
-
- lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_ui.de.yml
|
202
|
-
- lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_ui.en.yml
|
203
|
-
- lib/generators/aureus/devise_invitable_views/devise_invitable_views_generator.rb
|
204
|
-
- lib/generators/aureus/devise_invitable_views/templates/devise/invitations/edit.html.haml
|
205
|
-
- lib/generators/aureus/devise_invitable_views/templates/devise/invitations/new.html.haml
|
206
|
-
- lib/generators/aureus/devise_invitable_views/templates/devise/mailer/invitation_instructions.html.haml
|
207
|
-
- lib/generators/aureus/devise_views/devise_views_generator.rb
|
208
|
-
- lib/generators/aureus/devise_views/templates/devise/confirmations/new.html.haml
|
209
|
-
- lib/generators/aureus/devise_views/templates/devise/mailer/confirmation_instructions.html.haml
|
210
|
-
- lib/generators/aureus/devise_views/templates/devise/mailer/reset_password_instructions.html.haml
|
211
|
-
- lib/generators/aureus/devise_views/templates/devise/mailer/unlock_instructions.html.haml
|
212
|
-
- lib/generators/aureus/devise_views/templates/devise/passwords/edit.html.haml
|
213
|
-
- lib/generators/aureus/devise_views/templates/devise/passwords/new.html.haml
|
214
|
-
- lib/generators/aureus/devise_views/templates/devise/registrations/edit.html.haml
|
215
|
-
- lib/generators/aureus/devise_views/templates/devise/registrations/new.html.haml
|
216
|
-
- lib/generators/aureus/devise_views/templates/devise/sessions/new.html.haml
|
217
|
-
- lib/generators/aureus/devise_views/templates/devise/shared/_links.html.haml
|
218
|
-
- lib/generators/aureus/devise_views/templates/devise/unlocks/new.html.haml
|
219
|
-
- lib/generators/aureus/layout/layout_generator.rb
|
220
|
-
- lib/generators/aureus/layout/templates/layout.html.haml
|
221
|
-
- lib/generators/aureus/views/templates/views/_form.html.haml
|
222
|
-
- lib/generators/aureus/views/templates/views/_item.html.haml
|
223
|
-
- lib/generators/aureus/views/templates/views/_list.html.haml
|
224
|
-
- lib/generators/aureus/views/templates/views/edit.html.haml
|
225
|
-
- lib/generators/aureus/views/templates/views/index.html.haml
|
226
|
-
- lib/generators/aureus/views/templates/views/new.html.haml
|
227
|
-
- lib/generators/aureus/views/templates/views/show.html.haml
|
228
|
-
- lib/generators/aureus/views/views_generator.rb
|
229
|
-
- spec/controllers/all_spec.rb
|
230
|
-
- spec/internal/app/assets/javascripts/application.js
|
231
|
-
- spec/internal/app/assets/stylesheets/application.scss
|
182
|
+
- lib/generators/aureus/copy/copy_generator.rb
|
183
|
+
- lib/generators/aureus/setup/setup_generator.rb
|
232
184
|
- spec/internal/app/controllers/all_controller.rb
|
185
|
+
- spec/internal/app/controllers/application_controller.rb
|
233
186
|
- spec/internal/app/controllers/resources_controller.rb
|
234
187
|
- spec/internal/app/models/resource.rb
|
235
188
|
- spec/internal/app/views/all/centered.html.haml
|
@@ -237,17 +190,14 @@ files:
|
|
237
190
|
- spec/internal/app/views/layouts/application.html.haml
|
238
191
|
- spec/internal/app/views/layouts/naked.html.haml
|
239
192
|
- spec/internal/config/database.yml
|
193
|
+
- spec/internal/config/initializers/aureus.rb
|
240
194
|
- spec/internal/config/routes.rb
|
241
195
|
- spec/internal/db/schema.rb
|
242
196
|
- spec/internal/log/.gitignore
|
243
|
-
- spec/
|
244
|
-
- spec/lib/generators/
|
245
|
-
- spec/lib/generators/devise_invitable_i18n_spec.rb
|
246
|
-
- spec/lib/generators/devise_invitable_views_spec.rb
|
247
|
-
- spec/lib/generators/devise_views_spec.rb
|
248
|
-
- spec/lib/generators/layout_spec.rb
|
249
|
-
- spec/lib/generators/views_spec.rb
|
197
|
+
- spec/lib/generators/copy_spec.rb
|
198
|
+
- spec/lib/generators/setup_spec.rb
|
250
199
|
- spec/requests/all_spec.rb
|
200
|
+
- spec/requests/resources_spec.rb
|
251
201
|
- spec/spec_helper.rb
|
252
202
|
homepage: https://github.com/256dpi/aureus
|
253
203
|
licenses:
|
@@ -274,10 +224,8 @@ signing_key:
|
|
274
224
|
specification_version: 4
|
275
225
|
summary: a nice looking framework for your rails admin interfaces
|
276
226
|
test_files:
|
277
|
-
- spec/controllers/all_spec.rb
|
278
|
-
- spec/internal/app/assets/javascripts/application.js
|
279
|
-
- spec/internal/app/assets/stylesheets/application.scss
|
280
227
|
- spec/internal/app/controllers/all_controller.rb
|
228
|
+
- spec/internal/app/controllers/application_controller.rb
|
281
229
|
- spec/internal/app/controllers/resources_controller.rb
|
282
230
|
- spec/internal/app/models/resource.rb
|
283
231
|
- spec/internal/app/views/all/centered.html.haml
|
@@ -285,15 +233,12 @@ test_files:
|
|
285
233
|
- spec/internal/app/views/layouts/application.html.haml
|
286
234
|
- spec/internal/app/views/layouts/naked.html.haml
|
287
235
|
- spec/internal/config/database.yml
|
236
|
+
- spec/internal/config/initializers/aureus.rb
|
288
237
|
- spec/internal/config/routes.rb
|
289
238
|
- spec/internal/db/schema.rb
|
290
239
|
- spec/internal/log/.gitignore
|
291
|
-
- spec/
|
292
|
-
- spec/lib/generators/
|
293
|
-
- spec/lib/generators/devise_invitable_i18n_spec.rb
|
294
|
-
- spec/lib/generators/devise_invitable_views_spec.rb
|
295
|
-
- spec/lib/generators/devise_views_spec.rb
|
296
|
-
- spec/lib/generators/layout_spec.rb
|
297
|
-
- spec/lib/generators/views_spec.rb
|
240
|
+
- spec/lib/generators/copy_spec.rb
|
241
|
+
- spec/lib/generators/setup_spec.rb
|
298
242
|
- spec/requests/all_spec.rb
|
243
|
+
- spec/requests/resources_spec.rb
|
299
244
|
- spec/spec_helper.rb
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,25 +0,0 @@
|
|
1
|
-
module Aureus
|
2
|
-
|
3
|
-
module Generators
|
4
|
-
|
5
|
-
class DeviseI18nGenerator < Rails::Generators::Base
|
6
|
-
|
7
|
-
desc 'generates base i18n files for the devise views'
|
8
|
-
source_root File.expand_path('../locales', __FILE__)
|
9
|
-
argument :language, type: :string, default: 'en'
|
10
|
-
|
11
|
-
def generate
|
12
|
-
file_list = Dir.glob("#{File.dirname(__FILE__)}/locales/*.#{language}.yml")
|
13
|
-
puts "Generating locale files for language: '#{language}'..."
|
14
|
-
file_list.each do |locale_file|
|
15
|
-
basename = File.basename(locale_file)
|
16
|
-
destination = "config/locales/#{basename}"
|
17
|
-
copy_file locale_file, destination
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
end
|
22
|
-
|
23
|
-
end
|
24
|
-
|
25
|
-
end
|
@@ -1,55 +0,0 @@
|
|
1
|
-
de:
|
2
|
-
errors:
|
3
|
-
messages:
|
4
|
-
already_confirmed: wurde bereits bestätigt
|
5
|
-
expired: ist abgelaufen, bitte neu anfordern
|
6
|
-
not_found: nicht gefunden
|
7
|
-
not_locked: ist nicht gesperrt
|
8
|
-
not_saved:
|
9
|
-
one: 'Konnte %{resource} nicht speichern: ein Fehler.'
|
10
|
-
other: 'Konnte %{resource} nicht speichern: %{count} Fehler.'
|
11
|
-
devise:
|
12
|
-
confirmations:
|
13
|
-
confirmed: Vielen Dank für Ihre Registrierung. Sie sind jetzt angemeldet.
|
14
|
-
send_instructions: Sie erhalten in wenigen Minuten eine E-Mail, mit der Sie Ihre Registrierung bestätigen können.
|
15
|
-
send_paranoid_instructions: Falls Ihre E-Mail-Adresse in unserer Datenbank existiert, erhalten Sie in wenigen Minuten eine E-Mail mit der die Sie Ihre Registrierung bestätigen können.
|
16
|
-
failure:
|
17
|
-
already_authenticated: Sie sind bereits angemeldet.
|
18
|
-
inactive: Ihr Account ist nicht aktiv.
|
19
|
-
invalid: Ungültige Anmeldedaten.
|
20
|
-
invalid_token: Der Anmelde-Token ist ungültig.
|
21
|
-
locked: Ihr Account ist gesperrt.
|
22
|
-
timeout: Ihre Sitzung ist abgelaufen, bitte melden Sie sich erneut an.
|
23
|
-
unauthenticated: Sie müssen sich anmelden oder registrieren, bevor Sie fortfahren können.
|
24
|
-
unconfirmed: Sie müssen Ihren Account bestätigen, bevor Sie fortfahren können.
|
25
|
-
sessions:
|
26
|
-
signed_in: Erfolgreich angemeldet.
|
27
|
-
signed_out: Erfolgreich abgemeldet.
|
28
|
-
passwords:
|
29
|
-
no_token: Sie können sich nicht auf dieser Seite anmelden, wenn Sie nicht von einer Paswort-Zurücksetzen-E-Mail kommen. Wenn Sie von solch einer E-Mail kommen, überprüfen Sie bitte, ob Sie die gesamte URL verwendeten.
|
30
|
-
send_instructions: Sie erhalten in wenigen Minuten eine E-Mail mit der Anleitung, wie Sie ihr Passwort zurücksetzen können.
|
31
|
-
send_paranoid_instructions: Falls Ihre E-Mail-Adresse in unserer Datenbank existiert erhalten Sie in wenigen Minuten eine E-Mail mit der Anleitung, wie Sie Ihr Passwort zurücksetzen können.
|
32
|
-
updated: Ihr Passwort wurde geändert. Sie sind jetzt angemeldet.
|
33
|
-
updated_not_active: Ihr Passwort wurde geändert.
|
34
|
-
registrations:
|
35
|
-
destroyed: Ihr Account wurde gelöscht.
|
36
|
-
signed_up: Sie haben sich erfolgreich registriert.
|
37
|
-
signed_up_but_inactive: Sie haben sich erfolgreich registriert. Wir konnten Sie jedoch nicht anmelden, weil Ihr Account noch nicht aktiviert ist.
|
38
|
-
signed_up_but_locked: Sie haben sich erfolgreich registriert. Wir konnten Sie jedoch nicht anmelden, weil Ihr Account gesperrt ist.
|
39
|
-
signed_up_but_unconfirmed: Sie erhalten in wenigen Minuten eine E-Mail mit einem Link für die Bestätigung der Registrierung. Klicken Sie auf den Link um Ihren Account zu aktivieren.
|
40
|
-
update_needs_confirmation: Ihre Daten wurden aktualisiert, aber Sie müssen Ihre neue E-Mail-Adresse bestätigen. Sie erhalten in wenigen Minuten eine E-Mail, mir der Sie die Änderung Ihrer E-Mail-Adresse abschließen können.
|
41
|
-
updated: Ihre Daten wurden aktualisiert.
|
42
|
-
unlocks:
|
43
|
-
send_instructions: Sie erhalten in wenigen Minuten eine E-Mail mit der Anleitung, wie Sie Ihren Account entsperren können.
|
44
|
-
send_paranoid_instructions: Falls Ihre E-Mail-Adresse in unserer Datenbank existiert erhalten Sie in wenigen Minuten eine E-Mail mit der Anleitung, wie Sie Ihren Account entsperren können.
|
45
|
-
unlocked: Ihr Account wurde entsperrt. Sie sind jetzt angemeldet.
|
46
|
-
omniauth_callbacks:
|
47
|
-
failure: Sie konnten nicht Ihrem %{kind}-Account angemeldet werden, weil "%{reason}".
|
48
|
-
success: Sie haben sich erfolgreich mit Ihrem %{kind}-Account angemeldet.
|
49
|
-
mailer:
|
50
|
-
confirmation_instructions:
|
51
|
-
subject: Anleitung zur Bestätigung Ihres Accounts
|
52
|
-
reset_password_instructions:
|
53
|
-
subject: Anleitung um Ihr Passwort zurückzusetzen
|
54
|
-
unlock_instructions:
|
55
|
-
subject: Anleitung um Ihren Account freizuschalten
|
@@ -1,55 +0,0 @@
|
|
1
|
-
en:
|
2
|
-
errors:
|
3
|
-
messages:
|
4
|
-
expired: has expired, please request a new one
|
5
|
-
not_found: not found
|
6
|
-
already_confirmed: was already confirmed, please try signing in
|
7
|
-
not_locked: was not locked
|
8
|
-
not_saved:
|
9
|
-
one: '1 error prohibited this %{resource} from being saved:'
|
10
|
-
other: '%{count} errors prohibited this %{resource} from being saved:'
|
11
|
-
devise:
|
12
|
-
confirmations:
|
13
|
-
send_instructions: You will receive an email with instructions about how to confirm your account in a few minutes.
|
14
|
-
send_paranoid_instructions: If your e-mail exists on our database, you will receive an email with instructions about how to confirm your account in a few minutes.
|
15
|
-
confirmed: Your account was successfully confirmed. You are now signed in.
|
16
|
-
failure:
|
17
|
-
already_authenticated: You are already signed in.
|
18
|
-
unauthenticated: You need to sign in or sign up before continuing.
|
19
|
-
unconfirmed: You have to confirm your account before continuing.
|
20
|
-
locked: Your account is locked.
|
21
|
-
invalid: Invalid email or password.
|
22
|
-
invalid_token: Invalid authentication token.
|
23
|
-
timeout: Your session expired, please sign in again to continue.
|
24
|
-
inactive: Your account was not activated yet.
|
25
|
-
sessions:
|
26
|
-
signed_in: Signed in successfully.
|
27
|
-
signed_out: Signed out successfully.
|
28
|
-
passwords:
|
29
|
-
send_instructions: You will receive an email with instructions about how to reset your password in a few minutes.
|
30
|
-
updated: Your password was changed successfully. You are now signed in.
|
31
|
-
updated_not_active: Your password was changed successfully.
|
32
|
-
send_instructions: If your e-mail exists on our database, you will receive a password recovery link on your e-mail
|
33
|
-
send_paranoid_instructions: If your e-mail exists on our database, you will receive a password recovery link on your e-mail
|
34
|
-
registrations:
|
35
|
-
signed_up: Welcome! You have signed up successfully.
|
36
|
-
signed_up_but_unconfirmed: A message with a confirmation link has been sent to your email address. Please open the link to activate your account.
|
37
|
-
signed_up_but_inactive: You have signed up successfully. However, we could not sign you in because your account is not yet activated.
|
38
|
-
signed_up_but_locked: You have signed up successfully. However, we could not sign you in because your account is locked.
|
39
|
-
updated: You updated your account successfully.
|
40
|
-
update_needs_confirmation: You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address.
|
41
|
-
destroyed: Bye! Your account was successfully cancelled. We hope to see you again soon.
|
42
|
-
unlocks:
|
43
|
-
send_instructions: You will receive an email with instructions about how to unlock your account in a few minutes.
|
44
|
-
unlocked: Your account has been unlocked successfully. Please sign in to continue.
|
45
|
-
send_paranoid_instructions: If your account exists, you will receive an email with instructions about how to unlock it in a few minutes.
|
46
|
-
omniauth_callbacks:
|
47
|
-
success: Successfully authorized from %{kind} account.
|
48
|
-
failure: Could not authorize you from %{kind} because %{reason}.
|
49
|
-
mailer:
|
50
|
-
confirmation_instructions:
|
51
|
-
subject: Confirmation instructions
|
52
|
-
reset_password_instructions:
|
53
|
-
subject: Reset password instructions
|
54
|
-
unlock_instructions:
|
55
|
-
subject: Unlock Instructions
|
@@ -1,18 +0,0 @@
|
|
1
|
-
de:
|
2
|
-
devise:
|
3
|
-
mail:
|
4
|
-
confirmation_instructions:
|
5
|
-
title: "Wilkommen %{name}!"
|
6
|
-
info: "Du kannst deinen Account mit folgendem Link aktivieren:"
|
7
|
-
link: "Mein Konto aktivieren"
|
8
|
-
reset_password_instructions:
|
9
|
-
title: "Hallo %{name}!"
|
10
|
-
info: "Jemand hat ein link angefordert um dein Passwort zu ändern, du kannst nun dem Link folgen und dein Passwort ändern."
|
11
|
-
link: "Mein Passwort ändern"
|
12
|
-
foot1: "Du kannst das Mail ignoriren, wenn du das Passwort nicht zurücksetzen willst."
|
13
|
-
foot2: "Das Passwort wird nicht geändert bis du auf den Links klickst und es änderst."
|
14
|
-
unlock_instructions:
|
15
|
-
title: "Hallo %{name}!"
|
16
|
-
info1: "Dein Konto wurde gesperrt, da du dich zu oft mit falschem Passwort versucht hast anzumelden."
|
17
|
-
info2: "Benutze den folgenden Link um dein Konto zu entsperren"
|
18
|
-
link: "Mein Konto entsperren"
|
@@ -1,18 +0,0 @@
|
|
1
|
-
en:
|
2
|
-
devise:
|
3
|
-
mail:
|
4
|
-
confirmation_instructions:
|
5
|
-
title: Welcome %{name}!
|
6
|
-
info: 'You can confirm your account through the link below:'
|
7
|
-
link: Confirm my account
|
8
|
-
reset_password_instructions:
|
9
|
-
title: Hello %{name}!
|
10
|
-
info: Someone has requested a link to change your password, and you can do this through the link below.
|
11
|
-
link: Change my password
|
12
|
-
foot1: If you didn't request this, please ignore this email.
|
13
|
-
foot2: Your password won't change until you access the link above and create a new one.
|
14
|
-
unlock_instructions:
|
15
|
-
title: Hello %{name}!
|
16
|
-
info1: Your account has been locked due to an excessive amount of unsuccessful sign in attempts.
|
17
|
-
info2: 'Click the link below to unlock your account:'
|
18
|
-
link: Unlock my account
|
@@ -1,54 +0,0 @@
|
|
1
|
-
de:
|
2
|
-
devise:
|
3
|
-
ui:
|
4
|
-
confirmations:
|
5
|
-
new:
|
6
|
-
title: Aktivierungsangaben nochmals senden
|
7
|
-
email: Deine Email Adresse
|
8
|
-
submit: wiederholen
|
9
|
-
passwords:
|
10
|
-
new:
|
11
|
-
title: Passwort vergessen?
|
12
|
-
email: Deine Email Adresse
|
13
|
-
submit: senden
|
14
|
-
edit:
|
15
|
-
title: Passwort ändern
|
16
|
-
password: Passwort
|
17
|
-
password_confirmation: Passwort Bestätigung
|
18
|
-
submit: ändern
|
19
|
-
registrations:
|
20
|
-
new:
|
21
|
-
title: Registrieren
|
22
|
-
email: Deine Email Adresse
|
23
|
-
password: Passwort
|
24
|
-
password_confirmation: Passwort Bestätigung
|
25
|
-
submit: anmelden
|
26
|
-
edit:
|
27
|
-
title: Bearbeiten %{name}
|
28
|
-
email: Deine Email
|
29
|
-
password: Passwort
|
30
|
-
password_confirmation: Passwort Bestätigung
|
31
|
-
current_password: Aktuelles Passwort
|
32
|
-
submit: Aktualisieren
|
33
|
-
destroy: Konto löschen
|
34
|
-
destroy_confirm: Bist du sicher?
|
35
|
-
back: zurück
|
36
|
-
sessions:
|
37
|
-
new:
|
38
|
-
title: Anmelden
|
39
|
-
email: Email Adresse
|
40
|
-
password: Passwort
|
41
|
-
remember_me: An mich errinern?
|
42
|
-
submit: anmelden
|
43
|
-
unlocks:
|
44
|
-
new:
|
45
|
-
title: Ensperrungsangaben nochmals senden
|
46
|
-
email: Email Adresse
|
47
|
-
submit: wiederholen
|
48
|
-
shared:
|
49
|
-
links:
|
50
|
-
login: Anmelden
|
51
|
-
signup: Registrieren
|
52
|
-
lost_password: Passwort vergessen?
|
53
|
-
no_confirmation: Leine Aktivierungsangaben erhalten?
|
54
|
-
no_unlock: Keine Ensperrungsangaben erhalten?
|