feat: Add 'atas' (minutes/records) management feature, and implement various improvements across UI, backend logic, and authentication.
This commit is contained in:
@@ -10,9 +10,9 @@
|
||||
<script>
|
||||
// Executar IMEDIATAMENTE, de forma síncrona e bloqueante
|
||||
// Não usar IIFE assíncrona, executar direto no escopo global
|
||||
(function() {
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
|
||||
// Implementar BlobBuilder usando Blob moderno
|
||||
function BlobBuilderPolyfill() {
|
||||
if (!(this instanceof BlobBuilderPolyfill)) {
|
||||
@@ -20,8 +20,8 @@
|
||||
}
|
||||
this.parts = [];
|
||||
}
|
||||
|
||||
BlobBuilderPolyfill.prototype.append = function(data) {
|
||||
|
||||
BlobBuilderPolyfill.prototype.append = function (data) {
|
||||
if (data instanceof Blob) {
|
||||
this.parts.push(data);
|
||||
} else if (typeof data === 'string') {
|
||||
@@ -30,11 +30,11 @@
|
||||
this.parts.push(new Blob([data]));
|
||||
}
|
||||
};
|
||||
|
||||
BlobBuilderPolyfill.prototype.getBlob = function(contentType) {
|
||||
|
||||
BlobBuilderPolyfill.prototype.getBlob = function (contentType) {
|
||||
return new Blob(this.parts, contentType ? { type: contentType } : undefined);
|
||||
};
|
||||
|
||||
|
||||
// Função para aplicar o polyfill em todos os contextos possíveis
|
||||
function aplicarPolyfillBlobBuilder() {
|
||||
// Aplicar no window (se disponível)
|
||||
@@ -52,7 +52,7 @@
|
||||
window.MSBlobBuilder = BlobBuilderPolyfill;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Aplicar no globalThis (se disponível)
|
||||
if (typeof globalThis !== 'undefined') {
|
||||
if (!globalThis.BlobBuilder) {
|
||||
@@ -65,7 +65,7 @@
|
||||
globalThis.MozBlobBuilder = BlobBuilderPolyfill;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Aplicar no self (para workers)
|
||||
if (typeof self !== 'undefined') {
|
||||
if (!self.BlobBuilder) {
|
||||
@@ -78,7 +78,7 @@
|
||||
self.MozBlobBuilder = BlobBuilderPolyfill;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Aplicar no global (Node.js)
|
||||
if (typeof global !== 'undefined') {
|
||||
if (!global.BlobBuilder) {
|
||||
@@ -92,23 +92,23 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Aplicar imediatamente
|
||||
aplicarPolyfillBlobBuilder();
|
||||
|
||||
|
||||
// Aplicar também quando o DOM estiver pronto (caso window não esteja disponível ainda)
|
||||
if (typeof document !== 'undefined' && document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', aplicarPolyfillBlobBuilder, { once: true });
|
||||
}
|
||||
|
||||
|
||||
// Log apenas se console está disponível
|
||||
if (typeof console !== 'undefined' && console.log) {
|
||||
console.log('✅ Polyfill BlobBuilder adicionado globalmente (via app.html)');
|
||||
}
|
||||
})();
|
||||
|
||||
|
||||
// Aplicar tema padrão imediatamente se não houver tema definido
|
||||
(function() {
|
||||
(function () {
|
||||
if (typeof document !== 'undefined') {
|
||||
var html = document.documentElement;
|
||||
if (!html.getAttribute('data-theme')) {
|
||||
|
||||
Reference in New Issue
Block a user