explorak5_canvas_login 3.0.0 → 3.2.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: 9f26f6a493e2ef17b9a9ceb2cc10cb11fe385112ee5c885ffdfe4a524f34c7fe
4
- data.tar.gz: 15d3e722b3f9ea97c255af7a3b26ae39b25fa356fc06c021bfd8f6754c02b682
3
+ metadata.gz: b0d747595ee60e68d49c8917fadb27ae17c318a9526d65ed547ce349e6530f20
4
+ data.tar.gz: d6eddb9622d4811dcfae630a449aa45aceb01db8a59a1ea841f2acd39556d9fd
5
5
  SHA512:
6
- metadata.gz: 82d07bc58983e5499c4c695deef68e1b2247b771a95baa393ea98de3593334cf4aad887cceb3e8507d36f2b5bcd1f82841c816fe2df0b739ce14bee6cf6d3e48
7
- data.tar.gz: 6d377f7edaf848b03a7633e4a7f0ec4efec4e3bcfe0b2820b7c1dbf883158e5aaa4c797812cfd6431f2c8e35c0d514dedd42d806f2070211f747a5bc8ac01206
6
+ metadata.gz: 734c9d5c97f379a338ddc481913b5f0ac7c72a0a4fd0e32a37a19fff6884818f96e63bbab4892c6c7e0c07c9af942b2e166937bf316b1f784045c827e2425ae0
7
+ data.tar.gz: 65038d7abb35b021247cb6c3cebcf28b4136ae8263bb3e8bff25f40cc010d9504b7a583a749a27e24f1d5e4c73465956c768e62ae668edea21b79b932b1c4c1f
@@ -0,0 +1,207 @@
1
+ <style>
2
+ .ic-DashboardCard__box {
3
+ margin: auto;
4
+ text-align: center;
5
+ padding-left: 10px;
6
+ }
7
+ .unpublished_courses_redesign .ic-DashboardCard__box__header {
8
+ margin-bottom: $ic-sp*5 !important;
9
+ }
10
+ .ic-DashboardCard__box__container {
11
+ margin: direction-sides($ic-sp*-1 0 0 $ic-sp*-3) !important;
12
+ }
13
+ @supports (position: sticky) or (position: -webkit-sticky) {
14
+ .ic-DashboardCard__box {
15
+ margin: auto;
16
+ text-align: center;
17
+ }
18
+ }
19
+
20
+ .ic-DashboardCard {
21
+ overflow: visible !important;
22
+ background: unset !important;
23
+ width: 240px !important;
24
+ display: inline-block;
25
+ vertical-align: top;
26
+ margin: direction-sides(0 $ic-sp*3 $ic-sp*3 0);
27
+ text-align: center;
28
+ position: relative;
29
+ }
30
+
31
+ .ic-DashboardCard__header {
32
+ overflow: hidden;
33
+ border-radius: 4px;
34
+ }
35
+
36
+ .ic-DashboardCard__header_hero {
37
+ border: unset !important;
38
+ background-color: transparent !important;
39
+ }
40
+
41
+ .ic-DashboardCard__header_image {
42
+ background-size: 80% 100% !important;
43
+ background-position: top center !important;
44
+ }
45
+
46
+ .ic-DashboardCard__header_content {
47
+ height: 90px;
48
+ margin-top: -15px;
49
+ display: grid;
50
+ align-content: center;
51
+ }
52
+ .ic-DashboardCard__header-title {
53
+ font-size: unset !important;
54
+ white-space: normal;
55
+ text-align: center;
56
+ font-family: 'QuickSand';
57
+ margin-top: -5px;
58
+ padding-bottom: 5% !important;
59
+ }
60
+
61
+ .ic-DashboardCard__header-title > span{
62
+ color: white !important;
63
+ }
64
+ .ic-DashboardCard__header-subtitle {
65
+ visibility: hidden;
66
+ display: none !important;
67
+ }
68
+ .ic-DashboardCard__header-term {
69
+ visibility: hidden;
70
+ display: none !important;
71
+ }
72
+
73
+ .ic-DashboardCard__action-layout {
74
+ visibility: hidden;
75
+ display: none !important;
76
+ }
77
+
78
+ .ic-DashboardCard__action-badge {
79
+ visibility: hidden;
80
+ display: none !important;
81
+ }
82
+ .ic-DashboardCard__action-container {
83
+ visibility: hidden;
84
+ display: none !important;
85
+ }
86
+
87
+ .ic-DashboardCard__link + div{
88
+ display: none !important;
89
+ visibility: hidden !important;
90
+ }
91
+
92
+ .dash_link {
93
+ color: white !important;
94
+ }
95
+
96
+ .punto-notificacion-verde {
97
+ border-radius: 30px;
98
+ background-color: limegreen;
99
+ width: 30px;
100
+ height: 30px;
101
+ position: absolute;
102
+ z-index: 2;
103
+ top: -10px;
104
+ padding: 0;
105
+ margin: 0;
106
+ box-shadow: 0 0 1px rgb(0 0 0 / 8%), 0 1px 6px rgb(0 0 0 / 8%), 0 5px 5px rgb(0 0 0 /8%);
107
+ }
108
+ .punto-notificacion-gris {
109
+ border-radius: 30px;
110
+ background-color: gray;
111
+ width: 30px;
112
+ height: 30px;
113
+ position: absolute;
114
+ z-index: 2;
115
+ top: -10px;
116
+ padding: 0;
117
+ margin: 0;
118
+ box-shadow: 0 0 1px rgb(0 0 0 / 8%), 0 1px 6px rgb(0 0 0 / 8%), 0 5px 5px rgb(0 0 0 /8%);
119
+ }
120
+ </style>
121
+ <%
122
+ # Copyright (C) 2015 - present Instructure, Inc.
123
+ #
124
+ # This file is part of Canvas.
125
+ #
126
+ # Canvas is free software: you can redistribute it and/or modify it under
127
+ # the terms of the GNU Affero General Public License as published by the Free
128
+ # Software Foundation, version 3 of the License.
129
+ #
130
+ # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
131
+ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
132
+ # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
133
+ # details.
134
+ #
135
+ # You should have received a copy of the GNU Affero General Public License along
136
+ # with this program. If not, see <http://www.gnu.org/licenses/>.
137
+
138
+ css_bundle :dashboard_card
139
+
140
+ default_number_of_fake_dashcards_to_show = 5
141
+
142
+ number_of_fake_published_cards_to_show =
143
+ Rails.cache.read(['last_known_dashboard_cards_published_count', @current_user.global_id].cache_key) ||
144
+ default_number_of_fake_dashcards_to_show
145
+
146
+ number_of_fake_unpublished_cards_to_show =
147
+ Rails.cache.read(['last_known_dashboard_cards_unpublished_count', @current_user.global_id].cache_key) ||
148
+ default_number_of_fake_dashcards_to_show
149
+
150
+ number_of_fake_cards_to_show =
151
+ Rails.cache.read(['last_known_dashboard_cards_count', @current_user.global_id].cache_key) ||
152
+ default_number_of_fake_dashcards_to_show
153
+
154
+ render_on_pageload = user_dashboard_view == 'cards'
155
+ %>
156
+ <% if render_on_pageload %>
157
+ <%# fire off these `fetch` requests now so they are ready sooner %>
158
+ <% if @current_user.roles(@domain_root_account).include?("observer") && @cards_prefetch_observed_param.present? %>
159
+ <% if !Account.site_admin.feature_enabled?(:dashboard_graphql_integration) %>
160
+ <%= prefetch_xhr("/api/v1/dashboard/dashboard_cards?observed_user_id=#{@cards_prefetch_observed_param}") %>
161
+ <% end %>
162
+ <%= prefetch_xhr("/dashboard-sidebar?observed_user_id=#{@cards_prefetch_observed_param}") %>
163
+ <% else %>
164
+ <% if !Account.site_admin.feature_enabled?(:dashboard_graphql_integration) %>
165
+ <%= prefetch_xhr("/api/v1/dashboard/dashboard_cards") %>
166
+ <% end %>
167
+ <%= prefetch_xhr("/dashboard-sidebar") %>
168
+ <% end %>
169
+ <% end %>
170
+ <div id="DashboardCard_Container" style="display: <%= render_on_pageload ? 'block' : 'none' %>">
171
+ <div class="ic-DashboardCard__box">
172
+ <% for i in 1..number_of_fake_published_cards_to_show do %>
173
+ <div class="ic-DashboardCard">
174
+ <svg xmlns="http://www.w3.org/2000/svg" class="ic-DashboardCard__placeholder-svg" version="1.1" x="0" y="0" viewBox="-1087 618 260 254" xml:space="preserve">
175
+ <title>Empty Card</title>
176
+ <g class="ic-DashboardCard__placeholder-animates">
177
+ <path d="M-1087 618h260v126h-260V618z"/>
178
+ <rect x="-1062" y="759.5" class="st0" width="184" height="16"/>
179
+ <rect x="-1062" y="785.5" class="st0" width="106" height="9"/>
180
+ <circle cx="-1054" cy="842.5" r="8"/>
181
+ <circle cx="-989" cy="842.5" r="8"/>
182
+ <circle cx="-924" cy="842.5" r="8"/>
183
+ <circle cx="-859" cy="842.5" r="8"/>
184
+ </g>
185
+ </svg>
186
+ </div>
187
+ <% end %>
188
+ <br/>
189
+ <% for i in 1..number_of_fake_unpublished_cards_to_show do %>
190
+ <div class="ic-DashboardCard">
191
+ <svg xmlns="http://www.w3.org/2000/svg" class="ic-DashboardCard__placeholder-svg" version="1.1" x="0" y="0" viewBox="-1087 618 260 254" xml:space="preserve">
192
+ <title>Empty Card</title>
193
+ <g class="ic-DashboardCard__placeholder-animates">
194
+ <path d="M-1087 618h260v126h-260V618z"/>
195
+ <rect x="-1062" y="759.5" class="st0" width="184" height="16"/>
196
+ <rect x="-1062" y="785.5" class="st0" width="106" height="9"/>
197
+ <circle cx="-1054" cy="842.5" r="8"/>
198
+ <circle cx="-989" cy="842.5" r="8"/>
199
+ <circle cx="-924" cy="842.5" r="8"/>
200
+ <circle cx="-859" cy="842.5" r="8"/>
201
+ </g>
202
+ </svg>
203
+ </div>
204
+ <% end %>
205
+ </div>
206
+
207
+ </div>
@@ -0,0 +1,131 @@
1
+ <style>
2
+ body{
3
+ font-size : 0.9rem !important;
4
+ }
5
+ body.ic-Login-Body {
6
+ background-image: url("/images/images_k5/fondo.png") !important;
7
+ }
8
+ .ic-Login__title {
9
+ text-align: center;
10
+ }
11
+
12
+ .btn-img-logout {
13
+ background-size: 100px;
14
+ background-repeat: no-repeat;
15
+ height: 125px;
16
+ width: 125px;
17
+ background-color: transparent;
18
+ border: none;
19
+ background-position: center;
20
+ }
21
+
22
+ .btn-img-login-espol {
23
+ float: left;
24
+ width: 6%;
25
+ margin-left: 30px;
26
+ margin-top: 10px;
27
+ background-repeat: no-repeat;
28
+ height: 120px;
29
+ background-position: center;
30
+ background-size: contain;
31
+ background-color: transparent;
32
+ border: none;
33
+ }
34
+ .login_links {
35
+ display: grid;
36
+ float: right;
37
+ grid-template-rows: 25px 25px 25px;
38
+ grid-row-gap: 75px;
39
+ margin-right: 50px;
40
+ width: 5%;
41
+ }
42
+
43
+ .btn-img-logout-text {
44
+ text-decoration: underline;
45
+ color: white;
46
+ background: transparent;
47
+ border: none;
48
+ }
49
+ .btn-img-login-vinculos {
50
+ width: auto;
51
+ margin-top: 15px;
52
+ background-repeat: no-repeat;
53
+ height: 120px;
54
+ background-position: center;
55
+ background-size: contain;
56
+ background-color: transparent;
57
+ border: none;
58
+ }
59
+ </style>
60
+ <%
61
+ # Copyright (C) 2014 - present Instructure, Inc.
62
+ #
63
+ # This file is part of Canvas.
64
+ #
65
+ # Canvas is free software: you can redistribute it and/or modify it under
66
+ # the terms of the GNU Affero General Public License as published by the Free
67
+ # Software Foundation, version 3 of the License.
68
+ #
69
+ # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
70
+ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
71
+ # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
72
+ # details.
73
+ #
74
+ # You should have received a copy of the GNU Affero General Public License along
75
+ # with this program. If not, see <http://www.gnu.org/licenses/>.
76
+ %>
77
+
78
+ <%
79
+ css_bundle :login
80
+ @headers = false
81
+ provide :page_title, t(:page_title, "Log Out")
82
+ add_body_class "full-width ic-Login-Body"
83
+ %>
84
+ <div>
85
+ <button onclick="window.open('http://www.espol.edu.ec')" style="background-image:url('/images/images_k5/logoespol.png')" class="btn-img-login-espol" alt="Logo Espol"></button>
86
+ <!--button onclick="window.open('http://www.midi.espol.edu.ec')" style="background-image: url('/images/images_k5/logomidi.png')" class="btn-img-login-midi" alt="Logo Midi"></button-->
87
+ </div>
88
+
89
+ <div class="login_links">
90
+ <button onclick="window.open('http://www.vinculacion.espol.edu.ec')" style="background-image:url('/images/images_k5/logovinculos.png')" class="btn-img-login-vinculos" alt="Logo Vinculos"></button>
91
+ </div>
92
+
93
+ <div class="ic-Login">
94
+ <div class="ic-Login__container">
95
+ <div class="ic-Login__content">
96
+ <div class="ic-Login__innerContent">
97
+ <div class="ic-Login__header" style="max-width: 60%; margin-left: 27%;">
98
+ <div class="ic-Login-header__logo">
99
+ <img alt="Explora K5" style="max-width: 75%;" src="https://explorak5.espol.edu.ec/accounts/2/files/27/download?verifier=ptUlRoCsAAAu6FzgMPHeVcNlG7C38fqPE3c4X2vY">
100
+ </div>
101
+ </div>
102
+ <div class="ic-Login__body">
103
+ <h1 class="ic-Login__title" style="font-family: Quicksand">
104
+ <%= t 'log_out', 'Log Out' %>
105
+ </h1>
106
+ <p class="ic-Login__text" style="font-family: Quicksand; text-align: center">
107
+ <%= t 'details.log_out', 'Are you sure you want to log out of Canvas?' %>
108
+ </p>
109
+ <%= form_tag logout_path, method: :delete do %>
110
+ <div class="ic-Login__actions" style="display: flex; gap: 10%; margin-right: 10%; margin-left: 10%;">
111
+ <div style="display: grid;">
112
+ <button type="submit" class="btn-img-logout" id="Button--logout-confirm" style="background-image: url('/images/images_k5/salir.svg'); background-size: 90px" alt="Cerrar sesión"></button>
113
+ <button type="submit" id="Button--logout-confirm" class="btn-img-logout-text" style="font-family: Quicksand">
114
+ <%= t("Log Out") %>
115
+ </button>
116
+ </div>
117
+ <div style="display: grid;">
118
+ <button class="btn-img-logout" style="background-image:url('/images/images_k5/cancelar.svg'); font-family: Quicksand" alt="Cancelar">
119
+ <%= link_to(t(:cancel, "Cancel"), '/', :class => "ic-Login__link", :style => "color: transparent !important") %>
120
+ </button>
121
+ <button class="btn-img-logout-text" style="font-family: Quicksand">
122
+ <%= link_to(t(:cancel, "Cancel"), '/', :class => "ic-Login__link") %>
123
+ </button>
124
+ </div>
125
+ </div>
126
+ <% end %>
127
+ </div> <!-- end ic-Login__body -->
128
+ </div> <!-- end ic-Login__innerContent -->
129
+ </div> <!-- end ic-Login__content -->
130
+ </div> <!-- end ic-Login__content -->
131
+ </div> <!-- end ic-Login__container -->
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Explorak5CanvasLogin
4
- VERSION = "3.0.0"
4
+ VERSION = "3.2.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: explorak5_canvas_login
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Explorak5
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-24 00:00:00.000000000 Z
11
+ date: 2024-09-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This gem provides a comprehensive solution for implementing login functionality
14
14
  in Ruby applications. Features include user authentication, password management,
@@ -19,7 +19,9 @@ executables: []
19
19
  extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
+ - lib/explorak5_canvas_login/app/views/dashboard/_dashboard_card.html.erb
22
23
  - lib/explorak5_canvas_login/app/views/login/_login_content.html.erb
24
+ - lib/explorak5_canvas_login/app/views/login/_logout_confirm_content.html.erb
23
25
  - lib/explorak5_canvas_login/app/views/navbar/_new_nav_header.html.erb
24
26
  - lib/explorak5_canvas_login/version.rb
25
27
  homepage: https://github.com/kevin523523/explorak5_canvas_login