Fix some issues.
This commit is contained in:
@@ -121,7 +121,19 @@ apx.privatri.templates.scripts = {
|
|||||||
})(publicKey);
|
})(publicKey);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`${apiUrl}/`);
|
const response = await fetch(`${apiUrl}/${tribe}/${messageObj.thread}`, {
|
||||||
|
method: "POST",
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
"xdays": admin.headers.xdays,
|
||||||
|
"xalias": admin.headers.xalias,
|
||||||
|
"xlang": admin.headers.xlang,
|
||||||
|
"xtribe": admin.headers.xtribe,
|
||||||
|
"xapp": admin.headers.xapp,
|
||||||
|
"xuuid": admin.headers.xuuid
|
||||||
|
},
|
||||||
|
body: JSON.stringify(messageObj)
|
||||||
|
});
|
||||||
|
|
||||||
if (response.ok === false) {
|
if (response.ok === false) {
|
||||||
throw new Error("HTTP error");
|
throw new Error("HTTP error");
|
||||||
@@ -202,9 +214,10 @@ apx.privatri.templates.scripts = {
|
|||||||
const privatriidArray = await getOldestPrivatriids("privatri", "messages");
|
const privatriidArray = await getOldestPrivatriids("privatri", "messages");
|
||||||
|
|
||||||
privatriidArray.forEach(async privatriid => {
|
privatriidArray.forEach(async privatriid => {
|
||||||
if (privatriid.split("_")[0] === uuid) {
|
if (privatriid.thread === uuid) {
|
||||||
aliasesArray = (await apx.indexedDB.get("privatri", "messages", privatriid)).aliases;
|
messageObj = privatriid;
|
||||||
const ownerAlias = (await apx.indexedDB.get("privatri", "messages", privatriid)).owner;
|
aliasesArray = messageObj.aliases;
|
||||||
|
const ownerAlias = messageObj.owner;
|
||||||
|
|
||||||
for (const alias of aliasesArray) {
|
for (const alias of aliasesArray) {
|
||||||
aliasListContainerEl.insertAdjacentHTML("beforeend", await newAlias({
|
aliasListContainerEl.insertAdjacentHTML("beforeend", await newAlias({
|
||||||
@@ -269,8 +282,8 @@ apx.privatri.templates.scripts = {
|
|||||||
let ownerAlias = "";
|
let ownerAlias = "";
|
||||||
|
|
||||||
privatriidArray.forEach(async privatriid => {
|
privatriidArray.forEach(async privatriid => {
|
||||||
if (privatriid.split("_")[0] === uuid) {
|
if (privatriid.thread === uuid) {
|
||||||
messageObj = await apx.indexedDB.get("privatri", "messages", privatriid);
|
messageObj = privatriid;
|
||||||
ownerAlias = messageObj.owner;
|
ownerAlias = messageObj.owner;
|
||||||
|
|
||||||
threadNameInputEl.value = (await apx.crypto.decryptMessage(messageObj.title, privateKey)).data;
|
threadNameInputEl.value = (await apx.crypto.decryptMessage(messageObj.title, privateKey)).data;
|
||||||
|
@@ -314,6 +314,70 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.drawer-side {
|
||||||
|
pointer-events: none;
|
||||||
|
visibility: hidden;
|
||||||
|
position: fixed;
|
||||||
|
inset-inline-start: calc(0.25rem * 0);
|
||||||
|
top: calc(0.25rem * 0);
|
||||||
|
z-index: 10;
|
||||||
|
grid-column-start: 1;
|
||||||
|
grid-row-start: 1;
|
||||||
|
display: grid;
|
||||||
|
width: 100%;
|
||||||
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
||||||
|
grid-template-rows: repeat(1, minmax(0, 1fr));
|
||||||
|
align-items: flex-start;
|
||||||
|
justify-items: start;
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: hidden;
|
||||||
|
overscroll-behavior: contain;
|
||||||
|
opacity: 0%;
|
||||||
|
transition: opacity 0.2s ease-out 0.1s allow-discrete, visibility 0.3s ease-out 0.1s allow-discrete;
|
||||||
|
height: 100vh;
|
||||||
|
height: 100dvh;
|
||||||
|
> .drawer-overlay {
|
||||||
|
position: sticky;
|
||||||
|
top: calc(0.25rem * 0);
|
||||||
|
cursor: pointer;
|
||||||
|
place-self: stretch;
|
||||||
|
background-color: oklch(0% 0 0 / 40%);
|
||||||
|
}
|
||||||
|
> * {
|
||||||
|
grid-column-start: 1;
|
||||||
|
grid-row-start: 1;
|
||||||
|
}
|
||||||
|
> *:not(.drawer-overlay) {
|
||||||
|
will-change: transform;
|
||||||
|
transition: translate 0.3s ease-out;
|
||||||
|
translate: -100%;
|
||||||
|
[dir="rtl"] & {
|
||||||
|
translate: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.drawer-toggle {
|
||||||
|
position: fixed;
|
||||||
|
height: calc(0.25rem * 0);
|
||||||
|
width: calc(0.25rem * 0);
|
||||||
|
appearance: none;
|
||||||
|
opacity: 0%;
|
||||||
|
&:checked {
|
||||||
|
& ~ .drawer-side {
|
||||||
|
pointer-events: auto;
|
||||||
|
visibility: visible;
|
||||||
|
overflow-y: auto;
|
||||||
|
opacity: 100%;
|
||||||
|
& > *:not(.drawer-overlay) {
|
||||||
|
translate: 0%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:focus-visible ~ .drawer-content label.drawer-button {
|
||||||
|
outline: 2px solid;
|
||||||
|
outline-offset: 2px;
|
||||||
|
}
|
||||||
|
}
|
||||||
.tooltip {
|
.tooltip {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -2233,6 +2297,12 @@
|
|||||||
opacity: 20%;
|
opacity: 20%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.drawer {
|
||||||
|
position: relative;
|
||||||
|
display: grid;
|
||||||
|
width: 100%;
|
||||||
|
grid-auto-columns: max-content auto;
|
||||||
|
}
|
||||||
.stats {
|
.stats {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-grid;
|
display: inline-grid;
|
||||||
@@ -2583,6 +2653,11 @@
|
|||||||
grid-row-start: 1;
|
grid-row-start: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.drawer-content {
|
||||||
|
grid-column-start: 2;
|
||||||
|
grid-row-start: 1;
|
||||||
|
min-width: calc(0.25rem * 0);
|
||||||
|
}
|
||||||
.stat-value {
|
.stat-value {
|
||||||
grid-column-start: 1;
|
grid-column-start: 1;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
@@ -3244,6 +3319,9 @@
|
|||||||
.w-64 {
|
.w-64 {
|
||||||
width: calc(var(--spacing) * 64);
|
width: calc(var(--spacing) * 64);
|
||||||
}
|
}
|
||||||
|
.w-80 {
|
||||||
|
width: calc(var(--spacing) * 80);
|
||||||
|
}
|
||||||
.w-100 {
|
.w-100 {
|
||||||
width: calc(var(--spacing) * 100);
|
width: calc(var(--spacing) * 100);
|
||||||
}
|
}
|
||||||
@@ -3271,9 +3349,6 @@
|
|||||||
.max-w-sm {
|
.max-w-sm {
|
||||||
max-width: var(--container-sm);
|
max-width: var(--container-sm);
|
||||||
}
|
}
|
||||||
.min-w-110 {
|
|
||||||
min-width: calc(var(--spacing) * 110);
|
|
||||||
}
|
|
||||||
.min-w-xs {
|
.min-w-xs {
|
||||||
min-width: var(--container-xs);
|
min-width: var(--container-xs);
|
||||||
}
|
}
|
||||||
@@ -3428,6 +3503,9 @@
|
|||||||
margin-block-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)));
|
margin-block-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.gap-x-0 {
|
||||||
|
column-gap: calc(var(--spacing) * 0);
|
||||||
|
}
|
||||||
.gap-x-2 {
|
.gap-x-2 {
|
||||||
column-gap: calc(var(--spacing) * 2);
|
column-gap: calc(var(--spacing) * 2);
|
||||||
}
|
}
|
||||||
@@ -3656,6 +3734,9 @@
|
|||||||
.pr-3 {
|
.pr-3 {
|
||||||
padding-right: calc(var(--spacing) * 3);
|
padding-right: calc(var(--spacing) * 3);
|
||||||
}
|
}
|
||||||
|
.pr-4 {
|
||||||
|
padding-right: calc(var(--spacing) * 4);
|
||||||
|
}
|
||||||
.pr-8 {
|
.pr-8 {
|
||||||
padding-right: calc(var(--spacing) * 8);
|
padding-right: calc(var(--spacing) * 8);
|
||||||
}
|
}
|
||||||
@@ -3665,6 +3746,9 @@
|
|||||||
.pb-4 {
|
.pb-4 {
|
||||||
padding-bottom: calc(var(--spacing) * 4);
|
padding-bottom: calc(var(--spacing) * 4);
|
||||||
}
|
}
|
||||||
|
.pl-2 {
|
||||||
|
padding-left: calc(var(--spacing) * 2);
|
||||||
|
}
|
||||||
.pl-8 {
|
.pl-8 {
|
||||||
padding-left: calc(var(--spacing) * 8);
|
padding-left: calc(var(--spacing) * 8);
|
||||||
}
|
}
|
||||||
@@ -4067,6 +4151,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.hover\:bg-transparent {
|
||||||
|
&:hover {
|
||||||
|
@media (hover: hover) {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.hover\:text-gray-700 {
|
.hover\:text-gray-700 {
|
||||||
&:hover {
|
&:hover {
|
||||||
@media (hover: hover) {
|
@media (hover: hover) {
|
||||||
@@ -4088,6 +4179,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.hover\:shadow-none {
|
||||||
|
&:hover {
|
||||||
|
@media (hover: hover) {
|
||||||
|
--tw-shadow: 0 0 #0000;
|
||||||
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.focus\:outline {
|
.focus\:outline {
|
||||||
&:focus {
|
&:focus {
|
||||||
outline-style: var(--tw-outline-style);
|
outline-style: var(--tw-outline-style);
|
||||||
@@ -4156,6 +4255,26 @@
|
|||||||
border-radius: var(--radius-2xl);
|
border-radius: var(--radius-2xl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.md\:block {
|
||||||
|
@media (width >= 48rem) {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.md\:flex {
|
||||||
|
@media (width >= 48rem) {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.md\:hidden {
|
||||||
|
@media (width >= 48rem) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.md\:min-w-110 {
|
||||||
|
@media (width >= 48rem) {
|
||||||
|
min-width: calc(var(--spacing) * 110);
|
||||||
|
}
|
||||||
|
}
|
||||||
.md\:grid-cols-2 {
|
.md\:grid-cols-2 {
|
||||||
@media (width >= 48rem) {
|
@media (width >= 48rem) {
|
||||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
@@ -4166,6 +4285,21 @@
|
|||||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.md\:gap-x-4 {
|
||||||
|
@media (width >= 48rem) {
|
||||||
|
column-gap: calc(var(--spacing) * 4);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.md\:pr-12 {
|
||||||
|
@media (width >= 48rem) {
|
||||||
|
padding-right: calc(var(--spacing) * 12);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.md\:pl-8 {
|
||||||
|
@media (width >= 48rem) {
|
||||||
|
padding-left: calc(var(--spacing) * 8);
|
||||||
|
}
|
||||||
|
}
|
||||||
.lg\:grid-cols-3 {
|
.lg\:grid-cols-3 {
|
||||||
@media (width >= 64rem) {
|
@media (width >= 64rem) {
|
||||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||||
|
BIN
wwws/admin/src/static/img/icons/privatri.png
Normal file
BIN
wwws/admin/src/static/img/icons/privatri.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
@@ -1,39 +1,27 @@
|
|||||||
{
|
{
|
||||||
"pages": {
|
"pages": {
|
||||||
"apxid": {
|
"privatri": {
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"profils": [
|
"profils": [
|
||||||
"anonymous"
|
"anonymous"
|
||||||
],
|
],
|
||||||
"tpl": {
|
"tpl": {
|
||||||
"apxauthmain": "apxtri/objects/wco/apxauth/main",
|
"privatrimain": "apxtri/objects/wco/privatri/main.mustache",
|
||||||
"apxauthscreensignup": "apxtri/objects/wco/apxauth/screensignup",
|
"privatriAlias": "apxtri/objects/wco/privatri/alias.mustache",
|
||||||
"apxauthscreensignin": "apxtri/objects/wco/apxauth/screensignin",
|
"privatriCreateThread": "apxtri/objects/wco/privatri/createThread.mustache",
|
||||||
"apxauthscreenlogout": "apxtri/objects/wco/apxauth/screenlogout",
|
"privatriEditMessage": "apxtri/objects/wco/privatri/editMessage.mustache",
|
||||||
"apxauthscreenmyworld": "apxtri/objects/wco/apxauth/screenmyworld",
|
"privatriInviteAlias": "apxtri/objects/wco/privatri/inviteAlias.mustache",
|
||||||
"apxauthscreeninformation": "apxtri/objects/wco/apxauth/screeninformation",
|
"privatriMessage": "apxtri/objects/wco/privatri/message.mustache",
|
||||||
"apxauthscreenforgetkey": "apxtri/objects/wco/apxauth/screenforgetkey",
|
"privatriThread": "apxtri/objects/wco/privatri/thread.mustache",
|
||||||
"simplemobnavnavbuttonh": "apxtri/objects/wco/simplemobnav/navbuttonh.mustache",
|
"privatriThreadAliasList": "apxtri/objects/wco/privatri/threadAliasList.mustache",
|
||||||
"simplemobnavnavlist": "apxtri/objects/wco/simplemobnav/navlist.mustache",
|
"privatriThreadSettings": "apxtri/objects/wco/privatri/threadSettings.mustache",
|
||||||
"simplemobnavnavbutton": "apxtri/objects/wco/simplemobnav/navbuttonh.mustache",
|
"privatriToastAlert": "apxtri/objects/wco/privatri/toastAlert.mustache"
|
||||||
"simplemobnavmain": "apxtri/objects/wco/simplemobnav/main.mustache"
|
|
||||||
},
|
},
|
||||||
"tpldata": {
|
"tpldata": {
|
||||||
"apxid_signature_apxauth": "apxtri/objects/wwws/admin/src/tpldata/apxid_signature_apxauth",
|
"privatri_main_privatri": "apxtri/objects/wwws/admin/src/tpldata/privatri_main_privatri"
|
||||||
"apxid_authentification_simplemobnav": "apxtri/objects/wwws/admin/src/tpldata/apxid_authentification_simplemobnav"
|
|
||||||
},
|
},
|
||||||
"schema": [
|
"schema": [],
|
||||||
"apxtri/objects/pagans",
|
"ref": {}
|
||||||
"apxtri/objects/persons"
|
|
||||||
],
|
|
||||||
"ref": {
|
|
||||||
"Checkjson": "apxtri/models/tplstrings/Checkjson",
|
|
||||||
"Notification": "apxtri/models/tplstrings/Notifications",
|
|
||||||
"Middlewares": "apxtri/models/tplstrings/Middlewares",
|
|
||||||
"Odmdb": "apxtri/models/tplstrings/Odmdb",
|
|
||||||
"Pagans": "apxtri/models/tplstrings/Pagans",
|
|
||||||
"Persons": "apxtri/models/tplstrings/Persons"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user