MCPcopy Create free account
hub / github.com/TQZHR/grok2api / cacheUI

Function cacheUI

app/static/cache/cache.js:86–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84}
85
86function cacheUI() {
87 ui.imgCount = document.getElementById('img-count');
88 ui.imgSize = document.getElementById('img-size');
89 ui.videoCount = document.getElementById('video-count');
90 ui.videoSize = document.getElementById('video-size');
91 ui.onlineCount = document.getElementById('online-count');
92 ui.onlineStatus = document.getElementById('online-status');
93 ui.onlineLastClear = document.getElementById('online-last-clear');
94 ui.accountTableBody = document.getElementById('account-table-body');
95 ui.accountEmpty = document.getElementById('account-empty');
96 ui.selectAll = document.getElementById('select-all');
97 ui.localImageSelectAll = document.getElementById('local-image-select-all');
98 ui.localVideoSelectAll = document.getElementById('local-video-select-all');
99 ui.selectedCount = document.getElementById('selected-count');
100 ui.batchActions = document.getElementById('batch-actions');
101 ui.loadBtn = document.getElementById('btn-load-stats');
102 ui.deleteBtn = document.getElementById('btn-delete-assets');
103 ui.localCacheLists = document.getElementById('local-cache-lists');
104 ui.localImageList = document.getElementById('local-image-list');
105 ui.localVideoList = document.getElementById('local-video-list');
106 ui.localImageBody = document.getElementById('local-image-body');
107 ui.localVideoBody = document.getElementById('local-video-body');
108 ui.cacheCards = document.querySelectorAll('.cache-card');
109 ui.onlineAssetsTable = document.getElementById('online-assets-table');
110 ui.batchProgress = document.getElementById('batch-progress');
111 ui.batchProgressText = document.getElementById('batch-progress-text');
112 ui.pauseActionBtn = document.getElementById('btn-pause-action');
113 ui.stopActionBtn = document.getElementById('btn-stop-action');
114 ui.failureDetailsBtn = document.getElementById('btn-failure-details');
115 ui.confirmDialog = document.getElementById('confirm-dialog');
116 ui.confirmMessage = document.getElementById('confirm-message');
117 ui.confirmOk = document.getElementById('confirm-ok');
118 ui.confirmCancel = document.getElementById('confirm-cancel');
119 ui.failureDialog = document.getElementById('failure-dialog');
120 ui.failureList = document.getElementById('failure-list');
121 ui.failureClose = document.getElementById('failure-close');
122 ui.failureRetry = document.getElementById('failure-retry');
123}
124
125function escapeHtml(str) {
126 return String(str || '')

Callers 2

initFunction · 0.85
ensureUIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected