Skip to content

Commit

Permalink
bel was renamed to nanohtml (duckduckgo#2097)
Browse files Browse the repository at this point in the history
  • Loading branch information
sammacbeth authored Jul 7, 2023
1 parent 796a540 commit 2358da9
Show file tree
Hide file tree
Showing 8 changed files with 430 additions and 75 deletions.
487 changes: 421 additions & 66 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@
"@duckduckgo/privacy-grade": "file:packages/privacy-grade",
"@duckduckgo/privacy-reference-tests": "github:duckduckgo/privacy-reference-tests#main",
"@duckduckgo/tracker-surrogates": "github:duckduckgo/tracker-surrogates#1.2.5",
"bel": "6.0.0",
"deep-freeze": "0.0.1",
"dexie": "3.2.4",
"eventemitter2": "6.4.9",
"i18next": "^23.2.7",
"i18next-icu": "^2.3.0",
"is-plain-object": "5.0.0",
"jquery": "3.7.0",
"nanohtml": "^1.10.0",
"normalize.scss": "0.1.0",
"privacy-test-pages": "github:duckduckgo/privacy-test-pages#1.2.1",
"punycode": "2.3.0",
Expand Down
2 changes: 1 addition & 1 deletion shared/js/ui/templates/allowlist-items.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const bel = require('bel')
const bel = require('nanohtml')
const t = window.DDG.base.i18n.t

module.exports = function (list) {
Expand Down
2 changes: 1 addition & 1 deletion shared/js/ui/templates/allowlist.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const bel = require('bel')
const bel = require('nanohtml')
const allowlistItems = require('./allowlist-items.js')
const t = window.DDG.base.i18n.t

Expand Down
2 changes: 1 addition & 1 deletion shared/js/ui/templates/feedback-form.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const bel = require('bel')
const bel = require('nanohtml')
const t = window.DDG.base.i18n.t

module.exports = function () {
Expand Down
4 changes: 2 additions & 2 deletions shared/js/ui/templates/privacy-options.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const bel = require('bel')
const raw = require('bel/raw')
const bel = require('nanohtml')
const raw = require('nanohtml/raw')
const toggleButton = require('./shared/toggle-button.js')
const t = window.DDG.base.i18n.t

Expand Down
2 changes: 1 addition & 1 deletion shared/js/ui/templates/shared/toggle-button.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const bel = require('bel')
const bel = require('nanohtml')

module.exports = function (isActiveBoolean, klass, dataKey) {
// make `klass` and `dataKey` optional:
Expand Down
4 changes: 2 additions & 2 deletions shared/js/ui/templates/user-data.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const bel = require('bel')
const raw = require('bel/raw')
const bel = require('nanohtml')
const raw = require('nanohtml/raw')
const { formatAddress } = require('../../background/email-utils')
const t = window.DDG.base.i18n.t

Expand Down

0 comments on commit 2358da9

Please sign in to comment.