1
0
mirror of https://gitlab.com/timvisee/send.git synced 2024-11-09 12:42:44 +01:00

Updated from timvisee/send master

This commit is contained in:
simepy 2023-02-03 14:29:30 +01:00
commit 91773832c1
4 changed files with 3264 additions and 2396 deletions

View File

@ -6,7 +6,7 @@ stages:
# Build Send, run npm tests # Build Send, run npm tests
test: test:
stage: test stage: test
image: "node:15-slim" image: "node:16-slim"
only: only:
- api - api
- branches - branches
@ -27,6 +27,7 @@ test:
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
- sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' - sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
- apt-get update - apt-get update
- apt-get install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils
- apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 --no-install-recommends - apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 --no-install-recommends
script: script:
- npm ci - npm ci

View File

@ -17,6 +17,7 @@ export default class Archive {
constructor(files = [], defaultTimeLimit = 86400, defaultDownloadLimit = 1) { constructor(files = [], defaultTimeLimit = 86400, defaultDownloadLimit = 1) {
this.files = Array.from(files); this.files = Array.from(files);
this.defaultTimeLimit = defaultTimeLimit; this.defaultTimeLimit = defaultTimeLimit;
this.defaultDownloadLimit = defaultDownloadLimit;
this.timeLimit = defaultTimeLimit; this.timeLimit = defaultTimeLimit;
this.dlimit = defaultDownloadLimit; this.dlimit = defaultDownloadLimit;
this.password = null; this.password = null;
@ -76,7 +77,7 @@ export default class Archive {
clear() { clear() {
this.files = []; this.files = [];
this.dlimit = 1; this.dlimit = this.defaultDownloadLimit;
this.timeLimit = this.defaultTimeLimit; this.timeLimit = this.defaultTimeLimit;
this.password = null; this.password = null;
} }

5648
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
{ {
"name": "send", "name": "send",
"description": "File Sharing Experiment", "description": "File Sharing Experiment",
"version": "3.4.21", "version": "3.4.22",
"author": "Mozilla (https://mozilla.org)", "author": "Mozilla (https://mozilla.org)",
"contributors": [ "contributors": [
"Tim Visee <3a4fb3964f@sinenomine.email> (https://timvisee.com)" "Tim Visee <3a4fb3964f@sinenomine.email> (https://timvisee.com)"
@ -98,7 +98,7 @@
"husky": "^3.0.9", "husky": "^3.0.9",
"intl-pluralrules": "^1.3.1", "intl-pluralrules": "^1.3.1",
"lint-staged": "^9.4.2", "lint-staged": "^9.4.2",
"mocha": "^6.2.2", "mocha": "^10.1.0",
"morgan": "^1.9.1", "morgan": "^1.9.1",
"nanobus": "^4.5.0", "nanobus": "^4.5.0",
"nanohtml": "^1.9.0", "nanohtml": "^1.9.0",
@ -141,7 +141,7 @@
"choo": "^7.0.0", "choo": "^7.0.0",
"cldr-core": "^35.1.0", "cldr-core": "^35.1.0",
"configstore": "github:dannycoates/configstore#master", "configstore": "github:dannycoates/configstore#master",
"convict": "^6.2.3", "convict": "^6.2.4",
"convict-format-with-validator": "^6.2.0", "convict-format-with-validator": "^6.2.0",
"double-ended-queue": "^2.1.0-0", "double-ended-queue": "^2.1.0-0",
"express": "^4.17.3", "express": "^4.17.3",