Skip to content

Commit f372c9d

Browse files
committed
Merge branch 'Release-3.3' into 'master'
Release 3.3 Closes nextcloud#4, nextcloud#5, nextcloud#44, nextcloud#49, nextcloud#53, nextcloud#59, nextcloud#61 See merge request joendres/filelink-nextcloud!31
2 parents cfd5eb6 + fbe1e49 commit f372c9d

29 files changed

Lines changed: 801 additions & 178 deletions

.gitlab-ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
image: node:lts
2+
3+
cache:
4+
key: ${CI_COMMIT_REF_SLUG}
5+
paths:
6+
- node_modules/
7+
8+
before_script:
9+
- npm install node-fetch
10+
- npm install web-ext
11+
- npm install jshint
12+
13+
lint:
14+
stage: test
15+
script:
16+
# web-ext fails if parameters of different run modes are set
17+
- unset WEB_EXT_API_KEY
18+
- unset WEB_EXT_API_SECRET
19+
- npx web-ext lint
20+
- npx jshint src
21+
22+
pages:
23+
stage: deploy
24+
script:
25+
- node build-tools/build-pages.js
26+
# web-ext fails if parameters of different run modes are set
27+
- unset WEB_EXT_API_KEY
28+
- unset WEB_EXT_API_SECRET
29+
- npx web-ext build
30+
- for z in public/*.zip; do mv -- "$z" "${z%zip}xpi"; done
31+
artifacts:
32+
paths:
33+
- public
34+
only:
35+
- master
36+
- tags
37+
38+
sign:
39+
stage: deploy
40+
script:
41+
# web-ext sign always fails (as documented), so manipulate the return code
42+
- npx web-ext sign --channel=listed --api-url-prefix=https://addons.thunderbird.net/api/v3 ; true
43+
environment:
44+
name: production
45+
url: https://addons.thunderbird.net/de/thunderbird/addon/filelink-nextcloud-owncloud/
46+
only:
47+
# Only sign tagged releases
48+
- /^v\d+\.\d+\.\d+$/

.vscode/settings.json

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
11
{
2-
"jshint.options": {
3-
"moz": true,
4-
"esversion": 9,
5-
"browser": true,
6-
"predef": [
7-
"browser",
8-
"AbortController"
9-
],
10-
"curly": true,
11-
"eqeqeq": true,
12-
"futurehostile": true,
13-
"nocomma": true,
14-
"strict": "implied",
15-
"trailingcomma": true,
16-
"undef": true,
17-
"unused": true,
18-
"-W098": true
19-
},
202
"cSpell.words": [
213
"Geoff",
224
"Lankow",
@@ -31,5 +13,8 @@
3113
"webdav"
3214
],
3315
"cSpell.language": "de,en",
34-
"cSpell.allowCompoundWords": true
16+
"cSpell.allowCompoundWords": true,
17+
"git.alwaysSignOff": true,
18+
"git.fetchOnPull": true,
19+
"git.untrackedChanges": "separate"
3520
}

CHANGELOG

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
3.3.0 2020-01-??
2+
- Catalan translation by @josepmanel
3+
- Spanish translation by @josepmanel (Close #3)
4+
- French translation by @Go-rom (Close #4)
5+
- Close #49: Photon style for preferences pane (kind of)
6+
- Internal changes to prepare for 3.4
7+
18
3.2.1 2020-01-19
29
- Fix #57: Help text for expire settings missing
310
- Fix #56: Expire number input field too wide

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ then attach a synced file from your computer to a message, __*cloud__ will
5656
notice that it's already uploaded. This might not work with uploads from the
5757
mobile clients, but I haven't tested it.
5858

59-
* If you attach a file with the same name but different contents as a cloud file, the cloud file will not by overwritten. Instead __*cloud__ moves the existing file to a subfolder of the attachments folder; the original share link will remain valid and point to the old content.\
59+
* If you attach a file with the same name but different contents as a cloud file, the cloud file will not be overwritten. Instead __*cloud__ moves the existing file to a subfolder of the attachments folder; the original share link will remain valid and point to the old content.\
6060
Then the new file is uploaded and shared with a new share link.
6161

6262
__*cloud__ uses the same method as the
@@ -134,6 +134,10 @@ platforms, have a feature suggestion or any other comment, just contact
134134
If you are developing WebExtensions, you want to use this tool. For debugging
135135
just set the ```firefox``` config option to your thunderbird binary.
136136

137+
## Contributors
138+
* [Johannes Endres](@joendres), initial implementation, maintainer
139+
* [Josep Manel Mendoza](@josepmanel), catalan and spanish translations
140+
137141
## References
138142

139143
* Based on [FileLink Provider for

build-tools/.jshintrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"node": true,
3+
"esversion": 6,
4+
"curly": true,
5+
"eqeqeq": true,
6+
"futurehostile": true,
7+
"nocomma": true,
8+
"strict": "implied",
9+
"trailingcomma": true,
10+
"undef": true,
11+
"unused": true
12+
}

build-tools/build-pages.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/* Translates README.md into an html page using gitlab's API */
2+
3+
const fetch = require("node-fetch");
4+
const fs = require('fs');
5+
6+
const url = "https://gitlab.com/api/v4/markdown";
7+
8+
const htmlhead = `<!DOCTYPE html>
9+
<html lang="en">
10+
<meta charset="UTF-8">
11+
<link rel="icon" type="image/png" href="favicon.png" />
12+
<link rel="stylesheet" href="style.css">
13+
<title>*cloud - Filelink for Nextcloud and ownCloud</title>`;
14+
15+
const data = {
16+
text: fs.readFileSync("README.md", "utf-8"),
17+
gfm: true,
18+
project: "joendres/filelink-nextcloud",
19+
};
20+
21+
const fetchInit = {
22+
method: "POST",
23+
body: JSON.stringify(data),
24+
headers: { "Content-Type": "application/json", },
25+
};
26+
27+
fetch(url, fetchInit)
28+
.then(response => response.json())
29+
.then(json => fs.writeFileSync("public/index.html", htmlhead + json.html));

jsconfig.json

Whitespace-only changes.

public/favicon.png

6.88 KB
Loading

public/logo.png

770 KB
Loading

public/style.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
body {
2+
font-family: sans-serif;
3+
padding-left: 2em;
4+
}
5+
6+
h1 {
7+
background-image: url("logo.png");
8+
background-repeat: no-repeat;
9+
background-size: 2rem;
10+
background-position: right;
11+
}

0 commit comments

Comments
 (0)