mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
wip
This commit is contained in:
parent
bfaaa914f1
commit
aae1d194c7
@ -19,7 +19,9 @@
|
||||
|
||||
import UIWindow from '../UIWindow.js'
|
||||
|
||||
async function UIWindowChangeEmail(){
|
||||
async function UIWindowChangeEmail(options){
|
||||
options = options ?? {};
|
||||
|
||||
const internal_id = window.uuidv4();
|
||||
let h = '';
|
||||
h += `<div class="change-email" style="padding: 20px; border-bottom: 1px solid #ced7e1;">`;
|
||||
@ -67,7 +69,8 @@ async function UIWindowChangeEmail(){
|
||||
height: '100%',
|
||||
'background-color': 'rgb(245 247 249)',
|
||||
'backdrop-filter': 'blur(3px)',
|
||||
}
|
||||
},
|
||||
...options.window_options
|
||||
})
|
||||
|
||||
$(el_window).find('.change-email-btn').on('click', function(e){
|
||||
|
@ -63,6 +63,7 @@ async function UIWindowConfirmUserDeletion(options){
|
||||
backgroundColor: 'white',
|
||||
color: 'black',
|
||||
},
|
||||
...options.window_options,
|
||||
});
|
||||
|
||||
$(el_window).find('.generic-close-window-button').on('click', function(){
|
||||
|
@ -332,19 +332,40 @@ async function UIWindowSettings(options){
|
||||
})
|
||||
|
||||
$(el_window).find('.change-password').on('click', function (e) {
|
||||
UIWindowChangePassword();
|
||||
UIWindowChangePassword({
|
||||
window_options:{
|
||||
parent_uuid: $(el_window).attr('data-element_uuid'),
|
||||
disable_parent_window: true,
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
$(el_window).find('.change-email').on('click', function (e) {
|
||||
UIWindowChangeEmail();
|
||||
console.log('change email', $(el_window).attr('data-element_uuid'));
|
||||
UIWindowChangeEmail({
|
||||
window_options:{
|
||||
parent_uuid: $(el_window).attr('data-element_uuid'),
|
||||
disable_parent_window: true,
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
$(el_window).find('.delete-account').on('click', function (e) {
|
||||
UIWindowConfirmUserDeletion();
|
||||
UIWindowConfirmUserDeletion({
|
||||
window_options:{
|
||||
parent_uuid: $(el_window).attr('data-element_uuid'),
|
||||
disable_parent_window: true,
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
$(el_window).find('.change-username').on('click', function (e) {
|
||||
UIWindowChangeUsername();
|
||||
UIWindowChangeUsername({
|
||||
window_options:{
|
||||
parent_uuid: $(el_window).attr('data-element_uuid'),
|
||||
disable_parent_window: true,
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
$(el_window).find('.change-ui-colors').on('click', function (e) {
|
||||
@ -352,7 +373,12 @@ async function UIWindowSettings(options){
|
||||
})
|
||||
|
||||
$(el_window).find('.manage-sessions').on('click', function (e) {
|
||||
UIWindowManageSessions();
|
||||
UIWindowManageSessions({
|
||||
window_options:{
|
||||
parent_uuid: $(el_window).attr('data-element_uuid'),
|
||||
disable_parent_window: true,
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
$(el_window).on('click', '.settings-sidebar-item', function(){
|
||||
|
@ -19,7 +19,9 @@
|
||||
|
||||
import UIWindow from './UIWindow.js'
|
||||
|
||||
async function UIWindowChangePassword(){
|
||||
async function UIWindowChangePassword(options){
|
||||
options = options ?? {};
|
||||
|
||||
const internal_id = window.uuidv4();
|
||||
let h = '';
|
||||
h += `<div class="change-password" style="padding: 20px; border-bottom: 1px solid #ced7e1;">`;
|
||||
@ -77,7 +79,8 @@ async function UIWindowChangePassword(){
|
||||
height: '100%',
|
||||
'background-color': 'rgb(245 247 249)',
|
||||
'backdrop-filter': 'blur(3px)',
|
||||
}
|
||||
},
|
||||
...options.window_options,
|
||||
})
|
||||
|
||||
$(el_window).find('.change-password-btn').on('click', function(e){
|
||||
|
@ -20,7 +20,9 @@
|
||||
import UIWindow from './UIWindow.js'
|
||||
import update_username_in_gui from '../helpers/update_username_in_gui.js'
|
||||
|
||||
async function UIWindowChangeUsername(){
|
||||
async function UIWindowChangeUsername(options){
|
||||
options = options ?? {};
|
||||
|
||||
const internal_id = window.uuidv4();
|
||||
let h = '';
|
||||
h += `<div class="change-username" style="padding: 20px; border-bottom: 1px solid #ced7e1;">`;
|
||||
@ -68,7 +70,8 @@ async function UIWindowChangeUsername(){
|
||||
height: '100%',
|
||||
'background-color': 'rgb(245 247 249)',
|
||||
'backdrop-filter': 'blur(3px)',
|
||||
}
|
||||
},
|
||||
...options.window_options,
|
||||
})
|
||||
|
||||
$(el_window).find('.change-username-btn').on('click', function(e){
|
||||
|
@ -1,7 +1,9 @@
|
||||
import UIAlert from "./UIAlert.js";
|
||||
import UIWindow from "./UIWindow.js";
|
||||
|
||||
const UIWindowManageSessions = async function UIWindowManageSessions () {
|
||||
const UIWindowManageSessions = async function UIWindowManageSessions (options) {
|
||||
options = options ?? {};
|
||||
|
||||
const services = globalThis.services;
|
||||
|
||||
const w = await UIWindow({
|
||||
@ -21,8 +23,7 @@ const UIWindowManageSessions = async function UIWindowManageSessions () {
|
||||
dominant: true,
|
||||
body_content: '',
|
||||
// width: 600,
|
||||
// parent_uuid: options.parent_uuid,
|
||||
// ...options.window_options,
|
||||
...options.window_options,
|
||||
});
|
||||
|
||||
const SessionWidget = ({ session }) => {
|
||||
|
@ -74,7 +74,7 @@ async function UIWindowSessionList(options){
|
||||
'display': 'flex',
|
||||
'flex-direction': 'column',
|
||||
'justify-content': 'center',
|
||||
}
|
||||
},
|
||||
})
|
||||
$(el_window).find('.login-c2a-session-list').on('click', async function(e){
|
||||
const login = await UIWindowLogin({
|
||||
|
Loading…
Reference in New Issue
Block a user