Skip to content

Commit

Permalink
fix(storefront): BCTHEME-1038 Remove adminBar (#2191)
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-vlad-dlogush authored Apr 8, 2022
1 parent 6719254 commit f77c1f6
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 348 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Draft
- Remove adminBar. [#2191](https://github.com/bigcommerce/cornerstone/issues/2191)
- When price list price is set for currency, the cart does not respect product's price.[#2190](https://github.com/bigcommerce/cornerstone/issues/2190)

## 6.3.0 (03-11-2022)
Expand Down
6 changes: 1 addition & 5 deletions assets/js/theme/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,13 @@ import foundation from './global/foundation';
import quickView from './global/quick-view';
import cartPreview from './global/cart-preview';
import privacyCookieNotification from './global/cookieNotification';
import adminBar from './global/adminBar';
import carousel from './common/carousel';
import loadingProgressBar from './global/loading-progress-bar';
import svgInjector from './global/svg-injector';

export default class Global extends PageManager {
onReady() {
const {
channelId, cartId, productId, categoryId, secureBaseUrl, maintenanceModeSettings, adminBarLanguage,
} = this.context;
const { cartId, secureBaseUrl } = this.context;
cartPreview(secureBaseUrl, cartId);
quickSearch();
currencySelector(cartId);
Expand All @@ -30,7 +27,6 @@ export default class Global extends PageManager {
menu();
mobileMenuToggle();
privacyCookieNotification();
adminBar(secureBaseUrl, channelId, maintenanceModeSettings, JSON.parse(adminBarLanguage), productId, categoryId);
loadingProgressBar();
svgInjector();
}
Expand Down
104 changes: 0 additions & 104 deletions assets/js/theme/global/adminBar.js

This file was deleted.

3 changes: 0 additions & 3 deletions assets/scss/components/_components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,6 @@
// Preview Cart
@import "stencil/previewCart/component";

// Maintenance Notice
@import "stencil/adminBar/component";

// Cookie Warning
@import "stencil/cookie/component";

Expand Down
210 changes: 0 additions & 210 deletions assets/scss/components/stencil/adminBar/_adminBar.scss

This file was deleted.

7 changes: 0 additions & 7 deletions assets/scss/components/stencil/adminBar/_component.scss

This file was deleted.

8 changes: 0 additions & 8 deletions assets/scss/settings/stencil/maintenanceNotice/_settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,3 @@ $maintenanceNotice-z-index: zIndex("highest");

$maintenanceNotice-header-font-family: stencilFontFamily("headings-font");
$maintenanceNotice-header-margin: 0 0 spacing("half");

$adminBar-height: 46px;
$adminBar-color: color("whites", "bright");
$adminBar-logo-color: #273a8a;
$adminBar-contentLink-color: #3e67f8;
$adminBar-contentLink-hover-color: #f0f3fe;
$adminBar-tooltip-bg-backgroundColor: #313440;
$adminBar-text-color: #626568;
7 changes: 0 additions & 7 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -900,13 +900,6 @@
"maintenance": {
"down": "Down for Maintenance"
},
"admin": {
"maintenance_header": "Your store is down for maintenance.",
"maintenance_tooltip": "Only administrators can view the store at the moment. Visit your control panel settings page to disable maintenance mode.",
"maintenance_showstore_link": "Click here to see what your visitors will see.",
"prelaunch_header": "Your storefront is private. Share your site with preview code:",
"page_builder_link": "Design this page in Page Builder"
},
"carousel": {
"arrow_and_dot_aria_label": "Go to slide [SLIDE_NUMBER] of [SLIDES_QUANTITY]",
"active_dot_aria_label": "active",
Expand Down
Loading

0 comments on commit f77c1f6

Please sign in to comment.