mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 22:20:55 +03:00
Compare commits
44 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c71100c82a | ||
|
|
4f2dd96708 | ||
|
|
d8456c2c51 | ||
|
|
b7324f3a5b | ||
|
|
6890165f67 | ||
|
|
5124572dba | ||
|
|
0c1819bb15 | ||
|
|
906990991e | ||
|
|
48bdf734c5 | ||
|
|
cf63e0e804 | ||
|
|
ec66c2dc4e | ||
|
|
67dfc94ef3 | ||
|
|
f54f3ccaa2 | ||
|
|
a35e2e58a3 | ||
|
|
6ad2885a16 | ||
|
|
70662888b1 | ||
|
|
9f09a79986 | ||
|
|
db64c0467a | ||
|
|
ca52f84aa5 | ||
|
|
6fff664947 | ||
|
|
439ac0ab7c | ||
|
|
dee6b3e9cc | ||
|
|
dc9d072472 | ||
|
|
91773832c1 | ||
|
|
65730db0db | ||
|
|
a86221b1cc | ||
|
|
bcc53f73c6 | ||
|
|
b0444f488b | ||
|
|
70a11e5300 | ||
|
|
f62a99882d | ||
|
|
309c7d63ac | ||
|
|
1d75366f66 | ||
|
|
0a849fb7c6 | ||
|
|
88725df09d | ||
|
|
5a92e7e5e7 | ||
|
|
71541fc2b6 | ||
|
|
c524804c63 | ||
|
|
5b4c0d2540 | ||
|
|
e7f3c91d0b | ||
|
|
8bb198b73e | ||
|
|
9e188bc76c | ||
|
|
1353a54c49 | ||
|
|
4ae007167d | ||
|
|
660f36e584 |
121
.gitlab-ci.yml
121
.gitlab-ci.yml
@@ -1,10 +1,22 @@
|
||||
image: "node:15-slim"
|
||||
|
||||
stages:
|
||||
- test
|
||||
- artifact
|
||||
- release
|
||||
|
||||
# Build Send, run npm tests
|
||||
test:
|
||||
stage: test
|
||||
image: "node:16-slim"
|
||||
only:
|
||||
- api
|
||||
- branches
|
||||
- chat
|
||||
- merge_requests
|
||||
- pushes
|
||||
- schedules
|
||||
- tags
|
||||
- triggers
|
||||
- web
|
||||
before_script:
|
||||
# Install dependencies
|
||||
- apt-get update
|
||||
@@ -15,91 +27,46 @@ before_script:
|
||||
- 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'
|
||||
- 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
|
||||
|
||||
# Build Send, run npm tests
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- npm ci
|
||||
- npm run lint
|
||||
- npm test
|
||||
|
||||
# Build Docker image, export Docker image artifact
|
||||
artifact-docker:
|
||||
stage: artifact
|
||||
image: docker:latest
|
||||
needs: []
|
||||
services:
|
||||
- docker:dind
|
||||
variables:
|
||||
IMG_FILE: "send:git-$CI_COMMIT_SHORT_SHA.tar"
|
||||
IMG_NAME: "send:git-$CI_COMMIT_SHORT_SHA"
|
||||
before_script: []
|
||||
script:
|
||||
- docker build -t $IMG_NAME .
|
||||
- docker image save -o $IMG_FILE $IMG_NAME
|
||||
artifacts:
|
||||
name: artifact-docker
|
||||
paths:
|
||||
- $IMG_FILE
|
||||
expire_in: 1 week
|
||||
|
||||
# Release public Docker image for the master branch
|
||||
release-docker-master:
|
||||
stage: release
|
||||
image: docker:latest
|
||||
dependencies:
|
||||
- artifact-docker
|
||||
services:
|
||||
- docker:dind
|
||||
only:
|
||||
- master
|
||||
variables:
|
||||
IMG_IMPORT_FILE: "send:git-$CI_COMMIT_SHORT_SHA.tar"
|
||||
IMG_IMPORT_NAME: "send:git-$CI_COMMIT_SHORT_SHA"
|
||||
IMG_NAME: "registry.gitlab.com/timvisee/send:master-$CI_COMMIT_SHORT_SHA"
|
||||
before_script: []
|
||||
script:
|
||||
# Login in to registry
|
||||
- 'docker login registry.gitlab.com -u $DOCKER_USER -p $DOCKER_PASS'
|
||||
|
||||
# Load existing, retag for new image images
|
||||
- docker image load -i $IMG_IMPORT_FILE
|
||||
- docker tag $IMG_IMPORT_NAME $IMG_NAME
|
||||
|
||||
# Publish tagged image
|
||||
- docker push $IMG_NAME
|
||||
|
||||
- 'echo "Docker image artifact published, available as:" && echo " docker pull $IMG_NAME"'
|
||||
|
||||
# Release public Docker image for a version tag
|
||||
release-docker:
|
||||
stage: release
|
||||
image: docker:latest
|
||||
dependencies:
|
||||
- artifact-docker
|
||||
services:
|
||||
- docker:dind
|
||||
only:
|
||||
- /^v(\d+\.)*\d+$/
|
||||
variables:
|
||||
IMG_IMPORT_FILE: "send:git-$CI_COMMIT_SHORT_SHA.tar"
|
||||
IMG_IMPORT_NAME: "send:git-$CI_COMMIT_SHORT_SHA"
|
||||
IMG_NAME: "registry.gitlab.com/timvisee/send:$CI_COMMIT_REF_NAME"
|
||||
IMG_NAME_LATEST: "registry.gitlab.com/timvisee/send:latest"
|
||||
before_script: []
|
||||
- api
|
||||
- branches
|
||||
- chat
|
||||
- merge_requests
|
||||
- pushes
|
||||
- schedules
|
||||
- tags
|
||||
- triggers
|
||||
- web
|
||||
script:
|
||||
# Login in to registry
|
||||
- 'docker login registry.gitlab.com -u $DOCKER_USER -p $DOCKER_PASS'
|
||||
|
||||
# Load existing, retag for new image images
|
||||
- docker image load -i $IMG_IMPORT_FILE
|
||||
- docker tag $IMG_IMPORT_NAME $IMG_NAME
|
||||
- docker tag $IMG_IMPORT_NAME $IMG_NAME_LATEST
|
||||
|
||||
# Publish tagged image
|
||||
- docker push $IMG_NAME
|
||||
- docker push $IMG_NAME_LATEST
|
||||
|
||||
- 'echo "Docker image artifact published, available as:" && echo " docker pull $IMG_NAME_LATEST" && echo " docker pull $IMG_NAME"'
|
||||
- docker login "$CI_REGISTRY" -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD"
|
||||
- docker buildx create --name sendBuilder
|
||||
- docker buildx use sendBuilder
|
||||
- |
|
||||
if [ "$CI_PIPELINE_SOURCE" == "merge_request_event" ]; then
|
||||
IMAGE_NAMES="$CI_REGISTRY_IMAGE/mr:$CI_MERGE_REQUEST_IID"
|
||||
elif [ "$CI_COMMIT_TAG" != "" ]; then
|
||||
IMAGE_NAMES="$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG $CI_REGISTRY_IMAGE:latest"
|
||||
else
|
||||
IMAGE_NAMES="$CI_REGISTRY_IMAGE/$CI_COMMIT_BRANCH:$CI_COMMIT_SHORT_SHA"
|
||||
fi
|
||||
- |
|
||||
for image in $IMAGE_NAMES; do
|
||||
docker buildx build --platform linux/amd64,linux/arm64 -t $image . --push
|
||||
done
|
||||
- |
|
||||
echo "Container image pushed. You can pull it with";
|
||||
for image in $IMAGE_NAMES; do
|
||||
echo "docker pull $image"
|
||||
done
|
||||
|
||||
@@ -152,7 +152,7 @@ AWS example using Ubuntu Server `20.04`: [docs/AWS.md](docs/AWS.md)
|
||||
- Web: _this repository_
|
||||
- Command-line: [`ffsend`](https://github.com/timvisee/ffsend)
|
||||
- Android: _see [Android](#android) section_
|
||||
- Thunderbird: [FileLink provider for Send](https://addons.thunderbird.net/en-US/thunderbird/addon/filelink-provider-for-send/)
|
||||
- Thunderbird: [FileLink provider for Send](https://addons.thunderbird.net/thunderbird/addon/filelink-provider-for-send/)
|
||||
|
||||
#### Android
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ export default class Archive {
|
||||
constructor(files = [], defaultTimeLimit = 86400, defaultDownloadLimit = 1) {
|
||||
this.files = Array.from(files);
|
||||
this.defaultTimeLimit = defaultTimeLimit;
|
||||
this.defaultDownloadLimit = defaultDownloadLimit;
|
||||
this.timeLimit = defaultTimeLimit;
|
||||
this.dlimit = defaultDownloadLimit;
|
||||
this.password = null;
|
||||
@@ -76,7 +77,7 @@ export default class Archive {
|
||||
|
||||
clear() {
|
||||
this.files = [];
|
||||
this.dlimit = 1;
|
||||
this.dlimit = this.defaultDownloadLimit;
|
||||
this.timeLimit = this.defaultTimeLimit;
|
||||
this.password = null;
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ function expiryInfo(translate, archive) {
|
||||
}
|
||||
|
||||
function password(state) {
|
||||
const MAX_LENGTH = 32;
|
||||
const MAX_LENGTH = 4096;
|
||||
|
||||
return html`
|
||||
<div class="mb-2 px-1">
|
||||
@@ -486,6 +486,16 @@ module.exports.empty = function(state, emit) {
|
||||
})}
|
||||
</button>
|
||||
`;
|
||||
const warning = state.WEB_UI.UPLOAD_AREA_WARNING_HTML
|
||||
? html`
|
||||
<p
|
||||
class="w-full mt-8 p-2 border-default dark:border-grey-70 rounded-default text-orange-60 bg-yellow-40 text-center leading-normal"
|
||||
>
|
||||
${raw(state.WEB_UI.UPLOAD_AREA_WARNING_HTML)}
|
||||
</p>
|
||||
`
|
||||
: '';
|
||||
|
||||
return html`
|
||||
<send-upload-area
|
||||
class="flex flex-col items-center justify-center border-2 border-dashed border-grey-transparent rounded-default px-6 py-16 h-full w-full dark:border-grey-60"
|
||||
@@ -526,7 +536,7 @@ module.exports.empty = function(state, emit) {
|
||||
>
|
||||
${state.translate('addFilesButton')}
|
||||
</label>
|
||||
${upsell}
|
||||
${upsell} ${warning}
|
||||
</send-upload-area>
|
||||
`;
|
||||
|
||||
@@ -559,6 +569,16 @@ module.exports.preview = function(state, emit) {
|
||||
${archiveDetails(state.translate, archive)}
|
||||
</div>
|
||||
`;
|
||||
const warning = state.WEB_UI.DOWNLOAD_WARNING_HTML
|
||||
? html`
|
||||
<p
|
||||
class="w-full mt-4 p-2 border-default dark:border-grey-70 rounded-default text-orange-60 bg-yellow-40 text-center leading-normal"
|
||||
>
|
||||
${raw(state.WEB_UI.DOWNLOAD_WARNING_HTML)}
|
||||
</p>
|
||||
`
|
||||
: '';
|
||||
|
||||
return html`
|
||||
<send-archive
|
||||
class="flex flex-col max-h-full bg-white p-4 w-full md:w-128 dark:bg-grey-90"
|
||||
@@ -574,6 +594,7 @@ module.exports.preview = function(state, emit) {
|
||||
>
|
||||
${state.translate('downloadButtonLabel')}
|
||||
</button>
|
||||
${warning}
|
||||
</send-archive>
|
||||
`;
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ module.exports = function(state, emit) {
|
||||
class="w-full border-l border-t border-b rounded-l-lg rounded-r-none ${invalid
|
||||
? 'border-red dark:border-red-40'
|
||||
: 'border-grey'} leading-loose px-2 py-1 dark:bg-grey-80"
|
||||
maxlength="32"
|
||||
maxlength="4096"
|
||||
autocomplete="off"
|
||||
placeholder="${state.translate('unlockInputPlaceholder')}"
|
||||
oninput="${inputChanged}"
|
||||
|
||||
@@ -9,6 +9,7 @@ docker pull registry.gitlab.com/timvisee/send:latest
|
||||
docker run -v $PWD/uploads:/uploads -p 1443:1443 \
|
||||
-e 'DETECT_BASE_URL=true' \
|
||||
-e 'REDIS_HOST=localhost' \
|
||||
-e 'FILE_DIR=/uploads' \
|
||||
registry.gitlab.com/timvisee/send:latest
|
||||
```
|
||||
|
||||
@@ -33,7 +34,7 @@ Config options expecting array values (e.g. `EXPIRE_TIMES_SECONDS`, `DOWNLOAD_CO
|
||||
| `PORT` | Port the server will listen on (defaults to `1443`)
|
||||
| `NODE_ENV` | Run in `development` mode (unsafe) or `production` mode (the default)
|
||||
| `SEND_FOOTER_DMCA_URL` | A URL to a contact page for DMCA requests (empty / not shown by default)
|
||||
| `SENTRY_CLIENT`, `SENTRY_DSN` | Sentry Client ID and DNS for error tracking (optional, disabled by default)
|
||||
| `SENTRY_CLIENT`, `SENTRY_DSN` | Sentry Client ID and DSN for error tracking (optional, disabled by default)
|
||||
|
||||
*Note: more options can be found here: https://github.com/timvisee/send/blob/master/server/config.js*
|
||||
|
||||
|
||||
27593
package-lock.json
generated
27593
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "send",
|
||||
"description": "File Sharing Experiment",
|
||||
"version": "3.4.21",
|
||||
"version": "3.4.24",
|
||||
"author": "Mozilla (https://mozilla.org)",
|
||||
"contributors": [
|
||||
"Tim Visee <3a4fb3964f@sinenomine.email> (https://timvisee.com)"
|
||||
@@ -98,7 +98,7 @@
|
||||
"husky": "^3.0.9",
|
||||
"intl-pluralrules": "^1.3.1",
|
||||
"lint-staged": "^9.4.2",
|
||||
"mocha": "^6.2.2",
|
||||
"mocha": "^10.1.0",
|
||||
"morgan": "^1.9.1",
|
||||
"nanobus": "^4.5.0",
|
||||
"nanohtml": "^1.9.0",
|
||||
@@ -141,7 +141,7 @@
|
||||
"choo": "^7.0.0",
|
||||
"cldr-core": "^35.1.0",
|
||||
"configstore": "github:dannycoates/configstore#master",
|
||||
"convict": "^6.2.3",
|
||||
"convict": "^6.2.4",
|
||||
"convict-format-with-validator": "^6.2.0",
|
||||
"double-ended-queue": "^2.1.0-0",
|
||||
"express": "^4.17.3",
|
||||
|
||||
@@ -48,12 +48,12 @@ passwordSetError = Toto heslo nemohlo být nastaveno
|
||||
-send-brand =
|
||||
{ $case ->
|
||||
*[nom] Send
|
||||
[gen] Send
|
||||
[dat] Send
|
||||
[gen] Sendu
|
||||
[dat] Sendu
|
||||
[acc] Send
|
||||
[voc] Send
|
||||
[loc] Send
|
||||
[ins] Send
|
||||
[voc] Sende
|
||||
[loc] Sendu
|
||||
[ins] Sendem
|
||||
}
|
||||
-send-short-brand =
|
||||
{ $case ->
|
||||
@@ -86,7 +86,7 @@ passwordSetError = Toto heslo nemohlo být nastaveno
|
||||
[ins] Mozillou
|
||||
}
|
||||
introTitle = Jednoduché a soukromé sdílení souborů
|
||||
introDescription = S { -send-brand(case: "ins") } jsou sdílené soubory šifrované end-to-end, takže ani my nevíme, co sdílíte. Platnost odkazů je navíc omezená. Soubory tak můžete sdílet soukromě a s jistotou, že se nezůstanou na internetu válet navždy.
|
||||
introDescription = Se { -send-brand(case: "ins") } jsou sdílené soubory šifrované end-to-end, takže ani my nevíme, co sdílíte. Platnost odkazů je navíc omezená. Soubory tak můžete sdílet soukromě a s jistotou, že se nezůstanou na internetu válet navždy.
|
||||
notifyUploadEncryptDone = Váš soubor je zašifrovaný a připraven k odeslání
|
||||
# downloadCount is from the downloadCount string and timespan is a timespanMinutes string. ex. 'Expires after 2 downloads or 25 minutes'
|
||||
archiveExpiryInfo = Platnost vyprší po { $downloadCount } nebo za { $timespan }
|
||||
@@ -131,7 +131,7 @@ copyLinkDescription = Soubor můžete sdílet tímto odkazem:
|
||||
copyLinkButton = Zkopírovat odkaz
|
||||
downloadTitle = Stáhnout soubory
|
||||
downloadDescription = Tento soubor byl sdílen přes { -send-brand(case: "acc") } s end-to-end šifrováním a odkazem s omezenou platností.
|
||||
trySendDescription = Vyzkoušejte jednoduché a bezpečné sdílení souborů s { -send-brand(case: "ins") }
|
||||
trySendDescription = Vyzkoušejte jednoduché a bezpečné sdílení souborů se { -send-brand(case: "ins") }
|
||||
# count will always be > 10
|
||||
tooManyFiles =
|
||||
{ $count ->
|
||||
@@ -189,6 +189,6 @@ downloadFirefoxPromo = { -send-short-brand } od aplikace { -firefox }.
|
||||
shareLinkDescription = Sdílet odkaz na soubor:
|
||||
shareLinkButton = Sdílet odkaz
|
||||
# $name is the name of the file
|
||||
shareMessage = Stáhněte si soubor „{ $name }“ s { -send-brand(case: "ins") } - jednoduché a bezpečné sdílení souborů
|
||||
shareMessage = Stáhněte si soubor „{ $name }“ se { -send-brand(case: "ins") } - jednoduché a bezpečné sdílení souborů
|
||||
trailheadPromo = Existuje způsob, jak ochránit své soukromí. Používejte Firefox.
|
||||
learnMore = Zjistit více.
|
||||
|
||||
@@ -53,7 +53,7 @@ introTitle = Простой и безопасный обмен файлами
|
||||
introDescription = { -send-brand } позволяет вам делиться файлами со сквозным шифрованием и ограниченным сроком действия ссылки на загрузку. Так что, вы сможете делиться файлами приватно и они не останутся в сети навсегда.
|
||||
notifyUploadEncryptDone = Ваш файл зашифрован и готов к отправке
|
||||
# downloadCount is from the downloadCount string and timespan is a timespanMinutes string. ex. 'Expires after 2 downloads or 25 minutes'
|
||||
archiveExpiryInfo = Срок хранения истекает после { $downloadCount } или через { $timespan }
|
||||
archiveExpiryInfo = Удалить после { $downloadCount } или через { $timespan }
|
||||
timespanMinutes =
|
||||
{ $num ->
|
||||
[one] { $num } минуту
|
||||
@@ -89,7 +89,7 @@ gb = ГБ
|
||||
# localized number and byte abbreviation. example "2.5MB"
|
||||
fileSize = { $num }{ $units }
|
||||
# $size is the size of the file, displayed using the fileSize message as format (e.g. "2.5MB")
|
||||
totalSize = Общий размер: { $size }
|
||||
totalSize = Всего: { $size }
|
||||
# the next line after the colon contains a file name
|
||||
copyLinkDescription = Скопируйте ссылку, чтобы поделиться своим файлом:
|
||||
copyLinkButton = Копировать ссылку
|
||||
@@ -117,13 +117,13 @@ legalTitle = Уведомление о конфиденциальности { -s
|
||||
legalDateStamp = Версия 1.0, от 12 марта 2019 года
|
||||
# A short representation of a countdown timer containing the number of days, hours, and minutes remaining as digits, example "2d 11h 56m"
|
||||
expiresDaysHoursMinutes = { $days } дн. { $hours } ч. { $minutes } мин.
|
||||
addFilesButton = Выберите файлы для выгрузки
|
||||
addFilesButton = Добавить
|
||||
uploadButton = Выгрузить
|
||||
# the first part of the string 'Drag and drop files or click to send up to 1GB'
|
||||
dragAndDropFiles = Перетащите файлы сюда
|
||||
# the second part of the string 'Drag and drop files or click to send up to 1GB'
|
||||
# $size is the size of the file, displayed using the fileSize message as format (e.g. "2.5MB")
|
||||
orClickWithSize = или щёлкните здесь, чтобы отправить их (до { $size })
|
||||
orClickWithSize = или кликните сюда для отправки файлов до { $size }
|
||||
addPassword = Защитить паролем
|
||||
emailPlaceholder = Введите ваш адрес электронной почты
|
||||
# $size is the size of the file, displayed using the fileSize message as format (e.g. "2.5MB")
|
||||
|
||||
@@ -2,12 +2,12 @@ title = Send
|
||||
importingFile = 正在导入…
|
||||
encryptingFile = 正在加密…
|
||||
decryptingFile = 正在解密…
|
||||
downloadCount =
|
||||
{ $num ->
|
||||
downloadCount = { $num ->
|
||||
[one] 1 次下载
|
||||
*[other] { $num } 次下载
|
||||
}
|
||||
timespanHours =
|
||||
{ $num ->
|
||||
timespanHours = { $num ->
|
||||
[one] 1 小时
|
||||
*[other] { $num } 小时
|
||||
}
|
||||
copiedUrl = 已复制!
|
||||
@@ -26,6 +26,11 @@ notSupportedOutdatedDetail = 很可惜,此版本的 Firefox 不支持 Send 所
|
||||
updateFirefox = 更新 Firefox
|
||||
deletePopupCancel = 取消
|
||||
deleteButtonHover = 删除
|
||||
footerText = 不附属于 Mozilla 或 Firefox。
|
||||
footerLinkDonate = 捐助
|
||||
footerLinkCli = 命令行
|
||||
footerLinkDmca = DMCA
|
||||
footerLinkSource = 源代码
|
||||
passwordTryAgain = 密码不正确。请重试。
|
||||
javascriptRequired = Send 需要 JavaScript
|
||||
whyJavascript = 为什么 Send 需要 JavaScript?
|
||||
@@ -142,5 +147,4 @@ shareLinkDescription = 您的文件链接:
|
||||
shareLinkButton = 分享链接
|
||||
# $name is the name of the file
|
||||
shareMessage = 使用 { -send-brand } 下载“{ $name }”:简单、安全的文件分享服务
|
||||
trailheadPromo = 捍卫隐私不是幻想。加入 Firefox 一同抗争。
|
||||
learnMore = 详细了解。
|
||||
|
||||
@@ -2,12 +2,12 @@ title = Send
|
||||
importingFile = 匯入中…
|
||||
encryptingFile = 加密中…
|
||||
decryptingFile = 解密中…
|
||||
downloadCount =
|
||||
{ $num ->
|
||||
downloadCount = { $num ->
|
||||
[one] 1 次下載
|
||||
*[other] { $num } 次下載
|
||||
}
|
||||
timespanHours =
|
||||
{ $num ->
|
||||
timespanHours = { $num ->
|
||||
[one] 1 小時
|
||||
*[other] { $num } 小時
|
||||
}
|
||||
copiedUrl = 已複製!
|
||||
@@ -26,6 +26,11 @@ notSupportedOutdatedDetail = 很可惜,此版本的 Firefox 不支援 Send 所
|
||||
updateFirefox = 更新 Firefox
|
||||
deletePopupCancel = 取消
|
||||
deleteButtonHover = 刪除
|
||||
footerText = 不隸屬於 Mozilla 或 Firefox。
|
||||
footerLinkDonate = 捐助
|
||||
footerLinkCli = 命令列
|
||||
footerLinkDmca = DMCA
|
||||
footerLinkSource = 原始碼
|
||||
passwordTryAgain = 密碼不正確,請再試一次。
|
||||
javascriptRequired = Send 需要開啟 JavaScript 功能
|
||||
whyJavascript = 為什麼 Send 需要 JavaScript 才能使用?
|
||||
@@ -45,25 +50,26 @@ passwordSetError = 無法設定此密碼
|
||||
-send-short-brand = Send
|
||||
-firefox = Firefox
|
||||
-mozilla = Mozilla
|
||||
|
||||
introTitle = 簡單而私密的檔案共享服務
|
||||
introDescription = { -send-brand } 讓您可透過點對點加密的方式來分享檔案,並提供會自動失效的鏈結。這樣一來就可以保留分享時的隱私,也確保檔案不會永久保存於網路上。
|
||||
notifyUploadEncryptDone = 已加密您的檔案,可以傳送
|
||||
# downloadCount is from the downloadCount string and timespan is a timespanMinutes string. ex. 'Expires after 2 downloads or 25 minutes'
|
||||
archiveExpiryInfo = { $downloadCount } 或 { $timespan } 後失效
|
||||
timespanMinutes =
|
||||
{ $num ->
|
||||
timespanMinutes = { $num ->
|
||||
[one] 1 分鐘
|
||||
*[other] { $num } 分鐘
|
||||
}
|
||||
timespanDays =
|
||||
{ $num ->
|
||||
timespanDays = { $num ->
|
||||
[one] 1 天
|
||||
*[other] { $num } 天
|
||||
}
|
||||
timespanWeeks =
|
||||
{ $num ->
|
||||
timespanWeeks = { $num ->
|
||||
[one] 1 週
|
||||
*[other] { $num } 週
|
||||
}
|
||||
fileCount =
|
||||
{ $num ->
|
||||
fileCount = { $num ->
|
||||
[one] 1 個檔案
|
||||
*[other] { $num } 個檔案
|
||||
}
|
||||
# byte abbreviation
|
||||
@@ -85,13 +91,13 @@ downloadTitle = 下載檔案
|
||||
downloadDescription = 此檔案是透過 { -send-brand } 進行分享,以點對點加密的方式來分享檔案,並提供會自動失效的鏈結。
|
||||
trySendDescription = 快試試 { -send-brand },簡單安全的檔案分享機制。
|
||||
# count will always be > 10
|
||||
tooManyFiles =
|
||||
{ $count ->
|
||||
tooManyFiles = { $count ->
|
||||
[one] 一次僅能上傳 1 個檔案。
|
||||
*[other] 一次僅能上傳 { $count } 個檔案。
|
||||
}
|
||||
# count will always be > 10
|
||||
tooManyArchives =
|
||||
{ $count ->
|
||||
tooManyArchives = { $count ->
|
||||
[one] 僅允許 1 個壓縮檔。
|
||||
*[other] 僅允許 { $count } 個壓縮檔。
|
||||
}
|
||||
expiredTitle = 此鏈結已經失效。
|
||||
@@ -136,5 +142,4 @@ shareLinkDescription = 您的檔案鏈結:
|
||||
shareLinkButton = 分享鏈結
|
||||
# $name is the name of the file
|
||||
shareMessage = 使用 { -send-brand } 下載「{ $name }」: 簡單安全的檔案分享機制
|
||||
trailheadPromo = 有種方法可以保護您的隱私,加入 Firefox。
|
||||
learnMore = 了解更多。
|
||||
|
||||
@@ -15,6 +15,8 @@ module.exports = {
|
||||
FOOTER_SOURCE_URL: config.footer_source_url,
|
||||
CUSTOM_FOOTER_TEXT: config.custom_footer_text,
|
||||
CUSTOM_FOOTER_URL: config.custom_footer_url,
|
||||
UPLOAD_AREA_WARNING_HTML: config.upload_area_warning_html,
|
||||
DOWNLOAD_WARNING_HTML: config.download_warning_html,
|
||||
COLORS: {
|
||||
PRIMARY: config.ui_color_primary,
|
||||
ACCENT: config.ui_color_accent
|
||||
|
||||
@@ -165,7 +165,7 @@ const conf = convict({
|
||||
},
|
||||
base_url: {
|
||||
format: 'url',
|
||||
default: 'https://send.firefox.com',
|
||||
default: 'https://send.example.com',
|
||||
env: 'BASE_URL'
|
||||
},
|
||||
custom_title: {
|
||||
@@ -175,7 +175,8 @@ const conf = convict({
|
||||
},
|
||||
custom_description: {
|
||||
format: String,
|
||||
default: 'Encrypt and send files with a link that automatically expires to ensure your important documents don’t stay online forever.',
|
||||
default:
|
||||
'Encrypt and send files with a link that automatically expires to ensure your important documents don’t stay online forever.',
|
||||
env: 'CUSTOM_DESCRIPTION'
|
||||
},
|
||||
detect_base_url: {
|
||||
@@ -263,6 +264,16 @@ const conf = convict({
|
||||
default: '',
|
||||
env: 'CUSTOM_FOOTER_URL'
|
||||
},
|
||||
upload_area_warning_html: {
|
||||
format: String,
|
||||
default: '',
|
||||
env: 'SEND_UPLOAD_AREA_WARNING_HTML'
|
||||
},
|
||||
download_warning_html: {
|
||||
format: String,
|
||||
default: '',
|
||||
env: 'SEND_DOWNLOAD_WARNING_HTML'
|
||||
},
|
||||
ui_color_primary: {
|
||||
format: String,
|
||||
default: '#0a84ff',
|
||||
|
||||
@@ -44,7 +44,7 @@ module.exports = async function(req) {
|
||||
facebook: baseUrl + '/' + assets.get('send-fb.jpg'),
|
||||
twitter: baseUrl + '/' + assets.get('send-twitter.jpg'),
|
||||
wordmark: assets.get('wordmark.svg') + '#logo',
|
||||
custom_css: assets.get('undefined')
|
||||
custom_css: ''
|
||||
};
|
||||
Object.keys(uiAssets).forEach(index => {
|
||||
if (config.ui_custom_assets[index] !== '')
|
||||
|
||||
@@ -6,6 +6,13 @@ const VersionPlugin = require('./build/version_plugin');
|
||||
const AndroidIndexPlugin = require('./build/android_index_plugin');
|
||||
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||
|
||||
// Fix for node 18+
|
||||
// See: <https://stackoverflow.com/a/78005686/1000145>
|
||||
const crypto = require('crypto');
|
||||
const crypto_orig_createHash = crypto.createHash;
|
||||
crypto.createHash = algorithm =>
|
||||
crypto_orig_createHash(algorithm == 'md4' ? 'sha256' : algorithm);
|
||||
|
||||
const webJsOptions = {
|
||||
babelrc: false,
|
||||
presets: [
|
||||
|
||||
Reference in New Issue
Block a user