checkpoint
This commit is contained in:
@@ -3,11 +3,6 @@
|
||||
"short_name": "ddln",
|
||||
"start_url": "/",
|
||||
"display": "standalone",
|
||||
"display_override": [
|
||||
"window-controls-overlay",
|
||||
"standalone"
|
||||
],
|
||||
|
||||
"id": "b1dbe643-36fc-4419-9448-80f32a1baa1a",
|
||||
"background_color": "#000000",
|
||||
"theme_color": "#000000",
|
||||
|
||||
62
static/db.js
62
static/db.js
@@ -5,8 +5,9 @@
|
||||
// }
|
||||
// Efficiently storing data in indexdb: https://stackoverflow.com/a/62975917
|
||||
const postStoreName = "posts";
|
||||
const tombStoneStoreName = "tombstones";
|
||||
const tombstoneStoreName = "tombstones";
|
||||
const followingStoreName = "following";
|
||||
const profileStoreName = "profiles";
|
||||
let keyBase = "dandelion_posts_v1_";
|
||||
let key = "";
|
||||
let version = 1;
|
||||
@@ -15,28 +16,45 @@ async function upgrade_0to1(db) {
|
||||
postsStore.createIndex("datetimeIndex", "post_timestamp", { unique: false });
|
||||
postsStore.createIndex("postIDIndex", "data.post_id", { unique: true });
|
||||
}
|
||||
// let following = ['b38b623c-c3fa-4351-9cab-50233c99fa4e'];
|
||||
// let profiles = [
|
||||
// {
|
||||
// id: 'b38b623c-c3fa-4351-9cab-50233c99fa4e',
|
||||
// name: 'Robert Anderberg',
|
||||
// handle: 'bobbydigitales',
|
||||
// avatar_image: new ArrayBuffer(1024),
|
||||
// banner_image: new ArrayBuffer(1024),
|
||||
// description: "A very nice person who never does anything wrong.",
|
||||
// }];
|
||||
// let tombstones = ['b38b623c-c3fa-4351-9cab-50233c99fa4e'];
|
||||
async function upgrade_1to2(db) {
|
||||
console.log("Upgrading database from 1 to 2");
|
||||
console.log("Converting all image arraybuffers to Blobs");
|
||||
// TODO convert all images from arraybuffers to blobs
|
||||
let knownUsers = [...(await indexedDB.databases())].map((db) => db.name?.replace('user_', ''));
|
||||
if (knownUsers.length === 0) {
|
||||
return;
|
||||
}
|
||||
for (const userID of knownUsers) {
|
||||
console.log(`Converting images for user ${userID}`);
|
||||
let posts = await getAllData(userID);
|
||||
for (const post of posts) {
|
||||
let image_data = post.data.image_data;
|
||||
if (image_data) {
|
||||
let blob = new Blob([image_data]);
|
||||
post.data.image_data = blob;
|
||||
// TODO get the format of a new post right
|
||||
addData(userID, post);
|
||||
}
|
||||
}
|
||||
}
|
||||
let followingStore = db.createObjectStore(followingStoreName, { keyPath: "id", autoIncrement: true });
|
||||
let profileStore = db.createObjectStore(profileStoreName, { keyPath: "id", autoIncrement: true });
|
||||
let tombstoneStore = db.createObjectStore(tombstoneStoreName, { keyPath: "id", autoIncrement: true });
|
||||
tombstoneStore.createIndex("postIDIndex", "data.post_id", { unique: true });
|
||||
}
|
||||
// async function upgrade_1to2(db: IDBDatabase) {
|
||||
// console.log("Upgrading database from 1 to 2");
|
||||
// console.log("Converting all image arraybuffers to Blobs")
|
||||
// // TODO convert all images from arraybuffers to blobs
|
||||
// let knownUsers = [...(await indexedDB.databases())].map((db) => db.name?.replace('user_', ''));
|
||||
// if (knownUsers.length === 0) {
|
||||
// return;
|
||||
// }
|
||||
// for (const userID of knownUsers as string[]) {
|
||||
// console.log(`Converting images for user ${userID}`)
|
||||
// let posts = await getAllData(userID);
|
||||
// for (const post of posts) {
|
||||
// let image_data = post.data.image_data;
|
||||
// if (image_data) {
|
||||
// let blob = new Blob([image_data as ArrayBuffer]);
|
||||
// post.data.image_data = blob;
|
||||
// // TODO get the format of a new post right
|
||||
// addData(userID, post);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
async function upgrade_2to3(db) {
|
||||
let followingStore = db.createObjectStore(followingStoreName, { keyPath: "id", autoIncrement: true });
|
||||
}
|
||||
@@ -59,7 +77,7 @@ export function openDatabase(userID) {
|
||||
if (!upgradeFunction) {
|
||||
throw new Error(`db: Don't have an upgrade function to go from version ${event.oldVersion} to version ${event.newVersion}`);
|
||||
}
|
||||
debugger;
|
||||
// debugger;
|
||||
await upgradeFunction(db);
|
||||
};
|
||||
request.onsuccess = (event) => {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -36,17 +36,17 @@
|
||||
|
||||
<body>
|
||||
|
||||
<button class="burger-menu">☰</button>
|
||||
<div id="burger-menu-button" class="burger-menu">☰</div>
|
||||
<div class="nav-overlay"></div>
|
||||
|
||||
<div class="flex-container">
|
||||
|
||||
<nav class="nav-container">
|
||||
<nav id="nav-container" class="nav-container">
|
||||
<a class="nav-item profile-pic">
|
||||
<span class="nav-profile" role="img" aria-label="Home"><img class="profile-pic-container"
|
||||
src="https://cdn.bsky.app/img/avatar_thumbnail/plain/did:plc:wobbjvmqx65vou5ipgpgs3wf/bafkreigbpq2unrhkxgisofimgqmiiiplp2ssmdgw6cqsa7i2ogtvlxqzfa@jpeg"></span>
|
||||
</a>
|
||||
<a class="nav-item">
|
||||
<a class="nav-item" id="home-button">
|
||||
<span class="nav-emoji emoji-fill" role="img" aria-label="Home">🏠</span>
|
||||
<span class="nav-label">Home</span>
|
||||
</a>
|
||||
@@ -58,14 +58,14 @@
|
||||
<span class="nav-emoji" role="img" aria-label="Notifications">🔔</span>
|
||||
<span class="nav-label">Notifications</span>
|
||||
</a> -->
|
||||
<a class="nav-item">
|
||||
<a class="nav-item" id="profile-button">
|
||||
<span class="nav-emoji emoji-fill" role="img" aria-label="Profile">👤</span>
|
||||
<span class="nav-label">Profile</span>
|
||||
</a>
|
||||
<a class="nav-item">
|
||||
<!-- <a class="nav-item">
|
||||
<span class="nav-emoji emoji-fill" role="img" aria-label="Settings">⚙️</span>
|
||||
<span class="nav-label">Settings</span>
|
||||
</a>
|
||||
</a> -->
|
||||
<a id="monitor_button" class="nav-item">
|
||||
<span class="nav-emoji" role="img" aria-label="Monitor">🤓</span>
|
||||
<span class="nav-label">Monitor</span>
|
||||
@@ -80,6 +80,8 @@
|
||||
<div id="status"></div>
|
||||
|
||||
<div id="info" style="display:none">
|
||||
<button id="export-button">export</button>
|
||||
|
||||
<div id="profile">
|
||||
<span class="form_label">username:</span><span class="form_field" id="username"
|
||||
contenteditable="true">unnamed</span>
|
||||
@@ -108,7 +110,6 @@
|
||||
<!-- <button id="button_font1" >font1</button>
|
||||
<button id="button_font2" >font2 </button> -->
|
||||
<!-- <button id="import_tweets">import</button> -->
|
||||
<button id="export_button">export</button>
|
||||
<!-- <button id="clear_posts">clear </button> -->
|
||||
<!-- <button id="update_app">check for updates</button> -->
|
||||
<!-- <button id="toggle_dark">light/dark</button> -->
|
||||
@@ -116,8 +117,8 @@
|
||||
|
||||
<textarea cols="60" rows="6" id="textarea_post"></textarea>
|
||||
<div class="right">
|
||||
<label for="file_input" id="file_input_label" class="button button-big">photo</label>
|
||||
<input type="file" id="file_input" accept="image/*" multiple style="display:none">
|
||||
<label for="file-input" id="file-input-label" class="button button-big">photo</label>
|
||||
<input type="file" id="file-input" accept="image/*" multiple style="display:none">
|
||||
|
||||
<!-- <button id="button_add_pic" >🏞️</button> -->
|
||||
<button id="button_post" class="button button-big">post</button>
|
||||
@@ -126,7 +127,7 @@
|
||||
<!-- <div id="torrent-content"></div> -->
|
||||
<div id="content"></div>
|
||||
|
||||
<div id="compose_button" class="compose-button emoji-fill">✏️</div>
|
||||
<div id="compose-button" class="compose-button emoji-fill">✏️</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -221,10 +221,11 @@ iframe {
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
background-color: var(--main-bg-color);
|
||||
border-right: 1px solid rgb(60, 60, 60);
|
||||
/* border-right: 1px solid rgb(60, 60, 60); */
|
||||
/* transition: width 0.3s; */
|
||||
overflow: hidden;
|
||||
width: 150px;
|
||||
width: 130px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.nav-container.collapsed {
|
||||
@@ -259,10 +260,13 @@ iframe {
|
||||
}
|
||||
|
||||
.burger-menu {
|
||||
text-align: center;
|
||||
width: 46px;
|
||||
border-radius: 10px;
|
||||
left: 8px;
|
||||
display: none;
|
||||
position: fixed;
|
||||
left: 16px;
|
||||
top: 16px;
|
||||
top: 0px;
|
||||
font-size: 24px;
|
||||
cursor: pointer;
|
||||
z-index: 1000;
|
||||
@@ -281,17 +285,22 @@ iframe {
|
||||
|
||||
@media (max-width: 700px) {
|
||||
.nav-container {
|
||||
transform: translateX(-100%);
|
||||
z-index: 1000;
|
||||
display: none;
|
||||
/* transform: translateX(-100%); */
|
||||
/* z-index: 1000; */
|
||||
}
|
||||
|
||||
.nav-container.active {
|
||||
transform: translateX(0);
|
||||
position: fixed;
|
||||
left: 0px;
|
||||
display: block;
|
||||
/* transform: translateX(0); */
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.burger-menu {
|
||||
display: block;
|
||||
background-color: var(--main-bg-color);
|
||||
}
|
||||
|
||||
.nav-overlay.active {
|
||||
@@ -329,21 +338,21 @@ iframe {
|
||||
}
|
||||
|
||||
.compose-button {
|
||||
font-size: 48px;
|
||||
font-size: 42px;
|
||||
position: fixed;
|
||||
bottom: 24px;
|
||||
right: 24px;
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
|
||||
background: rgba(87, 87, 255, 0.8);
|
||||
background: rgba(87, 87, 255, 0.5);
|
||||
}
|
||||
|
||||
.compose-button:hover {
|
||||
background-color: rgb(87, 87, 255);
|
||||
}
|
||||
}
|
||||
@@ -385,7 +385,7 @@ class wsConnection {
|
||||
knownUsers = knownUsers
|
||||
.filter(userID => this.shouldSyncUserID(userID))
|
||||
.filter(userID => !this.userBlockList.has(userID))
|
||||
.filter(async (userID) => (await getAllIds(userID)).length > 0); // TODO getting all the IDs is unecessary, replace it with a test to get a single ID.
|
||||
.filter(async (userID) => (await getAllIds(userID)).length > 0); // TODO:EASYOPT getting all the IDs is unecessary, replace it with a test to get a single ID.
|
||||
console.log('Net: Sending known users', knownUsers.map(userID => logID(userID ?? "")));
|
||||
return await this.send({ type: "hello", user_id: this.userID, user_name: app.username, peer_id: this.peerID, peer_name: app.peername, known_users: knownUsers });
|
||||
}
|
||||
@@ -448,7 +448,7 @@ class wsConnection {
|
||||
this.websocket.onopen = async (event) => {
|
||||
log("ws:connected");
|
||||
await this.sendHello();
|
||||
// If we're running as a headless peer, send a hello message every 60 seconds to refresh the posts we have.
|
||||
// If we're running as a headless peer, send a hello message every N seconds to refresh the posts we have.
|
||||
let helloRefreshIntervalPeriod = 120;
|
||||
if (app.isHeadless) {
|
||||
console.log("wsConnection: Setting hello refresh interval to ", helloRefreshIntervalPeriod);
|
||||
@@ -906,29 +906,45 @@ class App {
|
||||
document.querySelector('#qrcode > canvas').classList.add('qrcode_image');
|
||||
this.showLog = true;
|
||||
}
|
||||
button(elementName) {
|
||||
return document.getElementById(elementName);
|
||||
}
|
||||
div(elementName) {
|
||||
return document.getElementById(elementName);
|
||||
}
|
||||
initButtons(userID, posts, registration) {
|
||||
// let font1Button = document.getElementById("button_font1") as HTMLButtonElement;
|
||||
// let font2Button = document.getElementById("button_font2") as HTMLButtonElement;
|
||||
// let importTweetsButton = document.getElementById("import_tweets") as HTMLButtonElement;
|
||||
let exportButton = document.getElementById("export_button");
|
||||
// let toggleDark = document.getElementById('toggle_dark') as HTMLButtonElement;
|
||||
// let clearPostsButton = document.getElementById("clear_posts") as HTMLButtonElement;
|
||||
// let updateApp = document.getElementById("update_app") as HTMLButtonElement;
|
||||
// let ddlnLogoButton = document.getElementById('ddln_logo_button') as HTMLDivElement;
|
||||
let monitorButton = document.getElementById('monitor_button');
|
||||
let composeButton = document.getElementById('compose_button');
|
||||
// let addPic = document.getElementById('button_add_pic') as HTMLDivElement;
|
||||
let filePickerLabel = document.getElementById('file_input_label');
|
||||
let filePicker = document.getElementById('file_input');
|
||||
// let toggleDark = document.getElementById('toggle_dark') as HTMLButtonElement;
|
||||
exportButton.addEventListener('click', async (e) => await this.exportPostsForUser(this.userID));
|
||||
// toggleDark.addEventListener('click', () => {
|
||||
// document.documentElement.style.setProperty('--main-bg-color', 'white');
|
||||
// document.documentElement.style.setProperty('--main-fg-color', 'black');
|
||||
// })
|
||||
let homeButton = this.div('home-button');
|
||||
homeButton.addEventListener('click', e => window.location.href = `${window.location.origin}/`);
|
||||
let profileButton = this.div('profile-button');
|
||||
profileButton.addEventListener('click', e => window.location.href = `${window.location.origin}/user/${this.userID}`);
|
||||
let monitorButton = this.div('monitor_button');
|
||||
monitorButton.addEventListener('click', async () => {
|
||||
navContainer.classList.toggle('active');
|
||||
this.showInfo();
|
||||
});
|
||||
let navContainer = this.div('nav-container');
|
||||
let burgerMenuButton = this.div('burger-menu-button');
|
||||
burgerMenuButton.addEventListener('click', e => navContainer.classList.toggle('active'));
|
||||
let exportButton = this.button("export-button");
|
||||
exportButton.addEventListener('click', async (e) => await this.exportPostsForUser(this.userID));
|
||||
let composeButton = this.div('compose-button');
|
||||
composeButton.addEventListener('click', e => {
|
||||
document.getElementById('compose').style.display = 'block';
|
||||
document.getElementById('textarea_post')?.focus();
|
||||
});
|
||||
let filePicker = document.getElementById('file-input');
|
||||
filePicker?.addEventListener('change', async (event) => {
|
||||
for (let file of filePicker.files) {
|
||||
let buffer = await file.arrayBuffer();
|
||||
@@ -937,6 +953,7 @@ class App {
|
||||
// Reset so that if they pick the same image again, we still get the change event.
|
||||
filePicker.value = '';
|
||||
});
|
||||
let filePickerLabel = document.getElementById('file-input-label');
|
||||
filePickerLabel?.addEventListener('click', () => {
|
||||
console.log("Add pic...");
|
||||
});
|
||||
@@ -983,15 +1000,12 @@ class App {
|
||||
// ddlnLogoButton.addEventListener('click', async () => {
|
||||
// this.showInfo()
|
||||
// });
|
||||
monitorButton.addEventListener('click', async () => {
|
||||
this.showInfo();
|
||||
});
|
||||
}
|
||||
async getPostsForFeed() {
|
||||
// get N posts from each user and sort them by date.
|
||||
// This isn't really going to work very well.
|
||||
// Eventually we'll need a db that only has followed user posts so we can get them chronologically
|
||||
//
|
||||
//
|
||||
let posts = [];
|
||||
for (let followedID of this.following.keys()) {
|
||||
posts = posts.concat(await getData(followedID, new Date(2022, 8), new Date()));
|
||||
@@ -1002,6 +1016,7 @@ class App {
|
||||
return posts;
|
||||
}
|
||||
async loadFollowersFromStorage(userID) {
|
||||
// Rob
|
||||
if (userID === 'b38b623c-c3fa-4351-9cab-50233c99fa4e') {
|
||||
return [
|
||||
'b38b623c-c3fa-4351-9cab-50233c99fa4e',
|
||||
@@ -1012,18 +1027,27 @@ class App {
|
||||
'8f6802be-c3b6-46c1-969c-5f90cbe01479', // Fiona
|
||||
];
|
||||
}
|
||||
// Martin
|
||||
if (userID === '05a495a0-0dd8-4186-94c3-b8309ba6fc4c') {
|
||||
return [
|
||||
'b38b623c-c3fa-4351-9cab-50233c99fa4e',
|
||||
'a0e42390-08b5-4b07-bc2b-787f8e5f1297', // BMO
|
||||
];
|
||||
}
|
||||
// Fiona
|
||||
if (userID === '8f6802be-c3b6-46c1-969c-5f90cbe01479') {
|
||||
return [
|
||||
'b38b623c-c3fa-4351-9cab-50233c99fa4e', // Rob
|
||||
'a0e42390-08b5-4b07-bc2b-787f8e5f1297', // BMO
|
||||
'05a495a0-0dd8-4186-94c3-b8309ba6fc4c', // Martin
|
||||
];
|
||||
}
|
||||
return ['a0e42390-08b5-4b07-bc2b-787f8e5f1297']; // Follow BMO by default :)
|
||||
}
|
||||
async loadPostsFromStorage(userID, postID) {
|
||||
this.timerStart();
|
||||
let posts = [];
|
||||
// if (postID) {
|
||||
// if (postID) {
|
||||
// posts = await gePostForUser(userID, postID);
|
||||
// }
|
||||
posts = await getData(userID, new Date(2022, 8), new Date());
|
||||
@@ -1052,7 +1076,7 @@ class App {
|
||||
// indexedDB.deleteDatabase(`user_${userID}`);
|
||||
// continue;
|
||||
// }
|
||||
console.log(`https://ddln.app/user/${userID}`);
|
||||
console.log(`${document.location.origin}/user/${userID}`);
|
||||
// console.log(`https://ddln.app/${this.username}/${uuidToBase58(userID)}`, userID);
|
||||
}
|
||||
}
|
||||
@@ -1165,7 +1189,7 @@ class App {
|
||||
this.userID = this.getUserID();
|
||||
this.username = this.getUsername();
|
||||
await this.initDB();
|
||||
this.connectURL = `https://${document.location.hostname}/connect/${this.userID}`;
|
||||
this.connectURL = `${document.location.origin}/connect/${this.userID}`;
|
||||
document.getElementById('connectURL').innerHTML = `<a href="${this.connectURL}">connect</a>`;
|
||||
let urlParams = (new URL(window.location.href)).searchParams;
|
||||
if (urlParams.has('log')) {
|
||||
@@ -1358,7 +1382,7 @@ class App {
|
||||
let shareButton = document.createElement('button');
|
||||
shareButton.innerText = 'share';
|
||||
shareButton.onclick = async () => {
|
||||
let shareUrl = `https://${document.location.hostname}/user/${post.author_id}/post/${post.post_id}`;
|
||||
let shareUrl = `${document.location.origin}/user/${post.author_id}/post/${post.post_id}`;
|
||||
await navigator.clipboard.writeText(shareUrl);
|
||||
};
|
||||
let ownPost = post.author_id === this.userID;
|
||||
@@ -1373,7 +1397,7 @@ class App {
|
||||
if (markdown.includes("<iframe") && markdown.includes(`src="https://dotbigbang`)) {
|
||||
markdown = markdown.replace("<iframe", `<iframe style="width:100%;height:50px;display:none" onblur="this.style.display = 'inline';"`);
|
||||
}
|
||||
let userURL = `https://${document.location.hostname}/user/${post.author_id}/`;
|
||||
let userURL = `${document.location.origin}/user/${post.author_id}/`;
|
||||
let postTemplate = `<div>${first ? '' : '<hr>'}
|
||||
<div>
|
||||
<span class='header' title='${timestamp}'><img class="logo" src="/static/favicon.ico"><a class="username" href="${userURL}">@${post.author}</a> -
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"version":3,"file":"webRTC.js","sourceRoot":"","sources":["../src/webRTC.ts"],"names":[],"mappings":";AAAA,MAAM,WAAW;IACf,OAAO,CAAC,MAAa;QACnB,kDAAkD;IACpD,CAAC;IAED,UAAU,CAAC,MAAa;IACxB,CAAC;CACF;AAID,MAAM,cAAc;;AACX,qBAAM,GAAG;IACd,UAAU,EAAE;Q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