Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #12418 from Wikia/XW-2575
Browse files Browse the repository at this point in the history
XW-2575 | Remove GlobalNavigation extension
  • Loading branch information
hakubo committed Feb 20, 2017
2 parents 7fc4ab7 + 07a241d commit f5731db
Show file tree
Hide file tree
Showing 62 changed files with 27 additions and 3,345 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ public function content( $params ){
$this->debug = "";

// render global and user navigation
$this->header = !empty( $this->wg->EnableDesignSystem ) ?
F::app()->renderView( 'DesignSystemGlobalNavigationService', 'index' ) :
F::app()->renderView( 'GlobalNavigation', 'index' );
$this->header = F::app()->renderView( 'DesignSystemGlobalNavigationService', 'index' );

// Get the config for this app, from the service.
$this->config = AppPromoLandingController::getConfigForWiki( $this->wg->CityId );
Expand Down
51 changes: 1 addition & 50 deletions extensions/wikia/AssetsManager/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2361,54 +2361,6 @@
],
];

/** GlobalNavigation extension */
$config['global_navigation_scss'] = [
'type' => AssetsManager::TYPE_SCSS,
'skin' => [ 'oasis' ],
'assets' => [
'//extensions/wikia/GlobalNavigation/styles/GlobalNavigation.scss',
'//extensions/wikia/GlobalNavigation/styles/GlobalNavigationSearch.scss',
'//extensions/wikia/GlobalNavigation/styles/GlobalNavigationAccountNavigation.scss',
'//extensions/wikia/GlobalNavigation/styles/GlobalNavigationUserLoginDropdown.scss',
'//extensions/wikia/GlobalNavigation/styles/GlobalNavigationNotifications.scss',
'//extensions/wikia/GlobalNavigation/styles/GlobalNavigationInverse.scss',
'//extensions/wikia/GlobalNavigation/styles/GoogleSearchAPI.scss',
'//skins/shared/styles/transparent-out.scss',
],
];

$config['global_navigation_js'] = [
'type' => AssetsManager::TYPE_JS,
'skin' => [ 'oasis' ],
'assets' => [
'#group_delayed_hover_js',
'//resources/wikia/modules/scrollToLink.js',
'//skins/shared/scripts/transparent-out.js',
'//extensions/wikia/GlobalNavigation/scripts/GlobalNavigationDropdownsHandler.js',
'//extensions/wikia/GlobalNavigation/scripts/GlobalNavigationiOSScrollFix.js',
'//extensions/wikia/GlobalNavigation/scripts/GlobalNavigationScrollToLink.js',
'//extensions/wikia/GlobalNavigation/scripts/GlobalNavigationTracking.js',
'//extensions/wikia/GlobalNavigation/scripts/GlobalNavigationLazyLoad.js',
'//extensions/wikia/GlobalNavigation/scripts/GlobalNavigationSearch.js',
'//extensions/wikia/GlobalNavigation/scripts/GoogleSearchAPI.js',
'//extensions/wikia/GlobalNavigation/scripts/SearchSuggestions.js',
'//extensions/wikia/GlobalNavigation/scripts/GlobalNavigationInverseTransition.js',
'//extensions/wikia/GlobalNavigation/scripts/GlobalNavigationAccountNavigation.js',
'//extensions/wikia/GlobalNavigation/scripts/GlobalNavigationExploreWikiaDropdown.js',
'//extensions/wikia/UserLogin/js/UserBaseAjaxForm.js',
'//extensions/wikia/UserLogin/js/UserLoginAjaxForm.js',
'//resources/wikia/libraries/bootstrap/tooltip.js',
],
];

$config['wall_notifications_global_navigation_js'] = [
'type' => AssetsManager::TYPE_JS,
'skin' => [ 'oasis' ],
'assets' => [
'//extensions/wikia/GlobalNavigation/scripts/GlobalNavigationNotifications.js',
],
];

$config['media_gallery_js'] = [
'type' => AssetsManager::TYPE_JS,
'skin' => [ 'oasis' ],
Expand Down Expand Up @@ -3078,8 +3030,7 @@
'type' => AssetsManager::TYPE_SCSS,
'skin' => [ 'oasis' ],
'assets' => [
'//resources/wikia/libraries/headroom/headroom.scss',
'//extensions/wikia/GlobalNavigation/styles/GlobalNavigationNotifications.scss'
'//resources/wikia/libraries/headroom/headroom.scss'
],
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}

&.logged-avatar-placeholder {
background-image: url('/extensions/wikia/GlobalNavigation/images/signin_icon.svg'); /* inline */
background-image: url('/extensions/wikia/CommunityPage/images/signin_icon.svg'); /* inline */
background-position: center;
background-repeat: no-repeat;
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

class DesignSystemGlobalNavigationWallNotificationsService extends GlobalNavigationWallNotificationsController {
protected function addAssets() {
// We need to disable import from parent class
}
protected function addAssets() {}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
@import "GlobalNavigationColors";

@mixin global-nav-chevron {
border: 4px solid transparent;
border-top-color: $global-navigation-text-color;
border-top-color: rgb(101, 110, 120);
content: ' ';
display: inline-block;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
@import 'skins/shared/mixins/calc';
@import 'skins/shared/mixins/clearfix';
@import 'skins/shared/mixins/box-shadow';
@import 'GlobalNavigationColors';
@import 'GlobalNavigationMixins';
@import 'GlobalNavigationVariables';

$black-half-transparent: rgba(0, 0, 0, .6);
$black-transparent: rgba(0, 0, 0, 0);
$border-color: #c7d1d8;
$global-navigation-height: 46px;
$header-bg-color: #092140;
$markasread-bg-color: rgb(9, 35, 68);
$markasread-color: #fff;
Expand All @@ -20,14 +19,12 @@ $time-color: rgba($notifications-header-color, .5);
$notification-bubble-color: rgb(101, 110, 120);
$white-transparent: rgba(255, 255, 255, 0);
$white: #fff;
$wiki-header-bg-color: rgba(113, 133, 148, .2);
$wiki-header-color: #2b54b5;

.notifications-container {
position: relative;

.notifications-entry-point {
background-image: url('/extensions/wikia/GlobalNavigation/images/notifications_icon.svg'); /** inline */
background-image: url('/extensions/wikia/DesignSystem/images/notifications_icon.svg'); /** inline */
background-position: center;
background-size: 19px;
background-repeat: no-repeat;
Expand Down Expand Up @@ -83,7 +80,7 @@ $wiki-header-color: #2b54b5;
}

&.active {
background-color: $global-navigation-background-color;
background-color: rgb(230, 235, 242);;

.notifications-container {
display: block;
Expand Down
3 changes: 3 additions & 0 deletions extensions/wikia/DesignSystem/styles/design-system.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
@import '../bower_components/design-system/dist/scss/wds-variables/index';
@import 'skins/oasis/css/core/breakpoints-variables';

// Legacy notification styles - copied here from original GlobalNavigation extension
@import 'GlobalNavigationNotifications';

// Platform-specific styles for DesignSystem integration
$global-navigation-z-index: 5000101;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,7 @@ public function executeEditPage() {
$this->wordmark = $response->getData();

// render global and user navigation
$this->header = !empty( $this->wg->EnableDesignSystem ) ?
F::app()->renderView( 'DesignSystemGlobalNavigationService', 'index' ) :
F::app()->renderView( 'GlobalNavigation', 'index' );
$this->header = F::app()->renderView( 'DesignSystemGlobalNavigationService', 'index' );

// Editing [foo]
$this->title = $editPage->getEditedTitle();
Expand Down
2 changes: 1 addition & 1 deletion extensions/wikia/EmbeddableDiscussions/styles/avatar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $avatar-size: 42px;
}

&.logged-avatar-placeholder {
background-image: url('/extensions/wikia/GlobalNavigation/images/signin_icon.svg'); /* inline */
background-image: url('/extensions/wikia/CommunityPage/images/signin_icon.svg'); /* inline */
background-position: center;
background-repeat: no-repeat;
}
Expand Down
Loading

0 comments on commit f5731db

Please sign in to comment.