Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
fix: icons for Activity Finder ynorth-projects/openy_activity_finder@6…
Browse files Browse the repository at this point in the history
  • Loading branch information
shuklina authored and podarok committed Apr 26, 2022
1 parent eaf0b11 commit f79fc4f
Show file tree
Hide file tree
Showing 16 changed files with 2,158 additions and 6,803 deletions.
2 changes: 1 addition & 1 deletion openy_activity_finder.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ openy_activity_finder_search:
- core/jquery.cookie

activity_finder_4:
version: 4.0.13
version: 4.0.14
js:
openy_af4_vue_app/dist/activity_finder_4.umd.min.js: { minified: true }
css:
Expand Down
2 changes: 1 addition & 1 deletion openy_af4_vue_app/dist/activity_finder_4.css

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion openy_af4_vue_app/dist/activity_finder_4.umd.min.js

Large diffs are not rendered by default.

8,871 changes: 2,104 additions & 6,767 deletions openy_af4_vue_app/package-lock.json

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion openy_af4_vue_app/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"name": "activity_finder_4",
"version": "0.1.0",
"version": "0.1.1",
"private": true,
"scripts": {
"build": "vue-cli-service build --target lib --formats umd-min --name activity_finder_4 src/main.js",
"dev": "vue-cli-service build --target lib --formats umd-min --name activity_finder_4 src/main.js --watch",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.36",
"@fortawesome/free-solid-svg-icons": "^5.15.4",
"@fortawesome/vue-fontawesome": "^2.0.6",
"axios": "^0.26.0",
"bootstrap": "^4.6.1",
"bootstrap-vue": "^2.21.2",
Expand Down
5 changes: 3 additions & 2 deletions openy_af4_vue_app/src/components/BookmarkIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="bookmark-toggle">
<a role="button" title="Bookmarked items" @click="onClick">
<span v-if="counter > 0" class="counter">{{ counter }}</span>
<i class="fa fa-bookmark"></i>
<font-awesome-icon icon="bookmark" />
</a>
</div>
</template>
Expand Down Expand Up @@ -38,6 +38,7 @@ export default {
}
.bookmark-toggle {
line-height: 50px;
position: fixed;
top: 50%;
margin-top: -25px;
Expand Down Expand Up @@ -73,7 +74,7 @@ export default {
min-width: 24px;
}
.fa {
.fa, .svg-inline--fa {
color: $white;
font-size: 18px;
line-height: 50px;
Expand Down
4 changes: 3 additions & 1 deletion openy_af4_vue_app/src/components/Foldable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<div class="foldable-component">
<div v-b-toggle="collapseId" class="foldable-title">
<span class="left">
<i class="fa fa-chevron-down" aria-hidden="true" />
<font-awesome-icon icon="chevron-down" />
<font-awesome-icon icon="chevron-up" />
<i class="fa fa-chevron-up" aria-hidden="true" />
<span class="title">
<strong>{{ label }}</strong>
Expand Down Expand Up @@ -59,6 +60,7 @@ export default {
display: flex;
align-items: center;
flex: auto;
line-height: 50px;
}
.counter {
Expand Down
3 changes: 2 additions & 1 deletion openy_af4_vue_app/src/components/FoldableInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
</span>
</span>
<span class="right">
<i class="fa fa-chevron-down" aria-hidden="true" />
<font-awesome-icon icon="chevron-down" />
<font-awesome-icon icon="chevron-up" />
<i class="fa fa-chevron-up" aria-hidden="true" />
</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion openy_af4_vue_app/src/components/ResultsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export default {
line-height: 15px;
}
.fa {
.fa, .svg-inline--fa {
font-size: 20px;
color: $af-dark-gray;
margin-right: 10px;
Expand Down
7 changes: 2 additions & 5 deletions openy_af4_vue_app/src/components/WizardBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="controls">
<span class="filters">
<a :class="{ 'no-filters': !filtersCount }" role="button" @click="showFiltersModal()">
<i class="fa fa-filter" />
<font-awesome-icon icon="filter" />
{{ filtersCount | formatPlural('1 Filter', '@count Filters') }}
</a>
</span>
Expand Down Expand Up @@ -39,6 +39,7 @@
</template>

<script>
import FiltersModal from '@/components/modals/Filters.vue'
export default {
Expand Down Expand Up @@ -155,10 +156,6 @@ export default {
.no-filters {
color: $af-dark-gray;
}
.fa-filter {
padding: 0 8px;
}
}
.start-over {
Expand Down
6 changes: 3 additions & 3 deletions openy_af4_vue_app/src/components/filters/SortSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{ option }}
</option>
</select>
<i class="fa fa-chevron-down"></i>
<font-awesome-icon icon="chevron-down" />
</div>
</template>

Expand Down Expand Up @@ -70,11 +70,11 @@ export default {
}
}
.fa {
.fa, .svg-inline--fa {
position: absolute;
right: 0;
font-size: 12px;
padding: 0 14px;
margin: 0 14px;
}
}
</style>
23 changes: 12 additions & 11 deletions openy_af4_vue_app/src/components/modals/ActivityDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<div class="right">
<div class="info-section">
<div v-if="item.dates" class="item-detail dates">
<i class="fa fa-calendar"></i>
<font-awesome-icon icon="calendar" />
<span>
<span class="info">{{ item.dates }}</span>
<br />
Expand All @@ -45,7 +45,7 @@
</div>

<div class="item-detail schedule">
<i class="fa fa-clock fa-clock-o"></i>
<font-awesome-icon icon="clock" />
<span class="schedule-items">
<span
v-for="(schedule, index) in item.schedule"
Expand Down Expand Up @@ -78,7 +78,7 @@
</div>

<div v-if="item.price" class="item-detail price">
<i class="fa fa-money-bill fa-money"></i>
<font-awesome-icon icon="money-bill" />
<span>
<span class="info">{{ item.price }}</span>
</span>
Expand Down Expand Up @@ -115,7 +115,7 @@
title="Add bookmark"
@click="bookmarkItem(age, index)"
>
<i class="fa fa-bookmark"></i>
<font-awesome-icon icon="bookmark" />
</a>
<a
v-else-if="!legacyMode"
Expand All @@ -125,7 +125,7 @@
title="Remove bookmark"
@click="unbookmarkItem(age)"
>
<i class="fa fa-bookmark"></i>
<font-awesome-icon icon="bookmark" />
</a>
</template>
<template v-else-if="buttonsState[index] === 'sentToRegister'">
Expand All @@ -146,7 +146,7 @@
title="Add bookmark"
@click="bookmarkItem(age, index)"
>
<i class="fa fa-bookmark"></i>
<font-awesome-icon icon="bookmark" />
</a>
<a
v-else-if="!legacyMode"
Expand All @@ -156,7 +156,7 @@
title="Remove bookmark"
@click="unbookmarkItem(age)"
>
<i class="fa fa-bookmark"></i>
<font-awesome-icon icon="bookmark" />
</a>
</template>
<template v-else-if="buttonsState[index] === 'itemBookmarked'">
Expand Down Expand Up @@ -466,7 +466,7 @@ export default {
line-height: 15px;
}
.fa {
.fa, .svg-inline--fa {
font-size: 20px;
color: $af-dark-gray;
margin-right: 10px;
Expand Down Expand Up @@ -501,14 +501,15 @@ export default {
.bookmark {
display: inline-block;
line-height: 46px;
width: 50px;
height: 50px;
border-radius: 5px;
text-align: center;
margin-left: 10px;
border: 2px solid $af-blue;
.fa {
.fa, .svg-inline--fa {
color: $af-blue;
font-size: 18px;
line-height: 46px;
Expand All @@ -519,7 +520,7 @@ export default {
border: none;
background-color: $af-green;
.fa {
.fa, .svg-inline--fa {
color: $white;
line-height: 50px;
}
Expand All @@ -539,7 +540,7 @@ export default {
padding: 0 15px 0 20px;
white-space: normal;
.fa {
.fa, .svg-inline--fa {
font-size: 20px;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="bookmark-feature-description">
<div class="top">
<span class="bookmark-icon">
<i class="fa fa-bookmark"></i>
<font-awesome-icon icon="bookmark" />
</span>
<p class="title">{{ 'Now you can bookmark activities!' | t }}</p>
<p>
Expand Down Expand Up @@ -43,14 +43,15 @@ export default {
}
.bookmark-icon {
line-height: 50px;
display: inline-block;
width: 50px;
height: 50px;
border: 2px solid $af-blue;
border-radius: 5px;
margin-bottom: 20px;
.fa {
.fa, .svg-inline--fa {
color: $af-blue;
font-size: 18px;
line-height: 50px;
Expand Down
11 changes: 6 additions & 5 deletions openy_af4_vue_app/src/components/modals/BookmarkedItems.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<Modal id="activity-finder-bookmarked-items" v-model="visible" flyout>
<template v-slot:modal-title>
<i class="fa fa-bookmark"></i>
<font-awesome-icon icon="bookmark" />
<span>{{ 'Bookmarked items' | t }}</span>
</template>
<template>
Expand All @@ -24,7 +24,7 @@
<div class="row">
<div class="col-8 col-xs-8">
<div class="item-detail dates">
<i class="fa fa-calendar"></i>
<font-awesome-icon icon="calendar" />
<span>
<span class="info">{{ item.item.dates }}</span>
<br />
Expand All @@ -33,7 +33,7 @@
</div>

<div class="item-detail schedule">
<i class="fa fa-clock fa-clock-o"></i>
<font-awesome-icon icon="clock" />
<span class="schedule-items">
<span
v-for="(schedule, schedule_index) in item.item.schedule"
Expand Down Expand Up @@ -307,7 +307,7 @@ export default {
line-height: 15px;
}
.fa {
.fa, .svg-inline--fa {
font-size: 20px;
color: $af-dark-gray;
margin-right: 10px;
Expand Down Expand Up @@ -357,6 +357,7 @@ export default {
}
.remove {
line-height: 46px;
display: inline-block;
width: 50px;
height: 50px;
Expand All @@ -365,7 +366,7 @@ export default {
text-align: center;
margin-left: 10px;
.fa {
.fa, .svg-inline--fa {
font-size: 18px;
line-height: 46px;
}
Expand Down
2 changes: 1 addition & 1 deletion openy_af4_vue_app/src/components/modals/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export default {
font-size: 18px;
line-height: 27px;
.fa {
.fa, .svg-inline--fa {
width: 50px;
margin-left: -10px;
text-align: center;
Expand Down
6 changes: 6 additions & 0 deletions openy_af4_vue_app/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ import Vue from 'vue'
import BootstrapVue from 'bootstrap-vue'
import App from '@/App.vue'
import router from '@/router/index.js'
import { library } from '@fortawesome/fontawesome-svg-core'
import { faFilter, faCalendar, faMoneyBill, faClock, faChevronDown, faChevronUp, faBookmark } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'

library.add([faFilter, faCalendar, faMoneyBill, faClock, faChevronDown, faChevronUp, faBookmark])
Vue.component('font-awesome-icon', FontAwesomeIcon)

// Listen to custom event to track events in Google Analytics.
document.addEventListener('openy_activity_finder_event', e => {
Expand Down

0 comments on commit f79fc4f

Please sign in to comment.