Skip to content

Commit 9846e7b

Browse files
committed
v.0.8.4
1 parent 6b49302 commit 9846e7b

File tree

17 files changed

+149
-36
lines changed

17 files changed

+149
-36
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,7 @@
108108
- 0.8.3
109109
- Restored Forgotten Umami Integration in settings, added to .env.example
110110
- Restore QRCode Creation and download
111-
- Fixed some minor UI Issues
111+
- Fixed some minor UI Issues
112+
- 0.8.4
113+
- Re-added snapp select and bulk delete
114+
- Fixed some inconsistencies during import, now it import creation date and visits

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN chmod +x /usr/local/bin/entrypoint.sh
2525
ENTRYPOINT ["entrypoint.sh"]
2626

2727
ENV APPNAME="Snapp.li"
28-
ENV PUBLIC_SNAPP_VERSION="0.8.3"
28+
ENV PUBLIC_SNAPP_VERSION="0.8.4"
2929
# Expose the port the app runs on
3030
EXPOSE 3000
3131

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "snapp",
3-
"version": "0.8.3",
3+
"version": "0.8.4",
44
"private": true,
55
"scripts": {
66
"dev": "vite dev",

src/lib/i18n/locales/de.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
"cancel": "Abbrechen",
146146
"sure-ask": "Sind Sie sicher?",
147147
"continue": "Weiter",
148+
"delete": "Löschen",
148149
"total": "Gesamt",
149150
"max-page-reached": "Keine weiteren Elemente verfügbar.",
150151
"save": "Speichern",

src/lib/i18n/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
"cancel": "Cancel",
146146
"sure-ask": "Are you sure?",
147147
"continue": "Continue",
148+
"delete": "Delete",
148149
"total": "Total",
149150
"max-page-reached": "No more items available.",
150151
"save": "Save",

src/lib/i18n/locales/es.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@
148148
"total": "Total",
149149
"max-page-reached": "No hay más elementos disponibles.",
150150
"save": "Guardar",
151+
"delete": "Eliminar",
151152
"active": "Activo",
152153
"disabled": "Desactivado",
153154
"back": "Volver",

src/lib/i18n/locales/fr.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
"cancel": "Annuler",
146146
"sure-ask": "Êtes-vous sûr ?",
147147
"continue": "Continuer",
148+
"delete":"Suprrimer",
148149
"total": "Total",
149150
"max-page-reached": "Plus d'articles disponibles.",
150151
"save": "Enregistrer",

src/lib/i18n/locales/gl.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@
146146
"sure-ask": "¿Estás seguro?",
147147
"continue": "Continuar",
148148
"total": "Total",
149+
"delete": "Eliminar",
149150
"max-page-reached": "Non hai máis elementos dispoñibles.",
150151
"save": "Gardar",
151152
"active": "Activo",

src/lib/i18n/locales/it.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150
"save": "Salva",
151151
"active": "Attivo",
152152
"disabled": "Disabilitato",
153+
"delete": "Elimina",
153154
"back": "Indietro",
154155
"start": "Inizio",
155156
"end": "Fine",

src/lib/server/db/snapps/create.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const create_snapp = async (snapp: Partial<Snapp>, userId: string, fetch:
2525
if (api_limited && count >= max_snapps) return [null, MAX_SNAPPS_PER_USER] as [null, string];
2626
}
2727

28-
let { original_url, shortcode, notes, secret, expiration, max_usages } = snapp;
28+
let { original_url, hit, shortcode, created, notes, secret, expiration, max_usages } = snapp;
2929

3030
if (!original_url || typeof original_url !== 'string' || original_url.trim() === '')
3131
return [null, SNAPP_ORIGIN_URL_REQUESTED] as [null, string];
@@ -44,12 +44,12 @@ export const create_snapp = async (snapp: Partial<Snapp>, userId: string, fetch:
4444
const exists = await prisma.snapp.count({ where: { shortcode: { startsWith: shortcode } } });
4545
const password_hash = secret
4646
? await hash(secret, {
47-
// recommended minimum parameters
48-
memoryCost: 19456,
49-
timeCost: 2,
50-
outputLen: 32,
51-
parallelism: 1
52-
})
47+
// recommended minimum parameters
48+
memoryCost: 19456,
49+
timeCost: 2,
50+
outputLen: 32,
51+
parallelism: 1
52+
})
5353
: null;
5454

5555
const new_snapp = await prisma.snapp.create({
@@ -60,7 +60,9 @@ export const create_snapp = async (snapp: Partial<Snapp>, userId: string, fetch:
6060
notes,
6161
secret: password_hash,
6262
expiration,
63-
max_usages
63+
max_usages,
64+
created,
65+
hit
6466
}
6567
});
6668

0 commit comments

Comments
 (0)