forked from forgejo/forgejo
Move tributejs to npm/webpack (#11497)
* Move tributejs to npm/webpack - Move vendored bundle to npm and webpack - Rewrote initialization to single function - Restyled it (made it a bit smaller) - Fixed it for arc-green * fix mention * also include emoji on #content * Update web_src/less/_tribute.less Co-authored-by: mrsdizzie <info@mrsdizzie.com> * rewrite to only use one instance of Tribute * refactor * fix copy/paste error Co-authored-by: mrsdizzie <info@mrsdizzie.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
3eb323901c
commit
b02d2c3772
12 changed files with 126 additions and 123 deletions
|
@ -23,3 +23,8 @@ export function isObject(obj) {
|
|||
export function isDarkTheme() {
|
||||
return document.documentElement.classList.contains('theme-arc-green');
|
||||
}
|
||||
|
||||
// removes duplicate elements in an array
|
||||
export function uniq(arr) {
|
||||
return Array.from(new Set(arr));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue