feat(mcp): подготовить сервер и доступ к приёмке
This commit is contained in:
commit
bf3d50e1ff
3835 files changed
+537122
No files matched your search
@@ -0,0 +1,14 @@
|
||||
const STORAGE_PREFIX = "routerlists:release-modal:"
|
||||
|
||||
export function getReleaseModalStorageKey(tag: string): string {
|
||||
return `${STORAGE_PREFIX}${tag}`
|
||||
}
|
||||
|
||||
export function hasSeenReleaseModal(tag: string): boolean {
|
||||
if (typeof window === "undefined") return true
|
||||
return window.localStorage.getItem(getReleaseModalStorageKey(tag)) === "1"
|
||||
}
|
||||
|
||||
export function markReleaseModalSeen(tag: string): void {
|
||||
window.localStorage.setItem(getReleaseModalStorageKey(tag), "1")
|
||||
}
|
||||
Reference in new issue
Block a user