@explorer-1/vue 0.2.83 → 0.2.85

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorer-1/vue",
3
- "version": "0.2.83",
3
+ "version": "0.2.85",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -186,40 +186,42 @@ export default defineComponent({
186
186
  },
187
187
  addTrailingSlash(path: string) {
188
188
  let filteredPath = path
189
- const isFilePath = () => {
190
- const afterLastSlash = path.split('/').pop()
191
- if (afterLastSlash && afterLastSlash.includes('.')) {
192
- return true
193
- }
194
- return false
195
- }
196
- const isQueryPath = path.includes('?')
197
- const isAnchorPath = path.includes('#')
198
- if (
199
- !isQueryPath &&
200
- !isAnchorPath &&
201
- !isFilePath() &&
202
- path !== '/' &&
203
- !path.endsWith('/') &&
204
- !path.startsWith('/preview')
205
- ) {
206
- // add a trailing slash if there isn't one
207
- filteredPath += '/'
208
- } else if (isQueryPath) {
209
- if (!path.includes('/?')) {
210
- // also add a trailing slash to paths with query params
211
- const urlParts = filteredPath.split('?')
212
- const pathWithSlash = `${urlParts[0]}/`
213
- const queryParams = urlParts[1]
214
- filteredPath = pathWithSlash + '?' + queryParams
189
+ if (path && typeof path === 'string') {
190
+ const isFilePath = () => {
191
+ const afterLastSlash = path.split('/').pop()
192
+ if (afterLastSlash && afterLastSlash.includes('.')) {
193
+ return true
194
+ }
195
+ return false
215
196
  }
216
- } else if (isAnchorPath) {
217
- if (!path.includes('/#')) {
218
- // also add a trailing slash to paths with anchors
219
- const urlParts = filteredPath.split('#')
220
- const pathWithSlash = `${urlParts[0]}/`
221
- const anchor = urlParts[1]
222
- filteredPath = pathWithSlash + '#' + anchor
197
+ const isQueryPath = path.includes('?')
198
+ const isAnchorPath = path.includes('#')
199
+ if (
200
+ !isQueryPath &&
201
+ !isAnchorPath &&
202
+ !isFilePath() &&
203
+ path !== '/' &&
204
+ !path.endsWith('/') &&
205
+ !path.startsWith('/preview')
206
+ ) {
207
+ // add a trailing slash if there isn't one
208
+ filteredPath += '/'
209
+ } else if (isQueryPath) {
210
+ if (!path.includes('/?')) {
211
+ // also add a trailing slash to paths with query params
212
+ const urlParts = filteredPath.split('?')
213
+ const pathWithSlash = `${urlParts[0]}/`
214
+ const queryParams = urlParts[1]
215
+ filteredPath = pathWithSlash + '?' + queryParams
216
+ }
217
+ } else if (isAnchorPath) {
218
+ if (!path.includes('/#')) {
219
+ // also add a trailing slash to paths with anchors
220
+ const urlParts = filteredPath.split('#')
221
+ const pathWithSlash = `${urlParts[0]}/`
222
+ const anchor = urlParts[1]
223
+ filteredPath = pathWithSlash + '#' + anchor
224
+ }
223
225
  }
224
226
  }
225
227
  return filteredPath
@@ -41,7 +41,13 @@
41
41
  v-if="themeStore.theme === 'ThemeEdu'"
42
42
  class="-ml-1 pl-2 border-l border-white border-opacity-30 z-20 print:border-black"
43
43
  >
44
- <span class="text-white font-bold text-xl pl-px">Education</span>
44
+ <BaseLink
45
+ class="text-white font-bold text-xl pl-px"
46
+ to="/edubeta/"
47
+ variant="none"
48
+ >
49
+ Education</BaseLink
50
+ >
45
51
  </div>
46
52
  </div>
47
53
  <button
@@ -189,6 +189,7 @@ export default defineComponent({
189
189
  .NavSecondary {
190
190
  top: -1px; // for intersection observer to work
191
191
  @apply sticky z-40 w-full bg-white border-b border-gray-mid border-opacity-0 transition-border-opacity duration-150 edu:duration-300 ease-in;
192
+ @apply hidden;
192
193
  @screen lg {
193
194
  @apply block;
194
195
  }
@@ -3,14 +3,7 @@
3
3
  v-if="hasContent"
4
4
  heading="Past Events"
5
5
  variant="cards"
6
- :link="{
7
- // path: 'events',
8
- query: {
9
- event_status: 'Past events',
10
- sortBy: 'eventStartDateLatest',
11
- page: '1'
12
- }
13
- }"
6
+ link="/events/?page=1&event_status=Past+events&sortBy=eventStartDateLatest"
14
7
  link-title="View all past events"
15
8
  indent="col-1"
16
9
  v-bind="$attrs"
@@ -123,55 +123,58 @@ const { heading, blocks, image, procedures, text } = reactive(props)
123
123
  // Assumes font-size for body element is a constant 16px
124
124
  @return math.div($pxValue, 16) * 1rem;
125
125
  }
126
- .PageEduProcedureSection {
127
- .PageEduProcedureSectionSteps {
128
- counter-reset: step;
129
- }
130
- .PageEduProcedureSectionSingleStep {
131
- li:not(:last-of-type) .BlockStreamfield {
132
- @apply -mb-5;
126
+ .PageEduLessonSection {
127
+ @apply overflow-x-hidden;
128
+ .PageEduProcedureSection {
129
+ .PageEduProcedureSectionSteps {
130
+ counter-reset: step;
133
131
  }
134
- }
135
- ol.PageEduProcedureSectionSingleStep {
136
- @apply list-none;
137
- > li {
138
- @apply relative w-full;
139
- counter-increment: step;
140
- &::before {
141
- @apply relative block w-[45rem] mx-auto h-0 pl-1;
142
- content: counter(step) '. ';
143
- // mimicking .text-body-lg
144
- font-size: pxToRem(18);
145
- line-height: 1.6667;
132
+ .PageEduProcedureSectionSingleStep {
133
+ li:not(:last-of-type) .BlockStreamfield {
134
+ @apply -mb-5;
146
135
  }
147
-
148
- @screen sm {
136
+ }
137
+ ol.PageEduProcedureSectionSingleStep {
138
+ @apply list-none;
139
+ > li {
140
+ @apply relative w-full;
141
+ counter-increment: step;
149
142
  &::before {
150
- @apply w-[47rem];
151
- font-size: pxToRem(19);
143
+ @apply relative block w-[45rem] mx-auto h-0 pl-1;
144
+ content: counter(step) '. ';
145
+ // mimicking .text-body-lg
146
+ font-size: pxToRem(18);
147
+ line-height: 1.6667;
152
148
  }
153
- }
154
- @screen md {
155
- &::before {
156
- @apply w-[51.5rem];
157
- font-size: pxToRem(20);
149
+
150
+ @screen sm {
151
+ &::before {
152
+ @apply w-[47rem];
153
+ font-size: pxToRem(19);
154
+ }
158
155
  }
159
- }
160
- @screen lg {
161
- &::before {
162
- @apply w-[46rem] pl-0;
163
- font-size: pxToRem(21);
156
+ @screen md {
157
+ &::before {
158
+ @apply w-[51.5rem];
159
+ font-size: pxToRem(20);
160
+ }
164
161
  }
165
- }
166
- @screen xl {
167
- &::before {
168
- @apply w-[59rem];
169
- font-size: pxToRem(22);
162
+ @screen lg {
163
+ &::before {
164
+ @apply w-[46rem] pl-0;
165
+ font-size: pxToRem(21);
166
+ }
170
167
  }
171
- }
172
- @screen 2xl {
173
- &::before {
174
- // @apply w-[58.5rem];
168
+ @screen xl {
169
+ &::before {
170
+ @apply w-[59rem];
171
+ font-size: pxToRem(22);
172
+ }
173
+ }
174
+ @screen 2xl {
175
+ &::before {
176
+ // @apply w-[58.5rem];
177
+ }
175
178
  }
176
179
  }
177
180
  }
@@ -172,52 +172,55 @@ const { heading, blocks, image, steps, stepsNumbering, text } = reactive(props)
172
172
  // Assumes font-size for body element is a constant 16px
173
173
  @return math.div($pxValue, 16) * 1rem;
174
174
  }
175
- .PageEduStudentProjectStep {
176
- &:target {
177
- @apply scroll-mt-14;
178
- }
179
- .BlockStreamfield {
180
- div:last-child {
181
- @apply mb-0 #{!important};
175
+ .PageEduStudentProjectSection {
176
+ @apply overflow-x-hidden;
177
+ .PageEduStudentProjectStep {
178
+ &:target {
179
+ @apply scroll-mt-14;
182
180
  }
183
- }
184
- .caption-area {
185
- @apply px-0;
186
- }
187
- .steps-numbering {
188
- // intentionally overriding correction that occurs within ThemeVariantGray
189
- @apply text-jpl-red;
190
- }
191
- .LayoutHelper > div > .BlockText {
192
- .richtext-image {
193
- &.right,
194
- &.left {
195
- @apply lg:max-w-md;
196
- }
197
- &.right {
198
- @apply mr-0;
199
- }
200
- &.left {
201
- @apply ml-0;
181
+ .BlockStreamfield {
182
+ div:last-child {
183
+ @apply mb-0 #{!important};
202
184
  }
203
185
  }
204
- }
205
-
206
- .PageEduStudentProjectStep__fullWidth {
186
+ .caption-area {
187
+ @apply px-0;
188
+ }
189
+ .steps-numbering {
190
+ // intentionally overriding correction that occurs within ThemeVariantGray
191
+ @apply text-jpl-red;
192
+ }
207
193
  .LayoutHelper > div > .BlockText {
208
- p,
209
- li {
210
- @screen lg {
211
- @apply pr-[9rem];
194
+ .richtext-image {
195
+ &.right,
196
+ &.left {
197
+ @apply lg:max-w-md;
198
+ }
199
+ &.right {
200
+ @apply mr-0;
212
201
  }
213
- @screen xl {
214
- @apply pr-[13rem];
202
+ &.left {
203
+ @apply ml-0;
215
204
  }
216
205
  }
217
- table {
206
+ }
207
+
208
+ .PageEduStudentProjectStep__fullWidth {
209
+ .LayoutHelper > div > .BlockText {
218
210
  p,
219
211
  li {
220
- @apply pr-0;
212
+ @screen lg {
213
+ @apply pr-[9rem];
214
+ }
215
+ @screen xl {
216
+ @apply pr-[13rem];
217
+ }
218
+ }
219
+ table {
220
+ p,
221
+ li {
222
+ @apply pr-0;
223
+ }
221
224
  }
222
225
  }
223
226
  }