explorak5_login_prueba 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dcfbcffcdef37d53d9b3b7325aa314792942e788d9b2f5da9cba53d4ea87b559
4
- data.tar.gz: 4e0eb5609a57d2fb82ed6ac9a71fc379275eee23c5584601c59444ec60d7daeb
3
+ metadata.gz: 58a48d1eee46beabc72df38cb7867a7778f201ab7450e4660c52f79270e5950d
4
+ data.tar.gz: d7d66ccd0bf16829770ecb1b271b981828103dfe2194dd706884716ec649a6b5
5
5
  SHA512:
6
- metadata.gz: 41dc3f132d5f20f5bd70f660e80a1bda2858ec7c9c665958ae8f73c1b63a5113b14643e6be6a446ced682990ee6e038184b7bb8f50d71c5eaa8203f2f61fab90
7
- data.tar.gz: eea04591a35041eb2ab34fb98604bb0186b108bfd09cbf74bb2b03151af0185e26ab7d06533c3b713c533d1373140df557f7714cd7db4f6deff117db2ab620d2
6
+ metadata.gz: b58e10802ae6e664eb724a62391f1a966fc220a438d9e5a45c35b2d29518ccb32392ac40ad58d20c71427bb755aca7a58b1ee0b81416031852bb84231ef20c83
7
+ data.tar.gz: 10a7e1c1899982fc064d7a4c0836661d65f0355389a99ff492d6260afce50dceee4756254cd4e4b6c5482349fe30f00c7d44f3fba747b7b94acbfec65cf4e83f
@@ -0,0 +1,128 @@
1
+ <%
2
+ # Copyright (C) 2015 - present Instructure, Inc.
3
+ #
4
+ # This file is part of Canvas.
5
+ #
6
+ # Canvas is free software: you can redistribute it and/or modify it under
7
+ # the terms of the GNU Affero General Public License as published by the Free
8
+ # Software Foundation, version 3 of the License.
9
+ #
10
+ # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
+ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
+ # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
+ # details.
14
+ #
15
+ # You should have received a copy of the GNU Affero General Public License along
16
+ # with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ %>
18
+
19
+ <%
20
+ login_handle_name = @domain_root_account.login_handle_name_with_inference
21
+ # disable form submission when previewing from theme editor
22
+ if params[:previewing_from_themeeditor]
23
+ login_btn_type = forgot_password_btn_type = "button"
24
+ else
25
+ login_btn_type = forgot_password_btn_type = "submit"
26
+ end
27
+ unique_id = begin
28
+ params.dig(:pseudonym_session, :unique_id)&.to_s
29
+ rescue TypeError
30
+ nil
31
+ end
32
+ %>
33
+
34
+ <div class="ic-Login<%= params[:previewing_from_themeeditor] ? ' ic-Login--previewing' : '' %>">
35
+ <div class="ic-Login__container">
36
+ <div class="ic-Login__content">
37
+ <div class="ic-Login__innerContent">
38
+
39
+ <div class="ic-Login-header">
40
+ <%= render :partial => 'login/shared/header_logo' %>
41
+ <div class="ic-Login-header__links">
42
+ <%= render "login/canvas/login_banner" %>
43
+ <% if @domain_root_account.enable_course_catalog? %>
44
+ <a href="/search/all_courses" class="ic-Login__link">
45
+ <%= t('browse_courses', 'Browse courses') %>
46
+ </a>
47
+ <% end %>
48
+ </div>
49
+ </div>
50
+
51
+ <div class="ic-Login__body">
52
+ <%= render "shared/login_fft_helper" %>
53
+ <%= form_for :pseudonym_session, :url => url_for({ action: :create }.merge(params.slice(:id).to_unsafe_h)), :html => {:id => "login_form"} do |f| %>
54
+ <h1 class="ui-helper-hidden-accessible">
55
+ <%= t('log_in', 'Log In') %>
56
+ </h1>
57
+ <% login_inner_dialog = yield :login_inner_dialog %>
58
+ <%= login_inner_dialog if login_inner_dialog && !login_inner_dialog.strip.empty? %>
59
+ <input type="hidden" name="redirect_to_ssl" value="1"/>
60
+ <div class="ic-Form-control ic-Form-control--login">
61
+ <%= f.label :unique_id, login_handle_name, :class => "ic-Label" %>
62
+ <%= f.text_field :unique_id, :class => "ic-Input text", :value => unique_id, :autofocus => !params[:previewing_from_themeeditor] %>
63
+ </div>
64
+ <div class="ic-Form-control ic-Form-control--login">
65
+ <%= f.label :password, :en => "Password", :class => "ic-Label" %>
66
+ <%= f.password_field :password, :class => "ic-Input text", :role => "textbox" %>
67
+ </div>
68
+ <div class="ic-Login__actions">
69
+ <div class="ic-Login__actions-timeout">
70
+ <% unless session_timeout_enabled? %>
71
+ <%= f.check_box :remember_me, :checked => session[:used_remember_me_token] %>
72
+ <%= f.label :remember_me, :en => "Stay signed in" %>
73
+ <% end %>
74
+
75
+ <div class="ic-Login__forgot">
76
+ <%= render "login/canvas/forgot_password_link" %>
77
+ </div>
78
+ </div>
79
+ <div class="ic-Form-control ic-Form-control--login">
80
+ <%= submit_tag t('log_in', 'Log In'), type: login_btn_type, class: "Button Button--login" %>
81
+ </div>
82
+ </div> <!-- ic-Login__actions -->
83
+ <%= render partial: "sso_buttons", locals: { aacs: @aacs_with_buttons } %>
84
+ <% end %>
85
+ <%= form_for :pseudonym_session, :url => forgot_password_path, :html => {:id => "forgot_password_form", :style => "display: none;"} do |f| %>
86
+ <h1 class="ui-helper-hidden-accessible"><%= t('Forgot Password?') %></h1>
87
+ <p id="forgot_password_instructions" class="ic-Login__forgot-text">
88
+ <%= t('login_handle', "Enter your %{login_handle_name} and we'll send you a link to change your password.", :login_handle_name => login_handle_name) %>
89
+ </p>
90
+ <div class="ic-Form-control ic-Form-control--login">
91
+ <label for="pseudonym_session_unique_id_forgot" class="ic-Label">
92
+ <%= login_handle_name %>
93
+ </label>
94
+ <input aria-describedby="forgot_password_instructions" class="ic-Input email_address text" type="text" name="pseudonym_session[unique_id_forgot]" value="" id="pseudonym_session_unique_id_forgot" />
95
+
96
+ </div>
97
+ <div class="ic-Form-control ic-Form-control--login">
98
+ <div class="ic-Login__actions">
99
+ <%= link_to t('back_to_login', "Back to Login"), login_path, :class => "ic-Login__actions--left ic-Login__link login_link"%>
100
+ <button type="<%= forgot_password_btn_type %>" class="Button Button--login">
101
+ <%= t('buttons.request_password', 'Request Password') %>
102
+ </button>
103
+ </div> <!-- end ic-Login__actions -->
104
+ </div>
105
+ <% end %>
106
+ </div> <!-- end ic-Login__body -->
107
+ </div> <!-- end ic-Login__innerContent -->
108
+ <footer role="contentinfo" id="footer" class="ic-Login-footer">
109
+
110
+ <div id="footer-links" class="ic-Login-footer__links">
111
+ <% if Setting.get("show_opensource_linkback", "false") == "true" %>
112
+ <a href="http://instructure.com">
113
+ <%= t('open_source_learning_management_system', 'Open Source LMS') %>
114
+ </a>
115
+ <% end %>
116
+ <%= help_link %>
117
+ <%= render :partial => 'shared/footer_links' %>
118
+ </div>
119
+ <a href="http://www.instructure.com" class="ic-Login-footer__logo-link" aria-label="By Instructure">
120
+ <%= render partial: "login/canvas/instructure_logo", formats: [:svg] %>
121
+ </a>
122
+ <div id="footer-epilogue" class="ic-Login-footer__links">
123
+ <%= render :partial => 'shared/footer_epilogue' %>
124
+ </div>
125
+ </footer>
126
+ </div> <!-- end ic-Login__content -->
127
+ </div>
128
+ </div> <!-- end ic-Login -->
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 56.42 42.82"><defs><style>.cls-1{fill:#fffefd;}</style></defs><g id="Capa_2" data-name="Capa 2"><g id="Capa_2-2" data-name="Capa 2"><g id="T"><path class="cls-1" d="M25.44,3.19a13.87,13.87,0,0,0-.23,1.64,15.27,15.27,0,0,0,0,1.66v7.23L3.76,13.64A3.56,3.56,0,0,0,0,17c.05,2.5.09,5,.14,7.49A3.55,3.55,0,0,0,3.88,27.8l21.41,0v9.9c0,2.57,1.53,4.77,3.63,5.14a24.08,24.08,0,0,0,3.41-1.7q10.43-7.35,20.82-14.83A14.63,14.63,0,0,0,54.71,25a5.3,5.3,0,0,0,1-6.49,4.51,4.51,0,0,0-1-1.27A14.1,14.1,0,0,0,53,15.87Q42.8,8.48,32.53,1.28A4.27,4.27,0,0,0,30.43,0,5,5,0,0,0,25.44,3.19Z"/></g></g></g></svg>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Explorak5LoginPrueba
4
- VERSION = "0.3.0"
4
+ VERSION = "0.5.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: explorak5_login_prueba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Ibarra
@@ -19,13 +19,15 @@ executables: []
19
19
  extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
- - CHANGELOG.md
23
- - CODE_OF_CONDUCT.md
24
- - README.md
25
- - Rakefile
26
22
  - lib/explorak5_login_prueba.rb
23
+ - lib/explorak5_login_prueba/login_content.erb
24
+ - lib/explorak5_login_prueba/src/images/images_k5/flecha.png
25
+ - lib/explorak5_login_prueba/src/images/images_k5/flecha.svg
26
+ - lib/explorak5_login_prueba/src/images/images_k5/fondo.png
27
+ - lib/explorak5_login_prueba/src/images/images_k5/logo_k5.png
28
+ - lib/explorak5_login_prueba/src/images/images_k5/logoespol.png
29
+ - lib/explorak5_login_prueba/src/images/images_k5/logovinculos.png
27
30
  - lib/explorak5_login_prueba/version.rb
28
- - sig/explorak5_login_prueba.rbs
29
31
  homepage: https://github.com/kevin523523/explorak5_login
30
32
  licenses: []
31
33
  metadata:
data/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- ## [Unreleased]
2
-
3
- ## [0.2.0] - 2024-08-15
4
-
5
- - Initial release
data/CODE_OF_CONDUCT.md DELETED
@@ -1,132 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our
6
- community a harassment-free experience for everyone, regardless of age, body
7
- size, visible or invisible disability, ethnicity, sex characteristics, gender
8
- identity and expression, level of experience, education, socio-economic status,
9
- nationality, personal appearance, race, caste, color, religion, or sexual
10
- identity and orientation.
11
-
12
- We pledge to act and interact in ways that contribute to an open, welcoming,
13
- diverse, inclusive, and healthy community.
14
-
15
- ## Our Standards
16
-
17
- Examples of behavior that contributes to a positive environment for our
18
- community include:
19
-
20
- * Demonstrating empathy and kindness toward other people
21
- * Being respectful of differing opinions, viewpoints, and experiences
22
- * Giving and gracefully accepting constructive feedback
23
- * Accepting responsibility and apologizing to those affected by our mistakes,
24
- and learning from the experience
25
- * Focusing on what is best not just for us as individuals, but for the overall
26
- community
27
-
28
- Examples of unacceptable behavior include:
29
-
30
- * The use of sexualized language or imagery, and sexual attention or advances of
31
- any kind
32
- * Trolling, insulting or derogatory comments, and personal or political attacks
33
- * Public or private harassment
34
- * Publishing others' private information, such as a physical or email address,
35
- without their explicit permission
36
- * Other conduct which could reasonably be considered inappropriate in a
37
- professional setting
38
-
39
- ## Enforcement Responsibilities
40
-
41
- Community leaders are responsible for clarifying and enforcing our standards of
42
- acceptable behavior and will take appropriate and fair corrective action in
43
- response to any behavior that they deem inappropriate, threatening, offensive,
44
- or harmful.
45
-
46
- Community leaders have the right and responsibility to remove, edit, or reject
47
- comments, commits, code, wiki edits, issues, and other contributions that are
48
- not aligned to this Code of Conduct, and will communicate reasons for moderation
49
- decisions when appropriate.
50
-
51
- ## Scope
52
-
53
- This Code of Conduct applies within all community spaces, and also applies when
54
- an individual is officially representing the community in public spaces.
55
- Examples of representing our community include using an official email address,
56
- posting via an official social media account, or acting as an appointed
57
- representative at an online or offline event.
58
-
59
- ## Enforcement
60
-
61
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
- reported to the community leaders responsible for enforcement at
63
- [INSERT CONTACT METHOD].
64
- All complaints will be reviewed and investigated promptly and fairly.
65
-
66
- All community leaders are obligated to respect the privacy and security of the
67
- reporter of any incident.
68
-
69
- ## Enforcement Guidelines
70
-
71
- Community leaders will follow these Community Impact Guidelines in determining
72
- the consequences for any action they deem in violation of this Code of Conduct:
73
-
74
- ### 1. Correction
75
-
76
- **Community Impact**: Use of inappropriate language or other behavior deemed
77
- unprofessional or unwelcome in the community.
78
-
79
- **Consequence**: A private, written warning from community leaders, providing
80
- clarity around the nature of the violation and an explanation of why the
81
- behavior was inappropriate. A public apology may be requested.
82
-
83
- ### 2. Warning
84
-
85
- **Community Impact**: A violation through a single incident or series of
86
- actions.
87
-
88
- **Consequence**: A warning with consequences for continued behavior. No
89
- interaction with the people involved, including unsolicited interaction with
90
- those enforcing the Code of Conduct, for a specified period of time. This
91
- includes avoiding interactions in community spaces as well as external channels
92
- like social media. Violating these terms may lead to a temporary or permanent
93
- ban.
94
-
95
- ### 3. Temporary Ban
96
-
97
- **Community Impact**: A serious violation of community standards, including
98
- sustained inappropriate behavior.
99
-
100
- **Consequence**: A temporary ban from any sort of interaction or public
101
- communication with the community for a specified period of time. No public or
102
- private interaction with the people involved, including unsolicited interaction
103
- with those enforcing the Code of Conduct, is allowed during this period.
104
- Violating these terms may lead to a permanent ban.
105
-
106
- ### 4. Permanent Ban
107
-
108
- **Community Impact**: Demonstrating a pattern of violation of community
109
- standards, including sustained inappropriate behavior, harassment of an
110
- individual, or aggression toward or disparagement of classes of individuals.
111
-
112
- **Consequence**: A permanent ban from any sort of public interaction within the
113
- community.
114
-
115
- ## Attribution
116
-
117
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
- version 2.1, available at
119
- [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
-
121
- Community Impact Guidelines were inspired by
122
- [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
-
124
- For answers to common questions about this code of conduct, see the FAQ at
125
- [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126
- [https://www.contributor-covenant.org/translations][translations].
127
-
128
- [homepage]: https://www.contributor-covenant.org
129
- [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
- [Mozilla CoC]: https://github.com/mozilla/diversity
131
- [FAQ]: https://www.contributor-covenant.org/faq
132
- [translations]: https://www.contributor-covenant.org/translations
data/README.md DELETED
@@ -1,35 +0,0 @@
1
- # Explorak5LoginPrueba
2
-
3
- TODO: Delete this and the text below, and describe your gem
4
-
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/explorak5_login_prueba`. To experiment with that code, run `bin/console` for an interactive prompt.
6
-
7
- ## Installation
8
-
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
-
11
- Install the gem and add to the application's Gemfile by executing:
12
-
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
14
-
15
- If bundler is not being used to manage dependencies, install the gem by executing:
16
-
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
18
-
19
- ## Usage
20
-
21
- TODO: Write usage instructions here
22
-
23
- ## Development
24
-
25
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
26
-
27
- 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
28
-
29
- ## Contributing
30
-
31
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/explorak5_login_prueba. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/explorak5_login_prueba/blob/master/CODE_OF_CONDUCT.md).
32
-
33
- ## Code of Conduct
34
-
35
- Everyone interacting in the Explorak5LoginPrueba project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/explorak5_login_prueba/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile DELETED
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- task default: %i[]
@@ -1,4 +0,0 @@
1
- module Explorak5LoginPrueba
2
- VERSION: String
3
- # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
- end