Skip to content

Commit

Permalink
[Web UI]: Convert History to new overrides (#26879)
Browse files Browse the repository at this point in the history
  • Loading branch information
fallaciousreasoning authored Dec 5, 2024
1 parent babfcfe commit c77e3e1
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 123 deletions.
17 changes: 0 additions & 17 deletions browser/resources/history/BUILD.gn

This file was deleted.

5 changes: 0 additions & 5 deletions browser/resources/history/brave_history_item.html

This file was deleted.

14 changes: 0 additions & 14 deletions browser/resources/history/brave_history_item.ts

This file was deleted.

8 changes: 0 additions & 8 deletions browser/resources/history/brave_overrides/index.ts

This file was deleted.

26 changes: 0 additions & 26 deletions browser/resources/history/sources.gni

This file was deleted.

1 change: 0 additions & 1 deletion build/config/brave_build.gni
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import("//brave/brave_repack_locales.gni")
import("//brave/browser/extensions/resources.gni")
import("//brave/browser/resources/bookmarks/sources.gni")
import("//brave/browser/resources/extensions/sources.gni")
import("//brave/browser/resources/history/sources.gni")
import("//brave/browser/resources/settings/sources.gni")
import("//brave/browser/ui/color/sources.gni")
import("//brave/build/mac/config.gni")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.

// @ts-nocheck TODO(petemill): Define types and remove ts-nocheck

import {RegisterStyleOverride} from 'chrome://resources/brave/polymer_overriding.js'
import {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js'

Expand All @@ -13,8 +11,10 @@ RegisterStyleOverride(
html`
<style>
#tabs-content, #tabs-content>* {
height: 100%;
height: 100%;
}
</style>
`
)

export * from './app-chromium.js'
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.

import {RegisterStyleOverride} from 'chrome://resources/brave/polymer_overriding.js'
import {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js'
import { RegisterStyleOverride } from 'chrome://resources/brave/polymer_overriding.js'
import { html } from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js'

RegisterStyleOverride(
'history-item',
Expand All @@ -14,6 +14,12 @@ RegisterStyleOverride(
font-size: 13px;
font-weight: 400;
}
#menu-button {
transform: rotate(90deg) !important;
}
</style>
`
)

export * from './history_item-chromium.js'
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Copyright (c) 2022 The Brave Authors. All rights reserved.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// you can obtain one at https://mozilla.org/MPL/2.0/.

// @ts-nocheck TODO(petemill): Define types and remove ts-nocheck
// You can obtain one at https://mozilla.org/MPL/2.0/.

import {RegisterStyleOverride} from 'chrome://resources/brave/polymer_overriding.js'
import {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js'
Expand Down Expand Up @@ -39,3 +37,5 @@ RegisterStyleOverride(
</style>
`
)

export * from './side_bar-chromium.js'
10 changes: 0 additions & 10 deletions patches/chrome-browser-resources-history-BUILD.gn.patch

This file was deleted.

12 changes: 0 additions & 12 deletions patches/chrome-browser-resources-history-history.ts.patch

This file was deleted.

10 changes: 0 additions & 10 deletions patches/chrome-browser-resources-history-history_item.html.patch

This file was deleted.

12 changes: 0 additions & 12 deletions patches/chrome-browser-resources-history-history_item.ts.patch

This file was deleted.

0 comments on commit c77e3e1

Please sign in to comment.