🧙♂️
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Kodo multi-stage docker image ## | |
# build project with typescript | |
FROM node:16.15.1-stretch as ts-compiler | |
WORKDIR /app | |
COPY package*.json ./ | |
COPY tsconfig*.json ./ | |
RUN npm install | |
COPY . ./ | |
RUN npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getTableSize = function(db, dbName){ | |
return new Promise((resolve,reject) => { | |
if (db == null) { | |
return reject(); | |
} | |
var size = 0; | |
db = event.target.result; | |
var transaction = db.transaction([dbName]) | |
.objectStore(dbName) | |
.openCursor(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const createLogger = (backgroundColor, color, enabled = true) => ( | |
message, | |
...args | |
) => { | |
if (!enabled) { | |
return; | |
} | |
console.groupCollapsed( | |
`%c${message}`, | |
`background-color: ${backgroundColor}; color: ${color}; padding: 2px 4px;`, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function () { | |
var results = [], | |
log = [], | |
list = document.styleSheets; | |
if (!list) { | |
return; | |
} | |
for (var i = 0, x = list.length; i < x; i++) { | |
countSheet(list[i]); | |
} |