mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
Feat/update tab (#1865)
* implement updates tab for viewing all updates from all marketplaces in one place * remove auto-check-updates * feat: implement updates page (#1888) * feat: implement updates page * chore: comments * better styling in update tab * rework marketplace service (#1891) * rework marketplace service * remove unneeded ? * fix: refactor marketplace to cache requests Co-authored-by: waterplea <alexander@inkin.ru> Co-authored-by: Alex Inkin <alexander@inkin.ru>
This commit is contained in:
committed by
Aiden McClelland
parent
d380cc31fa
commit
26c37ba824
@@ -47,8 +47,9 @@ export * from './types/workspace-config'
|
||||
|
||||
export * from './tokens/relative-url'
|
||||
|
||||
export * from './util/copy-to-clipboard'
|
||||
export * from './util/base-64'
|
||||
export * from './util/copy-to-clipboard'
|
||||
export * from './util/get-new-entries'
|
||||
export * from './util/get-pkg-id'
|
||||
export * from './util/misc.util'
|
||||
export * from './util/rpc.util'
|
||||
|
||||
12
frontend/projects/shared/src/util/get-new-entries.ts
Normal file
12
frontend/projects/shared/src/util/get-new-entries.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export function getNewEntries<T extends Record<any, any>>(prev: T, curr: T): T {
|
||||
return Object.entries(curr).reduce(
|
||||
(result, [key, value]) =>
|
||||
prev[key]
|
||||
? result
|
||||
: {
|
||||
...result,
|
||||
[key]: value,
|
||||
},
|
||||
{} as T,
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user