Skip to content

Commit 1685804

Browse files
committed
Revert "parameterize build"
This reverts commit 0871c5f.
1 parent ec97ced commit 1685804

File tree

12 files changed

+195
-224
lines changed

12 files changed

+195
-224
lines changed

assets/js/const.dev.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"use strict";
2+
3+
const BASE_API_URL = 'http://localhost';
4+
const PADDLE_ENABLE_SANDBOX = true;
5+
const PADDLE_VENDOR_ID = 1385;
6+
const PADDLE_DESKTOP_PRODUCT_IDS = [54582, 54583, 54584];
7+
const PADDLE_ANDROID_PRODUCT_ID = 9642;
8+
const PADDLE_HUB_SELF_HOSTED_SUBSCRIPTION_PLAN_ID = 23141;
9+
const PADDLE_HUB_MANAGED_SUBSCRIPTION_PLAN_ID = 42235;
10+
const PADDLE_PRICES_URL = 'https://sandbox-checkout.paddle.com/api/2.0/prices';
11+
const STORE_API_URL = 'http://localhost:8787/api';
12+
const STRIPE_PK = 'pk_test_JhF3MoFQGw2Is0DB3BSv345P';
13+
const STRIPE_PLANS = {'EUR': 'plan_GgVY2JfD49bc02', 'USD': 'plan_GgVZwj545E0uH3'};

assets/js/const.prod.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"use strict";
2+
3+
const BASE_API_URL = 'https://api.cryptomator.org';
4+
const PADDLE_ENABLE_SANDBOX = false;
5+
const PADDLE_VENDOR_ID = 39223;
6+
const PADDLE_DESKTOP_PRODUCT_IDS = [840163, 840164, 840165];
7+
const PADDLE_ANDROID_PRODUCT_ID = 578277;
8+
const PADDLE_HUB_SELF_HOSTED_SUBSCRIPTION_PLAN_ID = 770132;
9+
const PADDLE_HUB_MANAGED_SUBSCRIPTION_PLAN_ID = 807339;
10+
const PADDLE_PRICES_URL = 'https://checkout.paddle.com/api/2.0/prices';
11+
const STORE_API_URL = 'https://store.cryptomator.org/api';
12+
const STRIPE_PK = 'pk_live_eSasX216vGvC26GdbVwA011V';
13+
const STRIPE_PLANS = {'EUR': 'plan_GgW4ovr7c6upzx', 'USD': 'plan_GejOEdJtfL3kdH'};

assets/js/const.template.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

config/_default/hugo.toml

Lines changed: 0 additions & 94 deletions
This file was deleted.

config/_default/params.toml

Lines changed: 0 additions & 51 deletions
This file was deleted.

config/development/params.toml

Lines changed: 0 additions & 18 deletions
This file was deleted.

config/production/params.toml

Lines changed: 0 additions & 18 deletions
This file was deleted.

config/staging/params.toml

Lines changed: 0 additions & 18 deletions
This file was deleted.

hugo.toml

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
baseURL = "https://cryptomator.org/"
2+
title = "Cryptomator"
3+
defaultContentLanguage = "en"
4+
enableemoji = true
5+
theme = ["hugo-admonitions"]
6+
7+
[languages]
8+
[languages.en]
9+
weight = 1
10+
languageName = "English"
11+
languageCode = "en-US"
12+
[languages.de]
13+
weight = 2
14+
languageName = "Deutsch"
15+
languageCode = "de-DE"
16+
17+
[build]
18+
[[build.cachebusters]]
19+
source = 'layouts/.*'
20+
target = 'css'
21+
22+
[outputs]
23+
home = ["HTML", "RSS"]
24+
section = ["HTML"]
25+
26+
[outputFormats]
27+
[outputFormats.RSS]
28+
mediatype = "application/rss"
29+
baseName = "feed"
30+
31+
[module]
32+
[[module.mounts]]
33+
source = "static"
34+
target = "static"
35+
36+
[[module.mounts]]
37+
source = "assets"
38+
target = "assets"
39+
40+
[[module.mounts]]
41+
source = "node_modules/@awesome.me/kit-628503cc21/icons/webfonts"
42+
target = "static/webfonts"
43+
44+
[[module.mounts]]
45+
source = "node_modules/jquery/dist"
46+
target = "assets/js/jquery"
47+
48+
[[module.mounts]]
49+
source = "node_modules/alpinejs/dist"
50+
target = "assets/js/alpinejs"
51+
52+
[[module.mounts]]
53+
source = "node_modules/lazysizes"
54+
target = "assets/js/lazysizes"
55+
56+
[[module.mounts]]
57+
source = "node_modules/js-yaml/dist"
58+
target = "assets/js/js-yaml"
59+
60+
[[module.mounts]]
61+
source = "node_modules/altcha/dist_external"
62+
target = "assets/js/altcha"
63+
64+
[[module.mounts]]
65+
source = "node_modules/mathjax/es5"
66+
target = "assets/js/mathjax"
67+
68+
[[module.mounts]]
69+
source = "node_modules/mathjax/es5/output/chtml/fonts/woff-v2"
70+
target = "static/webfonts/mathjax"
71+
72+
[markup]
73+
[markup.goldmark]
74+
[markup.goldmark.extensions]
75+
[markup.goldmark.extensions.passthrough]
76+
enable = true
77+
[markup.goldmark.extensions.passthrough.delimiters]
78+
block = [['\[', '\]'], ['$$', '$$']]
79+
inline = [['\(', '\)']]
80+
[markup.goldmark.renderer]
81+
unsafe = true
82+
[markup.goldmark.parser.attribute]
83+
block = true
84+
85+
[params]
86+
math = false # set to true in frontmatter if required
87+
[params.releases]
88+
[params.releases.exe]
89+
version = "1.17.1"
90+
filename = "Cryptomator-1.17.1-x64.exe"
91+
downloadUrl = "https://github.com/cryptomator/cryptomator/releases/download/1.17.1/Cryptomator-1.17.1-x64.exe"
92+
signatureUrl = "https://github.com/cryptomator/cryptomator/releases/download/1.17.1/Cryptomator-1.17.1-x64.exe.asc"
93+
checksum = "a11dfcfc5bb9b032448292755a2229bb6cc181f4978864f8f4f0df626c4e6e69"
94+
requiredOS = 'Windows 10, Version 1803'
95+
[params.releases.msi]
96+
version = "1.17.1"
97+
filename = "Cryptomator-1.17.1-x64.msi"
98+
downloadUrl = "https://github.com/cryptomator/cryptomator/releases/download/1.17.1/Cryptomator-1.17.1-x64.msi"
99+
signatureUrl = "https://github.com/cryptomator/cryptomator/releases/download/1.17.1/Cryptomator-1.17.1-x64.msi.asc"
100+
checksum = "794435f090232a8af2d0e9fb770e02ce2d99326323433a46f4125cefb3e6713b"
101+
requiredOS = 'Windows 10, Version 1803'
102+
[params.releases.dmg]
103+
version = "1.17.1"
104+
filename = "Cryptomator-1.17.1.dmg"
105+
downloadUrl = "https://github.com/cryptomator/cryptomator/releases/download/1.17.1/Cryptomator-1.17.1-x64.dmg"
106+
signatureUrl = "https://github.com/cryptomator/cryptomator/releases/download/1.17.1/Cryptomator-1.17.1-x64.dmg.asc"
107+
checksum = "0111ad60e0a9749a63f11eb4eae183aaf05ceb6dde67b8c28bcc8b2447b86850"
108+
requiredOS = 'macOS 11'
109+
[params.releases.dmg-arm64]
110+
version = "1.17.1"
111+
filename = "Cryptomator-1.17.1-arm64.dmg"
112+
downloadUrl = "https://github.com/cryptomator/cryptomator/releases/download/1.17.1/Cryptomator-1.17.1-arm64.dmg"
113+
signatureUrl = "https://github.com/cryptomator/cryptomator/releases/download/1.17.1/Cryptomator-1.17.1-arm64.dmg.asc"
114+
checksum = "34c75e5f744bcedb96cf900a7e73ae96a5b39568a2e0994a1239fc59b31bc0d5"
115+
requiredOS = 'macOS 11'
116+
[params.releases.appimage]
117+
version = "1.17.1"
118+
filename = "cryptomator-1.17.1-x86_64.AppImage"
119+
downloadUrl = "https://github.com/cryptomator/cryptomator/releases/download/1.17.1/cryptomator-1.17.1-x86_64.AppImage"
120+
signatureUrl = "https://github.com/cryptomator/cryptomator/releases/download/1.17.1/cryptomator-1.17.1-x86_64.AppImage.asc"
121+
checksum = "290d30f81535483d01f1a799d380c90c2a194a0b6151418ac636f0f015d0372a"
122+
requiredOS = ''
123+
[params.releases.appimage-aarch64]
124+
version = "1.17.1"
125+
filename = "cryptomator-1.17.1-aarch64.AppImage"
126+
downloadUrl = "https://github.com/cryptomator/cryptomator/releases/download/1.17.1/cryptomator-1.17.1-aarch64.AppImage"
127+
signatureUrl = "https://github.com/cryptomator/cryptomator/releases/download/1.17.1/cryptomator-1.17.1-aarch64.AppImage.asc"
128+
checksum = "5bb552c3f801c0007c5dc5c2a7e9e29eaf2ec0c28e5dca1d5e52c473905fba2f"
129+
requiredOS = ''
130+
[params.releases.android]
131+
version = "1.11.1"
132+
filename = "Cryptomator-1.11.1.apk"
133+
downloadUrl = "https://static.cryptomator.org/android/1.11.1/Cryptomator-1.11.1.apk"
134+
checksum = "cd779e929277920e65b282f166e9c693fe560927215428796e100bcc7427132a"
135+
requiredOS = 'Android 8.0'
136+
137+
[permalinks]
138+
blog = "/blog/:year/:month/:day/:slug/"
139+
140+
[server]
141+
[[server.headers]]
142+
for = '/**'
143+
[server.headers.values]
144+
Content-Security-Policy = "default-src 'none'; script-src 'self' 'unsafe-eval' https://umami.skymatic.de/ https://community.cryptomator.org/ https://js.stripe.com/ https://*.paddle.com/; style-src 'self' 'unsafe-inline' https://*.paddle.com/; img-src 'self' data: https://static.cryptomator.org/ https://*.paddle.com/ https://paddle.s3.amazonaws.com/ https://avatars.githubusercontent.com/; connect-src 'self' https://api.cryptomator.org/ https://store.cryptomator.org/ https://umami.skymatic.de/ http://localhost/ http://localhost:8787/; font-src 'self'; media-src https://static.cryptomator.org/; frame-src https://community.cryptomator.org/ https://js.stripe.com/ https://*.paddle.com/; base-uri 'self'; form-action 'self' https://www.paypal.com/ https://www.coinpayments.net/; frame-ancestors 'none';"
145+
Strict-Transport-Security = "max-age=31536000; includeSubDomains"
146+
X-Content-Type-Options = "nosniff"

0 commit comments

Comments
 (0)