explorak5_canvas_login 3.1.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: 9de458ee5b6729260a2ee2f3688a1e26791a96f837ad746ec80b15fa8a7ad3d5
4
- data.tar.gz: b2b37ca16668286f425c2d06167993ecb825fdc996e4da04341686f3e2a4ede6
3
+ metadata.gz: b0d747595ee60e68d49c8917fadb27ae17c318a9526d65ed547ce349e6530f20
4
+ data.tar.gz: d6eddb9622d4811dcfae630a449aa45aceb01db8a59a1ea841f2acd39556d9fd
5
5
  SHA512:
6
- metadata.gz: db74668df7ac9ac30246351664397422eca1f78c867e67ee22ba1b357364532c8dab92e321e82703479b97179dc59596d95dfa310b51632267069adf499fc0ba
7
- data.tar.gz: b8f15099f1a8ddf98b727beb297feef9672b7da58eb6e0557439403aa8554ffe7ef53a0ca88a88d06fd812046b19c9dd2d6cd78d901213854fffa91de49bc3ab
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>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Explorak5CanvasLogin
4
- VERSION = "3.1.0"
4
+ VERSION = "3.2.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: explorak5_canvas_login
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Explorak5
@@ -19,6 +19,7 @@ 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
23
24
  - lib/explorak5_canvas_login/app/views/login/_logout_confirm_content.html.erb
24
25
  - lib/explorak5_canvas_login/app/views/navbar/_new_nav_header.html.erb