Skip to content

Commit

Permalink
Merge branch 'develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
AmTryingMyBest authored Nov 27, 2020
2 parents efcf46c + 290617c commit f6697e8
Show file tree
Hide file tree
Showing 95 changed files with 364 additions and 290 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test-and-ship.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ jobs:
npm install -g gulp;
npm install;
- name: List installed dependencies
run: |
npm ls || true;
- name: Run lint tests
if: ${{ matrix.run_lint_tests }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion app/common/auth/register.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div ng-repeat="(error, value) in form.full_name.$error"
ng-show="form.full_name.$dirty"
class="alert error">
<svg class="iconic">
<svg class="iconic" role="img">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/img/iconic-sprite.svg#warning"></use>
</svg>
<p translate="{{'user.valid.full_name.' + error}}" translate-default="{{error}}"></p>
Expand Down
4 changes: 2 additions & 2 deletions app/common/configs/uib-pagination.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</li>
<li ng-if="::directionLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="prev">
<a ng-click="selectPage(page - 1, $event)">
<svg class="iconic">
<svg class="iconic" role="img">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/img/iconic-sprite.svg#chevron-left"></use>
</svg>
<span class="hidden">Previous</span>
Expand All @@ -24,7 +24,7 @@
</li>
<li ng-if="::directionLinks" ng-class="{disabled: noNext()||ngDisabled}" class="next" >
<a ng-click="selectPage(page + 1, $event)">
<svg class="iconic">
<svg class="iconic" role="img">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/img/iconic-sprite.svg#chevron-right"></use>
</svg>
<span class="hidden">Next</span>
Expand Down
4 changes: 2 additions & 2 deletions app/common/directives/add-category.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
ng-disabled="categoryName.length === 0"
ng-click="saveCategory($event);"
>
<svg class="iconic">
<svg class="iconic" role="img">
<use xlink:href="/img/iconic-sprite.svg#check"></use>
</svg>
<span class="hidden" translate="app.add">Add</span>
Expand All @@ -22,7 +22,7 @@
class="button-beta button-flat"
ng-click="showInputToggle()"
>
<svg class="iconic">
<svg class="iconic" role="img">
<use xlink:href="/img/iconic-sprite.svg#trash"></use>
</svg>
<span class="hidden" translate="category.delete">Delete</span>
Expand Down
2 changes: 1 addition & 1 deletion app/common/directives/category-selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</div>
</div>
<span class="form-field-toggle">
<svg class="iconic">
<svg class="iconic" role="img">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/img/iconic-sprite.svg#chevron-bottom"></use>
</svg>
<span translate="nav.more">More</span>
Expand Down
4 changes: 2 additions & 2 deletions app/common/directives/filter-system/filter-searchbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
ng-keyup="detectSubmit($event)"
ng-value="model.q=''"
>
<svg class="iconic" ng-show="!form.q.$viewValue.length">
<svg class="iconic" role="img" ng-show="!form.q.$viewValue.length">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/img/iconic-sprite.svg#magnifying-glass"></use>
</svg>
<svg class="iconic" ng-click="onClear()" ng-show="form.q.$viewValue.length">
<svg class="iconic" role="img" ng-click="onClear()" ng-show="form.q.$viewValue.length">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/img/iconic-sprite.svg#circle-x"></use>
</svg>
</div>
Expand Down
4 changes: 2 additions & 2 deletions app/common/directives/modal-container.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<div ng-show="classVisible" class="modal" style="display: block;">
<div class="modal-window" ng-style="{ top : modalOffset }">
<button class="button-beta button-flat modal-trigger modal-trigger-close" ng-show="showCloseButton" ng-click="closeButtonClicked()">
<svg class="iconic">
<svg class="iconic" role="img">
<!-- TODO: fix icon to be settable -->
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/img/iconic-sprite.svg#x"></use>
</svg>
<span class="hidden" translate>modal.button.close</span>
</button>
<h3 class="modal-title" ng-if="title">
<svg class="iconic" ng-if="icon">
<svg class="iconic" role="img" ng-if="icon">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="{{ icon }}"></use>
</svg>
<span class="label">
Expand Down
4 changes: 2 additions & 2 deletions app/common/directives/modal.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<div ng-show="classVisible" class="modal" style="display: block;">
<div class="modal-window" ng-style="{ top : modalOffset }">
<button class="button-beta button-flat modal-trigger modal-trigger-close" ng-show="showCloseButton" ng-click="closeModal()">
<svg class="iconic">
<svg class="iconic" role="img">
<!-- TODO: fix icon to be settable -->
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/img/iconic-sprite.svg#x"></use>
</svg>
<span class="hidden" translate>modal.button.close</span>
</button>
<h3 class="modal-title" ng-if="title">
<svg class="iconic" ng-if="icon">
<svg class="iconic" role="img" ng-if="icon">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="{{iconPath}}"></use>
</svg>
<span class="label">
Expand Down
2 changes: 1 addition & 1 deletion app/common/directives/mode-bar/mode-bar.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function (
});

ConfigEndpoint.get({id: 'site'}, function (site) {
$scope.canRegister = !site.private;
$scope.canRegister = !site.private && !site.disable_registration;
});
}

Expand Down
16 changes: 8 additions & 8 deletions app/common/directives/mode-bar/mode-bar.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ul class="deployment-menu">
<li ui-sref-active="{ 'active' : 'posts.map' }">
<a ui-sref="posts.map.all" ui-sref-opts="{reload:true}" class="view-map">
<svg class="iconic">
<svg class="iconic" role="img">
<use xlink:href="/img/iconic-sprite.svg#map-marker"></use>
</svg>
<translate>views.map</translate>
Expand All @@ -15,7 +15,7 @@

<li ui-sref-active="active">
<a ui-sref="posts.data" ui-sref-opts="{reload:true}" class="view-data">
<svg class="iconic">
<svg class="iconic" role="img">
<use xlink:href="/img/iconic-sprite.svg#list-rich"></use>
</svg>
<translate>views.data</translate>
Expand All @@ -24,7 +24,7 @@

<li ng-if="isActivityAvailable || hasManageSettingsPermission()" ui-sref-active="active" data-message="customize">
<a ui-sref="activity">
<svg class="iconic">
<svg class="iconic" role="img">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/img/iconic-sprite.svg#pulse"></use>
</svg>
<translate>views.activity</translate>
Expand All @@ -33,15 +33,15 @@

<li>
<button class="more-menu-trigger" ng-class="{ active : moreActive }" ng-click="showMore($event)">
<svg class="iconic">
<svg class="iconic" role="img">
<use xlink:href="/img/iconic-sprite.svg#ellipses"></use>
</svg>
<translate>nav.more</translate>
</button>
<ul>
<li data-message="customize" ng-show="hasManageSettingsPermission()" ng-class="{active: $state.includes('settings')}">
<a ui-sref="settings.list">
<svg class="iconic">
<svg class="iconic" role="img">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/img/iconic-sprite.svg#cog"></use>
</svg>
<translate>nav.settings</translate>
Expand All @@ -66,7 +66,7 @@

<li ng-hide="currentUser">
<button ng-click="login()" data-modal="login">
<svg class="iconic">
<svg class="iconic" role="img">
<use xlink:href="/img/iconic-sprite.svg#account-login"></use>
</svg>
<translate translate="nav.login">Log in</translate>
Expand All @@ -82,7 +82,7 @@

<li ng-show="!currentUser && canRegister">
<button ng-click="register()" data-modal="signup">
<svg class="iconic">
<svg class="iconic" role="img">
<use xlink:href="/img/iconic-sprite.svg#person"></use>
</svg>
<translate translate="nav.register">Sign up</translate>
Expand All @@ -91,7 +91,7 @@

<li ng-show="currentUser">
<button ng-click="logout()" data-modal="login">
<svg class="iconic">
<svg class="iconic" role="img">
<use xlink:href="/img/iconic-sprite.svg#account-logout"></use>
</svg>
<span class="label" translate="nav.logout">Log out</span>
Expand Down
4 changes: 2 additions & 2 deletions app/common/directives/role-selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
ng-class="{ 'checked': !model.role.length }"
>
<label for="add_everyone">
<svg class="iconic">
<svg class="iconic" role="img">
<use xlink:href="/img/iconic-sprite.svg#globe"></use>
</svg>
<input
Expand All @@ -27,7 +27,7 @@
ng-class="{ 'checked': model.role.length }"
>
<label for="add_roles">
<svg class="iconic">
<svg class="iconic" role="img">
<use xlink:href="/img/iconic-sprite.svg#people"></use>
</svg>
<input
Expand Down
2 changes: 2 additions & 0 deletions app/common/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1178,6 +1178,8 @@
"site_language" : "Site language",
"site_private" : "Make this deployment private",
"site_private_desc" : "Enabling this option makes your deployment and it’s data only accessible to registered users with the correct privileges, who must sign in for access",
"site_disable_registration" : "Disable user sign up?",
"site_disable_registration_desc" : "Checking this disables the registration feature. Admins will have to manually add users.",
"select_image" : "Select image",
"saved_settings" : "Deployment settings saved!",
"saved_map_settings" : "Map settings saved!",
Expand Down
2 changes: 1 addition & 1 deletion app/common/notifications/demo-slider.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
ng-if="icon"
ng-class="iconClass"
>
<svg class="iconic">
<svg class="iconic" role="img">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="{{ icon }}"></use>
</svg>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/common/notifications/limit.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p>{{ message }}</p>
<div class="form-field">
<a class="button button-beta button-flat" ng-click="close()" href="/settings/plan" translate>limit.upgrade</a>
<a class="button button-beta button-flat" role="button" ng-click="close()" href="/settings/plan" translate>limit.upgrade</a>
<button class="button-flat message-trigger" ng-click="close()" translate="message.button.dismiss">
Dismiss
</button>
Expand Down
2 changes: 1 addition & 1 deletion app/common/notifications/slider.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
ng-if="icon"
ng-class="iconClass"
>
<svg class="iconic">
<svg class="iconic" role="img">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="{{ icon }}"></use>
</svg>
</div>
Expand Down
9 changes: 5 additions & 4 deletions app/common/user-profile/notifications.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h3 class="listing-heading" ng-if="contacts.length !== 0" translate>notification
ng-class="{'active': contact.active}">
<div class="listing-item-secondary">
<button type="button" class="button-link" ng-click="toggleActive(contact)">
<svg class="iconic">
<svg class="iconic" role="img">
<use xlink:href="/img/iconic-sprite.svg#chevron-bottom"></use>
</svg>
<span class="button-label" translate>contact.configure</span>
Expand Down Expand Up @@ -92,9 +92,10 @@ <h2 class="listing-item-title">
<div class="listing-item-primary">
<h2 class="listing-item-title">
<a class="button button-flat"
role="button"
ng-click="toggleActive(contact)"
translate>
<svg class="iconic">
<svg class="iconic" role="img">
<use xlink:href="/img/iconic-sprite.svg#plus"></use>
</svg>
contact.button.add
Expand Down Expand Up @@ -174,7 +175,7 @@ <h3 class="listing-heading" translate>notification.notifications_heading</h3>
class="listing-item">
<div class="listing-item-secondary">
<button type="button" class="button-link" ng-click="deleteNotification(notification)">
<svg class="iconic">
<svg class="iconic" role="img">
<use xlink:href="/img/iconic-sprite.svg#circle-x"></use>
</svg>
<span class="button-label" translate>notification.button.delete</span>
Expand All @@ -183,7 +184,7 @@ <h3 class="listing-heading" translate>notification.notifications_heading</h3>

<div class="listing-item-primary">
<div class="listing-item-image">
<svg class="iconic">
<svg class="iconic" role="img">
<use xlink:href="/img/iconic-sprite.svg#star"></use>
</svg>
</div>
Expand Down
Loading

0 comments on commit f6697e8

Please sign in to comment.