kuroko2_read_only 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 42d27c18c4803eae67dde097f3997b8c128d8ac6
4
+ data.tar.gz: 55fa80e7836fbf2870945f78333baedde0ac806a
5
+ SHA512:
6
+ metadata.gz: a03be8354921cf96708774ab44a7d92fc2caa47be7b22180edef9baedaa0feb7684337685d7c69d59b8ba89948d04a5443bc0a85e6f2e97d4e486e3bed54c34d
7
+ data.tar.gz: f988e898a262aaa8ae21a7c5ce39cb958eb0871f4c7ed20c8d3a4efea6165a87275ac0c9c11302e91a05780503327846a15a105e8ac93bb57ea753453015cafe
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ ## dummy
12
+ spec/dummy/db/test.sqlite3
13
+ spec/dummy/log/test.log
14
+
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --require spec_helper
@@ -0,0 +1,12 @@
1
+ sudo: false
2
+ language: ruby
3
+
4
+ rvm:
5
+ - 2.3.1
6
+ - 2.2.5
7
+
8
+ env:
9
+ - RAILS_VERSION=5.0.0.1
10
+ - RAILS_VERSION=4.2.7.1
11
+
12
+ before_install: gem install bundler -v 1.12.5
@@ -0,0 +1,3 @@
1
+ ## v0.1.0
2
+ - Add `Kuroko2ReadOnly::RequestHandler`
3
+ - Add `Kuroko2ReadOnly::Engine`
@@ -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 hata.yusaku.1225@gmail.com. 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
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in kuroko2_read_only.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 hatappi
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.
@@ -0,0 +1,63 @@
1
+ # Kuroko2ReadOnly
2
+
3
+ Add User read-only function to kuroko2
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'kuroko2_read_only'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install kuroko2_read_only
20
+
21
+ ## Usage
22
+
23
+ - Please install [cookpad/kuroko2#installation](https://github.com/cookpad/kuroko2#installation) first .
24
+ - add gem to your Gemfile
25
+ - generate kuroko2_read_only file and migrate
26
+
27
+ ```
28
+ $ bundle exec rails generate kuroko2_read_only:install
29
+ $ bundle exec rake db:migrate
30
+ ```
31
+ - add `Kuroko2ReadOnly::RequestHandler` to controller extensions
32
+
33
+ ```yaml
34
+ extentions:
35
+ controller:
36
+ - '::Kuroko2ReadOnly::RequestHandler'
37
+ ```
38
+ - If the user's read_only is true, `Kuroko2ReadOnly::AccessDenied` occur when other than get.
39
+
40
+ ### Read only setting
41
+ - mount Kuroko2ReadOnly::Engine path to your routes.rb
42
+
43
+ ```rb
44
+ Rails.application.routes.draw do
45
+ ~~
46
+ mount Kuroko2ReadOnly::Engine => "/kuroko2_read_only"
47
+ ~~
48
+ end
49
+ ```
50
+
51
+ - access `/kuroko2_read_only/settings`
52
+
53
+ ![](./examples/settings.jpeg)
54
+
55
+ ## Contributing
56
+
57
+ Bug reports and pull requests are welcome on GitHub at https://github.com/hatappi/kuroko2_read_only. 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.
58
+
59
+
60
+ ## License
61
+
62
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
63
+
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,21 @@
1
+ class Kuroko2ReadOnly::ApplicationController < ActionController::Base
2
+ layout 'layouts/kuroko2/application'
3
+ include Kuroko2ReadOnly::RequestHandler
4
+
5
+ protect_from_forgery with: :exception
6
+ prepend_before_action :require_sign_in
7
+
8
+ helper_method :current_user
9
+
10
+ def current_user
11
+ Kuroko2::User.active.find(session[:user_id])
12
+ end
13
+
14
+ private
15
+
16
+ def require_sign_in
17
+ if session[:user_id].blank?
18
+ redirect_to kuroko2.sign_in_path(return_to: url_for(params.permit!.to_h.merge(only_path: true)))
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,22 @@
1
+ module Kuroko2ReadOnly
2
+ class SettingsController < Kuroko2ReadOnly::ApplicationController
3
+ def show
4
+ @users = Kuroko2::User.where.not(id: current_user.id)
5
+ end
6
+
7
+ def update
8
+ settings_params.each do |user_id, settings_param|
9
+ user = Kuroko2::User.find(user_id)
10
+ user.update!(read_only: settings_param[:read_only])
11
+ end
12
+ flash[:success] = 'User ReadOnly change complete!!'
13
+ redirect_to settings_path
14
+ end
15
+
16
+ private
17
+
18
+ def settings_params
19
+ params.permit(users: [:read_only])[:users]
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,11 @@
1
+ module Kuroko2ReadOnly
2
+ module ApplicationHelper
3
+ def method_missing(method, *args, &block)
4
+ if (method.to_s.end_with?('_path') || method.to_s.end_with?('_url')) && kuroko2.respond_to?(method)
5
+ kuroko2.send(method, *args)
6
+ else
7
+ super
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,40 @@
1
+ <%= content_for :title, 'Setting ReadOnly User' %>
2
+ <%= content_for :content_title, 'Setting ReadOnly User' %>
3
+
4
+ <% if flash[:success] %>
5
+ <div class="alert alert-success">
6
+ <h4><%= flash[:success] %></h4>
7
+ </div>
8
+ <% end %>
9
+
10
+ <%= form_tag settings_path, method: :put do %>
11
+ <div class="box">
12
+ <div class="box-body table-responsive no-padding">
13
+ <table class="table table-hover">
14
+ <thead>
15
+ <tr>
16
+ <th>#</th>
17
+ <th>Name</th>
18
+ <th>Email</th>
19
+ <th>ReadOnly</th>
20
+ </tr>
21
+ </thead>
22
+ <tbody>
23
+ <% @users.each do |user| %>
24
+ <%= fields_for "users[]", user do |f| %>
25
+ <tr>
26
+ <td><%= user.id %></td>
27
+ <td><%= user.name %></td>
28
+ <td><%= user.email %></td>
29
+ <td><%= f.check_box :read_only %></td>
30
+ </tr>
31
+ <% end %>
32
+ <% end %>
33
+ </tbody>
34
+ </table>
35
+ </div>
36
+ <div class="box-footer">
37
+ <%= submit_tag 'Submit', class: 'btn btn-default' %>
38
+ </div>
39
+ </div>
40
+ <% end %>
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "kuroko2_read_only"
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
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails gems
3
+ # installed from the root of your application.
4
+
5
+ ENGINE_ROOT = File.expand_path('../..', __FILE__)
6
+ ENGINE_PATH = File.expand_path('../../lib/kuroko2_read_only/engine', __FILE__)
7
+
8
+ # Set up gems listed in the Gemfile.
9
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
10
+ require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
11
+
12
+ require 'rails/all'
13
+ require 'rails/engine/commands'
14
+
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,3 @@
1
+ Kuroko2ReadOnly::Engine.routes.draw do
2
+ resource :settings, only: [:show, :update]
3
+ end
Binary file
@@ -0,0 +1,33 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'kuroko2_read_only/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "kuroko2_read_only"
8
+ spec.version = Kuroko2ReadOnly::VERSION
9
+ spec.authors = ["hatappi"]
10
+ spec.email = ["hata.yusaku.1225@gmail.com"]
11
+
12
+ spec.summary = 'kuroko2 add readonly'
13
+ spec.description = 'kuroko2 add readonly'
14
+ spec.homepage = 'https://github.com/hatappi/kuroko2_read_only'
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_dependency "kuroko2"
23
+
24
+ spec.add_development_dependency "rails", ">= 5.0.0.1"
25
+ spec.add_development_dependency "bundler", "~> 1.12"
26
+ spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_development_dependency "rspec", "~> 3.0"
28
+ spec.add_development_dependency "rspec-rails"
29
+ spec.add_development_dependency "sqlite3"
30
+
31
+ spec.add_development_dependency "pry-byebug"
32
+ spec.add_development_dependency "pry-rails"
33
+ end
@@ -0,0 +1,26 @@
1
+ require "rails/generators"
2
+ require "rails/generators/active_record"
3
+
4
+ module Kuroko2ReadOnly
5
+ class InstallGenerator < ::Rails::Generators::Base
6
+ include ::Rails::Generators::Migration
7
+
8
+ class_option(
9
+ :default_read_only,
10
+ type: :boolean,
11
+ default: true,
12
+ desc: 'default read_only boolean value'
13
+ )
14
+
15
+ source_root File.expand_path('../templates', __FILE__)
16
+
17
+ def create_migration_file
18
+ template_name = 'add_read_only_column_to_users.kuroko2.rb'
19
+ migration_template template_name, "db/migrate/#{template_name}"
20
+ end
21
+
22
+ def self.next_migration_number(dirname)
23
+ ::ActiveRecord::Generators::Base.next_migration_number(dirname)
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,5 @@
1
+ class AddReadOnlyColumnToUsers < ActiveRecord::Migration
2
+ def change
3
+ add_column :users, :read_only, :boolean, default: <%= @options['default_read_only'] %>
4
+ end
5
+ end
@@ -0,0 +1,8 @@
1
+ require "kuroko2_read_only/version"
2
+ require "kuroko2_read_only/request_handler"
3
+ require "kuroko2_read_only/exceptions"
4
+ require "kuroko2_read_only/engine"
5
+
6
+ module Kuroko2ReadOnly
7
+ # Your code goes here...
8
+ end
@@ -0,0 +1,5 @@
1
+ module Kuroko2ReadOnly
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace Kuroko2ReadOnly
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module Kuroko2ReadOnly
2
+ class AccessDenied < StandardError; end
3
+ end
@@ -0,0 +1,18 @@
1
+ require 'active_support'
2
+
3
+ module Kuroko2ReadOnly
4
+ module RequestHandler
5
+ extend ::ActiveSupport::Concern
6
+ included do
7
+ before_action :get_request_only
8
+ end
9
+
10
+ private
11
+
12
+ def get_request_only
13
+ if current_user && current_user.read_only?
14
+ raise ::Kuroko2ReadOnly::AccessDenied unless request.get?
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,3 @@
1
+ module Kuroko2ReadOnly
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,196 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: kuroko2_read_only
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - hatappi
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-03-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: kuroko2
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 5.0.0.1
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 5.0.0.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.12'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.12'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec-rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: sqlite3
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: pry-byebug
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: pry-rails
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: kuroko2 add readonly
140
+ email:
141
+ - hata.yusaku.1225@gmail.com
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - ".gitignore"
147
+ - ".rspec"
148
+ - ".travis.yml"
149
+ - CHANGELOG.md
150
+ - CODE_OF_CONDUCT.md
151
+ - Gemfile
152
+ - LICENSE
153
+ - README.md
154
+ - Rakefile
155
+ - app/controllers/kuroko2_read_only/application_controller.rb
156
+ - app/controllers/kuroko2_read_only/settings_controller.rb
157
+ - app/helpers/kuroko2_read_only/application_helper.rb
158
+ - app/views/kuroko2_read_only/settings/show.html.erb
159
+ - bin/console
160
+ - bin/rails
161
+ - bin/setup
162
+ - config/routes.rb
163
+ - examples/settings.jpeg
164
+ - kuroko2_read_only.gemspec
165
+ - lib/generators/kuroko2_read_only/install_generator.rb
166
+ - lib/generators/kuroko2_read_only/templates/add_read_only_column_to_users.kuroko2.rb
167
+ - lib/kuroko2_read_only.rb
168
+ - lib/kuroko2_read_only/engine.rb
169
+ - lib/kuroko2_read_only/exceptions.rb
170
+ - lib/kuroko2_read_only/request_handler.rb
171
+ - lib/kuroko2_read_only/version.rb
172
+ homepage: https://github.com/hatappi/kuroko2_read_only
173
+ licenses:
174
+ - MIT
175
+ metadata: {}
176
+ post_install_message:
177
+ rdoc_options: []
178
+ require_paths:
179
+ - lib
180
+ required_ruby_version: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - ">="
183
+ - !ruby/object:Gem::Version
184
+ version: '0'
185
+ required_rubygems_version: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - ">="
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ requirements: []
191
+ rubyforge_project:
192
+ rubygems_version: 2.5.1
193
+ signing_key:
194
+ specification_version: 4
195
+ summary: kuroko2 add readonly
196
+ test_files: []