Skip to content

Commit f3e1ddf

Browse files
author
Peter Jaros
committed
Remove (old, half-baked) top nav
1 parent da47e63 commit f3e1ddf

File tree

8 files changed

+1
-163
lines changed

8 files changed

+1
-163
lines changed

resources/assets/css/inner/top-nav.less

Lines changed: 0 additions & 86 deletions
This file was deleted.

resources/assets/css/shared/header.less

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,6 @@
304304
}
305305
}
306306

307-
.head-admin:not(.open) {
308-
margin-top: -@tile - @top-nav-height;
309-
margin-bottom: @top-nav-height;
310-
}
311-
312307
.navbar {
313308

314309
&, .btn, .dropdown-menu > li > a {

resources/assets/css/shared/variables.less

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,12 @@ h6, .h6 { font-size: @fontSizeSmallest !important; } // override Bootstrap - 11
104104
@innerContentPadding: @baseFontSize;
105105
@tile: 70px;
106106

107-
// Navigation
108-
109-
@top-nav-height: 50px;
110-
111107
// Footer
112108

113109
@footerItemSize: 1em;
114110

115111
// z-index
116112

117-
@zindex-top-nav: 902;
118113
@zindex-aside: 901;
119114
@zindex-app-main: 900;
120115

src-cljs/frontend/components/templates/main.cljs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
[frontend.components.footer :as footer]
44
[frontend.components.header :as header]
55
[frontend.components.inspector :as inspector]
6-
[frontend.components.top-nav :as top-nav]
76
[frontend.config :as config]
87
[frontend.models.feature :as feature]
98
[frontend.state :as state]
@@ -25,9 +24,6 @@
2524
;; simple optimzation for real-time updates when the build is running
2625
app-without-container-data (dissoc-in app state/container-data-path)]
2726
[:main.app-main
28-
(when (and inner? logged-in? (feature/enabled? :ui-fp-top-bar))
29-
(om/build top-nav/top-nav app-without-container-data))
30-
3127
(when show-inspector?
3228
;; TODO inspector still needs lots of work. It's slow and it defaults to
3329
;; expanding all datastructures.

src-cljs/frontend/components/top_nav.cljs

Lines changed: 0 additions & 51 deletions
This file was deleted.

src-cljs/frontend/controllers/api.cljs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -309,12 +309,7 @@
309309

310310
(defmethod api-event [:organizations :success]
311311
[target message status {orgs :resp} state]
312-
(let [selectable-orgs (filter-piggieback orgs)
313-
selected (get-in state state/top-nav-selected-org-path)]
314-
(cond-> state
315-
true (assoc-in state/user-organizations-path orgs)
316-
true (assoc-in state/top-nav-orgs-path selectable-orgs)
317-
(not selected) (assoc-in state/top-nav-selected-org-path (first selectable-orgs)))))
312+
(assoc-in state state/user-organizations-path orgs))
318313

319314
(defmethod api-event [:tokens :success]
320315
[target message status args state]

src-cljs/frontend/controllers/controls.cljs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,10 +1404,6 @@
14041404
[_ _ _ state]
14051405
(assoc-in state state/modal-video-id-path nil))
14061406

1407-
(defmethod control-event :top-nav-changed
1408-
[_ _ {:keys [org]} state]
1409-
(assoc-in state state/top-nav-selected-org-path org))
1410-
14111407
(defmethod control-event :change-hamburger-state
14121408
[_ _ _ state]
14131409
(let [hamburger-state (get-in state state/hamburger-menu-path)]

src-cljs/frontend/state.cljs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,6 @@
257257

258258
(def pricing-parallelism-path [:pricing-parallelism])
259259

260-
(def top-nav-orgs-path [:top-nav :orgs])
261-
(def top-nav-selected-org-path [:top-nav :selected-org])
262260
(def hamburger-menu-path [:hamburger-menu])
263261

264262
(def insights-filter-path [:insights :selected-filter])

0 commit comments

Comments
 (0)