Compare commits

..

No commits in common. "bd3c59397efdbeef74c234db1b6fa101a1651cfa" and "b450e4d6d1c3e7dfd7bc6932e9b99abbbd5a2df9" have entirely different histories.

12 changed files with 23 additions and 15 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "keanuapp-weblite", "name": "keanuapp-weblite",
"version": "0.1.91", "version": "0.1.90",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View file

@ -1,6 +1,6 @@
{ {
"name": "keanuapp-weblite", "name": "keanuapp-weblite",
"version": "0.1.90", "version": "0.1.89",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View file

@ -189,7 +189,7 @@
}, },
"login": { "login": {
"title": "Login", "title": "Login",
"username": "Username (ex: {'@user:server'})", "username": "Username (ex: marta)",
"password": "Enter Password", "password": "Enter Password",
"username_required": "Username is required", "username_required": "Username is required",
"password_required": "Password is required", "password_required": "Password is required",

View file

@ -113,7 +113,7 @@
"title": "ເຂົ້າສູ່ລະບົບ", "title": "ເຂົ້າສູ່ລະບົບ",
"login": "ເຂົ້າສູ່ລະບົບ", "login": "ເຂົ້າສູ່ລະບົບ",
"accept_terms": "ຍອມຮັບ", "accept_terms": "ຍອມຮັບ",
"username": "ຊື່ຜູ້ໃຊ້ (ex: {'@user:server'})", "username": "ຊື່ຜູ້ໃຊ້ (ex: marta)",
"password": "ປ້ອນລະຫັດຜ່ານ", "password": "ປ້ອນລະຫັດຜ່ານ",
"username_required": "ຕ້ອງມີຊື່ຜູ້ໃຊ້", "username_required": "ຕ້ອງມີຊື່ຜູ້ໃຊ້",
"password_required": "ຕ້ອງມີລະຫັດຜ່ານ", "password_required": "ຕ້ອງມີລະຫັດຜ່ານ",

View file

@ -336,7 +336,7 @@
}, },
"login": { "login": {
"title": "လော့ဂ်အင်ဝင်ရန်", "title": "လော့ဂ်အင်ဝင်ရန်",
"username": "အသုံးပြုသူအမည် (ex: {'@user:server'})", "username": "အသုံးပြုသူအမည် (ex: marta)",
"password": "စကားဝှက် ရိုက်ထည့်ပါ", "password": "စကားဝှက် ရိုက်ထည့်ပါ",
"username_required": "အသုံးပြုသူအမည် လိုအပ်သည်", "username_required": "အသုံးပြုသူအမည် လိုအပ်သည်",
"password_required": "စကားဝှက် လိုအပ်သည်", "password_required": "စကားဝှက် လိုအပ်သည်",

View file

@ -195,7 +195,7 @@
}, },
"login": { "login": {
"title": "Entrar", "title": "Entrar",
"username": "Nome de usuário (ex: {'@user:server'})", "username": "Nome de usuário (ex: marta)",
"password": "Digite a senha", "password": "Digite a senha",
"username_required": "É obrigatório um nome de usuário", "username_required": "É obrigatório um nome de usuário",
"password_required": "A senha é obrigatória", "password_required": "A senha é obrigatória",

View file

@ -318,7 +318,7 @@
}, },
"login": { "login": {
"title": "Entrar", "title": "Entrar",
"username": "Nome de utilizador (ex: {'@user:server'})", "username": "Nome de utilizador (ex: marta)",
"password": "Digite a palavra-passe", "password": "Digite a palavra-passe",
"username_required": "É obrigatório um nome de utilizador", "username_required": "É obrigatório um nome de utilizador",
"password_required": "A palavra-passe é obrigatória", "password_required": "A palavra-passe é obrigatória",

View file

@ -149,7 +149,7 @@
"password_required": "Parola este necesară", "password_required": "Parola este necesară",
"username_required": "Numele de utilizator este necesar", "username_required": "Numele de utilizator este necesar",
"password": "Introduceți Parola", "password": "Introduceți Parola",
"username": "Nume utilizator (ex: {'@user:server'})", "username": "Nume utilizator (ex: marta)",
"title": "Autentificare", "title": "Autentificare",
"create_room": "Înregistrare și creare cameră", "create_room": "Înregistrare și creare cameră",
"or": "SAU", "or": "SAU",

View file

@ -43,8 +43,9 @@
></v-text-field> ></v-text-field>
<div class="text-red" v-if="loadingLoginFlows">Loading login flows...</div> <div class="text-red" v-if="loadingLoginFlows">Loading login flows...</div>
<v-text-field <v-text-field
:disabled="!user.user_id || !showPasswordField" v-show="showPasswordField"
prepend-inner-icon="$vuetify.icons.password" prepend-inner-icon="$vuetify.icons.password"
ref="password" ref="password"
v-model="user.password" v-model="user.password"

View file

@ -101,7 +101,11 @@ const updateSource = () => {
eventAttachment.loadThumbnail().then((url) => { eventAttachment.loadThumbnail().then((url) => {
source.value = url.data; source.value = url.data;
}) })
} else if (isImage.value || isVideo.value || isPDF.value) { } else if (isImage.value) {
eventAttachment.loadSrc().then((url) => {
source.value = url.data;
})
} else if (isVideo.value) {
eventAttachment.loadSrc().then((url) => { eventAttachment.loadSrc().then((url) => {
source.value = url.data; source.value = url.data;
}) })

View file

@ -858,7 +858,7 @@ class Util {
*/ */
makeUniqueAvatar(image) { makeUniqueAvatar(image) {
var list = png.splitChunk(image); var list = png.splitChunk(image);
// append // append
var iend = list.pop(); // remove IEND var iend = list.pop(); // remove IEND
var newchunk = png.createChunk("tEXt","Comment\0Keanu avatar - " + this.randomPass()); var newchunk = png.createChunk("tEXt","Comment\0Keanu avatar - " + this.randomPass());
@ -882,7 +882,7 @@ class Util {
onlyContentUri: false, onlyContentUri: false,
}; };
let data = response.data; let data = response.data;
// If making a system unique avatar, we add a random PNG header in here // If making a system unique avatar, we add a random PNG header in here
if (makeUnique) { if (makeUnique) {
data = this.makeUniqueAvatar(data); data = this.makeUniqueAvatar(data);
@ -1069,7 +1069,7 @@ class Util {
if (match) { if (match) {
// Extract components and convert to numbers. Note that months are 0-indexed. // Extract components and convert to numbers. Note that months are 0-indexed.
const year = parseInt(match[1], 10); const year = parseInt(match[1], 10);
const month = parseInt(match[2], 10) - 1; const month = parseInt(match[2], 10) - 1;
const day = parseInt(match[3], 10); const day = parseInt(match[3], 10);
const hour = parseInt(match[4], 10); const hour = parseInt(match[4], 10);
const minute = parseInt(match[5], 10); const minute = parseInt(match[5], 10);
@ -1139,7 +1139,10 @@ class Util {
const link = document.createElement("a"); const link = document.createElement("a");
link.href = url; link.href = url;
link.target = "_blank"; link.target = "_blank";
link.download = event.getContent().body || this.$t("fallbacks.download_name"); if (!this.isFileTypePDF(event)) {
// PDFs are shown inline, not downloaded
link.download = event.getContent().body || this.$t("fallbacks.download_name");
}
console.log("LINK", link); console.log("LINK", link);
document.body.appendChild(link); document.body.appendChild(link);
link.click(); link.click();

View file

@ -15,7 +15,7 @@ export default {
var _paq = window._paq = window._paq || []; var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */ /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView', ' ', window.location.hostname]); _paq.push(['trackPageView', ' ', window.location.hostname]);
// _paq.push(['enableLinkTracking']); _paq.push(['enableLinkTracking']);
(function() { (function() {
var u="${server}"; var u="${server}";
_paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setTrackerUrl', u+'matomo.php']);