diff --git a/src/gui/src/UI/PuterDialog.js b/src/gui/src/UI/PuterDialog.js deleted file mode 100644 index 18af7fb5c..000000000 --- a/src/gui/src/UI/PuterDialog.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Copyright (C) 2024-present 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 PuterDialog (options) { - return new Promise(async (resolve) => { - let h = ''; - h += `
- -

This website uses Puter to bring you safe, secure, and private AI and Cloud features.

-
- - -
-

${i18n('powered_by_puter_js', [], false)}

-

${i18n('tos_fineprint')}

-
`; - - const el_window = await UIWindow({ - title: 'Upload', - icon: window.icons['app-icon-uploader.svg'], - uid: null, - is_dir: false, - body_content: h, - has_head: false, - selectable_body: false, - draggable_body: true, - allow_context_menu: false, - is_resizable: false, - is_droppable: false, - init_center: true, - allow_native_ctxmenu: false, - allow_user_select: false, - window_class: 'window-puter-dialog window-cover-page', - width: '100%', - top: '0', - dominant: true, - window_css: { - height: '100%', - width: '100%', - top: '0 !important', - left: '0 !important', - }, - body_css: { - padding: '22px', - width: 'initial', - 'background-color': 'rgba(231, 238, 245, .95)', - 'backdrop-filter': 'blur(3px)', - }, - }); - - $(el_window).find('#launch-auth-popup').on('click submit', function (e) { - $(el_window).close(); - resolve(true); - }); - - $(el_window).find('#launch-auth-popup-cancel').on('click submit', function (e) { - $(el_window).close(); - resolve(false); - }); - }); -} -// export as default -export default PuterDialog; diff --git a/src/gui/src/services/ExportRegistrantService.js b/src/gui/src/services/ExportRegistrantService.js deleted file mode 100644 index 1fde6afca..000000000 --- a/src/gui/src/services/ExportRegistrantService.js +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2024-present 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 Spinner from '../UI/Components/Spinner'; -import { Service } from '../definitions'; - -/** - * This class exists to keep exports to the service script API separate - * from the service where exports are registered. This will make it easier - * to change how it works in the future. - */ -export class ExportRegistrantService extends Service { - _init () { - console.log(Spinner); // import gets optimized out if we don't do this - } -}