/** * Copyright (C) 2024 Puter Technologies Inc. * * This file is part of Puter. * * Puter is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published * by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ import UIWindow from './UIWindow.js' async function UIWindowDownloadDirProg(options){ options = options ?? {}; let h = ''; // Loading spinner h +=`circle anim`; h += `

${options.defaultText ?? 'Preparing...'}

`; const el_window = await UIWindow({ title: 'Instant Login!', app: 'instant-login', single_instance: true, icon: null, uid: null, is_dir: false, body_content: h, has_head: false, selectable_body: false, allow_context_menu: false, is_resizable: false, is_droppable: false, init_center: true, allow_native_ctxmenu: false, allow_user_select: false, backdrop: false, width: 460, height: 'auto', dominant: true, show_in_taskbar: false, draggable_body: true, onAppend: function(this_window){ }, window_class: 'window-qr', body_css: { width: 'initial', height: '100px', 'background-color': 'rgb(245 247 249)', 'backdrop-filter': 'blur(3px)', 'display': 'flex', "flex-direction": 'row', 'justify-content': 'center', 'align-items': 'center', } }) return el_window; } export default UIWindowDownloadDirProg